/* Mamãe Bebê — vitrine (mobile-first)
   Layout: no celular, cabeçalho compacto que recolhe ao rolar + barra inferior de navegação;
   no computador, cabeçalho completo e filtros na lateral. Azul da marca para ações, amarelo só como acento. */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --tile: #edf1f7;
  --ink: #101a2b;
  --muted: #55627a;
  --line: #e1e6ee;
  --blue: #1160b7;
  --blue-hover: #0c4f99;
  --blue-text: #1160b7;
  --blue-soft: #e7f0fb;
  --yellow: #ffd600;
  --on-blue: #ffffff;
  --ok: #17703f;
  --warn: #8a5600;
  --danger: #b42318;
  --wa: #0f7a41;
  --wa-hover: #0b6634;
  --shadow: 0 1px 2px rgba(16, 26, 43, .06), 0 8px 24px rgba(16, 26, 43, .08);
  --shadow-lg: 0 24px 64px rgba(16, 26, 43, .18);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --r: 12px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr: 120px;      /* altura atual do cabeçalho (o script atualiza) */
  --bn: 0px;         /* altura da barra inferior (0 no computador) */
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c121c; --surface: #131b28; --tile: #1a2434; --ink: #e9eef5; --muted: #a2adbf; --line: #263142;
    --blue: #2a76cf; --blue-hover: #3a86df; --blue-text: #8bbcf3; --blue-soft: #16263d; --on-blue: #ffffff;
    --ok: #4cc287; --warn: #e9b44c; --danger: #f07a6e; --wa: #1f9a57; --wa-hover: #24ad62;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 64px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c121c; --surface: #131b28; --tile: #1a2434; --ink: #e9eef5; --muted: #a2adbf; --line: #263142;
  --blue: #2a76cf; --blue-hover: #3a86df; --blue-text: #8bbcf3; --blue-soft: #16263d; --on-blue: #ffffff;
  --ok: #4cc287; --warn: #e9b44c; --danger: #f07a6e; --wa: #1f9a57; --wa-hover: #24ad62;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 64px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); scroll-padding-bottom: calc(var(--bn) + 16px); }
