:root {
  --bg: #130b07;
  --bg-2: #1b110b;
  --surface: rgba(255, 234, 210, .055);
  --surface-2: rgba(255, 234, 210, .09);
  --line: rgba(255, 224, 192, .13);
  --text: #fdf2e4;
  --muted: #c7b09a;
  --accent: #ff6a2b;
  --accent-2: #ffb347;
  --red: #e8402f;
  --green: #86d45f;
  --radius: 20px;
  --stage-h: 40dvh;
  --sticky-top: 0px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; }
/* nada alarga a página além da tela (sem rolagem lateral no celular) */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ================================================================ PALCO */

.stage {
  position: relative; z-index: 5;                  /* no celular a foto rola junto com a página */
  height: var(--stage-h); min-height: 250px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 105%, #4a1d0b 0%, #1d0f08 55%, #100906 100%);
}
.stage::after { /* funde o palco com o painel */
  content: ''; position: absolute; inset: auto 0 0 0; height: 46px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.embers span {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: #ffb060; box-shadow: 0 0 8px 2px rgba(255, 130, 40, .8);
  animation: subir linear infinite; opacity: 0;
}
@keyframes subir {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translate(var(--dx), -105vh) scale(.2); opacity: 0; }
}

/* ---- vitrine de fotos ---- */
.cenas { position: absolute; inset: 0; overflow: hidden; background: #120a06; }
.cena { position: absolute; inset: 0; isolation: isolate; }   /* cada cena empilha por inteiro: a nova cobre a antiga */
.cena.saindo .titulos { display: none; }
.cena::after { /* escurece topo e base: marca e títulos sempre legíveis */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 7, 4, .66), transparent 26%, transparent 50%, rgba(14, 7, 4, .9));
}
/* faixas inclinadas: a área de painéis é mais larga que o palco para as pontas ficarem fora da tela */
.paineis { position: absolute; inset: 0 -20%; display: flex; }
.painel { position: relative; flex: 1 1 0; overflow: hidden; transform: skewX(-7deg); transform-origin: 50% 100%; }
.painel:first-child, .painel:last-child { flex-basis: 14.2857%; }      /* compensa a parte escondida: fatias visíveis iguais */
.painel + .painel { border-left: 2px solid rgba(255, 228, 196, .92); box-shadow: -8px 0 30px rgba(255, 130, 40, .5); }
.painel-in {
  position: absolute; top: 0; bottom: 0; left: -6%; width: calc(106% + 15vh);    /* cobre o deslocamento da inclinação */
  transform: skewX(7deg); transform-origin: 50% 100%;
  animation: sobe .95s cubic-bezier(.2, .85, .2, 1) both; animation-delay: calc(var(--i) * 120ms);
}
.painel:nth-child(even) .painel-in { animation-name: desce; }
.painel-in img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: aproxima 1.7s cubic-bezier(.2, .8, .2, 1) both, deriva 18s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 120ms), 1.9s;
}
/* um sabor só: foto em tela cheia, abrindo em círculo */
.cena[data-n="1"] .paineis { inset: 0; }
.cena[data-n="1"] .painel { transform: none; }
.cena[data-n="1"] .painel-in { left: 0; width: 100%; transform: none; animation-name: abre; animation-duration: 1.1s; }
@keyframes sobe { from { transform: skewX(7deg) translateY(101%); } to { transform: skewX(7deg) translateY(0); } }
@keyframes desce { from { transform: skewX(7deg) translateY(-101%); } to { transform: skewX(7deg) translateY(0); } }
@keyframes abre { from { clip-path: circle(0% at 50% 62%); } to { clip-path: circle(125% at 50% 62%); } }
@keyframes aproxima { from { transform: scale(1.4); filter: brightness(1.6) saturate(1.3); } to { transform: scale(1.06); filter: brightness(1) saturate(1.1); } }
@keyframes deriva { from { transform: scale(1.06); } to { transform: scale(1.15) translate(-1.2%, -1%); } }

