/* Loja virtual (#918): estrutura comum a todos os temas, mobile first.
   Cores, fontes, raios e proporções vêm das variáveis abaixo; cada tema
   (static/themes/<tema>.css, domain.StoreThemes) troca as variáveis e ajusta
   o que é só dele. Sem fontes de fora (CSP: tudo da própria loja).
   No body também: as variáveis derivadas (--announce-bg: var(--primary)...)
   são recalculadas com as cores do tema, que fica na classe do body. */
:root, body {
  --bg: #f7f7f5; --surface: #fff; --surface-2: #f1f1ee; --text: #1d2125; --text-2: #4a5056; --muted: #7a8087; --border: #e4e4e0;
  --primary: #1d2125; --primary-ink: #fff; --primary-soft: #ececea; --accent: #2f6b4f; --accent-ink: #fff;
  --danger: #b42318; --ok: #1f7a4d; --warn-bg: #fff6e0;
  --announce-bg: var(--primary); --announce-ink: var(--primary-ink);
  --hero-bg: var(--surface-2); --foot-bg: var(--surface); --foot-ink: var(--text); --foot-muted: var(--muted);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body); --display-weight: 700; --display-tracking: -0.02em; --display-case: none;
  --eyebrow-tracking: 0.12em;
  --radius: 14px; --radius-sm: 10px; --radius-btn: 999px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05); --shadow-lg: 0 12px 32px -12px rgb(0 0 0 / 0.18);
  --wrap: 1200px; --thumb-ratio: 1 / 1; --header-h: 68px;
  --t0: #e9e4dc; --t0i: #6b5a43; --t1: #dfe7e2; --t1i: #3e5c4b; --t2: #e3e4ee; --t2i: #45487a;
  --t3: #efe0dc; --t3i: #8a4636; --t4: #e6e1ea; --t4i: #5f4870; --t5: #e0e9ec; --t5i: #36606b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(26px, 4vw, 34px); } h2 { font-size: 20px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--surface); border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--accent); }
.link { color: var(--text-2); font-size: 14px; }

/* Faixa de anúncio e topo */
.announce { background: var(--announce-bg); color: var(--announce-ink); font-size: 13px; text-align: center; padding: 8px 0; }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--radius-sm); background: var(--primary); color: var(--primary-ink); font: 700 14px/1 var(--font-display); letter-spacing: 0.02em; }
/* Logo da loja (#962). Automático: a altura do topo do tema com 8px de folga em cima
   e embaixo (52px no padrão, de 48px no Urbano a 68px no Boutique). A loja pode pedir
   outro tamanho (/estilo.css): --logo-scale (proporção) ou --logo-h (pixels); o topo
   cresce junto (min-height + a folga do .has-logo) e --header-real acompanha. */
