/* ==========================================================================
   SEARCH RESULTS — Luxury Editorial (AMEENA Haute Couture)
   Covers both #searchResult (desktop) and #searchResultMobile (mobile drawer)
   ========================================================================== */

/* Reset any leftover conflicting legacy styles */
#searchResult,
#searchResultMobile {
    list-style: none;
    margin: 0;
    padding: 6px 0;

    /* Luxury dropdown card */
    background: #FFFFFF;
    border: 1px solid #ECE7DF;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.04);

    /* Hidden by default, shown via JS .show() */
    display: none;

    /* Scrollable */
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;

    /* Position (parent must be position: relative) */
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1070;
}

/* Desktop result is inside .lux-header-search-form which is position:relative — OK */

/* Mobile result lives inside .lux-mobile-search-form which is position:relative */
.lux-mobile-search-form {
    position: relative;
}

/* Individual result rows */
#searchResult li,
#searchResultMobile li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background-color 0.18s ease;
    border-bottom: 1px solid #F4EFEA;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#searchResult li:last-child,
#searchResultMobile li:last-child {
    border-bottom: none;
}

#searchResult li:hover,
#searchResultMobile li:hover {
    background-color: #FAF8F5;
}

/* Product thumbnail */
#searchResult img,
#searchResultMobile img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

/* Product info wrapper (image + name) */
#searchResult .product-details,
#searchResultMobile .product-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Product name */
#searchResult .product-name,
#searchResultMobile .product-name {
    font-size: 13px;
    font-weight: 500;
    color: #1F242D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product price */
#searchResult .product-price,
#searchResultMobile .product-price {
    font-size: 12.5px;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
    flex-shrink: 0;
}

/* "No results" empty state */
#searchResult li.search-no-results,
#searchResultMobile li.search-no-results {
    justify-content: center;
    color: #8C7A6B;
    font-size: 13px;
    font-style: italic;
    cursor: default;
}

#searchResult li.search-no-results:hover,
#searchResultMobile li.search-no-results:hover {
    background: transparent;
}

/* Scrollbar styling */
#searchResult::-webkit-scrollbar,
#searchResultMobile::-webkit-scrollbar {
    width: 4px;
}

#searchResult::-webkit-scrollbar-track,
#searchResultMobile::-webkit-scrollbar-track {
    background: transparent;
}

#searchResult::-webkit-scrollbar-thumb,
#searchResultMobile::-webkit-scrollbar-thumb {
    background-color: #E5DFD5;
    border-radius: 999px;
}