/* ================================================================
   LuxAdult — CSS Principal
   Palette : Noir #0A0A0A | Or #C9A84C | Blanc cassé #F5F0E8
   Mobile-first
================================================================ */

/* ---- Reset & Variables ---- */
:root {
    --black:      #0A0A0A;
    --black-soft: #111111;
    --black-mid:  #1A1A1A;
    --black-card: #161616;
    --border:     #2A2A2A;
    --gold:       #C9A84C;
    --gold-light: #D4B45F;
    --gold-dim:   #8A6E2F;
    --white:      #F5F0E8;
    --white-dim:  #C8C3BB;
    --grey:       #888888;
    --grey-dark:  #444444;
    --red:        #C0392B;
    --green:      #27AE60;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-h:   80px;
    --nav-h:      44px;
    --bottom-nav: 64px;

    --radius:     8px;
    --radius-lg:  12px;
    --shadow:     0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: var(--bottom-nav);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ================================================================
   HEADER
================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--black-soft);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--header-h);
    position: relative;
}

/* Logo — styles de base partagés entre header ET footer */
.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
/* Centrage absolu réservé au logo du HEADER uniquement — appliqué à .logo
   en général, ça partait n'importe où sur la page pour le logo du footer,
   qui partage la même classe mais un conteneur non positionné. */
.header-inner .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.logo-img { height: 68px; width: auto; display: block; }
.logo-lux   { color: var(--white); }
.logo-adult { color: var(--gold); }

/* Search bar (desktop) — remplacée par une icône loupe dans header-actions,
   ce bloc reste dans le HTML pour compat mais ne s'affiche plus jamais. */
.search-bar {
    flex: 1;
    position: relative;
    display: none !important;
}

.search-bar input {
    width: 100%;
    background: var(--black-mid);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 10px 44px 10px 18px;
    color: var(--white);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--gold); }
.search-bar input::placeholder { color: var(--grey); }

#search-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--grey);
    padding: 4px;
    transition: color 0.2s;
}
#search-btn:hover { color: var(--gold); }

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    z-index: 200;
    max-height: 360px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}
.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    cursor: pointer;
}
.search-suggest-item:hover { background: var(--black-mid); }
.search-suggest-item:last-child { border-bottom: none; }
.suggest-img {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--black-mid);
}
.suggest-name  { font-size: 0.85rem; font-weight: 500; }
.suggest-price { font-size: 0.8rem; color: var(--gold); margin-top: 2px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

.header-icon.search-icon-desktop { display: none; }
@media (min-width: 1024px) { .header-icon.search-icon-desktop { display: flex; } }

.header-icon.search-icon-mobile { display: flex; }
@media (min-width: 1024px) { .header-icon.search-icon-mobile { display: none; } }

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: var(--white-dim);
    transition: color 0.2s, background 0.2s;
}
.header-icon:hover { color: var(--gold); background: var(--black-mid); }

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--white-dim);
}
.burger span {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s;
}
@media (min-width: 1024px) { .burger { display: none; } }

/* Cart badge */
.cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Main nav ---- */
.main-nav {
    background: var(--black-soft);
    border-top: 1px solid var(--border);
    display: none;
}
@media (min-width: 1024px) { .main-nav { display: block; } }

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    height: var(--nav-h);
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 100%;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white-dim);
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ---- Mega-menu (desktop) ---- */
.nav-item { position: relative; }

.mega-toggle {
    display: none; /* visible uniquement en mobile, cf. media query plus bas */
    background: none;
    border: none;
    color: var(--white-dim);
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    max-width: 640px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    padding: 10px 0;
    z-index: 150;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) var(--black-card);
}
/* Chrome / Edge / Safari */
.mega-panel::-webkit-scrollbar { width: 6px; }
.mega-panel::-webkit-scrollbar-track { background: var(--black-card); }
.mega-panel::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}
.mega-panel::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.mega-list { list-style: none; }
.mega-list li a {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--white-dim);
    white-space: normal;
    line-height: 1.3;
    transition: color 0.15s, background 0.15s;
}
.mega-list li a:hover { color: var(--gold); background: var(--black-mid); }

