/* ============================================================================
   Folha do app do cliente — sistema de design "Warm Red"

   Off-white quente + cards brancos flutuantes + primária vermelha + cantos
   generosos + Inter em pesos altos. Os tokens vêm de design-system.md; o que
   não está lá (verde de "aberto", laranja de aviso) entra como extensão
   semântica e fica marcado.

   Carregada por index.html, pedido.html e entregador.html. O painel continua
   em app.css + admin.css e não enxerga nada daqui.
   ========================================================================== */

/* ---------------------------------------------------------------- fonte ---
   Inter, variável (400–800), servida daqui mesmo para funcionar offline. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens --- */
:root {
  /* A loja escolhe a cor em Loja → cor do cardápio; o JS grava em --accent.
     Todos os tons de marca derivam dela, então a escala inteira acompanha. */
  --accent: #E51636;
  --accent-ink: #fff;

  --color-brand-600: var(--accent);
  --color-brand-700: color-mix(in srgb, var(--accent) 85%, #000);
  --color-brand-800: color-mix(in srgb, var(--accent) 70%, #000);
  --color-brand-50: color-mix(in srgb, var(--accent) 10%, #fff);

  --color-accent-500: #F5A623;
  --color-star-400: #FFB800;

  --color-canvas: #F0E4D8;
  --color-surface: #FDFAF7;
  --color-surface-raised: #FFFFFF;
  --color-surface-warm-1: #F4E7D6;
  --color-surface-warm-2: #F0DFC9;
  --color-field: #F4F4F5;

  --color-text-900: #16181A;
  --color-text-700: #3D4043;
  --color-text-500: #75797E;
  --color-text-400: #9AA0A6;
  --color-text-300: #B0B5BA;
  --color-border: #ECE9E5;
  --color-border-strong: #DFDAD4;

  /* extensão semântica: estados que o mockup não tinha */
  --color-ok: #16A34A;
  --color-ok-50: #E8F7EE;
  --color-warn: #EA580C;
  --color-warn-50: #FFF1E6;
  --color-wa: #25D366;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --text-display: 26px; --lh-display: 1.15; --fw-display: 800;
  --text-title: 20px;   --lh-title: 1.2;    --fw-title: 700;
  --text-section: 17px; --lh-section: 1.25; --fw-section: 700;
  --text-price: 15px;   --lh-price: 1.2;    --fw-price: 700;
  --text-item: 13px;    --lh-item: 1.3;     --fw-item: 600;
  --text-body: 13px;    --lh-body: 1.5;     --fw-body: 400;
  --text-caption: 11px; --lh-caption: 1.4;  --fw-caption: 400;
  --text-meta: 11px;    --lh-meta: 1.2;     --fw-meta: 500;
  --text-nav: 10px;     --lh-nav: 1.2;      --fw-nav: 500;
  --text-badge: 9px;    --lh-badge: 1;      --fw-badge: 700;
  --tracking-badge: .05em;
  --tracking-tight: -.01em;
  --tracking-display: -.02em;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --gutter: 16px;
  --max: 720px;

  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 14px;
  --radius-lg: 18px; --radius-xl: 22px; --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(22,24,26,.05);
  --shadow-sm: 0 2px 8px rgba(22,24,26,.06);
  --shadow-md: 0 6px 18px rgba(22,24,26,.08);
  --shadow-lg: 0 10px 30px rgba(22,24,26,.10);
  --shadow-brand: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);

  --ease: cubic-bezier(.2,.7,.3,1);
  --dur-fast: 120ms; --dur-base: 200ms;

  /* Nomes antigos que ainda aparecem em estilos em linha do JS. */
  --line: var(--color-border);
  --ink: var(--color-text-900);
  --muted: var(--color-text-500);
  --ok: var(--color-ok);
  --warn: var(--color-warn);
  --surface: var(--color-surface-raised);
  --bg: var(--color-surface);
}

/* ----------------------------------------------------------------- base --- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--color-surface);
  color: var(--color-text-900);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
.ic { display: inline-block; flex: none; vertical-align: -.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--color-brand-600); }
h1, h2, h3 { letter-spacing: var(--tracking-tight); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hidden { display: none !important; }
.muted { color: var(--color-text-500); }
.small { font-size: 12px; }
.strike { text-decoration: line-through; opacity: .5; }
.row { display: flex; gap: 10px; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 10px; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Tela: blocos verticais com 16px entre eles. */
.screen { display: flex; flex-direction: column; gap: var(--space-4); padding-bottom: 112px; }

/* ------------------------------------------------------------- app bar --- */
.appbar { display: flex; align-items: center; gap: 12px; padding: 14px 0 0; }
.appbar .brand { flex: 1; min-width: 0; text-align: center; }
.appbar .greet {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--color-text-700); max-width: 100%;
}
.appbar .greet .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-ok); flex: none; }
.appbar .greet.closed { color: var(--color-brand-800); }
.appbar .greet.closed .dot { background: var(--color-brand-600); }
.appbar .greet span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 340px) { .appbar .greet .greet-pre { display: none; } }
.appbar .logo-name {
  margin: 1px 0; font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  color: var(--color-brand-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appbar .tagline { font-size: 11px; color: var(--color-text-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn {
  position: relative; width: 42px; height: 42px; flex: none; padding: 0;
  border-radius: var(--radius-md); background: var(--color-surface-raised);
  border: 1px solid var(--color-border); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); color: var(--color-text-900); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease); overflow: visible;
}
.icon-btn:active { transform: scale(.97); }
.icon-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-md) - 1px); }
.icon-btn .initial { font-weight: 800; font-size: 18px; color: var(--color-brand-600); }
.icon-btn .count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--color-brand-600); color: #fff;
  font-size: 9.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--color-surface);
}

