/* ============================================================
   TOP PIZZA — mobile first
   ============================================================ */

:root {
  --brand:        #e81d25;
  --brand-dark:   #b8141b;
  --brand-soft:   #fff1f1;
  --accent:       #ff8a00;
  --gold:         #f7b731;
  --green:        #1db954;
  --green-dark:   #0f8f3e;

  --bg:           #f4f4f6;
  --surface:      #ffffff;
  --surface-2:    #fafafb;
  --border:       #e8e8ed;
  --border-strong:#d8d8e0;

  --text:         #1c1c1e;
  --text-2:       #6b6b76;
  --text-3:       #9a9aa5;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(16,16,24,.08);
  --shadow:    0 4px 16px rgba(16,16,24,.10);
  --shadow-lg: 0 12px 40px rgba(16,16,24,.18);

  --maxw: 520px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body.travado { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.app { max-width: var(--maxw); margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; }

.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   1. SPLASH — rastreamento de localizacao
   ============================================================ */
#splash {
  position: fixed; inset: 0; z-index: 100;
  background: linear-gradient(165deg, #1a0d10 0%, #3d1216 55%, #7a1a1f 100%);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px calc(32px + var(--safe-b));
  text-align: center;
}
#splash.saindo { animation: splashOut .45s ease forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

.splash-marca {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.62); margin-bottom: 40px; font-weight: 600;
}

.radar { position: relative; width: 168px; height: 168px; margin-bottom: 38px; }
.radar-anel {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.30);
  animation: pulso 2.4s cubic-bezier(.2,.6,.3,1) infinite;
}
.radar-anel:nth-child(2) { animation-delay: .8s; }
.radar-anel:nth-child(3) { animation-delay: 1.6s; }
@keyframes pulso {
  0%   { transform: scale(.32); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.radar-nucleo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--brand);
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(232,29,37,.18), 0 8px 28px rgba(232,29,37,.5);
}
.radar-nucleo svg { width: 34px; height: 34px; }
.radar-varredura { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.radar-varredura::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 50%; height: 50%; transform-origin: 0 0;
  background: conic-gradient(from 0deg, rgba(255,255,255,.22), transparent 62%);
  animation: girar 2.2s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.splash-titulo { font-size: 21px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; min-height: 28px; }
.splash-sub { font-size: 15px; color: rgba(255,255,255,.72); margin: 0; max-width: 300px; min-height: 44px; }
.splash-sub b { color: #fff; font-weight: 600; }

.splash-cidade {
  font-size: 27px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(92deg, #fff 20%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.splash-passos { margin-top: 34px; display: flex; flex-direction: column; gap: 11px; width: 100%; max-width: 300px; }
.passo {
  display: flex; align-items: center; gap: 11px;
  font-size: 13.5px; color: rgba(255,255,255,.42);
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, color .35s ease;
  text-align: left;
}
.passo.visivel { opacity: 1; transform: none; }
.passo.feito { color: rgba(255,255,255,.88); }
.passo-marca {
  flex: none; width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.28);
  display: grid; place-items: center;
  transition: background .3s ease, border-color .3s ease;
}
.passo.feito .passo-marca { background: var(--green); border-color: var(--green); }
.passo-marca svg { width: 11px; height: 11px; opacity: 0; transition: opacity .25s ease; }
.passo.feito .passo-marca svg { opacity: 1; }

.splash-loja {
  margin-top: 30px; width: 100%; max-width: 330px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 15px 17px; display: flex; align-items: center; gap: 13px;
  text-align: left;
  animation: subir .5s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }
.splash-loja-icone {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--brand));
  display: grid; place-items: center;
}
.splash-loja-icone svg { width: 23px; height: 23px; }
.splash-loja-nome { font-weight: 700; font-size: 14.5px; }
.splash-loja-dist { font-size: 12.5px; color: rgba(255,255,255,.62); margin-top: 1px; }
.splash-loja-dist b { color: var(--gold); font-weight: 700; }

.btn-splash {
  margin-top: 26px; width: 100%; max-width: 330px;
  background: var(--brand); color: #fff;
  padding: 15px; border-radius: 12px; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 8px 24px rgba(232,29,37,.42);
  animation: subir .5s .12s cubic-bezier(.2,.8,.3,1) both;
}
.btn-splash:active { transform: scale(.975); }

.splash-corrigir {
  margin-top: 14px; width: 100%; max-width: 330px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.88);
  padding: 12px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  animation: subir .5s .2s cubic-bezier(.2,.8,.3,1) both;
}
.splash-corrigir:active { transform: scale(.98); }
.splash-corrigir:disabled { opacity: .6; }