.titulos { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 2; display: flex; pointer-events: none; }
.titulo { flex: 1; min-width: 0; padding: 0 10px; text-align: center; animation: entrar .7s cubic-bezier(.2, .9, .3, 1) both; animation-delay: .55s; }
.titulo:nth-child(2) { animation-delay: .67s; }
.titulo:nth-child(3) { animation-delay: .79s; }
.titulo small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.titulo strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(17px, 2.5vw, 32px); line-height: 1.08; margin-top: 3px; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.titulo .sub { display: block; font-size: 12px; font-weight: 600; color: #f3cdb8; margin-top: 4px; }
.titulo .sub:empty { display: none; }
.tirar {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  padding: 6px 12px 6px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; color: #fff;
  background: rgba(20, 10, 6, .55); border: 1px solid rgba(255, 226, 196, .45); backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .2s;
}
.tirar:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.tirar:active { transform: scale(.94); }

.stage.festa::before { /* clarão de forno ao adicionar ao pedido */
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 56%, rgba(255, 214, 150, .75), rgba(255, 140, 50, .28) 38%, transparent 62%);
  animation: clarao 1s ease-out forwards;
}
.stage.festa .cena:last-child { animation: pulo .9s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes clarao { 0% { opacity: 0; transform: scale(.6); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes pulo { 40% { transform: scale(1.05); } }
.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage::after { z-index: 2; }

.brand {
  position: absolute; top: max(12px, env(safe-area-inset-top)); left: 16px; z-index: 3;
  pointer-events: none;
}
.brand-logo { display: block; height: 72px; width: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }

.brand { pointer-events: auto; }
.carrinho-btn {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: 14px; z-index: 4;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(20, 10, 6, .62); border: 1px solid rgba(255, 226, 196, .35); backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4); transition: transform .2s, background .2s;
}
.carrinho-btn:hover { background: var(--accent); transform: translateY(-2px); }
.carrinho-btn.pulsa { animation: pulsa .5s cubic-bezier(.2, 1.6, .4, 1); }
.carrinho-qtd {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--red); border: 2px solid #1b0f09;
}

.stage-extras {
  position: absolute; left: 16px; right: 16px; top: calc(max(12px, env(safe-area-inset-top)) + 80px); z-index: 3;
  display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none;
}
.stage-extras span {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap;
  background: rgba(255, 106, 43, .9); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  animation: entrar .35s cubic-bezier(.2, 1.4, .4, 1) both;
}

/* =============================================================== PAINEL */

.panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: calc(100dvh - var(--stage-h));
  padding: 4px 16px 0;
  max-width: 720px; margin: 0 auto; width: 100%;
}

