/* Quintal do Pastel — cardápio 1.1.0 (tema CLARO escolhido pelo usuário em 19/11; o escuro fica de reserva: data-tema="escuro")
   Topo compacto da marca + lista limpa. Dois temas pelas variáveis abaixo:
   escuro (padrão, como o vídeo) e claro (<html data-tema="claro">). */
:root {
  --fundo: #170d06; --fundo2: #24160b; --card: #2b1a0d; --card2: #34200f;
  --texto: #fff7ea; --suave: #cdb391; --linha: rgba(255,255,255,.08);
  --destaque: #e8311f; --destaque2: #ffc72c; --preco: #ffc72c;
  --verde: #36d27a; --verde-txt: #7ff0ad;
  --sombra: 0 14px 32px rgba(0,0,0,.4);
  --topo1: #2e1b0c; --topo2: #170d06;
  --mont: "Montserrat", system-ui, sans-serif; --inter: "Inter", system-ui, sans-serif;
  --grad: linear-gradient(135deg, var(--destaque), #ff7a1a);
}
html[data-tema="claro"] {
  --fundo: #f6efe4; --fundo2: #ece2d3; --card: #ffffff; --card2: #fbf7f1;
  --texto: #2a1a0e; --suave: #7d6650; --linha: rgba(42,26,14,.09);
  --preco: #c8321b; --verde-txt: #138a4a;
  --sombra: 0 10px 26px rgba(70,40,10,.12);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fundo); transition: background-color .3s, color .3s; color: var(--texto); font-family: var(--inter); }
body { overflow-x: hidden; }
body.travado { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; }
img { display: block; }
.hidden { display: none !important; }
#app { max-width: 560px; margin: 0 auto; padding-bottom: 110px; }

/* ---------- topo compacto ---------- */
.topo { position: relative; }
.faixa { position: relative; height: 96px; overflow: hidden;
  background:
    radial-gradient(220px 120px at 85% 0%, rgba(255,199,44,.35), transparent 70%),
    radial-gradient(260px 140px at 10% 120%, rgba(232,49,31,.45), transparent 70%),
    linear-gradient(160deg, var(--topo1), var(--topo2)); }
