/* SGA Menu - cardápio do cliente (mobile-first, padrão iFood).
   A cor da loja comanda: --store (preenchimento), --store-ink (texto em cima), --store-soft (fundo leve).
   Verde de desconto e vermelho de erro nunca mudam com a loja. */
:root {
  --store: #e0452b;
  --store-ink: #ffffff;
  --store-soft: #fde9e4;
  --store-text: #c2391f;      /* cor da loja escurecida para texto em fundo branco */
  --deal: #138a4a;
  --deal-soft: #e3f4ea;
  --mustard: #f2b705;
  --mustard-ink: #3a2c00;
  --night: #2a2522;
  --flour: #f4f1ee;
  --ink: #1d1a18;
  --muted: #6b645f;
  --line: #ece7e2;
  --bg: #ffffff;
  --outside: #f4f1ee;
  --danger: #d93a26;
  --danger-soft: #fdeceA;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(30, 20, 10, .14);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Inter', sans-serif;   /* fonte do próprio celular */
  --bar-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--outside); color: var(--ink); font: 15px/1.45 var(--font); -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--store); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 640px; margin: 0 auto; background: var(--bg); min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--bar-h) + 28px + env(safe-area-inset-bottom, 0px)); }
.boot, .center-msg { padding: 60px 24px; text-align: center; color: var(--muted); }
.center-msg h1 { color: var(--ink); font-size: 22px; margin: 0 0 8px; }

/* ---------- topo da loja ---------- */
.cover { position: relative; aspect-ratio: 16 / 7; max-height: 220px; width: 100%; background: linear-gradient(135deg, var(--store-soft), var(--store)); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.store-head { position: relative; padding: 0 16px 14px; }
.store-logo { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--bg); background: var(--flour); object-fit: cover; margin-top: -36px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.store-logo.empty { display: grid; place-items: center; font-weight: 800; font-size: 26px; color: var(--store-ink); background: var(--store); }
.store-name { font-size: 24px; line-height: 1.15; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.01em; }
.store-desc { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--flour); color: var(--ink); font-weight: 600; }
.meta .open { background: var(--deal-soft); color: var(--deal); }
.meta .closed { background: var(--danger-soft); color: var(--danger); }
.banner { margin: 0 16px 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 14px; }
.banner.info { background: var(--store-soft); color: var(--store-text); }

/* ---------- abas de categoria ---------- */
.chips { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(8px); display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--flour); color: #3d3632; font-weight: 700; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--store); color: var(--store-ink); }
.chip.search { width: 36px; padding: 0; display: grid; place-items: center; }
.search-box { padding: 10px 12px 0; }
.search-box input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); padding: 0 16px; background: var(--flour); }

/* ---------- destaques e lista ---------- */
.section { padding: 18px 0 4px; scroll-margin-top: 64px; }
.section h2 { font-size: 19px; font-weight: 800; margin: 0 16px 4px; }
.section .sec-sub { margin: 0 16px 8px; color: var(--muted); font-size: 13px; }
.featured { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.featured::-webkit-scrollbar { display: none; }
.fcard { flex: none; width: 160px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); text-align: left; padding: 0; }
.fcard .ph { aspect-ratio: 4 / 3; background: var(--flour); }
.fcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.fcard .tx { padding: 8px 10px 10px; }
.fcard b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 19px; min-height: 38px; }

.prod { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; align-items: start; }
.prod.noimg { grid-template-columns: minmax(0, 1fr); }
.prod h3 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod p { margin: 3px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; gap: 8px; align-items: baseline; margin-top: 6px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.price b { font-size: 16px; }
.price s { font-size: 13px; color: #8f8780; }
.price b.deal { color: var(--deal); }
.price small { color: var(--muted); font-size: 12.5px; }
.pimg { position: relative; width: 96px; height: 96px; border-radius: var(--radius); background: var(--flour); }
.pimg img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.selo { position: absolute; left: 6px; top: 6px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--mustard); color: var(--mustard-ink); letter-spacing: .02em; }
.plus { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--store-text); border: 2px solid var(--store); display: grid; place-items: center; font-weight: 800; font-size: 20px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tags span { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--flour); color: var(--muted); }
.prod.sold { opacity: .55; }
.prod.sold .pimg img { filter: grayscale(1); }
.soldtag { color: var(--danger); font-weight: 700; font-size: 13px; }

