/* ==========================================================================
   Tema D · "tecnológico" (padrão)
   Quase preto com painéis de vidro (blur + 1 px de borda translúcida), acentos no degradê da chama
   da marca (vermelho #D4151C → laranja #F26B1D / #F7A21B), logo real, Sora com números tabulares,
   barra de baixo e microinterações. Nórdicos: o mesmo sistema com acento âmbar.
   Contraste (AA): texto #f5f5f7 em #0a0a0c ≈ 18:1; secundário #a1a1aa ≈ 7,6:1; texto branco nos botões
   (#c4121a → #d63d1a) ≥ 4,6:1. O degradê claro da chama só vai em acentos SEM texto (barras, ícones, brilho).
   ========================================================================== */
html[data-tema="D"][data-marca] { /* [data-marca] dá mais força que o modo escuro do tema A (:root:not(...)) */
  --bg: #0a0a0c; --surface: #131316; --surface-2: #1b1b20; --ink: #f5f5f7; --muted: #a1a1aa; --line: rgba(255, 255, 255, .09);
  --brand: #e2361b; --brand-2: #f26b1d; --brand-ink: #ffffff; --brand-soft: rgba(242, 107, 29, .14);
  --accent: #f26b1d; --accent-soft: rgba(74, 222, 128, .12); --ok: #4ade80; --danger: #ff7a7a; --danger-soft: rgba(255, 122, 122, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12);
  --foto-a: #1a1a1f; --foto-b: #0e0e11; --foto-ponto: rgba(255, 255, 255, .025);
  --hero-bg: #0a0a0c; --hero-ink: #f5f5f7; --hero-muted: #c4c4cc;
  --f-display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --f-body: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --d-peso: 700; --d-caixa: none; --d-espaco: -.025em;
  --r-card: 22px; --r-btn: 16px; --r-chip: 999px; --r-foto: 18px;
  --sombra-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .7);
  --sombra-2: 0 24px 48px -16px rgba(0, 0, 0, .8);
  /* chama da marca */
  --chama: linear-gradient(120deg, #d4151c 0%, #e8401c 45%, #f26b1d 75%, #f7a21b 100%);
  --chama-botao: linear-gradient(120deg, #c4121a 0%, #d63d1a 100%);
  --brilho: 0 10px 30px -8px rgba(242, 107, 29, .55);
  --vidro: rgba(20, 20, 24, .62);
  --vidro-claro: rgba(255, 255, 255, .055);
  --borda-vidro: rgba(255, 255, 255, .1);
  --mola: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
html[data-tema="D"][data-marca="nordicos"] {
  --brand: #f59e0b; --brand-2: #f7a21b; --brand-ink: #160c00; --brand-soft: rgba(247, 162, 27, .14); --accent: #f7a21b;
  --chama: linear-gradient(120deg, #f26b1d 0%, #f7a21b 60%, #fcd34d 100%);
  --chama-botao: linear-gradient(120deg, #f59e0b 0%, #f7b733 100%);
  --brilho: 0 10px 30px -8px rgba(247, 162, 27, .5);
}
/* selo "Obrigatório" (11px): branco sobre #e2361b dava 4,40:1, abaixo do AA; #c4121a dá 6,1:1 (achado #72) */
html[data-tema="D"][data-marca="fina"] .grupo legend .obrig { background: #c4121a; }
html:not([data-tema="D"]) :is(.hero-foto, .saudacao, .chip-vivo, .fixo-marca, .nav-baixo, .pedir-de-novo) { display: none !important; }

/* ---------- base ---------- */
html[data-tema="D"] body { background: radial-gradient(120% 60% at 50% -10%, rgba(242, 107, 29, .07), transparent 60%), var(--bg); padding-bottom: calc(150px + env(safe-area-inset-bottom)); letter-spacing: -.005em; }
html[data-tema="D"] body.sem-nav { padding-bottom: 40px; }
html[data-tema="D"] :is(.card-preco, .folha-preco, .vl, .totais, .btn span, .btn-barra strong, .op-preco, .pr, .mc-preco, .barra-qtd, .ped-card small) { font-variant-numeric: tabular-nums; }
html[data-tema="D"] a { color: #ff8a4c; }
html[data-tema="D"] .aviso-teste { background: rgba(251, 191, 36, .1); color: #fcd34d; border-bottom: 1px solid rgba(251, 191, 36, .2); }
.aviso-teste.forte { position: sticky; top: 0; z-index: 40; background: #fbbf24 !important; color: #1a1205 !important; font-size: 13px; padding: 7px 12px; }
html[data-tema="D"] :focus-visible { outline: 2px solid #f7a21b; outline-offset: 2px; }

/* ---------- topo: foto grande da campeã ---------- */
html[data-tema="D"] .hero-capa { min-height: clamp(380px, 108vw, 470px); padding: 16px 20px 54px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--bg); }
html[data-tema="D"] .hero-capa::before { display: none; }
html[data-tema="D"] .hero-foto { position: absolute; inset: 0; z-index: 0; background: radial-gradient(80% 60% at 50% 40%, #2a1a12, #0a0a0c); }
html[data-tema="D"] .hero-foto .foto-real { z-index: 0; }
html[data-tema="D"] .hero-foto .foto-real img { filter: saturate(1.1) contrast(1.05); }
html[data-tema="D"] .hero-foto::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 12, .62) 0%, rgba(10, 10, 12, .08) 26%, rgba(10, 10, 12, .1) 46%, rgba(10, 10, 12, .78) 74%, #0a0a0c 100%); }
html[data-tema="D"] .hero-topo { position: absolute; top: 14px; left: 20px; right: 20px; z-index: 2; margin: 0; align-items: flex-start; }
html[data-tema="D"] .logo { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; display: block; }
html[data-tema="D"] .logo img { display: block; height: auto; width: clamp(138px, 40vw, 172px); filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .65)); }
html[data-tema="D"][data-marca="nordicos"] .logo img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 10px 26px rgba(0, 0, 0, .6); filter: none; }
html[data-tema="D"] .pill-pedido { background: var(--vidro); color: var(--ink); border: 1px solid var(--borda-vidro); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: none; min-height: 40px; display: inline-flex; align-items: center; }
html[data-tema="D"] .hero-nome { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-tema="D"] .saudacao { position: relative; z-index: 2; margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 8.6vw, 38px); line-height: 1.05; letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
html[data-tema="D"] .hero-slogan { z-index: 2; margin: 6px 0 14px; color: var(--hero-muted); font-size: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
html[data-tema="D"] .chip-vivo { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--vidro); border: 1px solid var(--borda-vidro); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
html[data-tema="D"] .pulso { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; flex: none; }
html[data-tema="D"] .pulso::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #4ade80; opacity: 0; animation: pulsar 1.8s ease-out infinite; }
html[data-tema="D"] .pulso.off { background: var(--danger); }
html[data-tema="D"] .pulso.off::after { border-color: var(--danger); }
@keyframes pulsar { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

html[data-tema="D"] .hero-info { position: relative; z-index: 3; margin: -34px 16px 0; padding: 0; }
html[data-tema="D"] .hero-status, html[data-tema="D"] .info-taxa { display: none; }
html[data-tema="D"] .local { margin: 0; min-height: 64px; background: var(--vidro); border: 1px solid var(--borda-vidro); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: var(--sombra-2); border-radius: 20px; }
html[data-tema="D"] .local-ico { background: var(--brand-soft); color: #ff8a4c; border-radius: 14px; }
html[data-tema="D"][data-marca="nordicos"] .local-ico { color: #f7a21b; }

/* ---------- pedir de novo ---------- */
html[data-tema="D"] .pedir-de-novo { padding: 6px 20px 0; }
html[data-tema="D"] .pdn-trilho { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; scroll-snap-type: x mandatory; }
html[data-tema="D"] .pdn-trilho::-webkit-scrollbar { display: none; }
html[data-tema="D"] .pdn { flex: none; width: min(86vw, 340px); scroll-snap-align: start; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 20px; border: 1px solid var(--borda-vidro); background: var(--vidro-claro); color: var(--ink); transition: transform .35s var(--mola); }
html[data-tema="D"] .pdn:active { transform: scale(.97); }
html[data-tema="D"] .pdn .thumb { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 16px; }
html[data-tema="D"] .pdn-txt { min-width: 0; display: flex; flex-direction: column; }
html[data-tema="D"] .pdn-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-tema="D"] .pdn-txt small { color: var(--muted); font-size: 12.5px; }
html[data-tema="D"] .pdn-acao { justify-self: start; margin-top: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--chama-botao); color: var(--brand-ink); box-shadow: var(--brilho); }

/* ---------- barra fixa: busca + pílulas; vira vidro ao rolar ---------- */
html[data-tema="D"] .fixo { background: transparent; padding: 14px 20px 0; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
html[data-tema="D"] .fixo.preso { background: rgba(10, 10, 12, .74); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-bottom-color: var(--line); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .9); padding-top: 8px; }
html[data-tema="D"] .fixo-marca { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s ease, margin .3s ease; }
html[data-tema="D"] .fixo.preso .fixo-marca { max-height: 48px; opacity: 1; margin-bottom: 8px; }
html[data-tema="D"] .fixo-logo img { display: block; width: 96px; height: auto; }
html[data-tema="D"][data-marca="nordicos"] .fixo-logo img { width: 36px; height: 36px; border-radius: 50%; }
html[data-tema="D"] .fixo-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html[data-tema="D"] .fixo-chip .pulso { width: 7px; height: 7px; }
html[data-tema="D"] .fixo-chip .pulso::after { inset: -3px; border-width: 1.5px; }
html[data-tema="D"] .busca { height: 50px; border-radius: 16px; background: var(--vidro-claro); border: 1px solid var(--borda-vidro); transition: border-color .2s, box-shadow .2s; }
html[data-tema="D"] .busca:focus-within { border-color: rgba(242, 107, 29, .6); box-shadow: 0 0 0 4px rgba(242, 107, 29, .14); }
html[data-tema="D"] .cats { gap: 8px; padding: 12px 20px; }
html[data-tema="D"] .cat { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px 0 12px; border: 1px solid var(--borda-vidro); background: var(--vidro-claro); color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, transform .35s var(--mola); }
html[data-tema="D"] .cat svg { width: 19px; height: 19px; flex: none; opacity: .9; }
html[data-tema="D"] .cat:active { transform: scale(.95); }
html[data-tema="D"] .cat.ativa { background: var(--chama-botao); border-color: transparent; color: var(--brand-ink); box-shadow: var(--brilho); }
html[data-tema="D"] .cat-link { color: var(--muted); }
html[data-tema="D"] .filtros { padding: 10px 0 0; display: grid; gap: 8px; }
html[data-tema="D"] .filtros-linha { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
html[data-tema="D"] .filtros-linha::-webkit-scrollbar { display: none; }
html[data-tema="D"] .filtro { flex: none; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--borda-vidro); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; transition: transform .35s var(--mola), background .2s; }
html[data-tema="D"] .filtro.sel { background: rgba(242, 107, 29, .16); border-color: rgba(242, 107, 29, .55); color: var(--ink); }
html[data-tema="D"][data-marca="nordicos"] .filtro.sel { background: rgba(247, 162, 27, .16); border-color: rgba(247, 162, 27, .55); }

/* ---------- seções e cartões (vidro) ---------- */
html[data-tema="D"] .secao { scroll-margin-top: 170px; }
html[data-tema="D"] .sec-titulo { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin: 22px 0 12px; }
html[data-tema="D"] .sec-titulo small { font-weight: 500; }
html[data-tema="D"] .itens { grid-template-columns: 1fr; gap: 14px; }
html[data-tema="D"] .card { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)); border: 1px solid var(--borda-vidro); box-shadow: var(--sombra-1); border-radius: var(--r-card); }
html[data-tema="D"] .card-abrir { display: flex; flex-direction: column; transition: transform .35s var(--mola); }
html[data-tema="D"] .card-abrir:active { transform: scale(.975); }
html[data-tema="D"] .card-foto { width: 100%; aspect-ratio: 4 / 3; border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0; }
html[data-tema="D"] .card-foto > svg { padding: 7% 0; opacity: .7; }
/* tons quentes: a comida "brilha" no preto */
html[data-tema="D"] .card-foto .foto-real img, html[data-tema="D"] .folha-foto .foto-real img { filter: saturate(1.08) contrast(1.04) brightness(1.02); }
html[data-tema="D"] .card-foto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(10, 10, 12, .45), transparent); }
html[data-tema="D"] .card-corpo { padding: 14px 16px 16px; padding-right: 74px; gap: 4px; }
html[data-tema="D"] .card-nome { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
html[data-tema="D"] .card-desc { font-size: 13.5px; }
html[data-tema="D"] .card-preco { font-size: 18px; font-weight: 700; color: var(--ink); }
html[data-tema="D"] .card-selo { position: absolute; left: 12px; top: 12px; z-index: 3; background: var(--vidro); color: #fff; border: 1px solid var(--borda-vidro); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 700; letter-spacing: .06em; }
html[data-tema="D"] .card-mais { right: 14px; bottom: 14px; width: 48px; height: 48px; background: var(--chama-botao); color: var(--brand-ink); box-shadow: var(--brilho), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .35s var(--mola); }
html[data-tema="D"] .card-mais:active { transform: scale(.86); }
html[data-tema="D"] .card.meio { background: linear-gradient(180deg, rgba(242, 107, 29, .1), rgba(255, 255, 255, .02)); border: 1px solid rgba(242, 107, 29, .35); color: var(--ink); }
html[data-tema="D"] .card.meio .card-foto { background: radial-gradient(90% 80% at 50% 30%, #241a16, #0c0c0f); }
html[data-tema="D"] .card.meio .card-foto::after { display: none; }
html[data-tema="D"] .card.meio .card-desc, html[data-tema="D"] .card.meio .card-preco small { color: var(--muted); opacity: 1; }
html[data-tema="D"] .card.meio .card-mais { background: var(--chama-botao); color: var(--brand-ink); }
html[data-tema="D"] .card.meio .card-selo { background: var(--chama-botao); color: var(--brand-ink); border: 0; }
html[data-tema="D"] .card-foto .pz-unica { --pz-fundo: radial-gradient(90% 80% at 50% 30%, #241a16, #0c0c0f); }
/* "Mais pedidos": carrossel com adicionar rápido */
html[data-tema="D"] .carrossel { gap: 12px; }
html[data-tema="D"] .carrossel .card { width: min(80vw, 300px); }
html[data-tema="D"] .carrossel .card-foto { height: auto !important; aspect-ratio: 4 / 3; }
html[data-tema="D"] .carrossel .card-corpo { padding: 12px 16px 16px; padding-right: 72px; }
html[data-tema="D"] .carrossel .card-mais { top: auto; bottom: 14px; right: 14px; }
html[data-tema="D"] .rank { z-index: 3; background: var(--vidro); color: #fff; border: 1px solid var(--borda-vidro); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: none; font-variant-numeric: tabular-nums; }
html[data-tema="D"] .rodape-cardapio { color: #8b8b94; }

/* esqueleto enquanto carrega (brilho passando) */
.esqueletos { display: grid; gap: 14px; padding-top: 22px; }
.esq-card { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding-bottom: 16px; }
.esq-foto, .esq-l1, .esq-l2 { display: block; background: linear-gradient(90deg, rgba(127, 127, 127, .1) 0%, rgba(127, 127, 127, .2) 50%, rgba(127, 127, 127, .1) 100%); background-size: 200% 100%; animation: brilho-esq 1.3s linear infinite; }
.esq-foto { aspect-ratio: 4 / 3; }
.esq-l1 { height: 16px; width: 55%; margin: 16px 16px 8px; border-radius: 8px; }
.esq-l2 { height: 12px; width: 80%; margin: 0 16px; border-radius: 6px; }
@keyframes brilho-esq { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- botões: degradê da chama, brilho e mola ---------- */
html[data-tema="D"] .btn { background: var(--chama-botao); color: var(--brand-ink); border-radius: 16px; font-weight: 700; letter-spacing: -.01em; box-shadow: var(--brilho), inset 0 1px 0 rgba(255, 255, 255, .22); transition: transform .35s var(--mola), opacity .15s, box-shadow .2s; }
html[data-tema="D"] .btn:active { transform: scale(.965); }
html[data-tema="D"] .btn.sec, html[data-tema="D"] .btn.contorno { background: var(--vidro-claro); border: 1px solid var(--borda-vidro); color: var(--ink); box-shadow: none; }
html[data-tema="D"] .btn.zap { background: #1f9d55; color: #fff; box-shadow: 0 10px 26px -10px rgba(31, 157, 85, .6); }
html[data-tema="D"] .btn:disabled { opacity: .45; box-shadow: none; }

/* ---------- barra da sacola (acima da barra de baixo) ---------- */
html[data-tema="D"] .barra { bottom: calc(66px + env(safe-area-inset-bottom)); padding: 8px 14px; }
html[data-tema="D"] body.sem-nav .barra { bottom: 0; }
html[data-tema="D"] .btn-barra { min-height: 58px; border-radius: 18px; background: var(--chama-botao); color: var(--brand-ink); box-shadow: var(--brilho), 0 18px 40px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .22); transition: transform .35s var(--mola); }
html[data-tema="D"] .btn-barra:active { transform: scale(.97); }
html[data-tema="D"] .btn-barra.pulo { animation: pulo-mola .55s var(--mola); }
html[data-tema="D"] .barra-ico { background: rgba(0, 0, 0, .18); }
html[data-tema="D"] .barra-ico b { background: #fff; color: #c4121a; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
html[data-tema="D"][data-marca="nordicos"] .barra-ico b { background: #160c00; color: #f7a21b; }
@keyframes pulo-mola { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 60% { transform: scale(.98); } 100% { transform: scale(1); } }
/* foto voando até a sacola */
.voo { position: fixed; z-index: 70; border-radius: 18px; background-size: cover; background-position: center; pointer-events: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 255, 255, .15); will-change: transform, opacity; }

/* ---------- barra de baixo (vidro) ---------- */
html[data-tema="D"] .nav-baixo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 640px; margin: 0 auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(12, 12, 15, .78); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); border-top: 1px solid var(--line); }
html[data-tema="D"] body.sem-nav .nav-baixo { display: none; }
html[data-tema="D"] .nav-baixo a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 14px; color: #8b8b94; text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .01em; transition: color .2s, transform .35s var(--mola); }
html[data-tema="D"] .nav-baixo a svg { width: 24px; height: 24px; }
html[data-tema="D"] .nav-baixo a:active { transform: scale(.92); }
html[data-tema="D"] .nav-baixo a.ativo { color: var(--ink); }
html[data-tema="D"] .nav-baixo a.ativo::before { content: ""; position: absolute; top: 2px; width: 22px; height: 3px; border-radius: 3px; background: var(--chama); box-shadow: 0 0 12px rgba(242, 107, 29, .8); }

/* ---------- folha (item, meio a meio, localização) ---------- */
html[data-tema="D"] .folha-fundo { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html[data-tema="D"] .folha-corpo { background: #101013; border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); }
html[data-tema="D"] .folha-foto { height: auto; aspect-ratio: 1 / 1; width: 100%; }
html[data-tema="D"] .folha-foto > svg { width: 70%; height: 70%; margin: 15%; padding: 0; opacity: .7; }
html[data-tema="D"] .folha-foto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 2; background: linear-gradient(to top, #101013, transparent); pointer-events: none; }
html[data-tema="D"] .fechar { width: 44px; height: 44px; background: var(--vidro); border: 1px solid var(--borda-vidro); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html[data-tema="D"] .folha-titulo { font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
html[data-tema="D"] .folha-preco { font-size: 24px; font-weight: 700; }
html[data-tema="D"] .folha-rodape { background: rgba(16, 16, 19, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
html[data-tema="D"] .opcao, html[data-tema="D"] .sabor, html[data-tema="D"] .pagto { background: var(--vidro-claro); border: 1px solid var(--borda-vidro); min-height: 52px; transition: border-color .2s, background .2s, transform .35s var(--mola); }
html[data-tema="D"] .opcao:active, html[data-tema="D"] .sabor:active, html[data-tema="D"] .pagto:active { transform: scale(.98); }
html[data-tema="D"] .opcao:has(input:checked), html[data-tema="D"] .sabor.sel, html[data-tema="D"] .pagto.sel { border-color: rgba(242, 107, 29, .7); background: rgba(242, 107, 29, .1); box-shadow: 0 0 0 3px rgba(242, 107, 29, .1); }
html[data-tema="D"][data-marca="nordicos"] :is(.opcao:has(input:checked), .sabor.sel, .pagto.sel) { border-color: rgba(247, 162, 27, .7); background: rgba(247, 162, 27, .1); }
html[data-tema="D"] .opcao input:checked + .op-marca { border-color: transparent; background: var(--chama-botao); box-shadow: inset 0 0 0 4px #1a1a1f; }
html[data-tema="D"] .sabor .thumb { width: 52px; height: 52px; border-radius: 50%; }
html[data-tema="D"] .sabor.sel .marc, html[data-tema="D"] .meia-legenda b { background: var(--chama-botao); border-color: transparent; color: var(--brand-ink); }
html[data-tema="D"] .meia-legenda div { background: var(--vidro-claro); border: 1px solid var(--borda-vidro); }
html[data-tema="D"] .segmento { background: var(--vidro-claro); border: 1px solid var(--borda-vidro); }
html[data-tema="D"] .segmento button { min-height: 44px; }
html[data-tema="D"] .segmento button.ativo { background: #24242a; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); }
html[data-tema="D"] .meia-grande { width: min(72vw, 280px); height: min(72vw, 280px); animation: none; }
html[data-tema="D"] .meia-grande.girar { animation: girar-mola .7s var(--mola); }
@keyframes girar-mola { from { transform: rotate(-22deg) scale(.94); } to { transform: none; } }
html[data-tema="D"] .pz-tabua { 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 .08 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%, #3a3c42 0%, #26272c 40%, #18191c 72%, #101114 100%);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(242, 107, 29, .22), inset 0 0 0 1px rgba(255, 255, 255, .07); }

/* campos */
html[data-tema="D"] .campo input, html[data-tema="D"] .campo textarea { min-height: 52px; background: var(--vidro-claro); border: 1px solid var(--borda-vidro); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
html[data-tema="D"] .campo input:focus, html[data-tema="D"] .campo textarea:focus { border-color: rgba(242, 107, 29, .7); box-shadow: 0 0 0 4px rgba(242, 107, 29, .14); }
html[data-tema="D"] .qtd-ctrl { background: var(--vidro-claro); border: 1px solid var(--borda-vidro); }
html[data-tema="D"] .qtd-ctrl button { color: #ff8a4c; min-width: 44px; }
html[data-tema="D"][data-marca="nordicos"] .qtd-ctrl button { color: #f7a21b; }
html[data-tema="D"] .qtd-ctrl.peq button { width: 40px; height: 40px; }
html[data-tema="D"] .resultado-local { background: var(--vidro-claro); border: 1px solid var(--borda-vidro); }
html[data-tema="D"] .resultado-local.ok { background: rgba(74, 222, 128, .08); border-color: rgba(74, 222, 128, .3); }

/* ---------- páginas: sacola, checkout, pedido, pedidos, perfil ---------- */
html[data-tema="D"] .pg-topo { background: rgba(10, 10, 12, .8); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); margin: 0 -20px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
html[data-tema="D"] .pg-topo h1 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
html[data-tema="D"] .voltar { width: 44px; height: 44px; background: var(--vidro-claro); border: 1px solid var(--borda-vidro); }
html[data-tema="D"] .bloco { background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)); border: 1px solid var(--borda-vidro); border-radius: 22px; box-shadow: var(--sombra-1); }
html[data-tema="D"] .linha .thumb { border-radius: 16px; }
html[data-tema="D"] .add-mais, html[data-tema="D"] .resumo-linha .ir, html[data-tema="D"] .link { color: #ff8a4c; }
html[data-tema="D"][data-marca="nordicos"] :is(.add-mais, .resumo-linha .ir, .link) { color: #f7a21b; }
html[data-tema="D"] .add-mais { min-height: 48px; }
html[data-tema="D"] .totais .total { font-size: 22px; font-weight: 700; }
.totais div { gap: 12px; }
.totais div > span:last-child { white-space: nowrap; }
html[data-tema="D"] .passo::before { background: rgba(255, 255, 255, .1); }
html[data-tema="D"] .passo.feito::before, html[data-tema="D"] .passo.atual::before { background: var(--chama); }
html[data-tema="D"] .passo.feito i, html[data-tema="D"] .passo.atual i { background: var(--chama-botao); color: var(--brand-ink); }
html[data-tema="D"] .rodape-acao { background: linear-gradient(to top, var(--bg) 70%, transparent); }
html[data-tema="D"] .local-card button { min-height: 40px; background: var(--vidro-claro); border: 1px solid var(--borda-vidro); }
html[data-tema="D"] .pagto .p-ico { background: rgba(255, 255, 255, .06); }
html[data-tema="D"] .pagto.sel .radio { border-color: #f26b1d; }
html[data-tema="D"] .pagto.sel .radio::after { background: var(--chama); }
html[data-tema="D"] .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); white-space: nowrap; }
/* "Combina com" */
html[data-tema="D"] .combina { padding: 14px 0 14px 16px; overflow: hidden; }
.combina-tit { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.combina-trilho { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 4px 0; scrollbar-width: none; }
.combina-trilho::-webkit-scrollbar { display: none; }
.mini-card { flex: none; width: 128px; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.mini-card:active { transform: scale(.95); }
.mini-card .thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 13px; }
.mc-ico { width: 100%; aspect-ratio: 1 / 1; border-radius: 13px; display: grid; place-items: center; background: rgba(242, 107, 29, .12); color: #ff8a4c; }
.mc-ico svg { width: 46%; height: 46%; }
.mc-nome { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-preco { margin-top: auto; font-size: 13px; font-weight: 700; color: #ff8a4c; }
html[data-marca="nordicos"] .mc-preco, html[data-marca="nordicos"] .mc-ico { color: #f7a21b; }
html[data-tema="D"] .mini-card { background: var(--vidro-claro); border-color: var(--borda-vidro); }
html[data-tema="D"] .borda-sug { border-color: rgba(242, 107, 29, .45); background: rgba(242, 107, 29, .07); }
html[data-tema="D"] .expresso .rot { color: var(--muted); }
/* barra do frete grátis (só com promoção ligada) */
.frete-barra { padding: 12px 16px; }
.fb-txt { font-size: 14px; margin-bottom: 8px; }
.fb-trilho { height: 8px; border-radius: 8px; background: rgba(127, 127, 127, .18); overflow: hidden; }
.fb-trilho span { display: block; height: 100%; border-radius: inherit; background: var(--chama, var(--brand)); transition: width .8s cubic-bezier(.34, 1.56, .64, 1); }
.frete-barra.ok .fb-txt { color: var(--ok); }

/* ---------- acompanhamento: linha do tempo animada ---------- */
html[data-tema="D"] .status-ico { background: var(--chama-botao); color: #fff; box-shadow: var(--brilho), 0 0 0 10px rgba(242, 107, 29, .1); }
html[data-tema="D"] .status-ico.cancel { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
html[data-tema="D"] .status-topo h1 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.rastreio { padding-top: 12px; }
.previsao { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin: 4px 0 12px; }
.prev-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.prev-ico svg { width: 20px; height: 20px; }
html[data-tema="D"] .prev-ico { color: #ff8a4c; }
.progresso { height: 8px; border-radius: 8px; background: rgba(127, 127, 127, .18); overflow: hidden; margin: 0 0 8px; }
.prog-barra { position: relative; display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--chama, var(--brand)); animation: cresce 1.1s cubic-bezier(.22, 1, .36, 1) both; overflow: hidden; }
.prog-barra::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: varre 1.8s ease-in-out infinite; }
@keyframes cresce { from { width: 0; } to { width: var(--p); } }
@keyframes varre { to { transform: translateX(100%); } }
html[data-tema="D"] .etapa { padding-bottom: 16px; animation: entra .4s ease both; animation-delay: calc(var(--n, 0) * 70ms); }
html[data-tema="D"] .etapa .bol { border-color: rgba(255, 255, 255, .14); background: #141418; }
html[data-tema="D"] .etapa.feita .bol { background: var(--chama-botao); border-color: transparent; }
html[data-tema="D"] .etapa.feita .bol::after { width: 8px; height: 8px; background: #fff; }
html[data-tema="D"] .etapa.feita::before { background: linear-gradient(#f26b1d, #d4151c); }
html[data-tema="D"] .etapa::before { background: rgba(255, 255, 255, .1); }
html[data-tema="D"] .etapa.atual .bol { background: #f26b1d; border-color: #f26b1d; box-shadow: 0 0 0 5px rgba(242, 107, 29, .2); }
html[data-tema="D"] .etapa.atual .tx strong { color: #fff; }
html[data-tema="D"] .etapa .tx small { font-variant-numeric: tabular-nums; }
html[data-tema="D"] .etapa.atual .bol { animation: pulsa-d 1.6s ease infinite; }
@keyframes pulsa-d { 50% { box-shadow: 0 0 0 10px rgba(242, 107, 29, .08); } }
.aviso-op { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.aviso-op:last-of-type { border-bottom: 0; }
.aviso-op span:first-child { display: flex; align-items: center; gap: 10px; }
.aviso-op svg { width: 20px; height: 20px; flex: none; }
.avisos-pedido { padding: 14px 16px; }

/* pedidos (no aparelho) e perfil */
.lista-pedidos { display: grid; gap: 12px; margin-top: 12px; }
.ped-card { padding: 14px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }
html[data-tema="D"] .ped-card { background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)); border-color: var(--borda-vidro); }
.ped-card-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ped-card-itens { margin: 2px 0; font-size: 14px; color: var(--muted); }
.ped-card-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.ped-card-acoes .btn { min-height: 44px; padding: 10px 16px; font-size: 14.5px; }
.vazio-card { text-align: center; padding: 40px 16px; color: var(--muted); }
.vazio-card svg { width: 56px; height: 56px; margin: 0 auto 10px; opacity: .7; }
html[data-tema="D"] .tag.st[data-status="entregue"] { color: var(--ok); background: rgba(74, 222, 128, .1); }
html[data-tema="D"] .tag.st[data-status="cancelado"] { color: var(--danger); background: var(--danger-soft); }
html[data-tema="D"] .tag.st[data-status="em_preparo"], html[data-tema="D"] .tag.st[data-status="saiu_entrega"] { color: #ffb07a; background: rgba(242, 107, 29, .14); }

html[data-tema="D"] .toast { bottom: calc(140px + env(safe-area-inset-bottom)); background: rgba(30, 30, 36, .92); color: var(--ink); border: 1px solid var(--borda-vidro); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-tema="D"] .toast.erro { background: #3a1214; color: #ffd0d0; }

/* ==========================================================================
   Padrão iFood (pedido do Lucas: "fotos muito grandes, deixa mais parecido com o iFood")
   Mantém cores, vidro, fonte, barra de baixo e animações; muda só o tamanho e a arrumação.
   ========================================================================== */
/* topo: capa de ~170 px, avatar da loja sobreposto, nome, loja e uma linha de informações */
html[data-tema="D"] .hero-capa { min-height: 0; display: block; padding: 182px 20px 2px; }
html[data-tema="D"] .hero-foto { inset: 0 0 auto 0; height: 172px; }
html[data-tema="D"] .hero-foto::after { background: linear-gradient(180deg, rgba(10, 10, 12, .45) 0%, rgba(10, 10, 12, .05) 35%, rgba(10, 10, 12, .35) 70%, #0a0a0c 100%); }
html[data-tema="D"] .hero-topo { position: absolute; inset: 0 0 auto 0; height: 0; margin: 0; z-index: 3; }
html[data-tema="D"] .logo { position: absolute; top: 126px; left: 20px; width: 76px; height: 76px; border-radius: 20px; overflow: hidden; background: #c4121a; border: 3px solid var(--bg); box-shadow: 0 10px 24px rgba(0, 0, 0, .55); }
html[data-tema="D"] .logo img { width: 100% !important; height: 100% !important; display: block; filter: none; border-radius: 0; box-shadow: none; }
html[data-tema="D"][data-marca="nordicos"] .logo { border-radius: 50%; background: #fff; }
html[data-tema="D"] .pill-pedido { position: absolute; top: 14px; right: 20px; }
html[data-tema="D"] .saudacao { margin: 0 0 0 92px; font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--muted); text-shadow: none; letter-spacing: 0; }
html[data-tema="D"] .hero-nome { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin: 2px 0 0 92px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: #fff; }
html[data-tema="D"] .hero-slogan { margin: 2px 0 0 92px; font-size: 13.5px; color: var(--muted); text-shadow: none; }
html[data-tema="D"] .chip-vivo { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-height: 0; margin: 16px 0 0; padding: 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 13px; font-weight: 500; color: var(--muted); white-space: normal; }
html[data-tema="D"] .chip-vivo .pulso { margin-right: 4px; }
html[data-tema="D"] .chip-vivo .ponto { opacity: .6; }
html[data-tema="D"] .hero-info { margin: 12px 16px 0; }
html[data-tema="D"] .local { min-height: 48px; padding: 8px 12px; border-radius: 14px; box-shadow: none; gap: 10px; }
html[data-tema="D"] .local-ico { width: 30px; height: 30px; border-radius: 10px; }
html[data-tema="D"] .local-ico svg { width: 17px; height: 17px; }
html[data-tema="D"] .local-txt { flex-direction: row; align-items: baseline; gap: 6px; }
html[data-tema="D"] .local-txt small { flex: none; font-size: 12.5px; }
html[data-tema="D"] .local-txt strong { font-size: 14px; min-width: 0; }
html[data-tema="D"] .local-detalhe { display: none; }
html[data-tema="D"] .local-seta { font-size: 22px; }

/* lista do cardápio: linha compacta, texto à esquerda e foto quadrada de 104 px à direita */
html[data-tema="D"] .itens { gap: 0; grid-template-columns: 1fr; }
html[data-tema="D"] .itens .card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; overflow: visible; }
html[data-tema="D"] .itens .card-abrir { display: grid; grid-template-columns: 1fr 104px; align-items: center; gap: 14px; min-height: 120px; padding: 14px 0; }
html[data-tema="D"] .itens .card-foto { order: 2; width: 104px; height: 104px; aspect-ratio: 1 / 1; border-radius: 12px; }
html[data-tema="D"] .itens .card-foto::after { display: none; }
html[data-tema="D"] .itens .card-foto > svg { padding: 10%; }
html[data-tema="D"] .itens .card-corpo { order: 1; padding: 0; gap: 4px; }
html[data-tema="D"] .itens .card-nome { font-size: 15.5px; font-weight: 600; }
html[data-tema="D"] .itens .card-desc { font-size: 13px; line-height: 1.35; }
html[data-tema="D"] .itens .card-preco { font-size: 15px; font-weight: 600; padding-top: 2px; }
html[data-tema="D"] .itens .card-selo { position: static; align-self: flex-start; margin: 0 0 2px; padding: 2px 8px; font-size: 10.5px; background: var(--brand-soft); color: #ffb07a; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-tema="D"][data-marca="nordicos"] .itens .card-selo { color: #fcd34d; }
html[data-tema="D"] .itens .card-mais { right: 6px; bottom: 22px; width: 34px; height: 34px; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
html[data-tema="D"] .itens .card-mais svg { width: 16px; height: 16px; }
/* "Monte sua meio a meio": linha de destaque com a mini-pizza de 96 px */
html[data-tema="D"] .itens .card.meio { background: linear-gradient(90deg, rgba(242, 107, 29, .12), rgba(242, 107, 29, .03)); border: 1px solid rgba(242, 107, 29, .3); border-radius: 16px; margin: 4px 0 6px; }
html[data-tema="D"] .itens .card.meio .card-abrir { grid-template-columns: 1fr 96px; padding: 12px 14px; min-height: 0; }
html[data-tema="D"] .itens .card.meio .card-foto { width: 96px; height: 96px; background: none; border-radius: 50%; }
html[data-tema="D"] .itens .card.meio .card-foto > svg { padding: 0; }
html[data-tema="D"] .card-foto .pz-unica { --pz-fundo: transparent; }
html[data-tema="D"] .itens .card.meio .pz-quadro, html[data-tema="D"] .carrossel .card.meio .pz-quadro { height: 100%; }
html[data-tema="D"] .itens .card.meio .card-mais { right: 18px; bottom: 18px; }
html[data-tema="D"] .itens .card.meio .card-selo { background: var(--chama-botao); color: #fff; }

/* "Mais pedidos": cartões pequenos de 150 px, foto quadrada em cima */
html[data-tema="D"] .carrossel { gap: 12px; padding-bottom: 6px; }
html[data-tema="D"] .carrossel .card { width: 150px; background: transparent; border: 0; box-shadow: none; overflow: visible; }
html[data-tema="D"] .carrossel .card-abrir { display: flex; flex-direction: column; height: auto; }
html[data-tema="D"] .carrossel .card-foto { width: 150px !important; height: 150px !important; aspect-ratio: 1 / 1; border-radius: 14px !important; }
html[data-tema="D"] .carrossel .card-foto::after { display: none; }
html[data-tema="D"] .carrossel .card-corpo { padding: 8px 2px 0; gap: 2px; }
html[data-tema="D"] .carrossel .card-nome { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
html[data-tema="D"] .carrossel .card-desc, html[data-tema="D"] .carrossel .card-selo, html[data-tema="D"] .carrossel .pz-aviso { display: none; }
html[data-tema="D"] .carrossel .card-preco { font-size: 14px; font-weight: 600; padding-top: 0; }
html[data-tema="D"] .carrossel .card-preco small { font-size: 11px; }
html[data-tema="D"] .carrossel .card-mais { top: 110px; bottom: auto; right: 6px; width: 34px; height: 34px; }
html[data-tema="D"] .carrossel .card-mais svg { width: 16px; height: 16px; }
html[data-tema="D"] .carrossel .card.meio { border: 0; background: transparent; }
html[data-tema="D"] .carrossel .card.meio .card-foto { background: radial-gradient(90% 80% at 50% 30%, #241a16, #0c0c0f); }
html[data-tema="D"] .rank { left: 6px; top: 6px; min-width: 24px; height: 24px; font-size: 12px; padding: 0 7px; }

/* página do item: foto em 16:10 em cima, sem ocupar a tela toda */
html[data-tema="D"] .folha-foto { aspect-ratio: 16 / 10; }
html[data-tema="D"] .folha-foto > svg { width: auto; height: 80%; margin: 5% auto; }
html[data-tema="D"] .folha-foto::after { height: 22%; }
/* meio a meio: pizza única de ~220 px no montador */
html[data-tema="D"] .meia-grande { width: 220px; height: 220px; }
/* sacola: miniaturas de 56 px */
html[data-tema="D"] .linha .thumb { width: 56px; height: 56px; border-radius: 12px; }

/* ==========================================================================
   Organização igual ao print do iFood que o Lucas mandou, com o NOSSO estilo escuro:
   barra de cima (voltar redondo + busca larga), ≡ + abas em texto com sublinhado grosso,
   título grande por seção, linhas com foto de 96 px à direita, preço com promoção e pílula flutuante.
   ========================================================================== */
html:not([data-tema="D"]) :is(.btn-redondo, .btn-menu) { display: none; }
.busca-linha { display: flex; align-items: center; gap: 10px; }
.busca-linha .busca { flex: 1; min-width: 0; }
.cats-linha { display: flex; align-items: stretch; }
.cats-linha .cats { flex: 1; min-width: 0; }
html[data-tema="D"] .chip-vivo .pulso::after { inset: -3px; border-width: 1.5px; }
html[data-tema="D"] .fixo { background: rgba(10, 10, 12, .97); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); padding: 10px 16px 0; margin-top: 10px; border-bottom: 0; }
html[data-tema="D"] .fixo.preso { padding-top: 10px; box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .95); }
html[data-tema="D"] .fixo-marca { display: none; }
html[data-tema="D"] .btn-redondo { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borda-vidro); background: var(--vidro-claro); color: var(--ink); display: grid; place-items: center; transition: transform .35s var(--mola); }
html[data-tema="D"] .btn-redondo:active { transform: scale(.92); }
html[data-tema="D"] .btn-redondo svg { width: 20px; height: 20px; }
html[data-tema="D"] .busca { height: 44px; border-radius: 999px; padding: 0 16px; }
html[data-tema="D"] .busca input { font-size: 15px; }
html[data-tema="D"] .cats-linha { margin: 6px -16px 0; padding-left: 6px; border-bottom: 1px solid var(--line); }
html[data-tema="D"] .btn-menu { flex: none; width: 44px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; }
html[data-tema="D"] .btn-menu svg { width: 22px; height: 22px; }
html[data-tema="D"] .cats { margin: 0; padding: 0 16px 0 0; gap: 2px; }
html[data-tema="D"] .cat, html[data-tema="D"] .cat.ativa { min-height: 48px; padding: 0 12px; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 15px; font-weight: 500; color: var(--muted); }
html[data-tema="D"] .cat.ativa { color: var(--ink); font-weight: 600; }
html[data-tema="D"] .cat.ativa::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--chama); }
html[data-tema="D"] .cat svg { display: none; }
html[data-tema="D"] .filtros { padding-top: 8px; }
.menu-cats { display: grid; gap: 4px; margin-top: 8px; }
.menu-cat { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 15px; text-align: left; text-decoration: none; }

/* seções: título grande; itens em linhas com divisória fina */
html[data-tema="D"] .sec-titulo { font-size: 24px; margin: 26px 0 6px; }
html[data-tema="D"] .itens .card { border-bottom: 1px solid var(--line); }
html[data-tema="D"] .itens .card:last-child { border-bottom: 0; }
html[data-tema="D"] .itens .card-abrir { grid-template-columns: 1fr 96px; gap: 16px; min-height: 118px; padding: 18px 0; align-items: start; }
html[data-tema="D"] .itens .card-foto { width: 96px; height: 96px; border-radius: 12px; }
html[data-tema="D"] .itens .card-nome { font-size: 16px; font-weight: 600; }
html[data-tema="D"] .itens .card-desc { font-size: 14px; color: var(--muted); }
html[data-tema="D"] .itens .card-preco { font-size: 15.5px; font-weight: 500; padding-top: 8px; margin-top: 0; }
html[data-tema="D"] .itens .card-mais { display: none; }
html[data-tema="D"] .itens .card:not(.meio) .card-selo { display: none; }
/* preço com promoção: ícone + preço novo, antigo riscado, selo -20% e a linha "Exclusivo app" */
.preco-promo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.preco-promo s { color: var(--muted); font-weight: 400; font-size: .9em; }
.pp-ico { display: inline-grid; place-items: center; color: #ff8a4c; }
.pp-ico svg { width: 17px; height: 17px; }
.pp-pct { font-size: 12px; font-weight: 700; color: #fff; background: var(--chama-botao, var(--brand)); padding: 1px 7px; border-radius: 7px; }
.pp-linha { font-size: 12.5px; font-weight: 600; color: #ff8a4c; }
html[data-marca="nordicos"] :is(.pp-ico, .pp-linha) { color: #f7a21b; }
/* meio a meio: linha de destaque com a mini-pizza */
html[data-tema="D"] .itens .card.meio { margin: 10px 0; }
html[data-tema="D"] .itens .card.meio .card-abrir { padding: 14px; align-items: center; }

/* pílula flutuante (vermelho da marca): promoção ligada ou "Ver sacola · 2 itens · R$ 109,80" */
html[data-tema="D"] .btn-barra { border-radius: 999px; min-height: 50px; padding: 8px 20px; justify-content: center; gap: 10px; }
html[data-tema="D"] .barra-ico { width: auto; height: auto; background: none; border-radius: 0; }
html[data-tema="D"] .barra-ico svg { width: 21px; height: 21px; }
html[data-tema="D"] .barra-ico b { top: -8px; right: -10px; }
html[data-tema="D"] .barra-txt { flex-direction: row; align-items: baseline; gap: 6px; font-size: 15.5px; font-weight: 700; }
html[data-tema="D"] .barra-txt small { font-size: 15.5px; font-weight: 600; opacity: .92; }
html[data-tema="D"] .barra-txt small::before { content: "· "; }
html[data-tema="D"] .btn-barra strong { margin-left: 0; font-size: 15.5px; font-weight: 700; }
html[data-tema="D"] .btn-barra strong::before { content: "· "; font-weight: 600; }
.btn-barra.so-promo :is(.barra-ico, .barra-txt, strong) { display: none; }
.barra-promo { font-size: 14.5px; font-weight: 600; text-align: center; }

/* transição entre telas (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; }

/* telas pequenas (360 px) */
@media (max-width: 370px) {
  html[data-tema="D"] .cat { padding: 0 12px 0 10px; font-size: 13px; }
  html[data-tema="D"] .chip-vivo { font-size: 12.5px; }
  html[data-tema="D"] .card-corpo { padding-right: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .voo { display: none; }
  .prog-barra::after { display: none; }
}
