/* =====================================================================
   BOUTIQUE — shop-catalog.css
   Page catalogue et pages catégorie : en-tête, filtres latéraux,
   barre de tri, grille produits, mise en avant.
   Modifiable sans impact sur les autres écrans.
   ===================================================================== */

/* En-tête du catalogue : même écriture que les bandeaux de vitrine —
   indigo profond, emplacement média en fond, voile pour le contraste.
   Aucun dégradé décoratif. */
.cat-hero {
    position: relative;
    overflow: hidden;
    background: var(--gk-indigo-deep);
    color: #fff;
    padding: 0 0 44px;
}
.cat-hero__bg { position: absolute; inset: 0; z-index: 0; }
.cat-hero__bg::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(102deg,
        rgba(30, 30, 82, .96) 0%,
        rgba(30, 30, 82, .90) 46%,
        rgba(30, 30, 82, .68) 100%);
}
.cat-hero > .container { position: relative; z-index: 1; padding-top: 34px; }
.cat-hero .shop-h1 { color: #fff; }
.cat-hero .gk-breadcrumb { color: rgba(255,255,255,.55); padding-top: 0; margin-bottom: 18px; }
.cat-hero .gk-breadcrumb a { color: rgba(255,255,255,.72); }
.cat-hero .gk-breadcrumb a:hover { color: #fff; }
.cat-hero .gk-breadcrumb .current { color: #fff; }
.cat-hero .gk-breadcrumb .sep { color: rgba(255,255,255,.3); }

.cat-hero-sub { color: rgba(255,255,255,.78); font-size: .98rem; margin: 14px 0 0; max-width: 64ch; line-height: 1.65; }
.cat-hero-meta {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    margin-top: 22px;
}
.cat-hero-meta strong { color: #fff; }
.cat-hero-scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-hero-scope a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.24);
    font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.86);
}
.cat-hero-scope a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; }
.cat-hero-scope a.is-active { background: #fff; border-color: #fff; color: var(--gk-indigo-deep); }
.cat-hero-scope a svg { width: 14px; height: 14px; }

.cat-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding-top: 28px;
}
.cat-layout.no-aside { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ── Filtres ────────────────────────────────────────────────────────── */
.cat-aside {
    position: sticky; top: var(--shop-sticky-top);
    background: var(--shop-surface);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-sh-sm);
    padding: 20px;
}
@media (max-width: 960px) {
    .cat-aside { position: static; }
    .cat-aside-toggle { display: inline-flex !important; }
    .cat-aside[hidden] { display: none; }
}
.cat-aside-toggle { display: none; }