/* Niveau 2 (top du mega-panel) : plusieurs colonnes CSS si la liste est
   longue, sections mises en valeur */
.mega-list-depth-0 {
    column-width: 220px;
    column-gap: 0;
    padding: 0 4px;
}
.mega-list-depth-0 > li { break-inside: avoid; }
.mega-list-depth-0 > li > a { font-weight: 600; color: var(--white); padding-top: 12px; }

/* Niveaux 3+ : indentation croissante, taille dégressive */
.mega-list-depth-1 li a,
.mega-list-depth-2 li a,
.mega-list-depth-3 li a {
    padding-left: 34px;
    font-size: 0.8rem;
    color: var(--grey);
}
.mega-list-depth-2 li a { padding-left: 48px; }
.mega-list-depth-3 li a { padding-left: 62px; }

/* Miniature optionnelle devant un lien d'en-tête (n'apparaît que si
   image_url est renseignée en base — actuellement rarement le cas,
   câblé pour être prêt le jour où ces images existeront) */
.mega-heading-link { display: flex; align-items: center; gap: 8px; }
.mega-thumb {
    width: 24px; height: 24px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--black-mid);
}
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CTA en bas de panneau */
.mega-cta {
    display: block;
    margin: 8px 20px 4px;
    padding: 8px 14px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}
.mega-cta:hover { background: var(--gold); color: var(--black); }

/* Flyout (niveaux profonds, 3+) : repositionné en fixed par JS
   (voir app.js) pour échapper à l'overflow-x: hidden du panneau */
.mega-flyout-trigger { position: relative; }
.mega-flyout-trigger > a { padding-right: 30px; }
.mega-flyout-chevron {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--grey);
    pointer-events: none;
}
.mega-flyout-panel {
    display: none;
    min-width: 200px;
    max-width: 280px;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-left: 2px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 0;
    z-index: 200;
}
.mega-flyout-panel.is-open { display: block; }
.mega-flyout-panel .mega-list li a { padding-left: 18px; }

@media (min-width: 1024px) {
    .mega-panel {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    }
    .nav-item.has-mega:hover > .mega-panel,
    .nav-item.has-mega:focus-within > .mega-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ---- Menu mobile : tiroir plein écran + accordéon ---- */
@media (max-width: 1023px) {
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, 86vw);
        height: 100%;
        background: var(--black-soft);
        border-top: none;
        border-left: 1px solid var(--border);
        overflow-y: auto;
        z-index: 95;
        transition: right 0.25s ease;
        padding-top: calc(var(--header-h) + 12px);
    }
    .main-nav.is-open { right: 0; }

    .nav-list { flex-direction: column; height: auto; gap: 0; }

    .nav-item { border-bottom: 1px solid var(--border); }
    .nav-item.has-mega { display: flex; flex-wrap: wrap; align-items: stretch; }
    .nav-item.has-mega .nav-link { flex: 1; }

    .nav-link {
        height: auto;
        padding: 14px 20px;
        width: 100%;
    }

    .mega-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        transition: transform 0.2s;
    }
    .nav-item.mega-open .mega-toggle { transform: rotate(180deg); color: var(--gold); }

    .mega-panel {
        position: static;
        width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--black-mid);
        padding: 0;
        display: none;
    }
    .nav-item.mega-open .mega-panel { display: block; }
    .mega-list li a { padding: 12px 20px 12px 36px; border-top: 1px solid var(--border); }

    /* Le flyout JS est desktop-only (voir app.js) : sur mobile on retombe
       sur un affichage inline classique, sinon les catégories de niveau 3+
       deviendraient injoignables dans l'accordéon. */
    .mega-flyout-panel {
        display: block;
        position: static;
        max-width: none;
        max-height: none;
        overflow: visible;
        border: none;
        border-left: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    .mega-flyout-chevron { display: none; }
    .mega-cta { margin: 8px 20px; }
}