/* linha do topo rolável na horizontal (arrastar com o dedo); a barra fica oculta como nos filtros */
.topo { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; margin-inline: -16px; overflow-x: auto; scrollbar-width: none; }
.topo::-webkit-scrollbar { display: none; }
.voltar {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px 9px 9px; border-radius: 99px;
  font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); transition: background .2s;
}
.voltar:hover { background: rgba(255, 106, 43, .3); }
.steps { flex: 1 0 auto; display: flex; gap: 6px; }
.step {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  padding: 9px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid transparent; transition: all .25s;
}
.step i {
  font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; background: rgba(255, 255, 255, .1);
}
.step.ativo { color: #fff; background: linear-gradient(120deg, rgba(255, 106, 43, .28), rgba(255, 179, 71, .16)); border-color: rgba(255, 140, 60, .55); }
.step.ativo i { background: var(--accent); }
.step.feito i { background: var(--green); color: #12300a; }
.step:disabled { opacity: .45; cursor: default; }

.view, #view { flex: 1; padding-bottom: 28px; }
.view {  animation: entrar .4s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(25px, 6.4vw, 34px); line-height: 1.08; letter-spacing: -.02em; }
h1 em { font-style: italic; color: var(--accent-2); }
h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.secao { margin-top: 26px; }
.secao-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.secao-topo small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.conta { font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text) !important; }
.conta.cheio { background: rgba(134, 212, 95, .18); color: var(--green) !important; }

/* ------------------------------------------------------------- tamanhos */

.tamanhos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.tam {
  position: relative; text-align: left; border-radius: 24px; overflow: hidden; isolation: isolate;
  min-height: 236px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, #3a1c0e, #1d100a); border: 1.5px solid var(--line);
  transition: transform .3s cubic-bezier(.2, 1.3, .4, 1), border-color .25s, box-shadow .3s;
}
.tam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.tam::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 7, 4, .96) 18%, rgba(14, 7, 4, .5) 55%, rgba(14, 7, 4, .1)); }
.tam:hover { transform: translateY(-4px); }
.tam:hover img { transform: scale(1.07); }
.tam.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 43, .25), 0 18px 40px rgba(255, 90, 20, .25); }
.tam-fatias {
  position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; padding: 5px 10px 5px 6px; border-radius: 99px;
  background: rgba(20, 10, 6, .65); backdrop-filter: blur(8px); border: 1px solid var(--line);
}
.tam-fatias svg { display: block; }
.tam-check {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; transform: scale(0); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1);
}
.tam.sel .tam-check { transform: scale(1); }
.tam-nome { font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 1; }
.tam-desc { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.tam-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tam-meta span { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.tam-preco { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.tam-preco b { display: block; font-size: 20px; color: var(--accent-2); font-weight: 800; }

.selos { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.selos span::before { content: '✦'; color: var(--accent-2); margin-right: 6px; }

/* -------------------------------------------------------------- sabores */

.ferramentas {
  position: sticky; top: var(--sticky-top); z-index: 4;
  margin: 0 -16px; padding: 4px 16px 10px;
  background: linear-gradient(to bottom, var(--bg) 82%, transparent);
}
.filtros { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.filtros { padding-right: 78px; }                 /* o botão do carrinho fica por cima, à direita */
.filtros::-webkit-scrollbar { display: none; }
.filtro {
  flex: none; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); transition: all .2s;
}
.filtro.ativo { background: var(--text); color: #1c110a; border-color: var(--text); }

.lista { display: grid; gap: 10px; margin-top: 6px; }
.sabor {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--line);
  transition: transform .25s cubic-bezier(.2, 1.3, .4, 1), background .25s, border-color .25s, box-shadow .3s;
  animation: entrar .4s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 28ms);
}
.sabor:hover { background: var(--surface-2); transform: translateY(-2px); }
.sabor:active { transform: scale(.985); }
.sabor.sel {
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(255, 106, 43, .2), rgba(255, 179, 71, .07));
  box-shadow: 0 10px 30px rgba(255, 90, 20, .18);
}
.sabor.treme { animation: treme .4s; }
@keyframes treme { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

.sabor-img {
  width: 88px; height: 88px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(255, 190, 120, .16), rgba(255, 190, 120, .03));
}
.sabor-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.85); transition: opacity .5s, transform .6s cubic-bezier(.2, 1.3, .4, 1); }
.sabor-img img.ok { opacity: 1; transform: none; }
.sabor:hover .sabor-img img.ok, .sabor.sel .sabor-img img.ok { transform: scale(1.08) rotate(4deg); }
.sabor-img::before {
  content: ''; position: absolute; inset: 10px; border-radius: 50%;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .09) 50%, transparent 70%) 0 0 / 200% 100%;
  animation: brilho 1.3s linear infinite;
}
.sabor-img.pronto::before { display: none; }
@keyframes brilho { to { background-position: -200% 0; } }