.cat-fgroup + .cat-fgroup { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--shop-line); }
.cat-fgroup-title {
    font-size: .74rem; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; color: var(--shop-muted); margin: 0 0 11px;
}
.cat-flist { list-style: none; margin: 0; padding: 0; }
.cat-flist li + li { margin-top: 3px; }
.cat-flist a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 6px 9px; border-radius: 7px;
    font-size: .875rem; color: var(--shop-body); text-decoration: none;
    transition: background var(--shop-tr), color var(--shop-tr);
}
.cat-flist a:hover { background: var(--shop-surface-3); color: var(--shop-accent); }
.cat-flist a.is-active { background: var(--shop-accent); color: #fff; font-weight: 700; }
.cat-flist a .n { font-size: .74rem; opacity: .7; }
.cat-flist .sub { margin: 3px 0 0 12px; padding-left: 9px; border-left: 1px solid var(--shop-line); }

.cat-attr-values { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-attr-values a {
    padding: 5px 11px; border-radius: 6px;
    border: 1.5px solid var(--shop-line-strong);
    font-size: .8rem; font-weight: 700; color: var(--shop-body); text-decoration: none;
    transition: all var(--shop-tr);
}
.cat-attr-values a:hover { border-color: var(--shop-accent); color: var(--shop-accent); }
.cat-attr-values a.is-active { background: var(--shop-accent); border-color: var(--shop-accent); color: #fff; }

.cat-attr-values a.is-color {
    width: 28px; height: 28px; padding: 0; border-radius: 50%;
    position: relative; border-width: 2px; border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
.cat-attr-values a.is-color.is-active { border-color: var(--shop-accent); }

.cat-price-row { display: flex; align-items: center; gap: 8px; }
.cat-price-row input {
    width: 100%; padding: 8px 10px; font-size: .82rem;
    border: 1.5px solid var(--shop-line-strong); border-radius: 6px;
    font-family: inherit;
}
.cat-price-row span { color: var(--shop-muted); font-size: .8rem; }

.cat-reset {
    display: block; text-align: center; margin-top: 16px;
    font-size: .82rem; font-weight: 700; color: var(--shop-ko); text-decoration: none;
}
.cat-reset:hover { text-decoration: underline; }

/* ── Barre de tri ───────────────────────────────────────────────────── */
.cat-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.cat-count { font-size: .88rem; color: var(--shop-body); }
.cat-count strong { color: var(--shop-ink); font-weight: 800; }
.cat-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-sort select {
    padding: 9px 13px; border-radius: 999px;
    border: 1.5px solid var(--shop-line-strong);
    background: var(--shop-surface); color: var(--shop-ink);
    font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.cat-quickfilters { display: flex; gap: 6px; }
.cat-quickfilters a {
    padding: 8px 13px; border-radius: 999px;
    font-size: .8rem; font-weight: 700; text-decoration: none;
    background: var(--shop-surface); color: var(--shop-body);
    box-shadow: var(--shop-sh-sm);
    transition: all var(--shop-tr);
}
.cat-quickfilters a:hover { color: var(--shop-accent); }
.cat-quickfilters a.is-active { background: var(--shop-ink); color: #fff; }

/* ── Puces de filtres actifs ────────────────────────────────────────── */
.cat-active-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.cat-active-chips a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--shop-surface-3); color: var(--shop-ink);
    font-size: .79rem; font-weight: 700; text-decoration: none;
}
.cat-active-chips a:hover { background: var(--shop-ko-bg); color: var(--shop-ko); }
.cat-active-chips a::after { content: '×'; font-size: 1rem; line-height: 1; opacity: .6; }

/* ── Mise en avant ──────────────────────────────────────────────────── */
.cat-featured { margin-bottom: 34px; }
.cat-featured-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cat-featured-head h2 { font-family: var(--gk-font-title); font-size: 1.05rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.cat-featured-head .line { flex: 1; height: 1px; background: var(--shop-line); }

/* ── Catégories en vignettes ────────────────────────────────────────── */
.cat-tiles {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px; margin-bottom: 30px;
}
.cat-tile {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--shop-radius); aspect-ratio: 4 / 3;
    background: var(--shop-surface-3); text-decoration: none;
    box-shadow: var(--shop-sh-sm);
    transition: transform var(--shop-tr), box-shadow var(--shop-tr);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shop-sh-md); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-label {
    position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
    background: linear-gradient(transparent, rgba(20,16,28,.82));
    color: #fff; font-family: var(--gk-font-title); font-weight: 800; font-size: .92rem;
    letter-spacing: -.01em;
}
.cat-tile-label small { display: block; font-weight: 600; font-size: .74rem; opacity: .8; margin-top: 2px; }

/* ── Secteurs annoncés mais pas encore référencés ────────────────────
   Affichés en texte simple, pas en liens : un lien vers une catégorie
   vide est une déception programmée. */
.cat-soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cat-soon li {
    font-size: .82rem; line-height: 1.4;
    color: var(--shop-muted);
    padding-left: 14px; position: relative;
}
.cat-soon li::before {
    content: ''; position: absolute; left: 0; top: .55em;
    width: 5px; height: 5px; border-radius: 50%;
    border: 1px solid var(--shop-line-strong);
}
.cat-soon-cta {
    display: block; margin-top: 14px;
    font-size: .8rem; font-weight: 600; line-height: 1.45;
    color: var(--gk-green-deep);
}
.cat-soon-cta:hover { text-decoration: underline; }