/* Mobile nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 90;
}

/* ================================================================
   FLASH MESSAGES
================================================================ */
.flash {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
}
.flash--success { background: #1a3a25; border-bottom: 2px solid var(--green); color: #5dca8a; }
.flash--error   { background: #3a1a1a; border-bottom: 2px solid var(--red);   color: #e07070; }
.flash--info    { background: #1a2a3a; border-bottom: 2px solid #4a90d9;     color: #7ab3e8; padding: 16px 20px; border-radius: var(--radius); }
.flash-close    { background: none; border: none; color: inherit; font-size: 1.1rem; opacity: 0.6; }
.flash-close:hover { opacity: 1; }

/* ================================================================
   BREADCRUMB
================================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--grey);
    padding: 14px 0;
    flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--grey-dark); }

/* ================================================================
   PRODUCT CARD
================================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
}
@media (min-width: 640px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

/* Carte héro : occupe un bloc 2x2 dans la grille Sélection (desktop uniquement,
   en dessous de 2 colonnes ça n'a pas de sens de forcer un span). */
@media (min-width: 640px) {
    .product-grid-hero .product-card-hero {
        grid-column: span 2;
        grid-row: span 2;
    }
    .product-grid-hero .product-card-hero .product-card-name {
        font-size: 1.1rem;
        -webkit-line-clamp: 3;
    }
    .product-grid-hero .product-card-hero .product-card-price {
        font-size: 1.3rem;
    }
    .product-grid-hero .product-card-hero .product-card-brand {
        font-size: 0.8rem;
    }
    .product-grid-hero .product-card-hero .badge-selection {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}
.product-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-2px);
}

.product-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--black-mid);
    position: relative;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-mid);
    color: var(--gold-dim);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }

