/* ============================================================
   3F — Folha de estilo da loja
   Herdada integralmente do protótipo HTML (requisito 91).
   As variáveis de :root são sobrescritas em tempo de execução
   pelo bloco gerado em resources/views/partials/theme.php,
   alimentado por Aparência > Personalizar (requisito 35).
   ============================================================ */
/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  color-scheme: light;

  --bg:            #F6F6F3;
  --bg-sunken:     #EDEDE8;
  --surface:       #FFFFFF;
  --surface-2:     #FAFAF7;
  --surface-3:     #F2F2EE;
  --line:          #E7E6E0;
  --line-2:        #D8D7CF;

  --text:          #14201A;
  --text-2:        #48544C;
  --muted:         #67726A;

  --brand:         #2C7A45;
  --brand-hover:   #24693A;
  --brand-deep:    #123A21;
  --brand-ink:     #0B1F13;
  --brand-tint:    #EAF4EC;
  --brand-tint-2:  #D6EADB;
  --on-brand:      #FFFFFF;

  --accent:        #EFA31D;
  --accent-2:      #FFC24D;
  --accent-soft:   #FDF3DC;
  --accent-ink:    #6A4A00;

  --danger:        #C0431E;

  --ring:          0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  --shadow-xs:     0 1px 2px rgba(11,31,19,.05);
  --shadow-sm:     0 1px 2px rgba(11,31,19,.05), 0 2px 6px -2px rgba(11,31,19,.10);
  --shadow-md:     0 2px 6px -2px rgba(11,31,19,.08), 0 12px 28px -14px rgba(11,31,19,.22);
  --shadow-lg:     0 8px 20px -10px rgba(11,31,19,.20), 0 30px 60px -28px rgba(11,31,19,.40);
  --shadow-pop:    0 12px 24px -12px rgba(11,31,19,.22), 0 40px 80px -40px rgba(11,31,19,.45);

  --r-xs: 8px; --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 24px; --r-2xl: 32px; --r-pill: 999px;

  --container: 1320px;
  --gutter: 24px;
  --header-h: 132px; /* só p/ scroll-padding: o topo fixo se posiciona sozinho */

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  --font-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #0A110D;
  --bg-sunken:     #060B08;
  --surface:       #111A14;
  --surface-2:     #16211A;
  --surface-3:     #1B2820;
  --line:          #22312A;
  --line-2:        #2E4034;

  --text:          #E9F1EB;
  --text-2:        #B4C4BA;
  --muted:         #8B9C92;

  --brand:         #4FB56C;
  --brand-hover:   #61C67E;
  --brand-deep:    #0F2C1A;
  --brand-ink:     #060D09;
  --brand-tint:    #14251A;
  --brand-tint-2:  #1B3323;
  --on-brand:      #05130A;

  --accent:        #FFC24D;
  --accent-2:      #FFD27A;
  --accent-soft:   #2A2113;
  --accent-ink:    #FFD98A;

  --danger:        #E2704A;

  --shadow-xs:     0 1px 2px rgba(0,0,0,.4);
  --shadow-sm:     0 1px 2px rgba(0,0,0,.4), 0 2px 6px -2px rgba(0,0,0,.5);
  --shadow-md:     0 2px 6px -2px rgba(0,0,0,.5), 0 12px 28px -14px rgba(0,0,0,.7);
  --shadow-lg:     0 8px 20px -10px rgba(0,0,0,.6), 0 30px 60px -28px rgba(0,0,0,.8);
  --shadow-pop:    0 12px 24px -12px rgba(0,0,0,.6), 0 40px 80px -40px rgba(0,0,0,.9);
}

/* ============================================================
   2. BASE
   ============================================================ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background .3s var(--ease), color .3s var(--ease);
}
h1, h2, h3, .price, .display { font-family: var(--font-display); letter-spacing: -.02em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-tint-2); color: var(--brand-deep); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[data-theme="dark"] :focus-visible { outline-color: var(--accent); }

.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 500; top: -80px; left: 16px; padding: 12px 18px; border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand); font-weight: 600; box-shadow: var(--shadow-lg); transition: top .2s var(--ease); }
.skip-link:focus { top: 16px; }

.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.i-fill { fill: currentColor; stroke: none; }

/* trilhos horizontais reutilizáveis */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; scroll-padding-inline: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* revelação em scroll — só esconde quando o JS está ativo e confirma suporte */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* fotos recortadas do banner (não há fotos individuais de produto) */
.ph { background-color: #0D1811; background-image: url('../img/hero-tools.png'); background-repeat: no-repeat; }

/* ============================================================
   3. BOTÕES E CHIPS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(11,31,19,.18), 0 8px 20px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 2px 4px rgba(11,31,19,.2), 0 14px 26px -14px var(--brand); }
.btn-accent { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #2A1E00; box-shadow: 0 2px 4px rgba(90,61,0,.18), 0 14px 28px -16px rgba(239,163,29,.9); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-glass { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.10); color: #fff; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); transition: .2s var(--ease); }
.iconbtn:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.iconbtn:disabled { opacity: .35; cursor: default; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }

/* ============================================================
   4. BARRA DE AVISOS + CABEÇALHO
   ============================================================ */
.announce { position: relative; z-index: 60; background: var(--brand-ink); color: #D9E6DC; font-size: 12.5px; }
.announce .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
/* fluxo inline: o texto quebra como frase, não como blocos soltos */
.announce-msg { margin: 0; padding: 10px 0; }
.announce-msg .i { display: inline-block; margin-right: 7px; vertical-align: -4px; color: var(--accent); }
.announce-msg b { color: #fff; font-weight: 600; }
.announce-msg em { font-style: normal; padding: 2px 8px; border-radius: var(--r-xs); background: rgba(239,163,29,.16); color: var(--accent-2); font-weight: 700; letter-spacing: .04em; }
.announce-links { display: flex; gap: 22px; font-size: 12px; color: #9FB2A6; }
.announce-links a:hover { color: #fff; }
.announce-fade { animation: fadeSwap .5s var(--ease-out); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.header-stack { position: sticky; z-index: 70; top: 0; transition: box-shadow .3s var(--ease); }
.header-stack.scrolled { box-shadow: var(--shadow-md); }
.site-header { position: relative; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.header-stack.scrolled .site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.6) blur(14px); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 80px; transition: height .3s var(--ease); }
.header-stack.scrolled .header-inner { height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text b { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

.cep-btn { display: flex; align-items: center; gap: 9px; flex: none; height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); text-align: left; transition: .2s var(--ease); }
.cep-btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.cep-btn .i { color: var(--brand); }
.cep-btn small { display: block; font-size: 10.5px; color: var(--muted); }
.cep-btn b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* busca */
.search-wrap { position: relative; z-index: 80; flex: 1; min-width: 160px; }
.search-form { position: relative; display: flex; align-items: center; height: 48px; padding: 0 6px 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface-2); transition: .2s var(--ease); }
.search-form:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: var(--ring); }
.search-form > .i { color: var(--muted); }
.search-form input { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; background: none; font-size: 14px; }
.search-form input:focus { outline: 0; }
.search-form input::placeholder { color: var(--muted); }
.search-clear { display: none; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); align-items: center; justify-content: center; }
.search-clear.on { display: inline-flex; }
.search-clear:hover { background: var(--surface-3); color: var(--text); }
.search-submit { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; background: var(--brand); color: var(--on-brand); transition: .2s var(--ease); }
.search-submit:hover { background: var(--brand-hover); }

.search-panel { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: none; max-height: min(66vh, 520px); overflow: auto; padding: 6px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-pop); }
.search-panel.open { display: block; animation: popIn .22s var(--ease-out); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.99); } to { opacity: 1; transform: none; } }
.search-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; }
.search-head b { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.popular { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 12px 14px; }
.popular button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 500; transition: .2s var(--ease); }
.popular button:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.sresult { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: var(--r); text-align: left; transition: background .15s var(--ease); }
.sresult:hover { background: var(--surface-3); }
.sresult .ph { height: 52px; border-radius: var(--r-xs); background-size: 190px auto; }
.sresult small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sresult b { display: block; overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sresult strong { font-family: var(--font-display); font-size: 14px; color: var(--brand); }
.search-empty { padding: 22px 14px 26px; text-align: center; color: var(--muted); font-size: 13px; }
.search-empty .i { margin: 0 auto 8px; width: 26px; height: 26px; }

/* ações do cabeçalho */
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.haction { position: relative; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); color: var(--text-2); transition: .2s var(--ease); }
.haction:hover { background: var(--surface-3); color: var(--text); }
.haction small { display: block; font-size: 10.5px; color: var(--muted); }
.haction b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.haction-icon { width: 44px; padding: 0; justify-content: center; }
.count-badge { position: absolute; top: 3px; right: 3px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border-radius: var(--r-pill); border: 2px solid var(--surface); background: var(--brand); color: var(--on-brand); font-family: var(--font); font-size: 10px; font-weight: 700; font-style: normal; }
.haction.cart .count-badge { background: var(--accent); color: #2A1E00; }
.count-badge[hidden] { display: none; }
.count-badge.pulse { animation: badgePop .4s var(--ease-out); }
@keyframes badgePop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.mobile-menu, .mobile-account { display: none; }

/* ============================================================
   5. NAVEGAÇÃO DE CATEGORIAS + MEGA MENU
   ============================================================ */
.catnav { position: relative; z-index: 1; background: var(--surface); border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.header-stack.scrolled .catnav { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.6) blur(14px); }
.catnav-inner { position: relative; display: flex; align-items: center; gap: 6px; height: 52px; }
.allcats { display: flex; align-items: center; gap: 9px; flex: none; height: 38px; padding: 0 16px; border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 600; transition: .2s var(--ease); }
.allcats:hover { background: var(--brand-hover); }
.allcats .chev { transition: transform .25s var(--ease); }
.allcats[aria-expanded="true"] .chev { transform: rotate(180deg); }
.catnav-links { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav-links::-webkit-scrollbar { display: none; }
.catlink { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 13px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--text-2); transition: .18s var(--ease); }
.catlink:hover { background: var(--surface-3); color: var(--text); }
.catlink.hot { color: var(--danger); font-weight: 600; }
.catlink.hot:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.catnav-inner .dropdown { position: relative; }
.dropdown-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; visibility: hidden; opacity: 0; width: 250px; padding: 8px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-pop); transform: translateY(-6px); transition: .2s var(--ease); }
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel { visibility: visible; opacity: 1; transform: none; }
.dropdown-panel a { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); transition: .15s var(--ease); }
.dropdown-panel a:hover { background: var(--brand-tint); color: var(--brand); }
.dropdown-panel a .i { opacity: 0; transform: translateX(-4px); transition: .18s var(--ease); }
.dropdown-panel a:hover .i { opacity: 1; transform: none; }
.dropdown-panel .all { margin-top: 4px; background: var(--brand-tint); color: var(--brand); font-weight: 600; font-size: 12px; }