/* ---------- barra da sacola ---------- */
.bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(640px, 100%); padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 30; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.bar-hint { font-size: 12.5px; color: var(--deal); font-weight: 700; padding: 0 4px 6px; }
.bar-hint.warn { color: var(--store-text); }
.bar button { width: 100%; height: 56px; border-radius: 14px; border: 0; background: var(--store); color: var(--store-ink); display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; box-shadow: var(--shadow); }
.bar .cnt { background: var(--store-ink); color: var(--store); border-radius: 999px; padding: 0 8px; font-size: 13px; margin-right: 8px; }
.bump { animation: bump .3s ease-out; }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.04); } }

/* ---------- janelas de baixo para cima ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(20, 14, 10, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease-out; }
.sheet { width: min(640px, 100%); max-height: 92vh; max-height: 92dvh; background: var(--bg); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: up .22s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 20px; max-height: 88vh; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--flour); display: grid; place-items: center; font-size: 18px; }
.sheet-body { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet-foot { border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; }
.hero { aspect-ratio: 16 / 10; background: var(--flour); position: relative; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .x { position: absolute; right: 10px; top: 10px; background: rgba(255, 255, 255, .92); }
.ptitle { padding: 14px 16px 8px; }
.ptitle h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.ptitle p { margin: 6px 0 0; color: var(--muted); }

.grp { scroll-margin-top: 8px; }
.grp-head { position: sticky; top: 0; z-index: 2; background: var(--flour); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.grp-head > div { flex: 1; min-width: 0; }
.grp-head strong { display: block; font-size: 15px; }
.grp-head small { color: var(--muted); font-size: 13px; }
.req { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: var(--night); color: #fff; white-space: nowrap; }
.req.ok { background: var(--deal-soft); color: var(--deal); }
.req.optional { background: var(--bg); color: var(--muted); }
.grp.flash .grp-head { animation: flash .9s ease-out; }
@keyframes flash { 30% { background: var(--store-soft); } }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.opt .add { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt.off { opacity: .45; }
.radio, .box { display: block; width: 22px; height: 22px; flex: none; border: 2px solid #c9c2bc; }
.radio { border-radius: 50%; }
.box { border-radius: 6px; display: grid; place-items: center; line-height: 1; color: #fff; font-size: 14px; font-weight: 900; }
.radio.on { border: 7px solid var(--store); }
.box.on { background: var(--store); border-color: var(--store); }
.step { display: flex; align-items: center; gap: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.step button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--store); background: var(--bg); color: var(--store-text); font-size: 18px; line-height: 1; display: grid; place-items: center; }
.step button:disabled { opacity: .35; }
.notes { padding: 14px 16px; }
.notes label { font-weight: 700; display: block; margin-bottom: 6px; }
textarea, .field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
textarea { resize: vertical; min-height: 64px; }
.qty { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; font-weight: 800; color: var(--store-text); }
.qty button { width: 32px; height: 40px; border: 0; background: none; color: inherit; font-size: 22px; }
.cta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta > span:last-child { white-space: nowrap; }
.cta.wait { justify-content: center; }
.cta { flex: 1; min-width: 0; min-height: 52px; border-radius: 12px; border: 0; background: var(--store); color: var(--store-ink); display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font-weight: 800; font-size: 15.5px; font-variant-numeric: tabular-nums; gap: 10px; }
.cta.wait { background: var(--night); color: #fff; }
.cta:disabled { opacity: .6; }

/* ---------- sacola e checkout ---------- */
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.line .nm { font-weight: 700; }
.line .op { color: var(--muted); font-size: 13px; }
.line .rt { text-align: right; display: grid; gap: 6px; justify-items: end; font-variant-numeric: tabular-nums; }
.block { padding: 14px 16px; border-bottom: 8px solid var(--flour); }
.block h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.upsell { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.upsell::-webkit-scrollbar { display: none; }
.up { flex: none; width: 120px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 0; text-align: left; overflow: hidden; }
.up .ph { aspect-ratio: 1; background: var(--flour); }
.up .ph img { width: 100%; height: 100%; object-fit: cover; }
.up .tx { padding: 6px 8px 8px; font-size: 13px; }
.up b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; height: 44px; border: 1px dashed var(--muted); border-radius: 10px; padding: 0 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.btn2 { height: 44px; border-radius: 10px; border: 1.5px solid var(--store); background: var(--bg); color: var(--store-text); font-weight: 800; padding: 0 14px; }
.coupon-ok { margin-top: 10px; border: 1.5px dashed var(--deal); background: var(--deal-soft); color: #0f6b39; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; gap: 8px; font-variant-numeric: tabular-nums; }
.coupon-ok button { border: 0; background: none; color: inherit; text-decoration: underline; font-weight: 600; }
.coupon-err { margin-top: 8px; color: var(--danger); font-size: 14px; font-weight: 600; }
.tot { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.tot div { display: flex; justify-content: space-between; }
.tot .disc { color: var(--deal); font-weight: 700; }
.tot .big { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.warn-box { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--store-soft); color: var(--store-text); font-weight: 600; font-size: 14px; }
.sheet-foot { flex-wrap: wrap; }
.foot-note { flex: 1 1 100%; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.foot-note[hidden] { display: none; }
.foot-note.err { background: var(--danger-soft); color: var(--danger); }
.foot-note.warn { background: #fff4e5; color: #9a4b00; }
.err-box { margin: 10px 16px 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 14px; }
.seg { display: flex; gap: 6px; background: var(--flour); padding: 4px; border-radius: 12px; }
.seg button { flex: 1; height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.field { display: grid; gap: 4px; margin-top: 10px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field small { color: var(--muted); font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.payopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); text-align: left; margin-top: 8px; }
.payopt.on { border-color: var(--store); background: var(--store-soft); }
.payopt b { display: block; }
.payopt small { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--store); }

/* ---------- acompanhar pedido ---------- */
.track-head { padding: 22px 16px 14px; text-align: center; border-bottom: 8px solid var(--flour); }
.track-head .num { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.track-head h1 { margin: 6px 0 4px; font-size: 22px; font-weight: 800; }
.track-head p { margin: 0; color: var(--muted); }
.pix { padding: 16px; text-align: center; border-bottom: 8px solid var(--flour); }
.pix img { width: 220px; height: 220px; margin: 10px auto; image-rendering: pixelated; }
.pix .code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; background: var(--flour); border-radius: 10px; padding: 10px; text-align: left; max-height: 84px; overflow: auto; }
.pix .count { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--store-text); }
.steps-pix { text-align: left; margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 16px; display: grid; gap: 0; border-bottom: 8px solid var(--flour); }
.timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; position: relative; padding-bottom: 16px; color: var(--muted); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c9c2bc; background: var(--bg); margin: 3px; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--deal); border-color: var(--deal); }
.timeline li.now { color: var(--ink); font-weight: 800; }
.timeline li.now::before { background: var(--store); border-color: var(--store); box-shadow: 0 0 0 4px var(--store-soft); }
.wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 16px; height: 50px; border-radius: 12px; background: #1fa855; color: #fff; font-weight: 800; text-decoration: none; }
.link-btn { display: block; text-align: center; margin: 12px 16px; color: var(--store-text); font-weight: 700; }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar-h) + 30px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: grid; gap: 6px; width: min(420px, calc(100% - 24px)); }
.toast { background: var(--night); color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); text-align: center; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px; }
.foot a { color: inherit; }

