/* ========================================
   BNŌI SEARCH SYSTEM - SLIDE FROM LEFT
   Luxury search with elegant fade-in effect
   ======================================== */

.search-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}


/* Search Input Wrapper - Fades in from LEFT */
.search-input-wrapper {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 8px;
    z-index: 100;
}

/* Show on hover - SLIDES FROM LEFT */
.search-container:hover .search-input-wrapper,
.search-input-wrapper:hover,
.search-input-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* Search Input Styling */
.search-input {
    width: 280px;
    padding: 10px 16px;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-size: 13px;
    letter-spacing: 0.5px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #000;
}

.search-input::placeholder {
    color: #999;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
}

.search-input:focus {
    border-bottom-color: #B76E79;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 350px; /* Reduced width slightly */
    max-height: 450px;
    overflow-y: auto;
    background: white;
    border: 1px solid #eee;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

.search-results.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Result Item */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: #fafafa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 80px; /* Increased from 60px */
    height: 80px; /* Increased from 60px */
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-result-name strong {
    color: #B76E79;
    font-weight: 600;
}

.search-result-category {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.search-result-price {
    display: none; /* Hide price */
}

.search-no-results {
    padding: 32px 24px;
    text-align: center;
    color: #999;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* More Results Indicator */
.search-more-results {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-top: 1px solid #f5f5f5;
    background: #fafafa;
}

/* Scrollbar styling for results */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.search-results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #999;
}
/* ========================================
   WISHLIST ICON IN HEADER
   ======================================== */

.wishlist-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.wishlist-header-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.wishlist-header-icon:hover svg {
    stroke: #C9A86A;
    transform: scale(1.1);
}

.wishlist-icon.active svg {
       fill: #C9A86A !important;
       stroke: #C9A86A !important;
   }

/* When header is scrolled */
#mainHeader.scrolled .wishlist-header-icon svg {
    stroke: #000;
}

#mainHeader.scrolled .wishlist-header-icon:hover svg {
    stroke: #C9A86A;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-input-wrapper {
        position: fixed;
        right: 0;
        left: 0;
        top: 60px;
        transform: none;
        padding: 12px 20px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-right: 0;
    }
    
    .search-container:hover .search-input-wrapper,
    .search-input-wrapper:hover,
    .search-input-wrapper.active {
        transform: none;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-results {
        width: 100%;
        right: 0;
        left: 0;
        max-height: calc(100vh - 140px);
        top: calc(100% + 4px);
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-image {
        width: 60px;
        height: 60px;
    }
    
    .search-result-name {
        font-size: 12px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .search-input {
        width: 240px;
    }
    
    .search-results {
        width: 320px;
    }
}

/* Focus state (for accessibility) */
.search-container:focus-within .search-input-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.search-container:focus-within .search-results.active {
    display: block;
}

/* Empty State Styling */
.search-results:empty {
    display: none;
}

