/* ═══════════════════════════════════════════════════════════════════════════
   Vestiário Global — design system "Catálogo".
   Paleta quente/âmbar, Teko + Work Sans + IBM Plex Mono, cantos arredondados,
   tema claro/escuro. Base visual do handoff standalone, adaptada para o app
   PHP (dados vêm do banco; sem admin-no-navegador).
   ═════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg:#F5F7F2; --surface:#FFFFFF; --surface-2:#EBF0E7; --ink:#1B241E; --muted:#5E6A5F;
  --border:#DCE3D7; --accent:#D98A22; --accent-ink:#3A2405; --favorite:#B5402A; --favorite-ink:#FFF6F2; --danger:#B5402A;
  --shadow:0 1px 2px rgba(20,30,20,.04), 0 8px 24px -12px rgba(20,30,20,.18);
  --font-display:'Teko','Oswald',sans-serif;
  --font-body:'Work Sans','Segoe UI',sans-serif;
  --font-mono:'IBM Plex Mono','SFMono-Regular',monospace;
  --radius-sm:7px; --radius-md:13px; --radius-lg:20px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#10150F; --surface:#181F19; --surface-2:#202A21; --ink:#EBF1E9; --muted:#98A498; --border:#2A342B;
    --accent:#E7A94B; --accent-ink:#231502; --favorite:#D9694F; --favorite-ink:#1E0C08; --danger:#D9694F;
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"]{
  --bg:#10150F; --surface:#181F19; --surface-2:#202A21; --ink:#EBF1E9; --muted:#98A498; --border:#2A342B;
  --accent:#E7A94B; --accent-ink:#231502; --favorite:#D9694F; --favorite-ink:#1E0C08; --danger:#D9694F;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.6);
}

*{box-sizing:border-box;}
html{color-scheme:light dark;}
body{margin:0; background:var(--bg); color:var(--ink); font-family:var(--font-body); font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; min-height:100vh; display:flex; flex-direction:column;}
img{max-width:100%;}
h1,h2,h3{font-family:var(--font-display); font-weight:600; text-wrap:balance; margin:0; letter-spacing:.2px;}
a{color:inherit;}
button{font-family:inherit; cursor:pointer;}
input,select{font-family:inherit;}
::selection{background:var(--accent); color:var(--accent-ink);}
@media (prefers-reduced-motion: reduce){ *{animation-duration:.001ms !important; transition-duration:.001ms !important;} }
[hidden]{display:none !important;}
.wrap{max-width:1280px; width:100%; margin:0 auto; padding:0 clamp(16px,3vw,28px);}
.visually-hidden{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}

/* ---------- Header ---------- */
header.site{ position:sticky; top:0; z-index:50; background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.header-row{ display:flex; align-items:center; gap:18px; max-width:1280px; margin:0 auto; padding:12px clamp(16px,3vw,28px); }
.wordmark{display:flex; align-items:baseline; gap:9px; flex:0 0 auto; text-decoration:none;}
.wordmark .ball{font-size:1.25rem;}
.wordmark h1{font-size:clamp(1.35rem,2.2vw,1.7rem); letter-spacing:.5px; text-transform:uppercase;}
.wordmark .tag{font-size:.68rem; color:var(--muted); text-transform:uppercase; letter-spacing:1.3px; font-weight:600;}
.search-box{ flex:1 1 auto; max-width:380px; position:relative; margin-left:auto; }
.search-box input{ width:100%; padding:8px 13px 8px 34px; border-radius:999px; border:1px solid var(--border); background:var(--surface); color:var(--ink); font-size:.9rem; }
.search-box input:focus-visible{outline:2px solid var(--accent); outline-offset:1px;}
.search-box svg{position:absolute; left:11px; top:50%; transform:translateY(-50%); width:14px; height:14px; color:var(--muted);}
.header-icons{display:flex; align-items:center; gap:8px; flex:0 0 auto;}
.icon-btn{ position:relative; display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; border:1px solid var(--border); background:var(--surface); color:var(--ink); }
.icon-btn svg{width:16px; height:16px;}
.icon-btn .badge{ position:absolute; top:-4px; right:-4px; min-width:16px; height:16px; padding:0 3px; border-radius:999px; background:var(--favorite); color:var(--favorite-ink); font-size:.6rem; font-weight:700; display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); }
.icon-btn.active-fav{border-color:var(--favorite); color:var(--favorite);}
.admin-chip{ display:flex; align-items:center; gap:7px; padding:5px 12px; border-radius:999px; border:1px solid var(--accent); background:var(--surface); font-size:.76rem; font-weight:600; white-space:nowrap; text-decoration:none; color:var(--ink); }
.admin-chip .admin-tag{font-family:var(--font-mono); font-size:.6rem; color:var(--accent); text-transform:uppercase; letter-spacing:.5px;}