/* ---------- v1.26.2: checkout no estilo dos apps de entrega ---------- */
button { transition: transform .12s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease; }
button:active:not(:disabled) { transform: scale(.97); }
.co-step { animation: co-in .28s cubic-bezier(.2, .8, .2, 1); }
.co-step.slide-in { animation-name: co-in; }
.co-step.slide-back { animation-name: co-back; }
.co-step.still { animation: none; }
@keyframes co-in { from { transform: translateX(28px); opacity: 0; } }
@keyframes co-back { from { transform: translateX(-28px); opacity: 0; } }
.co .block > *:first-child { margin-top: 0; }
.co-back { border: 0; background: none; color: var(--store-text); font-weight: 800; padding: 4px 0; margin-bottom: 6px; font-size: 14px; }

/* Entrega | Retirada com a "pílula" deslizando */
.seg.slide { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 0; margin-bottom: 12px; }
.seg.slide button { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important; }
.seg.slide button.on { color: var(--ink); }
.seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 9px; background: var(--bg);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .12); transform: translateX(calc(100% * var(--i))); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.seg.mt { margin-top: 10px; }

/* cartões (endereço, seus dados, CPF, retirada) */
.addr-add, .addr-card, .mini-card, .gps { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.addr-add { border-style: dashed; border-color: var(--store); background: var(--store-soft); }
.addr-add b, .addr-card b, .mini-card b, .gps b { display: block; font-size: 15px; }
.addr-add small, .addr-card small, .mini-card small, .gps small { display: block; color: var(--muted); font-size: 13px; }
.ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--flour); font-size: 18px; }
.addr-add .ic { background: var(--bg); }
.tx { flex: 1; min-width: 0; }
.tx b, .tx small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-card i { display: block; font-style: normal; font-size: 13px; color: var(--deal); font-weight: 700; margin-top: 2px; }
.addr-card em { display: block; font-style: normal; font-size: 13px; color: var(--danger); font-weight: 700; margin-top: 2px; white-space: normal; }
.addr-card.off { border-color: var(--danger); background: var(--danger-soft); animation: shake .35s; }
.chg { flex: none; color: var(--store-text); font-weight: 800; font-size: 14px; }
.chev { flex: none; font-size: 26px; color: var(--store-text); line-height: 1; }
.mini-card.static { margin-top: 0; }
.pop { animation: pop .35s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* "Usar minha localização" */
.gps { border-color: var(--store); }
.gps .ic { background: var(--store-soft); }
.gps.busy { pointer-events: none; }
.gps.busy .ic { animation: pulse 1s infinite; }
.gps.busy small::after { content: ' · procurando...'; }
@keyframes pulse { 50% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(224, 69, 43, .12); } }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 2px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.addr-map { margin-top: 12px; animation: pop .3s ease-out; }
.addr-map[hidden] { display: none; }
.map-hint { display: block; text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* campos: erro, carregando, preenchido sozinho */
.field input, .field select, .field textarea { transition: border-color .18s ease, box-shadow .18s ease, background-color .6s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--store); box-shadow: 0 0 0 3px var(--store-soft); }
.field.bad input, .field.bad textarea { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.field.bad { animation: shake .35s; }
.field.bad > span { color: var(--danger); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.field.loading input { background: linear-gradient(90deg, var(--bg) 0%, var(--flour) 50%, var(--bg) 100%) 0 0 / 200% 100%; animation: shine 1s linear infinite; }
input.filled { animation: filled .9s ease-out; }
@keyframes filled { from { background-color: var(--deal-soft); } }
.grow { animation: pop .25s ease-out; }
.grow > .field:first-child { margin-top: 0; }
.check.sm { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.link-add { border: 0; background: none; padding: 2px 0; color: var(--store-text); font-weight: 800; font-size: 14.5px; }

/* pagamento com bolinha de seleção */
.payopt .po-i { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--flour); font-size: 20px; }
.payopt.on .po-i { background: var(--bg); }
.payopt .po-t { flex: 1; min-width: 0; }
.payopt .po-r { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); transition: border .18s ease; }
.payopt.on .po-r { border: 7px solid var(--store); }
.payopt + .payopt { margin-top: 8px; }
.payopt.on { animation: pop .25s ease-out; }
.block > .grow, .block > .mini-card { margin-top: 10px; }
.block > h3 + .grow, .block > h3 + .mini-card { margin-top: 0; }

/* resumo carregando */
.tot.skel div { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--flour) 0%, var(--line) 50%, var(--flour) 100%) 0 0 / 200% 100%; animation: shine 1.1s linear infinite; }
.tot.skel div:last-child { width: 60%; height: 18px; }
.eta { display: block; margin-top: 8px; color: var(--muted); }

