/* ════════════════════════════════════════════════════════════════
   SUFFAYA — category.css v4.0
   Complément à catalog.css (chargé avant)
   Uniquement les styles spécifiques à la page catégorie
   ════════════════════════════════════════════════════════════════ */

/* ── Wrapper page ── */
.cg-page {
    max-width:1380px; margin:0 auto;
    padding:0 0 80px; color:var(--tx);
}

/* ── Breadcrumb — hérite de catalog.css .cl-breadcrumb ── */
.cg-breadcrumb {
    padding:10px 16px;
    background:var(--sur); border-bottom:1px solid var(--brd);
}

/* ════════════════════════════════════════
   HERO CATÉGORIE
   ════════════════════════════════════════ */
.cg-hero {
    position:relative; overflow:hidden;
    padding:32px 20px 0;
    background:
        radial-gradient(ellipse 60% 90% at 90% 50%, rgba(108,99,255,.14) 0%, transparent 60%),
        linear-gradient(135deg, rgba(108,99,255,.08) 0%, transparent 55%),
        var(--sur);
    border-bottom:1px solid var(--brd);
}

/* Grille déco */
.cg-hero-grid {
    position:absolute; inset:0; pointer-events:none;
    background-image:
        linear-gradient(rgba(108,99,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108,99,255,.04) 1px, transparent 1px);
    background-size:36px 36px;
    mask-image:linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
    -webkit-mask-image:linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
}
.cg-hero-orb { position:absolute; border-radius:50%; filter:blur(45px); pointer-events:none; }
.cg-orb1 { width:220px; height:220px; background:rgba(108,99,255,.2); top:-80px; right:-60px; }
.cg-orb2 { width:140px; height:140px; background:var(--gold); bottom:-30px; left:10%; opacity:.08; }

/* Inner hero */
.cg-hero-inner {
    position:relative; z-index:1;
    display:flex; align-items:flex-start; justify-content:space-between;
    gap:16px; flex-wrap:wrap;
}

/* Gauche : icône + titre */
.cg-hero-left {
    display:flex; align-items:flex-start; gap:16px; flex:1; min-width:0;
}
.cg-hero-icon {
    width:56px; height:56px; flex-shrink:0; border-radius:16px;
    background:rgba(108,99,255,.12); border:1.5px solid rgba(108,99,255,.3);
    display:flex; align-items:center; justify-content:center;
}
.cg-icon-img {
    width:26px; height:26px;
    filter:brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(400%) hue-rotate(220deg);
}
.cg-hero-text { flex:1; min-width:0; }
.cg-hero-label {
    display:inline-flex; align-items:center; gap:6px;
    font-size:.67rem; font-weight:700; text-transform:uppercase; letter-spacing:.5px;
    color:var(--acc); margin-bottom:8px;
}
.cg-label-ico {
    width:11px; height:11px;
    filter:brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(400%) hue-rotate(220deg);
}
.cg-hero-title {
    font-size:clamp(1.4rem, 4vw, 2rem); font-weight:900;
    color:var(--tx); letter-spacing:-.03em; line-height:1.15; margin:0 0 6px;
}
.cg-hero-desc {
    font-size:.83rem; color:var(--tx2); margin:0; max-width:480px; line-height:1.5;
}

/* Droite : stats */
.cg-hero-right {
    display:flex; gap:16px; flex-shrink:0; padding-top:4px;
}
.cg-hero-stat {
    display:flex; flex-direction:column; align-items:center; gap:2px;
    background:rgba(108,99,255,.08); border:1px solid rgba(108,99,255,.2);
    border-radius:12px; padding:10px 16px; min-width:70px;
}
.cg-hero-stat-num { font-size:1.3rem; font-weight:900; color:var(--acc); line-height:1; }
.cg-hero-stat-lbl { font-size:.65rem; font-weight:600; color:var(--mu); text-align:center; }

/* Sous-catégories dans le hero */
.cg-subcats {
    position:relative; z-index:1;
    display:flex; gap:7px; flex-wrap:nowrap; overflow-x:auto;
    padding:20px 0 18px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}
.cg-subcats::-webkit-scrollbar { display:none; }

.cg-sub-pill {
    display:inline-flex; align-items:center; gap:5px;
    background:rgba(255,255,255,.06); border:1px solid rgba(108,99,255,.2);
    border-radius:99px; padding:6px 14px; flex-shrink:0;
    font-size:.74rem; font-weight:600; color:var(--tx2);
    text-decoration:none; transition:all .18s; white-space:nowrap;
}
.cg-sub-pill:hover {
    background:rgba(108,99,255,.1); border-color:rgba(108,99,255,.4); color:var(--acc);
}
.cg-sub-ct {
    font-size:.63rem; font-weight:700; opacity:.55;
    background:rgba(108,99,255,.12); border-radius:99px; padding:1px 6px;
}
.cg-sub-pill:hover .cg-sub-ct { opacity:.85; }

