/* =========================================================
   Site público Ouvirtiba (opção D): laranja + verde-floresta
   Público acima de 60 anos: texto 20px, bom contraste,
   nunca texto branco sobre laranja.
   ========================================================= */
/* Dígitos 0-9 da Lexend (arquivo local): a Atkinson Hyperlegible desenha o zero cortado. */
@font-face {
  font-family: "Digitos";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lexend-digitos.woff2") format("woff2");
  unicode-range: U+0030-0039;
}
:root {
  --o: #F28C00; --o-ink: #2A1600; --o-text: #A65800; --o-soft: #FDE7C7;
  --g: #1D5C45; --g-deep: #164A37; --mint: #EEF6F1; --ink: #1E2B25; --line: #D5E3DA;
  --wa: #25D366; --wa-ink: #0B2E17;
  --f-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --f-body: "Digitos", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --header-h: 80px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--f-body); font-size: 20px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--g); }
/* Foco do teclado: anel escuro com borda branca, visível no branco, no verde e no laranja */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--o-ink); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.in { max-width: 1100px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
section { padding-block: 64px; }
.mint { background: var(--mint); }
h1, h2, h3 { font-family: var(--f-display); color: var(--g); text-wrap: balance; margin: 0; }
h2 { font-weight: 700; font-size: 36px; line-height: 1.2; margin-bottom: 12px; }
h3 { font-weight: 600; font-size: 23px; line-height: 1.3; }
p { margin: 0; }
.kicker { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--o-text); margin-bottom: 8px; }
.lead { max-width: 60ch; margin-bottom: 30px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.2; border-radius: 12px; padding: 15px 24px; min-height: 56px; text-decoration: none; border: 0; cursor: pointer; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-brand { background: var(--o); color: var(--o-ink); }
.btn-g { background: var(--g); color: #fff; }
.btn:hover { filter: brightness(.95); }

/* Faixa do topo e cabeçalho */
.topbar { background: var(--g-deep); color: #fff; font-size: 17px; }
.topbar .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: 8px; }
.topbar a { color: #fff; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.header .in { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; padding-block: 12px; min-height: var(--header-h); }
/* Logo nunca encolhe nem distorce: quem cede espaço é o menu (faixas de largura mais abaixo) */
.header .in { max-width: 1160px; }   /* só o cabeçalho é mais largo que o conteúdo (1100px): logo + menu 18px + botão pedem 1149px */
.header nav[aria-label="Menu principal"] { margin-left: auto; }   /* menu e botão encostados à direita */
.header .logo { flex: none; }
.header .logo img { height: 52px; width: auto; max-width: none; display: block; }
.menu { list-style: none; display: flex; flex-wrap: nowrap; gap: 18px; margin: 0 0 0 auto; padding: 0; font-family: var(--f-display); font-weight: 500; font-size: 18px; white-space: nowrap; }
.menu a { color: var(--g); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; border-bottom: 3px solid transparent; }
.menu a:hover { border-bottom-color: var(--o); }
.header .btn { flex: none; min-height: 50px; padding: 12px 18px; font-size: 18px; white-space: nowrap; }

/* Menu do celular (aparece no lugar do menu em telas estreitas) */
.menu-mob { display: none; margin-left: auto; }
.menu-mob summary { list-style: none; min-height: 50px; padding: 10px 16px; font-size: 18px; }
.menu-mob summary::-webkit-details-marker { display: none; }
.menu-ic, .menu-ic::before, .menu-ic::after { display: block; width: 22px; height: 3px; border-radius: 2px; background: currentColor; position: relative; }
.menu-ic::before, .menu-ic::after { content: ""; position: absolute; left: 0; }
.menu-ic::before { top: -7px; }
.menu-ic::after { top: 7px; }
.menu-mob[open] .menu-ic { background: transparent; }
.menu-mob[open] .menu-ic::before { top: 0; transform: rotate(45deg); }
.menu-mob[open] .menu-ic::after { top: 0; transform: rotate(-45deg); }
.menu-mob-painel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--o); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.menu-mob-painel ul { list-style: none; margin: 0 auto; padding: 8px 20px 16px; max-width: 1100px; }
.menu-mob-painel a { display: flex; align-items: center; min-height: 56px; font-family: var(--f-display); font-weight: 600; font-size: 21px; color: var(--g); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-mob-painel li:last-child a { border-bottom: 0; }

/* Abertura */
.hero { background: var(--mint); padding-block: 0; overflow: hidden; }
.hero .in { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding-block: 56px; }
.hero h1 { font-weight: 700; font-size: 50px; line-height: 1.1; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--o-text); }
.hero .sub { font-size: 22px; margin-bottom: 26px; max-width: 34ch; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font-size: 18px; }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--o); flex: none; }
.photo { position: relative; }
.photo::before {
  content: ""; position: absolute; left: -46px; bottom: -46px; width: 220px; height: 220px; border-radius: 50%;
  background: repeating-conic-gradient(from 180deg at 50% 50%, var(--o) 0 7deg, transparent 7deg 16deg);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%);
          mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%);
}
.photo img { position: relative; display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 160px 24px 24px 24px; }

