.category-bar {
    background: rgba(255,255,255,0.95);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 2.5rem;
    padding: 1rem 0.5rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.category-bar::-webkit-scrollbar {
    height: 8px;
}

.category-bar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.category-bar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 9999px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    font-size: 0.875rem;
    box-shadow: none;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.category-link:hover, .category-link:focus {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.12);
    transform: scale(1.05);
    z-index: 2;
}

.category-link.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.12);
}

.category-dropdown {
    position: relative;
    display: inline-block;
}

.category-dropdown .category-link {
    cursor: pointer;
}

.category-dropdown-content {
    display: block;
    position: absolute;
    left: 50%;
    top: calc(100% + 5px);
    min-width: 200px;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 9999;
    padding: 0.5rem 0;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Show dropdown on hover or focus */
.category-dropdown:hover .category-dropdown-content,
.category-dropdown:focus-within .category-dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.category-dropdown-content a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background 0.2s, color 0.2s;
    font-size: 0.875rem;
}

.category-dropdown-content a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.category-dropdown-content a.active {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.category-dropdown:hover .category-link i {
    transform: rotate(180deg);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Hide category bar completely on mobile */
    .category-bar {
        display: none !important;
    }
    
    /* Keep existing mobile styles for reference but they won't be used since the bar is hidden */
    .category-bar {
        padding: 0.75rem 0.25rem;
        gap: 0.25rem;
    }
    
    .category-link {
        padding: 0.375rem 1rem;
        font-size: 0.8rem;
        margin: 0 0.125rem;
    }
    
    .category-dropdown-content {
        left: 0;
        transform: none;
        min-width: 180px;
        /* Ensure mobile dropdown is properly positioned */
        position: fixed !important;
        z-index: 1050 !important;
        background: #fff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 0.5rem !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        max-height: 300px !important;
        overflow-y: auto !important;
    }
    
    /* Hide desktop hover behavior on mobile */
    .category-dropdown:hover .category-dropdown-content {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
} 