/* MODE CLAIR hero */
[data-theme="light"] .cg-hero { background:linear-gradient(135deg,rgba(108,99,255,.06) 0%,transparent 55%),#f0f0f8; }
[data-theme="light"] .cg-hero-icon { background:rgba(108,99,255,.08); border-color:rgba(108,99,255,.22); }
[data-theme="light"] .cg-sub-pill { background:rgba(255,255,255,.7); color:var(--tx2); }

/* ════════════════════════════════════════
   LAYOUT — hérite cl-layout de catalog.css
   ════════════════════════════════════════ */
.cg-layout { margin:0; }

/* ════════════════════════════════════════
   ÉTAT VIDE — premium
   ════════════════════════════════════════ */
.cg-empty {
    display:flex; flex-direction:column; align-items:center;
    text-align:center; padding:48px 24px 32px; gap:20px;
}

.cg-empty-visual {
    position:relative; width:100px; height:100px;
}
.cg-empty-icon-bg {
    width:100px; height:100px; border-radius:50%;
    background:rgba(108,99,255,.08); border:2px solid rgba(108,99,255,.15);
    display:flex; align-items:center; justify-content:center;
}
.cg-empty-cat-ico {
    width:40px; height:40px;
    filter:brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(400%) hue-rotate(220deg);
    opacity:.4;
}
.cg-empty-pkg {
    position:absolute; bottom:-4px; right:-4px;
    width:36px; height:36px; border-radius:50%;
    background:var(--card); border:2px solid var(--brd);
    display:flex; align-items:center; justify-content:center;
}
.cg-empty-pkg-ico {
    width:18px; height:18px;
    filter:brightness(0) saturate(0) invert(1) opacity(.35);
}

.cg-empty-content { max-width:340px; }
.cg-empty-content h2 { font-size:1.1rem; font-weight:800; color:var(--tx); margin:0 0 8px; }
.cg-empty-content p  { font-size:.83rem; color:var(--tx2); margin:0; line-height:1.55; }

.cg-empty-actions {
    display:flex; flex-wrap:wrap; gap:10px; justify-content:center;
}
.cg-btn-primary {
    display:inline-flex; align-items:center; gap:7px;
    background:var(--acc); color:#fff;
    padding:11px 22px; border-radius:12px;
    text-decoration:none; font-weight:700; font-size:.83rem;
    transition:all .2s;
}
.cg-btn-ico { width:13px; height:13px; filter:brightness(0) invert(1); }
.cg-btn-primary:hover { background:#5a52e0; transform:translateY(-2px); box-shadow:0 8px 22px rgba(108,99,255,.35); }

.cg-btn-secondary {
    display:inline-flex; align-items:center; gap:7px;
    background:var(--card); border:1.5px solid var(--brd); color:var(--tx2);
    padding:11px 22px; border-radius:12px;
    text-decoration:none; font-weight:600; font-size:.83rem;
    transition:all .2s;
}
.cg-btn-sec-ico { width:13px; height:13px; filter:brightness(0) saturate(0) invert(1) opacity(.5); }
.cg-btn-secondary:hover { border-color:rgba(108,99,255,.4); color:var(--tx); }

/* Suggestions */
.cg-suggest { max-width:460px; width:100%; }
.cg-suggest-title { font-size:.75rem; font-weight:700; color:var(--mu); text-transform:uppercase; letter-spacing:.5px; margin-bottom:10px; }
.cg-suggest-pills { display:flex; flex-wrap:wrap; gap:7px; justify-content:center; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width:480px) {
    .cg-hero-inner  { flex-direction:column; gap:12px; }
    .cg-hero-right  { align-self:flex-start; }
    .cg-hero-stat   { padding:8px 14px; min-width:60px; }
    .cg-hero-stat-num { font-size:1.1rem; }
    .cg-hero-icon   { width:48px; height:48px; border-radius:13px; }
    .cg-icon-img    { width:22px; height:22px; }
    .cg-empty-visual { width:80px; height:80px; }
    .cg-empty-icon-bg { width:80px; height:80px; }
    .cg-empty-cat-ico { width:32px; height:32px; }
}

@media (min-width:900px) {
    .cg-hero        { padding:40px 24px 0; }
    .cg-hero-title  { font-size:2.2rem; }
    .cg-subcats     { padding:22px 0 20px; }
}
