/* Cardápio digital (página pública da loja). Leve: sem fontes externas, sem framework. A cor da loja vem em --brand. */
:root {
  --brand: #1a7f5a;
  --on-brand: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, var(--surface));
  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --bg: #f5f4f1;
  --surface: #fff;
  --sunken: #f3f2ee;
  --text: #17191a;
  --soft: #62676a;
  --line: #e7e5df;
  --danger: #b42318;
  --ok: #15803d;
  --warn-bg: #fff7e6;
  --warn-ink: #7a4b00;
  --radius: 18px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 12px;
  --r-xs: 6px;
  --r-sheet: 24px;
  --pill: 999px;
  --on-text: #fff;
  --danger-bg: #fdf0ee;
  --danger-ink: #7a1d14;
  --disabled: #c9c6be;
  --card-border: transparent;
  --font-title: inherit;
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.06);
  --shadow: 0 1px 2px rgba(20, 18, 14, 0.05), 0 10px 30px -12px rgba(20, 18, 14, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 128px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
/* Toque como num app: sem a espera do toque duplo (zoom) nos botões e links. */
a, button, summary, label { touch-action: manipulation; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* ----- Topo da loja ----- */
.cover {
  position: relative;
  height: 200px;
  background: var(--brand) center / cover no-repeat;
}
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35)); }
.cover.is-empty {
  height: 150px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 70%, #fff) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--brand) 60%, #000) 0%, transparent 60%),
    var(--brand);
}
.cover.is-empty::after { background: none; }
.store {
  position: relative;
  margin-top: -64px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 16px;
  align-items: end;
}
.store-logo {
  grid-row: span 2;
  width: 84px;
  height: 84px;
  border-radius: var(--r-lg);
  object-fit: cover;
  background: var(--sunken);
  border: 4px solid var(--surface);
  margin-top: -46px;
  box-shadow: var(--shadow);
}
.store-logo.is-letter { display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--on-brand); background: var(--brand); }
.store h1 { font-family: var(--font-title); margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: var(--title-track, -0.02em); font-weight: 800; }
.store-state { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--soft); }
.open-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
  border-radius: var(--pill);
  padding: 2px 10px 2px 8px;
}
.open-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.open-dot.is-closed { color: var(--danger); background: var(--danger-bg); }
.store-about { grid-column: 1 / -1; margin: 12px 0 0; color: var(--soft); font-size: 14px; }
.store-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.fact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
.fact svg { color: var(--brand); }
.fact strong { color: var(--text); font-weight: 650; }

.closed-banner {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 14px;
}

/* ----- Meus pedidos e Pedir de novo ----- */
.my-orders {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--pill);
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 650;
}
.my-orders svg { color: var(--brand); }
.again {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.again-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.again-label { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-ink); }
.again-text strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.again-text small { color: var(--soft); font-size: 12.5px; }
.pill-btn {
  flex: none;
  border: 1px solid var(--brand);
  background: var(--surface);
  color: var(--brand-ink);
  border-radius: var(--pill);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13.5px;
}
.pill-btn.is-solid { background: var(--brand); color: var(--on-brand); }
.past-order { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.past-order:first-child { padding-top: 4px; }
.past-order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.past-status { font-size: 12.5px; font-weight: 650; color: var(--brand-ink); background: var(--brand-soft); border-radius: var(--pill); padding: 2px 9px; }
.past-status.is-done { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.past-status.is-off { color: var(--soft); background: var(--sunken); }
.past-items { margin: 0; color: var(--soft); font-size: 14px; }
.past-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--soft); flex-wrap: wrap; }
.past-actions { display: inline-flex; align-items: center; gap: 12px; }