.notice {
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--color-brand-50); color: var(--color-brand-800); font-size: 12px; font-weight: 500; line-height: 1.45;
}

/* ---------------------------------------------------------------- badge --- */
.badge {
  display: inline-flex; align-items: center; height: 19px; padding: 0 8px; border-radius: var(--radius-pill);
  font-size: var(--text-badge); font-weight: var(--fw-badge); letter-spacing: var(--tracking-badge);
  text-transform: uppercase; color: #fff; background: var(--color-brand-600); white-space: nowrap;
}
.badge--accent { background: var(--color-accent-500); }
.badge--soft { background: var(--color-brand-50); color: var(--color-brand-600); }
.badge--ok { background: var(--color-ok-50); color: var(--color-ok); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; }

/* ---------------------------------------------------------------- busca --- */
.searchbar { display: flex; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; flex: 1;
  background: var(--color-field); border-radius: var(--radius-md); color: var(--color-text-400);
}
.search input {
  border: 0; background: none; outline: none; width: 100%; padding: 0; height: 100%;
  font-size: 16px; color: var(--color-text-900); -webkit-appearance: none;
}
.search input::placeholder { color: var(--color-text-300); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search .clear { display: none; border: 0; background: none; color: var(--color-text-400); padding: 4px; }
.search:has(input:not(:placeholder-shown)) .clear { display: inline-flex; }

/* ----------------------------------------------------------------- hero --- */
.hero {
  position: relative; background: var(--color-surface-warm-1); border-radius: var(--radius-xl);
  padding: 20px; overflow: hidden;
}
.eyebrow {
  display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: var(--radius-pill);
  background: var(--color-brand-50); color: var(--color-brand-600);
  font-size: 9px; font-weight: 700; letter-spacing: var(--tracking-badge); text-transform: uppercase;
}
.hero h2 {
  margin: 12px 0 0; font-size: var(--text-display); line-height: var(--lh-display); font-weight: var(--fw-display);
  letter-spacing: var(--tracking-display); color: var(--color-text-900); max-width: 16ch;
}
.hero h2 em { display: block; font-style: normal; color: var(--color-brand-600); }
.hero p { margin: 10px 0 16px; font-size: 12px; line-height: 1.5; color: var(--color-text-500); max-width: 26ch; }
.hero .art { position: absolute; right: -8px; bottom: -10px; font-size: 96px; line-height: 1; opacity: .95; pointer-events: none; user-select: none; }
.hero .btn { width: auto; }

/* ------------------------------------------------------- inauguração --- */
.hero--inauguracao {
  min-height: 330px;
  aspect-ratio: 16 / 9;
  padding: clamp(24px, 4vw, 34px);
  background: #1b120d;
  color: #fff;
  isolation: isolate;
}
.hero--inauguracao::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 10, 6, .94) 0%, rgba(18, 10, 6, .82) 34%, rgba(18, 10, 6, .24) 63%, transparent 100%);
  pointer-events: none;
}
.hero-inauguracao-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.hero-inauguracao-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-inauguracao-copy {
  position: relative;
  z-index: 2;
  width: 49%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-inauguracao-marca {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: #fff7ed;
  font-family: 'Fredoka', var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero-inauguracao-marca img {
  width: 35px;
  height: 35px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
}
.hero--inauguracao .eyebrow {
  min-height: 25px;
  height: auto;
  padding: 6px 10px;
  background: rgba(229, 22, 54, .9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 10px;
  font-weight: 800;
}
.hero--inauguracao h2 {
  max-width: none;
  margin-top: 12px;
  color: #fffaf5;
  font-family: 'Fredoka', var(--font-sans);
  font-size: clamp(38px, 6.2vw, 54px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.045em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .24);
}
.hero--inauguracao h2 em {
  margin-top: 5px;
  color: #ff344e;
  font-size: 1.04em;
}
.hero--inauguracao .hero-inauguracao-data {
  max-width: none;
  margin: 15px 0 0;
  color: #fff7ed;
  font-family: 'Fredoka', var(--font-sans);
  font-size: clamp(18px, 2.8vw, 23px);
  font-weight: 600;
  line-height: 1;
}
.hero-inauguracao-data b { font-weight: 700; }
.hero-inauguracao-data span { color: #ff344e; padding: 0 3px; }
.hero--inauguracao .hero-inauguracao-endereco {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 36ch;
  margin: 11px 0 0;
  color: rgba(255, 247, 237, .82);
  font-size: clamp(11px, 1.55vw, 13px);
  line-height: 1.35;
}
.hero-inauguracao-endereco svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: #ff344e;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero--inauguracao .hero-inauguracao-cta {
  min-height: 44px;
  margin-top: 17px;
  padding: 8px 9px 8px 17px;
  gap: 10px;
  background: #e51636;
  border: 1px solid rgba(255, 255, 255, .12);
  font-family: 'Fredoka', var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}
.hero--inauguracao .hero-inauguracao-cta:hover { background: #c9142f; }
.hero--inauguracao .hero-inauguracao-cta .arrow {
  width: 29px;
  height: 29px;
  margin-right: 0;
  background: #fff;
  color: #e51636;
}

@media (max-width: 620px) {
  .hero--inauguracao {
    min-height: 540px;
    aspect-ratio: auto;
    padding: 22px;
  }
  .hero--inauguracao::after {
    background: linear-gradient(180deg, rgba(16, 9, 5, .94) 0%, rgba(16, 9, 5, .78) 42%, rgba(16, 9, 5, .24) 65%, transparent 84%);
  }
  .hero-inauguracao-media img { object-position: center; }
  .hero-inauguracao-copy {
    width: 100%;
    height: 56%;
    justify-content: flex-start;
  }
  .hero-inauguracao-marca { margin-bottom: 12px; }
  .hero-inauguracao-marca img { width: 32px; height: 32px; }
  .hero--inauguracao h2 {
    margin-top: 11px;
    font-size: clamp(39px, 12vw, 48px);
  }
  .hero--inauguracao .hero-inauguracao-data {
    margin-top: 13px;
    font-size: clamp(20px, 6vw, 24px);
  }
  .hero--inauguracao .hero-inauguracao-endereco {
    max-width: 31ch;
    margin-top: 9px;
    font-size: 12px;
  }
  .hero--inauguracao .hero-inauguracao-cta { margin-top: 14px; }
}

@media (max-width: 360px) {
  .hero--inauguracao { min-height: 520px; padding: 18px; }
  .hero--inauguracao h2 { font-size: 38px; }
  .hero--inauguracao .hero-inauguracao-data { font-size: 20px; }
  .hero--inauguracao .hero-inauguracao-endereco { font-size: 11.5px; }
}

/* hero da oferta do dia */
.hero--oferta { padding-right: 136px; min-height: 176px; cursor: pointer; }
.hero--oferta h2 { font-size: 22px; max-width: none; }
.hero--oferta h2 em { font-size: var(--text-display); }
.hero--oferta p { max-width: none; }
.hero--oferta p b { color: var(--color-brand-600); font-weight: 700; }
.hero--oferta .art {
  top: 14px; right: 14px; bottom: 14px; width: 108px; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 56px; opacity: 1;
  background: var(--color-surface-raised); box-shadow: var(--shadow-sm);
}
.hero--oferta .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 360px) { .hero--oferta { padding-right: 112px; } .hero--oferta .art { width: 88px; } }

/* Composição imersiva da referência, com conteúdo vivo para a oferta ativa. */
.hero--oferta-imersiva {
  /* clip (e não hidden) mantém a altura mínima automática da proporção:
     com texto longo o banner cresce em vez de cortar o botão */
  aspect-ratio: 1672 / 941;
  min-height: auto;
  overflow: clip;
  padding: clamp(24px, 4.1vw, 30px);
  background: #f8f0e5;
  border-radius: clamp(24px, 4vw, 30px);
  cursor: default;
  isolation: isolate;
}
.hero--oferta-imersiva .hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
}
.hero--oferta-imersiva .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero--oferta-imersiva .hero-copy {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero--oferta-imersiva .eyebrow {
  height: auto;
  min-height: 31px;
  padding: 6px 13px 6px 10px;
  gap: 7px;
  background: rgba(255, 224, 224, .82);
  color: #d21d25;
  border: 1px solid rgba(210, 29, 37, .06);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1.1;
}
.hero--oferta-imersiva .eyebrow-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex: none;
}
.hero--oferta-imersiva h2 {
  margin: 13px 0 0;
  max-width: none;
  font-family: 'Fredoka', var(--font-sans);
  font-size: clamp(42px, 7vw, 50px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
}
.hero--oferta-imersiva h2 .hero-title,
.hero--oferta-imersiva h2 em { display: block; }
.hero--oferta-imersiva h2.hero-heading--short .hero-title { white-space: nowrap; }
.hero--oferta-imersiva h2.hero-heading--long {
  font-size: clamp(35px, 6vw, 44px);
  line-height: .94;
}
.hero--oferta-imersiva h2.hero-heading--xlong {
  font-size: clamp(30px, 5.2vw, 39px);
  line-height: .96;
}
.hero--oferta-imersiva h2 em {
  margin-top: 4px;
  color: #d21d25;
  font-size: clamp(52px, 8.8vw, 64px);
  line-height: .9;
  letter-spacing: -.045em;
}
.hero--oferta-imersiva p {
  margin: 11px 0 0;
  max-width: 27ch;
  color: #44464a;
  font-size: clamp(14px, 2.1vw, 16px);
  line-height: 1.34;
  letter-spacing: -.018em;
}
.hero--oferta-imersiva p b {
  color: #d21d25;
  font-weight: 900;
  white-space: nowrap;
}
.hero--oferta-imersiva .btn.sm {
  min-width: 178px;
  min-height: 50px;
  margin-top: 20px;
  padding: 8px 10px 8px 22px;
  gap: 13px;
  background: #d51e26;
  border: 0;
  font-family: 'Fredoka', var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(201, 34, 34, .18);
}
.hero--oferta-imersiva .btn.sm:hover { background: #bd171e; }
.hero--oferta-imersiva .btn .arrow {
  width: 34px;
  height: 34px;
  margin-right: 0;
  background: #fff;
  color: #d51e26;
}
.hero--oferta-imersiva .btn .arrow svg { width: 17px; height: 17px; }

/* A arte padrão deixa a esquerda livre para o texto; a foto da própria oferta
   não, então no computador ela vai para a direita e o texto fica no creme. */
@media (min-width: 621px) {
  .hero--oferta-foto {
    aspect-ratio: auto;
    padding-right: calc(42% + 28px);
  }
  .hero--oferta-foto .hero-media { left: auto; width: 42%; }
  .hero--oferta-foto .hero-copy { width: auto; }
  .hero--oferta-foto h2.hero-heading--short .hero-title { white-space: normal; }
}

/* No celular a foto vem abaixo do texto, no fluxo: o banner cresce com a
   descrição e o botão nunca invade a foto. */
@media (max-width: 620px) {
  .hero--oferta-imersiva {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    min-height: 0;
    padding: 20px 20px 0;
    border-radius: 24px;
  }
  .hero--oferta-imersiva .hero-media {
    position: static;
    order: 1;
    margin: 20px -20px 0;
  }
  .hero--oferta-imersiva .hero-media img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: 64% center;
  }
  .hero--oferta-imersiva .hero-copy { width: 100%; }
  .hero--oferta-imersiva .eyebrow {
    min-height: 30px;
    font-size: 11.5px;
  }
  .hero--oferta-imersiva h2 {
    margin-top: 12px;
    font-size: clamp(32px, 9.5vw, 39px);
  }
  .hero--oferta-imersiva h2 .hero-title {
    max-width: 100%;
    text-wrap: balance;
  }
  .hero--oferta-imersiva h2.hero-heading--long {
    font-size: clamp(29px, 8.2vw, 34px);
  }
  .hero--oferta-imersiva h2.hero-heading--xlong {
    font-size: clamp(25px, 7.2vw, 30px);
  }
  .hero--oferta-imersiva h2 em {
    font-size: clamp(39px, 11.5vw, 46px);
  }
  .hero--oferta-imersiva p {
    margin-top: 9px;
    max-width: 29ch;
    font-size: 13.5px;
    line-height: 1.3;
  }
  .hero--oferta-imersiva .btn.sm {
    min-width: 0;
    min-height: 46px;
    margin-top: 14px;
    padding: 7px 8px 7px 17px;
    gap: 11px;
    font-size: 17px;
  }
  .hero--oferta-imersiva .btn .arrow { width: 32px; height: 32px; }
}

@media (max-width: 360px) {
  .hero--oferta-imersiva { padding: 18px 18px 0; }
  .hero--oferta-imersiva .hero-media { margin: 18px -18px 0; }
  .hero--oferta-imersiva .eyebrow { font-size: 10.5px; }
}

/* --------------------------------------------------------- categorias --- */
.cat-row {
  display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 0 2px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
}
.cat-row::-webkit-scrollbar { display: none; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 7px; width: 72px; flex: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.cat .bubble {
  width: 62px; height: 62px; border-radius: 50%; background: #fffaf4;
  box-shadow: 0 5px 14px rgba(111, 62, 32, .1); display: grid; place-items: center; font-size: 26px; line-height: 1;
  border: 2px solid rgba(201, 34, 34, .08); transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease); overflow: hidden;
}
.cat .bubble img { width: 100%; height: 100%; object-fit: cover; }
.cat .bubble img.category-nav-art {
  width: 56px; height: 56px; padding: 3px; object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(92, 45, 20, .14));
}
.cat .lbl {
  font-size: 10.5px; font-weight: 500; color: var(--color-text-500); white-space: nowrap;
  max-width: 76px; overflow: hidden; text-overflow: ellipsis;
}
.cat:active .bubble { transform: scale(.94); }
.cat.is-active .bubble {
  border-color: var(--color-brand-600);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 20%, transparent);
}
.cat.is-active .lbl { color: var(--color-brand-600); font-weight: 600; }

/* ---------------------------------------------------------------- seção --- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-head h3, .section h2 {
  margin: 0; font-size: var(--text-section); font-weight: var(--fw-section); line-height: var(--lh-section);
  letter-spacing: var(--tracking-tight);
}
.section { scroll-margin-top: 12px; }
.section .sub { margin: 3px 0 0; font-size: 12px; color: var(--color-text-500); }
.section .grid { margin-top: 12px; }
.pizza-count {
  padding: 5px 9px; border-radius: var(--radius-pill); background: var(--color-brand-50);
  color: var(--color-brand-600); font-size: 10px; font-weight: 700; white-space: nowrap;
}

.rail {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 6px;
  margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); margin-top: 8px;
}
.rail::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

/* ---------------------------------------------- cards × lista (teste A/B) ---
   O seletor do cardápio troca a classe vis-lista no <body> (visualizacao.js).
   A lista vale só para as seções: o trilho "Mais pedidos" continua em cards. */
.vis-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.vis-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.vis-title h3 {
  margin: 0; font-size: var(--text-section); font-weight: var(--fw-section); line-height: var(--lh-section);
  letter-spacing: var(--tracking-tight);
}
.vis-title span { font-size: 12px; color: var(--color-text-400); white-space: nowrap; }
.vis-toggle {
  display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 12px;
  background: var(--color-surface-warm-1);
}
.vis-toggle button {
  width: 42px; height: 36px; border: 0; padding: 0; border-radius: 9px; background: transparent;
  color: var(--color-text-500); display: grid; place-items: center; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.vis-toggle button[aria-pressed="true"] { background: var(--color-surface-raised); color: var(--color-text-900); box-shadow: var(--shadow-sm); }
.vis-toggle button:focus-visible { outline: 2px solid var(--color-brand-600); outline-offset: 2px; }

.vis-lista .section .grid { grid-template-columns: 1fr; gap: 10px; }
.vis-lista .section .grid .product { flex-direction: row; align-items: stretch; min-height: 108px; }
.vis-lista .section .grid .product .media { width: 108px; height: auto; min-height: 108px; font-size: 34px; }
.vis-lista .section .grid .product .media .badge { top: 6px; left: 6px; }
.vis-lista .section .grid .product .body { min-width: 0; padding: 11px 12px 12px; }
.vis-lista .section .grid .product .foot { padding-top: 8px; }

/* ------------------------------------------------------ card de produto --- */
.product {
  position: relative; width: 172px; flex: none; text-align: left; padding: 0; border: 0;
  background: var(--color-surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform var(--dur-fast) var(--ease);
}
.product:active { transform: scale(.985); }
.grid .product { width: auto; }
.product .media {
  position: relative; height: 118px; flex: none; display: grid; place-items: center; font-size: 44px; line-height: 1;
  background: linear-gradient(160deg, #FBF3E9, #F2E3D0); user-select: none;
}
/* absoluta: uma foto em retrato não pode esticar a mídia nem cobrir o nome */
.product .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product .media .badge { position: absolute; top: 10px; left: 10px; }
.product .body { padding: 11px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.product .cat-name { font-size: var(--text-meta); font-weight: 500; color: var(--color-text-400); margin-bottom: 3px; }
.product .name {
  font-size: var(--text-item); font-weight: var(--fw-item); line-height: var(--lh-item); letter-spacing: var(--tracking-tight);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.economia { color: var(--color-brand-600); font-weight: 700; white-space: nowrap; }
.product .economia { margin-top: 4px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.product .desc {
  margin-top: 5px; font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--color-text-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product .price { font-size: var(--text-price); font-weight: var(--fw-price); letter-spacing: var(--tracking-tight); line-height: var(--lh-price); }
.product .price small { display: block; font-size: 9px; font-weight: 500; color: var(--color-text-400); text-transform: uppercase; letter-spacing: .04em; }
.product .add {
  position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 0; padding: 0;
  background: var(--color-brand-600); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-brand); transition: transform var(--dur-fast) var(--ease), background var(--dur-base) var(--ease);
  font-size: 18px; line-height: 1; font-weight: 600;
}
.product .add::before { content: ''; position: absolute; inset: -8px; }  /* alvo de toque 44px */
.product .add:active { transform: scale(.92); }
.product .add:hover { background: var(--color-brand-700); }
.product .add.done { background: var(--color-ok); box-shadow: 0 6px 16px rgba(22,163,74,.3); }
.product.off { opacity: .5; }
.product--pizza-flavor .desc { -webkit-line-clamp: 1; }

/* ---------------------------------------------------------------- promo --- */
.promo {
  position: relative; background: var(--color-surface-warm-2); border-radius: var(--radius-lg);
  padding: 16px 18px; overflow: hidden; display: flex; align-items: center;
}
.promo .txt { position: relative; z-index: 1; padding-right: 76px; min-width: 0; }
.promo .eyebrow { background: none; padding: 0; height: auto; }
.promo h3 { margin: 5px 0 2px; font-size: 19px; font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.15; }
.promo .sub { font-size: 11px; color: var(--color-text-500); margin-bottom: 11px; }
.promo .btn { width: auto; }
.promo .disc {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 58px; height: 58px; border-radius: 50%;
  background: var(--color-brand-600); color: #fff; display: grid; place-items: center; text-align: center;
  font-size: 15px; font-weight: 800; line-height: 1; box-shadow: var(--shadow-brand);
}
.promo .disc small { display: block; font-size: 8px; font-weight: 700; letter-spacing: .06em; margin-top: 2px; }
.promo .disc.emoji { font-size: 28px; }

/* --------------------------------------------------------------- botões --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--color-brand-600); color: var(--accent-ink); font-size: 15px; font-weight: 700;
  text-decoration: none; box-shadow: var(--shadow-brand); line-height: 1.2;
  transition: background var(--dur-base) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-base);
}
.btn:hover { background: var(--color-brand-700); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .arrow {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: grid; place-items: center; flex: none; margin-right: -10px;
}
.btn.sm { min-height: 38px; padding: 7px 16px; font-size: 13px; width: auto; }
.btn.sm .arrow { width: 18px; height: 18px; margin-right: -8px; }
.btn.ghost {
  background: var(--color-surface-raised); color: var(--color-text-900); border-color: var(--color-border);
  box-shadow: var(--shadow-xs);
}
.btn.ghost:hover { background: var(--color-surface-raised); border-color: var(--color-border-strong); }
.btn.dark { background: var(--color-text-900); color: #fff; box-shadow: none; }
.btn.wa { background: var(--color-wa); color: #073; box-shadow: 0 6px 16px rgba(37,211,102,.28); }
.btn.wa:hover { background: #1fbd5a; }
.btn.text { background: none; color: var(--color-brand-600); box-shadow: none; padding: 6px 0; width: auto; min-height: 0; font-size: 13px; }
.btn.text:hover { background: none; }

.stepper {
  display: flex; align-items: center; gap: 2px; padding: 3px; flex: none;
  background: var(--color-field); border-radius: var(--radius-pill);
}
.stepper button {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--color-surface-raised);
  color: var(--color-brand-600); font-size: 20px; line-height: 1; box-shadow: var(--shadow-xs);
  display: grid; place-items: center;
}
.stepper button:disabled { color: var(--color-text-300); }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: 14px; }

/* ------------------------------------------------------------- tab bar --- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--color-surface-raised); border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(22,24,26,.05); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .inner {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 9px 12px 10px;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0;
  border: 0; background: none; padding: 0; color: var(--color-text-400);
  font-size: var(--text-nav); font-weight: var(--fw-nav); line-height: var(--lh-nav); text-decoration: none;
  transition: color var(--dur-base) var(--ease);
}
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab.is-active { color: var(--color-brand-600); font-weight: 600; }
.tab:disabled { opacity: .4; cursor: default; }
.tab--fab { flex: 0 0 66px; }
.tab--fab .fab {
  position: relative; width: 52px; height: 52px; border-radius: 50%; margin-top: -30px;
  background: var(--color-brand-600); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-brand); border: 4px solid var(--color-surface-raised);
  transition: transform var(--dur-fast) var(--ease);
}
.tab--fab:active .fab { transform: scale(.95); }
.tab--fab .fab .count {
  position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--color-text-900); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--color-surface-raised);
}
.tab--fab span { margin-top: 2px; font-weight: 600; color: var(--color-text-700); }
.tab--fab.has-items span { color: var(--color-brand-600); }

/* ---------------------------------------------------------------- sheet --- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(22,24,26,.45); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 640px) { .sheet-backdrop { align-items: center; padding: 24px; } }
.sheet {
  background: var(--color-surface); width: 100%; max-width: var(--max);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: up .22s var(--ease);
}
@media (min-width: 640px) { .sheet { border-radius: var(--radius-xl); max-height: 88vh; } }
@keyframes up { from { transform: translateY(24px); opacity: .6 } to { transform: none; opacity: 1 } }
.sheet-head {
  padding: 18px 16px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  border-bottom: 1px solid var(--color-border);
}
.sheet-head h2 { margin: 0; font-size: var(--text-title); font-weight: var(--fw-title); line-height: var(--lh-title); letter-spacing: var(--tracking-display); }
.sheet-body { padding: 16px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-foot {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border);
  background: var(--color-surface-raised);
}
@media (min-width: 640px) { .sheet-foot { border-radius: 0 0 var(--radius-xl) var(--radius-xl); } }
.x {
  width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--color-border);
  background: var(--color-surface-raised); color: var(--color-text-500); font-size: 22px; line-height: 1;
  display: grid; place-items: center; padding: 0 0 2px; box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------- campos --- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--color-text-700); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--color-text-400); }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=search],
input[type=date], input[type=time], input[type=month], input[type=email], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1.5px solid transparent;
  border-radius: var(--radius-md); background: var(--color-field); outline: none;
  font-size: 16px;   /* abaixo de 16px o iOS dá zoom ao focar */
  color: var(--color-text-900); -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--color-text-300); }
input:focus, select:focus, textarea:focus { border-color: var(--color-brand-600); background: var(--color-surface-raised); }
input[readonly] { color: var(--color-text-500); font-size: 13px; }
textarea { resize: vertical; min-height: 72px; }
select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375797E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field .small.ok { color: var(--color-ok); display: block; margin-top: 6px; font-weight: 500; }
.field .small.aviso { color: var(--color-warn); display: block; margin-top: 6px; font-weight: 500; }
.field .small.muted { display: block; margin-top: 6px; }

/* Opção (tamanho, sabor, adicional, pagamento): card branco; o selecionado ganha o anel. */
.opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  background: var(--color-surface-raised); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent; transition: border-color var(--dur-fast) var(--ease);
}
.opt:has(input:checked) { border-color: var(--color-brand-600); }
.opt input { accent-color: var(--color-brand-600); width: 18px; height: 18px; margin: 0; flex: none; }
.opt .name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.opt .sub { font-size: 12px; color: var(--color-text-500); font-weight: 400; }
.opt .val { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.opt input:disabled ~ * { opacity: .45; }

.group-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 20px 0 10px; }
.group-title h3 { margin: 0; font-size: 15px; font-weight: 700; }
.req {
  display: inline-flex; align-items: center; height: 19px; padding: 0 8px; border-radius: var(--radius-pill);
  background: var(--color-text-900); color: #fff; font-size: var(--text-badge); font-weight: 700;
  letter-spacing: var(--tracking-badge); text-transform: uppercase; white-space: nowrap;
}
.req.optional { background: var(--color-field); color: var(--color-text-500); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--color-field); border-radius: var(--radius-pill); }
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 10px;
  border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-text-500); font-size: 13px; font-weight: 600;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--color-surface-raised); color: var(--color-brand-600); box-shadow: var(--shadow-sm); }