/* ---------- Layout: sidebar + content ---------- */
.app-shell{display:flex; align-items:flex-start; flex:1 0 auto;}
.empty-wrap{ flex:1 0 auto; display:grid; place-items:center; padding:48px 0; }
.empty-catalog{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; max-width:460px; }
.empty-catalog .ball{ font-size:2.6rem; }
.empty-catalog h2{ font-size:1.9rem; }
.empty-catalog p{ color:var(--muted); font-size:.95rem; margin:0 0 8px; }
.sidebar{ flex:0 0 208px; position:sticky; top:61px; align-self:flex-start; padding:22px 10px 22px 0; display:flex; flex-direction:column; gap:3px; max-height:calc(100vh - 61px); overflow-y:auto; }
.sidebar .nav-group-label{ font-size:.66rem; text-transform:uppercase; letter-spacing:1.2px; color:var(--muted); font-weight:700; margin:14px 10px 4px; }
.nav-item{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:9px 10px; border-radius:var(--radius-sm); border:1px solid transparent; background:none; color:var(--ink); font-size:.92rem; font-weight:600; }
.nav-item .nav-dot{width:8px; height:8px; border-radius:50%; background:var(--dot); flex:0 0 auto;}
.nav-item .nav-sub{display:block; font-size:.68rem; color:var(--muted); font-weight:500; margin-top:1px;}
.nav-item.active{background:var(--surface); border-color:var(--border); box-shadow:var(--shadow);}
.content{flex:1 1 auto; min-width:0; padding-left:14px; border-left:1px solid var(--border);}

/* ---------- Stats ---------- */
.stats{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0 4px; }
.stat{ position:relative; display:flex; align-items:center; gap:12px; padding:14px 16px 14px 18px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--shadow); overflow:hidden; }
.stat::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--accent); }
.stat .stat-ic{ width:34px; height:34px; flex:0 0 auto; display:grid; place-items:center; border-radius:9px; background:color-mix(in srgb, var(--accent) 15%, transparent); color:var(--accent); }
.stat .stat-ic svg{ width:18px; height:18px; }
.stat .stat-txt{ display:flex; flex-direction:column; line-height:1.05; min-width:0; }
.stat .n{ font-family:var(--font-display); font-size:1.9rem; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; }
.stat .l{ font-size:.68rem; color:var(--muted); text-transform:uppercase; letter-spacing:1.1px; margin-top:1px; }

/* ---------- League rail ---------- */
nav.league-rail{ position:sticky; top:61px; z-index:20; background:var(--bg); border-bottom:1px solid var(--border); }
.rail-scroll{ display:flex; gap:8px; overflow-x:auto; max-width:1280px; margin:0 auto; padding:10px clamp(16px,3vw,28px); scrollbar-width:thin; }
.rail-scroll::-webkit-scrollbar{height:5px;}
.rail-scroll::-webkit-scrollbar-thumb{background:var(--border); border-radius:4px;}
.pill{ flex:0 0 auto; display:flex; align-items:center; gap:7px; padding:6px 12px 6px 9px; border-radius:999px; border:1px solid var(--border); background:var(--surface); color:var(--ink); font-size:.8rem; font-weight:500; white-space:nowrap; }
.pill .dot{width:8px; height:8px; border-radius:50%; background:var(--dot);}
.pill .ct{color:var(--muted); font-family:var(--font-mono); font-size:.7rem;}
.pill.active{border-color:var(--dot); background:color-mix(in srgb, var(--dot) 12%, var(--surface)); color:var(--ink);}

