.category-navbar {
    position: sticky;
    top: 60px;
    z-index: 999;
    background: #f4f4f4;
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 60px;
}

.category-navbar.hidden {
    transform: translateY(-100%);
}

/* Bouton hamburger (caché sur desktop) */
.navbar-toggle {
    display: none;
    position: relative;
    background: #fff;
    border: 2px solid #333;
    border-radius: 6px;
    cursor: pointer;
    padding: 10px 12px;
    margin-left: 20px;
    z-index: 1001;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.navbar-toggle:hover {
    background: #f8f8f8;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.navbar-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animation hamburger -> X */
.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 20px;
}

.category-container a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s, transform 0.2s;
}

.category-container a:hover {
    color: var(--primary-hover);
    transform: scale(1.05);
}

/* ========== RESPONSIVE ========== */

/* Tablette large : réduire taille police et espacement */
@media (max-width: 1200px) {
    .category-container {
        gap: 20px;
    }

    .category-container a {
        font-size: 17px;
    }
}

/* Tablette : réduire encore */
@media (max-width: 900px) {
    .category-navbar {
        padding: 15px 0;
        margin-bottom: 60px;
    }

    .category-container {
        gap: 15px;
    }

    .category-container a {
        font-size: 15px;
    }
}

/* Mobile : cacher la navbar car remplacée par le menu unifié */
@media (max-width: 768px) {
    .search-filters {
        margin: 0 !important;
    }

    /* Cacher complètement la navbar sur mobile */
    .category-navbar {
        display: none !important;
    }

    .navbar-toggle,
    .category-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .navbar-toggle {
        margin-left: 15px;
        padding: 8px 10px;
    }

    .hamburger-line {
        width: 24px;
        height: 2.5px;
        margin: 4px 0;
    }

    .category-container a {
        font-size: 15px;
        padding: 12px 20px;
    }
}