:root {
  /* Tema padrão: roxo do Hall Multi (negócio que ainda não publicou aparência). Cada negócio troca em theme (Painel).
     Os nomes vêm do primeiro design e ficam por compatibilidade:
     rose = cor principal, wine = cor escura, gold = destaque claro. */
  --primary: #6B21A8;
  --dark: #3F1366;
  --accent: #E9D5FF;
  --light: #F3E8FF;
  --bg: #F4F5F6;
  --ink: #1F2327;
  --card: #FFFFFF;
  --muted: #6B7280;
  --soft: #555B61;
  --line: #D9DCE0;
  /* Fontes: título e texto. Trocadas por config.js > theme.fontHead/fontBody (o painel escolhe pares). */
  --font-head: 'Montserrat';
  --font-body: 'Roboto';
  /* Forma: reta e discreta por padrão. estilo "caseiro" (config.js > theme.estilo) devolve
     bordas tracejadas, cantos bem arredondados, ondinhas e o recorte em festão. */
  --r: 8px;
  --r-btn: 6px;
  --r-lg: 12px;
  --bw: 1px;
  --bs: solid;
}
.estilo-caseiro { --r: 12px; --r-btn: 999px; --r-lg: 22px; --bw: 2.5px; --bs: dashed; }

/* Estilos do Painel (theme.estilo): cada um mexe na forma (raios, contorno, sombra, caixa alta, preço). "reto" é o padrão acima. */
.estilo-vitrine, .estilo-encarte, .estilo-suave, .estilo-oficina, .estilo-treino { --upper: uppercase; }
.estilo-vitrine { --r: 0; --r-btn: 0; --r-lg: 0; --r-tag: 0; --frame: 1px solid var(--accent); --sh: none; --ls: 0.12em; --ls-h1: 0.06em; --tag-rot: none; --price-clip: none; --price-rot: none; }
.estilo-encarte { --r: 4px; --r-btn: 4px; --r-lg: 6px; --r-tag: 0; --frame: 2px solid var(--primary); --sh: 0 3px 0 rgba(0, 0, 0, 0.14); --ls: 0.03em; --ls-h1: 0.01em; --tag-rot: rotate(-3deg); --price-clip: none; --price-rot: none; --price-fs: 18px; --price-fw: 800; }
.estilo-suave { --r: 16px; --r-btn: 999px; --r-lg: 24px; --r-tag: 999px; --frame: 1px solid var(--light); --sh: 0 8px 22px rgba(0, 0, 0, 0.09); --tag-rot: none; --price-clip: none; --price-rot: none; --upper: none; }
.estilo-oficina { --r: 2px; --r-btn: 2px; --r-lg: 4px; --r-tag: 2px; --frame: 2px solid #1C1B19; --sh: 4px 4px 0 #1C1B19; --ls: 0.04em; --ls-h1: 0.02em; --tag-rot: none; --price-clip: none; --price-rot: none; --price-fs: 16px; --price-fw: 800; }
.estilo-treino { --r: 0; --r-btn: 0; --r-lg: 0; --r-tag: 0; --frame: 1px solid rgba(255, 255, 255, 0.16); --sh: none; --ls: 0.06em; --ls-h1: 0.03em; --tag-rot: rotate(-3deg); --price-clip: none; --price-rot: none; --price-fs: 18px; --price-fw: 800; }
.estilo-vitrine .card, .estilo-encarte .card, .estilo-suave .card, .estilo-oficina .card, .estilo-treino .card,
.estilo-vitrine .promo-card, .estilo-encarte .promo-card, .estilo-suave .promo-card, .estilo-oficina .promo-card, .estilo-treino .promo-card { border: var(--frame); box-shadow: var(--sh); }
.estilo-vitrine .section-head h2, .estilo-encarte .section-head h2, .estilo-oficina .section-head h2, .estilo-treino .section-head h2,
.estilo-vitrine .promo-head h2, .estilo-encarte .promo-head h2, .estilo-oficina .promo-head h2, .estilo-treino .promo-head h2 { text-transform: var(--upper); letter-spacing: var(--ls); }
.estilo-vitrine .hero-title, .estilo-encarte .hero-title, .estilo-oficina .hero-title, .estilo-treino .hero-title { text-transform: var(--upper); letter-spacing: var(--ls-h1); }
.estilo-vitrine .promo-badge, .estilo-encarte .promo-badge, .estilo-suave .promo-badge, .estilo-oficina .promo-badge, .estilo-treino .promo-badge { border-radius: var(--r-tag); transform: var(--tag-rot); }
.estilo-vitrine .price-tag, .estilo-encarte .price-tag, .estilo-suave .price-tag, .estilo-oficina .price-tag, .estilo-treino .price-tag { clip-path: var(--price-clip); transform: var(--price-rot); padding: 4px 10px; font-size: var(--price-fs, 15.5px); font-weight: var(--price-fw, 700); }
.estilo-encarte .price, .estilo-oficina .price, .estilo-treino .price { font-size: var(--price-fs); font-weight: var(--price-fw); }
/* treino: fundo escuro. O Painel manda as cores (bg, card, ink...); --lite é o tom claro para títulos, abas e preço sobre o escuro. */
.estilo-treino .section-head h2, .estilo-treino .nav a, .estilo-treino .price, .estilo-treino .promo-head h2 { color: var(--lite, #fff); }
.estilo-treino .nav a { border-color: var(--lite, #fff); }
.estilo-treino .nav a.is-active { background: var(--lite, #fff); color: #17151A; }
/* classico: borda dupla fina e cantos quase retos, tom de cardápio impresso. */
.estilo-classico { --r: 2px; --r-btn: 2px; --r-lg: 3px; --r-tag: 2px; --frame: 4px double var(--accent); --sh: none; --tag-rot: none; --price-clip: none; --price-rot: none; }
/* pop: contorno grosso, sombra de cor e etiquetas inclinadas. */
.estilo-pop { --r: 12px; --r-btn: 999px; --r-lg: 18px; --r-tag: 6px; --frame: 3px solid var(--ink); --sh: 4px 4px 0 var(--primary); --tag-rot: rotate(-4deg); --price-clip: none; --price-rot: none; --price-fs: 18px; --price-fw: 800; }
/* natural: cantos bem redondos, sem contorno e sombra bem leve. */
.estilo-natural { --r: 22px; --r-btn: 999px; --r-lg: 28px; --r-tag: 999px; --frame: 0 solid transparent; --sh: 0 4px 14px rgba(0, 0, 0, 0.07); --tag-rot: none; --price-clip: none; --price-rot: none; }
/* noturno: fundo escuro (o Painel manda as cores), cantos médios e letra normal. Como o treino, usa --lite nos títulos. */
.estilo-noturno { --r: 10px; --r-btn: 10px; --r-lg: 14px; --r-tag: 6px; --frame: 1px solid rgba(255, 255, 255, 0.14); --sh: none; --tag-rot: none; --price-clip: none; --price-rot: none; }
.estilo-classico .card, .estilo-pop .card, .estilo-natural .card, .estilo-noturno .card,
.estilo-classico .promo-card, .estilo-pop .promo-card, .estilo-natural .promo-card, .estilo-noturno .promo-card { border: var(--frame); box-shadow: var(--sh); }
.estilo-classico .promo-badge, .estilo-pop .promo-badge, .estilo-natural .promo-badge, .estilo-noturno .promo-badge { border-radius: var(--r-tag); transform: var(--tag-rot); }
.estilo-classico .price-tag, .estilo-pop .price-tag, .estilo-natural .price-tag, .estilo-noturno .price-tag { clip-path: var(--price-clip); transform: var(--price-rot); padding: 4px 10px; font-size: var(--price-fs, 15.5px); font-weight: var(--price-fw, 700); }
.estilo-pop .price { font-size: var(--price-fs); font-weight: var(--price-fw); }
.estilo-noturno .section-head h2, .estilo-noturno .nav a, .estilo-noturno .price, .estilo-noturno .promo-head h2 { color: var(--lite, #fff); }
.estilo-noturno .nav a { border-color: var(--lite, #fff); }
.estilo-noturno .nav a.is-active { background: var(--lite, #fff); color: #17151A; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body {
  margin: 0;
  padding: 0;
  /* fundo ao redor da coluna no computador: a cor principal; config.js > theme.pageBackground põe ícones espalhados nela */
  background: var(--page-bg, var(--primary));
}
a { text-decoration: none; }
a:hover { opacity: 0.85; }
@keyframes dl-spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
button { font: inherit; }

.page {
  font-family: var(--font-body), sans-serif;
  background: var(--bg);
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow-x: clip;
}
.page[data-state="loading"] main,
.page[data-state="loading"] .footer { visibility: hidden; }

/* Sem rolagem da página por baixo: durante o loading (o conteúdo ainda está escondido, mas ocupa altura) e com o carrinho
   ou a montagem abertos. Dentro deles, a rolagem não passa para a página (overscroll-behavior). */
html:has(.page[data-state="loading"]), html:has(.sheet.is-open), html:has(.builder.is-open) { overflow: hidden; }
.page[data-state="loading"] { height: 100vh; height: 100dvh; overflow: hidden; }
.sheet, .sheet-body, .builder, .builder-body { overscroll-behavior: contain; }
.loader { position: fixed; inset: 0; background: var(--primary); z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.page:not([data-state="loading"]) .loader { display: none; }

/* Tela de boas-vindas do primeiro acesso (splash.js): cobre tudo, inclusive o loader. No computador a abertura fica numa coluna de celular. */
.splash { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: center; background: #16121C; }
.splash-stage { width: 100%; max-width: 430px; height: 100%; }
html.is-splash { overflow: hidden; }

/* Loading Hall Multi v1 (loader.js): o H e o nome entram em sequência, nas cores do tema. */
.loader hall-multi-loader { width: min(56vw, 200px); }

.status {
  padding: 40px 24px;
  text-align: center;
  font-family: var(--font-head), sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--dark);
  line-height: 1.4;
}
.status a { color: var(--primary); font-family: var(--font-body), sans-serif; font-weight: 700; font-size: 15px; display: inline-block; margin-top: 12px; text-decoration: underline; }

/* header */
.header {
  height: 56px;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.header-inner { height: 100%; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; container-type: inline-size; }
.logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.logo svg { flex-shrink: 0; }
.logo-img { height: 34px; width: auto; display: block; }
.logo-photo { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; display: block; }
.footer-logo-img { height: 30px; margin-bottom: 10px; }
.logo-name { font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 22px; color: var(--light); letter-spacing: 0.3px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-share { height: 34px; border-radius: 999px; background: var(--light); color: var(--dark); border: 0; display: flex; align-items: center; gap: 6px; padding: 0 16px; font-weight: 700; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.btn-share svg { flex: none; }
/* Nome longo nunca esbarra no botão: fica numa linha só (com reticências) e, em tela estreita, o botão vira só o ícone. */
.logo-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 400px) {
  .logo-name { font-size: 20px; }
  .btn-share { width: 40px; height: 40px; padding: 0; justify-content: center; gap: 0; }
  .btn-share-text { display: none; }
}
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 400; background: var(--dark); color: var(--light); font-size: 13.5px; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); pointer-events: none; }

/* hero + padrão de ícones (mesma máscara no evento) */
.hero { background: linear-gradient(150deg, var(--primary), var(--dark) 65%); padding: 36px 24px 32px; position: relative; overflow: hidden; }
.hero::before, .event::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  transform: rotate(18deg);
  background: var(--accent);
  -webkit-mask: var(--hero-pattern, url('assets/pattern.svg?v=3')) 0 0 / 128px 128px;
  mask: var(--hero-pattern, url('assets/pattern.svg?v=3')) 0 0 / 128px 128px;
  z-index: 0;
}
.hero::before { background: var(--hero-pattern-color, var(--dark)); opacity: 0.45; }
.event::before { background: var(--event-pattern-color, var(--accent)); opacity: 0.22; }
.hero-inner { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 10px; }
.hero-kicker div { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--light); }
.hero-title { font-family: var(--font-head), sans-serif; font-weight: 800; font-size: 30px; line-height: 1.15; color: #fff; margin: 16px 0 4px; letter-spacing: -0.3px; }
.hero-hl { margin: 0 0 14px; }
.hero-hl span { font-family: var(--font-head), sans-serif; font-weight: 800; font-style: italic; font-size: 50px; line-height: 1; color: var(--light); letter-spacing: -1px; display: inline-block; }
.hero-hl svg { display: none; margin-top: 2px; }
.estilo-caseiro .hero-hl svg { display: block; }
.hero-text { color: rgba(255, 255, 255, 0.88); font-size: 16px; line-height: 1.55; margin: 0; max-width: 320px; }
.hero-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-links[hidden], .hero-info[hidden] { display: none; }
.hero-link { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--dark); font-weight: 700; font-size: 12.5px; padding: 9px 14px; border-radius: var(--r-btn); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.hero-link[hidden] { display: none; }
.hero-link--md { padding: 6px 14px 6px 6px; }
.hero-link img, .footer-link img { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; flex-shrink: 0; }
.hero-info { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.hero-info > div { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.85); font-size: 13.5px; }
.hero-maps { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.85); font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; flex-shrink: 0; }
.hero-info svg, .footer-contact svg { flex-shrink: 0; }

.scallop { display: none; height: 18px; background: radial-gradient(circle at 12px 0, var(--bg) 12px, transparent 13px) 0 -12px / 24px 24px repeat-x, var(--primary); }
.estilo-caseiro .scallop { display: block; }

/* fotos (placeholder listrado quando não há foto) */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9e9e9;
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 9px);
  color: var(--muted);
  font-family: monospace;
  text-align: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.ph--none { cursor: default; color: #b8b8b8; }
.ph--img { background: var(--card); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* promoções */
.promo { padding: 26px 0 6px; }
.promo-head { padding: 0 20px; }
.promo-head h2 { font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 24px; color: var(--primary); margin: 0 0 2px; }
.promo-head p { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
/* fundo das promoções: xadrez cinza; um negócio pode trocar por foto em config.js > theme.promoBg */
/* Sem foto nem xadrez pedido (theme.promoBg/promoCheckLine), o fundo é um degradê iluminado
   com as próprias cores do tema (rose/gold/wine) — todo negócio já tem essas 3 cores, então
   isso não exige nenhuma configuração nova. Foto ou xadrez tipo gingham sobrescrevem via
   --promo-bg (ver applyTheme em core.js). */
.promo-band { background-color: var(--promo-check-bg, var(--primary)); background-image: var(--promo-bg, linear-gradient(150deg, var(--promo-accent, var(--primary)), var(--dark) 65%)); background-size: var(--promo-size, cover); background-position: center; background-repeat: var(--promo-repeat, no-repeat); }
.promo-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 24px; scrollbar-width: none; padding: 24px 0 16px; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-track::before { content: ""; width: 24px; flex-shrink: 0; }
.promo-track::after { content: ""; width: 12px; flex-shrink: 0; }
.promo-card { min-width: 210px; width: 210px; flex-shrink: 0; background: var(--card); border-radius: var(--r); border: 0; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); scroll-snap-align: start; position: relative; }
.promo-badge { position: absolute; top: -12px; left: -10px; max-width: calc(100% + 4px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--dark); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 4px; transform: rotate(-8deg); z-index: 2; letter-spacing: 0.4px; text-transform: uppercase; }
.promo-card .ph { width: 100%; aspect-ratio: 1 / 1; font-size: 10px; padding: 8px; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; }
.promo-body { padding: 12px 14px 14px; }
.promo-name { font-family: var(--font-head), sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; height: 40px; overflow: hidden; text-align: center; display: flex; align-items: center; justify-content: center; }
.promo-price { display: flex; justify-content: center; margin-top: 8px; }
.price-tag { display: inline-block; background: var(--accent); color: var(--primary); font-weight: 700; font-size: 15.5px; padding: 4px 10px 4px 14px; clip-path: polygon(12% 0, 100% 0, 100% 100%, 12% 100%, 0 50%); transform: rotate(-2deg); }
.price-tag s { font-weight: 400; font-size: 11.5px; opacity: 0.7; margin-right: 4px; }
.promo-actions { display: flex; gap: 6px; margin-top: 10px; }
.promo-actions .btn-order-block { margin-top: 0; flex: 1; }
.btn-order-block { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; background: var(--primary); color: var(--accent); font-size: 13px; font-weight: 700; padding: 8px 10px; border-radius: var(--r-btn); }

/* navegação por seção */
.navwrap { position: sticky; top: 0; z-index: 40; background: var(--card); transition: box-shadow 0.2s; }
.navwrap.is-stuck { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.navwrap { padding: 10px 16px 8px; }
.nav-row { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; min-width: 0; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.navbar { height: 12px; background: var(--primary); margin-bottom: 12px; }
.nav a { border: 1.5px solid var(--primary); color: var(--primary); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: var(--r-btn); white-space: nowrap; flex-shrink: 0; transition: background-color 0.15s, color 0.15s; }
.nav a.is-active { background: var(--primary); color: var(--accent); }
/* setas prev/next: só aparecem quando há mais seções do que cabem na tela */
.nav-arrow { display: none; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--primary); background: var(--card); color: var(--primary); align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.navwrap.can-scroll-l .nav-arrow--l, .navwrap.can-scroll-r .nav-arrow--r { display: flex; }
/* linha "Exibição": seletor grade | lista */
/* linha "Exibição": não fixa, rola junto com a página (só a barra de seções fica no topo) */
.view-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border-top: 1px solid var(--line); padding: 8px 16px; }
.view-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.view-seg { display: flex; gap: 4px; background: var(--line); border-radius: 999px; padding: 4px; flex-shrink: 0; }
.view-btn { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; padding: 0; background: transparent; color: var(--muted); }
.view-btn.is-active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }

/* seções e cards de produto */
.section { padding: 36px 14px 8px; scroll-margin-top: 64px; }
/* respiro depois da última seção: ela não cola no rodapé (nem fica sob a busca flutuante) */
#sections { padding-bottom: 48px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-icon { width: 34px; height: 34px; border-radius: var(--r-btn); background: var(--primary); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.section-head h2 { font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 24px; color: var(--primary); margin: 0; }
.section-wave { display: none; margin-bottom: 18px; color: var(--accent); }
.estilo-caseiro .section-wave { display: block; }
.estilo-caseiro .section-head { margin-bottom: 6px; }
.list { display: flex; flex-direction: column; gap: 12px; }
.card { display: flex; gap: 12px; background: var(--card); border-radius: var(--r); border: 0; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); padding: 10px; align-items: stretch; }
.card .ph { width: 84px; height: 84px; flex-shrink: 0; align-self: flex-start; border-radius: var(--r); font-size: 8px; padding: 4px; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-name { font-family: var(--font-head), sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); }
.card-desc { font-size: 12.5px; color: var(--soft); margin-top: 3px; line-height: 1.4; }
.card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: auto; padding-top: 8px; gap: 8px; }
.foot-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.price { font-weight: 700; color: var(--dark); font-size: 17px; }
.price s { font-weight: 400; font-size: 12px; color: var(--muted); margin-right: 4px; }
.btn-order { display: flex; align-items: center; gap: 6px; background: var(--primary); color: var(--accent); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: var(--r-btn); flex-shrink: 0; }
.off-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--dark); color: var(--light); border-radius: var(--r-btn); padding: 5px 12px; flex-shrink: 0; }
.is-off { opacity: 0.6; }
.is-off .ph { filter: grayscale(1); }
.is-off .price { display: none; }

/* modo grade (3 colunas) — alternativa ao modo lista, escolha do cliente guardada no aparelho */
.is-grid .list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.is-grid .card { flex-direction: column; padding: 8px; gap: 0; align-items: stretch; }
.is-grid .card .ph { width: 100%; height: auto; aspect-ratio: 1 / 1; align-self: stretch; border-radius: calc(var(--r) - 2px); }
/* Foto de verdade vai de ponta a ponta do quadro: o respiro (padding) dos cartões é só do placeholder, que tem ícone no meio. */
.card .ph--img, .promo-card .ph--img { padding: 0; }
.is-grid .card-body { margin-top: 6px; }
.is-grid .card-name { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-grid .card-desc { display: none; }
.is-grid .card-foot { flex-direction: column; align-items: stretch; gap: 6px; }
.is-grid .foot-actions { margin-left: 0; width: 100%; }
.is-grid .card .cart-ctl { display: block; flex: 1; min-width: 0; }
.is-grid .card .foot-actions .stepper { width: 100%; justify-content: space-between; }
.is-grid .card .cart-add, .is-grid .card .btn-order, .is-grid .card .off-tag { width: 100%; justify-content: center; }
.is-grid .card .price { font-size: 13.5px; }
.is-grid .card .cart-add, .is-grid .card .btn-order { font-size: 12px; padding: 6px 4px; }

.note { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: var(--bw) var(--bs) var(--accent); border-radius: var(--r); padding: 12px 14px; margin-top: 16px; }
.note svg { color: var(--primary); flex-shrink: 0; margin-top: 1px; transform: rotate(-8deg); }
.note span { font-family: var(--font-head), sans-serif; font-style: italic; font-weight: 600; font-size: 13.5px; color: var(--dark); line-height: 1.45; }

/* evento sob encomenda */
.event { margin: 32px 0 0; background: linear-gradient(150deg, var(--primary), var(--dark) 65%); padding: 38px 24px; text-align: center; position: relative; overflow: hidden; }
.event-inner { position: relative; }
.event-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.event h3 { font-family: var(--font-head), sans-serif; font-weight: 800; font-style: italic; font-size: 28px; line-height: 1.15; color: #fff; margin: 0 auto 14px; max-width: 320px; }
.event p { font-size: 14.5px; color: rgba(255, 255, 255, 0.85); line-height: 1.55; margin: 0 auto 22px; max-width: 300px; }
.btn-event { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--dark); font-weight: 800; font-size: 15px; padding: 12px 24px; border-radius: var(--r-btn); }


/* rodapé */
.footer { padding: 30px 20px calc(24px + env(safe-area-inset-bottom)); color: #fff; position: relative; text-align: left; background: var(--dark); }
.footer-grid { display: grid; gap: 26px; max-width: 480px; margin: 0 auto; }
.footer-grid > div[hidden] { display: none; }
.footer-name { font-family: var(--font-head), sans-serif; font-weight: 800; font-style: italic; font-size: 22px; color: #fff; margin-bottom: 6px; }
.footer-text { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); margin: 0; max-width: 280px; }
.footer-h { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-link { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--dark); font-weight: 700; font-size: 12.5px; padding: 9px 14px; border-radius: var(--r-btn); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); }
.footer-link[hidden] { display: none; }
.footer-link--md { padding: 6px 14px 6px 6px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact > div { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.8); font-size: 13px; }
.footer-map { margin-top: 10px; display: block; width: 50%; border-radius: var(--r); overflow: hidden; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.15); }
.footer-map[hidden] { display: none; }
/* Mapa (opcional, some sem o link) e App da loja (sempre): lado a lado, cada um com metade da largura. */
.footer-tiles { display: flex; gap: 10px; align-items: stretch; }
.footer-tiles > .footer-map, .footer-tiles > .footer-app { margin-top: 0; width: calc(50% - 5px); flex: 0 0 calc(50% - 5px); box-sizing: border-box; }
.footer-app { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; cursor: pointer; }
.footer-app-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--light); color: var(--dark); display: grid; place-items: center; }
.footer-app-badge { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--dark); display: grid; place-items: center; border: 2px solid var(--dark); box-sizing: border-box; }
.footer-app-label { font-weight: 700; font-size: 12.5px; }
.footer-map-art {
  height: 80px;
  background-color: #b8b8b8;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-map-cta { background: var(--light); color: var(--dark); font-weight: 700; font-size: 12.5px; padding: 9px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.footer-map-cta svg:last-child { margin-left: -2px; }
.footer-base { max-width: 480px; margin: 24px auto 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 16px; }
.footer-sign { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); margin: 0 0 10px; }
.footer-credit { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(255, 255, 255, 0.85); margin: 0; }
.footer-credit b { color: #fff; letter-spacing: 0.04em; }

/* visualizador de foto */
.viewer { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.78); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.viewer-box { max-width: 360px; width: 100%; position: relative; }
.viewer-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: var(--r-btn); background: var(--light); color: var(--dark); border: 2px solid var(--dark); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1; padding: 0; }
.viewer-frame { aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; border: var(--bw) var(--bs) var(--accent); background-color: #e9e9e9; background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 9px); }
.viewer-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* pedido com vários itens (carrinho opcional) */
.cart-add { width: 32px; height: 32px; border-radius: var(--r-btn); background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex-shrink: 0; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--primary); color: var(--accent); border-radius: var(--r-btn); padding: 2px; flex-shrink: 0; }
.stepper button { width: 28px; height: 28px; border-radius: var(--r-btn); background: transparent; color: inherit; border: 0; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.stepper b { min-width: 20px; text-align: center; font-size: 14px; color: #fff; }

.bag { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); right: max(16px, calc(50% - 264px)); z-index: 90; width: 60px; height: 60px; border-radius: 999px; background: var(--dark); color: var(--light); border: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); cursor: pointer; padding: 0; }
.bag:active { transform: scale(0.95); }
.bag.is-bump { animation: dl-bump 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.bag.is-bump .bag-count { animation: dl-pop 0.45s ease-out; }
@keyframes dl-bump { 0% { transform: scale(1); } 35% { transform: scale(1.2) rotate(-6deg); } 65% { transform: scale(0.95) rotate(3deg); } 100% { transform: scale(1); } }
@keyframes dl-pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bag.is-bump, .bag.is-bump .bag-count { animation: none; } }
/* entrada dos cards ao rolar (core: Hotsite.reveal) */
.rv { opacity: 0; transform: translateY(16px); }
.rv.rv-in { opacity: 1; transform: none; transition: opacity 0.5s ease var(--rv-d, 0ms), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) var(--rv-d, 0ms); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }
.bag-count { position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--dark); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 2px solid var(--bg); }
.bag .ico-mesa, .bag.is-mesa .ico-cart { display: none; }
.bag.is-mesa .ico-mesa { display: block; }
.has-bag .footer { padding-bottom: 92px; }

.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
.sheet { opacity: 0; transition: opacity 0.25s ease; }
.sheet.is-open { opacity: 1; }
.sheet-panel { transform: translateY(28px); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet.is-open .sheet-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-panel { transition: none; } }
.sheet-panel { background: var(--bg); width: 100%; max-width: 560px; max-height: 90vh; max-height: min(90dvh, 100%); display: flex; flex-direction: column; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px 20px; }
.sheet-foot { padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.sheet-grip { width: 40px; height: 5px; border-radius: 999px; background: var(--accent); margin: 10px auto 0; flex-shrink: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 12px; flex-shrink: 0; }
.sheet-head h3 { font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 24px; color: var(--primary); margin: 0; }
.sheet-close { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--dark); border: 0; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.sheet-list { background: var(--card); border-radius: 16px; padding: 0 14px; border: 1px solid var(--line); }
.sheet-list:empty { display: none; }
.sheet-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet-item-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-item-info { flex: 1; min-width: 0; }
.sheet-item-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sheet-item-line { font-weight: 700; font-size: 14px; color: var(--ink); }
.sheet-item-notebtn { margin-top: 6px; min-height: 44px; background: none; border: 0; color: var(--dark); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 0; text-align: left; }
.sheet-item:last-child { border-bottom: 0; }
.sheet-item .stepper { background: var(--dark); border-radius: 14px; padding: 0; gap: 0; }
.sheet-item .stepper button { width: 44px; height: 44px; border-radius: 14px; color: var(--accent); }
.sheet-item .stepper b { min-width: 52px; padding: 0 2px; font-size: 15px; white-space: nowrap; }
.sheet-item-name { font-family: var(--font-head), sans-serif; font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--ink); }
.sheet-item-price { font-size: 13px; color: var(--muted); margin-top: 3px; }
.sheet-note { margin-top: 0; }
.sheet-label span { font-family: var(--font-body), sans-serif; font-weight: 400; color: var(--muted); font-size: 14px; }
.sheet-note input, .checkout input { display: block; width: 100%; box-sizing: border-box; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); }
.sheet-note input:focus, .checkout input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-size: 15px; color: var(--ink); }
.sheet-total b { font-family: var(--font-head), sans-serif; font-size: 22px; color: var(--dark); }
.sheet-send { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--dark); color: var(--accent); font-weight: 700; font-size: 16px; height: 52px; border-radius: 14px; }
.sheet-clear { display: block; margin: 14px auto 0; min-height: 44px; background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }

