/* MobiliConnect · loja.css — mobile-first. Alvo ≥ 44 px, letra ≥ 12 px, foco visível. */
:root {
  --navy: #0E2A5C;
  --navy-2: #163A7A;
  --sky: #38B6FF;
  --quente: #FFC23A;
  --bg: #F3F5F9;
  --paper: #FFFFFF;
  --surface: #F3F5F9;
  --ink: #0F1A2B;
  --ink-2: #455269;
  --line: #C9D2DF;
  --line-2: #E2E7EF;
  --accent: #1560BD;
  --accent-bg: #E6EFFB;
  --ok: #0B6E3F;
  --ok-bg: #E3F4EA;
  --alerta-bg: #FFF1CC;
  --alerta-ink: #6B4300;
  --erro: #B42318;
  --erro-bg: #FDECEA;
  --foco: #1560BD;
  --raio: 12px;
  --raio-s: 8px;
  --sombra: 0 1px 2px rgba(15, 26, 43, .06), 0 8px 28px rgba(15, 26, 43, .07);
  --f-texto: "Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-titulo: "Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-texto); font-size: 1rem; line-height: 1.45;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
body.com-barra { padding-bottom: 76px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nw { white-space: nowrap; }

.pular { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--paper); padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.pular:focus { top: 8px; }

/* ---------- Topo ---------- */

.cab { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line-2); }
.cab-in { max-width: 1180px; margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.marca-mc {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  background: var(--navy); color: #FFFFFF; border-radius: 7px;
  font: 800 1.375rem/1 var(--f-titulo); letter-spacing: -.01em;
}
.marca-nome { font: 700 1.125rem/1 var(--f-texto); letter-spacing: -.005em; }
.marca-nome small { display: block; margin-top: 3px; font: 600 .75rem/1 var(--f-texto); letter-spacing: .3em; color: var(--accent); }
.btn-carrinho {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px;
  padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-weight: 600; font-size: .9375rem;
}
.btn-carrinho svg { width: 22px; height: 22px; }
.btn-carrinho:hover { border-color: var(--navy); }
.cab-qtd {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center;
  background: var(--navy); color: #FFFFFF; font-size: .75rem; font-weight: 700;
}
.cab-qtd.zero { background: var(--line-2); color: var(--ink-2); }
.cab-qtd.pulso { animation: pulso .45s ease; }
@keyframes pulso { 50% { transform: scale(1.3); } }
.cab-total { white-space: nowrap; }
.cab-qtd[hidden] { display: none; }
a.btn-carrinho { color: var(--ink); text-decoration: none; }
.cab-acoes { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cab-conta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px;
  padding: 6px 12px 6px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap;
}
.cab-conta svg { width: 22px; height: 22px; }
.cab-conta:hover { background: var(--surface); }
.cab-conta.logado { color: var(--navy); }

/* ---------- Hero ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 20px 0 12px; }
.hero h1 { font: 800 1.875rem/1.02 var(--f-titulo); letter-spacing: -.005em; color: var(--navy); text-wrap: balance; }
.hero-sub { margin-top: 8px; font-size: 1rem; color: var(--ink-2); max-width: 46ch; }
.selos { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.selos li {
  display: flex; align-items: flex-start; gap: 6px; padding: 8px; border: 1px solid var(--line-2);
  background: var(--paper); border-radius: var(--raio-s); font-size: .75rem; line-height: 1.25; color: var(--ink-2);
}
.selos svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.selos b { display: block; color: var(--ink); font-size: .8125rem; }

/* ---------- Categorias ---------- */
.cats { margin: 4px -16px 0; }
.cats ul { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 12px; scrollbar-width: none; }
.cats ul::-webkit-scrollbar { display: none; }
.cats a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.cats a:hover { border-color: var(--navy); }
.cats a span { margin-left: 6px; color: var(--ink-2); font-weight: 500; font-size: .8125rem; }

/* ---------- Grade de produtos ---------- */
.grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 32px; outline: none; }
.carregando { padding: 40px 0; color: var(--ink-2); }