/* ---------- Filter bar ---------- */
.filter-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:14px 0 6px; }
.chip-group{display:flex; gap:6px; flex-wrap:wrap;}
.chip{ padding:6px 13px; border-radius:999px; border:1px solid var(--border); background:var(--surface); color:var(--muted); font-size:.8rem; font-weight:500; }
.chip.active{background:var(--ink); color:var(--bg); border-color:var(--ink);}
.chip.fav-chip.active{background:var(--favorite); color:var(--favorite-ink); border-color:var(--favorite);}
.filter-bar .spacer{flex:1 1 auto;}
.gender-toggle{ display:flex; border:1px solid var(--border); border-radius:999px; overflow:hidden; }
.gender-btn{ padding:8px 16px; font-size:.8rem; font-weight:600; background:var(--surface); color:var(--muted); border:none; }
.gender-btn.active{ background:var(--ink); color:var(--bg); }
.sort-select{ padding:7px 30px 7px 13px; border-radius:999px; border:1px solid var(--border); background:var(--surface); color:var(--ink); font-size:.8rem; }

/* selects refinados (chevron custom + foco) */
.size-select, .sort-select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  cursor:pointer; line-height:1.2;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B958A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat; background-position:right 10px center; background-size:12px;
  transition:border-color .12s ease, box-shadow .12s ease;
}
.size-select:hover, .sort-select:hover{ border-color:color-mix(in srgb, var(--ink) 30%, var(--border)); }
.size-select:focus-visible, .sort-select:focus-visible{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.size-select option, .sort-select option{ color:var(--ink); background:var(--surface); }

/* ---------- Select customizado (dropdown estilizado) ---------- */
.cs{ position:relative; display:inline-flex; vertical-align:middle; }
.cs-block{ flex:1 1 auto; min-width:0; }
select.cs-native{ position:absolute !important; opacity:0; width:1px; height:1px; padding:0; margin:0; border:0; pointer-events:none; }
.cs-btn{
  font-family:inherit; cursor:pointer; text-align:left; color:var(--ink); background:var(--surface);
  border:1px solid var(--border); display:inline-flex; align-items:center; line-height:1.2;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B958A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat; background-position:right 10px center; background-size:12px;
  transition:border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.cs-btn:hover{ border-color:color-mix(in srgb, var(--ink) 30%, var(--border)); }
.cs-btn[aria-expanded="true"]{ border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.cs-btn.for-size{ width:100%; padding:7px 28px 7px 10px; border-radius:8px; font-size:.78rem; }
.cs-btn.for-sort{ padding:7px 30px 7px 13px; border-radius:999px; font-size:.8rem; }
.cs-btn .cs-label{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.cs-menu{
  position:fixed; z-index:200; min-width:130px; padding:6px;
  background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow);
  max-height:280px; overflow-y:auto; scrollbar-width:thin;
  animation:csIn .12s ease;
}
@keyframes csIn{ from{ opacity:0; transform:translateY(-4px);} to{ opacity:1; transform:none;} }
.cs-menu[hidden]{ display:none; }
.cs-opt{ display:flex; align-items:center; gap:8px; padding:9px 11px; border-radius:8px; font-size:.85rem; color:var(--ink); cursor:pointer; white-space:nowrap; }
.cs-opt:hover{ background:color-mix(in srgb, var(--accent) 14%, transparent); }
.cs-opt.sel{ background:color-mix(in srgb, var(--accent) 20%, transparent); font-weight:600; }
.cs-opt.sel::after{ content:"✓"; margin-left:auto; color:var(--accent); font-weight:700; }
.result-count{font-family:var(--font-mono); font-size:.76rem; color:var(--muted);}
.view-blurb{font-size:.85rem; color:var(--muted); max-width:62ch; margin:2px 0 0;}

/* ---------- League section ---------- */
section.league{padding-top:48px;}
section.league:first-child{padding-top:34px;}
.league-head{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin-bottom:4px; border-top:3px solid var(--accent-color); padding-top:12px; }
.league-head h2{font-size:clamp(1.7rem,3.6vw,2.3rem); text-transform:uppercase; letter-spacing:.5px;}
.league-head .country{font-size:.82rem; color:var(--muted); font-weight:500;}
.league-head .meta{margin-left:auto; font-family:var(--font-mono); font-size:.74rem; color:var(--muted);}

.league .grid{margin-top:20px;}
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(212px,1fr)); gap:16px; align-items:start;}

/* mini escudo do time no card (identidade no grid achatado) */
.club-row{display:flex; align-items:center; gap:6px; margin-bottom:1px;}
.mini-crest{width:15px; height:15px; border-radius:50%; flex:0 0 auto; background:linear-gradient(135deg,var(--crest-a),var(--crest-b)); box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);}