.mega { position: absolute; top: calc(100% + 10px); right: 0; left: 0; z-index: 10; visibility: hidden; opacity: 0; display: grid; grid-template-columns: 250px 1fr 260px; gap: 8px; padding: 10px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-pop); transform: translateY(-8px); transition: .24s var(--ease); }
.mega.open { visibility: visible; opacity: 1; transform: none; }
.mega-nav { display: grid; align-content: start; gap: 2px; padding: 6px; border-radius: var(--r-lg); background: var(--surface-2); }
.mega-nav button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; text-align: left; color: var(--text-2); transition: .16s var(--ease); }
.mega-nav button .i { opacity: .4; }
.mega-nav button:hover, .mega-nav button.on { background: var(--surface); color: var(--brand); font-weight: 600; box-shadow: var(--shadow-xs); }
.mega-nav button.on .i { opacity: 1; }
.mega-body { padding: 16px 18px; }
.mega-body h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.mega-body > p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.mega-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 10px; }
.mega-list a { padding: 7px 10px; border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); transition: .15s var(--ease); }
.mega-list a:hover { background: var(--brand-tint); color: var(--brand); }
.mega-promo { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border-radius: var(--r-lg); background-image: linear-gradient(180deg, rgba(7,25,13,.15), rgba(7,25,13,.92)), url('../img/workshop-banner.png'); background-position: 62% center; background-size: cover; color: #fff; }
.mega-promo span { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-2); }
.mega-promo b { display: block; margin: 6px 0 12px; font-family: var(--font-display); font-size: 19px; line-height: 1.2; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero { padding-top: 24px; }
.hero-card { position: relative; height: clamp(400px, 46vw, 540px); overflow: hidden; border-radius: var(--r-2xl); background: var(--brand-ink); box-shadow: var(--shadow-lg); }
.hslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease-out), visibility .7s; }
.hslide.on { opacity: 1; visibility: visible; }
.hslide-media { position: absolute; inset: 0; background-position: center right; background-size: cover; transform: scale(1.06); transition: transform 7s linear; }
.hslide.on .hslide-media { transform: scale(1); }
.hslide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,19,10,.95) 0%, rgba(9,32,17,.86) 34%, rgba(9,32,17,.35) 60%, rgba(9,32,17,.05) 78%); }
.hslide-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; width: min(58%, 640px); padding: 0 clamp(28px, 4.5vw, 60px); color: #fff; }
.hslide-copy > * { opacity: 0; transform: translateY(14px); }
.hslide.on .hslide-copy > * { animation: heroIn .7s var(--ease-out) forwards; }
.hslide.on .hslide-copy > :nth-child(1) { animation-delay: .05s; }
.hslide.on .hslide-copy > :nth-child(2) { animation-delay: .13s; }
.hslide.on .hslide-copy > :nth-child(3) { animation-delay: .21s; }
.hslide.on .hslide-copy > :nth-child(4) { animation-delay: .29s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); color: #CFE7D6; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-tag .i { color: var(--accent-2); }
.hslide h1 { margin: 18px 0 14px; font-size: clamp(30px, 4.1vw, 54px); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.hslide p { margin: 0 0 28px; max-width: 30em; color: #C9DDCE; font-size: clamp(14px, 1.2vw, 17px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-nav { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,25,15,.4); color: #fff; backdrop-filter: blur(10px); opacity: 0; transition: .25s var(--ease); }
.hero-card:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-nav.prev { left: 18px; } .hero-nav.next { right: 18px; }
.hero-nav:hover { background: rgba(10,25,15,.72); }
.hero-dots { position: absolute; z-index: 4; bottom: 26px; left: clamp(28px, 4.5vw, 60px); display: flex; gap: 8px; }
.hero-dot { position: relative; width: 34px; height: 4px; overflow: hidden; border-radius: var(--r-pill); background: rgba(255,255,255,.28); transition: width .3s var(--ease); }
.hero-dot.on { width: 58px; }
.hero-dot i { position: absolute; inset: 0; width: 0; border-radius: inherit; background: var(--accent-2); }
.hero-dot.on i { animation: dotFill 6.5s linear forwards; }
@keyframes dotFill { to { width: 100%; } }
.hero-card.paused .hero-dot.on i { animation-play-state: paused; }

/* faixa de confiança sobreposta */
.trust-strip { position: relative; z-index: 5; margin-top: -34px; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.trust-item { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: var(--r-lg); transition: background .2s var(--ease); }
.trust-item:hover { background: var(--surface-2); }
.trust-item .ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: var(--r); background: var(--brand-tint); color: var(--brand); }
.trust-item b { display: block; font-size: 13px; font-weight: 600; }
.trust-item small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }

/* ============================================================
   7. CABEÇALHOS DE SEÇÃO
   ============================================================ */
.section { padding-top: clamp(44px, 5vw, 68px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.sec-head h2 { margin: 6px 0 0; font-size: clamp(21px, 2.2vw, 29px); font-weight: 700; letter-spacing: -.03em; }
.sec-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.sec-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); }
.link-more .i { transition: transform .2s var(--ease); }
.link-more:hover .i { transform: translateX(3px); }

/* ============================================================
   8. CATEGORIAS EM DESTAQUE
   ============================================================ */
.cat-rail { padding-bottom: 4px; }
.cat-card { display: grid; justify-items: center; gap: 10px; flex: 0 0 auto; width: 124px; padding: 6px 4px 10px; border-radius: var(--r-lg); text-align: center; transition: .22s var(--ease); }
.cat-card:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.cat-thumb { position: relative; width: 96px; height: 96px; overflow: hidden; border-radius: 30px; box-shadow: inset 0 0 0 1px rgba(11,31,19,.08); transition: .3s var(--ease-out); }
.cat-card:hover .cat-thumb { border-radius: 24px; transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(11,31,19,.08), 0 12px 22px -12px rgba(11,31,19,.5); }
.cat-thumb .ph { position: absolute; inset: 0; background-size: 300px auto; transition: transform .5s var(--ease-out); }
.cat-card:hover .cat-thumb .ph { transform: scale(1.1); }
.cat-card b { font-size: 12.5px; font-weight: 600; line-height: 1.25; }

/* ============================================================
   9. BLOCOS COMERCIAIS (4 COLUNAS)
   ============================================================ */
.deals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deal { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); transition: .25s var(--ease); }
.deal:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.deal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.deal-head .ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand); }
.deal-head h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.deal.timer .deal-head .ic { background: var(--accent-soft); color: var(--accent-ink); }
.countdown { display: flex; align-items: center; gap: 5px; margin: 0 18px 10px; }
.countdown span { min-width: 30px; padding: 4px 0; border-radius: var(--r-xs); background: var(--brand-ink); color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.countdown i { color: var(--muted); font-style: normal; font-weight: 700; }
.deal-items { flex: 1; padding: 0 8px; }
.mini { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); transition: background .18s var(--ease); }
.mini:hover { background: var(--surface-2); }
.mini + .mini { box-shadow: inset 0 1px 0 var(--line); }
.mini:hover + .mini, .mini:hover { box-shadow: none; }
.mini .ph { height: 64px; border-radius: var(--r-sm); background-size: 220px auto; }
.mini-info { min-width: 0; padding-right: 34px; }
.mini-info b { display: -webkit-box; overflow: hidden; font-size: 12.5px; font-weight: 500; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mini-info small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); text-decoration: line-through; }
.mini-info strong { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); }
.mini-add { position: absolute; right: 8px; bottom: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--brand); transition: .2s var(--ease); }
.mini-add:hover { border-color: var(--brand); background: var(--brand); color: var(--on-brand); transform: scale(1.06); }
.deal-foot { padding: 8px 18px 16px; }
.deal-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.deal-foot a:hover .i { transform: translateX(3px); }
.deal-foot .i { transition: transform .2s var(--ease); }