.card {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--raio);
  box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  scroll-margin-top: 0;   /* o html já tem scroll-padding-top (cabeçalho fixo): somar os dois deixava 144 px de folga */
}
.card-foto { position: relative; background: #FFFFFF; border-bottom: 1px solid var(--line-2); }
.foto-btn { display: block; width: 100%; padding: 0; border: 0; background: #FFFFFF; cursor: zoom-in; }
.foto-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
@media (min-width: 640px) { .foto-btn img { aspect-ratio: 1; } }
.foto-btn:focus-visible { outline-offset: -4px; }
.foto-cont {
  position: absolute; right: 10px; bottom: 10px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15, 26, 43, .78); color: #FFFFFF; font-size: .75rem; font-weight: 600;
  padding: 5px 9px; border-radius: 999px;
}
.foto-cont svg { width: 14px; height: 14px; }
.selo-limitado {
  position: absolute; left: 10px; top: 10px;
  background: var(--alerta-bg); color: var(--alerta-ink); border: 1px solid #E9C66A;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 6px;
}

.card-corpo { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-nome { font: 700 1.5rem/1.05 var(--f-titulo); color: var(--ink); letter-spacing: .003em; }
.card-resumo { margin-top: 4px; font-size: .9375rem; color: var(--ink-2); }

.opc legend, .bloco-tit {
  display: block; margin-bottom: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
}
.opc legend b { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .875rem; margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* rádio com cara de chip: o input fica por cima (clicável e focável) */
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.chip > span {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--raio-s);
  background: var(--paper); font-weight: 600; font-size: .9375rem; color: var(--ink); white-space: nowrap;
}
.chip:hover > span { border-color: var(--ink-2); }
.chip input:checked + span { border: 2px solid var(--navy); background: var(--accent-bg); color: var(--navy); padding: 0 13px; }
.chip input:focus-visible + span { outline: 3px solid var(--foco); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.sw { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }

/* modo: kit × atacado */
.modo { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; }
.modo .chip { display: flex; }
.modo .chip { min-width: 0; }
.modo .chip > span { white-space: normal; text-align: center; width: 100%; border: 0; background: transparent; flex-direction: column; gap: 0; line-height: 1.1; padding: 6px 8px; min-height: 48px; }
.modo .chip > span small { font-size: .75rem; font-weight: 500; color: var(--ink-2); }
.modo .chip input:checked + span { background: var(--paper); border: 0; padding: 6px 8px; box-shadow: 0 1px 3px rgba(15, 26, 43, .16); color: var(--navy); }

/* chips de kit */
.kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.kits .chip { display: flex; }
.kits .chip > span { width: 100%; flex-direction: column; gap: 2px; padding: 10px 6px; min-height: 76px; line-height: 1.1; }
.kits .chip input:checked + span { padding: 9px 5px; }
/* chip do kit (08/10): rótulo pequeno, preço do kit grande e "R$ x cada" separado por uma linha */
.k-pc { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.k-preco { font: 700 1.25rem/1.1 var(--f-titulo); letter-spacing: .01em; color: var(--ink); }
.k-unit { margin-top: 4px; padding-top: 5px; border-top: 1px solid var(--line); width: 80%; text-align: center; font-size: .75rem; font-weight: 500; color: var(--ink-2); }
.chip input:checked + span .k-pc, .chip input:checked + span .k-unit { color: var(--navy); }
.chip input:checked + span .k-preco { color: var(--navy); }
/* selo "Frete grátis" só no kit que sai grátis no Sul/Sudeste (preços de lançamento 07/10) */

/* atacado */
.atac { display: grid; gap: 12px; }
.atac[hidden] { display: none; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--raio-s); overflow: hidden; background: var(--paper); max-width: 280px; }
.stepper button { width: 48px; min-height: 48px; border: 0; background: var(--surface); font-size: 1.375rem; font-weight: 600; color: var(--navy); }
.stepper button:hover { background: var(--accent-bg); }
.stepper button:disabled { color: #9AA6B8; cursor: not-allowed; background: var(--surface); }
.stepper label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 8px; }
.stepper input { width: 100%; min-width: 0; max-width: 90px; border: 0; text-align: right; font-weight: 700; font-size: 1.125rem; padding: 8px 0; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: none; }
.stepper label:focus-within { outline: 3px solid var(--foco); outline-offset: -3px; }
.stepper .un { font-size: .875rem; color: var(--ink-2); }
.stepper.pequeno { max-width: 150px; }
.stepper.pequeno button { width: 44px; min-height: 44px; font-size: 1.25rem; }
.stepper.pequeno input { font-size: 1rem; max-width: 64px; text-align: center; }
.stepper.pequeno label { padding: 0 4px; }

.escada { display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: var(--raio-s); overflow: hidden; }
.escada li + li { border-top: 1px solid var(--line-2); }
.escada button {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border: 0; background: var(--paper); text-align: left; font-size: .9375rem;
}
.escada button:hover { background: var(--surface); }
.escada .fx-q { color: var(--ink-2); }
.escada .fx-p { font-weight: 700; white-space: nowrap; }
.escada .fx-p small { font-weight: 500; color: var(--ink-2); font-size: .8125rem; }
.escada .atual button { background: var(--accent-bg); box-shadow: inset 4px 0 0 var(--navy); }
.escada .atual .fx-q { color: var(--navy); font-weight: 700; }
.escada .bloq button { background: var(--surface); cursor: not-allowed; }
.escada .bloq .fx-q, .escada .bloq .fx-p { color: #6B778A; }
.escada .bloq .fx-p { font-weight: 500; font-size: .8125rem; }
.dica { font-size: .875rem; color: var(--navy); font-weight: 600; }
.dica.erro { color: var(--erro); }
.regra { font-size: .8125rem; color: var(--ink-2); line-height: 1.4; }

/* total do cartão */
.card-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-2); margin-top: auto; }
.ct-valor { font: 800 1.75rem/1 var(--f-titulo); color: var(--ink); white-space: nowrap; }
.ct-pc { display: block; margin-top: 4px; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.ct-pc:empty { display: none; }
/* cesta: "R$ 23,90 · leve 2 ou mais: R$ 19,90 cada" (texto ≥ 12 px) */
.ct-cesta { display: inline; font-size: .8125rem; font-weight: 700; color: var(--ok); vertical-align: 3px; }
.ct-cesta:empty { display: none; }
.economia { font-size: .8125rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 5px 8px; border-radius: 6px; }
.economia:empty { display: none; }
.ct-pix { display: block; margin-top: 3px; font-size: .8125rem; font-weight: 700; color: var(--ok); white-space: nowrap; }
.ct-pix:empty { display: none; }
/* frete do kit (frete dividido): quebra linha no celular, nunca rolagem lateral */
.ct-frete-box { flex: 1 0 100%; display: grid; gap: 2px; min-width: 0; }
.ct-frete { font-size: .8125rem; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.ct-total-frete { font-size: .875rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ct-frete:empty, .ct-total-frete:empty { display: none; }
.ct-frete-box .btn-link { justify-self: start; padding: 0; font-size: .875rem; text-align: left; }
.ct-frete-box .btn-link[hidden] { display: none; }

/* CEP no começo (topo da vitrine e gaveta): mesmo desenho */
.cep-box { display: grid; gap: 6px; min-width: 0; }
.cep-vitrine { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--raio); background: var(--paper); max-width: 520px; }
.cep-form { display: grid; gap: 6px; }
.cep-form[hidden], .cep-ok[hidden] { display: none; }
.cep-form label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.cep-linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.cep-linha input {
  min-height: 48px; min-width: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font-size: 1rem; color: var(--ink);
}
.cep-linha input:focus-visible { outline: 3px solid var(--foco); outline-offset: 0; border-color: var(--foco); }
.cep-linha input[aria-invalid="true"] { border-color: var(--erro); box-shadow: 0 0 0 1px var(--erro); }
.cep-linha .btn-sec { padding: 0 16px; }
.cep-ok { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9375rem; line-height: 1.3; color: var(--ink); }
.cep-ok > span { flex: 1; min-width: 0; }
.cep-ok b { overflow-wrap: anywhere; }
.cep-ok .btn-link { flex: none; }
.cep-msg { font-size: .8125rem; color: var(--ink-2); }
.cep-msg.erro { color: var(--erro); font-weight: 600; }
.cep-msg:empty { display: none; }
/* Mini Envios, PAC e SEDEX (08/10): quadro do CEP no topo e gaveta */
.fr-servicos { display: grid; gap: 6px; }
.fr-servicos:empty { display: none; }
.fr-tit { font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.fr-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fr-lista li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; align-items: baseline; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.fr-lista li.sel { border: 2px solid var(--navy); padding: 7px 9px; background: var(--accent-bg); }
.fr-nome { font-weight: 700; font-size: .9375rem; color: var(--ink); }
.fr-valor { font-weight: 700; font-size: .9375rem; white-space: nowrap; text-align: right; color: var(--ink); }
.fr-valor small { font-weight: 500; font-size: .75rem; color: var(--ink-2); }
.fr-det { grid-column: 1 / -1; font-size: .8125rem; color: var(--ink-2); }
.fr-lista li.off { background: var(--surface); border-style: dashed; }
.fr-lista li.off .fr-nome, .fr-lista li.off .fr-valor { color: var(--ink-2); font-weight: 600; }
.gav-frete { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--surface); }
.gav-frete .bloco-tit { margin: 0; }
#gav-frete-info { display: grid; gap: 6px; }
#gav-frete-info:empty { display: none; }
.gav-frete-val { display: grid; gap: 2px; font-size: .9375rem; }
.nota-peq.ok { color: var(--ok); font-weight: 600; }

.btn-pri, .btn-sec {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none;
}
.btn-pri { border: 0; background: var(--navy); color: #FFFFFF; }
.btn-pri:hover { background: var(--navy-2); }
.btn-pri:disabled { background: #9AA6B8; cursor: not-allowed; }
.btn-sec { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.btn-sec:hover { border-color: var(--navy); }
.btn-add { width: 100%; }
.btn-add.ok { background: var(--ok); }
.btn-add svg { width: 20px; height: 20px; }

/* Comprar no Mercado Livre: secundário (contorno, letra menor), nunca compete com o "Adicionar ao carrinho" */
.btn-ml {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none;
}
.btn-ml[hidden] { display: none; }
.btn-ml:hover { border-color: var(--ink-2); background: var(--surface); }
.ml-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #FFE600; color: #1B2A5E; display: grid; place-items: center; }
.ml-ic svg { width: 24px; height: 24px; }
.ml-txt { display: grid; gap: 2px; min-width: 0; }
.ml-tit { font-weight: 600; font-size: .9375rem; line-height: 1.2; }
.ml-preco { font-size: .8125rem; line-height: 1.3; color: var(--ink-2); }
.ml-preco:empty { display: none; }
.ml-slot { display: grid; }
.ml-slot[hidden] { display: none; }
/* sem anúncio ativo: só a comparação do preço do kit, sem link (não parece botão) */
.ml-ref { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 2px; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.ml-ref[hidden] { display: none; }
.ml-ref b { color: var(--ink); }
.ml-ic-p { width: 28px; height: 28px; }
.ml-ic-p svg { width: 20px; height: 20px; }
/* checkout: pagamento seguro e aceite dos termos */
.pag-seguro { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: .8125rem; color: var(--ink-2); }
.pag-seguro svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ok); }
.ck-termos { margin: 4px 0 10px; max-width: none; }
.ck-termos a { display: inline-block; padding: 13px 0; margin: -13px 0; }
.btn-link { border: 0; background: none; padding: 0 4px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.det { border-top: 1px solid var(--line-2); padding-top: 12px; }
.faq summary {
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s;
}
details[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.det dl { display: grid; gap: 6px; }
.det dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: .875rem; }
.det dt { font-size: .75rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }

/* ---------- FAQ e rodapé ---------- */
.faq { max-width: 760px; padding: 16px 0 40px; }
.faq h2 { font: 800 1.75rem/1 var(--f-titulo); color: var(--navy); margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 10px 0; font-size: 1rem; }
.faq details p { padding: 0 0 14px; color: var(--ink-2); font-size: .9375rem; }
.faq details p a { display: inline-block; padding: 13px 0; margin: -13px 0; overflow-wrap: anywhere; }

.rodape { background: var(--navy); color: #FFFFFF; }
.rodape-in { max-width: 1180px; margin: 0 auto; padding: 28px 16px 32px; display: grid; gap: 18px; }
.marca-rodape { color: #FFFFFF; }
.marca-rodape .marca-mc { background: #FFFFFF; color: var(--navy); }
.marca-rodape .marca-nome small { color: var(--sky); }
.rodape-dados { display: grid; gap: 8px; }
.rodape-dados div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: .875rem; }
.rodape-dados dt { color: #BFE6FF; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.rodape a { color: #FFFFFF; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rodape-dados a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.rodape-links { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 6px; }
.rodape-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.rodape-links a { display: flex; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }
.rodape-links a:hover, .rodape-links a[aria-current="page"] { text-decoration: underline; }
.rodape-links a[aria-current="page"] { font-weight: 700; }
.rodape-copy { font-size: .8125rem; color: #DCE6F5; }
.rodape :focus-visible { outline-color: var(--quente); }

/* ---------- Barra fixa do carrinho ---------- */
.barra-carrinho {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 26, 43, .08);
}
.barra-carrinho[hidden] { display: none; }
.barra-carrinho button {
  width: 100%; min-height: 52px; border: 0; border-radius: 10px; background: var(--navy); color: #FFFFFF;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 700; font-size: 1rem;
}
.barra-total { white-space: nowrap; }

/* ---------- Diálogos ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--paper); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(9, 18, 36, .55); }
.fechar, .ck-voltar {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink);
}
.fechar:hover, .ck-voltar:hover { background: var(--surface); }
.fechar svg, .ck-voltar svg { width: 24px; height: 24px; }

/* carrinho: tela cheia no celular, gaveta no computador */
.gaveta[open] { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; }
.gav-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line-2); }
.gav-cab h2 { font: 700 1.375rem/1 var(--f-titulo); }
.gav-corpo { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; align-content: start; gap: 14px; }
.gav-rodape { border-top: 1px solid var(--line-2); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--paper); }
.gav-rodape:empty { display: none; }

.progresso { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--surface); font-size: .9375rem; }
.progresso.ok { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.progresso .btn-sec { justify-self: start; min-height: 44px; }
.barra { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.aviso { padding: 12px; border-radius: 10px; font-size: .9375rem; background: var(--alerta-bg); color: var(--alerta-ink); border: 1px solid #EBCB78; }
.aviso b { color: #4A2E00; }
.aviso.info { background: var(--accent-bg); color: var(--navy); border-color: #BCD3F2; }
.aviso.erro { background: var(--erro-bg); color: var(--erro); border-color: #F3B7B0; }
/* link dentro do aviso (ex.: "contato"): alvo de 44 px de altura sem mudar a linha */
.aviso a { color: inherit; font-weight: 700; text-underline-offset: 3px; display: inline-block; padding: 13px 0; margin: -13px 0; }

.itens { display: grid; }
.item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.item:first-child { padding-top: 2px; }
.item img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line-2); border-radius: 8px; background: #FFFFFF; grid-row: span 2; }
.it-nome { font-weight: 700; font-size: .9375rem; line-height: 1.25; }
.it-var { display: block; font-weight: 500; color: var(--ink-2); font-size: .875rem; }
.it-tag { display: inline-block; margin-top: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: var(--accent-bg); color: var(--navy); }
.it-tag.atac { background: var(--alerta-bg); color: var(--alerta-ink); }
.it-info { display: block; font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
.it-info.ok { color: var(--ok); font-weight: 600; }
.it-acoes { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.it-total { font-weight: 700; white-space: nowrap; }
.it-remover { min-height: 44px; min-width: 44px; padding: 0 6px; border: 0; background: none; color: var(--ink-2); font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.it-remover:hover { color: var(--erro); }
.vazio { padding: 40px 8px; text-align: center; color: var(--ink-2); display: grid; gap: 16px; justify-items: center; }

.linhas { display: grid; gap: 6px; font-size: .9375rem; }
.linhas div { display: flex; justify-content: space-between; gap: 12px; }
.linhas dd { white-space: nowrap; }
.linhas .verde dd { color: var(--ok); font-weight: 600; }
.linhas .total { padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 1.125rem; font-weight: 700; }
.nota-peq { font-size: .8125rem; color: var(--ink-2); }

/* checkout */
.checkout[open] { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.ck-cab { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 8px; background: var(--paper); border-bottom: 1px solid var(--line-2); }
.ck-cab h2 { text-align: center; font: 700 1.25rem/1 var(--f-titulo); }
.ck-voltar[hidden] { visibility: hidden; display: grid; }
.ck-passos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line-2); font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.ck-passos li { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 3px solid var(--line-2); }
.ck-passos span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); font-size: .8125rem; font-weight: 700; flex: none; }
.ck-passos li.ativo { color: var(--navy); border-color: var(--navy); }
.ck-passos li.ativo span, .ck-passos li.feito span { background: var(--navy); color: #FFFFFF; }
.ck-passos li.feito { border-color: var(--navy); }
.ck-passos[hidden] { display: none; }
.ck-grade { flex: 1; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.ck-principal { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ck-resumo { min-width: 0; order: -1; }
.ck-bloco { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--raio); padding: 16px; display: grid; gap: 14px; }
.ck-bloco h3 { font: 700 1.25rem/1.1 var(--f-titulo); }

.campo { display: grid; gap: 6px; min-width: 0; }
.campo label, .campo .rot { font-size: .875rem; font-weight: 600; }
.campo label small { font-weight: 500; color: var(--ink-2); font-size: .8125rem; }
.campo input, .campo select {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--raio-s);
  background: var(--paper); font-size: 1rem;
}
.campo input:focus-visible, .campo select:focus-visible { outline: 3px solid var(--foco); outline-offset: 0; border-color: var(--foco); }
.campo input[readonly] { background: var(--surface); color: var(--ink-2); }
.campo input[aria-invalid="true"] { border-color: var(--erro); box-shadow: 0 0 0 1px var(--erro); }
.campo .erro-msg { font-size: .8125rem; color: var(--erro); font-weight: 600; }
.campo .erro-msg:empty { display: none; }
.campo .ajuda { font-size: .8125rem; color: var(--ink-2); }
.linha2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.linha-cep { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.linha-num { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.cidade { font-size: .9375rem; color: var(--ink); }
.cidade b { color: var(--navy); }

.opcoes { display: grid; gap: 10px; }
#ck-frete { display: grid; gap: 12px; }
#ck-frete:empty { display: none; }
.opcao { position: relative; display: block; }
.opcao input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.opcao > span {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  min-height: 60px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.opcao > span::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); grid-row: span 2; background: var(--paper); }
.opcao input:checked + span { border: 2px solid var(--navy); padding: 11px 13px; background: var(--accent-bg); }
.opcao input:checked + span::before { border: 6px solid var(--navy); }
.opcao input:focus-visible + span { outline: 3px solid var(--foco); outline-offset: 2px; }
/* opção indisponível (ex.: Mini Envios que não cabe): legível (contraste ≥ 4,5:1), sem opacidade, borda tracejada */
.opcao input:disabled { cursor: not-allowed; }
.opcao input:disabled + span { cursor: not-allowed; background: var(--surface); border-style: dashed; color: var(--ink-2); }
.opcao input:disabled + span .op-nome, .opcao input:disabled + span .op-preco { color: var(--ink-2); font-weight: 600; }
.opcao input:disabled + span::before { background: var(--surface); }
.op-nome { font-weight: 700; }
.op-sel { display: inline-block; margin-left: 6px; font-size: .75rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 2px 6px; border-radius: 4px; vertical-align: 1px; }
.op-preco { font-weight: 700; white-space: nowrap; text-align: right; grid-row: span 2; }
.op-preco s { display: block; font-weight: 500; font-size: .8125rem; color: var(--ink-2); }
.op-preco .gratis { color: var(--ok); }
.op-det { font-size: .8125rem; color: var(--ink-2); grid-column: 2; }

.interruptor { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.interruptor input { width: 24px; height: 24px; accent-color: var(--navy); margin: 0; }

.resumo-box { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--raio); }
.resumo-box > summary { min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-weight: 700; }
.resumo-box > summary::-webkit-details-marker { display: none; }
.resumo-box .rs-in { padding: 0 16px 16px; display: grid; gap: 12px; }
.rs-itens { display: grid; gap: 8px; font-size: .875rem; }
.rs-itens li { display: flex; justify-content: space-between; gap: 12px; }
.rs-itens li span:last-child { white-space: nowrap; font-weight: 600; }
.rs-itens small { display: block; color: var(--ink-2); font-size: .8125rem; }

.pix-box { display: grid; gap: 12px; justify-items: center; text-align: center; }
.pix-box img { width: 220px; height: 220px; border: 1px solid var(--line-2); border-radius: 8px; }
.pix-box textarea { width: 100%; min-height: 88px; font: .8125rem/1.3 ui-monospace, Consolas, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; resize: none; }

.feito-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.feito-ic svg { width: 34px; height: 34px; }
.feito { text-align: center; justify-items: center; }
.feito h3 { font-size: 1.75rem; }
.feito p { max-width: 44ch; }

/* galeria */
.galeria[open] { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; background: #FFFFFF; }
.gal-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line-2); }
.gal-tit { font: 700 1.25rem/1.1 var(--f-titulo); }
.gal-palco { flex: 1; min-height: 0; display: grid; place-items: center; padding: 12px; }
.gal-palco img, .gal-palco video { max-width: 100%; max-height: 100%; object-fit: contain; }
.gal-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px; font-size: .875rem; color: var(--ink-2); }
.gal-nav button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.gal-nav svg { width: 22px; height: 22px; }
.gal-miniaturas { display: flex; gap: 8px; justify-content: center; padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); overflow-x: auto; }
.gal-miniaturas button { width: 60px; height: 60px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF; overflow: hidden; flex: none; }
.gal-miniaturas button[aria-current="true"] { border: 2px solid var(--navy); }
.gal-miniaturas img { width: 100%; height: 100%; object-fit: contain; }

/* cookies e toast */
.cookies {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 12px 14px; display: grid; gap: 10px; font-size: .875rem;
}
.cookies[hidden] { display: none; }
.cookies-bt { display: flex; gap: 8px; justify-content: flex-end; }
.cookies .btn-pri, .cookies .btn-sec { min-height: 44px; font-size: .9375rem; }
.cookies a { display: inline-flex; align-items: center; min-height: 44px; }
body.com-barra .cookies { bottom: 84px; }

.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: min(420px, calc(100% - 32px)); background: var(--ink); color: #FFFFFF; border-radius: 12px;
  padding: 10px 10px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: .9375rem; transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
body.com-barra .toast { bottom: 88px; }
.toast button { min-height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; background: transparent; color: #FFFFFF; font-weight: 700; white-space: nowrap; }
.toast :focus-visible { outline-color: var(--sky); }
.noscript { padding: 16px; background: var(--alerta-bg); text-align: center; }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  /* o selo de economia só aparece no atacado (08/10): no kit não guarda espaço (sem buraco entre o Pix e o frete) */
  .card-total > div { flex: 1 0 100%; }
  /* idem para o botão do ML: com ele em algum card, todos guardam a mesma altura (loja.js marca .tem-ml) */
  .ct-pix:empty { display: block; visibility: hidden; }
  .ct-pix:empty::before { content: "\00a0"; }
  /* kit mostra o Pix, atacado o preço por peça: sempre UMA linha, os cards da fileira continuam alinhados */
  .ct-pc:not(:empty) + .ct-pix:empty { display: none; }
  .btn-ml, .ml-ref { min-height: 72px; }
  .grade.tem-ml .ml-slot { min-height: 72px; }
  .grade.tem-ml .ml-slot[hidden] { display: grid; visibility: hidden; }
  .hero h1 { font-size: 2.5rem; }
  /* 3 selos lado a lado quando cabem; senão quebram linha (antes: rolagem lateral entre 640 e ~780 px) */
  .selos { display: flex; flex-wrap: wrap; gap: 10px; }
  .selos li { padding: 8px 12px; align-items: center; }
  .selos b { display: inline; margin-right: 4px; }
  .cats { margin: 4px 0 0; }
  .cats ul { padding: 8px 0 14px; flex-wrap: wrap; }
  .rodape-in { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  .rodape-in .rodape-links, .rodape-in .rodape-copy { grid-column: 2; }
  .rodape-links ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cookies { left: auto; right: 16px; width: 420px; }
}
@media (min-width: 760px) {
  body.com-barra { padding-bottom: 0; }
  .barra-carrinho { display: none !important; }
  body.com-barra .toast, body.com-barra .cookies { bottom: 20px; }
  .gaveta[open] { left: auto; width: 440px; border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(9, 18, 36, .2); }
  .galeria[open] { inset: 4vh 0; width: min(880px, 92vw); height: 92vh; margin: auto; border-radius: 16px; }
}
@media (min-width: 1000px) {
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .hero { padding: 32px 0 14px; }
  .hero h1 { font-size: 2.875rem; }
  .ck-grade { grid-template-columns: minmax(0, 1fr) 360px; max-width: 1040px; width: 100%; margin: 0 auto; gap: 24px; padding-top: 24px; }
  .ck-resumo { order: 0; position: sticky; top: 0; align-self: start; }
  .ck-passos { justify-content: center; grid-template-columns: repeat(2, 220px); }
}

/* celular (< 480 px): conta = ícone de pessoa com o texto curto embaixo ("Entrar" ou "Conta");
   o total do carrinho some (fica a quantidade; a barra de baixo mostra o total). O texto escondido continua
   para leitor de tela. Vale para todas as páginas (o cabeçalho é um só, gerado pelo gerar_paginas.py). */
@media (max-width: 479px) {
  .cab-total, .cab-minha { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .cab-conta { flex-direction: column; gap: 2px; padding: 2px 6px; font-size: .75rem; line-height: 1.1; }
  .cab-curto { text-transform: capitalize; }
  .btn-carrinho { padding: 6px 10px; }
  .cab-in { gap: 8px; }
}
.interruptor input { flex: none; }
