/* ==========================================================================
   App do cliente: uma base e duas direções visuais.
   data-marca = fina | nordicos      data-tema = A (Cantina) | B (Rua)
   A base (estrutura) é igual; o tema só muda cores, fontes e estilo dos cartões.
   ========================================================================== */

/* ---------- Tema A · Fina Farina (claro) ---------- */
:root, html[data-tema="A"][data-marca="fina"] {
  --bg: #fbf5ec; --surface: #ffffff; --surface-2: #f5ecdf; --ink: #2a1a12; --muted: #7d6a5c; --line: #eadccb;
  --brand: #c7361f; --brand-2: #a42a16; --brand-ink: #ffffff; --brand-soft: #fbe3da;
  --accent: #3e7b3b; --accent-soft: #e4f0e1; --ok: #2f7d3a; --danger: #b3261e; --danger-soft: #fbe5e3; --warn: #93600f; --warn-soft: #f8ecd6;
  --foto-a: #fde9d1; --foto-b: #f3cfa8; --foto-ponto: rgba(199, 54, 31, .07);
  --hero-bg: #fbf5ec; --hero-ink: #2a1a12; --hero-muted: #7d6a5c;
  --f-display: "Fraunces", ui-serif, Georgia, serif; --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --d-peso: 700; --d-caixa: none; --d-espaco: -.015em;
  --r-card: 20px; --r-btn: 14px; --r-chip: 999px; --r-foto: 16px;
  --sombra-1: 0 1px 2px rgba(74, 35, 10, .06), 0 4px 14px rgba(74, 35, 10, .06);
  --sombra-2: 0 10px 30px rgba(74, 35, 10, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-marca="nordicos"]), html[data-tema="A"][data-marca="fina"] {
    --bg: #17110e; --surface: #221a16; --surface-2: #2c221d; --ink: #f6ece2; --muted: #b9a797; --line: #3a2e27;
    --brand: #f0603f; --brand-2: #ff7a5c; --brand-ink: #1a0d08; --brand-soft: #3d2019;
    --accent: #7cc47a; --accent-soft: #1f3320; --ok: #7cc47a; --danger: #ff8a7a; --danger-soft: #3d1f1b; --warn: #e9b456; --warn-soft: #3a2c14;
    --foto-a: #3a2a20; --foto-b: #2a1e18; --foto-ponto: rgba(255, 140, 100, .06);
    --hero-bg: #17110e; --hero-ink: #f6ece2; --hero-muted: #b9a797;
    --sombra-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25); --sombra-2: 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* ---------- Tema C · Fina Farina (escuro, padrão) ----------
   carvão quente, cartões um pouco mais claros, botões vermelho tomate, títulos dourado/creme.
   Contraste: creme #f3e7d3 em #15110e ≈ 15:1; texto branco no tomate #c93b25 ≈ 5:1; dourado #e9c27a em #15110e ≈ 11:1 (AA). */