/* ----- Busca e categorias (grudam no topo) ----- */
.cats {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 14px -16px 0;
  padding: 10px 16px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 14px;
  color: var(--soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; font-size: 16px; outline: none; color: var(--text); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.cats-row { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cats > :last-child:not(.cats-row) { margin-bottom: 10px; }
.cat-chip {
  flex: none;
  border-radius: var(--pill);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--soft);
  transition: background 0.15s, color 0.15s;
}
.cat-chip:hover { color: var(--text); }
.cat-chip.is-active { background: var(--text); color: var(--on-text); }

/* ----- Produtos ----- */
.cat { padding-top: 18px; }
.cat h2 { font-family: var(--font-title); font-size: 19px; margin: 4px 2px 12px; letter-spacing: var(--title-track, -0.015em); font-weight: 800; }
.products { display: grid; gap: 10px; }
@media (min-width: 700px) { .products { grid-template-columns: 1fr 1fr; } }
.product {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  width: 100%;
  min-height: 112px;
  text-align: left;
  border: 1px solid var(--card-border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.product:active { transform: scale(0.99); }
.product[disabled] { cursor: default; opacity: 0.55; transform: none; box-shadow: var(--shadow-sm); }
.product-text { display: flex; flex-direction: column; min-width: 0; }
.product-name { font-family: var(--font-title); display: block; font-weight: 700; font-size: 15.5px; line-height: 1.3; margin: 0 0 4px; }
.product-desc {
  display: -webkit-box;
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 13.5px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { margin-top: auto; font-weight: 750; color: var(--brand-ink); }
.product-price small { font-weight: 500; color: var(--soft); font-size: 12.5px; }
/* Desconto: preço de sempre riscado ao lado do preço cobrado. */
.was { font-weight: 500; color: var(--soft); font-size: 0.86em; text-decoration-thickness: 1px; }
.tag-off { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: var(--r-xs); font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--sunken); vertical-align: 1px; }
.product-media { position: relative; align-self: start; }
.product-img { width: 112px; height: 112px; border-radius: var(--r-md); object-fit: cover; background: var(--sunken); }
.product-add {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(20, 18, 14, 0.16);
  transition: background 0.15s, color 0.15s;
}
.product:not(.has-img) { min-height: 0; }
.product:not(.has-img) .product-media { align-self: end; }
.product:not(.has-img) .product-add { position: static; background: var(--brand-soft); box-shadow: none; }
.product:hover .product-add { background: var(--brand); color: var(--on-brand); }
.product-add svg { width: 18px; height: 18px; stroke-width: 2.4; }
.tag-out { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--danger); background: var(--danger-bg); border-radius: var(--r-xs); padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.empty-search { text-align: center; color: var(--soft); padding: 40px 0; }

.footer { color: var(--soft); font-size: 13px; padding: 36px 0 128px; text-align: center; }
.footer a { color: var(--soft); }
.hours-list { margin: 8px auto 14px; display: inline-grid; grid-template-columns: auto auto; gap: 2px 16px; text-align: left; }

/* ----- Barra da sacola ----- */
.bag-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  animation: bar-in 0.3s var(--ease);
}
@keyframes bar-in { from { transform: translateY(100%); } }
.bag-btn {
  pointer-events: auto;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: var(--pill);
  background: var(--brand);
  color: var(--on-brand);
  padding: 10px 22px 10px 10px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--brand) 60%, transparent), 0 2px 6px rgba(0, 0, 0, 0.12);
}
.bag-btn.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); } }
.bag-count {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: var(--pill);
  padding: 0 8px;
  background: color-mix(in srgb, var(--on-brand) 20%, transparent);
  font-size: 15px;
}
.bag-label { flex: 1; text-align: left; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 11;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: var(--text);
  color: var(--on-text);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--pill);
  padding: 9px 16px;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ----- Folha (produto, sacola) ----- */
.sheet {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  /* dvh: no iPhone, 92vh conta a barra do Safari escondida e a folha passava da tela. */
  max-height: 92dvh;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  /* clip: a folha não vira área rolável (com hidden, o foco num campo ainda podia rolar a folha inteira). */
  overflow: clip;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}