.slots { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.slots::-webkit-scrollbar { display: none; }
.slot {
  flex: none; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; background: var(--color-surface-raised); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--color-text-700);
}
.slot[aria-pressed="true"] { border-color: var(--color-brand-600); color: var(--color-brand-600); }

/* ----------------------------------------------------------- carrinho ---- */
.line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.line:last-child { border-bottom: 0; }
.line .qty { font-weight: 700; color: var(--color-brand-600); flex: none; font-size: 14px; }
.line .info { flex: 1; min-width: 0; }
.line .info b { font-size: 14px; font-weight: 600; }
.line .info p { margin: 2px 0 0; font-size: 12px; color: var(--color-text-500); }
.line .money { font-weight: 700; font-size: 14px; white-space: nowrap; }
.link { background: none; border: 0; color: var(--color-text-500); font-size: 12px; font-weight: 500; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px; }

.totals { border-top: 1px solid var(--color-border); padding-top: 12px; margin-top: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.totals .big { font-size: 18px; font-weight: 700; padding-top: 8px; letter-spacing: var(--tracking-tight); }

.alert {
  background: var(--color-brand-50); color: var(--color-brand-800); padding: 11px 13px;
  border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; margin-bottom: 12px;
}
.alert a { color: inherit; font-weight: 600; }
.info-box {
  background: var(--color-surface-warm-1); color: var(--color-text-700); padding: 11px 13px;
  border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5;
}
/* entrega: endereço dos Correios para o CEP, e o aviso de endereço a conferir */
.aviso-box {
  background: var(--color-warn-50); color: #8a3a06; padding: 11px 13px; margin-bottom: 14px;
  border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5;
}
/* pedido grande: logo abaixo do total e do tempo estimado */
.aviso-pedido-grande { margin: 10px 0 0; }
.endereco-cep {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 12px 13px; margin-bottom: 14px;
}
.endereco-cep > div { display: grid; gap: 2px; font-size: 13px; color: var(--color-text-700); }
.endereco-cep b { font-size: 15px; color: var(--color-text-900, inherit); }
.endereco-cep .link { flex: none; }
.rua-resultados { display: grid; gap: 8px; margin: -4px 0 14px; }
.rua-opcao {
  display: grid; gap: 2px; text-align: left; background: none; cursor: pointer;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit;
}
.rua-opcao span { font-size: 12px; color: var(--color-text-500); }

.empty { text-align: center; padding: 48px 20px; color: var(--color-text-500); font-size: 14px; }
.empty .icon { font-size: 40px; margin-bottom: 10px; }

.panel { background: var(--color-surface-raised); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.panel h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--color-text-900); color: #fff; padding: 11px 18px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; z-index: 80; box-shadow: var(--shadow-lg); animation: up .2s var(--ease);
  white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}