.sabor-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sabor-nome { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.selo { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; color: #2a1505; background: var(--accent-2); }
.sabor-ing { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sabor-base { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.preco { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.preco small { font-weight: 700; font-size: 11px; color: var(--accent-2); margin-left: 6px; }
.preco s { font-weight: 600; font-size: 12px; color: var(--muted); margin-right: 6px; }
.preco.com-desconto { color: var(--green); }
.preco small.desc { padding: 1px 6px; border-radius: 99px; color: #12300a; background: var(--green); }
.sabor-acao {
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 99px;
  font-size: 12px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); transition: all .25s;
}
.sabor.sel .sabor-acao { background: var(--accent); border-color: var(--accent); color: #fff; }

.vazio-lista { text-align: center; color: var(--muted); padding: 34px 10px; }

.skeleton { height: 110px; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 200% 100%; animation: brilho 1.2s linear infinite; }

/* ----------------------------------------------------------- finalizar */

.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.cartao + .cartao { margin-top: 10px; }
.cartao-titulo { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 10px; }
.cartao-titulo b { color: var(--accent-2); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 700;
  background: rgba(134, 212, 95, .12); border: 1px solid rgba(134, 212, 95, .35); color: #d9f3cb; transition: all .2s;
}
.chip svg { flex: none; }
.chip.fora { background: rgba(232, 64, 47, .1); border-color: rgba(232, 64, 47, .4); color: #f0a79f; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.chip:active { transform: scale(.94); }

/* cartões com foto ilustrativa: bordas e adicionais */
.fotos-opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.foto-opcao {
  position: relative; display: flex; flex-direction: column; text-align: center; overflow: hidden; border-radius: 18px;
  background: #0a0605; border: 2px solid var(--line); transition: transform .25s cubic-bezier(.2, 1.3, .4, 1), border-color .2s, box-shadow .25s;
}
.foto-opcao:hover { transform: translateY(-3px); }
.foto-opcao.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 43, .25), 0 12px 28px rgba(255, 90, 20, .22); }
.foto-opcao:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.fo-img { display: grid; place-items: center; height: 92px; background: #000; }
.fo-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.foto-opcao:hover .fo-img img, .foto-opcao.sel .fo-img img { transform: scale(1.1); }
.fo-vazio { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border: 1.5px dashed var(--line); border-radius: 99px; }
.fo-nome { font-weight: 800; font-size: 14px; line-height: 1.2; padding: 18px 30px 2px 10px; }
.fo-preco { font-weight: 800; font-size: 13px; color: #2a1505; background: var(--accent-2); border-radius: 99px; padding: 2px 10px; margin: 5px auto 11px; font-variant-numeric: tabular-nums; }
.fo-preco.gratis { background: var(--surface-2); color: var(--muted); }
.fo-check {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; transform: scale(0); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1);
}
.foto-opcao.sel .fo-check { transform: scale(1); }

/* tela inicial: o que vai ser hoje */
.categorias { display: grid; gap: 12px; margin-top: 18px; }
.cat {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 124px; padding: 18px 16px 18px 20px; border-radius: 24px; border: 1.5px solid var(--line);
  background: linear-gradient(160deg, #3a1c0e, #1d100a);
  transition: transform .3s cubic-bezier(.2, 1.3, .4, 1), border-color .25s, box-shadow .3s;
  animation: entrar .5s cubic-bezier(.2, .9, .3, 1) both;
}
.cat:nth-child(2) { animation-delay: .08s; }
.cat:nth-child(3) { animation-delay: .16s; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s; }
.cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(14, 7, 4, .95) 30%, rgba(14, 7, 4, .55) 62%, rgba(14, 7, 4, .15)); }
.cat:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(255, 90, 20, .22); }
.cat:hover img { transform: scale(1.08); }
.cat-txt { flex: 1; min-width: 0; display: block; }
.cat-nome { display: block; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; }
.cat-desc { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.cat-preco { display: inline-block; margin-top: 9px; font-size: 13px; font-weight: 800; color: #2a1505; background: var(--accent-2); border-radius: 99px; padding: 3px 11px; }
.cat-seta { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(120deg, var(--accent), var(--red)); box-shadow: 0 8px 20px rgba(255, 80, 20, .45); transition: transform .3s; }
.cat:hover .cat-seta { transform: translateX(4px); }

/* linha de produto com quantidade: esfihas e bebidas */
.produto {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 12px 14px 16px;
  border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); transition: border-color .25s, background .25s;
}
.produto.tem { border-color: var(--accent); background: linear-gradient(120deg, rgba(255, 106, 43, .2), rgba(255, 179, 71, .07)); }
.prod-img { display: block; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: #000; flex: none; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* bebidas: garrafa inteira sobre fundo branco */
.prod-img.garrafa { background: #fff; }
.prod-img.garrafa img { object-fit: contain; padding: 3px; }
.prod-txt { display: block; min-width: 0; }
.prod-det { display: block; color: var(--muted); font-size: 12.5px; }
.prod-txt .preco { display: block; margin-top: 4px; color: var(--accent-2); }

/* carrinho */
.folha-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.folha.carrinho h2 { text-align: left; }
.fechar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.aviso-ok { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; padding: 9px 12px; border-radius: 12px; font-weight: 700; font-size: 13.5px; color: #d9f3cb; background: rgba(134, 212, 95, .14); border: 1px solid rgba(134, 212, 95, .35); }
.itens { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 10px; }
.item { padding-left: 14px !important; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.item .prod-img { width: 64px; height: 64px; border-radius: 14px; }
.item-txt { display: block; min-width: 0; font-size: 13px; }
.item-txt strong { display: block; font-size: 15px; }
.item-linha { display: block; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.item-base { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.item-total { color: var(--accent-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.qtd.mini button { width: 32px; height: 34px; font-size: 18px; }
.item-remover { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #f0a79f; background: rgba(232, 64, 47, .1); border: 1px solid rgba(232, 64, 47, .35); transition: background .2s, color .2s; }
.item-remover:hover { background: var(--red); color: #fff; }

textarea {
  width: 100%; min-height: 92px; resize: vertical; padding: 13px 14px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px;
}
textarea::placeholder { color: var(--muted); }
.dica { color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* ----------------------------------------------------------------- barra */

.bar {
  position: sticky; bottom: 0; z-index: 6; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  background: rgba(22, 13, 8, .82); backdrop-filter: blur(18px) saturate(1.3); border-top: 1px solid var(--line);
}
.bar-total { flex: 1; min-width: 0; }
.bar-total small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-total strong { font-family: var(--font-display); font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; display: inline-block; }
.bar-total strong.pulsa { animation: pulsa .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pulsa { 40% { transform: scale(1.14); color: var(--accent-2); } }

.qtd { display: flex; align-items: center; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.qtd button { width: 38px; height: 44px; font-size: 20px; font-weight: 700; }
.qtd button:disabled { opacity: .35; }
.qtd span { min-width: 18px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.btn {
  flex: none; height: 52px; padding: 0 22px; border-radius: 99px; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--red)); box-shadow: 0 10px 28px rgba(255, 80, 20, .45);
  display: inline-flex; align-items: center; gap: 8px; transition: transform .2s, box-shadow .2s, opacity .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 80, 20, .55); }
.btn:active { transform: scale(.97); }
.btn:disabled { filter: grayscale(.8); opacity: .5; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.fantasma { background: var(--surface-2); box-shadow: none; border: 1px solid var(--line); }
.btn .giro { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: giro .7s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* --------------------------------------------------------- toast / modal */

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 30; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 13.5px; text-align: center;
  background: #fdf2e4; color: #2a1608; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: all .35s cubic-bezier(.2, 1.3, .4, 1);
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: end center; background: rgba(8, 4, 2, .7); backdrop-filter: blur(8px); animation: surgir .3s both; }
@keyframes surgir { from { opacity: 0; } }
.folha {
  width: min(100%, 520px); max-height: 92dvh; overflow: auto; padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #2a160c, #180e08); border: 1px solid var(--line); border-radius: 28px 28px 0 0;
  animation: sobe .5s cubic-bezier(.2, 1.2, .3, 1) both;
}
@keyframes sobe { from { transform: translateY(60%); opacity: 0; } }
.folha-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--green); color: #12300a; animation: pulsa .6s .2s cubic-bezier(.2, 1.6, .4, 1) both; }
.folha h2 { text-align: center; font-size: 24px; }
.folha .sub { text-align: center; }
.resumo { margin-top: 18px; display: grid; gap: 9px; }
.resumo div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.resumo dt { color: var(--muted); flex: none; }
.resumo dd { font-weight: 700; text-align: right; }
.resumo .total { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; font-size: 17px; }
.resumo .total dd { color: var(--accent-2); font-family: var(--font-display); font-size: 22px; }
.folha details { margin-top: 16px; font-size: 12px; color: var(--muted); }
.folha summary { cursor: pointer; font-weight: 700; }
.folha pre { margin-top: 8px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); overflow: auto; color: #e9d6c2; font-size: 11.5px; }
.folha-acoes { display: flex; gap: 10px; margin-top: 20px; }
.folha-acoes .btn { flex: 1; justify-content: center; padding: 0 12px; }

/* ============================================================== DESKTOP */

@media (min-width: 980px) {
  :root { --stage-h: 100dvh; --sticky-top: 0px; }
  .app { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr); }
  .stage { position: sticky; top: 0; }               /* no computador a foto é a coluna da esquerda */
  .carrinho-btn { position: absolute; }
  .stage::after { inset: 0 0 0 auto; width: 70px; height: auto; background: linear-gradient(to right, transparent, var(--bg)); }
  .brand { top: 26px; left: 30px; }
  .brand-logo { height: 104px; }
  .carrinho-btn { top: 28px; right: 64px; width: 58px; height: 58px; }
  .stage .carrinho-btn.som-btn { right: 200px; }
  .carrinho-btn.pedidos-btn { right: 132px; }       /* mais específico que a regra do celular, que vem depois no arquivo */
  .stage-extras { left: 30px; top: 140px; }
  .stage-extras span { font-size: 12.5px; }
  .titulos { bottom: 46px; padding-right: 40px; }
  .panel { min-height: 100dvh; padding: 22px 34px 0; max-width: 680px; margin: 0; }
  .ferramentas, .bar, .topo { margin-inline: -34px; padding-inline: 34px; }
  .filtros { margin-inline: 0; padding-inline: 0; }
  .modal { place-items: center; }
  .folha { border-radius: 28px; }
}
@media (min-width: 1500px) {
  .lista { grid-template-columns: 1fr 1fr; }
  .panel { max-width: 860px; }
}
@media (max-width: 380px) {
  .tam-nome { font-size: 23px; }
  .btn { padding: 0 16px; }
}
@media (max-height: 640px) and (max-width: 979px) { :root { --stage-h: 36dvh; } }

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

/* botão "meus pedidos", ao lado do carrinho */
.pedidos-btn { right: 74px; }
.carrinho-btn.som-btn { right: 134px; }

/* ----------------------------------------------- finalização da compra */
.folha.checkout h2, .folha.checkout .sub.esq { text-align: left; }
.folha.checkout .folha-topo { gap: 10px; }
.folha.checkout .folha-topo h2 { flex: 1; }
.modalidades { display: grid; gap: 10px; margin-top: 12px; }
.modalidade {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: 18px;
  background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s, background .2s, transform .2s;
}
.modalidade:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.modalidade > span:nth-child(2) { flex: 1; }
.modalidade strong, .geo strong { display: block; font-size: 15.5px; }
.modalidade small, .geo small { display: block; color: var(--muted); font-size: 12.5px; }
.mod-ico { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--accent-2), var(--red)); }

.geo { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.geo > span:last-child { flex: 1; }
.geo.ok { color: #d9f3cb; background: rgba(134, 212, 95, .13); border-color: rgba(134, 212, 95, .4); align-items: center; }
.geo.erro { background: rgba(232, 64, 47, .1); border-color: rgba(232, 64, 47, .45); }
.geo ol { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.5; }
.geo .btn { margin-top: 12px; height: 44px; }
.giro.escuro { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--accent-2); animation: giro .7s linear infinite; }

.bloco { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; transition: opacity .25s; }
.bloco:disabled { opacity: .35; pointer-events: none; }
.bloco h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; }
.form { display: grid; gap: 10px; margin-top: 12px; }
.linha { display: flex; gap: 10px; align-items: flex-end; }
.linha .campo:first-child { flex: 1; }
.linha .campo + .campo { width: 96px; }
.campo { display: block; min-width: 0; }
.campo span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.campo input, .campo select, .campo textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line);
}
.campo input:focus, .campo select:focus { border-color: var(--accent); outline: none; }
.campo select option { color: #1b100a; }

.enderecos { display: grid; gap: 8px; }
.endereco { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); }
.endereco.sel { border-color: var(--accent); background: linear-gradient(120deg, rgba(255, 106, 43, .18), rgba(255, 179, 71, .06)); }
.end-sel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px; }
.end-sel strong { display: block; }
.end-sel small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.marca { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; }
.marca::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s; }
.endereco.sel .marca { border-color: var(--accent); background: var(--accent); }
.endereco.sel .marca::after { transform: scale(1); }
.link-btn { margin-top: 12px; font-weight: 800; font-size: 14px; color: var(--accent-2); }
.link-btn:hover { text-decoration: underline; }

.geo .link-btn { margin: 0; flex: none; align-self: center; }
/* login com Google */
.login-caixa { display: grid; gap: 10px; margin-top: 12px; padding: 18px; border-radius: 18px; text-align: center; background: var(--surface); border: 1px solid var(--line); }
.login-caixa .sub { margin: 0 0 4px; }
.login-caixa .btn { justify-content: center; height: 52px; }
.btn.google { gap: 10px; color: #1f1f1f; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); text-decoration: none; }
.btn.google:hover { background: #f1f1f1; }
.conta-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; }
.conta-linha .link-btn { margin: 0; }
/* forma de pagamento */
.ck-titulo { font-family: var(--font-display); font-size: 18px; margin: 18px 0 10px; }
.formas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.forma { height: 50px; border-radius: 14px; font-weight: 800; font-size: 14.5px; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s, background .2s, transform .2s; }
.forma:hover { transform: translateY(-2px); }
.forma.sel { border-color: var(--accent); background: linear-gradient(120deg, rgba(255, 106, 43, .3), rgba(255, 179, 71, .1)); box-shadow: 0 0 0 3px rgba(255, 106, 43, .2); }

/* ------------------------------------------------------- meus pedidos */
/* minmax(0, 1fr) e min-width: 0: a linha de itens encurta com "…" em vez de alargar o cartão (e criar rolagem para o lado) */
.pedidos { list-style: none; padding: 0; margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pedido, .pedido-abre, .pedido-topo, .pedido-resumo { min-width: 0; }
.pedido-abre { grid-template-columns: minmax(0, 1fr); }
#pedidos-corpo { min-width: 0; overflow-x: hidden; }
.pedido { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.pedido.cancelado { opacity: .6; }
.pedido > small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pedido-abre { display: grid; gap: 4px; width: 100%; text-align: left; color: inherit; }
.pedido-topo { display: flex; align-items: center; gap: 10px; }
.pedido-topo strong { margin-right: auto; }
.pedido-resumo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; }
.pedido-resumo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pedido-resumo b { flex: none; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.pedido-corpo > small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pedido.fechado .pedido-corpo, .pedido.aberto .pedido-resumo { display: none; }
.seta-ped { flex: none; color: var(--muted); transition: transform .25s; }
.pedido.aberto .seta-ped { transform: rotate(180deg); }
.estado { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; white-space: nowrap; color: #2a1505; background: var(--accent-2); }
.estado.e-espera { background: #f0d9c2; }
.estado.e-fim { background: var(--green); color: #12300a; }
.estado.e-cancelado { background: var(--red); color: #fff; }
/* abas Entrega · Retirada */
.abas-ped { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 12px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.abas-ped button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.abas-ped button.ativa { color: #fff; background: linear-gradient(120deg, var(--accent), var(--red)); box-shadow: 0 8px 20px rgba(255, 90, 20, .3); }
.abas-ped b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-size: 11.5px; background: rgba(255, 255, 255, .18); }
.trilha { list-style: none; padding: 0; margin: 14px 0 4px; display: flex; }
.trilha li { flex: 1; position: relative; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.trilha i { display: block; width: 14px; height: 14px; margin: 0 auto 6px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); position: relative; z-index: 1; }
.trilha li::before { content: ''; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.trilha li:first-child::before { display: none; }
.trilha .feita i { background: var(--green); border-color: var(--green); }
.trilha .feita::before, .trilha .atual::before { background: var(--green); }
.trilha .atual { color: var(--text); }
.trilha .atual i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 0 rgba(255, 106, 43, .6); animation: pisca-etapa 1.6s infinite; }
@keyframes pisca-etapa { 70% { box-shadow: 0 0 0 9px rgba(255, 106, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, 0); } }
.pedido-itens { list-style: none; padding: 10px 0 0; margin: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 13.5px; }
.pedido-itens li { display: flex; justify-content: space-between; gap: 12px; }
.pedido-itens small { display: block; color: var(--muted); font-size: 12px; }
.pedido-itens b, .pedido-total b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pedido-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 800; }
.pedido-total b { color: var(--accent-2); }

/* barras de rolagem no estilo do site (em vez da nativa do navegador) */
* { scrollbar-width: thin; scrollbar-color: #ff6a2b rgba(255, 234, 210, .06); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 234, 210, .05); border-radius: 99px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffb347, #ff6a2b 55%, #e8402f); border-radius: 99px; border: 2px solid #130b07; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffc56e, #ff7d44 55%, #f0503f); }
::-webkit-scrollbar-corner { background: transparent; }