/* ---------- Product card ---------- */
.card{ position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--shadow); }
.kit-visual{ position:relative; aspect-ratio:4/3.3; background:var(--surface-2); border-radius:var(--radius-md); margin:14px 14px 0; }
.kit-shape{ position:absolute; inset:11%; background:var(--k-primary); overflow:hidden; clip-path:polygon(31% 0%,69% 0%,84% 9%,100% 24%,86% 37%,76% 28%,76% 100%,24% 100%,24% 28%,14% 37%,0% 24%,16% 9%); border:1.5px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.kit-shape.retro{filter:sepia(.4) saturate(1.15) contrast(1.02);}
.kit-shape .sash{position:absolute; top:-35%; bottom:-35%; left:32%; width:38%; background:var(--k-secondary); transform:rotate(20deg);}
.kit-shape .collar{position:absolute; top:0; left:36%; width:28%; height:22%; background:var(--k-secondary); clip-path:polygon(0 0,100% 0,50% 100%);}
.kit-shape .zip{position:absolute; top:6%; bottom:0; left:48.5%; width:3%; background:var(--k-secondary);}
.kit-shape .num{position:absolute; right:8%; bottom:5%; font-family:var(--font-display); font-size:2.2rem; font-weight:600; color:var(--k-num);}
.kit-visual .chip-row{ position:absolute; top:8px; left:8px; right:44px; display:flex; flex-wrap:wrap; gap:5px; }
.kit-visual .tagchip{ background:rgba(255,255,255,.9); color:#1B241E; font-size:.64rem; font-weight:700; text-transform:uppercase; letter-spacing:.6px; padding:3px 8px; border-radius:999px; box-shadow:var(--shadow); }
.kit-visual .tagchip.retro-tag{background:var(--c-retro,#7A5C3E); color:#fff;}
.kit-visual .stylechip{ background:var(--surface); color:var(--muted); font-size:.62rem; font-weight:700; text-transform:uppercase; letter-spacing:.6px; padding:3px 8px; border-radius:999px; box-shadow:var(--shadow); border:1px solid var(--border); }
.fav-btn{ position:absolute; top:6px; right:6px; width:29px; height:29px; border-radius:50%; border:none; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; color:#1B241E; box-shadow:var(--shadow); }
.fav-btn svg{width:14px; height:14px;}
.fav-btn.active svg{fill:var(--favorite); stroke:var(--favorite);}
.product-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:var(--radius-md); }

.card-body{padding:12px 14px 14px; display:flex; flex-direction:column; gap:4px; flex:1;}
.card-body .club{font-size:.7rem; color:var(--muted); text-transform:uppercase; letter-spacing:.9px; font-weight:600;}
.card-body .pname{font-size:.98rem; font-weight:600; line-height:1.3;}
.card-body .material{font-size:.76rem; color:var(--muted); margin-bottom:4px;}
.card-foot{display:flex; flex-direction:column; margin-top:auto; padding-top:8px; gap:8px;}
.foot-row{display:flex; align-items:center; gap:8px;}
.price{font-family:var(--font-mono); font-size:1rem; font-weight:500; font-variant-numeric:tabular-nums;}
.size-select{ flex:1 1 auto; min-width:0; padding:7px 28px 7px 10px; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--ink); font-size:.78rem; }
.add-btn{ flex:0 0 auto; padding:7px 13px; border-radius:999px; border:1px solid var(--ink); background:var(--ink); color:var(--bg); font-size:.76rem; font-weight:600; transition:transform .12s ease; }
.add-btn:active{transform:scale(.94);}
.add-btn.added{background:var(--accent); border-color:var(--accent); color:var(--accent-ink);}

.empty-state{ display:none; flex-direction:column; align-items:center; gap:8px; padding:70px 20px; text-align:center; color:var(--muted); }
.empty-state.show{display:flex;}
.empty-state .ball{font-size:2rem;}

/* ---------- Footer ---------- */
footer.site-foot{ margin-top:64px; border-top:1px solid var(--border); background:var(--surface); flex-shrink:0; }
.empty-wrap + .site-foot{ margin-top:0; }
.foot-top{ display:grid; grid-template-columns:1.35fr 2fr; gap:44px; padding-block:42px 30px; }
.foot-mark{ font-family:var(--font-display); font-weight:600; font-size:1.45rem; letter-spacing:.6px; text-transform:uppercase; display:flex; align-items:center; gap:9px; }
.foot-brand p{ color:var(--muted); font-size:.88rem; max-width:46ch; margin:12px 0 18px; }
.foot-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.foot-col h4{ font-family:var(--font-body); font-size:.72rem; text-transform:uppercase; letter-spacing:1.2px; color:var(--ink); margin:0 0 13px; font-weight:700; }
.foot-col .foot-link, .foot-col .foot-txt{ display:block; text-align:left; background:none; border:none; padding:0; color:var(--muted); font-size:.86rem; margin-bottom:10px; text-decoration:none; }
.foot-col .foot-link{ cursor:pointer; }
.foot-col .foot-link:hover{ color:var(--accent); }
.foot-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; padding-block:16px 40px; border-top:1px solid var(--border); color:var(--muted); font-size:.76rem; }

/* ---------- Modals / cart ---------- */
.modal-overlay{ position:fixed; inset:0; background:rgba(10,14,10,.55); backdrop-filter:blur(2px); display:flex; align-items:center; justify-content:center; z-index:100; padding:20px; }
.modal{ position:relative; background:var(--surface); border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow); width:100%; max-width:480px; padding:26px 24px; }
.modal h2{font-size:1.6rem; margin-bottom:4px;}
.modal .sub{font-size:.86rem; color:var(--muted); margin-bottom:18px;}
.modal-close{position:absolute; top:14px; right:16px; background:none; border:none; font-size:1.1rem; color:var(--muted);}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:9px 16px; border-radius:999px; border:1px solid var(--ink); background:var(--ink); color:var(--bg); font-size:.86rem; font-weight:600; text-decoration:none;}
.btn.secondary{background:none; color:var(--ink); border-color:var(--border);}
.btn.full{width:100%;}
.btn.wa{background:#25D366; border-color:#25D366; color:#07240F; display:inline-flex; align-items:center; justify-content:center; gap:8px;}
.cart-items-list{display:flex; flex-direction:column; gap:8px; max-height:42vh; overflow-y:auto; margin-bottom:14px;}
.cart-empty{color:var(--muted); font-size:.9rem; text-align:center; padding:24px 0;}
.cart-item-row{display:grid; grid-template-columns:1fr auto auto auto; align-items:center; gap:10px; padding:9px 10px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2);}
.cart-item-name{font-size:.88rem; font-weight:600;}
.cart-item-meta{font-size:.74rem; color:var(--muted); margin-top:2px;}
.cart-item-qty{display:flex; align-items:center; gap:6px; font-size:.82rem;}
.qty-btn{width:22px; height:22px; border-radius:50%; border:1px solid var(--border); background:var(--surface); color:var(--ink); font-size:.9rem; line-height:1;}
.cart-item-price{font-size:.84rem; font-weight:600; white-space:nowrap;}
.cart-remove-btn{color:var(--muted); font-size:.8rem; padding:2px 4px; background:none; border:none;}
.cart-total-row{display:flex; align-items:center; justify-content:space-between; font-size:1.05rem; font-weight:700; padding-top:10px; border-top:1px solid var(--border); margin-bottom:14px;}
.cart-checkout-row{display:flex; flex-direction:column; gap:8px;}
.cart-note{font-size:.74rem; color:var(--muted); text-align:center; margin-top:10px;}