/* --------------------------------------------------------------- status --- */
.steps { display: grid; margin: 4px 0 16px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .mark {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--color-border-strong);
  background: var(--color-surface-raised); flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--color-text-400);
}
.steps .bar { width: 2px; background: var(--color-border-strong); margin: 0 13px; height: 22px; }
.steps .bar.done { background: var(--color-ok); }
.step.done .mark { background: var(--color-ok); border-color: var(--color-ok); color: #fff; }
.step.done .label { color: var(--color-text-900); font-weight: 600; }
.step.now .mark { border-color: var(--color-brand-600); color: var(--color-brand-600); box-shadow: 0 0 0 4px var(--color-brand-50); }
.step.now .label { color: var(--color-brand-600); font-weight: 700; }
.step .label { color: var(--color-text-500); font-size: 14px; padding-top: 4px; }

/* ------------------------------------------------------------------ Pix --- */
.pixbox { background: var(--color-field); border-radius: var(--radius-lg); padding: 16px; text-align: center; }
.pixbox .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-all;
  background: var(--color-surface-raised); border-radius: var(--radius-sm); padding: 9px;
  max-height: 72px; overflow-y: auto; text-align: left; margin-bottom: 10px; color: var(--color-text-700);
}
.pixbox svg, .pixbox img { width: 168px; height: auto; margin: 0 auto 12px; border-radius: var(--radius-sm); background: #fff; }

/* -------------------------------------------------------------- prêmios --- */
.premio-opt .val { color: var(--color-brand-600); }
.premio-opt.bloqueado { opacity: .5; }

/* ----------------------------------------------------- redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------- folhas "Loja" e "Cardápio" */
.line .ico { color: var(--color-text-400); flex: none; padding-top: 1px; }
.panel > .badge { margin-bottom: 6px; }
button.opt { width: 100%; text-align: left; font: inherit; }
/* Ficha no alto da folha do produto: foto e descrição inteira (ingredientes da pizza) */
.ficha { margin: 0 0 16px; }
.ficha-foto {
  display: block; width: 100%; max-height: 220px; object-fit: cover;
  border-radius: var(--radius-md); background: var(--color-surface-warm-2);
}
.ficha-desc { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--color-text-500); }
.ficha-foto + .ficha-desc { margin-top: 12px; }