/* varal de luzes, como na logo */
.faixa-luzes { position: absolute; left: -10px; right: -10px; top: 10px; height: 34px;
  background: radial-gradient(circle at 50% 70%, #ffe08a 0 3px, rgba(255,199,44,.55) 4px, transparent 9px) 0 0 / 38px 34px repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  animation: pisca 3s ease-in-out infinite alternate; }
.faixa-luzes::before { content: ""; position: absolute; inset: 0 0 auto; height: 20px; border-bottom: 1.5px solid rgba(255,230,170,.25); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
@keyframes pisca { from { opacity: .65; } to { opacity: 1; } }
.heroi-botoes { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 14px; display: flex; gap: 8px; }
.bolinha { width: 36px; height: 36px; border-radius: 18px; background: rgba(0,0,0,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 1px solid rgba(255,255,255,.22); text-decoration: none; }
/* logo invade a faixa; o nome fica em branco dentro da faixa e o resto logo abaixo dela */
.loja { display: flex; gap: 12px; align-items: flex-start; padding: 0 16px; margin-top: -42px; position: relative; }
.logo-anel { width: 84px; height: 84px; border-radius: 42px; padding: 3px; flex-shrink: 0; background: conic-gradient(var(--destaque), var(--destaque2), var(--destaque)); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.logo-anel img { width: 78px; height: 78px; border-radius: 39px; object-fit: cover; background: #120a05; }
.loja-txt { min-width: 0; padding-top: 9px; }
.loja-txt h1 { font-family: var(--mont); font-weight: 900; font-size: 21px; line-height: 1.1; margin: 0; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-txt p { font-size: 12.5px; color: var(--suave); margin: 10px 0 0; }
.status-loja { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--verde-txt); }
.status-loja i { width: 8px; height: 8px; border-radius: 4px; background: var(--verde); animation: pulso 1.6s infinite; }
.status-loja.fechada { color: #ff8f80; } .status-loja.fechada i { background: var(--destaque); animation: none; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(54,210,122,.5); } 100% { box-shadow: 0 0 0 9px rgba(54,210,122,0); } }
.infos { display: flex; gap: 6px; padding: 12px 16px 0; overflow-x: auto; scrollbar-width: none; }
.infos::-webkit-scrollbar { display: none; }
.infos span { flex-shrink: 0; font-size: 12px; color: var(--suave); background: var(--fundo2); border: 1px solid var(--linha); border-radius: 999px; padding: 6px 10px; }
.infos b { color: var(--texto); font-weight: 700; }

.aviso { margin: 12px 14px 0; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.35; background: rgba(232,49,31,.14); border: 1px solid rgba(232,49,31,.45); }
.barra-acomp { display: flex; align-items: center; gap: 10px; width: calc(100% - 28px); margin: 12px 14px 0; padding: 12px 14px; border-radius: 16px; background: rgba(54,210,122,.13); border: 1px solid rgba(54,210,122,.5); text-align: left; font-weight: 700; font-size: 14px; }
.barra-acomp em { margin-left: auto; font-style: normal; color: var(--verde-txt); }

/* ---------- busca e chips (grudam no topo) ---------- */
.grudado { position: sticky; top: 0; z-index: 20; background: var(--fundo); padding: 10px 0 8px; margin-top: 4px; box-shadow: 0 10px 14px -14px rgba(0,0,0,.6); }
.busca { display: flex; align-items: center; gap: 10px; margin: 0 14px; height: 42px; border-radius: 12px; background: var(--fundo2); border: 1px solid var(--linha); padding: 0 12px; color: var(--suave); font-size: 15px; }
.busca input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--texto); font-size: 15px; }
.busca input::placeholder { color: var(--suave); }
.chips { display: flex; gap: 7px; padding: 10px 14px 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; font-weight: 700; font-size: 13px; padding: 8px 13px; border-radius: 999px; background: var(--fundo2); border: 1px solid var(--linha); white-space: nowrap; transition: transform .15s, background .2s; }
.chip:active { transform: scale(.92); }
.chip.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(232,49,31,.35); }

/* ---------- destaque da casa ---------- */
#destaqueCasa { padding: 6px 14px 0; }
.dest-grande { position: relative; display: block; width: 100%; text-align: left; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--sombra); border: 1px solid var(--linha); animation: aparece .5s ease both .1s; }
@keyframes aparece { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.dest-foto { position: relative; height: 178px; overflow: hidden; }
.dest-foto > img { width: 100%; height: 100%; object-fit: cover; animation: kb 8s ease-out both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.dest-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.1) 30%, rgba(0,0,0,.8)); }
.selo { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; color: #fff; background: var(--destaque); border-radius: 999px; padding: 5px 10px; box-shadow: 0 6px 14px rgba(232,49,31,.5); }
.selo.dir { left: auto; right: 10px; background: var(--destaque2); color: #3a1a00; box-shadow: none; }
.dest-nome { position: absolute; left: 14px; right: 14px; bottom: 8px; z-index: 1; font-family: var(--mont); font-weight: 900; font-size: 24px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.dest-corpo { padding: 10px 14px 14px; }
.dest-corpo p { font-size: 13px; color: var(--suave); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dest-pe { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.dest-pe b { font-family: var(--mont); font-weight: 900; font-size: 22px; color: var(--preco); }
.btn-grad { position: relative; overflow: hidden; font-weight: 800; font-size: 14px; color: #fff; background: var(--grad); border-radius: 12px; padding: 10px 16px; box-shadow: 0 8px 18px rgba(232,49,31,.4); }
.brilho { position: absolute; top: 0; bottom: 0; width: 70px; left: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: brilho 2.8s infinite; pointer-events: none; }
@keyframes brilho { 0% { left: -60%; } 45%, 100% { left: 160%; } }

/* ---------- carrossel ---------- */
.titulo-bloco { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 16px 10px; }
.titulo-bloco h2 { font-family: var(--mont); font-weight: 900; font-size: 18px; margin: 0; }
.titulo-bloco span { font-size: 12px; font-weight: 700; color: var(--suave); }
.carrossel { display: flex; gap: 10px; padding: 0 14px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrossel::-webkit-scrollbar { display: none; }
.mini { flex-shrink: 0; width: 150px; scroll-snap-align: start; text-align: left; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--linha); box-shadow: var(--sombra); animation: sobe .5s ease both; }
@keyframes sobe { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.mini-foto { position: relative; height: 112px; }
.mini-foto > img, .mini-foto > .sem-foto { width: 100%; height: 100%; object-fit: cover; }
.mini-foto .selo { top: 7px; left: 7px; font-size: 9.5px; padding: 4px 7px; }
.mini-corpo { padding: 9px 11px 11px; }
.mini-corpo strong { display: block; font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-pe { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.mini-pe b { font-weight: 900; font-size: 14.5px; color: var(--preco); }
.mais { width: 28px; height: 28px; border-radius: 14px; background: var(--destaque); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; line-height: 1; flex-shrink: 0; box-shadow: 0 4px 10px rgba(232,49,31,.35); }
/* produto sem foto: logo da casa sobre o degradê da marca */
.sem-foto { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #5a3416, #24130a); }
.sem-foto img { width: 62%; height: auto; opacity: .9; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }

/* ---------- seções ---------- */
.secao { padding: 0 14px; scroll-margin-top: 112px; }
.secao-cab { display: flex; align-items: baseline; gap: 8px; margin: 24px 2px 10px; }
.secao-cab h3 { margin: 0; font-family: var(--mont); font-weight: 900; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.secao-cab h3 span { font-size: 18px; }
.secao-cab small { font-size: 12px; color: var(--suave); font-weight: 600; }
.lista { background: var(--card); border: 1px solid var(--linha); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); }
.item { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 13px 14px; min-width: 0; transition: background .15s; }
.item + .item { border-top: 1px solid var(--linha); }
.item:active { background: var(--card2); }
.item-txt { flex: 1; min-width: 0; }
.item-txt strong { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; }
.item-txt p { font-size: 12.5px; color: var(--suave); margin: 3px 0 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-txt b { display: block; font-weight: 800; font-size: 14.5px; color: var(--preco); margin-top: 5px; }
.item-foto { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.item.com-foto .mais { margin-left: -26px; align-self: flex-end; border: 2px solid var(--card); }
.tag { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--destaque); background: rgba(232,49,31,.12); border-radius: 6px; padding: 2px 6px; margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
.item.esgotado { opacity: .45; }
.item.esgotado b::after { content: " · Esgotado"; color: var(--suave); font-weight: 700; }
.carregando, .nada { text-align: center; color: var(--suave); padding: 40px 20px; }

.rodape { text-align: center; padding: 36px 20px 20px; color: var(--suave); font-size: 13px; }
.rodape img { width: 92px; margin: 0 auto 10px; }
.rodape p { margin: 4px 0; } .rodape a { color: var(--preco); text-decoration: none; font-weight: 700; }
.rodape small { display: block; margin-top: 14px; opacity: .7; }

/* ---------- barra da sacola ---------- */
.barra-sacola { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(532px, calc(100% - 28px)); height: 56px; z-index: 30; border-radius: 16px; background: var(--grad); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 12px; padding: 0 16px; box-shadow: 0 14px 30px rgba(232,49,31,.4); animation: sobeBarra .35s ease both; }
@keyframes sobeBarra { from { transform: translate(-50%, 90px); } to { transform: translate(-50%, 0); } }
.barra-sacola b { margin-left: auto; font-size: 17px; }
.bs-qtd { min-width: 28px; height: 28px; border-radius: 14px; background: rgba(0,0,0,.22); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.barra-sacola.pula { animation: pula .4s ease; }
@keyframes pula { 40% { transform: translateX(-50%) scale(1.06); } }

/* ---------- telas cheias ---------- */
.tela { position: fixed; inset: 0; z-index: 50; background: var(--fundo); display: flex; flex-direction: column; transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.9,.3,1); visibility: hidden; }
.tela.aberta { transform: none; visibility: visible; }
.tela > * { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
.tela-rolagem { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tela-rolagem.pad { padding: 12px 14px 0; }
.cab-tela { display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--linha); }
.cab-tela h2 { flex: 1; margin: 0; font-family: var(--mont); font-weight: 900; font-size: 19px; }
.bolinha-s { width: 36px; height: 36px; border-radius: 18px; background: var(--fundo2); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.sacola-ico { position: relative; width: 36px; height: 36px; border-radius: 18px; background: var(--fundo2); display: flex; align-items: center; justify-content: center; }
.sacola-ico i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--destaque); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; }

/* produto */
.prod-foto { position: relative; height: 290px; overflow: hidden; }
.prod-foto > img { width: 100%; height: 100%; object-fit: cover; }
.tela.aberta .prod-foto > img { animation: kbProd 6s ease-out both; }
@keyframes kbProd { from { transform: scale(1.15); } to { transform: scale(1.02); } }
.prod-foto img.logo-cheia { object-fit: contain; padding: 34px 70px 76px; background: radial-gradient(circle at 50% 40%, #5a3416, #170d06); }
.prod-sombra { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, var(--fundo) 100%); }
.fechar { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; }
.prod-cab { margin-top: -36px; position: relative; padding: 0 18px; }
.prod-titulo { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.prod-titulo h2 { margin: 0; font-family: var(--mont); font-weight: 900; font-size: 25px; line-height: 1.08; }
.prod-titulo b { font-family: var(--mont); font-weight: 900; font-size: 21px; color: var(--preco); white-space: nowrap; }
.prod-cab p { font-size: 13.5px; color: var(--suave); margin: 8px 0 0; line-height: 1.45; }
.grupo { margin: 18px 14px 0; }
.grupo-cab { display: flex; justify-content: space-between; align-items: center; background: var(--fundo2); border-radius: 14px; padding: 10px 14px; }
.grupo-cab strong { display: block; font-size: 15px; font-weight: 800; }
.grupo-cab small { font-size: 11.5px; color: var(--suave); }
.etiqueta { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 5px 10px; background: var(--card); border: 1px solid var(--linha); }
.etiqueta.ok { background: var(--verde); color: #06291a; border-color: transparent; }
.opcoes { display: grid; gap: 8px; margin-top: 10px; }
.opcao { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--card); border: 2px solid var(--linha); text-align: left; transition: transform .12s, border-color .12s, background .12s; }
.opcao:active { transform: scale(.98); }
.opcao .marca { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--suave); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.opcao.caixa .marca { border-radius: 6px; }
.opcao .marca::after { content: ""; width: 12px; height: 12px; border-radius: 6px; background: var(--destaque); transform: scale(0); transition: transform .15s; }
.opcao.caixa .marca::after { border-radius: 3px; }
.opcao.on { background: rgba(232,49,31,.1); border-color: var(--destaque); }
.opcao.on .marca { border-color: var(--destaque); }
.opcao.on .marca::after { transform: scale(1); }
.opcao span { flex: 1; font-weight: 700; font-size: 14.5px; }
.opcao em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--preco); }
.obs { display: block; margin: 16px 14px 0; border-radius: 14px; padding: 10px 14px; background: var(--fundo2); border: 1px solid var(--linha); }
.obs:focus-within { border-color: var(--destaque2); }
.obs span { font-size: 11.5px; font-weight: 700; color: var(--suave); }
.obs textarea { display: block; width: 100%; margin-top: 4px; background: none; border: 0; outline: 0; resize: none; color: var(--texto); font-size: 15px; font-weight: 600; }
.barra-add { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--fundo) 70%, transparent); display: flex; gap: 10px; }
.qtd { height: 54px; border-radius: 16px; background: var(--fundo2); border: 1px solid var(--linha); display: flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 800; font-size: 18px; }
.qtd button { width: 36px; height: 44px; font-size: 22px; font-weight: 800; color: var(--destaque); }
.qtd button:first-child { color: var(--suave); }
.qtd b { min-width: 20px; text-align: center; }
.btn-add { position: relative; overflow: hidden; flex: 1; height: 54px; border-radius: 16px; color: #fff; font-weight: 800; font-size: 16px; background: var(--grad); box-shadow: 0 12px 26px rgba(232,49,31,.35); transition: transform .12s; }
.btn-add:active { transform: scale(.96); }
.btn-add.bloq { background: var(--fundo2); box-shadow: none; color: var(--suave); }
.btn-add.bloq .brilho { display: none; }
.btn-add.feito { background: #25a244; box-shadow: none; }

/* sacola */
.card { background: var(--card); border: 1px solid var(--linha); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.rotulo { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--suave); margin-bottom: 8px; }
.linha-sacola { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.linha-sacola + .linha-sacola { border-top: 1px solid var(--linha); }
.linha-sacola .item-foto { width: 48px; height: 48px; border-radius: 12px; }
.ls-txt { flex: 1; min-width: 0; }
.ls-txt strong { display: block; font-weight: 800; font-size: 14px; }
.ls-txt strong i { font-style: normal; color: var(--preco); }
.ls-txt small { display: block; font-size: 11.5px; color: var(--suave); margin-top: 2px; line-height: 1.3; }
.ls-txt b { display: block; font-size: 13.5px; margin-top: 4px; }
.qtd-mini { display: flex; align-items: center; gap: 2px; background: var(--fundo2); border-radius: 12px; }
.qtd-mini button { width: 30px; height: 32px; font-size: 18px; font-weight: 800; color: var(--destaque); }
.qtd-mini b { min-width: 16px; text-align: center; font-size: 14px; }
.vazio { text-align: center; color: var(--suave); padding: 20px 0; }
.link-mais { display: block; width: 100%; margin: -2px 0 12px; padding: 8px; color: var(--destaque); font-weight: 800; font-size: 14px; }
.pilulas { display: flex; gap: 8px; }
.pilulas button { flex: 1; padding: 12px 6px; border-radius: 12px; background: var(--fundo2); border: 1px solid var(--linha); font-weight: 800; font-size: 13.5px; transition: transform .12s; }
.pilulas button:active { transform: scale(.95); }
.pilulas button.on { background: var(--verde); border-color: transparent; color: #06291a; box-shadow: 0 8px 18px rgba(54,210,122,.3); }
.pilulas button:disabled { opacity: .35; }
.card input:not([type=checkbox]) { display: block; width: 100%; margin-top: 8px; height: 46px; border-radius: 12px; border: 1px solid var(--linha); background: var(--fundo2); color: var(--texto); padding: 0 12px; font-size: 15px; outline: 0; }
.card input:focus { border-color: var(--destaque2); }
.card input.erro { border-color: var(--destaque); background: rgba(232,49,31,.1); }
.card input::placeholder { color: var(--suave); opacity: .8; }
.duas { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.end-topo { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.end-topo .rotulo { margin: 0; }
.end-tempo { font-size: 13px; color: var(--verde-txt); font-weight: 700; margin-top: 3px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--verde); }
.mini-aviso { font-size: 12.5px; color: #ff8f80; margin: 8px 0 0; }
.pix { margin-top: 12px; border-radius: 14px; padding: 12px; background: rgba(54,210,122,.1); border: 1px dashed rgba(54,210,122,.6); }
.pix .chave { font-family: ui-monospace, Consolas, monospace; font-size: 14px; font-weight: 700; word-break: break-all; margin: 4px 0 10px; }
.pix button { width: 100%; padding: 11px; border-radius: 12px; background: var(--verde); color: #06291a; font-weight: 800; }
.pix-obs { font-size: 12px; color: #d9a400; margin-top: 8px; line-height: 1.35; }
.resumo div:not(.rotulo) { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--suave); margin-top: 6px; }
.resumo div span:last-child { color: var(--texto); }
.resumo hr { border: 0; height: 1px; background: var(--linha); margin: 10px 0; }
.resumo .total { font-family: var(--mont); font-weight: 900; font-size: 20px; color: var(--texto) !important; }
.resumo .total b { color: var(--preco); }
.barra-fim { padding: 10px 14px max(16px, env(safe-area-inset-bottom)); background: var(--fundo); }
.btn-pedido { position: relative; overflow: hidden; width: 100%; height: 56px; border-radius: 16px; background: linear-gradient(135deg, #21b552, #36d27a); color: #fff; font-weight: 900; font-size: 17px; box-shadow: 0 14px 30px rgba(54,210,122,.35); transition: transform .12s; }
.btn-pedido:active { transform: scale(.96); }
.btn-pedido:disabled { opacity: .6; }

/* acompanhamento */
.ac-topo { text-align: center; padding: 10px 0 4px; }
.ac-topo h3 { font-family: var(--mont); font-weight: 900; font-size: 23px; margin: 8px 0 4px; }
.ac-topo p { color: var(--suave); margin: 0; font-size: 14px; }
.ac-ilu { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.ac-ilu .moto { animation: moto 1.2s ease-in-out infinite alternate; }
@keyframes moto { from { transform: translateX(-28px) rotate(-2deg); } to { transform: translateX(28px) rotate(2deg); } }
.ac-ilu .pula { animation: pulaIco 1s ease-in-out infinite; }
@keyframes pulaIco { 50% { transform: translateY(-8px) scale(1.05); } }
.estrada { height: 4px; margin: -10px 30px 10px; background: repeating-linear-gradient(90deg, var(--suave) 0 14px, transparent 14px 26px); opacity: .5; animation: estrada .6s linear infinite; }
@keyframes estrada { to { background-position: -26px 0; } }
.etapas { list-style: none; margin: 0; padding: 4px 0; }
.etapas li { display: flex; gap: 12px; align-items: center; padding: 9px 0; color: var(--suave); font-weight: 700; font-size: 14.5px; }
.etapas li i { width: 26px; height: 26px; border-radius: 13px; background: var(--fundo2); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; flex-shrink: 0; }
.etapas li.feita { color: var(--texto); } .etapas li.feita i { background: var(--verde); color: #06291a; }
.etapas li.atual i { background: var(--grad); color: #fff; box-shadow: 0 0 0 5px rgba(232,49,31,.2); }
.etapas li small { margin-left: auto; font-weight: 600; font-size: 12px; }
.btn-linha { display: block; width: 100%; margin-top: 10px; padding: 13px; border-radius: 14px; border: 1.5px dashed var(--suave); font-weight: 800; font-size: 14px; color: var(--texto); text-align: center; text-decoration: none; }
.btn-linha small { display: block; font-weight: 600; font-size: 11.5px; color: var(--suave); }
.seletor-acomp { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; }
.seletor-acomp button { flex-shrink: 0; padding: 8px 12px; border-radius: 999px; background: var(--fundo2); font-weight: 700; font-size: 13px; }
.seletor-acomp button.on { background: var(--grad); color: #fff; }
.confete { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 80; pointer-events: none; animation: cai 2.6s linear forwards; }
@keyframes cai { to { transform: translateY(110vh) rotate(720deg); } }

.toast { position: fixed; left: 50%; bottom: 90px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 40px); padding: 12px 16px; border-radius: 14px; background: #1c1009f2; color: #fff7ea; border: 1px solid rgba(255,199,44,.4); font-weight: 700; font-size: 14px; text-align: center; transition: .25s; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- modo mesa (QR code da mesa: ?mesa=N) ---------- */
body.modo-mesa .so-delivery { display: none !important; }
.mesa-faixa { position: relative; display: flex; align-items: center; gap: 0; margin: 14px 14px 0; border-radius: 18px; background: var(--card); border: 1px solid var(--linha); box-shadow: var(--sombra); animation: aparece .45s ease both; }
/* recortes de "comanda" nas laterais */
.mesa-faixa::before, .mesa-faixa::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--fundo); border: 1px solid var(--linha); }
.mesa-faixa::before { left: 74px; top: 0; margin-top: -9px; clip-path: inset(50% 0 0 0); }
.mesa-faixa::after { left: 74px; top: 100%; margin-top: -7px; clip-path: inset(0 0 50% 0); }
.mesa-num { width: 82px; flex-shrink: 0; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; border-right: 2px dashed var(--linha); }
.mesa-num small { font-size: 10px; font-weight: 800; letter-spacing: 2.5px; color: var(--destaque); }
.mesa-num b { font-family: var(--mont); font-weight: 900; font-size: 34px; line-height: 1; margin-top: 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mesa-txt { flex: 1; min-width: 0; padding: 12px 14px; }
.mesa-txt strong { display: block; font-family: var(--mont); font-weight: 900; font-size: 15.5px; }
.mesa-txt .mesa-dicas { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.mesa-txt .mesa-dicas span { font-size: 10.5px; font-weight: 700; color: var(--suave); background: var(--fundo2); border-radius: 999px; padding: 4px 7px; white-space: nowrap; }
.mesa-chip { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); border-radius: 999px; padding: 4px 10px; margin-left: 8px; vertical-align: 3px; }
.mesa-lista div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.mesa-lista div + div { border-top: 1px solid var(--linha); }
.mesa-lista small { color: var(--suave); display: block; }

/* pergunta "Você ainda está na Mesa N?" (aba do QR reaberta depois de 4 h) */
.mesa-pergunta { position: fixed; inset: 0; z-index: 100; background: rgba(20,10,4,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.mesa-caixa { width: min(360px, 100%); background: var(--card); color: var(--texto); border-radius: 22px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.4); animation: aparece .3s ease both; }
.mesa-caixa .mesa-num { width: auto; border: 0; padding: 0 0 6px; }
.mesa-caixa h3 { font-family: var(--mont); font-weight: 900; font-size: 20px; margin: 6px 0 6px; }
.mesa-caixa p { font-size: 13.5px; color: var(--suave); margin: 0 0 16px; line-height: 1.4; }
.mesa-caixa .btn-grad { display: block; width: 100%; padding: 13px; font-size: 15px; }
.mesa-caixa .btn-linha { margin-top: 10px; }

/* "+" vira ✓ verde quando o item vai direto para a sacola */
.mais { transition: background .2s, transform .2s; }
.mais.ok { background: var(--verde); color: #06291a; transform: scale(1.15); box-shadow: 0 4px 10px rgba(54,210,122,.4); }

/* chip "Meus pedidos" dentro da faixa da mesa (abre a lista; o total só aparece lá dentro) */
.mesa-txt .mesa-dicas button.mesa-ver { font-size: 10.5px; font-weight: 800; color: #fff; background: var(--grad); border-radius: 999px; padding: 4px 8px; white-space: nowrap; box-shadow: 0 4px 10px rgba(232,49,31,.3); }

/* voltar ao topo: aparece depois de rolar; sobe acima da barra da sacola quando ela aparece */
.btn-topo { position: fixed; right: max(14px, calc(50% - 266px)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 31; width: 46px; height: 46px; border-radius: 23px; background: var(--card); color: var(--destaque); border: 1px solid var(--linha); box-shadow: 0 10px 24px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .25s, transform .25s, bottom .25s; }
.btn-topo.on { opacity: 1; transform: none; pointer-events: auto; }
.btn-topo:active { transform: scale(.9); }
body.com-barra .btn-topo { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 66px); }
body.travado .btn-topo { display: none; }

/* =====================================================================
   1.4.0 — finalização em etapas (região com taxa) + acompanhamento novo
   ===================================================================== */
.passos { display: flex; gap: 6px; padding: 10px 16px 10px; border-bottom: 1px solid var(--linha); }
.passos div { flex: 1; }
.passos i { display: block; height: 4px; border-radius: 2px; background: var(--fundo2); overflow: hidden; }
.passos i b { display: block; height: 100%; width: 0; background: var(--grad); transition: width .35s; }
.passos .ok i b { width: 100%; }
.passos span { display: block; font-size: 10.5px; font-weight: 700; color: var(--suave); margin-top: 5px; white-space: nowrap; }
.passos .ok span { color: var(--texto); }

.bloco { background: var(--card); border: 1px solid var(--linha); border-radius: 18px; padding: 14px; margin-bottom: 12px; box-shadow: var(--sombra); }
.bt { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.bt .n { width: 22px; height: 22px; border-radius: 11px; background: var(--fundo2); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.bt.ok .n { background: var(--verde); color: #06291a; }
.bt strong { font-family: var(--mont); font-weight: 800; font-size: 15px; }
.bt em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--suave); }
body.modo-mesa .bt { margin-bottom: 4px; }

.modos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modo { text-align: left; padding: 12px; border-radius: 14px; border: 2px solid var(--linha); background: var(--card2); transition: border-color .15s, background .15s, transform .12s; }
.modo:active { transform: scale(.97); }
.modo .ic { font-size: 24px; }
.modo strong { display: block; font-weight: 800; font-size: 14.5px; margin-top: 4px; }
.modo small { display: block; font-size: 11.5px; color: var(--suave); margin-top: 2px; line-height: 1.3; }
.modo.on { border-color: var(--destaque); background: rgba(232,49,31,.07); box-shadow: 0 0 0 3px rgba(232,49,31,.1); }
.modo:disabled { opacity: .4; }

.rot { font-size: 11px; font-weight: 800; letter-spacing: .8px; color: var(--suave); margin: 2px 0 8px; text-transform: uppercase; }
.bairros { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.bairro { display: flex; align-items: center; gap: 6px; padding: 10px 11px; border-radius: 12px; background: var(--card2); border: 1.5px solid var(--linha); font-weight: 700; font-size: 13px; text-align: left; min-width: 0; transition: border-color .15s, background .15s; }
.bairro span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bairro small { font-size: 11.5px; font-weight: 800; color: var(--preco); white-space: nowrap; }
.bairro.on { border-color: var(--destaque); background: rgba(232,49,31,.08); }
.bairro.on::before { content: "✓"; width: 16px; height: 16px; border-radius: 8px; background: var(--destaque); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#bairros.erro, .campo.erro input { border-color: var(--destaque) !important; background: rgba(232,49,31,.08); }
.mais-bairros { margin-top: 8px; width: 100%; font-size: 12.5px; font-weight: 800; color: var(--destaque); padding: 6px; }

.campo { position: relative; margin-top: 10px; }
.campo label { position: absolute; left: 12px; top: 7px; font-size: 10.5px; font-weight: 700; color: var(--suave); pointer-events: none; }
.campo input { display: block; width: 100%; height: 52px; border-radius: 12px; border: 1.5px solid var(--linha); background: var(--card2); padding: 18px 12px 4px; font-size: 15px; font-weight: 600; color: var(--texto); outline: 0; }
.campo input:focus { border-color: var(--destaque2); }
.duas-c { display: grid; grid-template-columns: 1.9fr 1fr; gap: 8px; }
.lembrar { margin-top: 10px; font-size: 12px; color: var(--suave); font-weight: 600; }

.salvo { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card2); border: 1.5px solid var(--verde); }
.salvo.neutro { border-color: var(--linha); }
.pino { width: 42px; height: 42px; border-radius: 21px; background: rgba(54,210,122,.15); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.salvo.neutro .pino { background: var(--fundo2); }
.salvo > div { flex: 1; min-width: 0; }
.salvo strong { display: block; font-size: 14px; font-weight: 800; }
.salvo small { display: block; font-size: 12px; color: var(--suave); margin-top: 2px; line-height: 1.35; }
.salvo button { font-size: 12.5px; font-weight: 800; color: var(--destaque); padding: 6px 2px; }

.pags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pag { padding: 12px 4px 10px; border-radius: 14px; border: 2px solid var(--linha); background: var(--card2); font-weight: 800; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .15s, background .15s; }
.pag .ic { font-size: 22px; line-height: 1; }
.pag.on { border-color: var(--destaque); background: rgba(232,49,31,.07); }
.det { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--card2); font-size: 13px; }
.det p { margin: 0; color: var(--suave); line-height: 1.4; }
.det .campo input { background: var(--card); }
.trocos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.trocos button { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--linha); background: var(--card); font-weight: 700; font-size: 12.5px; }
.trocos button.on { border-color: var(--verde); background: rgba(54,210,122,.14); color: var(--verde-txt); }
.troco-txt { margin-top: 8px; font-weight: 700; color: var(--verde-txt); }
.troco-txt:empty { display: none; }
.troco-txt.ruim { color: var(--destaque); }
.pixbox { border: 1.5px dashed rgba(54,210,122,.7); background: rgba(54,210,122,.08); }
.pixbox .rot { margin: 0; }
.pixbox code { display: block; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 14px; margin: 4px 0 8px; color: var(--texto); word-break: break-all; }
.pixbox button { width: 100%; padding: 10px; border-radius: 10px; background: var(--verde); color: #06291a; font-weight: 800; margin-bottom: 8px; }

.resumo2 > div { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--suave); }
.resumo2 > div + div { margin-top: 6px; }
.resumo2 > div span:last-child { color: var(--texto); font-weight: 600; }
.resumo2 .total, .tot.grande { font-family: var(--mont); font-weight: 900; font-size: 19px; color: var(--texto); margin-top: 10px !important; padding-top: 10px; border-top: 1px dashed var(--linha); }
.resumo2 .total b, .tot.grande b { color: var(--preco); }
.seguro { text-align: center; font-size: 11.5px; color: var(--suave); margin: 2px 0 0; }

.barra-fim { position: relative; }
.falta { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--destaque); margin-bottom: 7px; }
.falta:empty { display: none; }
.btn-pedido { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.btn-pedido b { font-weight: 900; }
.btn-pedido.bloq { background: linear-gradient(135deg, #a99a86, #c4b6a2); box-shadow: none; }
.btn-pedido.bloq .brilho { display: none; }
body.modo-mesa .btn-pedido { justify-content: space-between; }

/* ---------- acompanhamento ---------- */
#telaAcomp .tela-rolagem { padding: 0; }
.ac-heroi { position: relative; color: #fff; padding: max(14px, env(safe-area-inset-top)) 16px 26px;
  background:
    radial-gradient(220px 120px at 90% 0%, rgba(255,199,44,.35), transparent 70%),
    radial-gradient(260px 140px at 0% 120%, rgba(232,49,31,.5), transparent 70%),
    linear-gradient(160deg, var(--topo1), var(--topo2)); }
.ac-heroi.ok { background: radial-gradient(260px 140px at 0% 120%, rgba(54,210,122,.45), transparent 70%), linear-gradient(160deg, #1d3a26, #0e1f14); }
.ac-heroi.cancel { background: linear-gradient(160deg, #4a2a22, #22120d); }
.ac-top { display: flex; align-items: center; gap: 10px; }
.ac-voltar { width: 36px; height: 36px; border-radius: 18px; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.ac-top span { font-size: 13px; font-weight: 700; opacity: .85; }
.ac-top b { margin-left: auto; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.14); padding: 5px 10px; border-radius: 999px; }
.ac-seletor { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.ac-seletor button { flex-shrink: 0; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 12px; }
.ac-seletor button.on { background: #fff; color: var(--topo1); }
.ac-heroi .ac-ilu { height: 96px; font-size: 58px; margin-top: 4px; }
.ac-heroi .estrada { margin: -8px 50px 8px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 14px, transparent 14px 26px); opacity: 1; }
.ac-heroi h3 { text-align: center; font-family: var(--mont); font-weight: 900; font-size: 24px; margin: 4px 0; }
.ac-heroi p { text-align: center; margin: 0; font-size: 13.5px; opacity: .85; }
.ac-prev { display: flex; justify-content: center; margin-top: 14px; }
.ac-prev div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 8px 18px; text-align: center; }
.ac-prev small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; opacity: .75; }
.ac-prev strong { font-family: var(--mont); font-size: 20px; font-weight: 900; }
.ac-barra { display: flex; gap: 5px; margin-top: 16px; }
.ac-barra i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.ac-barra i.f { background: var(--destaque2); }
.ac-barra i.a::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; background: var(--destaque2); border-radius: 3px; animation: anda 1.4s ease-in-out infinite; }
@keyframes anda { from { left: -45%; } to { left: 100%; } }
.ac-heroi.ok .ac-barra i { background: var(--verde); }
.ac-corpo { padding: 0 14px 30px; margin-top: -12px; position: relative; }
.ac-etapas { list-style: none; margin: 0; padding: 0; }
.ac-etapas li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.ac-etapas li:last-child { padding-bottom: 0; }
.ac-etapas li::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 2px; width: 2px; background: var(--fundo2); }
.ac-etapas li:last-child::before { display: none; }
.ac-etapas li.f::before { background: var(--verde); }
.ac-etapas .bol { width: 26px; height: 26px; border-radius: 13px; background: var(--fundo2); color: var(--suave); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; }
.ac-etapas li.f .bol { background: var(--verde); color: #06291a; }
.ac-etapas li.a .bol { background: var(--grad); color: #fff; box-shadow: 0 0 0 5px rgba(232,49,31,.15); }
.ac-etapas .tx { flex: 1; padding-top: 3px; }
.ac-etapas strong { display: block; font-size: 14px; color: var(--suave); }
.ac-etapas li.f strong, .ac-etapas li.a strong { color: var(--texto); }
.ac-etapas .tx small { display: block; font-size: 12px; color: var(--suave); margin-top: 1px; }
.ac-etapas time { font-size: 12px; font-weight: 700; color: var(--suave); padding-top: 4px; }
.ac-info { display: flex; gap: 12px; align-items: flex-start; }
.ac-info .pino { background: var(--fundo2); }
.ac-info strong { display: block; font-size: 14px; }
.ac-info small { display: block; font-size: 12.5px; color: var(--suave); margin-top: 2px; line-height: 1.4; }
.ac-info a { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 800; color: var(--destaque); text-decoration: none; }
.ac-itens div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; line-height: 1.35; }
.ac-itens div + div { border-top: 1px solid var(--linha); }
.ac-itens span:last-child { white-space: nowrap; }
.ac-itens i { font-style: normal; font-weight: 800; color: var(--preco); }
.tot { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--suave); margin-top: 6px; }
.tot span:last-child { color: var(--texto); font-weight: 600; }
.ac-pag { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card2); font-size: 13px; font-weight: 700; }
.selo-pag { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: rgba(255,199,44,.25); color: #8a5a00; white-space: nowrap; }
html[data-tema="escuro"] .selo-pag { color: var(--destaque2); }
.bloco.pix { margin-top: 0; }
.ac-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-z { display: block; padding: 14px 8px; border-radius: 14px; font-weight: 800; font-size: 13.5px; text-align: center; text-decoration: none; }
.btn-z.verde { background: #25d366; color: #fff; box-shadow: 0 8px 18px rgba(37,211,102,.3); }
.btn-z.linha { border: 1.5px solid var(--linha); background: var(--card); color: var(--texto); }
.ac-ajuda { text-align: center; font-size: 11.5px; color: var(--suave); margin: 12px 0 0; }
#telaAcomp .pad { padding: 12px 14px 0; }