.sheet::backdrop { background: rgba(14, 12, 10, 0.5); backdrop-filter: blur(2px); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 0.28s var(--ease); }
@keyframes sheet-in { from { transform: translateY(48px); opacity: 0; } }
@media (min-width: 720px) {
  .sheet { margin: auto; border-radius: var(--r-sheet); max-height: 88vh; max-height: 88dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet[open], .bag-bar, .bag-btn.is-bump { animation: none; }
  .product, .toast { transition: none; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.sheet-head h2 { font-family: var(--font-title); font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.sheet-close { border: 0; background: var(--sunken); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--soft); flex: none; }
/* flex 1 1 auto + min-height 0: no Safari do iPhone, "flex: 1" (base 0) numa folha só com max-height deixava o corpo
   com altura zero (só o título e o botão apareciam). Assim o corpo tem a altura do conteúdo e rola quando passa. */
.sheet-body { overflow-y: auto; padding: 4px 18px 18px; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; counter-reset: step; -webkit-overflow-scrolling: touch; }
.sheet-head, .sheet-foot { flex: none; }
.sheet-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; background: var(--surface); }

.p-hero { width: calc(100% + 36px); max-width: none; margin: -4px -18px 16px; max-height: 280px; object-fit: cover; }
.p-desc { color: var(--soft); margin: 0 0 8px; }
.p-price { font-family: var(--font-title); font-weight: 800; font-size: 19px; margin: 0 0 8px; color: var(--brand-ink); }

.group { margin: 20px -18px 0; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--sunken); padding: 11px 18px; }
.group-head h3 { font-size: 15px; margin: 0; }
.group-rule { font-size: 12.5px; color: var(--soft); }
.req { font-size: 11.5px; font-weight: 700; background: var(--text); color: var(--on-text); border-radius: var(--r-xs); padding: 2px 8px; white-space: nowrap; }
.req.is-done { background: var(--ok); }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt-text { flex: 1; min-width: 0; }
.opt-name { font-weight: 550; }
.opt-desc { display: block; color: var(--soft); font-size: 13px; }
.opt-price { color: var(--soft); font-size: 14px; white-space: nowrap; }
.opt input[type="radio"], .opt input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.opt.is-out { opacity: 0.5; cursor: default; }
.opt.is-qty { cursor: default; }

.stepper { display: inline-flex; align-items: center; background: var(--sunken); border-radius: var(--r-sm); overflow: hidden; flex: none; }
.stepper button { border: 0; background: transparent; width: 40px; height: 44px; font-size: 20px; color: var(--brand); font-weight: 700; }
.stepper button:disabled { color: var(--disabled); cursor: default; }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.stepper.is-small { border-radius: var(--r-sm); }
.stepper.is-small button { width: 32px; height: 32px; font-size: 18px; }

.field { display: grid; gap: 6px; margin: 12px 0 0; }
.field > span { font-size: 13px; font-weight: 650; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select {
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362676a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
  padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 68px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-street { display: grid; grid-template-columns: 1fr 104px; gap: 10px; }
.hint { font-size: 12.5px; color: var(--soft); margin: 6px 0 0; }
.hint.is-warn { color: var(--warn-ink); background: var(--warn-bg); border-radius: var(--r-sm); padding: 8px 10px; }
.hint-link { justify-self: start; font-size: 12.5px; color: var(--soft); text-underline-offset: 3px; }
.note { font-size: 14px; background: var(--brand-soft); color: var(--brand-ink); border-radius: var(--r-sm); padding: 10px 12px; margin: 12px 0 0; }
.cep-row { position: relative; }
.cep-status { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--soft); background: var(--surface); padding-left: 6px; }
.cep-status.is-error { color: var(--danger); }

.btn {
  border: 0;
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-weight: 750;
  font-size: 15.5px;
  background: var(--brand);
  color: var(--on-brand);
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: filter 0.15s, transform 0.1s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.99); }
.btn.is-center { justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: var(--sunken); color: var(--text); }
.link-btn { border: 0; background: none; color: var(--brand-ink); font-weight: 650; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Etapas da finalização: 1, 2, 3 */
.section-title { font-family: var(--font-title); display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin: 26px 0 4px; }
.section-title:first-child { margin-top: 4px; }
.section-title.is-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 800;
}
.bag-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bag-line-name { font-weight: 650; }
.bag-line-opts { color: var(--soft); font-size: 13px; }
.bag-line-side { display: grid; justify-items: end; gap: 6px; }

.choices { display: grid; gap: 8px; margin-top: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.choice input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice-text { display: grid; }
.choice-text > span { font-weight: 650; }
.choice-text small { color: var(--soft); font-size: 12.5px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sunken); border-radius: var(--r-md); padding: 4px; margin-top: 10px; }
.field .seg { margin-top: 0; }
.seg label { position: relative; display: grid; place-items: center; text-align: center; padding: 10px 6px; border-radius: var(--r-sm); font-weight: 650; cursor: pointer; color: var(--soft); transition: background 0.15s, color 0.15s; }
/* O rádio fica escondido dentro do próprio botão: ao focar, o navegador não rola nada para "mostrar" o rádio. */
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.seg label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }

.totals { margin-top: 20px; display: grid; gap: 6px; font-size: 14px; background: var(--sunken); border-radius: var(--r-md); padding: 14px; }
.totals div { display: flex; justify-content: space-between; color: var(--soft); }
.totals .total { font-size: 18px; font-weight: 800; margin-top: 4px; color: var(--text); }
.problems { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--danger-bg); color: var(--danger-ink); font-size: 14px; }
.problems p { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--soft); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.privacy { font-size: 12.5px; color: var(--soft); margin: 14px 0 0; }
.error { color: var(--danger); font-size: 14px; margin: 10px 0 0; }
.error:empty { display: none; }
#card-brick { margin-top: 12px; }
.card-form { display: grid; gap: 12px; margin-top: 12px; }
.card-form .btn { justify-content: space-between; }
.row-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ----- Acompanhamento ----- */
/* Página de privacidade do cardápio */
.legal { padding: 20px 16px 64px; max-width: 680px; line-height: 1.6; font-size: 15px; }
.legal-back { display: inline-block; color: var(--soft); font-size: 14px; text-decoration: none; margin-bottom: 18px; }
.legal-back:hover { color: var(--text); }
.legal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.legal-head img, .legal-head .store-logo { width: 52px; height: 52px; margin: 0; border-width: 0; box-shadow: none; border-radius: var(--r-md); }
.legal-head .store-logo.is-letter { font-size: 22px; }
.legal-head h1 { font-size: 22px; margin: 0; }
.legal-head p { margin: 0; color: var(--soft); font-size: 14px; }
.legal h2 { font-size: 16px; margin: 28px 0 8px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: inherit; }
.legal-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.legal .btn { flex: none; display: inline-flex; font-size: 14.5px; padding: 11px 16px; }
.legal-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }
.privacy a { color: inherit; }