/* ============================================================
   10. CARD DE PRODUTO
   ============================================================ */
.prod-rail { padding: 4px 2px 6px; }
.pcard { position: relative; display: flex; flex-direction: column; flex: 0 0 auto; width: calc((var(--container) - 4 * 14px) / 5 - 2px); max-width: 260px; padding: 12px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .2s var(--ease); }
.pcard:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-md); }
.pcard-media { position: relative; overflow: hidden; height: 176px; margin-bottom: 14px; border-radius: var(--r-lg); background: var(--brand-ink); }
.pcard-media .ph { position: absolute; inset: 0; background-size: 420px auto; transition: transform .55s var(--ease-out); }
.pcard:hover .pcard-media .ph { transform: scale(1.08); }
.badge { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #2A1E00; font-size: 11px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
.fav { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(12,26,17,.45); color: #fff; backdrop-filter: blur(8px); transition: .2s var(--ease); }
.fav:hover { background: rgba(12,26,17,.8); transform: scale(1.08); }
.fav.on { background: #fff; border-color: #fff; color: var(--danger); }
.fav.on .i { fill: currentColor; stroke: currentColor; }
.pcard .brand-name { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pcard h3 { display: -webkit-box; overflow: hidden; height: 36px; margin: 6px 0 8px; font-family: var(--font); font-size: 13.5px; font-weight: 500; line-height: 1.34; letter-spacing: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.stars { position: relative; display: inline-flex; gap: 2px; color: var(--line-2); }
.stars .i { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.stars .fill { position: absolute; top: 0; left: 0; display: inline-flex; gap: 2px; overflow: hidden; color: var(--accent); }
.rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.rating small { font-size: 11px; color: var(--muted); }

.price-old { display: flex; align-items: center; gap: 8px; height: 18px; }
.price-old s { font-size: 11.5px; color: var(--muted); }
.price-old b { padding: 2px 6px; border-radius: var(--r-xs); background: var(--brand-tint); color: var(--brand); font-size: 10px; font-weight: 700; }
.price { margin: 2px 0 0; font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
.pix { display: flex; align-items: center; gap: 5px; margin: 3px 0 2px; font-size: 11.5px; font-weight: 600; color: var(--brand); }
.installments { display: block; min-height: 30px; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pcard .btn { margin-top: auto; }
.pcard-body { display: flex; flex-direction: column; flex: 1; }

/* ============================================================
   11. BENEFÍCIOS, BANNER, MARCAS, BLOG, NEWSLETTER
   ============================================================ */
.benefits { margin-top: clamp(44px, 5vw, 68px); }
.benefits-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; border-radius: var(--r-2xl); background: linear-gradient(135deg, var(--brand-deep), var(--brand-ink) 65%); box-shadow: var(--shadow-md); }
.benefit { display: flex; align-items: center; gap: 14px; padding: 20px 18px; border-radius: var(--r-xl); color: #DDEADF; transition: background .25s var(--ease); }
.benefit:hover { background: rgba(255,255,255,.05); }
.benefit .ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r); background: rgba(239,163,29,.14); color: var(--accent-2); }
.benefit b { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.benefit small { display: block; margin-top: 3px; font-size: 11.5px; color: #9FB2A6; }

.workshop { position: relative; overflow: hidden; height: clamp(320px, 34vw, 400px); margin-top: clamp(44px, 5vw, 68px); border-radius: var(--r-2xl); box-shadow: var(--shadow-md); }
.workshop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.workshop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,19,10,.94) 0%, rgba(9,32,17,.84) 36%, rgba(9,32,17,.25) 62%, transparent 80%); }
.workshop-copy { position: absolute; z-index: 2; top: 50%; left: clamp(24px, 4vw, 52px); transform: translateY(-50%); max-width: min(52%, 560px); color: #fff; }
.workshop-copy h2 { margin: 16px 0 12px; font-size: clamp(24px, 3vw, 38px); font-weight: 800; line-height: 1.06; letter-spacing: -.032em; }
.workshop-copy p { margin: 0 0 24px; color: #C9DDCE; font-size: clamp(13.5px, 1.15vw, 16px); }
.workshop-stats { display: flex; gap: 10px; margin-top: 22px; }
.wstat { padding: 10px 14px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.wstat b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.wstat small { font-size: 10.5px; color: #A9C0B0; letter-spacing: .04em; text-transform: uppercase; }

.brands { margin-top: clamp(44px, 5vw, 68px); padding: 26px 0; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.brands h2 { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--muted); }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 32s linear infinite; }
.brands:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--muted); opacity: .75; transition: .2s var(--ease); }
.marquee-track span:hover { color: var(--brand); opacity: 1; }

/* grid editorial: 1 matéria em destaque + 4 compactas, sem linha órfã */
.blog-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 18px; }
.post { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); transition: .28s var(--ease-out); }
/* Preso ao .blog-grid: é o mosaico da home, onde o primeiro post ocupa
   duas linhas. Sem escopo, a regra vazava para a listagem do blog e para
   "outras matérias", deixando o primeiro card maior que os vizinhos. */
.blog-grid .post:first-child { grid-row: span 2; }
.blog-grid .post:first-child .post-img { flex: 1; height: auto; min-height: 250px; }
.blog-grid .post:first-child .post-img b { font-size: 92px; }
.blog-grid .post:first-child .post-body h3 { font-size: 21px; }
.post:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-md); }
.post-img { position: relative; height: 172px; display: grid; place-items: center; overflow: hidden; }
.post-img b { font-family: var(--font-display); font-size: 62px; font-weight: 800; color: rgba(255,255,255,.16); }
.post-img .chip { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.9); color: var(--brand-deep); backdrop-filter: blur(6px); }
.post-body { padding: 18px 20px 20px; }
.post-body h3 { margin: 0 0 12px; font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.post-body a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); }
.post:hover .post-body a .i { transform: translateX(3px); }
.post-body a .i { transition: transform .2s var(--ease); }