html[data-tema="C"][data-marca="fina"] {
  --bg: #15110e; --surface: #1f1915; --surface-2: #2a221d; --ink: #f3e7d3; --muted: #b8a99a; --line: #362c25;
  --brand: #c93b25; --brand-2: #e2553b; --brand-ink: #ffffff; --brand-soft: #3a1d16; --ouro: #e9c27a;
  --accent: #8cc084; --accent-soft: #1f3020; --ok: #8cc084; --danger: #ff8a7a; --danger-soft: #3d1f1b; --warn: #e9b456; --warn-soft: #3a2c14;
  --foto-a: #2a211b; --foto-b: #1a1411; --foto-ponto: rgba(233, 194, 122, .05);
  --hero-bg: #15110e; --hero-ink: #f3e7d3; --hero-muted: #b8a99a;
  --f-display: "Fraunces", ui-serif, Georgia, serif; --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --d-peso: 700; --d-caixa: none; --d-espaco: -.015em;
  --r-card: 20px; --r-btn: 14px; --r-chip: 999px; --r-foto: 16px;
  --sombra-1: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px rgba(0, 0, 0, .3); --sombra-2: 0 14px 36px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- Tema A e C · Nórdicos (escuro com âmbar) ---------- */
html[data-tema="C"][data-marca="nordicos"],
html[data-tema="A"][data-marca="nordicos"] {
  --bg: #121010; --surface: #1c1917; --surface-2: #262220; --ink: #f7f1ea; --muted: #a89c91; --line: #332d29;
  --brand: #f5a524; --brand-2: #ffbb4d; --brand-ink: #1a1206; --brand-soft: #3a2a10;
  --accent: #f5a524; --accent-soft: #3a2a10; --ok: #7fd18f; --danger: #ff8a7a; --danger-soft: #3d1f1b; --warn: #f0b04a; --warn-soft: #3a2c14;
  --foto-a: #2e241c; --foto-b: #1d1713; --foto-ponto: rgba(245, 165, 36, .06);
  --hero-bg: #121010; --hero-ink: #f7f1ea; --hero-muted: #a89c91;
  --f-display: "Oswald", "Arial Narrow", sans-serif; --f-body: "DM Sans", system-ui, sans-serif;
  --d-peso: 600; --d-caixa: uppercase; --d-espaco: .03em;
  --r-card: 18px; --r-btn: 12px; --r-chip: 999px; --r-foto: 14px;
  --sombra-1: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .3); --sombra-2: 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Tema B · Fina Farina (claro) ---------- */
html[data-tema="B"][data-marca="fina"] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f6f1ec; --ink: #1c1210; --muted: #6e625b; --line: #efe7e0;
  --brand: #e23d1e; --brand-2: #c22f14; --brand-ink: #ffffff; --brand-soft: #ffe6de;
  --accent: #2f8f4e; --accent-soft: #e1f3e7; --ok: #2f8f4e; --danger: #c0261c; --danger-soft: #fde4e1; --warn: #8f5a00; --warn-soft: #fff0d6;
  --foto-a: #ffe7d3; --foto-b: #ffc8a6; --foto-ponto: rgba(226, 61, 30, .08);
  --hero-bg: #e23d1e; --hero-ink: #ffffff; --hero-muted: rgba(255, 255, 255, .82);
  --f-display: "Plus Jakarta Sans", system-ui, sans-serif; --f-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --d-peso: 800; --d-caixa: none; --d-espaco: -.03em;
  --r-card: 24px; --r-btn: 999px; --r-chip: 999px; --r-foto: 20px;
  --sombra-1: 0 2px 6px rgba(28, 18, 16, .06), 0 10px 24px rgba(28, 18, 16, .07); --sombra-2: 0 16px 40px rgba(28, 18, 16, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  html[data-tema="B"][data-marca="fina"] {
    --bg: #120d0b; --surface: #1d1613; --surface-2: #2a201c; --ink: #fff4ee; --muted: #bca99e; --line: #352823;
    --brand: #ff5a36; --brand-2: #ff7656; --brand-ink: #1a0703; --brand-soft: #3f1d14;
    --accent: #5ccf83; --accent-soft: #173323; --ok: #5ccf83; --danger: #ff8a7a; --danger-soft: #3d1f1b; --warn: #f0b04a; --warn-soft: #3a2c14;
    --foto-a: #3a241b; --foto-b: #2a1a14; --hero-bg: #b8301a; --hero-ink: #fff; --hero-muted: rgba(255, 255, 255, .8);
    --sombra-1: 0 2px 6px rgba(0, 0, 0, .3), 0 10px 24px rgba(0, 0, 0, .3); --sombra-2: 0 16px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* ---------- Tema B · Nórdicos ---------- */
html[data-tema="B"][data-marca="nordicos"] {
  --bg: #0b0b0c; --surface: #161618; --surface-2: #202024; --ink: #ffffff; --muted: #a1a1aa; --line: #2a2a30;
  --brand: #ffb020; --brand-2: #ff8a00; --brand-ink: #140b00; --brand-soft: #33240a;
  --accent: #ffb020; --accent-soft: #33240a; --ok: #6ee7a0; --danger: #ff8a7a; --danger-soft: #3d1f1b; --warn: #ffc457; --warn-soft: #3a2c14;
  --foto-a: #2c2012; --foto-b: #151010; --foto-ponto: rgba(255, 176, 32, .07);
  --hero-bg: #0b0b0c; --hero-ink: #ffffff; --hero-muted: #a1a1aa;
  --f-display: "Anton", "Arial Narrow", sans-serif; --f-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --d-peso: 400; --d-caixa: uppercase; --d-espaco: .02em;
  --r-card: 22px; --r-btn: 999px; --r-chip: 999px; --r-foto: 18px;
  --sombra-1: 0 2px 6px rgba(0, 0, 0, .4), 0 10px 24px rgba(0, 0, 0, .35); --sombra-2: 0 16px 40px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 var(--f-body); -webkit-font-smoothing: antialiased; min-height: 100vh; padding-bottom: 104px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--brand); }
svg { display: block; }
main { max-width: 640px; margin: 0 auto; }
.d { font-family: var(--f-display); font-weight: var(--d-peso); text-transform: var(--d-caixa); letter-spacing: var(--d-espaco); }

.aviso-teste { background: var(--warn-soft); color: var(--warn); font-size: 11.5px; text-align: center; padding: 5px 12px; font-weight: 700; letter-spacing: .02em; }

/* ---------- topo da marca (hero) ---------- */
.hero { position: relative; }
.hero-capa { position: relative; padding: 18px 20px 22px; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; }
.hero-capa::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--foto-ponto) 1.5px, transparent 1.6px); background-size: 14px 14px; pointer-events: none; }
.hero-topo { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.logo { width: 52px; height: 52px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: var(--sombra-1); }
.logo svg { width: 32px; height: 32px; }
.pill-pedido { text-decoration: none; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: var(--sombra-1); }
.hero-nome { position: relative; margin: 0; font-family: var(--f-display); font-weight: var(--d-peso); text-transform: var(--d-caixa); letter-spacing: var(--d-espaco); font-size: 40px; line-height: 1.02; }
.hero-slogan { position: relative; margin: 6px 0 0; color: var(--hero-muted); font-size: 14.5px; }
.hero-info { padding: 14px 20px 6px; }
.hero-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14.5px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 700; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.status.fechada { color: var(--danger); }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .6; }
.info-item { color: var(--ink); }
.info-taxa { color: var(--muted); font-size: 14px; margin-top: 3px; }
.info-taxa b { color: var(--ink); }

.local { width: 100%; margin: 14px 0 6px; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sombra-1); transition: transform .12s; }
.local:active { transform: scale(.985); }
.local-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.local-ico svg { width: 20px; height: 20px; }
.local-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.local-txt small { color: var(--muted); font-size: 12px; font-weight: 600; }
.local-txt strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.local-detalhe { font-size: 13px; color: var(--muted); }
.local-seta { font-size: 28px; color: var(--muted); line-height: 1; }

