/* Search Results Dropdown Styling - Premium Modern Edition */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    max-height: 550px;
    overflow-y: auto;
    display: none;
    padding: 1rem;
    transform-origin: top center;
    animation: slideDownModern 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    scrollbar-width: thin;
    scrollbar-color: #26264C rgba(0, 0, 0, 0.05);
}

/* Custom Scrollbar for Dropdown */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(38, 38, 76, 0.15);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(38, 38, 76, 0.3);
}

@keyframes slideDownModern {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-results-dropdown.show {
    display: block;
}

/* Header for Results Section */
.search-results-header {
    padding: 1.2rem 1.5rem 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.15em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Individual Result Item */
.search-result-item {
    display: grid;
    grid-template-columns: 75px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    margin-bottom: 6px;
    border-radius: 18px;
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(38, 38, 76, 0.06);
    border-color: rgba(38, 38, 76, 0.05);
}

/* Thumbnail with Glow */
.search-result-thumb {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

.search-result-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.02);
    pointer-events: none;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-result-item:hover .search-result-thumb img {
    transform: scale(1.15);
}

/* Info styling */
.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.search-result-title {
    display: block;
    color: #26264C;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.search-result-item:hover .search-result-title {
    color: #26264c;
}

.search-result-price {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #26264C;
    font-size: 1.4rem;
    font-weight: 700;
}

.search-result-price .old-price {
    text-decoration: line-through;
    color: #b0b0b0;
    font-size: 1.2rem;
    font-weight: 400;
}

.search-result-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(38, 38, 76, 0.04);
    color: #26264C;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.search-result-item:hover .search-result-arrow {
    opacity: 1;
    transform: translateX(0);
    background: #26264C;
    color: #fff;
}

/* Empty State / Loader */
.search-result-empty, .search-result-loader {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.search-result-loader i {
    font-size: 2.8rem;
    color: #26264C;
}

.search-result-empty i {
    font-size: 3.5rem;
    color: #ddd;
    margin-bottom: 0.5rem;
}

.search-result-empty p {
    font-size: 1.5rem;
    color: #888;
    margin: 0;
}

/* Footer Action */
.search-results-footer {
    padding: 1.5rem 1rem 0.5rem;
    margin-top: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.search-results-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 48px;
    background: #26264C;
    color: #fff !important;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 15px rgba(38, 38, 76, 0.2);
}

.search-results-footer a:hover {
    background: #c9a96e;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(201, 169, 110, 0.3);
}

/* Animation for loader */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

/* Mobile Overrides */
@media (max-width: 767px) {
    .search-results-dropdown {
        position: fixed;
        top: 90px;
        left: 15px;
        right: 15px;
        max-height: calc(100vh - 140px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
        border-radius: 20px ;
    }
    
    .search-result-item {
        grid-template-columns: 60px 1fr;
        padding: 1rem;
    }
    
    .search-result-thumb {
        width: 60px;
        height: 60px;
    }
    
    .search-result-arrow {
        display: none;
    }
}