.brand.has-logo { padding-block: 8px; }
.brand-logo { display: block; height: var(--logo-h, calc((var(--header-h) - 16px) * var(--logo-scale, 1))); width: auto; max-width: min(var(--logo-maxw, 280px), 50vw); object-fit: contain; }
.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; }
.brand-name { font: var(--display-weight) 19px/1.1 var(--font-display); letter-spacing: var(--display-tracking); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--text); }
.tools { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex: 1; min-width: 0; }
.search { position: relative; flex: 1; min-width: 0; max-width: 420px; }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px; }
.cart-link .icon { width: 24px; height: 24px; }
.cart-label { display: none; }
.badge { position: absolute; top: 0; left: 22px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; line-height: 19px; text-align: center; }
@media (max-width: 599px) {
  .top-row { flex-wrap: wrap; height: auto; padding: 10px 20px; gap: 10px 14px; }
  .tools { display: contents; }
  .brand { flex: 1; }
  .brand.has-logo { padding-block: 0; }
  .brand-logo { height: min(96px, var(--logo-h, calc(48px * var(--logo-scale, 1)))); max-width: 60vw; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (min-width: 900px) { .nav { display: flex; } .cart-label { display: inline; } }

/* Hero */
main { min-height: 60vh; }
.hero { background: var(--hero-bg); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); text-transform: var(--display-case); margin-bottom: 16px; }
.lead { margin: 0 0 28px; font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-search { position: relative; display: flex; gap: 8px; max-width: 520px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--surface); box-shadow: var(--shadow-lg); }
.hero-search .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 48px; padding: 0 12px 0 44px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.hero-search input:focus { outline: none; }
.hero-search .btn { height: 48px; }
.hero-art { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 5 / 4; }
.hero-tile { display: block; overflow: hidden; text-decoration: none; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-tile-0 { grid-row: span 2; }
.hero-tile img, .hero-tile .no-photo { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr 1fr; padding-top: 72px; padding-bottom: 72px; gap: 56px; } }

/* Seções e vitrine */
.section { padding-top: 40px; padding-bottom: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-title { font-size: clamp(24px, 3vw, 30px); margin: 0; }
.count { font-size: 14px; }
.section-tools { display: flex; align-items: center; gap: 16px; }
.filters { display: grid; gap: 12px; margin: -4px 0 28px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sorts, .facet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters-label { min-width: 84px; font-size: 12px; font-weight: 600; letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--surface); color: var(--text-2); font-size: 14px; text-decoration: none; }
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
@media (max-width: 599px) { .sorts, .facet { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .chip { flex: none; } }
.grid { --cols: 4; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.cols-2 .grid { --cols: 2; } .cols-3 .grid { --cols: 3; } .cols-5 .grid { --cols: 5; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.thumb { position: relative; aspect-ratio: var(--thumb-ratio); overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.thumb img, .thumb .no-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card a:hover .thumb img, .card a:hover .thumb .no-photo { transform: scale(1.04); }
/* Segunda foto ao passar o mouse (hover-on): por cima da capa, aparece. */
.thumb img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease, transform 0.5s ease; }
.hover-on .card a:hover .thumb img.alt { opacity: 1; }
@media (hover: none) { .thumb img.alt { display: none; } }
/* Formato e enquadramento das fotos (aparência da loja). */
body.ratio-quadrado { --thumb-ratio: 1 / 1; } body.ratio-retrato { --thumb-ratio: 3 / 4; }
body.ratio-alto { --thumb-ratio: 2 / 3; } body.ratio-paisagem { --thumb-ratio: 4 / 3; }
.fit-conter .thumb img, .fit-conter .gallery-photo img, .fit-conter .line-thumb img, .fit-conter .hero-tile img { object-fit: contain; background: #fff; padding: 6%; }
.card-stock { font-size: 13px; color: var(--muted); }
.card-colors { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.card-colors small { font-size: 12px; color: var(--muted); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 2px 0; }
.card-brand { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card-name { font-weight: 500; font-size: 15px; line-height: 1.35; }
.price { font-weight: 700; font-size: 16px; color: var(--text); }
.price small { font-weight: 400; font-size: 12px; color: var(--muted); }
.tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; box-shadow: var(--shadow); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }

/* Quadro no lugar da foto: iniciais sobre a cor do produto. */
.no-photo { display: grid; place-items: center; width: 100%; height: 100%; background: var(--t0); color: var(--t0i); }
.no-photo span { font: var(--display-weight) clamp(28px, 5vw, 44px)/1 var(--font-display); letter-spacing: 0.04em; opacity: 0.85; }
.tone-0 { background: var(--t0); color: var(--t0i); } .tone-1 { background: var(--t1); color: var(--t1i); } .tone-2 { background: var(--t2); color: var(--t2i); }
.tone-3 { background: var(--t3); color: var(--t3i); } .tone-4 { background: var(--t4); color: var(--t4i); } .tone-5 { background: var(--t5); color: var(--t5i); }

/* Produto */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; gap: 32px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; } .product-info { position: sticky; top: calc(var(--header-real, var(--header-h)) + 20px); } }
/* Galeria do produto, sem JavaScript: no celular, rolagem lateral com
   encaixe; no computador, a primeira foto grande e as outras em grade. */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.gallery:not(.has-many) { grid-auto-columns: 100%; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-photo { margin: 0; scroll-snap-align: center; aspect-ratio: var(--thumb-ratio); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery-photo img, .gallery-photo .no-photo { width: 100%; height: 100%; object-fit: cover; }
.gallery-photo .no-photo span { font-size: clamp(56px, 10vw, 96px); }
.gallery-hint { margin: 10px 0 0; text-align: center; }
@media (min-width: 860px) {
  .gallery { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 12px; }
  .gallery-photo:first-child { grid-column: 1 / -1; }
  .gallery:not(.has-many) { grid-template-columns: 1fr; }
  .gallery-hint { display: none; }
}
.product-name { font-size: clamp(28px, 4vw, 40px); text-transform: var(--display-case); }
.price.big { font-size: 28px; margin: 4px 0 12px; }
.price.big small { font-size: 14px; }
.stock { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--text-2); font-size: 15px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #c9a227; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.option { margin-bottom: 18px; }
.option-label { margin: 0 0 10px; font-size: 14px; color: var(--text-2); }
.option-label strong { color: var(--text); font-weight: 600; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-btn); text-decoration: none; font-size: 14px; background: var(--surface); }
.variant:hover { border-color: var(--text-2); }
.variant.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.variant.off { color: var(--muted); text-decoration: line-through; }
.variant.missing { border-style: dashed; }
/* Amostras de cor: a foto do SKU daquela cor ou a cor pronta (sw-*). */
.variants .variant.swatch { width: 52px; min-width: 0; height: 52px; padding: 3px; border-radius: 50%; overflow: hidden; background: var(--surface); }
.variants .variant.swatch img, .variants .variant.swatch .swatch-color { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.variants .variant.swatch.on { background: var(--surface); border: 2px solid var(--primary); padding: 2px; }
.variants .variant.swatch.off { opacity: 0.55; }
.variants .variant.swatch.off::after { content: ""; position: absolute; width: 140%; height: 1.5px; background: var(--muted); transform: rotate(-45deg); }
.variants .variant.swatch { position: relative; }
.dot-swatch { display: inline-block; width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.dot-swatch.sw-none { background: conic-gradient(#e66 0 25%, #fc5 0 50%, #5b8 0 75%, #58d 0); }
/* Cores com amostra pronta (domain.SwatchKey). */
.sw-preto { background: #1b1b1b; } .sw-branco { background: #fff; } .sw-offwhite { background: #f4f0e6; } .sw-creme { background: #efe4cc; }
.sw-cinza { background: #a3a7ab; } .sw-chumbo { background: #4a4e53; } .sw-azul { background: #2856c8; } .sw-marinho { background: #1c2b4f; }
.sw-azulclaro { background: #9fc6ec; } .sw-jeans { background: #4f6d8f; } .sw-verde { background: #2f8f4e; } .sw-militar { background: #5b6440; }
.sw-agua { background: #9fdcc8; } .sw-vermelho { background: #c8262c; } .sw-vinho { background: #6e1f2e; } .sw-rosa { background: #e98aa8; }
.sw-rosaclaro { background: #f6c9d4; } .sw-pink { background: #e3307f; } .sw-lilas { background: #c4a8e0; } .sw-roxo { background: #6a3a9c; }
.sw-amarelo { background: #f5cf2f; } .sw-mostarda { background: #c99a1e; } .sw-laranja { background: #ee7b25; } .sw-coral { background: #f27b6b; }
.sw-terracota { background: #b55a3c; } .sw-marrom { background: #6b4630; } .sw-caramelo { background: #b07a45; } .sw-bege { background: #d8c3a2; }
.sw-nude { background: #e3bfa6; } .sw-dourado { background: linear-gradient(135deg, #b88a2e, #f0d68a, #b88a2e); } .sw-prata { background: linear-gradient(135deg, #9aa0a6, #eef0f2, #9aa0a6); }
.buy { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.buy .btn { flex: 1; min-width: 200px; }
.qty { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.qty input, .line-qty input { width: 84px; height: 50px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; text-align: center; }
.assurances { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.assurances li { display: flex; gap: 10px; align-items: center; }
.assurances .icon { color: var(--ok); width: 18px; height: 18px; }
.description { margin: 28px 0 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.description h2 { font-size: 17px; }
.description p { margin: 0; white-space: pre-line; color: var(--text-2); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--surface); color: var(--text); font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.btn:hover { border-color: var(--text-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 86%, #000); border-color: color-mix(in srgb, var(--primary) 86%, #000); }
.btn-ghost { background: transparent; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Etapas, carrinho e finalização */
.steps { list-style: none; display: flex; gap: 8px; margin: 0 0 20px; padding: 0; font-size: 13px; color: var(--muted); counter-reset: step; flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 8px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); font-size: 12px; }
.steps li + li::after { order: -1; content: ""; width: 24px; height: 1px; background: var(--border); }
.steps li.on { color: var(--text); font-weight: 600; }
.steps li.on::before { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.steps li.done::before { content: "✓"; background: var(--primary-soft); border-color: transparent; color: var(--text); }
.steps a { color: inherit; }
.page-title { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 24px; }
.cart-layout, .checkout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .cart-layout { grid-template-columns: 1fr 360px; gap: 40px; } .checkout { grid-template-columns: 1fr 380px; gap: 40px; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.line-thumb { display: block; text-decoration: none; width: 84px; aspect-ratio: var(--thumb-ratio); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.line-thumb img, .line-thumb .no-photo { width: 100%; height: 100%; object-fit: cover; }
.line-thumb .no-photo span { font-size: 20px; }
.line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-info a { text-decoration: none; }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.line-qty { display: flex; gap: 6px; }
.line-qty input { width: 64px; height: 36px; }
.line-total { font-weight: 700; white-space: nowrap; }
.summary-card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.summary-card { display: grid; gap: 12px; }
@media (min-width: 860px) { .summary-card { position: sticky; top: calc(var(--header-real, var(--header-h)) + 20px); } }
.summary-card h2 { font-size: 18px; margin: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; border-top: 1px solid var(--border); font-size: 16px; }
.summary strong { font-size: 24px; }
.review-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.review-lines li { display: flex; justify-content: space-between; gap: 12px; }
.form { display: grid; gap: 16px; }
.form h2 { margin: 0; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: 400 16px/1.4 var(--font-body); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field small.error { color: var(--danger); font-weight: 400; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warn-bg); font-size: 14px; margin-bottom: 16px; }
.alert.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.alert.error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.empty { text-align: center; padding: 56px 20px; color: var(--text-2); }
.empty-icon { width: 48px; height: 48px; fill: none; stroke: var(--muted); stroke-width: 1.4; }
.empty.done { max-width: 640px; margin: 0 auto; }
.done-icon { width: 64px; height: 64px; fill: none; stroke: var(--ok); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.next-steps { list-style: none; counter-reset: n; text-align: left; margin: 28px auto; padding: 0; display: grid; gap: 14px; max-width: 420px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.next-steps li::before { content: counter(n); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--text); font-weight: 700; }
.next-steps span { color: var(--muted); font-size: 14px; }
/* Acompanhar pedido (#958): linha do tempo, rastreio e formulário. */
/* Páginas do rodapé (#960). */
.info-page { max-width: 760px; display: grid; gap: 14px; line-height: 1.6; }
.info-page p, .info-page .page-title { margin: 0; }
.info-address { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.info-address address { font-style: normal; }
.info-address .icon { flex: none; margin-top: 3px; }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.track-form { max-width: 480px; }
.track { display: grid; gap: 20px; }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track-steps li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 40px; color: var(--muted); }
.track-steps li:last-child { padding-bottom: 0; }
.track-steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); box-sizing: border-box; }
.track-steps li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--border); }
.track-steps li.done, .track-steps li.on { color: var(--text); }
.track-steps li.done::before { content: "✓"; display: grid; place-items: center; font-size: 13px; background: var(--primary-soft); border-color: transparent; }
.track-steps li.done::after { background: var(--primary); }
.track-steps li.on::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.track-steps span { font-size: 14px; color: var(--muted); }
.track-code { display: grid; gap: 8px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--border); }
.track-code strong { font-size: 20px; letter-spacing: .04em; word-break: break-all; }
.track-code p { margin: 0; }

/* Frete: calculadora (produto, carrinho) e escolha na finalização. */
.ship-calc { display: grid; gap: 10px; margin: 8px 0 4px; padding: 16px 0 4px; border-top: 1px solid var(--border); }
.product-info .ship-calc { border-top: 0; padding-top: 0; }
.ship-label { font-size: 14px; font-weight: 600; }
.ship-row { display: flex; gap: 8px; }
.ship-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; }
.ship-row .btn { height: 40px; }
.ship-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ship-options li, .ship-radio { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; }
.ship-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 600; }
.ship-name small { font-weight: 400; color: var(--muted); }
.ship-name > small:first-child { display: inline; }
.ship-days { font-size: 12px; }
.ship-msg { margin: 0; font-size: 14px; color: var(--text-2); }
.ship-msg.error { color: var(--danger); }
.ship-help { font-size: 13px; color: var(--text-2); }
.ship-area { display: block; font-size: 13px; color: var(--text-2); }
.form-section { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.field-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 140px; }
.field-row .field.zip { flex: 0 1 180px; }
.field-row .field.num { flex: 0 1 120px; min-width: 90px; }
.field-row .field.uf { flex: 0 1 110px; min-width: 90px; }
.field-row > .btn { height: 46px; }
.field select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: 400 16px/1.4 var(--font-body); }
.ship-choice { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.ship-choice legend { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.ship-radio { cursor: pointer; }
.ship-radio input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.ship-radio .ship-name { flex: 1; }
.ship-radio:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.ship-choice.has-error .ship-radio { border-color: var(--danger); }
.ship-choice small.error, .form small.error { color: var(--danger); font-weight: 400; }

/* Vantagens e rodapé */
.perks { border-top: 1px solid var(--border); background: var(--surface); }
.perks-row { display: grid; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 760px) { .perks-row { grid-template-columns: repeat(3, 1fr); } }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk .icon { width: 28px; height: 28px; color: var(--accent); }
.perk strong { display: block; font-size: 15px; }
.perk span { font-size: 14px; color: var(--muted); }
.foot { background: var(--foot-bg); color: var(--foot-ink); border-top: 1px solid var(--border); font-size: 14px; }
.foot-cols { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 32px; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-cols { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.foot-name { font: var(--display-weight) 20px/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.foot-brand p { margin: 8px 0 0; color: var(--foot-muted); max-width: 28em; }
.foot-links { display: grid; gap: 8px; align-content: start; color: var(--foot-muted); }
.foot-links strong { color: var(--foot-ink); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--foot-ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid color-mix(in srgb, var(--foot-ink) 12%, transparent); color: var(--foot-muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Faixa da prévia de tema (?previa=): cores fixas, iguais em todos os temas. */
.preview-bar { background: #1f2937; color: #f9fafb; font: 600 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center; padding: 8px 0; }
.preview-bar a { color: #fde68a; text-decoration: underline; margin-left: 6px; white-space: nowrap; }