.product-card-brand {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.product-card-name {
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.product-card-price-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.product-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}
.product-card-price-compare {
    font-size: 0.8rem;
    color: var(--grey);
    text-decoration: line-through;
}
.product-card-add {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.product-card-add:hover { background: var(--gold); color: var(--black); }

.badge-unavailable {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,0.75);
    color: var(--grey);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.badge-variants {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.75);
    color: var(--gold);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.badge-selection {
    position: absolute;
    bottom: 8px; left: 8px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.badge-discount {
    position: absolute;
    bottom: 8px; right: 8px;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.product-card-img-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s;
}
.product-card:hover .product-card-img-hover { opacity: 1; }

.badge-bestseller {
    position: absolute;
    top: 0; left: 0;
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px 4px 8px;
    border-bottom-right-radius: var(--radius);
}

.product-card-stock-low {
    font-size: 0.7rem;
    color: var(--red);
    font-weight: 600;
    margin-top: 4px;
}

/* Scroll horizontal mobile — Sélection / Meilleures ventes / Nouveautés,
   remplace la grille 2 colonnes par des rangées "à parcourir" façon vitrine.
   Ne s'applique qu'en dessous du premier breakpoint de la grille (640px). */
@media (max-width: 639px) {
    .product-grid-scroll {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .product-grid-scroll::-webkit-scrollbar { display: none; }
    .product-grid-scroll .product-card {
        scroll-snap-align: start;
        flex: 0 0 42%;
        min-width: 148px;
    }
    .product-grid-scroll .product-card-hero {
        flex-basis: 42%;
    }
}

/* ================================================================
   SECTION TITLES
================================================================ */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
}
.section-title span { color: var(--gold); }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-link {
    font-size: 0.85rem;
    color: var(--gold);
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 2px;
    transition: color 0.2s;
}
.section-link:hover { color: var(--gold-light); }

/* ================================================================
   BOUTONS
================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
    text-align: center;
}
.btn-primary  { background: var(--gold); color: var(--black); }
.btn-primary:hover  { background: var(--gold-light); }
.btn-outline  { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover  { background: var(--gold); color: var(--black); }
.btn-dark     { background: var(--black-mid); color: var(--white); border: 1px solid var(--border); }
.btn-dark:hover     { border-color: var(--gold); }
.btn-full     { width: 100%; }
.btn-lg       { padding: 16px 32px; font-size: 1rem; }

/* ================================================================
   PAGINATION
================================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 0;
    max-width: 100%;
}
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--white-dim);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.page-link:hover    { border-color: var(--gold); color: var(--gold); }
.page-link.active   { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 700; }
.page-link.disabled { opacity: 0.3; pointer-events: none; }

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
    background: var(--black-soft);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p { color: var(--grey); font-size: 0.85rem; line-height: 1.7; margin-top: 12px; }
.footer-logo    { margin-bottom: 8px; display: inline-block; }
.footer-social  { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    color: var(--grey);
    transition: color 0.2s;
    display: flex;
}
.footer-social a:hover { color: var(--gold); }

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a  { color: var(--grey); font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-newsletter {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 8px;
    text-align: center;
}
.footer-newsletter h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}
.footer-newsletter p {
    color: var(--grey);
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.footer-newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    background: var(--black-mid);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--white);
    font-size: 0.9rem;
}
.footer-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
.footer-newsletter-form button {
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.footer-newsletter-form button:hover { background: var(--gold-light); }
.footer-newsletter-form button:disabled { opacity: 0.6; cursor: default; }
.footer-newsletter-msg { font-size: 0.8rem; margin-top: 10px; min-height: 1em; }
.footer-newsletter-msg.success { color: var(--green); }
.footer-newsletter-msg.error   { color: var(--red); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--grey-dark);
}
.footer-discreet { color: var(--grey-dark); }

/* ================================================================
   BOTTOM NAV MOBILE
================================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav);
    background: var(--black-soft);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
}
@media (min-width: 1024px) { .bottom-nav { display: none; } }

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--grey);
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--gold); }

.cart-badge-mobile {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    background: var(--gold);
    color: var(--black);
    font-size: 0.6rem;
    font-weight: 700;
    width: 14px; height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================================
   FILTRES CATALOGUE
================================================================ */
.catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0 32px;
}
@media (min-width: 1024px) {
    .catalog-layout { grid-template-columns: 240px 1fr; }
}

.filters-sidebar {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-h) + var(--nav-h) + 16px);
}
/* Sur mobile, plusieurs blocs de filtres sont ouverts par défaut
   (Sous-catégories, Disponibilité, Prix, Taille, Marques...) — la somme
   dépasse largement la hauteur de l'écran. Un élément sticky plus haut que
   le viewport donne une sensation de page bloquée, impossible de faire
   défiler jusqu'à la grille produits. On repasse en flux normal en dessous
   de 1024px : les filtres restent simplement au-dessus de la grille.
   Le bloc Marques garde son propre défilement interne (max-height:200px),
   ça ne change pas. */
@media (max-width: 1023px) {
    .filters-sidebar { position: static; top: auto; }
}

.filter-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-title::-webkit-details-marker { display: none; }
.filter-title::after {
    content: '›';
    display: inline-block;
    transform: rotate(90deg);
    transition: transform 0.15s;
    color: var(--grey);
    font-size: 1rem;
}
details.filter-group[open] > .filter-title::after { transform: rotate(-90deg); }
.filter-group { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 14px; }
.filter-group:last-of-type { border-bottom: none; }
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--white-dim);
    transition: color 0.2s;
}
.filter-option:hover { color: var(--white); }
.filter-option input[type="checkbox"] { accent-color: var(--gold); }

/* Sort bar */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sort-bar-count { font-size: 0.85rem; color: var(--grey); }
.sort-select {
    background: var(--black-mid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--white);
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}
.sort-select:focus { border-color: var(--gold); }

/* ================================================================
   FICHE PRODUIT
================================================================ */
.product-page {
    padding: 16px 0 48px;
}
.product-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}
@media (min-width: 768px) {
    .product-page-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .product-page-grid { grid-template-columns: 55% 45%; }
}