.flow-step {
  display: inline-flex; margin-bottom: 5px; padding: 4px 8px; border-radius: var(--radius-pill);
  background: var(--color-brand-50); color: var(--color-brand-600); font-size: 9px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.pizza-flow-intro {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: var(--radius-md); background: var(--color-brand-50); color: var(--color-brand-800);
}
.pizza-flow-intro span:last-child { display: flex; flex-direction: column; gap: 1px; }
.pizza-flow-intro small, .pizza-choice-summary small {
  color: var(--color-text-500); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pizza-flow-intro b { font-size: 14px; }
.pizza-flow-check {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-brand-600); color: #fff; font-size: 15px; font-weight: 800;
}
.pizza-size-choice { min-height: 70px; border: 1px solid var(--color-border); }
.pizza-size-choice:hover { border-color: var(--color-brand-600); }
.pizza-size-icon {
  width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-content: center;
  background: var(--color-brand-50); color: var(--color-brand-600); font-size: 15px; font-weight: 800;
  text-align: center; line-height: .85;
}
.pizza-size-icon small { display: block; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.pizza-size-choice .pizza-size-arrow { color: var(--color-brand-600); font-size: 24px; line-height: 1; }
.pizza-choice-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px 14px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-raised);
}
.pizza-choice-summary > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pizza-choice-summary b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pizza-choice-summary .btn { grid-column: 1 / -1; justify-self: start; }
/* opção com contador (kits: a mesma opção mais de uma vez) */
.opt--qty { cursor: default; }
.opt--qty.on { box-shadow: 0 0 0 2px var(--color-brand-600) inset; }
.opt--qty .val { margin-left: 0; }
.stepper.sm { padding: 2px; }
.stepper.sm button { width: 30px; height: 30px; font-size: 18px; }
.stepper.sm span { min-width: 22px; }
.opt .bubble {
  width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--color-field);
  display: grid; place-items: center; font-size: 20px; line-height: 1;
}
.tab[aria-disabled="true"] { opacity: .4; }