/* Página do pedido: o mesmo topo do cardápio (capa, logo e nome) e as abas embaixo. */
.cover.is-track { height: calc(132px + env(safe-area-inset-top)); }
.cover.is-track.is-empty { height: calc(112px + env(safe-area-inset-top)); }
.track-back { position: absolute; z-index: 1; top: calc(12px + env(safe-area-inset-top)); left: max(16px, calc((100% - 820px) / 2 + 16px)); border: 0; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.track { max-width: 640px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.track-store { margin-top: -40px; margin-bottom: 12px; align-items: center; }
.track-store h1 { font-size: 20px; }
.track-store .store-logo { width: 64px; height: 64px; margin-top: 0; border-width: 0; box-shadow: none; border-radius: var(--r-md); }
.track-store .store-logo.is-letter { font-size: 26px; }
.track-id { margin: 0; color: var(--soft); font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.status-card { position: relative; }
.status-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.status-icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.status-card.is-live .status-icon { animation: pulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.status-card.is-done .status-icon { background: var(--brand); color: var(--on-brand); }
.status-card.is-done .status-icon svg { stroke-width: 2.6; }
.status-card.is-off .status-icon { background: var(--danger-bg); color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .status-card.is-live .status-icon { animation: none; } }
.track-menu { display: flex; align-items: center; gap: 12px; padding: 16px 18px; text-decoration: none; color: var(--text); }
.track-menu svg { width: 20px; height: 20px; color: var(--soft); }
.track-menu-text { flex: 1; display: grid; gap: 1px; }
.track-menu-text strong { font-family: var(--font-title); font-size: 16px; letter-spacing: var(--title-track, -0.01em); }
.track-menu-text span { font-size: 13.5px; color: var(--soft); }
.track-foot { text-align: center; }

/* Avisos no celular: do pedido (página do pedido) e as novidades (aba Conta) */
.notify-head { display: flex; gap: 12px; align-items: flex-start; }
.notify-head > div { display: grid; gap: 2px; }
.notify-head strong { font-family: var(--font-title); font-size: 16px; letter-spacing: var(--title-track, -0.01em); }
.notify-head span:not(.notify-icon) { font-size: 13.5px; color: var(--soft); }
.notify-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.notify-icon svg { width: 20px; height: 20px; }
.notify-promo { margin: 14px 0 0; }
.notify .btn { margin-top: 14px; width: 100%; }
a.btn { text-decoration: none; }
.notify .error { margin: 10px 0 0; }
.notify-on { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; font-weight: 600; }
.notify-on svg { width: 18px; height: 18px; }
.notify-on svg { flex: none; }
.notify-on a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.news { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.news-text { flex: 1; display: grid; gap: 2px; }
.news-text strong { font-size: 15px; }
.news-text span { font-size: 13.5px; color: var(--soft); }
.news .pill-btn { flex: none; }

/* Convite para instalar o app na tela do celular */
.install { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px; margin: 0 0 12px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.app-view .install { margin-top: 14px; }
.install-icon img { width: 44px; height: 44px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.install-text { display: grid; gap: 2px; }
.install-text strong { font-size: 14.5px; color: var(--brand-ink); }
.install-text span { font-size: 13px; color: var(--soft); }
.install-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.install-how { margin: 0; font-size: 13.5px; }
.inline-icon { display: inline-block; vertical-align: -3px; color: var(--brand-ink); }
.card { border: 1px solid var(--card-border); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 12px; }
.status-big { font-family: var(--font-title); font-size: 22px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 4px; }
.status-sub { color: var(--soft); margin: 0; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 18px; color: var(--soft); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; width: 12px; height: 12px; margin: 5px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); box-sizing: border-box; z-index: 1; }
.step::after { content: ""; position: absolute; left: 10px; top: 17px; bottom: -5px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step.is-done { color: var(--text); }
.step.is-done::before { background: var(--brand); border-color: var(--brand); }
.step.is-done::after { background: var(--brand); }
.step.is-now { color: var(--text); font-weight: 750; }
.step.is-now::before { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--brand) 6%, transparent); } }
@media (prefers-reduced-motion: reduce) { .step.is-now::before { animation: none; } }
.pix { display: grid; justify-items: center; text-align: center; gap: 10px; }
.pix img { width: 220px; height: 220px; image-rendering: pixelated; border-radius: var(--r-sm); border: 1px solid var(--line); padding: 8px; background: #fff; }
.pix-code { width: 100%; display: flex; gap: 8px; }
.pix-code input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--sunken); }
.pix-code .btn { flex: none; }
.timer { font-weight: 750; font-variant-numeric: tabular-nums; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.summary-line small { display: block; color: var(--soft); }
.contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.contact a { text-decoration: none; }
.notfound { padding: 80px 16px; text-align: center; color: var(--soft); }
.notfound h1 { color: var(--text); }

/* Local da entrega no mapa */
.geo-ok { color: var(--soft); }
.map-sheet .sheet-body { padding-bottom: 8px; }
.map-box { height: min(60vh, 420px); border-radius: var(--r-md); overflow: hidden; margin-top: 8px; background: var(--sunken); }
.map-hint { margin-top: 0; }

/* ----- Pedido na mesa (QR) ----- */
.table-banner {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--sunken);
  font-size: 14px;
}

/* Cupom e fidelidade */
.coupon-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coupon-row input:not(:placeholder-shown) { text-transform: uppercase; }
.hint.is-ok { color: var(--brand-ink); }
.loyalty { display: grid; gap: 8px; margin-top: 10px; }
.loyalty:empty { display: none; }
.stamps { display: flex; flex-wrap: wrap; gap: 6px; }
.stamp { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--line); }
.stamp.is-on { border: 2px solid var(--brand); background: var(--brand); }
.totals .discount, .summary-line.discount { color: var(--brand-ink); }

/* ----- Aparência escolhida pela loja (atributos no <html>: tema, cantos, fonte dos títulos, produtos) ----- */
[data-theme="escuro"] {
  --bg: #111214;
  --surface: #1b1c1f;
  --sunken: #26272b;
  --text: #f2f2f0;
  --soft: #a3a7ab;
  --line: #303136;
  --on-text: #111214;
  --brand-soft: color-mix(in srgb, var(--brand) 20%, var(--surface));
  --brand-ink: color-mix(in srgb, var(--brand) 55%, #fff);
  --danger: #ff8b7b;
  --danger-bg: #3a1d19;
  --danger-ink: #ffc2b8;
  --ok: #4ade80;
  --warn-bg: #3a2d12;
  --warn-ink: #f6cd7a;
  --disabled: #55575c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
[data-theme="escuro"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a7ab' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
[data-theme="aconchegante"] {
  --bg: #f3eadc;
  --surface: #fffaf2;
  --sunken: #f1e6d5;
  --text: #2b2019;
  --soft: #7a6858;
  --line: #e6d6c0;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.08);
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 10px 30px -12px rgba(60, 40, 20, 0.22);
}
[data-theme="minimalista"] {
  --bg: #fff;
  --surface: #fff;
  --sunken: #f4f4f4;
  --line: #e4e4e4;
  --card-border: #e4e4e4;
  --shadow-sm: none;
  --shadow: none;
}
[data-theme="minimalista"] .product:hover { border-color: var(--text); }

[data-corners="suaves"] { --radius: 12px; --r-lg: 14px; --r-md: 10px; --r-sm: 8px; --r-xs: 5px; --r-sheet: 18px; }
[data-corners="retos"] { --radius: 4px; --r-lg: 6px; --r-md: 4px; --r-sm: 4px; --r-xs: 3px; --r-sheet: 8px; --pill: 6px; }

[data-font="arredondada"] { --font-title: "Pino Nunito", ui-rounded, system-ui, sans-serif; }
[data-font="elegante"] { --font-title: "Pino Lora", Georgia, "Times New Roman", serif; --title-track: -0.01em; }
[data-font="forte"] { --font-title: "Pino Oswald", "Arial Narrow", sans-serif-condensed, sans-serif; --title-track: 0; }
[data-font="geometrica"] { --font-title: "Pino Montserrat", system-ui, sans-serif; --title-track: -0.025em; }
[data-font="forte"] .store h1, [data-font="forte"] .cat h2 { font-weight: 650; text-transform: uppercase; }
[data-font="forte"] .product-name { font-weight: 550; font-size: 16.5px; }

/* Grade: foto em cima, dois por linha no celular, três no computador. */
[data-layout="grade"] .products { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { [data-layout="grade"] .products { grid-template-columns: repeat(3, 1fr); } }
[data-layout="grade"] .product { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 10px; }
[data-layout="grade"] .product-media { order: -1; align-self: stretch; }
[data-layout="grade"] .product-img { width: 100%; height: auto; aspect-ratio: 1; border-radius: calc(var(--radius) - 6px); }
[data-layout="grade"] .product-text { flex: 1; padding: 0 2px 2px; }
[data-layout="grade"] .product:not(.has-img) .product-media { order: 1; align-self: end; }
[data-layout="grade"] .product-add { right: 6px; bottom: 6px; }
[data-layout="grade"] .product-name { font-size: 14.5px; }
[data-layout="grade"] .product-desc { font-size: 12.5px; }
/* Compacta: foto pequena, mais produtos na tela. */
[data-layout="compacta"] .products { gap: 6px; }
[data-layout="compacta"] .product { min-height: 0; padding: 10px 12px; gap: 10px; align-items: center; }
[data-layout="compacta"] .product-img { width: 64px; height: 64px; border-radius: var(--r-sm); }
[data-layout="compacta"] .product-desc { -webkit-line-clamp: 1; margin-bottom: 4px; }
[data-layout="compacta"] .product-add { width: 26px; height: 26px; }
[data-layout="compacta"] .product-add svg { width: 15px; height: 15px; }
[data-layout="compacta"] .product-media { align-self: center; }

/* ----- Blocos da página (banner, aviso, fidelidade, cashback, cupom) ----- */
.blocks { display: grid; gap: 10px; margin-top: 14px; }
.cat + .blocks { margin-top: 18px; }
.blk { margin: 0; border-radius: var(--radius); }
.blk-banner {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--sunken);
  color: #fff;
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.blk-banner img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.blk-banner.has-caption::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1) 70%); }
.blk-caption { position: absolute; z-index: 1; left: 16px; right: 30%; top: 50%; transform: translateY(-50%); display: grid; gap: 2px; }
.blk-caption strong { font-family: var(--font-title); font-size: clamp(17px, 4.6vw, 24px); line-height: 1.15; font-weight: 800; letter-spacing: var(--title-track, -0.015em); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }
.blk-caption span { font-size: 13.5px; opacity: 0.92; }
a.blk-banner:active, button.blk-banner:active { transform: scale(0.995); }
.blk-aviso { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; font-weight: 600; }
.blk-aviso svg { width: 18px; height: 18px; }
.blk-promo { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow-sm); }
.blk-promo h3 { margin: 0 0 2px; font-family: var(--font-title); font-size: 16px; letter-spacing: var(--title-track, -0.01em); }
.blk-promo p { margin: 0; font-size: 14px; color: var(--soft); }
.blk-promo p strong { color: var(--text); }
.blk-promo small { display: block; margin-top: 6px; font-size: 12px; color: var(--soft); }
.blk-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand-ink); }
.blk-icon svg { width: 22px; height: 22px; }
.blk-icon.is-big { font-weight: 800; font-size: 14px; }
.blk-stamps { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.blk-stamps i { width: 16px; height: 16px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); }
.blk-stamps i.is-prize { border-style: solid; border-color: var(--brand); background: var(--brand); }
.blk-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, transparent);
}
.blk-coupon-main { display: grid; gap: 1px; min-width: 0; }
.blk-coupon-main small { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-ink); }
.blk-coupon-main strong { font-family: var(--font-title); font-size: 18px; letter-spacing: var(--title-track, -0.01em); }
.blk-coupon-main span { font-size: 12.5px; color: var(--soft); }
.blk-coupon-side { display: flex; align-items: center; gap: 8px; }
.blk-coupon-side code { font: 700 14px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.06em; padding: 8px 10px; border-radius: var(--r-sm); background: var(--sunken); }

