/* Advanced Search Dropdown */
#advanced-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 50;
    margin-top: 0.5rem;
    overflow: hidden;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}

.dark #advanced-search-dropdown {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

#advanced-search-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-section {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .search-section {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.search-section:last-child {
    border-bottom: none;
}

.search-section-title {
    padding: 0 1.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 600;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
    text-decoration: none;
}

.dark .search-item {
    color: #e5e7eb;
}

.search-item:hover, .search-item.selected {
    background-color: rgba(59, 130, 246, 0.1);
    padding-left: 1.75rem;
}

.dark .search-item:hover, .dark .search-item.selected {
    background-color: rgba(59, 130, 246, 0.2);
}

/* Product Specific Styles */
.search-product-item {
    display: flex;
    gap: 1rem;
}

.search-product-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.375rem;
    background: #fff;
    padding: 0.25rem;
    border: 1px solid #e5e7eb;
}

.dark .search-product-img {
    border-color: #4b5563;
    background: #1f2937;
}

.search-product-info {
    flex: 1;
    min-width: 0;
}

.search-product-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.125rem;
}

.search-product-price {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 600;
}

.dark .search-product-price {
    color: #60a5fa;
}

.search-match-highlight {
    color: #2563eb;
    font-weight: 700;
}

.dark .search-match-highlight {
    color: #60a5fa;
}