/* ------------------------------------------------------ ofertas (popups) --
   Folha curta, no máximo metade da tela, com a foto do item oferecido. */
.sheet--upsell { max-height: 60vh; max-height: 60dvh; }
.upsell { display: flex; gap: 14px; align-items: center; }
.upsell-media {
  width: 84px; height: 84px; flex: none; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(160deg, #FBF3E9, #F2E3D0); display: grid; place-items: center;
}
.upsell-media { position: relative; }
.upsell-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upsell-emoji { font-size: 40px; line-height: 1; }
.upsell .badge { margin-bottom: 6px; }
.upsell-copy { margin: 0; font-size: 14px; line-height: 1.45; color: var(--color-text-700); }
.upsell-escolhas { margin-top: 14px; }
.upsell-escolhas .opt { margin-bottom: 6px; }
.upsell-rodape { margin: 12px 0 0; font-size: 11px; color: var(--color-text-400); line-height: 1.4; }

/* formulário de cartão do Mercado Pago (public/js/cartao.js): o Brick preenche o contêiner; a altura evita o salto da folha enquanto carrega */
.cartao-brick { min-height: 300px; }

/* "Como você quer pedir?": tela de escolha antes do cardápio (public/js/menu.js, mostrarEntrada) */
.entrada { position: fixed; inset: 0; z-index: 60; background: var(--color-surface); display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow: auto; }
body.com-entrada { overflow: hidden; }
.entrada-card { width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
/* logo quadrada dentro do círculo: ocupa 75% do diâmetro (até 77% os cantos da arte ainda cabem) e o fundo do círculo pega a cor da borda da imagem, para a moldura sumir */
.entrada-logo { width: 132px; height: 132px; border-radius: 50%; object-fit: contain; padding: 16px; box-sizing: border-box; margin: 0 auto 4px; box-shadow: var(--shadow-lg); background: #efd8c8; }
.entrada-inicial { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center; font-size: 44px; font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.entrada-nome { font-weight: 700; font-size: 16px; color: var(--color-text-900); }
.entrada-endereco { display: flex; gap: 6px; justify-content: center; align-items: center; font-size: 13px; color: var(--color-text-700); margin-top: -6px; }
.entrada-endereco svg { flex: none; }
.entrada-cupom { margin: -4px 0 0; font-size: 14px; color: var(--color-ok); }
.entrada-card h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; color: var(--color-text-900); }
.entrada-card .btn { width: 100%; padding: 16px; font-size: 16px; }
.entrada-card p { margin: 6px 0 0; }

/* cupom no checkout: campo e botão na mesma linha; aplicado, o código e o desconto */
.cupom-linha { display: flex; gap: 8px; align-items: center; }
.cupom-linha input { flex: 1; min-width: 0; text-transform: uppercase; }
.cupom-linha .btn { flex: none; width: auto; }
.cupom-linha .small.ok { margin: 0; }