/* Galerie */
.product-gallery { position: relative; }
.gallery-main {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* carré garanti, même sans support CSS aspect-ratio */
    background: var(--black-mid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
}
.gallery-main img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-bottom: 4px;
}
.gallery-thumb {
    width: 72px; height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Infos produit */
.product-info {}
.product-info-brand {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.product-info-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}
.product-info-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.product-info-price-sub {
    font-size: 0.8rem;
    color: var(--grey);
    margin-bottom: 20px;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}
.stock-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.stock-dot.in  { background: var(--green); }
.stock-dot.out { background: var(--red); }
.stock-in  { color: var(--green); }
.stock-out { color: var(--red); }

/* Variations */
.variations-group { margin-bottom: 20px; }
.variations-label { font-size: 0.8rem; color: var(--grey); margin-bottom: 8px; }
.variations-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variation-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--white-dim);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.variation-btn:hover,
.variation-btn.active { border-color: var(--gold); color: var(--gold); }
.variation-btn.out    { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; pointer-events: none; }

.variation-swatch {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    box-shadow: inset 0 0 0 2px var(--black-card);
}
.variation-swatch:hover { transform: scale(1.08); }
.variation-swatch.active {
    border-color: var(--gold);
    box-shadow: inset 0 0 0 2px var(--black-card), 0 0 0 2px var(--gold);
}

/* Quantité + Ajouter */
.product-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}
.qty-btn {
    width: 40px; height: 48px;
    background: var(--black-mid);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    transition: background 0.2s;
}
.qty-btn:hover { background: var(--border); }
.qty-num {
    width: 48px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

.product-desc {
    color: var(--white-dim);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 24px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.desc-heading {
    display: inline-block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 8px;
}

.product-meta {
    font-size: 0.8rem;
    color: var(--grey);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.product-meta span { color: var(--grey-dark); }

/* Reassurance */
.reassurance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.reassurance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--black-mid);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 0.8rem;
    color: var(--white-dim);
}
.reassurance-icon { font-size: 1.1rem; }

/* ================================================================
   HOMEPAGE
================================================================ */
.hero {
    padding: 24px 0 8px;
    text-align: center;
}
.hero-sub-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 28px;
    color: var(--white);
}
@media (min-width: 768px) { .hero-sub-title { font-size: 1.9rem; } }
.hero-sub-title .gold { color: var(--gold); }

/* Search mobile (dans le hero) */
.hero-search {
    max-width: 480px;
    margin: 0 auto 8px;
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    background: var(--black-mid);
}
.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
}
.hero-search input::placeholder { color: var(--grey); }
.hero-search button {
    background: var(--gold);
    border: none;
    padding: 14px 20px;
    color: var(--black);
    font-weight: 600;
    transition: background 0.2s;
}
.hero-search button:hover { background: var(--gold-light); }

/* Category grid */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 0 40px;
}
.categories-grid .category-card { flex: 0 0 calc((100% - 12px) / 2); }
@media (min-width: 640px)  { .categories-grid .category-card { flex-basis: calc((100% - 24px) / 3); } }
@media (min-width: 1024px) { .categories-grid .category-card { flex-basis: calc((100% - 36px) / 4); } }

.category-card {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-2px);
}
.category-card-promo {
    border-color: var(--gold);
    background: linear-gradient(145deg, var(--black-card), rgba(201,168,76,0.08));
}
.category-card-promo .category-card-img { background: rgba(201,168,76,0.15); }
.category-card-promo .category-card-name { color: var(--gold); }
.category-card-img {
    width: 56px; height: 56px;
    background: var(--black-mid);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    overflow: hidden;
}
.category-card-img img { width: 100%; height: 100%; object-fit: cover; }
.category-card-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white-dim);
}