/* Sinais */
.prob { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.signs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.signs li { display: flex; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.signs b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; font-size: 17px; }
.card-cta { background: var(--o-soft); border-radius: 20px; padding: 28px; display: grid; gap: 14px; justify-items: start; }
.card-cta h3 { color: var(--o-ink); font-size: 26px; }
.card-cta p { color: var(--o-ink); }

/* Como funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 4px; background: var(--o); border-radius: 2px; }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.steps .n { width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 4px solid var(--o); color: var(--g); font-family: var(--f-display); font-weight: 700; font-size: 26px; display: grid; place-items: center; }
.steps p { font-size: 18px; }

/* Faixa de chamada */
.band { background: var(--o); color: var(--o-ink); padding-block: 40px; }
.band .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band h2 { color: var(--o-ink); margin: 0 0 4px; font-size: 32px; }

/* Aparelhos (faixa Argosy) */
.argosy { background: var(--g); color: #fff; }
.argosy h2 { color: #fff; }
.argosy .kicker { color: var(--o-soft); }
.argosy .lead { color: #E8F4EE; margin: 0; }
.argosy-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.argosy-top img { height: 54px; width: auto; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.prod { background: #fff; color: var(--ink); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.prod-img { display: grid; place-items: center; aspect-ratio: 4/3; background: #fff; border-bottom: 1px solid var(--line); }
.prod-img img { max-width: 78%; max-height: 90%; object-fit: contain; }
.prod-body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.prod-body p { font-size: 18px; }

/* Por que a Ouvirtiba */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.why-list li { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.why-list .ic { grid-row: span 2; width: 54px; height: 54px; border-radius: 14px; background: var(--mint); color: var(--g); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 20px; border: 2px solid var(--g); }
.why-list p { font-size: 18px; }
.why-fig { margin: 0; background: var(--g); border-radius: 24px; padding: 22px; display: grid; gap: 14px; justify-items: center; }
.why-fig .case { width: 100%; border-radius: 14px; background: #fff; }
.why-fig .lg { height: 40px; width: auto; }
.why-fig figcaption { color: #fff; font-size: 17px; text-align: center; }

/* Vídeos e depoimentos */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #1d2124; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 10px; font-weight: 700; font-size: 18px; }
.quote { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 14px; margin: 0; }
.quote blockquote { margin: 0; font-size: 21px; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--f-display); font-size: 56px; line-height: .6; color: var(--o); margin-bottom: 6px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.quote figcaption b { display: block; color: var(--g); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* Dúvidas */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 21px; color: var(--g); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--o-text); font-size: 28px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; font-size: 19px; }

/* Blog */
.post { background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.post > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.post .date { font-size: 16px; color: #4A5A52; }
.post a, .more { color: var(--g); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.more { display: inline-block; margin-top: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Contato */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.form { display: grid; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 24px; }
.form label { font-weight: 700; font-size: 18px; margin-top: 8px; }
.form input, .form textarea { font: inherit; font-size: 20px; color: var(--ink); border: 2px solid #8A9096; border-radius: 10px; padding: 12px 14px; min-height: 54px; width: 100%; background: #fff; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--g); outline-offset: 1px; border-color: var(--g); }
.form .hint { font-size: 16px; color: #4A5A52; }
.form .btn { margin-top: 14px; justify-self: start; }
.alert { border-radius: 10px; padding: 12px 16px; font-weight: 700; margin-bottom: 6px; }
.alert-ok { background: #E3F4E8; color: #14532D; border: 2px solid #2E7D4F; }
.alert-erro { background: #FDECEA; color: #8A1C12; border: 2px solid #B3261E; }
.places { display: grid; gap: 16px; justify-items: start; }
.place { background: var(--mint); border-radius: 14px; padding: 20px 22px; display: grid; gap: 6px; width: 100%; }

/* Páginas internas (blog, post, política) */
.page-head { padding-block: 44px; }
.page-head h1 { font-weight: 700; font-size: 44px; line-height: 1.15; }
.page-head .lead { margin: 12px 0 0; }
.post-title { font-size: 23px; line-height: 1.3; font-weight: 600; margin: 0; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 700; text-underline-offset: 4px; }
.meta { margin-top: 10px; color: #4A5A52; font-size: 18px; }
.article-body { padding-block: 40px 64px; max-width: 820px; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; margin-bottom: 28px; }
.prose { max-width: 70ch; font-size: 20px; }
.prose h2 { font-size: 28px; margin: 32px 0 10px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose img { border-radius: 12px; height: auto; }
.prose a { color: var(--g); text-underline-offset: 4px; }
.article-cta { background: var(--o-soft); border-radius: 20px; padding: 28px; margin: 36px 0 24px; display: grid; gap: 16px; justify-items: start; }
.article-cta h2 { color: var(--o-ink); font-size: 26px; margin: 0; }

/* Página não encontrada */
.not-found { padding-block: 80px; }
.not-found h1 { font-weight: 700; font-size: 44px; line-height: 1.15; margin-bottom: 12px; }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Rodapé */
.footer { background: var(--mint); border-top: 6px solid var(--o); padding-block: 44px 24px; font-size: 18px; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer .logo-f { height: 50px; width: auto; }
.footer h3 { font-size: 19px; margin-bottom: 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer a { text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 48px; }
.footer li:not(:has(a)) { padding-block: 10px; }
.footer .legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Botão flutuante do WhatsApp */
.float-wa { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: 66px; height: 66px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 30; transition: opacity .2s ease, visibility .2s ease; }
/* Detalhe do produto no celular: some enquanto o quadro "Comprar" está na tela (o JS liga a classe no body) */
@media (max-width: 860px) { body.wa-oculto .float-wa { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .float-wa { transition: none; } }

/* Aviso de cookies (só aparece quando há tag do Google Ads no painel) */
.cookie-consent { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40; max-width: 760px; margin-inline: auto; background: #fff; color: var(--ink); border: 2px solid var(--g); border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; font-size: 19px; }
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0; flex: 1 1 320px; }
.cookie-consent a { color: var(--g); font-weight: 700; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline { background: #fff; color: var(--g); border: 2px solid var(--g); }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.float-wa svg { width: 36px; height: 36px; }

/* Vitrine de produtos (/produtos) */
/* Faixa do topo da vitrine: título e texto à esquerda, filtros à direita (embaixo no celular) */
.page-head.vit-topo { padding-block: 18px; }
.vit-topo-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px; }
.vit-titulo { flex: 1 1 360px; min-width: 0; }
.page-head.vit-topo h1 { font-size: 30px; line-height: 1.2; }
.page-head.vit-topo .lead { font-size: 16px; line-height: 1.4; margin: 4px 0 0; }
.vit-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vit-select { min-height: 48px; min-width: 200px; max-width: 100%; padding: 8px 14px; border: 2px solid var(--g); border-radius: 12px; background: #fff; color: inherit; font: inherit; font-size: 17px; }
.vit-vazio a { color: var(--g); font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .vit-filtros { width: 100%; }
  .vit-filtros > div { flex: 1 1 200px; }
  .vit-select { width: 100%; }
}
.cards.vitrine { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
/* Só o topo da seção da grade encosta mais na faixa verde (o padding de 64px do fim, antes do rodapé, fica) */
.vit-grade { padding-top: 24px; }
.vit { position: relative; cursor: pointer; background: #fff; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .15s ease, transform .15s ease; }
/* O card inteiro é clicável: o link do título se estica sobre ele; o botão "Saber mais" fica por cima */
.vit-nome a::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) { .vit:hover { box-shadow: 0 8px 22px rgba(20, 40, 30, .16); transform: translateY(-2px); border-color: var(--g); } }
@media (prefers-reduced-motion: reduce) { .vit { transition: none; } .vit:hover { transform: none; } }
.vit:focus-within { border-color: var(--g); }
/* Área da foto igual em todos os cards: 4:3, fundo branco, imagem inteira (nunca cortada nem esticada).
   A foto fica em posição absoluta dentro da área: assim ela não participa do cálculo da altura. Sem isso,
   o aspect-ratio cede a uma foto alta (min-height: auto = altura do conteúdo) e a área cresce. */
.vit-img { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.vit-img a { position: absolute; inset: 6%; display: flex; align-items: center; justify-content: center; }
.vit-img img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
/* Corpo do card em grade: nome (2 linhas) e descrição (2 linhas, mesmo vazia) com altura reservada; o preço
   fica logo abaixo, na mesma posição em todos os cards; parcela colada ao preço e "Ver detalhes" no rodapé. */
.vit-body { padding: 10px 12px 10px; display: grid; grid-template-rows: 42px 40px auto auto 1fr auto; row-gap: 4px; flex: 1; min-width: 0; }
.vit-nome { grid-row: 1; font-size: 17px; line-height: 21px; height: 42px; font-weight: 600; margin: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.vit-desc { grid-row: 2; font-size: 15px; line-height: 20px; height: 40px; margin: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* "no Pix ou débito" sempre em linha própria, abaixo do preço (uniforme entre os cards; nem existe sem desconto) */
.vit-preco { grid-row: 3; align-self: start; margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.vit-preco strong { font-family: var(--f-display); font-size: 20px; line-height: 1.2; color: var(--g); }
.vit .vit-tag { font-size: 14px; line-height: 18px; }
.vit-rodape { grid-row: 6; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 8px; }   /* "Ver detalhes ›" e o botão, na mesma linha de 40px */
.vit .btn { position: relative; z-index: 2; font-size: 14px; gap: 4px; padding: 4px 8px; min-height: 34px; border-radius: 10px; white-space: nowrap; }
.vit .btn svg { width: 16px; height: 16px; }
/* Parcela colada ao preço (linha 4); a linha elástica (1fr) fica depois dela, antes do rodapé */
.vit .vit-parc { grid-row: 4; align-self: start; font-size: 15px; line-height: 20px; }
.vit .vit-parc b { white-space: nowrap; }   /* "R$" e o valor ficam juntos; "sem juros" usa espaço não separável no HTML */
.vit .vit-mais { font-size: 13px; min-height: 34px; white-space: nowrap; }
/* 2 colunas estreitas (521-600px): o texto vira "Detalhes ›" para o botão não descer nem ficar apertado */
@media (min-width: 521px) and (max-width: 600px) { .vit-ver { display: none; } .vit-mais { text-transform: capitalize; } }
.vit-tag { font-size: 17px; color: #4A5A52; }
.vit-parc { margin: 0; font-size: 18px; }

/* Página do produto (/produtos/<id>-<slug>) */
.migalhas { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 20px; font-size: 18px; }
.migalhas a { color: var(--g); font-weight: 700; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.prod-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.galeria { display: grid; gap: 14px; }
.g-principal { display: block; position: relative; overflow: hidden; border: 2px solid var(--line); border-radius: 18px; background: #fff; aspect-ratio: 4/3; cursor: zoom-in; }
.g-principal img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .15s ease-out; }
.g-principal.zoom img { transform: scale(2.2); }
@media (hover: hover) and (pointer: fine) { .g-principal img { will-change: transform; } }   /* só com mouse: o zoom acompanha o cursor sem engasgar */
.g-mini { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.g-mini a { display: block; width: 96px; height: 76px; border: 2px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.g-mini a[aria-current="true"] { border-color: var(--g); box-shadow: 0 0 0 2px var(--g); }
.g-mini img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 20, 15, .88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lb-fechar { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 34px; line-height: 1; cursor: pointer; }
.prod-info { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 14px; align-content: start; }   /* min-width 0: a tabela de pagamento rola sozinha, sem alargar a coluna */
.prod-info h1 { font-size: 26px; line-height: 1.25; font-weight: 700; margin: 0; }
.pi-preco { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px 12px; }   /* tag sempre abaixo do preço, como nos cards */
.pi-preco strong { font-family: var(--f-display); font-size: 46px; line-height: 1.1; color: var(--g); }
.pi-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.comprar { background: var(--mint); border: 2px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 12px; }
.comprar h2 { margin: 0; font-size: 26px; }
.comprar p { margin: 0; font-size: 18px; }
.comprar .erro { color: #8A1C1C; font-weight: 700; }
.comprar label { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.comprar select { font: inherit; font-size: 18px; min-height: 56px; padding: 10px 10px; border: 2px solid var(--g); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.comprar .btn { justify-content: center; }
.forma-resumo { margin: 0; padding: 10px 12px; background: #fff; border: 2px solid var(--line); border-radius: 12px; font-size: 18px; font-weight: 700; }
.forma-resumo[hidden] { display: none; }
.prod-desc { margin-top: 44px; }
.prod-espec { margin-top: 44px; }
.prod-desc h2 { font-size: 28px; margin-bottom: 12px; }
.prod-espec h2 { font-size: 28px; margin-bottom: 12px; }
.descricao { white-space: pre-line; max-width: 70ch; font-size: 19px; margin: 0; }
.tabela-rolagem { overflow-x: auto; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.tab-pg { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 18px; }
.tab-pg th, .tab-pg td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tab-pg thead th { background: var(--mint); font-family: var(--f-display); font-weight: 600; }
.tab-pg tbody tr:last-child th, .tab-pg tbody tr:last-child td { border-bottom: 0; }
.tab-pg .aa { color: #4A5A52; font-size: 16px; }
.tab-pg td:nth-child(2), .tab-pg td:nth-child(3) { white-space: nowrap; }   /* valor em dinheiro nunca quebra ("R$" separado do número) */
.pg-det { min-width: 0; }
.nota { margin-top: 12px; font-size: 16px; color: #4A5A52; }
/* Especificações do produto: o nome nunca quebra no meio da palavra; valor longo quebra e não alarga a página */
.espec-grupo { margin: 24px 0 8px; font-family: var(--f-display); font-size: 19px; font-weight: 600; color: var(--g); }
.prod-espec h2 + .espec-grupo { margin-top: 0; }   /* só o grupo colado ao título da seção */
.tab-espec { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 18px; background: #fff; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.tab-espec th, .tab-espec td { padding: 10px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tab-espec th { width: 38%; font-family: var(--f-display); font-weight: 600; background: var(--mint); overflow-wrap: break-word; word-break: normal; hyphens: none; }
.tab-espec td { overflow-wrap: anywhere; }
.tab-espec tr:last-child th, .tab-espec tr:last-child td { border-bottom: 0; }
@media (max-width: 520px) {   /* celular: cada linha empilha, nome em cima e valor embaixo, na largura toda */
  .tab-espec { font-size: 16px; }
  .tab-espec,
  .tab-espec tbody,
  .tab-espec tr,
  .tab-espec th,
  .tab-espec td { display: block; }
  .tab-espec th { width: 100%; padding: 8px 12px 2px; border-bottom: 0; }
  .tab-espec td { padding: 2px 12px 10px; }
  .tab-espec tr:last-child td { border-bottom: 0; }
  .tab-espec tr:not(:last-child) td { border-bottom: 1px solid var(--line); }
}
/* Formas de pagamento recolhidas (<details> nativo): resumo com a mesma cara do "Ver detalhes ›" da vitrine */
.pg-det summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 6px; margin-inline-start: -6px; font-weight: 700; font-size: 19px; color: var(--g); }
.pg-det summary::-webkit-details-marker { display: none; }
.pg-det summary::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform .2s ease; }
.pg-det[open] summary::after { transform: rotate(90deg); }
.pg-det .tabela-rolagem { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .pg-det summary::after { transition: none; } }
.vit-img a, .vit-nome a { color: inherit; }
.vit-nome a { text-decoration: none; }
.vit-nome a:hover { text-decoration: underline; text-underline-offset: 4px; }
.vit-mais { font-weight: 700; color: var(--g); display: inline-flex; align-items: center; min-height: 48px; }
@media (max-width: 860px) {
  .prod-grid { grid-template-columns: 1fr; gap: 24px; }
  .prod-info h1 { font-size: 23px; }
  .pi-preco strong { font-size: 38px; }
}
@media (max-width: 520px) {
  .comprar { padding: 14px; }
  .comprar select { font-size: 15.5px; padding-inline: 8px; }
}

/* Detalhe compacto */
@media (min-width: 861px) {
  .prod-pag { padding-top: 14px; padding-bottom: 40px; }
  .prod-pag .migalhas { margin-bottom: 6px; font-size: 16px; }
  .prod-pag .migalhas a { min-height: 30px; }
  .prod-grid { gap: 28px 36px; }
  .galeria { gap: 8px; }
  .g-principal { aspect-ratio: auto; height: clamp(260px, calc(100vh - 280px), 401px); }
  .g-mini { gap: 8px; }
  .g-mini a { width: 64px; height: 50px; }
  .prod-info { gap: 6px; }
  .prod-info h1 { font-size: 22px; line-height: 1.2; }
  .pi-preco { gap: 2px; }
  .pi-preco strong { font-size: 34px; line-height: 1.1; }
  .prod-info .vit-tag { font-size: 15px; line-height: 1.3; }
  .prod-info .vit-parc { font-size: 17px; line-height: 1.3; }
  .comprar { padding: 12px 16px; gap: 6px; border-radius: 14px; }
  .comprar h2 { font-size: 21px; line-height: 1.2; }
  .comprar p { font-size: 16px; line-height: 1.35; }
  .comprar label { font-size: 17px; line-height: 1.2; }
  .comprar select { font-size: 17px; min-height: 44px; padding-block: 6px; }
  .forma-resumo { padding: 5px 10px; font-size: 16px; line-height: 1.3; }
  .comprar .btn { min-height: 44px; padding-block: 6px; font-size: 19px; }
  .pi-acoes .btn { min-height: 44px; padding-block: 6px; font-size: 19px; }   /* produto sem compra: igual ao "Comprar pelo WhatsApp" */
  /* Formas de pagamento dentro da coluna: resumo mais baixo e tabela que cabe sem rolagem horizontal */
  .pg-det summary { min-height: 36px; }
  .pg-det .tabela-rolagem { margin-top: 6px; }
  .pg-det .tab-pg { min-width: 0; font-size: 16px; }
  .pg-det .tab-pg th, .pg-det .tab-pg td { padding: 8px 10px; }
  .pg-det .tab-pg .aa { font-size: 14px; }
}

/* Menu: em larguras médias encolhe fonte e espaços (continua em uma linha) */
@media (max-width: 1160px) {
  .header .in { gap: 14px; }
  .menu { gap: 14px; font-size: 17px; }
  .header .btn { font-size: 17px; }
}
@media (max-width: 1080px) {
  .menu { gap: 12px; }
  .header .btn { padding-inline: 14px; }
  .hide-md { display: none; }
}

/* Responsivo */
@media (max-width: 1000px) {
  .header nav[aria-label="Menu principal"] { display: none; }
  .menu-mob { display: block; }
  .header .in { position: relative; }
}
@media (max-width: 860px) {
  .hero .in, .prob, .why, .contact { grid-template-columns: 1fr; }
  .cards, .grid2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 30px; }
}
@media (max-width: 520px) {
  .steps, .footer .cols { grid-template-columns: 1fr; }
  .header .in { gap: 10px; }
  .header .logo img { height: 40px; }
  .header .btn, .menu-mob summary { font-size: 17px; padding: 10px 12px; }
  .hide-sm { display: none; }
}
@media (max-width: 400px) {   /* celular estreito: o logo não pode encolher, então tudo em volta aperta */
  .header .in { gap: 8px; }
  .header .logo img { height: 34px; }
  .header .btn, .menu-mob summary { font-size: 16px; padding: 10px 10px; }
}
/* Vitrine /produtos: 4 colunas no desktop, 3 em telas médias, 2 no tablet, 1 no celular estreito */
@media (max-width: 1100px) { .cards.vitrine { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cards.vitrine { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards.vitrine { grid-template-columns: 1fr; } .vit-grade { padding-top: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