html.lock, html.lock body { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#view { min-height: 60vh; }
#view:focus { outline: none; }
/* Sem "fill" e sem transform: evita criar camada que prenderia os painéis fixos dentro da página */
#view.enter { animation: viewIn .2s var(--ease); }
@keyframes viewIn { from { opacity: .2; } }

/* ---------- Faixas do topo ---------- */
.demo-bar { background: var(--yellow); color: #2e2500; font-size: 12.5px; font-weight: 700; text-align: center; padding: 6px 16px; line-height: 1.4; }
.demo-bar a { text-decoration: underline; }
.announce { background: var(--blue); color: var(--on-blue); font-size: 13px; min-height: 31px; }
.announce .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.announce .a-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.announce .a-right { display: flex; gap: 18px; white-space: nowrap; }
.announce .a-right a:hover { text-decoration: underline; }

/* ---------- Cabeçalho ---------- */
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); transition: transform .28s var(--ease); will-change: transform; }
.header .bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(12px, 3vw, 32px); height: 72px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 44px; width: auto; }
.search { position: relative; max-width: 560px; width: 100%; justify-self: center; margin: 0; }
.search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); padding: 0 48px 0 46px; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 4px var(--blue-soft); }
.search .s-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .s-clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; max-height: min(70vh, 520px); overflow: auto; overscroll-behavior: contain; }
.suggest a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; min-height: 56px; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--tile); }
.suggest img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--tile); }
.suggest .s-txt { display: flex; flex-direction: column; min-width: 0; }
.suggest .s-name { font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suggest .s-meta { font-size: 12px; color: var(--muted); }
.suggest .s-price { font-weight: 700; font-size: 14px; }
.suggest .s-brand { display: block; min-height: 44px; padding: 12px; font-size: 14px; }
.suggest .s-all { display: block; text-align: center; padding: 12px; font-weight: 700; color: var(--blue-text); min-height: 44px; }
.suggest .s-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.suggest .s-empty a { color: var(--blue-text); text-decoration: underline; }
.actions { display: flex; align-items: center; gap: 4px; }
.btn-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: background .2s; }
.btn-icon:hover { background: var(--tile); }
.btn-icon .icon { width: 22px; height: 22px; }
.badge-count { position: absolute; top: 3px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: #1a1500; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.badge-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.wa-head { color: var(--wa); }
.hdr-search { display: none; }
.nav { border-top: 1px solid var(--line); min-height: 45px; } /* espaço reservado antes de as categorias carregarem */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li { scroll-snap-align: start; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-offer { color: var(--blue-text); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: background .2s, color .2s, transform .12s, box-shadow .2s, border-color .2s; border: 1px solid transparent; text-align: center; line-height: 1.2; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-wa-outline { border-color: color-mix(in srgb, var(--wa) 45%, var(--line)); color: var(--wa); background: var(--surface); }
.btn-wa-outline:hover { border-color: var(--wa); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-link { color: var(--blue-text); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; min-height: 44px; white-space: nowrap; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-link[disabled] { opacity: .4; pointer-events: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 56px; font-size: 17px; }

/* ---------- Carrossel principal ---------- */
.hero { padding-top: 20px; }
.carousel { position: relative; border-radius: 22px; overflow: hidden; background: var(--blue); isolation: isolate; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr 1fr; min-height: clamp(360px, 42vw, 500px); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
.slide .copy { order: -1; padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 16px; color: #fff; z-index: 2; }
.slide .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: #ffe566; }
.slide h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.03; letter-spacing: -.01em; }
.slide p { max-width: 44ch; font-size: clamp(15px, 1.3vw, 18px); color: rgba(255, 255, 255, .92); }
.slide .btn { align-self: flex-start; background: #fff; color: #0b3a73; }
.slide .btn:hover { background: var(--yellow); color: #1a1500; }
.slide .media { position: relative; overflow: hidden; }
.slide .media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 7s linear; }
.slide.is-active .media img { transform: scale(1); }
.slide .media.art { background: #e8f0fa; }
.slide .media.art img { object-fit: contain; padding: 6%; }
.slide.full { grid-template-columns: 1fr; }
.slide.full .media { position: absolute; inset: 0; }
.slide.full .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 30, 60, .75), rgba(8, 30, 60, .15) 70%); }
.car-ui { position: absolute; left: clamp(28px, 5vw, 72px); bottom: 20px; display: flex; align-items: center; gap: 6px; z-index: 3; }
.dots { display: flex; }
.dots button { width: 44px; height: 44px; display: grid; place-items: center; }
.dots button i { display: block; width: 24px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); overflow: hidden; position: relative; }
.dots button[aria-current="true"] i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill var(--dur, 6s) linear forwards; }
.carousel.paused .dots button[aria-current="true"] i::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.car-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); transition: background .2s; }
.car-btn:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Faixa de confiança ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(24px, 4vw, 40px); }
.trust div { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.trust strong { display: block; font-size: 14px; }
.trust span { color: var(--muted); font-size: 13px; }
.trust .icon { width: 24px; height: 24px; color: var(--blue-text); }

/* ---------- Seções ---------- */
.section { padding-block: clamp(36px, 6vw, 72px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head > div { min-width: 0; }
.sec-head h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); margin-top: 6px; }
.eyebrow-s { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--blue-text); margin-bottom: 6px; display: block; }

/* Categorias */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cat .ph { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--tile); }
.cat .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .cat:hover .ph img { transform: scale(1.06); } }
.cat b { font-size: 15px; font-weight: 700; line-height: 1.3; display: flex; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
.cat b small { color: var(--muted); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s, color .2s; white-space: nowrap; }
.chip:hover { border-color: var(--blue); }
.chip .icon { width: 16px; height: 16px; color: var(--blue-text); }
.chip.sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.chip.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-text); }

/* ---------- Listas de produtos ----------
   Dois componentes separados, que nunca compartilham regras:
   .grid = grade de catálogo/busca (colunas definidas por --cols);
   .rail = trilho horizontal da página inicial (flexbox; cada card tem largura própria --rail-w).
   Antes, o trilho reaproveitava a grade e, no celular, a regra de 2 colunas da grade criava
   duas colunas "fantasmas" de largura zero no trilho — os dois primeiros cards ficavam espremidos
   e o texto deles se espalhava por cima dos vizinhos. */