/* Brands strip */
.brands-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
}
.brands-strip.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.brands-strip::-webkit-scrollbar { display: none; }
.brand-chip {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
    width: 130px;
}
.brand-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.brand-chip-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    padding: 4px 8px;
}
.brand-chip-logo img { max-height: 100%; max-width: 100%; min-height: 0; min-width: 0; display: block; object-fit: contain; }
.brand-chip-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: .3px;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
}
.brand-chip:hover .brand-chip-name { color: var(--gold); }
.brand-chip-count { font-size: 0.7rem; color: var(--grey); }

/* Section padding */
.section { padding-top: 40px; padding-bottom: 40px; }
.section + .section { padding-top: 0; }
.hero + .section { padding-top: 8px; }


/* ================================================================
   PAGES LÉGALES
================================================================ */
.legal-page {
    padding-top: 40px;
    padding-bottom: 64px;
    max-width: 860px;
}
.legal-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.legal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.legal-updated {
    font-size: .82rem;
    color: var(--grey);
}
.legal-content section {
    margin-bottom: 36px;
}
.legal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.legal-content h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--white);
    margin: 16px 0 8px;
}
.legal-content p {
    color: var(--white-dim);
    font-size: .9rem;
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-content ul,
.legal-content ol {
    color: var(--white-dim);
    font-size: .9rem;
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 12px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--gold); }
.legal-content a:hover { color: var(--gold-light); }
.legal-content strong { color: var(--white); }
 
/* ================================================================
   MINI-PANIER (drawer)
================================================================ */
.cart-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    opacity: 0;
    transition: opacity .25s ease;
}
.cart-drawer-overlay.is-visible { opacity: 1; }

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 100%;
    max-width: 400px;
    background: var(--black-soft);
    border-left: 1px solid var(--border);
    z-index: 310;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-drawer-header h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 600;
}
.cart-drawer-close {
    background: none; border: none; color: var(--white-dim);
    font-size: 1.1rem; opacity: 0.7; padding: 4px 8px;
}
.cart-drawer-close:hover { opacity: 1; color: var(--white); }

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}
.cart-drawer-item {
    display: flex; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-item:last-child { border-bottom: none; }
.cart-drawer-item-img {
    width: 64px; height: 64px; flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--black-card);
    display: flex; align-items: center; justify-content: center;
}
.cart-drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-item-info { flex: 1; min-width: 0; }
.cart-drawer-item-name {
    font-size: .85rem; color: var(--white);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 4px;
}
.cart-drawer-item-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .8rem; color: var(--grey);
}
.cart-drawer-item-price { color: var(--gold); font-weight: 600; }
.cart-drawer-item-unavailable {
    font-size: .7rem; color: var(--red); margin-top: 2px;
}

.cart-drawer-empty {
    text-align: center; padding: 48px 16px; color: var(--grey);
}
.cart-drawer-empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: .6; }

.cart-drawer-footer {
    flex-shrink: 0;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
}
.cart-drawer-totals-row {
    display: flex; justify-content: space-between;
    font-size: .85rem; color: var(--white-dim);
    margin-bottom: 6px;
}
.cart-drawer-totals-row.total {
    font-size: 1rem; color: var(--white); font-weight: 600;
    padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--border);
}
.cart-drawer-actions {
    display: flex; flex-direction: column; gap: 8px; margin-top: 14px;
}
.cart-drawer-actions .btn { width: 100%; text-align: center; }

/* ================================================================
   GALERIE PRODUIT — swipe tactile mobile
================================================================ */
.gallery-main {
    touch-action: pan-y;
}
.gallery-dots {
    display: flex; gap: 6px; justify-content: center;
    margin-top: 8px;
}
@media (min-width: 768px) { .gallery-dots { display: none; } }
.gallery-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--grey-dark);
    transition: background .2s ease;
}
.gallery-dot.active { background: var(--gold); }