/* Senha do cardápio (libera cashback e prêmio neste aparelho) */
.pin-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--sunken); }
.pin-box .hint { margin: 0; }
.pin-title { margin: 0; font-weight: 700; font-size: 14.5px; }
.pin-box input { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; background: var(--surface); font-size: 18px; letter-spacing: 0.3em; }
.pin-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.pin-box .error { margin: 0; }
.pin-box input:placeholder-shown { letter-spacing: normal; font-size: 16px; }

/* ----- Abas embaixo (como num app) ----- */
/* Do cardápio para o pedido e de volta: a página troca sem piscar (Chrome e Safari mais novos). */
@view-transition { navigation: auto; }
.tabbar { view-transition-name: tabbar; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.tabbar, .tab { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  flex: 1;
  max-width: 120px;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 4px 4px;
  border-radius: var(--r-md);
  color: var(--soft);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 650;
  transition: color 0.15s;
}
.tab svg { width: 24px; height: 24px; stroke-width: 1.8; transition: transform 0.2s var(--ease); }
.tab.is-active { color: var(--brand-ink); }
.tab.is-active svg { stroke-width: 2.2; transform: translateY(-1px); }
.tab.is-active::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tab.has-dot::after { content: ""; position: absolute; top: 5px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.tab:active svg { transform: scale(0.92); }
body.has-tabbar .bag-bar { bottom: calc(62px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
body.has-tabbar .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
body.has-tabbar .footer { padding-bottom: 180px; }
body[data-screen]:not([data-screen="cardapio"]) .bag-bar { display: none; }
body[data-screen]:not([data-screen="cardapio"]) .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* ----- Telas das abas ----- */
.app-view { padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(110px + env(safe-area-inset-bottom)); max-width: 640px; animation: view-in 0.22s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .app-view { animation: none; } }
.app-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; }
.app-head h1 { font-family: var(--font-title); font-size: 26px; line-height: 1.1; margin: 0; letter-spacing: var(--title-track, -0.02em); font-weight: 800; }
.app-store { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: 0.06em; }
.app-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--card-border); color: var(--text); flex: none; }
.app-back svg { width: 20px; height: 20px; }
.app-section { font-family: var(--font-title); font-size: 16px; font-weight: 800; letter-spacing: var(--title-track, -0.01em); margin: 24px 2px 10px; }
.app-list { display: grid; gap: 10px; }
.app-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; }
.app-card + .app-card { margin-top: 10px; }
.app-foot { text-align: center; margin-top: 18px; }
.app-invite { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.app-invite-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); color: var(--brand-ink); }
.app-invite-icon svg { width: 20px; height: 20px; }
.app-invite p { margin: 0; font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.app-invite-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.app-invite-actions .pill-btn, .past-actions .pill-btn { text-decoration: none; }
a.pill-btn { display: inline-block; }
.app-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 44px 20px; }
.app-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sunken); color: var(--soft); margin-bottom: 6px; }
.app-empty-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.app-empty strong { font-family: var(--font-title); font-size: 18px; }
.app-empty p { margin: 0 0 12px; color: var(--soft); max-width: 300px; }
.app-empty .btn { flex: none; text-decoration: none; padding: 12px 22px; }