/* ---------- busca + abas fixas ---------- */
.fixo { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 10px 20px 0; transition: box-shadow .2s; }
.fixo.preso { box-shadow: 0 8px 16px -12px rgba(0, 0, 0, .35); }
.busca { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: var(--r-btn); background: var(--surface-2); color: var(--muted); }
.busca svg { width: 20px; height: 20px; flex: none; }
.busca input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--ink); }
.busca input::placeholder { color: var(--muted); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 10px 20px 10px; margin: 0 -20px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 0; background: transparent; padding: 8px 12px; border-radius: var(--r-chip); font-size: 14.5px; font-weight: 600; color: var(--muted); position: relative; transition: color .15s, background .15s; }
.cat.ativa { color: var(--ink); }
html[data-tema="C"] .cat.ativa::after,
html[data-tema="A"] .cat.ativa::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 3px; border-radius: 3px; background: var(--brand); }
html[data-tema="B"] .cat { background: var(--surface-2); color: var(--ink); }
html[data-tema="B"] .cat.ativa { background: var(--brand); color: var(--brand-ink); }

/* ---------- listas ---------- */
.lista { padding: 0 20px; }
.secao { scroll-margin-top: 128px; padding-top: 8px; }
.sec-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 0 12px; font-family: var(--f-display); font-weight: var(--d-peso); text-transform: var(--d-caixa); letter-spacing: var(--d-espaco); font-size: 24px; line-height: 1.1; }
.sec-titulo small { font-family: var(--f-body); font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.itens { display: grid; gap: 12px; }

/* foto provisória: ilustração sobre gradiente, nunca imagem quebrada */
.card-foto, .folha-foto, .thumb { background: radial-gradient(120% 90% at 30% 20%, var(--foto-a), var(--foto-b)); position: relative; overflow: hidden; color: var(--brand); }
.card-foto::before, .folha-foto::before, .thumb::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--foto-ponto) 1.5px, transparent 1.6px); background-size: 12px 12px; }
.card-foto svg, .folha-foto svg, .thumb svg { position: relative; width: 100%; height: 100%; }