/* botão principal: carregando e enviado */
.cta.loading, .cta.done { justify-content: center; gap: 10px; opacity: 1; }
.cta.done { background: var(--deal); color: #fff; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ok-check { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--deal); display: grid; place-items: center; font-weight: 900; animation: pop .35s cubic-bezier(.2, .9, .3, 1.6); }
.cta .arrow { font-size: 18px; }
.foot-note:not([hidden]) { animation: pop .22s ease-out; }

/* Pix de teste (sandbox) */
.sbx-box { margin-top: 14px; padding: 12px; border-radius: 12px; border: 1.5px dashed #b58900; background: #fff8e1; display: grid; gap: 8px; text-align: center; }
.sbx-box small { color: #7a5c00; }
.sbx-pay { height: 46px; border-radius: 10px; border: 0; background: #2a2522; color: #fff; font-weight: 800; }
.sbx-pay.busy { opacity: .7; }

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

/* =====================================================================
   PORTAL (raiz do menu): Início, Busca, Pedidos, Perfil.
   Sempre claro, padrão app de delivery: branco, divisórias cinza bem suaves,
   títulos grossos, apoio fino em cinza, estrela dourada e verde vibrante.
   ===================================================================== */
:root {
  --pt-line: #eeeeee;
  --pt-soft: #f5f5f5;
  --pt-muted: #717171;
  --pt-gold: #f5a300;
  --pt-green: #0a9f4f;
  --pt-green-soft: #e7f7ee;
  --tab-h: 60px;
}
.pt { max-width: 640px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: #fff; padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom, 0px)); }
.pt h1 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.pt-sub { color: var(--pt-muted); font-weight: 400; font-size: 14px; margin: 4px 0 0; }
.pt-title { padding: calc(20px + env(safe-area-inset-top, 0px)) 16px 8px; }

/* barra inferior */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(640px, 100%); z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--pt-line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8c8c8c; text-decoration: none; font-size: 11.5px; font-weight: 500; }
.tabbar a.on { color: var(--store); font-weight: 700; }
.tabbar svg { width: 24px; height: 24px; }
.ico { width: 20px; height: 20px; flex: none; }

/* topo: endereço */
.pt-top { position: sticky; top: 0; z-index: 20; background: #fff; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 8px; }
.pt-addr { display: flex; align-items: center; gap: 6px; max-width: 100%; border: 0; background: none; padding: 4px 0; text-align: left; color: var(--ink); }
.pt-addr > .ico { color: var(--store); }
.pt-addr span { display: grid; min-width: 0; }
.pt-addr small { font-size: 11.5px; color: var(--pt-muted); }
.pt-addr b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* categorias com emoji (2 linhas, rolagem para o lado) */
.pt-cats { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 76px; gap: 12px 6px; overflow-x: auto; padding: 8px 16px 4px; scrollbar-width: none; }
.pt-cats::-webkit-scrollbar { display: none; }
.pt-cats.one { grid-template-rows: auto; }
.pt-cat { display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: 0; font-size: 12px; font-weight: 500; color: var(--ink); }
.pt-emoji { width: 64px; height: 64px; border-radius: 18px; background: var(--pt-soft); display: grid; place-items: center; font-size: 32px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transition: transform .15s; }
.pt-cat.on .pt-emoji { background: var(--store-soft); box-shadow: inset 0 0 0 2px var(--store); }
.pt-cat.on { font-weight: 800; color: var(--store-text); }
.pt-cat:active .pt-emoji { transform: scale(.94); }

/* banners */
.pt-banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 4px; scrollbar-width: none; scroll-padding-inline: 16px; }
.pt-banners::-webkit-scrollbar { display: none; }
.pt-banner { flex: none; width: calc(100% - 24px); aspect-ratio: 12 / 5; border-radius: 14px; overflow: hidden; scroll-snap-align: center; border: 0; padding: 0; background: var(--pt-soft); }
.pt-banner:only-child { width: 100%; }
.pt-banner img { width: 100%; height: 100%; object-fit: cover; }

/* filtros */
.pt-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; position: sticky; top: calc(52px + env(safe-area-inset-top, 0px)); z-index: 15; background: #fff; border-bottom: 1px solid var(--pt-line); }
.pt-chips::-webkit-scrollbar { display: none; }
.pt-chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #e3e3e3; background: #fff; font-size: 13px; font-weight: 500; color: #3f3f3f; display: inline-flex; align-items: center; gap: 4px; }
.pt-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.pt-chip .ico { width: 16px; height: 16px; }

/* lista de lojas */
.pt-h2 { font-size: 18px; font-weight: 800; margin: 18px 16px 4px; }
.pt-store { display: flex; gap: 12px; align-items: center; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--pt-line); background: #fff; text-align: left; color: var(--ink); }
.pt-store:active { background: #fafafa; }
.pt-logo { width: 56px; height: 56px; border-radius: 50%; flex: none; overflow: hidden; border: 1px solid var(--pt-line); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: #fff; }
.pt-logo img { width: 100%; height: 100%; object-fit: cover; }
.pt-info { min-width: 0; flex: 1; display: grid; gap: 3px; }
.pt-name { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-meta { font-size: 13px; color: var(--pt-muted); font-weight: 400; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.pt-meta .dot::before { content: "•"; margin-right: 4px; color: #b5b5b5; }
.pt-star { color: var(--pt-gold); font-size: 14px; }
.pt-rate { color: #8a5d00; font-weight: 700; }
.pt-new { background: #fff4d6; color: #7a5400; font-weight: 700; font-size: 11.5px; border-radius: 6px; padding: 0 6px; }
.pt-free { color: var(--pt-green); font-weight: 700; }
.pt-tag { justify-self: start; background: var(--pt-green-soft); color: var(--pt-green); font-weight: 800; font-size: 12px; border-radius: 6px; padding: 2px 8px; margin-top: 2px; }
.pt-store.closed .pt-logo { filter: grayscale(1); opacity: .6; }
.pt-store.closed .pt-name { color: #8c8c8c; }
.pt-skel { height: 84px; margin: 0 16px; border-bottom: 1px solid var(--pt-line); background: linear-gradient(90deg, #fff 40%, #f4f4f4 50%, #fff 60%) 0 0 / 300% 100%; animation: shine 1.2s infinite linear; }
@keyframes shine { to { background-position: -100% 0; } }

.pt-empty { text-align: center; padding: 40px 24px; color: var(--pt-muted); }
.pt-empty .big { font-size: 44px; margin-bottom: 8px; }
.pt-empty b { display: block; color: var(--ink); font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.pt-empty .pt-btn { margin-top: 16px; }
.pt-btn { height: 48px; border-radius: 12px; border: 0; background: var(--store); color: #fff; font-weight: 800; font-size: 15px; padding: 0 20px; }
.pt-btn.ghost { background: #fff; color: var(--store-text); border: 1.5px solid var(--store); }
.pt-btn.danger { background: #c0291a; }
.pt-btn.full { width: 100%; }
.pt-btn:disabled { opacity: .6; }
.pt-link { border: 0; background: none; color: var(--store-text); font-weight: 700; padding: 8px 0; }
.pt-link:disabled { color: var(--pt-muted); font-weight: 500; }
.pt-seller { display: flex; align-items: center; gap: 12px; margin: 24px 16px 0; padding: 14px; border-radius: 14px; background: var(--pt-soft); color: var(--ink); text-decoration: none; }
.pt-seller .em { font-size: 28px; }
.pt-seller b { display: block; font-weight: 800; }
.pt-seller small { color: var(--pt-muted); }
.pt-seller .ico { margin-left: auto; color: var(--pt-muted); }

/* onde você está */
.pt-where { margin: 16px; padding: 20px; border-radius: 16px; background: var(--pt-soft); }
.pt-where h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.pt-where p { margin: 0; color: var(--pt-muted); }
.pt-where .row { display: flex; gap: 8px; margin-top: 12px; }
.pt-where input { flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid #e0e0e0; padding: 0 14px; font-size: 16px; background: #fff; }
.pt-where .err { color: #c0291a; font-weight: 600; font-size: 14px; margin-top: 8px; }

/* busca */
.pt-search { display: flex; align-items: center; gap: 8px; height: 46px; border-radius: 12px; background: var(--pt-soft); padding: 0 12px; margin: 0 16px; }
.pt-search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; outline: none; }
.pt-search .ico { color: var(--pt-muted); }
.pt-recent { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px; }
.pt-dish { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--pt-line); background: #fff; text-align: left; color: var(--ink); }
.pt-dish .tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pt-dish b { font-weight: 700; }
.pt-dish small { color: var(--pt-muted); }
.pt-dish .pr { font-weight: 700; }
.pt-dish img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }

/* pedidos */
.pt-order { margin: 12px 16px 0; border: 1px solid var(--pt-line); border-radius: 14px; padding: 14px; }
.pt-order .hd { display: flex; gap: 10px; align-items: center; }
.pt-order .hd .pt-logo { width: 40px; height: 40px; font-size: 15px; }
.pt-order .hd .tx { min-width: 0; }
.pt-order .hd b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-order .hd small { color: var(--pt-muted); }
.pt-order .its { color: #555; font-size: 13.5px; margin: 10px 0 0; }
.pt-order .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pt-order .acts button, .pt-order .acts a { height: 38px; border-radius: 10px; padding: 0 14px; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; text-decoration: none; }
.pt-order .acts .main { background: var(--store); color: #fff; border: 0; }
.pt-order .acts .sec { background: #fff; color: var(--store-text); border: 1.5px solid var(--store); }
.pt-order .acts .rated { color: #8a5d00; font-weight: 700; font-size: 13.5px; align-self: center; }
.pt-pill { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; margin-left: auto; white-space: nowrap; flex: none; }
.pt-pill.go { background: #fff4d6; color: #7a5400; }
.pt-pill.ok { background: var(--pt-green-soft); color: var(--pt-green); }
.pt-pill.no { background: #fdecea; color: #c0291a; }
.pt-stars { display: flex; justify-content: center; gap: 6px; margin: 8px 0 14px; }
.pt-stars button { border: 0; background: none; font-size: 40px; line-height: 1; color: #dcdcdc; padding: 2px; }
.pt-stars button.on { color: var(--pt-gold); }

/* perfil */
.pt-me { display: flex; align-items: center; gap: 14px; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px 16px; }
.pt-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--store); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; flex: none; }
.pt-me b { display: block; font-size: 20px; font-weight: 800; }
.pt-me small { color: var(--pt-muted); font-size: 14px; }
.pt-rows { border-top: 1px solid var(--pt-line); }
.pt-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--pt-line); background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); text-align: left; text-decoration: none; }
.pt-row .ico { color: #5c5c5c; }
.pt-row .end { margin-left: auto; color: #b5b5b5; }
.pt-row span { display: grid; }
.pt-row small { color: var(--pt-muted); font-weight: 400; font-size: 12.5px; }
.pt-row.danger, .pt-row.danger .ico { color: #c0291a; }

/* login */
.pt-login { padding: 32px 20px; display: grid; gap: 12px; }
.pt-login .mark { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; margin: 0 auto 4px; }
.pt-login .mark img { width: 56px; height: 56px; }
.pt-login h1, .pt-login h2 { text-align: center; font-size: 22px; font-weight: 800; margin: 0; }
.pt-login p { text-align: center; color: var(--pt-muted); margin: 0; }
.pt-login input[type="tel"], .pt-login input[type="text"] { height: 52px; border-radius: 12px; border: 1px solid #dedede; padding: 0 14px; font-size: 18px; width: 100%; background: #fff; }
.pt-login input.code { text-align: center; letter-spacing: .5em; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-login .err { color: #c0291a; font-weight: 600; font-size: 14px; text-align: center; }
.pt-login .small { font-size: 13px; color: var(--pt-muted); text-align: center; }
.pt-login .check { margin-top: 0; }
.pt-login .check a { color: var(--store-text); font-weight: 700; }
.pt-login .links { display: flex; justify-content: center; gap: 18px; }

/* opções nas janelas (endereços, pagamento, ordenar) */
.pt-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--pt-line); background: #fff; text-align: left; color: var(--ink); }
.pt-opt .tx { flex: 1; min-width: 0; display: grid; }
.pt-opt b { font-weight: 700; }
.pt-opt small { color: var(--pt-muted); }
.pt-dotr { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9c9c9; flex: none; }
.pt-opt.on .pt-dotr { border-color: var(--store); box-shadow: inset 0 0 0 5px var(--store); }
.pt-opt .del { border: 0; background: none; color: #c0291a; font-weight: 700; padding: 6px; }
.pt-labels { display: flex; gap: 8px; margin-top: 10px; }
.pt-note { background: var(--pt-soft); border-radius: 12px; padding: 12px; color: #555; font-size: 13.5px; margin-top: 12px; }

/* janelas do Portal */
.pt-sheet { padding: 8px 16px 16px; }
.pt-sheet .err-box { margin: 10px 0 0; }
.pt-sheet textarea { margin-top: 4px; }
.cta.mid { justify-content: center; }
.pt-top .pt-search { margin: 0; }

/* botão voltar no cardápio da loja (quando veio do Portal) */
.back-btn { position: absolute; left: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); display: grid; place-items: center; color: var(--ink); }
.back-btn .ico { width: 22px; height: 22px; }

/* v1.18: QR Code da mesa e rodadas */
.banner.mesa { background: var(--store-soft); color: var(--store-text); }
.mesa-fixed { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--store-soft); color: var(--store-text); font-weight: 700; }
.mesa-fixed small { font-weight: 600; opacity: .8; }
.round-title { margin: 10px 0 2px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* ---------- v1.20: últimas unidades, pontos, pin no checkout, entregador ao vivo ---------- */
.lasttag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: #b45309; background: #fff4e5; border-radius: 999px; padding: 1px 8px; }
.pts-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: #fffaf0; }
.pts-box .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.pts-box label { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.pts-box input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--deal); }
.pts-box small { color: var(--muted); }
.pts-earn { color: var(--deal); font-weight: 700; font-size: 13px; }
.pin-map { height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 8px; background: var(--flour); }
.pin-help { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--muted); }
.pin-help button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.track-map { height: 280px; margin: 14px 16px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--flour); }
.track-live { margin: 6px 16px 0; font-size: 13px; color: var(--muted); }
.door-banner { margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; background: #eaf1ff; color: #1d4ed8; font-weight: 700; font-size: 14px; }
.problem-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 16px 0; height: 46px; border-radius: 12px; border: 2px solid var(--danger); color: var(--danger); background: #fff; font-weight: 800; text-decoration: none; }
.map-pin-wrap { background: none; border: 0; }
.map-pin { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: #fff; border: 2px solid var(--store); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.map-pin-home { border-color: #2563eb; }
.pts-list { display: grid; gap: 8px; }
.pts-item { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; text-decoration: none; color: inherit; }
.pts-item b { color: var(--deal); }
.pix-logo { display: inline-block; vertical-align: -3px; flex: none; }
.pix-tag { display: inline-flex; align-items: center; gap: 4px; }
.pix-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 17px; }
.payopt .po-i .pix-logo { width: 22px; height: 22px; }

/* ---------- v1.27: início do Portal no estilo dos apps de entrega ---------- */
.pt-emoji.img { overflow: hidden; background: var(--pt-soft); }
.pt-emoji.img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .2s cubic-bezier(.2, .9, .3, 1.4); }
.pt-cat:hover .pt-emoji.img img, .pt-cat.on .pt-emoji.img img { transform: scale(1.08) rotate(-3deg); }
.pt-cat-l { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-cats { animation: pt-fade .35s ease-out; }
@keyframes pt-fade { from { opacity: 0; transform: translateY(6px); } }

/* banners da casa */
.pt-hb { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 18px; color: #fff; text-align: left; }
.pt-hb.b1 { background: linear-gradient(120deg, #e0452b 0%, #f2662f 60%, #f59e0b 100%); }
.pt-hb.b2 { background: linear-gradient(120deg, #138a4a 0%, #1fa463 100%); }
.pt-hb.b3 { background: linear-gradient(120deg, #2a2522 0%, #4b3f38 100%); }
.pt-hb .hb-tx { display: grid; gap: 6px; max-width: 58%; z-index: 1; }
.pt-hb b { font-size: clamp(17px, 5vw, 22px); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.pt-hb span { font-size: 13px; opacity: .92; line-height: 1.3; }
.pt-hb img { height: 118%; width: auto; aspect-ratio: 1; object-fit: contain; margin-right: -6px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); border-radius: 50%;
  background: radial-gradient(circle, #fff 60%, rgba(255, 255, 255, 0) 70%); animation: hb-float 4s ease-in-out infinite; }
@keyframes hb-float { 50% { transform: translateY(-5px) rotate(2deg); } }
.pt-dots { display: flex; justify-content: center; gap: 5px; margin: 8px 0 2px; }
.pt-dots i { width: 6px; height: 6px; border-radius: 3px; background: #d9d9d9; transition: width .25s, background-color .25s; }
.pt-dots i.on { width: 18px; background: var(--store); }

/* sem endereço: restaurantes perto de você */
.pt-near { margin: 16px; padding: 18px; border-radius: 18px; background: var(--pt-soft); animation: pt-fade .35s ease-out; }
.pt-near-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pt-near-hd img { width: 64px; height: 64px; mix-blend-mode: multiply; flex: none; }
.pt-near-hd h2 { margin: 0; font-size: 19px; font-weight: 800; }
.pt-near-hd p { margin: 2px 0 0; color: var(--pt-muted); font-size: 14px; }
.pt-btn.gps { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pt-btn.gps.busy { opacity: .75; pointer-events: none; }
.pt-btn.gps.busy span::after { content: '...'; }
.pt-btn.gps.busy .ico { animation: pulse 1s infinite; }
.pt-or { display: flex; align-items: center; gap: 10px; color: var(--pt-muted); font-size: 13px; margin: 12px 0 0; }
.pt-or::before, .pt-or::after { content: ''; flex: 1; height: 1px; background: #e3e3e3; }
.pt-near .pt-where { margin: 0; padding: 0; background: none; }
.pt-near .pt-where h2, .pt-near .pt-where p { display: none; }

/* faixas: últimas lojas, com cupom, mais bem avaliadas */
.pt-shelf { margin-top: 18px; animation: pt-fade .35s ease-out; }
.pt-shelf-hd { display: grid; gap: 1px; padding: 0 16px; }
.pt-shelf-hd h2 { margin: 0; font-size: 19px; font-weight: 800; }
.pt-shelf-hd small { color: var(--pt-muted); font-size: 13px; }
.pt-shelf-row { display: flex; gap: 10px; overflow-x: auto; padding: 10px 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.pt-shelf-row::-webkit-scrollbar { display: none; }
.pt-mini { flex: none; width: 112px; display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; border: 0; background: var(--pt-soft); scroll-snap-align: start; text-align: center; }
.pt-mini .pt-logo { width: 64px; height: 64px; }
.pt-mini b { font-size: 13.5px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-mini-badge { margin-top: -14px; z-index: 1; font-size: 11px; font-weight: 800; color: #0f6b39; background: var(--deal-soft); border: 2px solid #fff; padding: 2px 7px; border-radius: 999px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pt-mini.closed { opacity: .55; }

/* entrar ou cadastrar-se */
.pt-nudge { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom, 0px)); width: min(608px, calc(100% - 24px)); z-index: 39;
  display: flex; align-items: center; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .16); animation: nudge-in .4s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes nudge-in { from { transform: translate(-50%, 20px); opacity: 0; } }
.pt-nudge .tx { flex: 1; display: grid; justify-items: center; gap: 1px; padding: 12px 8px 12px 40px; border: 0; background: none; font-size: 14.5px; color: var(--ink); }
.pt-nudge .tx b { color: var(--store-text); font-weight: 800; }
.pt-nudge .x { width: 40px; height: 40px; border: 0; background: none; color: var(--pt-muted); font-size: 15px; }

.pt:has(.pt-nudge) { padding-bottom: calc(var(--tab-h) + 96px + env(safe-area-inset-bottom, 0px)); }
