.live-search {
	width:100%;
	position: absolute;
	z-index: 1000;
	padding: 5px 0;
	background-color:#FFF;
	border: 1px solid #DDD;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	box-shadow: 0 2px 2px #DDDDDD;
	left: 0;
	display: none;
}
.live-search .loading{
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.live-search ul {
	list-style-type: none;
	margin:0px;
	padding:0px;
}
.live-search ul li {
	cursor:pointer;
	padding:5px;
	margin:0px 5px;
	background-color:#FFF;
	min-height:50px;
	clear:both;
}
.live-search ul li:nth-child(even) {
	background-color: #FAFAFA;
}
.live-search ul li:hover {
	background-color:#F3F4FB;
}
.live-search ul li a{
	text-decoration: none;
	display:block;
}

.live-search ul li .product-name p{
	font-weight: normal;
	font-style: italic;
	font-size: 10px;
	color:#555555;
	margin:0px;
	padding:0px;
}
.live-search ul li .product-name{
	color: #755194;
}
.live-search ul li .product-add-cart{
	float: right;
	padding: 7px;
}

.live-search ul li .product-price {
	text-align: right;
	font-size: 12px;
	font-weight: bold;
	float:right;
	margin-top:10px;
	width:25%;
}
.live-search ul li .product-price .price{
	color: #333333;
	display:block;
}
.live-search ul li .product-price .special{
	color: #FF0000;
	text-decoration: line-through;
	display:block;
}

.live-search .product-price > .special {
	margin-top: -5px;
}

.live-search .result-text{
	font-weight: bold;
	text-align: center;
	font-size: 11px;
	line-height: 20px;
	color:#755194;
	background-color:rgb(243,244,251);
	position: absolute;
	bottom: 0;
	width: 100%;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

.live-search .view-all-results {
	color: #755194;
}
.live-search .product-image {
	width: auto;
}
.live-search .product-image img {
	width: auto;
}

@media screen and (max-width: 991px) {
    /* Блокування скролу для класу, який додає JS */
    body.search-open {
        overflow: hidden !important;
        height: 100vh;
        position: fixed;
        width: 100%;
    }
    
    /* Щоб результати пошуку можна було скролити, навіть коли фон заблокований */
    .live-search {
        max-height: 80vh; 
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Фікс зуму (обов'язково залиш це) */
    #search input[name='search'],
    #search input[type="search"],
    .form-control {
        font-size: 16px !important; 
    }
}

.live-search ul {
    max-height: 65vh; 
    
    overflow-y: auto;
    
    overflow-x: hidden;
    
    scrollbar-width: thin;
}

.live-search ul::-webkit-scrollbar {
    width: 6px;
}

.live-search ul::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.live-search ul::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.live-search ul::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}