.splash-aviso {
  margin-top: 18px; font-size: 11.5px; color: rgba(255,255,255,.40);
  max-width: 320px; line-height: 1.5;
}

/* ============================================================
   2. HEADER
   ============================================================ */
.topo {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topo-linha { display: flex; align-items: center; gap: 11px; padding: 11px 15px; }
.topo-logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(140deg, var(--accent), var(--brand));
  display: grid; place-items: center;
}
.topo-logo svg { width: 21px; height: 21px; }
.topo-info { min-width: 0; flex: 1; }
.topo-rot { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.topo-local {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topo-local svg { width: 13px; height: 13px; flex: none; color: var(--brand); }

.selo-status {
  display: inline-flex; align-items: center; gap: 5px;
  background: #e9f9ef; color: var(--green-dark);
  font-size: 11.5px; font-weight: 700;
  padding: 5px 9px; border-radius: 20px; flex: none;
}
.selo-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.faixa-loja {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 15px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-2); overflow-x: auto;
  scrollbar-width: none;
}
.faixa-loja::-webkit-scrollbar { display: none; }
.faixa-loja > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.faixa-loja svg { width: 13px; height: 13px; }
.faixa-loja b { color: var(--text); font-weight: 700; }
.estrela { color: var(--gold); }

.categorias {
  position: sticky; top: 61px; z-index: 39;
  display: flex; gap: 8px; padding: 11px 15px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.categorias::-webkit-scrollbar { display: none; }
.cat {
  flex: none; padding: 8px 15px; border-radius: 22px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  white-space: nowrap; transition: all .16s ease;
}
.cat.ativa { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============================================================
   3. CONTEUDO
   ============================================================ */
.conteudo { padding: 0 0 128px; }
.secao { padding: 20px 15px 4px; scroll-margin-top: 112px; }
.secao-titulo { font-size: 17.5px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 3px; }
.secao-sub { font-size: 13px; color: var(--text-2); margin: 0 0 14px; }

.combo-card {
  margin: 16px 15px 4px;
  background: linear-gradient(140deg, #b8141b, #e81d25 48%, #ff6a1a);
  border-radius: var(--radius-lg); padding: 0;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 12px 34px rgba(232,29,37,.32);
}

/* hero: a arte da campanha ocupa o topo inteiro do card, sem nada por cima */
.combo-hero { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: #2b0e10; }
.combo-hero img, .combo-hero svg { width: 100%; height: 100%; object-fit: cover; }

.combo-corpo { padding: 14px 18px 18px; }

.combo-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold); color: #4a3000;
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 20px; margin-bottom: 10px;
}
.combo-nome { font-size: 22px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.combo-desc { font-size: 13.5px; color: rgba(255,255,255,.90); margin: 0 0 15px; line-height: 1.5; }
.combo-precos { display: flex; align-items: baseline; gap: 9px; margin-bottom: 14px; position: relative; }
.combo-de { font-size: 14px; color: rgba(255,255,255,.62); text-decoration: line-through; }
.combo-por { font-size: 33px; font-weight: 800; letter-spacing: -.035em; }
.combo-por small { font-size: 16px; font-weight: 700; margin-right: 1px; }
.combo-econ {
  background: rgba(255,255,255,.20); font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; align-self: center;
}
.combo-beneficios { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; position: relative; }
.combo-beneficios span {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.16); font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 7px;
}
.combo-beneficios svg { width: 12px; height: 12px; }
.btn-combo {
  width: 100%; background: #fff; color: var(--brand-dark);
  padding: 14px; border-radius: 11px; font-weight: 800; font-size: 15.5px;
  position: relative; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-combo:active { transform: scale(.98); }

/* grade de 2 colunas — as imagens ficam lado a lado */
.lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }

.produto {
  display: flex; flex-direction: column; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0; overflow: hidden;
  transition: border-color .16s ease, transform .1s ease, box-shadow .16s ease;
}
.produto:active { transform: scale(.985); border-color: var(--border-strong); }
@media (hover: hover) {
  .produto:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
}

.produto-img {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: var(--surface-2); overflow: hidden;
}
.produto-img svg, .produto-img img { width: 100%; height: 100%; object-fit: cover; }

.produto-corpo { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 10px 12px 12px; }
.produto-nome { font-size: 13.5px; font-weight: 700; margin: 0 0 3px; letter-spacing: -.01em; }
.produto-desc {
  font-size: 11.5px; color: var(--text-2); margin: 0 0 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 32px;
}
.produto-preco { margin-top: auto; font-size: 14px; font-weight: 800; color: var(--text); }
.produto-preco span { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 600; }

.selo-mais-pedido {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: var(--brand); color: #fff;
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 8px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16,16,24,.22);
}

/* telas bem estreitas continuam com 2 colunas, so aperta o texto */
@media (max-width: 340px) {
  .lista { gap: 9px; }
  .produto-corpo { padding: 9px 10px 11px; }
  .produto-nome { font-size: 12.5px; }
}

/* ============================================================
   4. BOTTOM SHEET
   ============================================================ */
.sheet-fundo {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(12,12,18,.55); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .26s ease;
}
.sheet-fundo.aberto { opacity: 1; }

.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 61;
  width: 100%; max-width: var(--maxw); transform: translate(-50%, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 92dvh; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.22,.9,.3,1);
  box-shadow: var(--shadow-lg);
}
.sheet.aberto { transform: translate(-50%, 0); }
.sheet-alca { padding: 9px 0 3px; display: grid; place-items: center; flex: none; }
.sheet-alca::before { content: ''; width: 38px; height: 4px; border-radius: 4px; background: var(--border-strong); }
.sheet-topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 17px 13px; border-bottom: 1px solid var(--border); flex: none;
}
.sheet-titulo { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sheet-fechar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; flex: none; color: var(--text-2);
}
.sheet-fechar svg { width: 16px; height: 16px; }
.sheet-corpo { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-rodape {
  flex: none; padding: 13px 17px calc(13px + var(--safe-b));
  border-top: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; gap: 12px;
}

.grupo { border-bottom: 8px solid var(--bg); }
.grupo:last-child { border-bottom: 0; }
.grupo-topo { padding: 15px 17px 9px; }
.grupo-nome { font-size: 14.5px; font-weight: 800; margin: 0 0 2px; letter-spacing: -.01em; }
.grupo-regra { font-size: 12.5px; color: var(--text-2); margin: 0; }
.grupo-obg {
  display: inline-block; background: var(--text); color: #fff;
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 4px; margin-left: 7px; vertical-align: middle;
}

.opcao {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 17px; text-align: left; border-top: 1px solid var(--border);
}
.opcao:first-of-type { border-top: 0; }
.opcao-corpo { flex: 1; min-width: 0; }
.opcao-nome { display: block; font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.opcao-desc { display: block; font-size: 12px; color: var(--text-2); margin: 0; line-height: 1.4; }
.opcao-preco { font-size: 13px; font-weight: 700; color: var(--text-2); flex: none; }
.marca {
  flex: none; width: 22px; height: 22px; border: 2px solid var(--border-strong);
  display: grid; place-items: center; color: #fff; transition: all .16s ease;
}
.marca.circulo { border-radius: 50%; }
.marca.quadrado { border-radius: 6px; }
.marca svg { width: 12px; height: 12px; opacity: 0; transition: opacity .14s ease; }
.opcao.marcada .marca { background: var(--brand); border-color: var(--brand); }
.opcao.marcada .marca svg { opacity: 1; }
.opcao.bloqueada { opacity: .42; pointer-events: none; }

.tamanhos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 4px 17px 15px; }
.tam {
  border: 1.5px solid var(--border); border-radius: 11px; padding: 11px;
  text-align: center; transition: all .16s ease;
}
.tam.ativo { border-color: var(--brand); background: var(--brand-soft); }
.tam-nome { font-size: 13.5px; font-weight: 800; }
.tam-fatias { font-size: 11.5px; color: var(--text-2); margin-top: 1px; }
.tam-preco { font-size: 13px; font-weight: 700; margin-top: 5px; color: var(--brand); }

.obs-campo { padding: 4px 17px 17px; }
.obs-campo textarea {
  width: 100%; min-height: 68px; resize: vertical;
  border: 1.5px solid var(--border); border-radius: 11px; padding: 11px;
  font-size: 14px; background: var(--surface-2);
}
.obs-campo textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); }