/* Pedidos */
.order-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px; display: grid; gap: 6px; }
.order-card.is-live { border-color: color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent), var(--shadow-sm); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--soft); margin-top: 2px; }

/* Fidelidade */
.loy-head { display: flex; gap: 12px; align-items: center; }
.loy-head h2 { margin: 0; font-family: var(--font-title); font-size: 17px; letter-spacing: var(--title-track, -0.01em); }
.loy-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--soft); }
.loy-stamps { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 52px)); justify-content: center; gap: 12px; margin: 18px 0 14px; }
.loy-stamp { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--brand-ink); }
.loy-stamp svg { width: 20px; height: 20px; }
.loy-stamp.is-on { border: 0; background: var(--brand); color: var(--on-brand); animation: stamp-in 0.35s var(--ease) both; }
.loy-stamp.is-on svg { stroke-width: 3; }
.loy-stamp.is-prize:not(.is-on) { border-style: solid; background: var(--brand-soft); }
@keyframes stamp-in { from { transform: scale(0.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .loy-stamp.is-on { animation: none; } }
.loy-text { margin: 0; font-size: 14.5px; }
.loy-card .hint { margin-top: 6px; }
.loy-card.is-ready { border-color: var(--brand); background: linear-gradient(160deg, var(--brand-soft), var(--surface) 70%); }
.loy-balance { font-family: var(--font-title); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 0; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.app-entries { padding: 4px 16px; }
.entry { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry strong { display: block; font-size: 14.5px; font-weight: 650; }
.entry small { color: var(--soft); font-size: 12.5px; }
.entry-value { font-weight: 750; white-space: nowrap; color: var(--soft); font-variant-numeric: tabular-nums; }
.entry-value.is-plus { color: var(--ok); }

/* Conta */
.acc-hero { display: grid; justify-items: center; text-align: center; padding: 26px 20px 20px; }
.acc-hero h2 { font-family: var(--font-title); font-size: 20px; margin: 12px 0 6px; letter-spacing: var(--title-track, -0.015em); }
.acc-avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.acc-avatar svg { width: 30px; height: 30px; }
.acc-avatar.is-letter { background: var(--brand); color: var(--on-brand); font-size: 26px; font-weight: 800; font-family: var(--font-title); }
.acc-perks { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 8px; text-align: left; font-size: 14.5px; }
.acc-perks li { display: flex; gap: 10px; align-items: center; }
.acc-perks svg { color: var(--ok); stroke-width: 2.6; }
.acc-hero-actions { display: grid; gap: 8px; width: 100%; max-width: 360px; }
.acc-hero-actions .btn { text-decoration: none; }
.acc-profile { display: flex; align-items: center; gap: 14px; }
.acc-profile h2 { margin: 0; font-family: var(--font-title); font-size: 19px; letter-spacing: var(--title-track, -0.01em); }
.acc-profile p { margin: 1px 0 0; font-size: 14px; }
.acc-profile small { color: var(--soft); font-size: 12.5px; }
.acc-menu { padding: 4px 0; }
.acc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; text-align: left; text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.acc-row::-webkit-details-marker { display: none; }
.acc-row > svg:first-child { width: 20px; height: 20px; color: var(--brand-ink); }
.acc-row > svg:last-child:not(:first-child) { width: 18px; height: 18px; color: var(--soft); transition: transform 0.2s var(--ease); }
.acc-row-text { flex: 1; min-width: 0; display: grid; }
.acc-row-text small { font-weight: 500; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-row.is-static { cursor: default; }
.acc-menu > * + * { border-top: 1px solid var(--line); }
details[open] > .acc-row > svg:last-child { transform: rotate(90deg); }
.acc-form { padding: 0 16px 16px; display: grid; }
.acc-form .btn { margin-top: 14px; }
.acc-danger { margin-top: 24px; text-align: center; }
.acc-danger > summary { display: inline-block; cursor: pointer; color: var(--danger); font-size: 14px; font-weight: 650; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.acc-danger > summary::-webkit-details-marker { display: none; }
.acc-danger .acc-form { text-align: left; margin-top: 12px; padding: 16px; background: var(--danger-bg); border-radius: var(--radius); }
.acc-danger .hint { color: var(--danger-ink); margin-top: 0; }
.btn-danger { background: var(--danger); color: #fff; }
.store-info { padding: 6px 16px 14px; }
.info-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; font-size: 14.5px; }
.info-row svg { width: 18px; height: 18px; color: var(--brand-ink); }
.store-hours { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; margin: 6px 0 0 30px; font-size: 13.5px; color: var(--soft); }

/* Entrar e criar conta */
.auth-form { display: grid; padding: 20px; }
.auth-lead { margin: 0 0 4px; color: var(--soft); font-size: 14.5px; }
.auth-form .btn { margin-top: 16px; }
.auth-alt { text-align: center; margin: 16px 0 0; font-size: 14.5px; }
.auth-alt a, .auth-form .hint a { color: var(--brand-ink); font-weight: 650; text-underline-offset: 3px; }
.auth-help { text-align: center; }
.auth-form input[type="password"]:not(:placeholder-shown) { letter-spacing: 0.3em; }
@media (min-width: 720px) {
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); bottom: 14px; width: min(520px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 6px); box-shadow: var(--shadow); padding-bottom: 6px; }
  .tab.is-active::before { display: none; }
  .tab.is-active { background: var(--brand-soft); }
  body.has-tabbar .bag-bar { bottom: 86px; }
}