/* ================================================================
   FICHE PRODUIT — CTA sticky mobile
================================================================ */
.product-sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: var(--bottom-nav);
    z-index: 120;
    background: var(--black-soft);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
    transform: translateY(100%);
    transition: transform .25s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
}
.product-sticky-cta.is-visible { transform: translateY(0); }
.product-sticky-cta-price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.product-sticky-cta .btn { flex: 1; }
@media (min-width: 1024px) { .product-sticky-cta { display: none; } }

/* ================================================================
   AVIS CLIENTS
================================================================ */
.stars {
    --percent: calc(var(--rating, 0) / 5 * 100%);
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 2px;
}
.stars::before {
    content: '★★★★★';
    background: linear-gradient(90deg, var(--gold) var(--percent), var(--border) var(--percent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stars-lg { font-size: 1.5rem; letter-spacing: 3px; }

.product-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: var(--white-dim);
    margin-bottom: 10px;
}
.product-rating-count { color: var(--grey); }

.reviews-section {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}
.reviews-summary-score {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.reviews-summary-count { color: var(--grey); font-size: 0.85rem; margin-top: 6px; }

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    max-width: 700px;
}
.review-item {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.review-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.review-author { font-weight: 600; color: var(--white); font-size: 0.85rem; }
.review-date { color: var(--grey); font-size: 0.78rem; margin-left: auto; }
.review-title { font-weight: 600; margin-bottom: 6px; color: var(--white); }
.review-body { color: var(--white-dim); font-size: 0.88rem; line-height: 1.6; margin-bottom: 0; }

.review-form-wrap { max-width: 600px; }
.review-form { display: flex; flex-direction: column; gap: 12px; }

.review-form-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    font-size: 1.6rem;
}
.review-form-rating input { position: absolute; opacity: 0; pointer-events: none; }
.review-form-rating label { color: var(--border); cursor: pointer; transition: color 0.15s; }
.review-form-rating input:checked ~ label,
.review-form-rating label:hover,
.review-form-rating label:hover ~ label { color: var(--gold); }

.review-form-input {
    background: var(--black-mid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}
.review-form-input:focus { outline: none; border-color: var(--gold); }

/* ================================================================
   FILTRES — Taille & Couleur
================================================================ */
.filter-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-size-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--white-dim);
    cursor: pointer;
    transition: all 0.15s ease;
}
.filter-size-chip:hover { border-color: var(--gold-dim); }
.filter-size-chip:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
}

.filter-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-color-swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    box-shadow: inset 0 0 0 2px var(--black-card);
}
.filter-color-swatch:hover { transform: scale(1.1); }
.filter-color-swatch:has(input:checked) {
    border-color: var(--gold);
    transform: scale(1.08);
}

/* ================================================================
   MENU DÉROULANT SOUS-CATÉGORIES (pages catégorie)
================================================================ */
.subcategory-tree { font-size: 0.85rem; }
.subcat-list { list-style: none; }
.subcat-item { margin-bottom: 2px; }
.subcat-item > a {
    display: block;
    padding: 6px 4px;
    color: var(--white-dim);
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.subcat-item > a:hover { color: var(--gold); background: var(--black-mid); }
.subcat-item details { position: relative; }
.subcat-item details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 2px 0;
    font-weight: 400;
    color: var(--white-dim);
}
.subcat-item details > summary::-webkit-details-marker { display: none; }
.subcat-item details > summary::after {
    content: '›';
    display: inline-block;
    transform: rotate(90deg);
    transition: transform 0.15s;
    color: var(--grey);
    font-size: 1.1rem;
    margin-left: 6px;
}
.subcat-item details[open] > summary::after { transform: rotate(-90deg); }
.subcat-item details > summary > a {
    flex: 1;
    color: inherit;
    font-weight: inherit;
}

.filter-scroll-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) var(--black-mid);
}
.filter-scroll-list::-webkit-scrollbar { width: 6px; }
.filter-scroll-list::-webkit-scrollbar-track { background: var(--black-mid); }
.filter-scroll-list::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}
.filter-scroll-list::-webkit-scrollbar-thumb:hover { background: var(--gold); }