.stepper { display: flex; align-items: center; gap: 3px; background: var(--surface-2); border-radius: 11px; padding: 4px; flex: none; }
.stepper button { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--brand); font-weight: 800; font-size: 19px; }
.stepper button:disabled { color: var(--text-3); }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; font-size: 15px; }

.btn-primario {
  flex: 1; background: var(--brand); color: #fff;
  padding: 14px 16px; border-radius: 11px; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.btn-primario:active { transform: scale(.985); }
.btn-primario:disabled { background: var(--border-strong); color: var(--text-3); }
.btn-bloco {
  width: 100%; background: var(--brand); color: #fff;
  padding: 15px; border-radius: 12px; font-weight: 800; font-size: 15.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-bloco:disabled { background: var(--border-strong); color: var(--text-3); }
.btn-bloco.verde { background: var(--green-dark); }
.btn-secundario {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1.5px solid var(--border); padding: 13px; border-radius: 11px;
  font-weight: 700; font-size: 14.5px;
}

/* ============================================================
   5. BARRA DO CARRINHO
   ============================================================ */
.barra-carrinho {
  position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 120%);
  width: 100%; max-width: var(--maxw); z-index: 45;
  padding: 12px 15px calc(12px + var(--safe-b));
  background: var(--surface); border-top: 1px solid var(--border);
  transition: transform .3s cubic-bezier(.22,.9,.3,1);
  box-shadow: 0 -4px 24px rgba(16,16,24,.10);
}
.barra-carrinho.visivel { transform: translate(-50%, 0); }
.barra-btn {
  width: 100%; background: var(--brand); color: #fff;
  padding: 14px 16px; border-radius: 12px;
  display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px;
}
.barra-qtd {
  background: rgba(255,255,255,.24); min-width: 26px; height: 26px;
  border-radius: 7px; display: grid; place-items: center; font-size: 13.5px; flex: none;
}
.barra-txt { flex: 1; text-align: left; }
.barra-total { font-size: 15.5px; }

.item-carrinho { display: flex; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.item-img { flex: none; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.item-img svg, .item-img img { width: 100%; height: 100%; object-fit: cover; }
.item-corpo { flex: 1; min-width: 0; }
.item-nome { font-size: 14px; font-weight: 700; margin: 0 0 3px; }
.item-detalhe { font-size: 12px; color: var(--text-2); margin: 0 0 3px; line-height: 1.4; }
.item-preco { font-size: 14px; font-weight: 800; margin-top: 5px; }
.item-remover { font-size: 12px; color: var(--brand); font-weight: 700; margin-top: 6px; display: inline-block; }

.resumo { padding: 15px 17px; background: var(--surface-2); border-top: 1px solid var(--border); }
.resumo-linha { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-2); padding: 5px 0; }
.resumo-linha.total { font-size: 16.5px; font-weight: 800; color: var(--text); padding-top: 11px; margin-top: 5px; border-top: 1px solid var(--border); }
.gratis { color: var(--green-dark); font-weight: 800; }

.vazio { padding: 56px 30px; text-align: center; color: var(--text-2); }
.vazio svg { width: 52px; height: 52px; margin: 0 auto 15px; color: var(--border-strong); }
.vazio p { font-size: 14px; margin: 0; }

/* ============================================================
   6. FORMULARIO
   ============================================================ */
.form { padding: 17px; display: flex; flex-direction: column; gap: 15px; }
.campo label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.campo input, .campo select, .campo textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 11px;
  padding: 13px; font-size: 15px; background: var(--surface-2);
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
}
.campo input.erro { border-color: var(--brand); background: var(--brand-soft); }
.campo-msg { font-size: 11.5px; color: var(--brand); margin-top: 5px; display: none; }
.campo-msg.visivel { display: block; }
.linha-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.linha-cep { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.btn-cep { background: var(--text); color: #fff; padding: 13px 17px; border-radius: 11px; font-weight: 700; font-size: 14px; height: 48px; }

.entrega-op {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 13px; text-align: left;
}
.entrega-op.ativa { border-color: var(--brand); background: var(--brand-soft); }
.entrega-op-icone {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); display: grid; place-items: center; color: #fff;
}
.entrega-op-icone svg { width: 17px; height: 17px; }
.entrega-op-corpo { flex: 1; min-width: 0; }
.entrega-op-nome { display: block; font-size: 14px; font-weight: 700; }
.entrega-op-desc { display: block; font-size: 12px; color: var(--text-2); margin-top: 1px; line-height: 1.4; }
.entrega-op-preco { flex: none; font-size: 13.5px; font-weight: 800; }

/* ============================================================
   7. PAGAMENTO PIX
   ============================================================ */
.pix { padding: 19px 17px calc(19px + var(--safe-b)); text-align: center; }
.pix-valor { font-size: 12.5px; color: var(--text-2); margin: 0 0 3px; }
.pix-total { font-size: 34px; font-weight: 800; letter-spacing: -.035em; margin: 0 0 4px; }
.pix-codigo-pedido { font-size: 12.5px; color: var(--text-2); margin: 0 0 17px; }
.pix-codigo-pedido b { color: var(--text); font-weight: 700; letter-spacing: .04em; }

.pix-timer {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff4e0; color: #a85f00; font-size: 13px; font-weight: 700;
  padding: 8px 14px; border-radius: 22px; margin-bottom: 18px;
}
.pix-timer svg { width: 14px; height: 14px; }
.pix-timer.urgente { background: var(--brand-soft); color: var(--brand-dark); }
.pix-timer.expirado { background: #eee; color: var(--text-2); }

.pix-qr {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 15px; width: 236px; margin: 0 auto 17px;
}
.pix-qr img { width: 100%; border-radius: 6px; }
.pix-qr.expirado { opacity: .3; filter: grayscale(1); }

.pix-instrucao { font-size: 13px; color: var(--text-2); margin: 0 0 15px; line-height: 1.55; }

.pix-copia {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1.5px dashed var(--border-strong);
  border-radius: 11px; padding: 12px; margin-bottom: 11px; text-align: left;
}
.pix-copia code {
  flex: 1; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-copiar {
  flex: none; background: var(--text); color: #fff;
  padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.btn-copiar.copiado { background: var(--green-dark); }
.btn-copiar svg { width: 13px; height: 13px; }

.pix-passos { text-align: left; background: var(--surface-2); border-radius: 12px; padding: 15px; margin-bottom: 17px; }
.pix-passos h4 { font-size: 13px; font-weight: 800; margin: 0 0 10px; }
.pix-passos ol { margin: 0; padding-left: 19px; font-size: 12.5px; color: var(--text-2); line-height: 1.75; }

.pix-seguranca {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 11.5px; color: var(--text-2); text-align: left;
  margin-top: 15px; padding: 11px; background: var(--surface-2); border-radius: 10px; line-height: 1.5;
}
.pix-seguranca svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--green-dark); }

/* ============================================================
   8. CONFIRMACAO
   ============================================================ */
.confirmacao { padding: 44px 24px calc(30px + var(--safe-b)); text-align: center; }
.confirmacao-icone {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px;
  background: #e9f9ef; display: grid; place-items: center; color: var(--green-dark);
  animation: pop .45s cubic-bezier(.2,1.5,.4,1) both;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.confirmacao-icone svg { width: 38px; height: 38px; }
.confirmacao h2 { font-size: 22px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 9px; }
.confirmacao p { font-size: 14px; color: var(--text-2); margin: 0 0 22px; line-height: 1.55; }
.confirmacao-box {
  background: var(--surface-2); border-radius: 12px; padding: 17px; margin-bottom: 22px; text-align: left;
}
.confirmacao-box .resumo-linha { padding: 6px 0; }

/* ============================================================
   8b. ACOMPANHAMENTO DO PEDIDO
   ============================================================ */
.acomp { padding: 0 0 calc(18px + var(--safe-b)); }

.acomp-topo {
  padding: 22px 18px 18px; text-align: center;
  background: linear-gradient(160deg, #b8141b, #e81d25 55%, #ff6a1a);
  color: #fff;
}
.acomp-eta-rot { font-size: 12px; color: rgba(255,255,255,.80); margin: 0 0 4px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.acomp-eta { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 3px; }
.acomp-eta-sub { font-size: 13px; color: rgba(255,255,255,.86); margin: 0 0 16px; }

.acomp-barra { height: 8px; border-radius: 8px; background: rgba(255,255,255,.26); overflow: hidden; }
.acomp-barra-fill {
  height: 100%; border-radius: 8px; background: #fff;
  width: 0; transition: width .8s cubic-bezier(.3,.8,.4,1);
  position: relative; overflow: hidden;
}
.acomp-barra-fill.andando::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(232,29,37,.22) 0 8px, transparent 8px 16px);
  animation: listras 1.1s linear infinite;
}
@keyframes listras { to { transform: translateX(16px); } }

.acomp-status { padding: 20px 18px 4px; text-align: center; }
.acomp-status h2 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.acomp-status p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.5; }

.acomp-linha { padding: 20px 18px 4px; }
.etapa { display: flex; gap: 13px; position: relative; padding-bottom: 20px; }
.etapa:last-child { padding-bottom: 0; }
.etapa::before {
  content: ''; position: absolute; left: 12px; top: 24px; bottom: 0;
  width: 2px; background: var(--border);
}
.etapa:last-child::before { display: none; }
.etapa.feita::before { background: var(--green); }

.etapa-marca {
  flex: none; width: 25px; height: 25px; border-radius: 50%; z-index: 1;
  border: 2px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; color: #fff;
  transition: background .3s ease, border-color .3s ease;
}
.etapa-marca svg { width: 12px; height: 12px; opacity: 0; transition: opacity .2s ease; }
.etapa.feita .etapa-marca { background: var(--green); border-color: var(--green); }
.etapa.feita .etapa-marca svg { opacity: 1; }
.etapa.atual .etapa-marca {
  background: var(--brand); border-color: var(--brand);
  animation: pulsando 1.6s ease-in-out infinite;
}
@keyframes pulsando {
  0%,100% { box-shadow: 0 0 0 5px rgba(232,29,37,.16); }
  50%     { box-shadow: 0 0 0 9px rgba(232,29,37,.06); }
}
.etapa.atual .etapa-marca svg { opacity: 1; }

.etapa-corpo { flex: 1; min-width: 0; padding-top: 2px; }
.etapa-rotulo { font-size: 14px; font-weight: 700; color: var(--text-3); }
.etapa.feita .etapa-rotulo, .etapa.atual .etapa-rotulo { color: var(--text); }

.acomp-bloco { margin: 14px 15px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.acomp-bloco-topo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 15px; border-bottom: 1px solid var(--border);
}
.acomp-bloco-titulo { font-size: 13.5px; font-weight: 800; margin: 0; }
.acomp-bloco-codigo { font-size: 12px; color: var(--text-2); font-weight: 700; letter-spacing: .04em; }
.acomp-bloco-corpo { padding: 13px 15px; }

.acomp-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.acomp-item:last-child { border-bottom: 0; }
.acomp-item-qtd {
  flex: none; min-width: 24px; height: 24px; border-radius: 6px; padding: 0 5px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
}
.acomp-item-corpo { flex: 1; min-width: 0; }
.acomp-item-nome { font-size: 13.5px; font-weight: 700; }
.acomp-item-det { font-size: 11.5px; color: var(--text-2); line-height: 1.45; margin-top: 2px; }
.acomp-item-preco { font-size: 13px; font-weight: 700; flex: none; }

.acomp-pago {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e9f9ef; color: var(--green-dark);
  font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 6px;
}
.acomp-pago svg { width: 12px; height: 12px; }

.acomp-endereco { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.acomp-endereco b { color: var(--text); font-weight: 700; }

.acomp-acoes { padding: 16px 15px 0; display: flex; flex-direction: column; gap: 9px; }

.acomp-aviso {
  margin: 14px 15px 0; padding: 11px 13px; border-radius: 10px;
  background: #fff8e6; border: 1px solid #f5e2b8;
  font-size: 11.5px; color: #6b5312; line-height: 1.5;
  display: flex; gap: 9px; align-items: flex-start;
}
.acomp-aviso svg { width: 15px; height: 15px; flex: none; color: #b98600; margin-top: 1px; }

/* faixa fixa "acompanhar pedido" sobre o cardápio */
.faixa-pedido {
  position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 120%);
  width: 100%; max-width: var(--maxw); z-index: 44;
  padding: 11px 15px calc(11px + var(--safe-b));
  background: var(--text); color: #fff;
  transition: transform .3s cubic-bezier(.22,.9,.3,1);
}
.faixa-pedido.visivel { transform: translate(-50%, 0); }
.faixa-pedido button { width: 100%; display: flex; align-items: center; gap: 11px; color: #fff; text-align: left; }
.faixa-pedido-icone {
  flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--brand);
  display: grid; place-items: center;
}
.faixa-pedido-icone svg { width: 17px; height: 17px; }
.faixa-pedido-txt { flex: 1; min-width: 0; }
.faixa-pedido-t1 { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faixa-pedido-t2 { font-size: 11.5px; color: rgba(255,255,255,.66); }
.faixa-pedido svg.seta { width: 15px; height: 15px; flex: none; opacity: .7; }

/* ============================================================
   9. POP-UP DE LANCAMENTO
   ============================================================ */
.promo-fundo {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,6,8,.76); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 22px;
  opacity: 0; transition: opacity .3s ease;
}
.promo-fundo.aberto { opacity: 1; }

.promo {
  width: 100%; max-width: 352px; position: relative;
  background: linear-gradient(168deg, #7a1119, #c4161f 46%, #ff7a1a);
  border-radius: 22px; padding: 0 0 20px; color: #fff; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  transform: scale(.86) translateY(18px); opacity: 0;
  transition: transform .42s cubic-bezier(.2,1.35,.4,1), opacity .3s ease;
  overflow: hidden;
}
.promo-fundo.aberto .promo { transform: none; opacity: 1; }

.promo-fechar {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 31px; height: 31px; border-radius: 50%;
  background: rgba(0,0,0,.48); display: grid; place-items: center; color: #fff;
  backdrop-filter: blur(3px);
}
.promo-fechar svg { width: 14px; height: 14px; }

/* banner da campanha ocupa o topo inteiro do pop-up, sem nada por cima */
.promo-banner {
  width: 100%; aspect-ratio: 3 / 2;
  overflow: hidden; background: #2b0e10;
}
.promo-banner img, .promo-banner svg { width: 100%; height: 100%; object-fit: cover; }

.promo-selo {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--gold); color: #4a3000;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 11px;
}
.promo-selo svg { width: 12px; height: 12px; }

.promo-conteudo { padding: 15px 22px 0; position: relative; }

.promo-titulo { position: relative; font-size: 25px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 7px; line-height: 1.18; }
.promo-sub { position: relative; font-size: 13.5px; color: rgba(255,255,255,.88); margin: 0 0 17px; line-height: 1.5; }

.promo-oferta {
  position: relative; background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.20); border-radius: 15px;
  padding: 15px; margin-bottom: 17px;
}
.promo-oferta-precos { display: flex; align-items: baseline; justify-content: center; gap: 9px; }
.promo-de { font-size: 14.5px; color: rgba(255,255,255,.58); text-decoration: line-through; }
.promo-por { font-size: 37px; font-weight: 800; letter-spacing: -.04em; }
.promo-por small { font-size: 17px; font-weight: 700; }
.promo-frete {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  background: rgba(29,185,84,.24); color: #b8f5c9;
  font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 7px;
}
.promo-frete svg { width: 12px; height: 12px; }

.btn-promo {
  position: relative; width: 100%; background: #fff; color: var(--brand-dark);
  padding: 15px; border-radius: 12px; font-weight: 800; font-size: 15.5px; margin-bottom: 11px;
  box-shadow: 0 6px 20px rgba(0,0,0,.24);
  animation: respirar 2.1s ease-in-out infinite;
}
@keyframes respirar { 0%,100% { transform: scale(1); } 50% { transform: scale(1.028); } }
.btn-promo:active { transform: scale(.98); animation: none; }

.promo-recusar { position: relative; font-size: 12.5px; color: rgba(255,255,255,.60); text-decoration: underline; padding: 5px; }
.promo-nota { position: relative; font-size: 10.5px; color: rgba(255,255,255,.52); margin: 11px 0 0; line-height: 1.5; }

.confete { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.confete i {
  position: absolute; top: -12px; width: 7px; height: 11px; opacity: 0;
  animation: cair 2.4s ease-in forwards;
}
@keyframes cair {
  0%   { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(420px) rotate(600deg); }
}

/* ============================================================
   10. TOAST
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 95;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: #fff;
  padding: 12px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 600;
  max-width: calc(var(--maxw) - 40px); text-align: center;
  transition: opacity .24s ease, transform .24s ease;
  box-shadow: var(--shadow-lg);
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   11. FORA DE AREA
   ============================================================ */
.aviso-area {
  margin: 15px; padding: 14px; border-radius: 12px;
  background: #fff8e6; border: 1px solid #f5e2b8;
  display: flex; gap: 11px; align-items: flex-start;
}
.aviso-area svg { width: 18px; height: 18px; flex: none; color: #b98600; margin-top: 1px; }
.aviso-area p { margin: 0; font-size: 13px; color: #6b5312; line-height: 1.5; }
.aviso-area b { font-weight: 700; }

/* ============================================================
   12. RODAPE
   ============================================================ */
.rodape { padding: 26px 17px 34px; text-align: center; border-top: 1px solid var(--border); margin-top: 26px; background: var(--surface); }
.rodape p { font-size: 11.5px; color: var(--text-3); margin: 0 0 6px; line-height: 1.6; }
.rodape a { color: var(--text-2); }

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