.newsletter { margin-top: clamp(44px, 5vw, 68px); }
.news-inner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r-2xl); background: linear-gradient(120deg, var(--brand-deep), var(--brand-ink) 70%); color: #fff; box-shadow: var(--shadow-md); }
.news-inner::before { content: ''; position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(239,163,29,.22), transparent 68%); }
.news-copy { position: relative; z-index: 2; }
.news-copy h2 { margin: 14px 0 10px; font-size: clamp(22px, 2.5vw, 32px); font-weight: 800; letter-spacing: -.032em; }
.news-copy p { margin: 0; color: #B9CFC0; font-size: 14px; }
.news-copy .eyebrow { color: var(--accent-2); }
.news-form { position: relative; z-index: 2; display: flex; gap: 10px; padding: 7px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.news-form input { flex: 1; min-width: 0; height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: #fff; font-size: 14px; }
.news-form input::placeholder { color: #8FA697; }
.news-form input:focus { outline: 0; }
.news-ok { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); font-weight: 600; }
.news-ok .i { color: var(--accent-2); }

/* ============================================================
   12. RODAPÉ
   ============================================================ */
footer { margin-top: clamp(52px, 6vw, 80px); background: var(--brand-ink); color: #A9BBAF; }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 44px; padding: 56px 0 40px; }
.footer-brand .brand-text b, .footer-brand .brand-text small { color: #fff; }
.footer-brand .brand-text small { color: #7D9186; }
.footer-brand p { max-width: 280px; margin: 18px 0 22px; font-size: 13px; line-height: 1.65; }
.socials { display: flex; gap: 9px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2B3B31; color: #C6D6CB; transition: .2s var(--ease); }
.socials a:hover { border-color: var(--brand); background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-main h3 { margin: 0 0 16px; color: #fff; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-main nav a { display: block; padding: 6px 0; font-size: 13px; transition: .18s var(--ease); }
.footer-main nav a:hover { color: #fff; transform: translateX(3px); }
.footer-trust { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid #1D2A22; }
.footer-trust > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-trust b { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7D9186; }
.footer-trust span { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: var(--r-xs); border: 1px solid #2B3B31; background: #121D16; font-size: 11px; font-weight: 600; color: #C6D6CB; }
.footer-bottom { padding: 18px 0; background: #060D09; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 11.5px; color: #6D8177; }

/* ============================================================
   13. DRAWERS, MODAIS E FLUTUANTES
   ============================================================ */
.scrim { position: fixed; z-index: 110; inset: 0; opacity: 0; pointer-events: none; background: rgba(5,14,8,.55); backdrop-filter: blur(3px); transition: opacity .3s var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer { position: fixed; z-index: 120; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100%); background: var(--surface); border-radius: var(--r-xl) 0 0 var(--r-xl); box-shadow: var(--shadow-pop); transform: translateX(102%); visibility: hidden; transition: transform .38s var(--ease-out), visibility .38s; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer-head small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer-head b { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.drawer-body { flex: 1; overflow: auto; }
.freeship { padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; }
.freeship p { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; }
.freeship .i { color: var(--brand); }
.freeship b { color: var(--brand); }
.bar { height: 6px; overflow: hidden; border-radius: var(--r-pill); background: var(--line); }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .5s var(--ease-out); }
.cart-line { display: grid; grid-template-columns: 86px 1fr; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-line .ph { height: 86px; border-radius: var(--r); background-size: 280px auto; }
.cart-line small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cart-line b { display: -webkit-box; overflow: hidden; margin: 3px 0 6px; font-size: 13px; font-weight: 500; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cart-line strong { display: block; margin-bottom: 10px; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); }
.stepper button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-2); transition: .18s var(--ease); }
.stepper button:hover { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-xs); }
.stepper span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.line-actions { display: flex; align-items: center; gap: 12px; }
.line-remove { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); transition: color .18s var(--ease); }
.line-remove:hover { color: var(--danger); }
.empty { display: grid; place-content: center; justify-items: center; gap: 6px; height: 100%; padding: 40px 30px; text-align: center; }
.empty .ic { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 10px; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.empty h3 { margin: 0; font-size: 17px; }
.empty p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.cart-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -8px 24px -18px rgba(11,31,19,.5); }
.cart-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; font-size: 13px; }
.cart-row.total { margin-bottom: 12px; font-size: 14px; }
.cart-row.total b { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cart-foot small { display: block; margin-bottom: 14px; font-size: 11.5px; color: var(--muted); }
.cart-foot .btn + .btn { margin-top: 8px; }

.drawer-left { right: auto; left: 0; border-radius: 0 var(--r-xl) var(--r-xl) 0; transform: translateX(-102%); }
.mobile-nav { padding: 8px; }
.mobile-nav details { border-radius: var(--r); overflow: hidden; }
.mobile-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r); font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; transition: background .18s var(--ease); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary:hover { background: var(--surface-2); }
.mobile-nav details[open] summary { background: var(--brand-tint); color: var(--brand); }
.mobile-nav details[open] summary .i { transform: rotate(180deg); }
.mobile-nav summary .i { transition: transform .2s var(--ease); }
.mobile-nav details a { display: block; padding: 10px 16px 10px 28px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--text-2); }
.mobile-nav details a:hover { background: var(--surface-2); color: var(--brand); }
.mobile-extra { padding: 12px 16px 24px; border-top: 1px solid var(--line); margin-top: 8px; }
.mobile-extra a { display: flex; align-items: center; gap: 10px; padding: 11px 4px; font-size: 13.5px; color: var(--text-2); }
.mobile-extra a:hover { color: var(--brand); }

.modal-layer { position: fixed; z-index: 150; inset: 0; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; background: rgba(5,14,8,.6); backdrop-filter: blur(4px); transition: opacity .28s var(--ease); }
.modal-layer.open { opacity: 1; pointer-events: auto; }
.modal { position: relative; width: min(440px, 100%); padding: 34px 32px 32px; border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--shadow-pop); text-align: center; transform: translateY(14px) scale(.98); transition: transform .32s var(--ease-out); }
.modal-layer.open .modal { transform: none; }
.modal .ic { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.modal h2 { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.modal p { margin: 0; font-size: 13.5px; color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: .18s var(--ease); }
.modal-close:hover { background: var(--surface-3); color: var(--text); }
.cep-form { display: flex; gap: 8px; margin-top: 22px; }
.cep-form input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface-2); font-size: 15px; letter-spacing: .04em; text-align: center; }
.cep-form input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.modal-hint { margin-top: 14px; font-size: 11.5px; color: var(--muted); }

.toast { position: fixed; z-index: 250; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; max-width: min(340px, calc(100vw - 40px)); padding: 14px 18px; border-radius: var(--r-pill); background: var(--brand-ink); color: #fff; box-shadow: var(--shadow-pop); font-size: 13.5px; font-weight: 500; opacity: 0; transform: translateY(18px) scale(.96); pointer-events: none; transition: .32s var(--ease-out); }
.toast.show { opacity: 1; transform: none; }
.toast .i { color: var(--accent-2); }

.fabs { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.fab { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: var(--shadow-lg); transition: .25s var(--ease); }
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab-wa { background: #25D366; color: #fff; }
.fab-top { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
body:has(.toast.show) .fabs { transform: translateY(-58px); transition: transform .32s var(--ease-out); }

/* ============================================================
   14. RESPONSIVO
   ============================================================ */
/* o cabeçalho colapsa em etapas: rótulos, depois ações secundárias */
@media (max-width: 1340px) {
  .haction .txt { display: none; }
  .haction { width: 44px; padding: 0; justify-content: center; }
  .cep-btn small { display: none; }
}
@media (max-width: 1200px) {
  .pcard { width: 250px; }
  .mega { grid-template-columns: 230px 1fr; }
  .mega-promo { display: none; }
  .haction.orders { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 124px; }
  .haction.support { display: none; }
  .announce-links { display: none; }
  .announce { font-size: 11.5px; }
  .announce .container { justify-content: center; text-align: center; }
  .deals { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .benefits-inner { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .post:first-child { grid-column: span 2; grid-row: auto; }
  .post:first-child .post-img { min-height: 190px; }
  .footer-main { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .news-inner { grid-template-columns: 1fr; gap: 26px; }
  .workshop-copy { max-width: 72%; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; --header-h: 128px; }
  .catnav { display: none; }
  .header-inner { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; gap: 8px 10px; height: auto; padding: 12px 0 14px; }
  .header-stack.scrolled .header-inner { height: auto; }
  .mobile-menu { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); color: var(--text); }
  .brand { grid-column: 2; }
  .brand-text small { display: none; }
  .cep-btn { display: none; }
  .header-actions { grid-column: 3; gap: 2px; }
  .haction.support, .haction.orders, .haction.account { display: none; }
  .mobile-account { display: grid; }
  .search-wrap { grid-column: 1 / -1; grid-row: 2; }
  .hero { padding-top: 14px; }
  .hero-card { height: 420px; border-radius: var(--r-xl); }
  .hslide-copy { width: 100%; padding-right: 24px; }
  .hslide::after { background: linear-gradient(115deg, rgba(6,19,10,.96) 0%, rgba(9,32,17,.9) 45%, rgba(9,32,17,.55) 100%); }
  .hero-nav { display: none; }
  .trust-strip { margin-top: 20px; }
  .trust-inner { grid-template-columns: 1fr; padding: 6px; }
  .trust-item { padding: 12px 14px; }
  .deals { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .deals::-webkit-scrollbar { display: none; }
  .deal { flex: 0 0 84%; scroll-snap-align: start; }
  .sec-head { align-items: center; }
  .sec-tools .iconbtn { display: none; }
  .workshop-copy { position: static; max-width: none; padding: 26px 22px; transform: none; }
  .workshop { height: auto; }
  .workshop img { position: absolute; }
  .workshop::after { background: linear-gradient(180deg, rgba(6,19,10,.72), rgba(6,19,10,.94)); }
  .workshop-stats { flex-wrap: wrap; }
  .benefits-inner { grid-template-columns: 1fr; }
  .blog-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .blog-grid::-webkit-scrollbar { display: none; }
  .post { flex: 0 0 78%; scroll-snap-align: start; }
  .post:first-child .post-img, .post .post-img { flex: none; height: 172px; min-height: 0; }
  .post:first-child .post-img b { font-size: 62px; }
  .post:first-child .post-body h3 { font-size: 16.5px; }
  .news-form { flex-direction: column; border-radius: var(--r-xl); }
  .news-form input { text-align: center; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .drawer { border-radius: var(--r-xl) 0 0 0; }
  .fabs { right: 16px; bottom: 16px; }
  .toast { right: 16px; left: 16px; bottom: 16px; max-width: none; justify-content: center; }
  body:has(.toast.show) .fabs { transform: translateY(-64px); }
}
@media (max-width: 560px) {
  .pcard { width: 74vw; max-width: 280px; }
  .deal { flex: 0 0 90%; }
  .cat-card { width: 104px; }
  .cat-thumb { width: 84px; height: 84px; }
  .post { flex: 0 0 86%; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .modal { padding: 28px 20px 24px; }
}
@media (max-width: 480px) {
  /* espaço é escasso: sobra a marca, a busca e as ações essenciais */
  .brand-text { display: none; }
  .brand img { width: 38px; height: 38px; }
  .haction-icon { width: 40px; }
  .hslide-copy { padding-bottom: 46px; }
  .hero-dots { bottom: 18px; }
}
@media (max-width: 360px) {
  .mobile-account { display: none; }
}
@media (min-width: 1500px) {
  :root { --container: 1400px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ============================================================
   15. ACRÉSCIMOS DA VERSÃO DINÂMICA
   Componentes que o protótipo não tinha (página de produto, catálogo,
   conta, checkout). Usam os mesmos tokens — nada de cor nova.
   ============================================================ */

/* mega menu com troca de painel por hover */
.mega-pane[hidden] { display: none; }

.stock-warn { display: block; margin-top: 2px; color: var(--danger); font-weight: 600; }
.pcard h3 a { color: inherit; }
.pcard h3 a:hover { color: var(--brand); }

/* barra de cookies (LGPD) */
.cookie-bar { position: fixed; z-index: 200; right: 16px; bottom: 16px; left: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 720px; margin-inline: auto; padding: 16px 20px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-pop); }
.cookie-bar p { margin: 0; font-size: 13px; color: var(--text-2); }
.cookie-bar a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: none; }

/* migalhas de pão */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 18px 0 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }

/* estados de interface (requisito 85) */
.state { display: grid; place-items: center; justify-items: center; gap: 4px;
  padding: 56px 24px; text-align: center; }
.state .ic { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 12px;
  border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.state .ic svg { width: 30px; height: 30px; }
.state h3 { margin: 0 0 6px; font-size: 18px; }
.state p { margin: 0 0 18px; max-width: 42ch; color: var(--muted); font-size: 14px; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: var(--r); }
.skeleton::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* alertas de formulário */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px;
  border-radius: var(--r); font-size: 13.5px; margin-bottom: 16px; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert-success { background: var(--brand-tint); color: var(--brand-deep); }
.alert-error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.alert-warning { background: var(--accent-soft); color: var(--accent-ink); }
.alert-info { background: var(--surface-3); color: var(--text-2); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* formulários */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field > label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0 14px; height: 46px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); font-size: 14px; color: var(--text); }
.field textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); background: var(--surface); box-shadow: var(--ring); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field .error { font-size: 12px; color: var(--danger); }
.field small.help { font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }

/* painel/cartão genérico usado em conta, checkout e catálogo */
.panel { padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 18px; }
.panel-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* paginação */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap; margin-top: 32px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); font-size: 13.5px; font-weight: 500; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.pagination .gap { border: 0; background: none; color: var(--muted); }

/* ---- páginas de autenticação ---- */
.auth-page { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(20px, 3vw, 40px); align-items: start; max-width: 940px; margin-inline: auto; }
.auth-grid-single { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
.auth-card { padding: clamp(24px, 3vw, 34px); }
.auth-head { margin-bottom: 22px; }
.auth-head h1 { margin: 10px 0 8px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.03em; }
.auth-head p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-row { display: flex; justify-content: flex-end; margin: -6px 0 18px; }
.auth-row a { font-size: 13px; font-weight: 600; color: var(--brand); }
.auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-foot a { font-weight: 600; color: var(--brand); }
.auth-aside { padding: clamp(24px, 3vw, 32px); border-radius: var(--r-xl);
  background: linear-gradient(140deg, var(--brand-deep), var(--brand-ink)); color: #DDEADF; }
.auth-aside h2 { margin: 0 0 18px; color: #fff; font-size: 18px; }
.auth-aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.auth-aside li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.auth-aside li svg { flex: none; margin-top: 2px; color: var(--accent-2); }
.lgpd-note { margin: 20px 0 0; font-size: 12px; color: #9FB2A6; line-height: 1.6; }
.lgpd-note a { color: var(--accent-2); text-decoration: underline; }
.checkline { display: flex; gap: 10px; align-items: flex-start; padding: 14px; margin-bottom: 16px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.checkline input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.checkline b { display: block; font-size: 13.5px; }
.checkline small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.terms-note { margin: 0 0 18px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.terms-note a { color: var(--brand); text-decoration: underline; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; } .auth-aside { order: -1; } }

/* ---- catálogo ---- */
.cat-head { padding: 18px 0 22px; }
.cat-head h1 { margin: 8px 0 8px; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.035em; }
.cat-head > p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 14.5px; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.subcats a { display: inline-flex; height: 34px; align-items: center; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text-2); transition: .18s var(--ease); }
.subcats a:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }

.cat-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 32px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }

.cat-filters { position: sticky; top: calc(var(--header-h) + 16px); padding: 20px;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.cat-filters-head { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 16px; }
.cat-filters-head b { font-size: 15px; }
.cat-filters-head a { font-size: 12.5px; font-weight: 600; color: var(--brand); }
.cat-filters-head .iconbtn { display: none; }
.filter-group { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.filter-group:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.filter-group > b { display: block; margin-bottom: 11px; font-size: 12.5px; font-weight: 700; }
.filter-check { display: flex; align-items: center; gap: 9px; padding: 6px 0; cursor: pointer; font-size: 13px; }
.filter-check input { width: 17px; height: 17px; flex: none; accent-color: var(--brand); }
.filter-check span { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.filter-check span i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.filter-check:hover span { color: var(--text); }
.filter-scroll { max-height: 230px; overflow-y: auto; scrollbar-width: thin; }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; margin-bottom: 11px; }
.price-inputs input { width: 100%; height: 38px; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13px; text-align: center; }
.price-inputs input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.price-inputs span { font-size: 12px; color: var(--muted); }

.cat-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-toolbar #openFilters { display: none; }
.cat-count { font-size: 13.5px; color: var(--muted); }
.cat-count b { color: var(--text); }
.cat-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); }
.cat-sort select { height: 38px; padding: 0 32px 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text);
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.cat-sort select:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.prod-grid .pcard { width: auto; max-width: none; }
.pag-info { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-toolbar #openFilters { display: inline-flex; }
  .cat-filters { position: fixed; z-index: 130; top: 0; right: 0; bottom: 0; left: auto;
    width: min(320px, 90vw); border-radius: var(--r-xl) 0 0 var(--r-xl); overflow-y: auto;
    transform: translateX(102%); transition: transform .3s var(--ease-out); box-shadow: var(--shadow-pop); }
  .cat-filters.open { transform: none; }
  .cat-filters-head .iconbtn { display: grid; }
}
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .prod-grid .pcard { padding: 9px; }
  .prod-grid .pcard-media { height: 140px; }
  .prod-grid .price { font-size: 19px; }
}

/* ---- página de produto ---- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 3vw, 44px); align-items: start; padding: 10px 0 clamp(32px, 4vw, 52px); }

.pdp-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.pdp-main { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--r-2xl);
  background: var(--brand-ink); border: 1px solid var(--line); }
.pdp-main img, .pdp-main .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-main .ph { background-size: cover; }
.pdp-main .pdp-ph { background-size: 700px auto; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb { flex: 0 0 74px; height: 74px; overflow: hidden; border-radius: var(--r);
  border: 2px solid var(--line); background: var(--brand-ink); padding: 0; transition: .18s var(--ease); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.on, .pdp-thumb:hover { border-color: var(--brand); }

.pdp-brand { display: inline-block; margin-bottom: 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
.pdp-buy h1 { margin: 0 0 12px; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.pdp-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.pdp-meta .rating { display: flex; align-items: center; gap: 7px; margin: 0; }
.pdp-sku { font-size: 12px; color: var(--muted); }

.pdp-price-box { padding: 20px; margin-bottom: 20px; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--surface); }
.pdp-price { font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 4px 0 6px; }
.pdp-pix { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0 0 6px; font-size: 14px; color: var(--brand); font-weight: 500; }
.pdp-pix b { font-weight: 700; }
.pdp-pix i { font-style: normal; font-size: 12px; color: var(--muted); }
.pdp-inst { margin: 0; font-size: 13.5px; color: var(--text-2); }
.linkish { padding: 0; font-size: 12.5px; font-weight: 600; color: var(--brand); text-decoration: underline; }
.inst-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 12.5px; }
.inst-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.inst-table td:first-child { font-weight: 600; width: 48px; }
.inst-table td:last-child { text-align: right; color: var(--muted); }

.pdp-variants { margin-bottom: 20px; }
.variant-group { margin-bottom: 16px; }
.variant-group > b { display: block; margin-bottom: 9px; font-size: 12.5px; font-weight: 700; }
.variant-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-opt { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: 13.5px; font-weight: 500; transition: .18s var(--ease); }
.variant-opt:hover { border-color: var(--brand); }
.variant-opt.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.variant-opt i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

.pdp-stock { display: flex; align-items: center; gap: 7px; margin: 0 0 16px; font-size: 13.5px; font-weight: 500; }
.pdp-stock.ok { color: var(--brand); }
.pdp-stock.low { color: var(--accent-ink); }
.pdp-stock.out { color: var(--danger); }
[data-theme="dark"] .pdp-stock.low { color: var(--accent-2); }

.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pdp-actions .btn-block { flex: 1 1 200px; min-width: 0; }
.qty-stepper { display: flex; align-items: center; flex: none; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.qty-stepper button { display: grid; place-items: center; width: 42px; height: 46px; color: var(--text-2); }
.qty-stepper button:hover { background: var(--surface-3); color: var(--brand); }
.qty-stepper input { width: 46px; height: 46px; border: 0; background: transparent; text-align: center;
  font-size: 14px; font-weight: 600; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0; }
.pdp-actions .btn { height: 46px; }
.pdp-wa { margin-bottom: 20px; }

.pdp-shipping { padding: 18px; margin-bottom: 18px; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--surface-2); }
.pdp-shipping > b { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 13.5px; }
.ship-form { display: flex; gap: 8px; }
.ship-form input { flex: 1; height: 42px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; }
.ship-form input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.ship-result { margin-top: 12px; }
.ship-to { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ship-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; margin-bottom: 6px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); font-size: 13.5px; }
.ship-opt small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.ship-opt b.free { color: var(--brand); }
.ship-err { margin: 10px 0 0; font-size: 13px; color: var(--danger); }
.ship-help { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); text-decoration: underline; }

.pdp-benefits { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pdp-benefits li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.pdp-benefits svg { color: var(--brand); }

.pdp-tabs { padding-bottom: clamp(32px, 4vw, 48px); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 12px 18px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 600;
  color: var(--muted); white-space: nowrap; }
.tab.on { border-bottom-color: var(--brand); color: var(--brand); }
.tab:hover { color: var(--text); }
.rich { max-width: 76ch; font-size: 14.5px; line-height: 1.7; color: var(--text-2); }
.rich p { margin: 0 0 14px; }
.rich h3 { margin: 22px 0 10px; font-size: 17px; color: var(--text); }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 22px; }
.rich li { margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 14px; }
.specs-table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.specs-table th, .specs-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.specs-table th { width: 220px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  /* minmax(0,…) e não 1fr: um track 1fr tem mínimo automático de
     min-content, então um filho largo empurrava a coluna para fora
     do container em telas de 320-360px. */
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp-gallery { position: static; }
  .specs-table th { width: 40%; }
}

/* ---- carrinho e checkout ---- */
.checkout { padding: 18px 0 clamp(40px, 6vw, 72px); }
.ck-head { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ck-head h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.ck-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px;
  font-weight: 600; color: var(--brand); }

.ck-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(18px, 2.6vw, 32px); align-items: start; }

.ck-step { padding: clamp(20px, 2.4vw, 26px); margin-bottom: 16px;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.ck-step h2 { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; font-size: 17px; }
.ck-step h2 .n { display: grid; place-items: center; width: 27px; height: 27px; flex: none;
  border-radius: 50%; background: var(--brand); color: var(--on-brand);
  font-family: var(--font); font-size: 13px; font-weight: 700; }
.ck-login-hint { margin: -8px 0 18px; font-size: 13.5px; color: var(--muted); }
.ck-login-hint a { font-weight: 600; color: var(--brand); }
.ck-hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.ck-hint.err { color: var(--danger); }
.ck-terms { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.ck-terms a { color: var(--brand); text-decoration: underline; }
.ck-submit { height: 52px; font-size: 15px; }

/* endereços salvos */
.saved-addresses { display: grid; gap: 8px; margin-bottom: 18px; }
.addr-card, .ship-card, .pay-card { display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; transition: .18s var(--ease); }
.addr-card:hover, .ship-card:hover, .pay-card:hover { border-color: var(--brand); }
.addr-card input, .ship-card input, .pay-card input { width: 18px; height: 18px; flex: none;
  margin-top: 2px; accent-color: var(--brand); }
.addr-card:has(input:checked), .ship-card:has(input:checked), .pay-card:has(input:checked) {
  border-color: var(--brand); background: var(--brand-tint); }
.addr-card b, .ship-card b, .pay-card b { display: block; font-size: 13.5px; }
.addr-card small, .ship-card small, .pay-card small { display: block; margin-top: 3px;
  font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.ship-options { display: grid; gap: 8px; }
.ship-card { align-items: center; }
.ship-body { flex: 1; }
.ship-price { flex: none; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.ship-price.free { color: var(--brand); }

.pay-options { display: grid; gap: 8px; }
.pay-body { flex: 1; }
.pay-tag { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: var(--r-xs);
  background: var(--accent-soft); color: var(--accent-ink); font-size: 10.5px;
  font-weight: 700; font-style: normal; }
.pay-total { color: var(--brand) !important; font-weight: 600; }
.pay-inst { padding: 12px 16px 4px; }
.pay-inst label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.pay-inst select { width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; }

/* resumo */
.ck-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.ck-summary-box { padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.ck-summary-box h2 { margin: 0 0 18px; font-size: 16px; }
.ck-items { display: grid; gap: 12px; max-height: 320px; overflow-y: auto; margin-bottom: 16px; }
.ck-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; }
.ck-item img, .ck-item .ph { width: 56px; height: 56px; border-radius: var(--r-sm);
  object-fit: cover; background-color: var(--brand-ink); display: block; }
.ck-item-qty { position: absolute; top: -6px; left: 44px; min-width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0 5px; border-radius: var(--r-pill);
  border: 2px solid var(--surface); background: var(--brand); color: var(--on-brand);
  font-size: 10.5px; font-weight: 700; }
.ck-item b { display: -webkit-box; overflow: hidden; font-size: 12.5px; font-weight: 500;
  line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ck-item small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.ck-item strong { display: block; margin-top: 4px; font-family: var(--font-display);
  font-size: 13.5px; font-weight: 700; }

.ck-coupon { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.ck-coupon input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13.5px; }
.ck-coupon input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.ck-coupon-msg { margin: 8px 0 0; font-size: 12.5px; min-height: 16px; color: var(--muted); }
.ck-coupon-msg.ok { color: var(--brand); }
.ck-coupon-msg.err { color: var(--danger); }

.ck-totals { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.ck-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; font-size: 13.5px; color: var(--text-2); }
.ck-row.discount { color: var(--brand); }
.ck-row.total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--text); }
.ck-row.total b { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.ck-trust { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ck-trust li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ck-trust svg { color: var(--brand); }

/* sucesso */
.ck-success { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); max-width: 920px; margin-inline: auto; }
.ck-ok { text-align: center; margin-bottom: 32px; }
.ck-ok-ic { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.ck-ok-ic svg { width: 36px; height: 36px; stroke-width: 2.4; }
.ck-ok h1 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.03em; }
.ck-ok p { margin: 0; color: var(--muted); font-size: 15px; }
.ck-pay-box { padding: 26px; margin-bottom: 24px; border-radius: var(--r-xl);
  border: 1px solid var(--accent); background: var(--accent-soft); text-align: center; }
.ck-pay-box h2 { display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 18px; font-size: 17px; color: var(--accent-ink); }
.pix-qr { width: 210px; height: 210px; margin: 0 auto 16px; border-radius: var(--r);
  background: #fff; padding: 8px; }
.pix-label { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.pix-copy { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 12px; }
.pix-copy input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); font-size: 12px;
  font-family: ui-monospace, monospace; }
.barcode { display: block; padding: 12px; border-radius: var(--r-sm); background: var(--surface);
  font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }
.pay-expire { margin: 12px 0 0; font-size: 12.5px; color: var(--accent-ink); }
.ck-success-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.ck-success-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.info-line { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; }
.info-line.muted { color: var(--muted); font-size: 12.5px; }

/* carrinho em página cheia */
.cart-page { padding: 18px 0 clamp(40px, 6vw, 72px); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(18px, 2.6vw, 32px); align-items: start; }
.cart-row-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row-item:last-child { border-bottom: 0; }
.cart-row-item img, .cart-row-item .ph { width: 92px; height: 92px; border-radius: var(--r);
  object-fit: cover; background-color: var(--brand-ink); display: block; }
.cart-row-info b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.cart-row-info small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.cart-row-price { text-align: right; }
.cart-row-price strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; }

@media (max-width: 980px) {
  .ck-layout, .ck-success-grid, .cart-layout { grid-template-columns: 1fr; }
  .ck-summary { position: static; order: -1; }
}

/* ---- área do cliente ---- */
.acc-page { padding: 20px 0 clamp(40px, 6vw, 72px); }
.acc-title { margin: 0 0 22px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.acc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 32px); align-items: start; }
.acc-nav { position: sticky; top: calc(var(--header-h) + 16px); padding: 16px;
  border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.acc-user { display: flex; align-items: center; gap: 11px; padding: 0 6px 16px;
  margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.acc-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 700; }
.acc-user b { display: block; font-size: 13.5px; }
.acc-user small { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.acc-nav nav { display: grid; gap: 1px; }
.acc-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--r-sm); font-size: 13.5px; color: var(--text-2); transition: .16s var(--ease); }
.acc-nav nav a:hover { background: var(--surface-2); color: var(--text); }
.acc-nav nav a.on { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.acc-logout { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.acc-logout button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border-radius: var(--r-sm); font-size: 13.5px; color: var(--muted); }
.acc-logout button:hover { background: var(--surface-2); color: var(--danger); }

.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 18px; }
.acc-stat { padding: 18px; border-radius: var(--r-xl); border: 1px solid var(--line);
  background: var(--surface); transition: .2s var(--ease); }
.acc-stat:hover { border-color: var(--brand); transform: translateY(-2px); }
.acc-stat .ic { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand); }
.acc-stat .ic svg { width: 17px; height: 17px; }
.acc-stat b { display: block; font-family: var(--font-display); font-size: 24px;
  font-weight: 700; letter-spacing: -.03em; }
.acc-stat small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

.acc-orders { display: grid; gap: 2px; }
.acc-order { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px;
  align-items: center; padding: 14px 12px; border-radius: var(--r); transition: background .16s var(--ease); }
.acc-order:hover { background: var(--surface-2); }
.acc-order b { font-size: 13.5px; }
.acc-order small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.acc-order-total { font-family: var(--font-display); font-size: 15px; font-weight: 700; white-space: nowrap; }
.acc-order svg { color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 20px 0; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; top: 16px; bottom: 0;
  left: 5px; width: 2px; background: var(--line); }
.tl-dot { position: relative; z-index: 1; width: 12px; height: 12px; flex: none; margin-top: 4px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.timeline li:last-child .tl-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.timeline b { display: block; font-size: 13.5px; }
.timeline small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.timeline p { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }

.track-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px;
  margin-top: 8px; border-radius: var(--r); background: var(--surface-2); }
.track-box b { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.track-box code { padding: 5px 10px; border-radius: var(--r-xs); background: var(--surface);
  font-family: ui-monospace, monospace; font-size: 13px; }
.acc-note { padding: 14px 16px; margin-bottom: 8px; border-radius: var(--r);
  border-left: 3px solid var(--brand); background: var(--surface-2); }
.acc-note p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; }
.acc-note small { font-size: 11.5px; color: var(--muted); }
.acc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.acc-cols .panel { margin-top: 0; }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.acc-actions form { margin: 0; }

@media (max-width: 900px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-nav { position: static; }
  .acc-nav nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); display: grid; }
  .acc-cols { grid-template-columns: 1fr; }
  .acc-order { grid-template-columns: 1fr auto; }
  .acc-order .pill { grid-column: 1; }
}
.addr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.addr-item { position: relative; margin-top: 0 !important; }
.addr-item .chip { position: absolute; top: 16px; right: 16px; }
.addr-item b { display: block; margin-bottom: 8px; font-size: 14px; }
.addr-item p { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.addr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.addr-actions form { margin: 0; }
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.coupon-card { padding: 18px; border-radius: var(--r); border: 1.5px dashed var(--brand);
  background: var(--brand-tint); }
.coupon-card b { display: block; font-family: var(--font-display); font-size: 19px;
  font-weight: 800; letter-spacing: .04em; color: var(--brand-deep); }
.coupon-card p { margin: 6px 0 8px; font-size: 13px; color: var(--text-2); }
.coupon-card small { font-size: 11.5px; color: var(--muted); }
[data-theme="dark"] .coupon-card b { color: var(--brand); }
.privacy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line); }
.privacy-row:last-child { border-bottom: 0; }
.privacy-row b { display: block; font-size: 13.5px; }
.privacy-row small { display: block; margin-top: 4px; max-width: 52ch; font-size: 12.5px;
  color: var(--muted); line-height: 1.55; }
.privacy-row form { margin: 0; flex: none; }
@media (max-width: 600px) { .privacy-row { flex-direction: column; align-items: flex-start; } }

/* ---- índice de categorias e páginas institucionais ---- */
.allcat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.allcat-col { padding: 18px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.allcat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px;
  margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.allcat-thumb { width: 52px; height: 52px; flex: none; overflow: hidden; border-radius: var(--r);
  background: var(--brand-ink); }
.allcat-thumb .ph, .allcat-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.allcat-head b { display: block; font-size: 14.5px; }
.allcat-head small { display: -webkit-box; overflow: hidden; margin-top: 2px; font-size: 12px;
  color: var(--muted); line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.allcat-head:hover b { color: var(--brand); }
.allcat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; }
.allcat-list a { display: block; padding: 6px 8px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--text-2); }
.allcat-list a:hover { background: var(--brand-tint); color: var(--brand); }

.page-article { max-width: 780px; padding: 24px 0 clamp(40px, 6vw, 72px); }
.page-article h1 { margin: 0 0 14px; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.035em; }
.page-lead { margin: 0 0 24px; font-size: 16px; color: var(--muted); line-height: 1.6; }
.page-updated { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); }

/* ============================================================
   BLOG — listagem e matéria
   ============================================================ */

.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
  font-size: 13.5px; font-weight: 600; transition: all .2s var(--ease);
}
.chip-filter i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.chip-filter:hover { border-color: var(--brand); color: var(--brand); }
.chip-filter.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip-filter.on i { color: rgba(255,255,255,.7); }

/* Grade de matérias: a primeira ocupa a largura toda na página 1. */
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-list .post {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.blog-list .post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-tint); }
.blog-list .post-img { height: 190px; }
.blog-list .post-body { display: flex; flex-direction: column; flex: 1; gap: 10px; }
.blog-list .post-body h3 { margin: 0; }
.post-excerpt { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.post-meta time::before { content: ""; }
.post-more { margin-top: auto; padding-top: 4px; }

.blog-list .post-lead { grid-column: 1 / -1; flex-direction: row; }
.blog-list .post-lead .post-img { flex: 0 0 46%; height: auto; min-height: 300px; }
.blog-list .post-lead .post-img b { font-size: 96px; }
.blog-list .post-lead .post-body { justify-content: center; padding: 34px 38px; gap: 14px; }
.blog-list .post-lead .post-body h3 { font-size: 26px; line-height: 1.22; letter-spacing: -.02em; }
.blog-list .post-lead .post-excerpt { font-size: 15.5px; max-width: 52ch; }

/* ---- matéria ---- */
.article { padding-top: 8px; }
.article-head { max-width: 760px; margin: 0 auto 26px; text-align: center; }
.article-head .eyebrow { justify-content: center; margin-bottom: 14px; }
.article-head h1 {
  margin: 0 0 16px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em;
}
.article-lead { margin: 0 0 20px; font-size: 17.5px; line-height: 1.55; color: var(--muted); }
.article-meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 20px; font-size: 13px; color: var(--muted);
}
.article-meta > * { display: inline-flex; align-items: center; gap: 8px; }
.article-meta > * + *::before { content: "·"; margin-right: 12px; color: var(--line); }
.article-author i {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  font-style: normal; font-size: 11px; font-weight: 700;
}
.article-cover {
  height: clamp(220px, 34vw, 420px); border-radius: var(--r-xl);
  margin-bottom: 40px; border: 1px solid var(--line);
}

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; }
.article-body { max-width: 72ch; font-size: 16.5px; line-height: 1.72; color: var(--text); }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.25; margin-top: 1.9em;
}
.article-body h2 { font-size: 25px; }
.article-body h3 { font-size: 20px; }
.article-body h4 { font-size: 17px; }
.article-body a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li + li { margin-top: .5em; }
.article-body img { border-radius: var(--r); border: 1px solid var(--line); }
.article-body blockquote {
  padding: 4px 0 4px 22px; border-left: 3px solid var(--brand);
  font-size: 18px; line-height: 1.5; color: var(--text);
}
.article-body code {
  padding: 2px 6px; border-radius: var(--r-xs); background: var(--bg-sunken);
  font-size: .9em; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.article-body pre { padding: 18px; border-radius: var(--r); background: var(--bg-sunken); overflow-x: auto; }
.article-body pre code { padding: 0; background: none; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.article-body th, .article-body td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--bg-sunken); font-weight: 600; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

/* A coluna lateral acompanha a leitura em telas altas. */
.article-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.share-box, .article-tags { display: grid; gap: 10px; }
.share-box > span, .article-tags > span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.share-btn {
  display: inline-flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--text);
  font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: all .2s var(--ease);
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.article-tags { gap: 8px; }
.article-tags a {
  display: inline-block; padding: 5px 12px; margin-right: 4px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 12.5px; color: var(--muted);
}
.article-tags a:hover { border-color: var(--brand); color: var(--brand); }

/* ---- vazio ---- */
.empty {
  display: grid; justify-items: center; gap: 12px; padding: 70px 20px; text-align: center;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty .i { width: 34px; height: 34px; color: var(--muted); opacity: .5; }
.empty h3 { margin: 0; font-size: 18px; font-weight: 600; }
.empty p { margin: 0; max-width: 42ch; color: var(--muted); font-size: 14.5px; }
.empty .btn { margin-top: 8px; }

@media (max-width: 1000px) {
  .article-wrap { grid-template-columns: 1fr; gap: 32px; }
  .article-side { position: static; grid-template-columns: 1fr 1fr; gap: 24px; }
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .blog-list .post-lead .post-img { flex-basis: 40%; min-height: 240px; }
  .blog-list .post-lead .post-body { padding: 26px 28px; }
  .blog-list .post-lead .post-body h3 { font-size: 22px; }
}

@media (max-width: 640px) {
  .blog-list { grid-template-columns: 1fr; }
  .blog-list .post-lead { flex-direction: column; }
  .blog-list .post-lead .post-img { flex: none; min-height: 200px; height: 200px; }
  .blog-list .post-lead .post-body { padding: 20px; }
  .blog-list .post-lead .post-body h3 { font-size: 20px; }
  .article-side { grid-template-columns: 1fr; }
  .article-body { font-size: 16px; }
}

/* ============================================================
   BARRA FIXA DE COMPRA (celular)
   ============================================================ */

/* Só existe no celular: no desktop o botão original está sempre à vista. */
.pdp-bar { display: none; }

@media (max-width: 860px) {
  .pdp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px -12px rgba(0,0,0,.35);
    transform: translateY(110%); transition: transform .28s var(--ease);
  }
  .pdp-bar.on { transform: translateY(0); }
  .pdp-bar[hidden] { display: none; }

  .pdp-bar-info { display: grid; gap: 1px; line-height: 1.15; }
  .pdp-bar-info strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
  .pdp-bar-info small { font-size: 11.5px; color: var(--muted); }
  .pdp-bar-info s { color: var(--muted); }
  .pdp-bar .btn { flex: 1; min-height: 46px; }

  /* O botão do WhatsApp flutua no mesmo canto: sobe para não ser coberto. */
  /* mesmo padrão já usado pelo toast: desloca o grupo, não cada botão */
  body:has(.pdp-bar.on) .fabs { transform: translateY(-72px); transition: transform .28s var(--ease); }
}

/* Acesso ao Plano de Corte na barra de categorias: é ferramenta, não
   categoria, então ganha o contorno que o separa dos demais links. */
.catlink-tool {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  padding-inline: 14px;
}
.catlink-tool:hover { border-color: var(--accent); color: var(--accent); }

/* Separa o Plano de Corte das abas da conta: ele leva para outra área. */
.acc-nav-tool {
  margin-top: 8px; padding-top: 14px !important;
  border-top: 1px solid var(--line);
  color: var(--brand) !important; font-weight: 600;
}