.toast{ position:fixed; bottom:22px; left:50%; transform:translateX(-50%) translateY(0); background:var(--ink); color:var(--bg); padding:10px 18px; border-radius:999px; font-size:.82rem; box-shadow:var(--shadow); z-index:120; opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease; }
.toast.show{opacity:1; transform:translateX(-50%) translateY(-6px);}

/* ---------- Catálogo (grid paginado) ---------- */
.catalog-main { padding: 18px 0 10px; flex: 1 0 auto; }
.col-chips { margin: 4px 0 14px; }
.chip, .gender-btn { text-decoration: none; }
a.chip:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--border)); color: var(--ink); }
.card-cta { font-size: .78rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.card-media, .card-body { text-decoration: none; color: inherit; display: block; }
.card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card:hover { border-color: color-mix(in srgb, var(--ink) 18%, var(--border)); }
.card-media .kit-visual { margin: 12px 12px 4px; }

/* paginação */
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 30px 0 10px; }
.pager-info { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.btn.is-disabled { opacity: .4; pointer-events: none; }

/* ---------- Página de produto (PDP) ---------- */
.pdp-main { padding: 18px 0 20px; flex: 1 0 auto; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb > span { opacity: .4; }
.crumb .cur { color: var(--ink); font-weight: 500; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pdp-gallery { position: sticky; top: 74px; }
.pdp-stage { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 4/5; overflow: hidden; display: flex; }
.pdp-stage img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.pdp-thumb { padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; cursor: pointer; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.pdp-info { padding-top: 6px; }
.pdp-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.pdp-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); text-transform: none; letter-spacing: 0; }
.pdp-club { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; margin: 4px 0 12px; }
.pdp-price { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; margin-bottom: 20px; }
.pdp-field { margin-bottom: 18px; }
.pdp-field > label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { min-width: 48px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .85rem; cursor: pointer; }
.size-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-add { width: 100%; padding: 13px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .95rem; margin: 6px 0 8px; }
.btn-add.added { background: var(--brasileirao, #1E8F5F); border-color: transparent; color: #fff; }
.pdp-desc { margin-top: 18px; }
.pdp-desc h4 { font-family: var(--font-body); font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 6px; }
.pdp-desc p { font-size: .92rem; color: color-mix(in srgb, var(--ink) 85%, transparent); margin: 0; }
.pdp-related { margin-top: 50px; border-top: 1px solid var(--border); padding-top: 26px; }
.pdp-related h3 { font-size: 1.5rem; margin-bottom: 18px; }

/* ---------- Responsivo ---------- */
@media (max-width:820px){
  .app-shell{flex-direction:column;}
  .sidebar{ flex:0 0 auto; position:static; width:100%; max-height:none; flex-direction:row; align-items:center; overflow-x:auto; padding:10px 0; margin-bottom:6px; border-bottom:1px solid var(--border); }
  .sidebar .nav-group-label{display:none;}
  .nav-item{flex:0 0 auto; width:auto; white-space:nowrap;}
  .nav-item .nav-sub{display:none;}
  .content{padding-left:0; border-left:none;}
  .grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px;}
  .foot-top{grid-template-columns:1fr; gap:28px;}
  .pdp{grid-template-columns:1fr; gap:22px;}
  .pdp-gallery{position:static;}
}
@media (max-width:640px){
  .header-row{flex-wrap:wrap; gap:10px 12px;}
  .wordmark{flex:0 0 auto;}
  .search-box{order:3; max-width:none; flex:1 1 100%; margin-left:0;}
  .header-icons{margin-left:auto;}
  nav.league-rail{top:0;}                 /* rail acompanha o header (dentro dele) */
  .stats{grid-template-columns:repeat(3,1fr); gap:8px;}
  .stat{padding:11px 12px; gap:9px;}
  .stat .stat-ic{width:28px; height:28px;}
  .stat .stat-ic svg{width:15px; height:15px;}
  .stat .n{font-size:1.4rem;}
  .filter-bar .spacer{display:none;}
  .filter-bar{gap:8px;}
  .sort-select{flex:1 1 auto;}
  .cs-sort{flex:1 1 auto;}
  .cs-sort .cs-btn{width:100%;}
}
@media (max-width:560px){
  .content .stats{margin:14px 0;}
  .league-head h2{font-size:1.55rem;}
  /* 2 colunas no celular: mais scannável que 1 coluna gigante */
  .grid{grid-template-columns:repeat(2,1fr); gap:10px;}
  .kit-visual{margin:10px 10px 0;}
  .card-body{padding:10px 11px 12px;}
  .card-body .pname{font-size:.9rem;}
  .price{font-size:.92rem;}
  /* ação empilhada dentro do card estreito */
  .card-foot .foot-row{flex-direction:column; align-items:stretch; gap:6px;}
  .add-btn{width:100%; text-align:center;}
  .size-select{width:100%;}
  /* carrinho: linha em 2 níveis pra caber */
  .cart-item-row{grid-template-columns:1fr auto; row-gap:8px;}
  .cart-item-qty{grid-column:1;}
  .cart-item-price{grid-column:2; grid-row:2; text-align:right;}
  .cart-remove-btn{grid-column:2; grid-row:1; justify-self:end;}
  .stat .stat-ic{display:none;}
  .foot-cols{grid-template-columns:1fr 1fr;}
  .foot-bottom{flex-direction:column; gap:4px;}
}
/* Popup de aviso (catálogo demonstrativo) */
.promo-badge{ display:inline-block; margin-bottom:10px; padding:4px 12px; border-radius:999px;
  background:color-mix(in srgb, var(--accent) 15%, transparent); color:var(--accent);
  font-size:.72rem; font-weight:700; letter-spacing:.03em; }
.promo-modal .sub strong{ color:var(--ink); }
.promo-actions{ display:flex; flex-direction:column; gap:10px; margin-top:6px; }
.promo-actions .btn{ width:100%; justify-content:center; }

/* Carrossel da página de produto — setas + contador */
.pdp-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:999px; border:none;
  background:color-mix(in srgb, var(--ink) 55%, transparent); color:var(--bg);
  font-size:1.6rem; line-height:1; display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:2; transition:background .15s, opacity .15s; opacity:.85;
}
.pdp-nav:hover{ background:var(--ink); opacity:1; }
.pdp-nav.prev{ left:10px; }
.pdp-nav.next{ right:10px; }
.pdp-counter{
  position:absolute; bottom:10px; left:50%; transform:translateX(-50%); z-index:2;
  padding:3px 10px; border-radius:999px; font-size:.72rem; font-weight:600;
  background:color-mix(in srgb, var(--ink) 55%, transparent); color:var(--bg);
}
@media (hover:none){ .pdp-nav{ opacity:.95; } }

/* Toggle de público (Adulto/Kids/Todos) — reforço visual do ativo */
.audience-toggle .gender-btn.active{ background:var(--accent); color:#fff; }

@media (max-width:380px){
  .grid{grid-template-columns:1fr;}
}