/* recebimento: retirada, entrega e mesa */
.checkout { display: block; }
.checkout > * + * { margin-top: 10px; }
.sheet-label { font-family: var(--font-head), sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); margin: 26px 0 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.addr-opt { display: block; width: 100%; border: 1.5px solid var(--line); background: var(--card); color: var(--dark); border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-align: left; }
.addr-opt.is-active { background: var(--dark); border-color: var(--dark); color: var(--light); }
.addr-saved { display: grid; gap: 6px; margin-bottom: 8px; }
.addr-saved:empty { display: none; }
#addr-form { display: grid; gap: 8px; }

.sheet-fee { margin: 0 0 4px; font-size: 15px; }
.checkout-hint { margin: 0 0 8px; color: #8A4B00; font-weight: 600; font-size: 13.5px; }
.sheet-send.is-disabled { opacity: 0.45; }

/* escolha única (radio): recebimento e mesa */
.pill { position: relative; display: inline-block; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: block; border: 1.5px solid var(--line); background: var(--card); color: var(--soft); border-radius: 14px; padding: 12px 8px; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center; }
.pill input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--dark); outline-offset: 2px; }
.seg { flex-wrap: nowrap; gap: 10px; }
.seg .pill { flex: 1; display: flex; }
.seg .pill span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; padding: 8px; }
.seg .pill svg { flex-shrink: 0; }
#box-table .sheet-label, #box-name .sheet-label, #box-phone .sheet-label { margin-bottom: 8px; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.pill--table { display: block; }
.pill--table span { border-radius: 12px; padding: 0; height: 44px; line-height: 41px; font-size: 15px; color: var(--soft); }
.pill--table input:checked + span { color: var(--accent); }
.mesa-locked { display: inline-flex; justify-self: start; width: fit-content; align-items: center; gap: 12px; background: var(--dark); color: var(--light); padding: 10px 16px; border-radius: var(--r-lg); }
.mesa-locked[hidden] { display: none; }
.mesa-locked-k { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.mesa-locked-v { font-family: var(--font-head), sans-serif; font-weight: 800; font-size: 19px; }

.queue-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* acompanhamento do pedido: botão do carrinho vira o de acompanhar (ref "Acompanhamento de Pedido" 1a) */
.bag .ico-track, .bag.is-track .ico-cart, .bag.is-track .ico-mesa { display: none; }
.bag.is-track .ico-track { display: block; }
.bag.is-track { background: var(--accent); color: var(--dark); }
.bag.is-track .bag-count { background: var(--dark); color: var(--light); }
.sheet-track { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 0 0 12px; border: 1.5px solid var(--dark); border-radius: 12px; background: var(--light); color: var(--dark); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.sheet-track[hidden] { display: none; }

.track { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); right: max(16px, calc(50% - 264px)); z-index: 95; width: min(320px, calc(100vw - 32px)); max-height: calc(100dvh - 130px - env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 36px rgba(20, 10, 10, 0.35); overflow: hidden; animation: dl-cardIn 0.25s ease-out; }
.track[hidden] { display: none; }
@keyframes dl-cardIn { 0% { opacity: 0; transform: translateY(10px) scale(0.96); } 100% { opacity: 1; transform: none; } }
@keyframes dl-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 80%, transparent); } 100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 0%, transparent); } }
.track-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; background: var(--dark); color: var(--light); padding: 14px 16px; flex-shrink: 0; }
.track-head-text { min-width: 0; }
.track-title { font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 18px; line-height: 1.2; }
.track-sub { font-size: 12.5px; opacity: 0.85; margin-top: 3px; }
.track-close { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--dark); border: 0; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex-shrink: 0; }
.track-list { overflow-y: auto; overscroll-behavior: contain; }
.track-order { padding: 14px 16px; }
.track-order + .track-order { border-top: 1px solid var(--line); }
.track-order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.track-where { font-weight: 700; font-size: 14.5px; color: var(--primary); line-height: 1.25; }
.track-id { font-size: 12px; color: var(--muted); }
.track-eta { background: var(--light); color: var(--dark); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.track-x { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--light); color: var(--dark); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0; }
.track-step { position: relative; display: flex; gap: 12px; padding-bottom: 10px; }
.track-step:last-of-type { padding-bottom: 0; }
.track-order.is-full .track-step { padding-bottom: 16px; }
.track-line { position: absolute; left: 12px; top: 28px; bottom: -2px; width: 2px; background: var(--line); }
.track-step.is-done .track-line { background: var(--dark); }
.track-dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); border: 2px solid var(--line); }
.track-step.is-done .track-dot { background: var(--dark); color: var(--light); border-color: var(--dark); }
.track-step.is-cur .track-dot { background: var(--accent); color: var(--dark); border-color: var(--accent); animation: dl-pulse 1.4s ease-out infinite; }
.track-ttl { font-size: 14.5px; font-weight: 500; color: var(--muted); line-height: 26px; }
.track-step.is-done .track-ttl, .track-step.is-cur .track-ttl { font-weight: 700; color: var(--ink); }
.track-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: -2px; }
.track-sum { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.track-warn { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #f5c6c6; color: #5c1a1a; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.track-link { display: block; width: 100%; margin: 10px 0 0; background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: underline; text-align: center; cursor: pointer; }
.track-foot { padding: 10px 16px 14px; border-top: 1px solid var(--line); flex-shrink: 0; }
.track-new { display: block; width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--dark); color: var(--accent); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .track-step.is-cur .track-dot { animation: none; } }

/* com carrinho ligado, "Adicionar" substitui o Pedir individual */
.cart-add { width: auto; height: auto; padding: 7px 14px; border: 0; background: var(--primary); color: var(--accent); gap: 5px; font: inherit; font-weight: 700; font-size: 13px; }
.promo-actions .cart-ctl { flex: 1; display: flex; }
.promo-actions .cart-add { width: 100%; justify-content: center; padding: 8px 10px; }
.promo-actions .stepper { width: 100%; justify-content: space-between; }

.logo svg, .hero-kicker svg, .hero-hl svg { color: var(--light); }

@media (prefers-reduced-motion: reduce) {
}

/* arrastar com o mouse no computador (o toque no celular já rola sozinho) */
@media (hover: hover) and (pointer: fine) {
  .promo-track, .nav { cursor: grab; }
}
.is-drag { cursor: grabbing !important; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; -webkit-user-select: none; }
.is-drag * { pointer-events: none; }

/* Fundo do topo (hero) e do "Sob encomenda" (event): config.js > theme.heroBackground/heroPattern e eventBackground/eventPattern.
   Cor de destaque ('accent'): o texto usa --hero-ink / --event-ink (escuro ou branco, o que contrasta com o destaque). */
.hero-solid .hero, .event-solid .event { background: var(--primary); }
.hero-accent .hero { background: var(--highlight, var(--accent)); }
.event-accent .event { background: var(--highlight, var(--accent)); }
.hero-nopattern .hero::before, .event-nopattern .event::before { display: none; }
.hero-accent .hero::before { background: var(--hero-pattern-color, var(--hero-ink, #1C1B19)); opacity: 0.25; }
.event-accent .event::before { background: var(--event-pattern-color, var(--event-ink, #1C1B19)); opacity: 0.25; }
.hero-accent .hero-title, .hero-accent .hero-text, .hero-accent .hero-hl span, .hero-accent .hero-kicker div,
.hero-accent .hero-info > div, .hero-accent .hero-maps, .hero-accent .hero-kicker svg, .hero-accent .hero-hl svg { color: var(--hero-ink, #1C1B19); }
.event-accent .event-kicker, .event-accent .event h3, .event-accent .event p { color: var(--event-ink, #1C1B19); }
.event-accent .btn-event { background: var(--dark); color: #fff; }

/* Modo prévia (iframe do Painel, ?preview=1): sem interação e sem barra de rolagem
   (o celular de verdade também não mostra uma barra grossa). */
html.is-preview { scrollbar-width: none; }
/* Na prévia quem cobre a tela até carregar é o Painel (assim o layout não pula quando entram a barra de cima e a de baixo). */
.is-preview .loader { display: none; }
html.is-preview::-webkit-scrollbar, .is-preview ::-webkit-scrollbar { display: none; }
/* Prévia só para ver o visual: sem carrinho, pedido, aviso de pedido nem contato (rolagem, barra de seções, âncoras, grade/lista e busca seguem). */
.is-preview #bag, .is-preview #sheet, .is-preview #track, .is-preview .cart-add, .is-preview .stepper { display: none !important; }
.is-preview a[target="_blank"] { pointer-events: none; }

/* montagem de itens (modules/builder.js) */
.sheet-item-extra { font-size: 12.5px; color: var(--soft); margin-top: 2px; line-height: 1.35; }
.builder { font-family: var(--font-body), sans-serif; color: var(--ink); position: fixed; inset: 0; z-index: 260; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end; justify-content: center; transition: background 0.25s; }
.builder.is-open { background: rgba(0, 0, 0, 0.5); }
.builder-panel { width: 100%; max-width: 560px; max-height: 90vh; max-height: min(90dvh, 100%); display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(100%); transition: transform 0.25s; }
.builder.is-open .builder-panel { transform: translateY(0); }
.builder-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 6px; }
.builder-head h3 { font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 20px; color: var(--primary); margin: 0; }
.builder-close { width: 36px; height: 36px; border-radius: var(--r-btn); background: var(--light); color: var(--dark); border: 0; font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.builder-hint { margin: 0; padding: 0 18px 8px; font-size: 13px; color: var(--muted); }
.builder-body { overflow-y: auto; padding: 4px 18px 12px; flex: 1; }
.builder-group h4 { margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); }
.builder-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.builder-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.builder-row:not(.is-on) .builder-name { color: var(--muted); font-weight: 500; text-decoration: line-through; }
.builder-price { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.builder .stepper button:disabled { opacity: 0.35; cursor: default; }
.builder-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.builder-add { width: 100%; padding: 14px; border: 0; border-radius: var(--r-btn); background: var(--primary); color: var(--accent); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.card-custom { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.card--build { background: var(--light); border-color: var(--primary); }

/* modo mercado (modules/market.js) */
.card-unit { font-size: 12px; color: var(--muted); margin-top: 3px; }
/* catálogo grande (modules/catalog.js): paginação por seção e busca flutuante */
.catalog-total { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.catalog-more { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.catalog-more--done { margin-top: 14px; gap: 6px; }
.catalog-progress { font-size: 13px; color: var(--soft); }
.catalog-progress b { color: var(--dark); }
.catalog-bar { width: 100%; max-width: 220px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.catalog-bar span { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width 0.3s; }
.catalog-more-btn { width: 100%; height: 46px; border-radius: var(--r-btn); border: 2px solid var(--primary); background: var(--card); color: var(--primary); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; }
.catalog-less-btn { background: transparent; border: 0; color: var(--primary); font: inherit; font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.catalog-search.is-early { display: none; }
.catalog-search { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: max(14px, calc(50% - 266px)); right: max(14px, calc(50% - 266px)); z-index: 80; transition: transform 0.28s cubic-bezier(0.3, 0.9, 0.3, 1), opacity 0.2s; }
/* com o carrinho na tela (tem item), a busca deixa a vaga dele no lado direito */
.bag:not([hidden]) + .catalog-search { right: max(90px, calc(50% - 190px)); }
.catalog-search.is-hidden { transform: translateY(110px); opacity: 0; pointer-events: none; }
.catalog-count { display: inline-block; margin: 0 0 6px 12px; background: var(--dark); color: var(--light); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-btn); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); }
.catalog-field { display: flex; align-items: center; gap: 8px; height: 50px; box-sizing: border-box; border-radius: var(--r-btn); background: var(--card); border: 2px solid var(--dark); color: var(--dark); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); padding: 0 8px 0 16px; }
.catalog-field svg { flex-shrink: 0; }
.catalog-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.catalog-field input::-webkit-search-cancel-button, .catalog-field input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.catalog-clear { width: 32px; height: 32px; border-radius: var(--r-btn); border: 0; background: var(--dark); color: var(--light); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; }
.catalog-empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.catalog-empty button { margin-top: 12px; background: var(--primary); color: var(--accent); border: 0; border-radius: var(--r-btn); padding: 9px 18px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.seg--wrap { flex-wrap: wrap; }
.seg--wrap .pill span { min-height: 0; flex-direction: row; padding: 12px 14px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.pay-head .sheet-label { margin: 0; }
.pay-toggle { display: flex; background: var(--line); border-radius: 10px; padding: 3px; flex-shrink: 0; }
.pay-toggle button { border: 0; border-radius: 8px; padding: 0 14px; height: 36px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; background: transparent; color: var(--muted); }
.pay-toggle button.is-on { background: var(--card); color: var(--dark); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-method { height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--soft); font: inherit; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; padding: 0 6px; }
.pay-method:last-child:nth-child(3n + 1) { grid-column: span 2; }
.pay-method .pay-check { display: none; }
.pay-method.is-on { background: var(--dark); border-color: var(--dark); color: var(--accent); }
.pay-method.is-on .pay-check { display: inline-flex; }
.pay-split, .pay-cash { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.pay-split { padding: 6px 14px 14px; }
.pay-split-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay-split-name { flex: 1; font-weight: 600; font-size: 15px; color: var(--ink); }
.pay-money { position: relative; width: 132px; }
.pay-money span { position: absolute; left: 12px; top: 0; height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--muted); pointer-events: none; }
#pay-box .pay-money input { display: block; width: 100%; box-sizing: border-box; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px 0 36px; font: inherit; font-weight: 700; font-size: 16px; text-align: right; color: var(--ink); background: var(--bg); }
#pay-box .pay-money input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.pay-fill { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--light); color: var(--dark); font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; }
.pay-fill[hidden] { display: none; }
.pay-split-track { margin-top: 12px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pay-split-fill { height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width 0.2s; }
.pay-split-fill.is-ok { background: var(--primary); }
.pay-split-fill.is-over { background: #B3402A; }
.pay-split-foot { margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.pay-split-foot b.is-ok { color: var(--primary); }
.pay-split-foot b.is-over { color: #B3402A; }
.pay-split-foot b.is-warn { color: #8A4B00; }
.pay-cash-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay-cash-row + #pay-change-box, #pay-change-box .pay-cash-row { margin-top: 10px; }
.pay-cash-q { flex: 1; font-weight: 600; font-size: 15px; color: var(--ink); }
#pay-change-box .pay-cash-q { font-weight: 400; font-size: 14px; }
.pay-cash .pay-toggle { margin-top: 0; }
.pay-cash-note { margin-top: 8px; font-size: 14px; color: var(--muted); }
.m-days { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.m-day { min-height: 64px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; }
.m-day b { font-size: 15px; }
.m-day small { font-size: 13px; color: inherit; opacity: 0.85; }
.m-day.is-on { background: var(--dark); border-color: var(--dark); color: var(--accent); }
.m-day.is-on small { color: inherit; opacity: 0.85; }
.m-day:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.m-opts { display: grid; gap: 8px; }
.m-opt { display: block; position: relative; }
.m-opt input { position: absolute; opacity: 0; pointer-events: none; }
.m-opt-box { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.m-opt-box b { display: block; font-size: 15px; }
.m-opt-box small { display: block; font-size: 13px; opacity: 0.85; margin-top: 1px; }
.m-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--muted); }
.m-opt input:checked + .m-opt-box { background: var(--dark); border-color: var(--dark); color: #fff; }
.m-opt input:checked + .m-opt-box .m-dot { border-color: var(--accent); background: radial-gradient(var(--accent) 0 45%, transparent 50%); }
.m-opt input:focus-visible + .m-opt-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-method:focus-visible, .pay-toggle button:focus-visible, .pay-fill:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sheet-item-note { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font: inherit; font-size: 15px; color: var(--ink); }
.market-bar { margin: 0 0 10px; }
.market-bar-text { font-size: 13.5px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.market-bar-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.market-bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--primary); transition: width 0.3s; }
.market-note { margin: 0; padding: 11px 14px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* estados: loja fechada, Planilha fora do ar, esgotado, sem promoções, erro */
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 15px; line-height: 1.35; }
.notice[hidden] { display: none; }
.notice svg { flex-shrink: 0; }
.notice--closed { background: var(--light); color: var(--dark); }
.notice--stale { background: #FFE9A8; color: #5A3B00; }
.closed-note { display: flex; flex-direction: column; gap: 4px; margin: 8px 18px 0; padding: 12px 16px; border-radius: var(--r-lg); background: var(--light); color: var(--dark); }
.closed-note[hidden] { display: none; }
.closed-note b { font-size: 16px; }
.closed-note span { font-size: 14px; }
.promo-empty { flex: 1; min-width: 0; margin: 0 20px 0 0; padding: 28px 20px; border: 2px var(--bs) var(--accent); border-radius: var(--r-lg); background: var(--card); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.promo-empty-title { font-family: var(--font-head), sans-serif; font-weight: 700; font-size: 22px; color: var(--dark); }
.promo-empty p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--soft); }
.promo-empty-btn { margin-top: 6px; height: 44px; padding: 0 20px; border-radius: var(--r-btn); border: 1.5px solid var(--dark); color: var(--dark); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; text-decoration: none; }
.promo.is-empty .promo-band { background: none; }
.promo.is-empty .promo-track { overflow: visible; padding-top: 4px; }
.promo.is-empty .promo-track::before, .promo.is-empty .promo-track::after { display: none; }
.promo.is-empty .promo-track { padding-left: 20px; }
.status--error { min-height: calc(100dvh - 56px); box-sizing: border-box; padding: 0 30px 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; text-align: left; }
.error-code { margin-top: auto; font-family: var(--font-head), sans-serif; font-style: italic; font-weight: 800; font-size: 150px; line-height: 0.85; color: var(--primary); }
.error-rule { width: 120px; border-top: 2px var(--bs) var(--accent); }
.error-title { margin: 0; font-family: var(--font-head), sans-serif; font-weight: 800; font-size: 34px; line-height: 1.05; color: var(--dark); text-wrap: balance; }
.error-msg { margin: 0; font-family: var(--font-body), sans-serif; font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.error-actions { align-self: stretch; margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.error-btn { height: 56px; padding: 0 24px; border-radius: var(--r-btn); border: 1.5px solid var(--primary); background: var(--primary); color: var(--accent); font: 700 17px var(--font-body), sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.status .error-btn { display: flex; gap: 10px; margin: 0; font-size: 17px; text-decoration: none; }
.error-btn--line { background: transparent; color: var(--primary); }