.card { position: relative; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sombra-1); border: 1px solid var(--line); overflow: hidden; animation: entra .2s ease-out both; }
.card-abrir { all: unset; box-sizing: border-box; cursor: pointer; display: grid; width: 100%; transition: transform .12s; }
.card-abrir:active { transform: scale(.985); }
.card-abrir:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: var(--r-card); }
.card-corpo { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.card-selo { align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 999px; margin-bottom: 2px; }
.card-nome { font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.card-desc { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-preco { font-weight: 800; font-size: 17px; margin-top: auto; padding-top: 6px; color: var(--ink); }
.card-preco small { font-weight: 600; font-size: 12px; color: var(--muted); }
.card-mais { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); transition: transform .12s; }
.card-mais svg { width: 20px; height: 20px; }
.card-mais:active { transform: scale(.9); }
.card-mais.ok { animation: pulo .4s ease; }

/* A: lista com a foto à direita (estilo cardápio de app) */
html[data-tema="A"] .card-abrir { grid-template-columns: 1fr 116px; gap: 14px; padding: 14px; align-items: stretch; }
html[data-tema="A"] .card-foto { width: 116px; height: 116px; border-radius: var(--r-foto); order: 2; }
html[data-tema="A"] .card-mais { right: 10px; bottom: 10px; }

/* B: grade de 2 colunas com foto grande em cima */
html[data-tema="B"] .itens { grid-template-columns: 1fr 1fr; gap: 12px; }
html[data-tema="B"] .card { border: 0; }
html[data-tema="B"] .card-abrir { grid-template-rows: auto 1fr; height: 100%; }
html[data-tema="B"] .card-foto { aspect-ratio: 1 / 1; width: 100%; }
html[data-tema="B"] .card-corpo { padding: 10px 12px 14px; }
html[data-tema="B"] .card-nome { font-size: 15px; }
html[data-tema="B"] .card-desc { font-size: 12.5px; }
html[data-tema="B"] .itens .card:not(.meio) .card-preco small { display: none; }
html[data-tema="B"] .card-mais { right: 10px; top: 10px; background: var(--surface); color: var(--brand); }
html[data-tema="B"][data-marca="nordicos"] .card-mais { background: var(--brand); color: var(--brand-ink); }
html[data-tema="B"] .card-selo { position: absolute; left: 10px; top: 10px; background: var(--brand); color: var(--brand-ink); z-index: 1; }

/* cartão do meio a meio (destaque) */
.card.meio { border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }
.card.meio .card-desc, .card.meio .card-preco small { color: inherit; opacity: .88; }
.card.meio .card-preco { color: inherit; }
.card.meio .card-foto { background: rgba(255, 255, 255, .14); color: var(--brand-ink); }
.card.meio .card-foto::before { display: none; }
.card.meio .card-mais { background: var(--brand-ink); color: var(--brand); }
.card.meio .card-selo { background: rgba(255, 255, 255, .22); color: inherit; }
html[data-tema="B"] .itens .card.meio { grid-column: 1 / -1; }
html[data-tema="B"] .itens .card.meio .card-abrir { grid-template-columns: 1fr 130px; grid-template-rows: none; }
html[data-tema="B"] .itens .card.meio .card-foto { order: 2; aspect-ratio: auto; height: 130px; width: 130px; margin: 12px 12px 12px 0; border-radius: 50%; }
html[data-tema="B"] .itens .card.meio .card-corpo { padding: 16px; }
html[data-tema="B"] .itens .card.meio .card-mais { top: auto; bottom: 14px; right: auto; left: 16px; display: none; }

/* "Mais pedidos": carrossel */
.mais-pedidos .sec-titulo { margin-top: 16px; }
.carrossel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 2px 20px 14px; margin: 0 -20px; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.carrossel .card { flex: none; scroll-snap-align: start; }
.carrossel .card-abrir { grid-template-columns: none !important; grid-template-rows: auto 1fr; padding: 0 !important; gap: 0 !important; height: 100%; }
.carrossel .card-foto { order: 0 !important; width: 100% !important; border-radius: 0 !important; margin: 0 !important; }
.carrossel .card-corpo { padding: 10px 14px 14px; }
html[data-tema="A"] .carrossel .card { width: 214px; }
html[data-tema="A"] .carrossel .card-foto { height: 150px !important; }
html[data-tema="A"] .carrossel .card-mais { top: 106px; bottom: auto; right: 10px; }
html[data-tema="B"] .carrossel .card { width: 252px; }
html[data-tema="B"] .carrossel .card-foto { height: 200px !important; aspect-ratio: auto; }
html[data-tema="B"] .carrossel .card-corpo { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent); color: #fff; }
html[data-tema="B"] .carrossel .card-desc { display: none; }
html[data-tema="B"] .carrossel .card-preco, html[data-tema="B"] .carrossel .card-preco small { color: #fff; }
html[data-tema="B"] .carrossel .card-preco small { opacity: .8; }
html[data-tema="B"] .carrossel .card-abrir { height: 200px; }
html[data-tema="B"] .carrossel .card-selo { display: none; }
html[data-tema="B"] .carrossel .card.meio .card-foto { width: 100% !important; height: 200px !important; border-radius: 0; margin: 0; }
.rank { position: absolute; left: 10px; top: 10px; z-index: 2; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: var(--sombra-1); }

.rodape-cardapio { text-align: center; color: var(--muted); font-size: 13px; margin: 28px 20px; }
.vazio-msg { text-align: center; color: var(--muted); padding: 32px 10px; }

/* ---------- barra da sacola ---------- */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.btn-barra { pointer-events: auto; width: 100%; max-width: 608px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px 10px 12px; border: 0; border-radius: var(--r-btn); background: var(--brand); color: var(--brand-ink); box-shadow: var(--sombra-2); text-align: left; animation: sobe-barra .3s ease both; }
html[data-tema="A"] .btn-barra { border-radius: 18px; }
.btn-barra.pulo { animation: pulo .4s ease; }
.barra-ico { position: relative; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
html[data-marca="nordicos"] .barra-ico { background: rgba(0, 0, 0, .14); }
.barra-ico svg { width: 22px; height: 22px; }
.barra-ico b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand-ink); color: var(--brand); font-size: 12px; display: grid; place-items: center; }
.barra-txt { display: flex; flex-direction: column; font-weight: 800; font-size: 16px; line-height: 1.15; }
.barra-txt small { font-weight: 600; font-size: 12.5px; opacity: .85; }
.btn-barra strong { margin-left: auto; font-size: 17px; font-weight: 800; }

/* ---------- folha (bottom sheet) ---------- */
.folha { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.folha-fundo { position: absolute; inset: 0; background: rgba(15, 8, 4, .55); animation: aparece .2s ease both; }
.folha-corpo { position: relative; width: 100%; max-width: 640px; max-height: 94vh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 26px 26px 0 0; animation: sobe .26s cubic-bezier(.2, .9, .3, 1.1) both; }
.fechar { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; z-index: 3; box-shadow: var(--sombra-1); }
.fechar svg { width: 18px; height: 18px; }
.folha-foto { height: 250px; }
.folha-foto svg { width: auto; height: 100%; margin: 0 auto; padding: 14px 0; }
.folha-info { padding: 18px 20px 8px; }
.folha-titulo { margin: 0 44px 6px 0; font-family: var(--f-display); font-weight: var(--d-peso); text-transform: var(--d-caixa); letter-spacing: var(--d-espaco); font-size: 26px; line-height: 1.1; }
.folha-desc { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.folha-preco { font-size: 22px; font-weight: 800; margin: 4px 0 6px; }
.folha-rodape { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.alca { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 10px auto 0; }

label.campo { display: block; margin: 14px 0; font-size: 14px; font-weight: 700; }
label.campo .opc { color: var(--muted); font-weight: 500; }
.campo input, .campo textarea { display: block; width: 100%; margin-top: 6px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; font-weight: 500; transition: border-color .15s; }
.campo textarea { resize: none; min-height: 72px; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--brand); }
.campo.erro input { border-color: var(--danger); }
.linha2 { display: grid; grid-template-columns: 1fr 104px; gap: 10px; }
.linha2 label.campo { margin-bottom: 0; }

.qtd-ctrl { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: var(--r-btn); flex: none; }
.qtd-ctrl button { width: 46px; height: 54px; border: 0; background: transparent; font-size: 24px; font-weight: 600; color: var(--brand); }
.qtd-ctrl span { min-width: 22px; text-align: center; font-weight: 800; font-size: 17px; }
.qtd-ctrl.peq { border-radius: 999px; }
.qtd-ctrl.peq button { width: 36px; height: 36px; font-size: 20px; }
.qtd-ctrl.peq span { font-size: 15px; min-width: 18px; }

.btn { border: 0; min-height: 56px; border-radius: var(--r-btn); padding: 14px 20px; font-size: 16.5px; font-weight: 800; background: var(--brand); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: transform .12s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.cheio { width: 100%; }
.btn.flex { flex: 1; }
.btn.flex span { margin-left: auto; }
.btn.sec { background: var(--surface-2); color: var(--ink); }
.btn.contorno { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.zap { background: #1f9d55; color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn svg { width: 22px; height: 22px; }

/* localização */
.folha-pad { padding: 26px 20px 22px; }
.folha-pad .folha-titulo { font-size: 24px; }
.ou { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 2px; }
.resultado-local { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); font-size: 15px; }
.resultado-local.ok { background: var(--accent-soft); }
.resultado-local.erro { background: var(--danger-soft); color: var(--danger); }
.resultado-local strong { display: block; font-size: 17px; }
.privacidade { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* meio a meio */
.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-btn); background: var(--surface-2); margin: 12px 0 4px; }
.segmento button { border: 0; background: transparent; padding: 10px; border-radius: calc(var(--r-btn) - 4px); font-weight: 700; color: var(--muted); }
.segmento button.ativo { background: var(--surface); color: var(--ink); box-shadow: var(--sombra-1); }
.meia-palco { display: grid; justify-items: center; padding: 8px 0 4px; }
.meia-grande { width: 220px; height: 220px; color: var(--muted); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); animation: gira .5s ease; }
.meia-legenda { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 10px; }
.meia-legenda div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; font-weight: 700; min-height: 46px; display: flex; align-items: center; gap: 8px; }
.meia-legenda div.vazio { color: var(--muted); font-weight: 500; border: 1.5px dashed var(--line); background: transparent; }
.meia-legenda b { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 12px; flex: none; }
.meia-legenda div.vazio b { background: var(--line); color: var(--muted); }
.regra { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.sabores { display: grid; gap: 8px; margin-top: 12px; }
.sabor { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s, background .15s; }
.sabor .thumb { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.sabor .nm { flex: 1; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; }
.sabor .nm small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.sabor .pr { color: var(--muted); font-size: 14px; font-weight: 600; }
.sabor .marc { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.sabor.sel { border-color: var(--brand); background: var(--brand-soft); }
.sabor.sel .marc { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* adicionais (bordas, queijo em dobro, escolhas de combo) */
.grupo { border: 0; padding: 0; margin: 16px 0 4px; }
.grupo legend { display: flex; align-items: center; justify-content: space-between; width: 100%; font-weight: 800; font-size: 15px; padding: 0 0 8px; }
.grupo legend .opc { font-weight: 600; font-size: 12px; color: var(--muted); }
.grupo legend .obrig { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-ink); background: var(--brand); padding: 3px 8px; border-radius: 999px; }
.opcao { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.op-marca { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.opcao input[type="checkbox"] + .op-marca { border-radius: 7px; }
.opcao input:checked + .op-marca { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--surface); }
.opcao:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.op-nome { flex: 1; font-weight: 600; font-size: 15px; }
.op-preco { color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
.lembrar { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; }
.lembrar input { width: 20px; height: 20px; accent-color: var(--brand); }
.privado .privacidade { margin: 10px 0 12px; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; text-decoration: underline; font-size: inherit; }

/* ---------- páginas (sacola, checkout, pedido) ---------- */
.pagina { padding: 0 20px 20px; animation: entra .16s ease-out both; }
.pagina.entrando { animation: entra-tela .16s ease-out both; }
@keyframes entra-tela { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pg-topo { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 12px 0; background: var(--bg); }
.voltar { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--ink); }
.voltar svg { width: 22px; height: 22px; }
.pg-topo h1 { margin: 0; font-family: var(--f-display); font-weight: var(--d-peso); text-transform: var(--d-caixa); letter-spacing: var(--d-espaco); font-size: 24px; line-height: 1.1; }
.pg-topo p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }

.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 14px; }
.passo { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.passo::before { content: ""; height: 5px; border-radius: 5px; background: var(--line); }
.passo.feito::before, .passo.atual::before { background: var(--brand); }
.passo.atual { color: var(--ink); }
.passo span { display: flex; gap: 6px; align-items: center; }
.passo i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; font-size: 11px; }
.passo.feito i, .passo.atual i { background: var(--brand); color: var(--brand-ink); }

.bloco { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 16px; margin: 12px 0; box-shadow: var(--sombra-1); }
.bloco h3 { margin: 12px 0 2px; font-size: 16px; }
.bloco.pad { padding: 14px 16px; }
.linha { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.linha:last-child { border-bottom: 0; }
.linha .thumb { width: 58px; height: 58px; border-radius: 14px; flex: none; }
.linha .info { flex: 1; min-width: 0; }
.linha .nm { font-weight: 700; font-size: 15px; line-height: 1.25; }
.linha .det { font-size: 13px; color: var(--muted); }
.linha .lado { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.linha .vl { font-weight: 800; white-space: nowrap; }
.add-mais { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 0; color: var(--brand); font-weight: 700; background: none; border: 0; }
.add-mais svg { width: 20px; height: 20px; flex: none; }
.btn.contorno svg { width: 20px; height: 20px; flex: none; }
.totais { display: grid; gap: 8px; font-size: 15px; padding: 12px 0; }
.totais div { display: flex; justify-content: space-between; }
.totais .muted { color: var(--muted); }
.totais .total { font-size: 21px; font-weight: 800; padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 2px; }
.aviso { background: var(--danger-soft); color: var(--danger); padding: 12px 14px; border-radius: 14px; font-weight: 700; margin: 10px 0; font-size: 14px; }
.nota { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }
.local-card { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.local-card .local-ico { width: 42px; height: 42px; }
.local-card div { flex: 1; font-size: 14px; }
.local-card strong { display: block; font-size: 15px; }
.local-card button { background: var(--surface-2); border: 0; border-radius: 999px; padding: 8px 14px; color: var(--ink); font-weight: 700; font-size: 13px; }
.resumo-linha { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.resumo-linha:last-child { border-bottom: 0; }
.resumo-linha .rot { color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: block; }
.resumo-linha .ir { margin-left: auto; color: var(--brand); font-weight: 700; background: none; border: 0; padding: 0; font-size: 14px; }

.pagtos { display: grid; gap: 10px; margin: 6px 0 4px; }
.pagto { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; box-shadow: var(--sombra-1); }
.pagto input { position: absolute; opacity: 0; pointer-events: none; }
.pagto .p-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); flex: none; }
.pagto .p-ico svg { width: 24px; height: 24px; }
.pagto .p-txt { display: flex; flex-direction: column; flex: 1; }
.pagto .p-txt small { color: var(--muted); font-weight: 500; font-size: 13px; }
.pagto .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.pagto.sel { border-color: var(--brand); background: var(--brand-soft); }
.pagto.sel .radio { border-color: var(--brand); }
.pagto.sel .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.pagto.desat { opacity: .5; cursor: not-allowed; box-shadow: none; }
.pagtos-grupo { border: 0; padding: 0; margin: 0; min-width: 0; }
.pagtos-legenda { padding: 0; margin: 0 0 6px; text-align: left; }
.pagto .p-radio { position: static; opacity: 1; pointer-events: auto; flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.pagto .p-radio:disabled { cursor: not-allowed; }
.pagto:has(.p-radio:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pagto .tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.troco { padding: 2px 4px 0; }

.rodape-acao { position: sticky; bottom: 0; z-index: 10; padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 78%, transparent); margin-top: 8px; }

/* acompanhamento */
.status-topo { text-align: center; padding: 26px 8px 8px; }
.status-ico { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ok); animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.status-ico svg { width: 44px; height: 44px; }
.status-ico.cancel { background: var(--danger-soft); color: var(--danger); }
.status-topo h1 { font-family: var(--f-display); font-weight: var(--d-peso); text-transform: var(--d-caixa); letter-spacing: var(--d-espaco); font-size: 28px; margin: 0 0 4px; line-height: 1.1; }
.status-topo p { margin: 0; color: var(--muted); }
.etapas { list-style: none; margin: 0; padding: 12px 0; }
.etapa { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.etapa:last-child { padding-bottom: 0; }
.etapa::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.etapa:last-child::before { display: none; }
.etapa .bol { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); flex: none; z-index: 1; display: grid; place-items: center; }
.etapa.feita .bol { background: var(--ok); border-color: var(--ok); }
.etapa.feita .bol::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); }
.etapa.feita::before { background: var(--ok); }
.etapa.atual .bol { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); animation: pulsa 1.6s ease infinite; }
.etapa .tx { display: flex; flex-direction: column; }
.etapa .tx strong { font-size: 15.5px; }
.etapa .tx small { color: var(--muted); }
.etapa.futura .tx strong { color: var(--muted); font-weight: 500; }
.botoes-pedido { display: grid; gap: 10px; margin: 16px 0 24px; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: 700; max-width: calc(100% - 32px); box-shadow: var(--sombra-2); animation: sobe-toast .25s ease both;
  /* aviso de loja e taxa ("... · entrega R$ 5,00 (estimada) · fechada agora"): quebra linha no celular, nunca corta */
  white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.35; width: max-content; }
.toast.erro { background: var(--danger); color: #fff; white-space: normal; border-radius: 16px; }

/* animações curtas */
@keyframes sobe { from { transform: translateY(60px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulo { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes sobe-barra { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sobe-toast { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulsa { 50% { box-shadow: 0 0 0 9px var(--brand-soft); } }
@keyframes gira { from { transform: rotate(-25deg) scale(.92); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ==========================================================================
   Detalhes de cada tema no topo
   ========================================================================== */
/* A: creme com nome em serifa; Nórdicos com brilho âmbar */
html[data-tema="A"] .hero-capa { padding-bottom: 6px; }
html[data-tema="C"][data-marca="nordicos"] .hero-capa,
html[data-tema="A"][data-marca="nordicos"] .hero-capa { background: radial-gradient(120% 80% at 90% 0%, rgba(245, 165, 36, .22), transparent 60%), var(--hero-bg); }
html[data-tema="C"][data-marca="nordicos"] .hero-nome,
html[data-tema="A"][data-marca="nordicos"] .hero-nome { font-size: 44px; }
html[data-tema="A"][data-marca="fina"] .hero-nome em { font-style: italic; color: var(--brand); }

/* B: faixa cheia na cor da marca; cartão de informações flutuando por cima */
html[data-tema="B"] .hero-capa { padding: 18px 20px 64px; border-radius: 0 0 32px 32px; }
html[data-tema="B"] .hero-capa::before { background-image: radial-gradient(rgba(255, 255, 255, .12) 1.5px, transparent 1.6px); }
html[data-tema="B"] .hero-nome { font-size: 42px; }
html[data-tema="B"] .logo { background: #fff; color: var(--brand); }
html[data-tema="B"] .hero-info { margin: -48px 16px 0; position: relative; background: var(--surface); border-radius: 24px; padding: 16px; box-shadow: var(--sombra-2); }
html[data-tema="B"] .local { box-shadow: none; background: var(--surface-2); border: 0; margin-bottom: 0; }
html[data-tema="B"][data-marca="nordicos"] .hero-capa { background: radial-gradient(90% 120% at 100% 0%, #ff8a00 0%, rgba(255, 138, 0, 0) 60%), linear-gradient(160deg, #1a1208, #0b0b0c 70%); }
html[data-tema="B"][data-marca="nordicos"] .logo { background: var(--brand); color: var(--brand-ink); }
html[data-tema="B"][data-marca="nordicos"] .hero-nome { font-size: 48px; line-height: .95; }
html[data-tema="B"][data-marca="nordicos"] .hero-info { border: 1px solid var(--line); }

/* ==========================================================================
   Foto real (tools/fotos.js): camada por cima da ilustração. Placeholder borrado
   enquanto carrega; se a foto falhar, a camada some e a ilustração aparece.
   ========================================================================== */
.foto-real { position: absolute; inset: 0; display: block; overflow: hidden; background-size: cover; background-position: center; z-index: 1; }
.foto-real::before { content: ""; position: absolute; inset: -8px; background: inherit; filter: blur(10px); }
.foto-real img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.foto-real.carregada img { opacity: 1; }
.thumb .foto-real, .sabor .thumb .foto-real { border-radius: inherit; }
.folha-rodape { z-index: 5; }

/* Meio a meio = UMA pizza: duas metades recortadas (mesmo centro e raio) na mesma tábua de ardósia.
   Fica por cima da ilustração; se uma imagem falhar, a camada some e a ilustração aparece. */
.pz-unica { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: var(--pz-fundo, transparent); }
.card-foto .pz-unica { --pz-fundo: radial-gradient(120% 90% at 30% 20%, #3a2a20, #1a1411); }
.thumb .pz-unica { --pz-fundo: #1d1a18; border-radius: inherit; }
.pz-quadro { position: relative; height: 92%; aspect-ratio: 1 / 1; max-width: 100%; }
.pz-grande .pz-quadro { height: 100%; }
.pz-tabua { position: absolute; inset: 0; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 34% 28%, #4a4c52 0%, #33353a 38%, #24262a 70%, #18191c 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .06), inset 0 -8px 16px rgba(0, 0, 0, .45); }
.pz-pizza { position: absolute; inset: 6.5%; border-radius: 50%; filter: drop-shadow(0 6px 9px rgba(0, 0, 0, .6)); }
.pz-meia { position: absolute; inset: 0; display: block; }
.pz-meia img { display: block; width: 100%; height: 100%; }
.pz-meia.esq { clip-path: inset(0 50% 0 0); }
.pz-meia.dir { clip-path: inset(0 0 0 50%); }
/* corte fino no meio: sulco escuro com um fio de luz, sumindo nas pontas como numa fatia de verdade */
.pz-corte { position: absolute; left: 50%; top: .8%; bottom: .8%; width: 3px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(48, 22, 8, .7) 0 55%, rgba(255, 238, 214, .28) 55% 100%);
  -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); }
.pz-mini .pz-corte { width: 1.5px; }
.pz-falta { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; border: 2px dashed rgba(255, 255, 255, .28); border-left: 0; border-radius: 0 999px 999px 0; }
.pz-aviso { display: block; font-size: 11px; line-height: 1.3; color: var(--muted); letter-spacing: .02em; margin-top: 6px; }
.meia-palco .pz-aviso { text-align: center; }
.pz-aviso-linha { margin-top: 2px; font-size: 10.5px; }
.meia-grande { position: relative; }
.meia-grande:has(.pz-unica) > svg { visibility: hidden; } /* a ilustração só aparece se a foto falhar */
html[data-tema="C"] .meia-grande { filter: none; }

/* ==========================================================================
   Tema C: foto em destaque (padrão único)
   cartões: foto em toda a largura no topo, 4:3, cantos arredondados
   "Mais pedidos": carrossel de fotos grandes · página do item: foto 1:1 na largura toda
   ========================================================================== */
html[data-tema="C"] .hero-nome, html[data-tema="C"] .sec-titulo, html[data-tema="C"] .folha-titulo,
html[data-tema="C"] .pg-topo h1, html[data-tema="C"] .status-topo h1 { color: var(--ouro, var(--ink)); }
html[data-tema="C"][data-marca="fina"] .logo { background: var(--brand); color: #fff; }
html[data-tema="C"] .local { background: var(--surface); }
html[data-tema="C"] .itens { grid-template-columns: 1fr; gap: 16px; }
html[data-tema="C"] .card { border: 1px solid var(--line); }
html[data-tema="C"] .card-abrir { display: flex; flex-direction: column; }
html[data-tema="C"] .card-foto { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-card) var(--r-card) 0 0; }
html[data-tema="C"] .card-foto > svg { padding: 6% 0; }
html[data-tema="C"] .card-corpo { padding: 14px 16px 18px; padding-right: 72px; }
html[data-tema="C"] .card-nome { font-size: 18px; }
html[data-tema="C"] .card-desc { font-size: 14px; }
html[data-tema="C"] .card-preco { font-size: 19px; color: var(--ink); }
html[data-tema="C"] .card-mais { right: 16px; bottom: 16px; width: 44px; height: 44px; }
html[data-tema="C"] .card-selo { position: absolute; left: 12px; top: 12px; z-index: 3; background: var(--brand); color: #fff; }
html[data-tema="C"] .card.meio { background: var(--surface); color: var(--ink); border: 1px solid var(--brand); }
html[data-tema="C"] .card.meio .card-foto { background: radial-gradient(120% 90% at 30% 20%, #3a2a20, #1a1411); }
html[data-tema="C"] .card.meio .card-desc, html[data-tema="C"] .card.meio .card-preco small { color: var(--muted); opacity: 1; }
html[data-tema="C"] .card.meio .card-mais { background: var(--brand); color: #fff; }
html[data-tema="C"] .card.meio .card-selo { background: var(--brand); color: #fff; }
/* carrossel "Mais pedidos" com fotos grandes */
html[data-tema="C"] .carrossel { gap: 14px; }
html[data-tema="C"] .carrossel .card { width: min(84vw, 320px); }
html[data-tema="C"] .carrossel .card-foto { height: auto !important; aspect-ratio: 4 / 3; }
html[data-tema="C"] .carrossel .card-corpo { padding: 12px 16px 16px; padding-right: 70px; }
html[data-tema="C"] .carrossel .card-mais { top: auto; bottom: 16px; right: 16px; }
html[data-tema="C"] .rank { z-index: 3; background: rgba(21, 17, 14, .85); color: var(--ouro, #fff); box-shadow: none; }
/* página do item: foto 1:1 na largura toda */
html[data-tema="C"] .folha-foto { height: auto; aspect-ratio: 1 / 1; width: 100%; }
html[data-tema="C"] .folha-foto > svg { width: 70%; height: 70%; margin: 15%; padding: 0; }
html[data-tema="C"] .fechar { background: rgba(21, 17, 14, .8); color: #fff; }
html[data-tema="C"] .meia-grande { width: 264px; height: 264px; }
html[data-tema="C"] .btn.sec { background: var(--surface-2); }

/* ---------- endereço: sugestões (CEP, rua e número, bairro) ---------- */
.nota-campo { margin: 6px 2px 0; font-size: 12.5px; color: var(--muted); }
.sugestoes:empty { display: none; }
.sugestoes { margin-top: 8px; }
.sug-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sug { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sug:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sug svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.sug span { display: flex; flex-direction: column; min-width: 0; }
.sug b { font-size: 15px; font-weight: 700; }
.sug small { font-size: 12.5px; color: var(--muted); }
.sug-status { margin: 6px 2px 0; font-size: 13.5px; color: var(--muted); }
.sug-status.erro { color: var(--danger); font-weight: 700; }

/* preço nunca quebra em duas linhas ("R$" / "68,80") */
.btn span, .vl, .preco, .mc-preco, .totais span:last-child { white-space: nowrap; }

/* a faixa amarela da versão de teste fica presa no topo: os cabeçalhos fixos ficam logo abaixo dela */
.pg-topo, .fixo { top: var(--faixa-h, 0px); }

/* promoção do site copiada (preço especial do dia): selo discreto, sem preço riscado */
.selo-dia { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: var(--acento-texto, #ff8a4c); background: var(--brand-soft); vertical-align: middle; }
.folha-preco .selo-dia { margin: 0 0 0 6px; font-size: 12px; }

/* ---------- promoções (todos os temas) ---------- */
.promo-trilho { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.promo-trilho::-webkit-scrollbar { display: none; }
.promo-card { flex: 0 0 auto; min-width: 150px; max-width: 220px; min-height: 44px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; text-align: left; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--brand-soft); color: var(--ink); font: inherit; cursor: pointer; }
.promo-card .pc-ico { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
.promo-card .pc-ico svg { width: 100%; height: 100%; }
.promo-card b { font-size: 14px; line-height: 1.2; }
.promo-card small { color: var(--muted); font-size: 12px; }
.codigo-linha { display: flex; gap: 8px; margin-top: 6px; }
.codigo-linha input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.codigo-linha .btn { flex: 0 0 auto; min-height: 44px; padding: 0 16px; }
.sacola-promos:empty { display: none; }
.sacola-promos { margin-top: 10px; display: grid; gap: 6px; font-size: 14px; }
.desc-linhas { display: grid; gap: 6px; }
.desc-linhas div { display: flex; justify-content: space-between; gap: 10px; }
.desc-linhas .ok, .desc-linhas .brinde { color: var(--ok); font-weight: 700; }
.desc-linhas s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.aviso-codigo { margin: 0; color: var(--danger); font-weight: 700; }
.selos-prev { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--ink); }
.selos-prev svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--brand); }
.totais .desc { color: var(--ok); font-weight: 700; }
.promos-pedido { display: grid; gap: 10px; }
.promos-pedido .combina-tit { margin: 0; }
.selos-cartao { display: grid; gap: 8px; }
.sc-tit { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.sc-tit span { color: var(--muted); }
.sc-pontos { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-pontos i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.sc-pontos i.cheio { background: var(--brand); border-color: var(--brand); }
.cod-ganho { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; font-size: 14px; }
.cod-ganho small { display: block; color: var(--muted); font-size: 12px; }
.cod-ganho .cod { font-variant-numeric: tabular-nums; letter-spacing: .06em; user-select: all; }