:root { --cols: 4; --rail-w: calc((100% - 3 * 20px) / 4); --rail-gap: 20px; }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 32px) clamp(12px, 1.6vw, 20px); align-items: start; }
.rail { display: flex; align-items: flex-start; gap: var(--rail-gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { flex: 0 0 var(--rail-w); width: var(--rail-w); scroll-snap-align: start; }

/* ---------- Card de produto ----------
   Ordem: foto (com etiquetas no canto) → marca → nome → preço à vista → cartão → disponibilidade/opções.
   Todo o texto fica em fluxo normal (sem posicionamento absoluto): o card cresce com o conteúdo. */
.card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 100%; }
.card .media { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); flex: none; }
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.card .media .alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .media img { transform: scale(1.04); }
  .card:hover .media .alt { opacity: 1; }
  .card:hover .media .main.has-alt { opacity: 0; }
}
.card .tags { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; pointer-events: none; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: var(--surface); color: var(--ink); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag-oferta { background: var(--yellow); color: #1a1500; }
.tag-lancamento { background: var(--blue); color: #fff; }
.tag-destaque { background: var(--surface); color: var(--blue-text); box-shadow: inset 0 0 0 1px var(--line); }
.tag-demo { background: rgba(16, 26, 43, .74); color: #fff; }
.card .incart { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 8px; border-radius: 6px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-size: 12px; font-weight: 800; margin-top: 2px; }
.card .incart .icon { width: 14px; height: 14px; stroke-width: 2.4; flex: none; }
/* Ação rápida: botão "+" redondo no canto da foto (toque); faixa ao passar o mouse (computador) */
.card .quick { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; transition: background .2s, color .2s, transform .15s; }
.card .quick:active { transform: scale(.92); }
.card .quick .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.card .quick .q-txt { display: none; }
@media (hover: hover) and (pointer: fine) {
  .card .quick { left: 10px; right: 10px; bottom: 10px; width: auto; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), background .2s, color .2s; }
  .card .quick .q-txt { display: inline; }
  .card .quick .icon { width: 16px; height: 16px; }
  .card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; }
  .card .quick:hover { background: var(--blue); color: #fff; }
}
.card .info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.card .info > * { max-width: 100%; }
.card .brand { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; line-height: 1.3; }
.card .name { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.card .name::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* card inteiro clicável (sobreposição invisível, não afeta o layout) */
.card .info .price { margin-top: 2px; }
.card .c-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.swatches { display: inline-flex; align-items: center; gap: 4px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(16, 26, 43, .2); flex: none; }
.swatches b { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.avail { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st-disponivel { color: var(--ok); } .st-encomenda { color: var(--warn); } .st-consulte { color: var(--muted); } .st-esgotado { color: var(--danger); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-variant-numeric: tabular-nums; }
.price .now { font-weight: 800; font-size: 17px; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.price .cash { font-size: 12px; color: var(--muted); font-weight: 600; }
.price-card { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.consult { font-weight: 700; color: var(--blue-text); font-size: 15px; }

/* Marcas */
.brands { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-tile { flex: 1 1 180px; height: 84px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-family: var(--f-display); font-size: 21px; transition: border-color .2s; padding: 12px; text-align: center; }
.brand-tile img { max-height: 48px; width: auto; object-fit: contain; }
.brand-tile:hover { border-color: var(--blue); }

/* Visite a loja */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.visit .v-copy { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.visit h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.05; }
.visit dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.visit dt { color: var(--muted); font-weight: 600; }
.visit dd { margin: 0; white-space: pre-line; }
.visit .v-art { background: var(--blue); min-height: 260px; display: grid; place-items: center; }
.visit .v-art img { width: min(72%, 420px); }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Catálogo ---------- */
.page-head { padding-block: 24px 16px; }
.page-head.compact { padding-bottom: 12px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4vw, 52px); line-height: 1.06; letter-spacing: -.01em; }
.page-head .lead { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.results-col { min-width: 0; }
.filters { position: sticky; top: calc(var(--hdr) + 16px); max-height: calc(100vh - var(--hdr) - 32px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.f-scroll { display: block; }
.fgroup { border-bottom: 1px solid var(--line); padding-block: 14px; }
.fgroup:first-of-type { padding-top: 0; }
.fgroup summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 40px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .icon { width: 16px; height: 16px; transition: transform .2s; }
.fgroup[open] summary .icon { transform: rotate(180deg); }
.f-label { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.f-sort-m { display: none; }
.sort-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pill-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pill-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-text); }
.pill-opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.fopts { display: flex; flex-direction: column; margin-top: 6px; }
.fopt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 6px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.fopt:hover { background: var(--tile); }
.fopt input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; flex: none; }
.fopt .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.fopt.zero { opacity: .45; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.price-range label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.field, .price-range input { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; width: 100%; min-width: 0; font-size: 16px; }
.field:focus, .price-range input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea.field { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.presets { margin-top: 10px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.toolbar select { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 34px 0 12px; font-size: 15px; }
.quick-f { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
.quick-f::-webkit-scrollbar { display: none; }
.quick-f:empty { display: none; }
.quick-f .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.applied { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.applied button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-text); font-size: 13px; font-weight: 700; }
.applied button .icon { width: 14px; height: 14px; }
.applied .clear { background: none; color: var(--muted); text-decoration: underline; }
.filter-toggle { display: none; }
.f-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; }
.more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.progress { width: 200px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue); }
.empty { width: 100%; text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty h2 { font-family: var(--f-display); color: var(--ink); font-weight: 500; font-size: 26px; }
.f-mobile-head, .f-apply { display: none; }

/* ---------- Página de produto ---------- */
.pdp-crumbs { padding-top: 16px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: 24px; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: calc(var(--hdr) + 16px); }
.gallery:not(:has(.thumbs)) { grid-template-columns: minmax(0, 1fr); }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { width: 76px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--tile); border: 2px solid transparent; transition: border-color .2s, opacity .2s; opacity: .7; }
.thumbs button[aria-current="true"], .thumbs button:hover { border-color: var(--blue); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage-wrap { position: relative; }
.stage { display: flex; aspect-ratio: 1; border-radius: 18px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; border: 1px solid var(--line); overscroll-behavior-x: contain; }
.stage::-webkit-scrollbar { display: none; }
.slide-img { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.slide-img img { width: 100%; height: 100%; object-fit: contain; }
.stage-wrap .expand { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.stage-wrap .counter { position: absolute; left: 12px; bottom: 12px; background: rgba(16, 26, 43, .7); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.stage-nav { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.stage-nav button { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.stage-dots { display: none; justify-content: center; gap: 6px; margin-top: 10px; }
.stage-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: width .2s, background .2s; }
.stage-dots i.on { width: 18px; border-radius: 3px; background: var(--blue); }
.p-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.p-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--blue-text); font-weight: 800; align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; margin-block: -6px; }
.p-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.01em; margin-top: -8px; }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--muted); }
.p-meta:empty { display: none; }
.key-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.key-specs li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--blue-soft); min-width: 0; max-width: 100%; }
.key-specs span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.key-specs b { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.p-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-block: 14px; border-block: 1px solid var(--line); }
.p-price .was { flex-basis: 100%; color: var(--muted); text-decoration: line-through; font-size: 14px; }
.p-price .now { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.p-price .label { font-size: 14px; color: var(--muted); font-weight: 600; }
.p-price .p-card { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt-label { font-size: 15px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.opt-label span { font-weight: 500; color: var(--muted); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variants button { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.variants button:hover { border-color: var(--ink); }
.variants button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue-text); }
.variants .v-ok { display: none; width: 16px; height: 16px; stroke-width: 2.6; }
.variants button[aria-pressed="true"] .v-ok { display: block; }
.variants button[disabled] { opacity: .55; cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.variants .v-out { font-size: 11px; font-weight: 700; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.variants .dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: none; }
.opt-error { color: var(--danger); font-size: 14px; font-weight: 700; margin-top: 8px; }
.avail-line { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.avail-line .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.buy .btn { min-height: 52px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); height: 52px; }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; border-radius: 12px; }
.qty button:hover { background: var(--tile); }
.qty button[disabled] { opacity: .35; }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 44px; border-radius: 10px; }
.qty.sm button { width: 44px; }
.qty.sm input { width: 34px; }
.p-notes { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.p-notes div { display: flex; gap: 10px; align-items: flex-start; }
.p-notes .icon { color: var(--blue-text); margin-top: 1px; }
.p-details details { border-top: 1px solid var(--line); }
.p-details details:last-child { border-bottom: 1px solid var(--line); }
.p-details summary { list-style: none; min-height: 56px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; cursor: pointer; }
.p-details summary::-webkit-details-marker { display: none; }
.p-details summary .icon { transition: transform .2s; }
.p-details details[open] summary .icon { transform: rotate(45deg); }
.p-details .body { padding-bottom: 18px; color: var(--muted); display: grid; gap: 10px; }
.p-details .body p { white-space: pre-line; }
.p-details .lead-d { color: var(--ink); font-weight: 600; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 42%; padding-right: 16px; }
.specs td { color: var(--ink); overflow-wrap: anywhere; }
.video-link { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.video-link .play { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.sticky-buy { display: none; }

/* ---------- Galeria ampliada ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(8, 12, 20, .96); display: grid; grid-template-rows: auto 1fr auto; color: #fff; opacity: 0; transition: opacity .2s; }
.lightbox.open { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 16px; font-size: 14px; }
.lb-hint { color: rgba(255, 255, 255, .7); font-size: 13px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; overflow: hidden; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lightbox.zoomed .lb-stage { display: block; overflow: auto; padding: 0; touch-action: pan-x pan-y; }
.lightbox.zoomed .lb-stage img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; border-radius: 0; }
.lightbox.zoomed .lb-prev, .lightbox.zoomed .lb-next { display: none; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: #fff; flex: none; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-strip { display: flex; justify-content: center; gap: 8px; padding: 10px 16px calc(14px + var(--safe-b)); overflow-x: auto; }
.lb-strip button { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; opacity: .5; flex: none; border: 2px solid transparent; }
.lb-strip button[aria-current="true"] { opacity: 1; border-color: var(--yellow); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Painéis (carrinho, categorias, filtros) ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(8, 14, 24, .45); opacity: 0; transition: opacity .3s; }
.scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100%); background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .35s var(--ease); padding-top: env(safe-area-inset-top, 0px); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); min-height: 60px; }
.drawer-head h2 { font-family: var(--f-display); font-weight: 500; font-size: 24px; }
.drawer-body { flex: 1; overflow: auto; padding: 4px 20px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 20px calc(14px + var(--safe-b)); display: grid; gap: 10px; background: var(--surface); }
.added { display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; margin-block: 12px 4px; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img, .line .l-ph { width: 76px; height: 92px; object-fit: cover; border-radius: 10px; background: var(--tile); }
.line .l-body { min-width: 0; }
.line .l-name { font-weight: 700; font-size: 15px; line-height: 1.35; display: block; padding-block: 11px; margin-block: -11px; } /* área de toque maior sem mudar o visual */
.line .l-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.line .l-var { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.line .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); }
.line .l-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; margin-top: 10px; }
.line .l-price { text-align: right; margin-left: auto; min-width: 0; }
.line .l-sub { font-weight: 800; font-size: 16px; }
.line .l-unit { font-size: 12px; color: var(--muted); }
.line .l-remove { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.line .l-remove .icon { width: 16px; height: 16px; }
.line .l-remove:hover { color: var(--danger); }
.line.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: var(--blue-soft); } 100% { background: transparent; } }
.line .l-warn { color: var(--danger); font-size: 13px; font-weight: 700; margin-top: 4px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.total-row strong { font-size: 22px; text-align: right; }
.total-row small { font-size: 13px; color: var(--muted); font-weight: 600; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 12px; color: var(--muted); }
.cart-empty strong { color: var(--ink); }
.cart-empty .icon { width: 48px; height: 48px; color: var(--blue-text); stroke-width: 1.3; }
.sheet { display: none; }

/* ---------- Finalizar pedido ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 48px); align-items: start; padding-bottom: 40px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 28px); min-width: 0; }
.panel h2 { font-size: 19px; margin-bottom: 8px; }
.co-items #co-lines { margin-bottom: 4px; }
.form { display: grid; gap: 16px; }
.field-wrap { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-wrap > label, .field-wrap > legend { font-size: 15px; font-weight: 700; padding: 0; }
.form .err { color: var(--danger); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.form .err::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.form [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; min-height: 52px; padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 15px; }
.seg label:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-soft); }
.seg input { accent-color: var(--blue); margin: 0; width: 20px; height: 20px; }
.more-fields { border-top: 1px solid var(--line); padding-top: 4px; }
.more-fields summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 48px; font-weight: 700; cursor: pointer; }
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary .icon { margin-left: auto; transition: transform .2s; }
.more-fields[open] summary .icon { transform: rotate(180deg); }
.more-fields .field-wrap { margin-top: 10px; }
.opt { color: inherit; }
.form .opt, .more-fields .opt { color: var(--muted); font-weight: 500; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 2px; width: 22px; height: 22px; accent-color: var(--blue); flex: none; }
.consent a { color: var(--blue-text); text-decoration: underline; }
.summary { position: sticky; top: calc(var(--hdr) + 16px); display: grid; gap: 14px; }
.sum-lines { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.sum-lines div { display: flex; justify-content: space-between; gap: 12px; }
.co-submit-bar { display: grid; gap: 10px; }
.cb-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.cb-total span { font-weight: 600; }
.cb-total strong { font-size: 20px; text-align: right; }
.forget { justify-self: start; font-size: 13px; font-weight: 600; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--ink); font-size: 14px; line-height: 1.5; }
.notice .icon { color: var(--blue-text); flex: none; margin-top: 1px; }
.notice.warn { background: color-mix(in srgb, var(--yellow) 22%, var(--surface)); }
.notice.resume { margin-bottom: 16px; }
.msg-box { display: grid; gap: 10px; margin-top: 12px; }
.msg-preview { white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; max-height: 340px; overflow: auto; }
.done { display: grid; gap: 16px; max-width: 720px; }
.done summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.done-head { display: flex; gap: 14px; align-items: center; }
.done-head h2 { margin: 0; }
.done-head .ok { width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); display: grid; place-items: center; flex: none; }

/* ---------- Texto longo ---------- */
.prose { max-width: 70ch; padding-bottom: 40px; display: grid; gap: 12px; }
.prose h2 { font-size: 19px; margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.how { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; max-width: 760px; }
.how li { display: flex; gap: 16px; align-items: flex-start; }
.how-n { font-family: var(--f-display); font-size: 32px; line-height: 1; color: var(--blue-text); }
.how .fine { font-size: 15px; margin-top: 4px; }

/* ---------- Rodapé ---------- */
.footer { margin-top: clamp(48px, 8vw, 96px); background: #0b2d57; color: #dbe6f4; }
.footer .wrap { padding-block: 48px 24px; }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer .f-h { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #ffe566; margin-bottom: 10px; font-family: var(--f-body); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; }
.footer ul a { display: flex; align-items: center; min-height: 40px; font-size: 14px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .f-brand img { height: 56px; width: auto; margin-bottom: 14px; }
.footer .f-brand p { font-size: 14px; color: #c1d0e3; max-width: 34ch; }
.footer .f-text { font-size: 14px; white-space: pre-line; }
.footer .f-map a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; font-size: 12px; color: #aebfd4; }
.f-bottom a { display: inline-flex; min-height: 44px; align-items: center; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center; }
.social a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }

/* ---------- Elementos fixos ---------- */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + var(--safe-b)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(15, 122, 65, .35); transition: transform .3s var(--ease); }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 30px; height: 30px; fill: currentColor; }
.bottom-nav { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--bn) + var(--safe-b)); transform: translate(-50%, 20px); z-index: 160; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, var(--tile), var(--line), var(--tile)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r); }
.sk-hero { height: clamp(360px, 42vw, 500px); border-radius: 22px; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.sk-row .skeleton { aspect-ratio: 1; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =====================================================================
   TABLET (até 1100 px)
   ===================================================================== */
@media (max-width: 1100px) {
  :root { --cols: 3; --rail-w: calc((100% - 2 * 16px) / 3.3); --rail-gap: 16px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .f-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   CELULAR E TABLET EM PÉ (até 860 px) — experiência principal
   ===================================================================== */
@media (max-width: 860px) {
  :root { --bn: 64px; }
  body { padding-bottom: calc(var(--bn) + var(--safe-b)); }
  body.no-bn { --bn: 0px; }
  .announce { min-height: 30px; font-size: 12.5px; }
  .announce .a-right { display: none; }
  .announce .wrap { justify-content: center; }

  /* Cabeçalho compacto: linha 1 = logo + ações; linha 2 = busca; linha 3 = categorias */
  .header .bar { grid-template-columns: auto 1fr; height: auto; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  .logo img { height: 36px; }
  .actions { justify-self: end; }
  .btn-icon .lbl { display: none; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .search input { height: 44px; }
  .nav a { min-height: 44px; font-size: 13.5px; padding: 0 10px; }
  .nav a::after { bottom: 4px; }
  body.hdr-hide .header { transform: translateY(-100%); }
  body.no-bn .wa-head { display: none; }

  /* Barra inferior */
  .bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--bn) + var(--safe-b)); padding-bottom: var(--safe-b); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transition: transform .25s var(--ease); }
  .bottom-nav > a, .bottom-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); min-height: 44px; position: relative; }
  .bottom-nav .icon { width: 24px; height: 24px; }
  .bottom-nav [aria-current="page"] { color: var(--blue-text); }
  .bottom-nav [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
  .bottom-nav .bn-wa { color: var(--wa); }
  .bottom-nav .bn-ico { position: relative; display: block; height: 24px; line-height: 0; }
  .bottom-nav .badge-count { top: -6px; left: 14px; }
  body.no-bn .bottom-nav, body.typing .bottom-nav { transform: translateY(110%); }
  .fab { display: none; }

  /* Painel de categorias que sobe de baixo */
  .sheet { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-height: 88vh; max-height: 88dvh; background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .35s var(--ease); padding-bottom: var(--safe-b); }
  .sheet.open { transform: none; }
  .sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; }
  .sheet .drawer-head { border-bottom: 0; min-height: 52px; }
  .sheet-body { overflow: auto; padding: 0 16px 20px; overscroll-behavior: contain; }
  .sh-all { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-text); font-weight: 800; margin-bottom: 8px; }
  .sh-all .n, .sh-cats .n { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
  .sh-cats { list-style: none; margin: 0; padding: 0; }
  .sh-cats a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 4px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
  .sh-cats img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--tile); }
  .sh-cats .icon { color: var(--muted); width: 18px; height: 18px; }
  .sh-group { margin-top: 18px; }
  .sh-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }

  /* Carrinho em tela cheia no celular */
  .drawer { width: 100%; }

  /* Página inicial */
  .hero { padding-top: 12px; padding-inline: 12px; }
  .carousel { border-radius: 18px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .slide .media { grid-row: 1; aspect-ratio: 16 / 9; }
  .slide .media.art { aspect-ratio: 16 / 8; }
  .slide .copy { grid-row: 2; padding: 18px 18px 64px; gap: 10px; }
  .slide h2 { font-size: clamp(26px, 7.4vw, 34px); }
  .slide p { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide .btn { min-height: 46px; }
  .slide.full { min-height: 420px; grid-template-rows: none; }
  .slide.full .media { aspect-ratio: auto; }
  .slide.full .media::after { background: linear-gradient(0deg, rgba(8, 30, 60, .85), rgba(8, 30, 60, .1) 75%); }
  .slide.full .copy { justify-content: flex-end; }
  .car-ui { left: 10px; bottom: 6px; gap: 0; }
  .car-btn { background: transparent; }
  .sk-hero { height: 420px; }

  .section { padding-top: 32px; }
  .sec-head { margin-bottom: 14px; }
  .sec-head p { font-size: 14px; }
  .sec-cats { padding-top: 24px; }
  /* Categorias em trilho com "espiada" do próximo item */
  .cats { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 clamp(96px, 28%, 150px); scroll-snap-align: start; }
  .cat b { font-size: 13px; flex-direction: column; gap: 0; }
  .cat b small { font-size: 12px; font-weight: 500; }
  .trust { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .trust::-webkit-scrollbar { display: none; }
  .trust div { flex: 0 0 auto; padding: 10px 14px; }
  .trust span { display: none; }
  .trust strong { font-size: 13px; white-space: nowrap; }

  /* Trilhos de produtos com espiada */
  :root { --rail-w: clamp(148px, 44%, 240px); --rail-gap: 12px; }
  .rail { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .brands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand-tile { height: 68px; font-size: 18px; }
  .visit { grid-template-columns: 1fr; }
  .visit .v-art { min-height: 150px; order: -1; }
  .visit .v-actions .btn { flex: 1 1 100%; }

  /* Cards: 2 por linha, texto mais compacto */
  :root { --cols: 2; }
  .grid { gap: 28px 12px; }
  .card { gap: 8px; }
  .price .now { font-size: 16px; }
  .price .cash { font-size: 12px; }
  .price-card { font-size: 13px; }

  /* Catálogo */
  .page-head { padding-block: 14px 10px; }
  .page-head .lead { font-size: 15px; }
  .catalog { grid-template-columns: 1fr; gap: 0; }
  .toolbar { position: sticky; top: calc(var(--hdr) - 1px); z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: top .28s var(--ease); flex-wrap: nowrap; }
  body.hdr-hide .toolbar { top: 0; }
  .filter-toggle { display: inline-flex; min-height: 44px; padding: 0 14px; }
  .toolbar .count { margin-right: auto; font-size: 13px; }
  .sort-wrap { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
  .toolbar select { width: 100%; max-width: 230px; min-width: 0; }
  .quick-f { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .applied { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .applied::-webkit-scrollbar { display: none; }
  .applied button { flex: none; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 90vh; height: 90vh; height: 88dvh; max-height: 88dvh; z-index: 100; background: var(--surface); border-radius: 20px 20px 0 0; padding: 0; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .35s var(--ease); display: flex; flex-direction: column; overflow: hidden; visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .f-mobile-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .f-mobile-head h2 { font-size: 17px; text-align: center; }
  .f-scroll { flex: 1; overflow: auto; padding: 8px var(--gutter) 16px; overscroll-behavior: contain; }
  .f-sort-m { display: block; padding-top: 12px !important; }
  .f-apply { display: block; padding: 10px var(--gutter) calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); }
  .f-apply .btn { min-height: 52px; }
  .empty { padding: 36px 16px; }

  /* Página de produto: galeria por deslize, informações essenciais logo abaixo */
  .pdp-crumbs { padding-top: 4px; font-size: 14px; }
  /* Produto e pedido: topo enxuto (como Bugaboo e Nuna) — só logo, busca sob demanda e carrinho */
  body[data-page="produto"] .announce, body[data-page="previa"] .announce, body[data-page="pedido"] .announce { display: none; }
  body:not([data-page="home"]) .announce { display: none; }
  body[data-page="produto"] .nav, body[data-page="previa"] .nav, body[data-page="pedido"] .nav { display: none; }
  body[data-page="produto"] .search, body[data-page="previa"] .search, body[data-page="pedido"] .search { display: none; }
  body[data-page="produto"] .hdr-search, body[data-page="previa"] .hdr-search { display: inline-flex; }
  body.show-search .search { display: block !important; }
  /* Migalhas no produto: só o "voltar para a categoria" */
  .pdp-crumbs > a:first-child, .pdp-crumbs > span { display: none !important; }
  .pdp-crumbs > a { font-weight: 700; color: var(--ink); min-height: 40px; }
  .pdp-crumbs > a::before { content: "‹"; font-size: 22px; line-height: 1; margin-right: 6px; color: var(--muted); }
  .stage { border-left: 0; border-right: 0; max-height: 44vh; max-height: 44svh; }
  /* Ordem no celular: nome → preço → cor → disponibilidade → comprar → detalhes */
  .p-brand { order: 1; } .p-title { order: 2; } .p-meta { order: 3; } .p-price { order: 4; } .opt { order: 5; } .avail-line { order: 6; }
  .buy { order: 7; } #ask { order: 8; } .key-specs { order: 9; } .p-notes { order: 10; } .p-details { order: 11; }
  .p-info { gap: 12px; }
  .p-meta { margin-top: -4px; }
  .key-specs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .key-specs::-webkit-scrollbar { display: none; }
  .key-specs li { flex: 0 0 auto; }
  .crumbs a { min-height: 40px; }
  .pdp { grid-template-columns: 1fr; gap: 16px; }
  .gallery { position: static; grid-template-columns: 1fr; margin-inline: calc(var(--gutter) * -1); }
  .thumbs { display: none; }
  .stage { border-radius: 0; aspect-ratio: auto; height: min(100vw, 44vh); height: min(100vw, 44svh); }
  .stage-wrap .expand { top: 10px; right: 12px; }
  .stage-nav { display: none; }
  .stage-dots { display: flex; }
  .p-info { gap: 14px; }
  .p-title { font-size: clamp(25px, 7vw, 32px); margin-top: -6px; }
  .p-price { padding-block: 12px; }
  .p-price .now { font-size: 28px; }
  .buy { grid-template-columns: auto 1fr; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; gap: 12px; align-items: center; padding: 10px 16px calc(10px + var(--safe-b)); background: color-mix(in srgb, var(--surface) 97%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .28s var(--ease); }
  .sticky-buy.show { transform: none; }
  body.typing .sticky-buy { transform: translateY(110%); }
  .sticky-buy .sb-price { flex: 1; min-width: 0; font-weight: 800; font-size: 17px; line-height: 1.2; display: flex; flex-direction: column; }
  .sticky-buy .sb-price small { font-weight: 600; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy .btn { min-height: 48px; padding: 0 26px; }
  #pdp-root { padding-bottom: 76px; }
  .lb-stage { padding: 0; }
  .lb-prev, .lb-next { display: none; }

  /* Finalizar pedido */
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; } /* no celular, o nome vem antes da lista de itens */
  .panel { border-radius: 16px; }
  .co-submit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; padding: 10px 16px calc(10px + var(--safe-b)); background: color-mix(in srgb, var(--surface) 97%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); gap: 8px; transition: transform .25s var(--ease); }
  .co-submit-bar .cb-total { border-top: 0; padding-top: 0; }
  .co-submit-bar .cb-total strong { font-size: 18px; }
  .co-submit-bar .btn { min-height: 52px; }
  body.typing .co-submit-bar { transform: translateY(115%); }
  .form { padding-bottom: 8px; }
  #view:has(.co-submit-bar) { padding-bottom: 120px; }
  .done .btn-lg { min-height: 58px; }

  .footer .wrap { padding-block: 36px 16px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  .seg { grid-template-columns: 1fr; }
  :root { --rail-w: clamp(140px, 46%, 200px); }
  .slide h2 { font-size: 25px; }
  .toolbar .count { display: none; }
}


/* iPhones com iOS anterior a 16.2 não entendem color-mix(): usam cores sólidas equivalentes */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .header, .bottom-nav, .sticky-buy, .co-submit-bar { background: var(--surface); }
  .toolbar { background: var(--bg); }
  .btn-wa-outline { border-color: var(--wa); }
  .added, .done-head .ok, .card .incart { background: var(--blue-soft); }
  .notice.warn { background: #fff6cc; color: #2e2500; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* link no texto da finalização: área de toque maior sem mudar o visual */
.form .fine a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--blue-text); text-decoration: underline; }
