/* Shared styles for both desktop & mobile search results */
.live-search,
.live-search ul li {
    background-color: #FFF;
}

.live-search {
    width: 100%;
    position: absolute;
    z-index: 1000;
    margin-top: -2px;
    border: 2px solid #ddd;
    overflow-y: scroll;
    max-height: 680px;
    display: none;
    max-width: 580px;
	margin-left: 50px;
	border-radius: 8px;
}

.live-search .loading {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.live-search ul {
    list-style-type: none;
    margin: 0;
    padding: 20px;
}

.live-search ul li {
    cursor: pointer;
    margin: 0;
    border-top: 1px solid #eee;
	height: auto;
	padding: 5px 0;
}
.live-search ul li:hover,
.live-search ul li:nth-child(even) {
    background-color: #fff;
}

.live-search ul li a {
    text-decoration: none;
    display: flex;
  justify-content: space-between;
  align-items: center;
  gap:15px;
}

/* product parts */
.live-search ul li .product-image {
    
}
.live-search ul li .product-image img {
    max-width: 90px;
}

.live-search ul li .product-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    text-align: left;
	width: 100%;
}
.live-search ul li .product-name p {
    font-weight: 400;
    line-height: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    padding: 0;
}

.live-search ul li .product-price {
    text-align: right;
    font-weight: 700;
	width: 25%;
}
.live-search ul li .product-price .price {
    color: var(--blue);
    font-size: 16px;
    font-weight: 600;
	display: flex;
	flex-wrap: wrap;
	justify-content: end;
}
.live-search ul li .product-price .special {
    color: #999;
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
}
.live-search .product-price>.special {
    margin-top: -5px;
}

/* 📱 Responsive adjustments */
@media only screen and (min-width: 1279px) and (max-width: 1367px) {
    .live-search { right: 0; }
}
@media screen and (max-width:1025px) {
    .live-search { right: 0; max-height: 480px; }
}
@media screen and (max-width:480px) {
    .live-search { width: 100%; margin-top: -10px; right: 0; border: 0; border-radius: 0;}
	.live-search ul{padding:15px;}
	.live-search ul li .product-image img {max-width: 60px;}
	.live-search ul li .product-name {font-size: 13px;}
	.live-search ul li .product-name p {font-size: 12px;}
	.live-search ul li .product-price .price {font-size: 13px;}
	.live-search ul li .product-price .special {font-size: 11px;}
}
