/* ==========================================================================
   DESIGN SYSTEM — Cardápio Digital
   Mobile-first · Dark/Light mode · Premium
   A cor da marca vem do config.js (variável --brand, injetada pelo JS).
   ========================================================================== */

/* ---------- Tokens: tema claro (padrão) ---------- */
:root {
  --brand:        #dc2626;
  --brand-strong: color-mix(in srgb, var(--brand) 82%, black);
  --brand-soft:   color-mix(in srgb, var(--brand) 12%, white);
  --on-brand:     #ffffff;
  --brand-grad:   linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, #ff8a3d), var(--brand-strong));

  --bg:        #ece4d6;   /* fundo off-white quentinho */
  --surface:   #fbf7ef;   /* superfícies off-white — nada de branco puro */
  --surface-2: #f0e9dc;
  --border:    #e6ddcd;
  --text:      #1c1917;
  --muted:     #78716c;

  --ok:      #16a34a;
  --ok-soft: color-mix(in srgb, var(--ok) 12%, white);

  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow-md: 0 4px 12px rgba(16,24,40,.08);
  --shadow-lg: 0 12px 32px rgba(16,24,40,.16);

  --radius:    16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --header-h: 58px;
  --col: 760px;   /* largura máxima do conteúdo (aumenta no desktop) */

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Tokens: tema escuro ---------- */
[data-tema="dark"] {
  --brand-strong: color-mix(in srgb, var(--brand) 78%, white);
  --brand-soft:   color-mix(in srgb, var(--brand) 22%, #0b0f19);
  --bg:        #0b0f19;
  --surface:   #131826;
  --surface-2: #1b2233;
  --border:    #263043;
  --text:      #e8ebf2;
  --muted:     #9aa4b8;
  --ok-soft:   color-mix(in srgb, var(--ok) 22%, #0b0f19);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  padding-bottom: 96px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s var(--ease), color .3s var(--ease);
}

button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Cabeçalho fixo ---------- */
.app-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.marca-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: var(--on-brand);
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  flex-shrink: 0; box-shadow: var(--shadow-sm); overflow: hidden;
}
.marca-logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.hero-logo {
  width: 104px; height: 104px; border-radius: 24px; object-fit: cover;
  display: block; margin: 0 auto 14px; box-shadow: var(--shadow-md);
  animation: surge .4s var(--ease) both;
}
.marca-nome { font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-icone {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; font-size: 1.15rem;
  color: var(--text); transition: background .2s, transform .1s;
}
.app-header > .btn-icone { margin-left: auto; }  /* topo sem marca: botão de tema fica à direita */
.btn-icone:hover { background: var(--surface-2); }
.btn-icone:active { transform: scale(.92); }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: var(--col); margin: 0 auto; }
.hero-banner {
  position: relative; height: 128px; border-radius: 0 0 30px 30px; overflow: hidden;
  box-shadow: var(--shadow-md);
  background: radial-gradient(130% 150% at 50% -25%,
    color-mix(in srgb, var(--brand) 58%, #ff9d54) 0%,
    var(--brand) 45%, var(--brand-strong) 100%);
}
.hero-banner::before {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.5px);
  background-size: 16px 16px;
}
/* Brilho sutil deslizando no banner */
.hero-banner::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); animation: brilho 5.5s var(--ease) infinite;
}
/* Cartão flutuante */
.hero-card {
  position: relative; z-index: 2; margin: -44px 16px 0;
  padding: 16px 20px 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 26px; box-shadow: var(--shadow-lg);
}
/* Logo medalhão (fluxo normal, puxado pra cima — nunca sobrepõe o nome) */
.hero-logo {
  display: block; margin: -72px auto 10px;
  width: 96px; height: 96px; border-radius: 50%;
  background: #fbf7ef; object-fit: contain; padding: 7px;
  border: 4px solid var(--surface); box-shadow: var(--shadow-lg);
  animation: popIn .6s var(--ease) both, floaty 4.5s var(--ease) .8s infinite;
}
.hero.sem-logo .hero-card { margin-top: 14px; }
/* Nome BOLA MENU — grande, em degradê, com traço decorativo */
.hero-card h1 {
  font-family: "Anton", "Plus Jakarta Sans", system-ui, sans-serif;
  text-transform: uppercase; font-weight: 400;
  font-size: clamp(2.1rem, 9.5vw, 3.2rem); letter-spacing: .03em; line-height: .88;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #ff8a3d) 0%, var(--brand-strong) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.12));
  animation: fadeUp .7s var(--ease) .05s backwards;
}
.hero-card h1::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 10px auto 0;
  border-radius: 999px; background: linear-gradient(90deg, var(--brand), #ff9d54);
  animation: growLine .7s var(--ease) .4s backwards;
}
.hero-card .slogan {
  display: inline-block;
  margin-top: 12px; padding: 7px 18px;
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em;
  color: #7a4310;
  background: #fce9a8;
  border-radius: 999px;
  animation: fadeUp .6s var(--ease) .2s backwards;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; animation: fadeUp .6s var(--ease) .32s backwards; }

/* ---------- Destaques ---------- */
.destaques-wrap { max-width: var(--col); margin: 12px auto 2px; }
.secao-mini { padding: 0 16px 12px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.destaques {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding: 2px 16px 8px; scroll-snap-type: x mandatory;
  justify-content: safe center;
}
.destaques::-webkit-scrollbar { display: none; }
.destaque-card {
  flex: 0 0 168px; scroll-snap-align: start; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 8px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  animation: cardIn .55s var(--ease) backwards;
}
.destaque-card:nth-child(2) { animation-delay: .08s; }
.destaque-card:nth-child(3) { animation-delay: .16s; }
.destaque-card:nth-child(4) { animation-delay: .24s; }
.destaque-card:nth-child(5) { animation-delay: .32s; }
.destaque-card:nth-child(6) { animation-delay: .40s; }
.destaque-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.destaque-card:active { transform: scale(.97); }
.destaque-thumb {
  position: relative; height: 150px; border-radius: 13px; overflow: hidden; margin-bottom: 9px;
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--brand) 16%, var(--surface-2)));
}
.destaque-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.destaque-card:hover .destaque-thumb img { transform: scale(1.09); }
.destaque-thumb::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 55%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg); animation: brilho 6s var(--ease) 1.2s infinite;
}
.destaque-thumb .thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.7rem; opacity: .55; }
.destaque-add {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-grad); color: var(--on-brand);
  display: grid; place-items: center; font-size: 1.35rem; line-height: 1; box-shadow: var(--shadow-md);
  animation: addPulse 2.4s var(--ease) infinite;
}
.destaque-nome { font-weight: 700; font-size: .9rem; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.destaque-preco { font-weight: 800; font-size: .92rem; color: var(--brand-strong); padding: 3px 4px 4px; }

/* Sabor mais vendido — efeito de fogo FORTE (chama subindo + glow piscando) */
.destaque-card--fogo {
  border: 2px solid #ff6a00;
  animation: cardIn .55s var(--ease) backwards, fogo 1.3s ease-in-out infinite;
}
.destaque-card--fogo .destaque-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  transform-origin: bottom;
  background: linear-gradient(0deg,
    rgba(255,60,5,.85) 0%, rgba(255,110,15,.55) 26%,
    rgba(255,175,45,.22) 50%, transparent 74%);
  mix-blend-mode: screen; animation: labareda 1.05s ease-in-out infinite;
}
@keyframes fogo {
  0%   { box-shadow: 0 0 10px 2px rgba(255,90,20,.5),  0 0 28px 6px rgba(255,140,25,.35); }
  25%  { box-shadow: 0 0 22px 4px rgba(255,70,10,.75), 0 0 44px 12px rgba(255,150,25,.5); }
  50%  { box-shadow: 0 0 15px 3px rgba(255,100,20,.55),0 0 32px 8px rgba(255,130,20,.4); }
  75%  { box-shadow: 0 0 30px 7px rgba(255,50,5,.85),  0 0 54px 16px rgba(255,170,40,.6); }
  100% { box-shadow: 0 0 10px 2px rgba(255,90,20,.5),  0 0 28px 6px rgba(255,140,25,.35); }
}
@keyframes labareda {
  0%, 100% { opacity: .72; transform: scaleY(1); }
  40%      { opacity: 1;   transform: scaleY(1.25); }
  70%      { opacity: .82; transform: scaleY(.92); }
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: .82rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.chip.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.chip.fechado { color: var(--brand-strong); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: transparent; }
.info-retirada {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; font-size: .9rem; line-height: 1.35;
}
.aviso-fechado {
  width: min(var(--col), calc(100% - 32px)); margin: 12px auto 0;
  padding: 12px 16px; border-radius: 14px; text-align: center;
  font-weight: 600; font-size: .92rem; line-height: 1.4;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--brand-strong);
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  animation: fadeUp .4s var(--ease);
}

/* ---------- Busca + abas de categoria (fixas) ---------- */
.sticky-nav {
  position: sticky; top: var(--header-h); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  padding: 10px 0 6px;
}
.busca-wrap { max-width: var(--col); margin: 0 auto; padding: 0 16px; position: relative; }
.busca-wrap svg { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.busca {
  width: 100%; padding: 12px 14px 12px 42px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.busca:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.abas {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  max-width: var(--col); margin: 10px auto 0; padding: 0 16px 2px;
  scroll-snap-type: x proximity;
}
.abas::-webkit-scrollbar { display: none; }
.aba {
  white-space: nowrap; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-size: .88rem; font-weight: 600; scroll-snap-align: start;
  transition: all .2s var(--ease);
}
.aba.ativa { background: var(--brand-grad); color: var(--on-brand); border-color: transparent; box-shadow: var(--shadow-md); }

/* ---------- Cardápio ---------- */
.cardapio { max-width: var(--col); margin: 0 auto; padding: 8px 16px; }
.categoria { scroll-margin-top: calc(var(--header-h) + 96px); padding-top: 18px; }
.categoria-titulo { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }

.item {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .2s;
}
.item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.item-thumb {
  position: relative; width: 88px; height: 88px; flex-shrink: 0;
  border-radius: 15px; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--brand) 12%, var(--surface-2)));
}
.item-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-thumb .thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.1rem; opacity: .5; }
.item-info { flex: 1; min-width: 0; }
.item-nome { font-weight: 700; letter-spacing: -.01em; font-size: 1rem; }
.item-desc { color: var(--muted); font-size: .84rem; margin: 3px 0 9px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-preco { display: inline-block; font-weight: 800; color: var(--brand-strong); font-size: 1rem; }
.btn-add {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-grad); color: var(--on-brand); border: none;
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: transform .12s, filter .2s;
}
.btn-add:hover { filter: brightness(1.06); }
.btn-add:active { transform: scale(.86); }

.vazio-busca { text-align: center; color: var(--muted); padding: 48px 16px; }

/* ---------- Skeleton (carregamento) ---------- */
.skeleton { pointer-events: none; }
.sk-linha {
  height: 104px; border-radius: var(--radius); margin-bottom: 12px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}

/* ---------- Botão flutuante do carrinho ---------- */
.btn-carrinho {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(0);
  display: flex; align-items: center; gap: 12px; z-index: 35;
  background: var(--brand-grad); color: var(--on-brand);
  border: none; border-radius: var(--radius-pill);
  padding: 14px 20px; font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), opacity .3s;
}
.btn-carrinho[hidden] { display: none; }
.btn-carrinho.entra { animation: pop .3s var(--ease); }
.contador {
  background: var(--on-brand); color: var(--brand);
  min-width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: .82rem; font-weight: 800;
}
.total-flutuante { font-variant-numeric: tabular-nums; }

/* ---------- Painel / carrinho ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(2,6,23,.5);
  opacity: 0; pointer-events: none; transition: opacity .28s; z-index: 40;
  backdrop-filter: blur(2px);
}
.overlay.ativo { opacity: 1; pointer-events: auto; }
.overlay-sabor { z-index: 65; }

/* ---------- Modal: escolher sabores (meia a meia) ---------- */
.modal-sabor {
  position: fixed; z-index: 66; left: 50%; bottom: 0;
  transform: translate(-50%, 105%);
  width: min(460px, 100%);
  background: var(--surface); color: var(--text);
  border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg);
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
  transition: transform .34s var(--ease);
}
.modal-sabor.ativo { transform: translate(-50%, 0); }
.modal-sabor-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-sabor-topo h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.sabor-op { display: grid; gap: 10px; }
.sabor-radio {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.sabor-radio input { accent-color: var(--brand); width: 20px; height: 20px; flex-shrink: 0; }
.sabor-radio span { font-weight: 700; line-height: 1.15; }
.sabor-radio small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.sabor-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.sabor-segundo { margin-top: 14px; animation: fadeUp .3s var(--ease); }
.sabor-segundo > label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.sabor-segundo select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
}
.sabor-aviso { margin-top: 8px; font-size: .76rem; color: var(--muted); }
.modal-sabor-rodape { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.modal-sabor-preco { font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.btn-add-sabor {
  flex: 1; padding: 14px; border: none; border-radius: 14px;
  background: var(--brand-grad); color: var(--on-brand);
  font-weight: 800; font-size: 1rem; box-shadow: var(--shadow-md);
  transition: transform .1s;
}
.btn-add-sabor:active { transform: scale(.98); }

.painel {
  position: fixed; top: 0; right: 0; z-index: 50;
  width: 100%; max-width: 440px; height: 100%;
  display: flex; flex-direction: column;
  background: var(--bg);
  transform: translateX(100%); transition: transform .32s var(--ease);
  box-shadow: var(--shadow-lg);
}
.painel.ativo { transform: translateX(0); }
.painel-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.painel-topo h2 { font-size: 1.15rem; }

.itens-carrinho { flex: 1; overflow-y: auto; padding: 14px 16px; }
.carrinho-vazio { text-align: center; color: var(--muted); padding: 48px 12px; }
.carrinho-vazio .emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; }

.linha-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px;
  animation: surge .3s var(--ease) both;
}
.linha-item .nome { flex: 1; font-size: .92rem; font-weight: 500; }
.linha-item .preco-linha { font-weight: 700; color: var(--brand-strong); font-size: .9rem; font-variant-numeric: tabular-nums; }
.qtd-controle { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: var(--radius-pill); padding: 4px; }
.qtd-btn { width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--surface); color: var(--text); font-size: 1.1rem; line-height: 1; box-shadow: var(--shadow-sm); transition: transform .1s; }
.qtd-btn:active { transform: scale(.85); }
.qtd-num { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Formulário ---------- */
.form-pedido { padding: 4px 16px; display: flex; flex-direction: column; gap: 14px; }
.form-pedido > label { font-size: .82rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.form-pedido input, .form-pedido select, .form-pedido textarea {
  font: inherit; font-weight: 500; color: var(--text);
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.form-pedido input:focus, .form-pedido select:focus, .form-pedido textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.seg { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: var(--radius-pill); }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 9px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .88rem; color: var(--muted); transition: all .2s var(--ease);
}
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Área PIX ---------- */
.area-pix { margin: 14px 16px 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; animation: surge .3s var(--ease) both; }
.area-pix h3 { color: var(--brand-strong); margin-bottom: 4px; }
.pix-valor { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.pix-valor strong { color: var(--text); font-size: 1.05rem; }
.pix-qr { display: inline-flex; padding: 12px; background: #fff; border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.pix-qr img, .pix-qr canvas { display: block; border-radius: 4px; }
.pix-codigo-texto { word-break: break-all; font-size: .68rem; color: var(--muted); background: var(--surface-2); padding: 10px; border-radius: var(--radius-sm); margin-bottom: 10px; font-family: ui-monospace, monospace; }
.btn-copiar { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-weight: 600; transition: background .2s; }
.btn-copiar:hover { background: var(--border); }
.pix-aviso { font-size: .78rem; color: var(--muted); margin-top: 12px; }

/* ---------- Rodapé do painel ---------- */
.painel-rodape { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.linha-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.linha-total strong { font-variant-numeric: tabular-nums; }
.btn-enviar {
  width: 100%; padding: 15px; border: none; border-radius: var(--radius-sm);
  background: var(--ok); color: #fff; font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .12s, filter .2s;
}
.btn-enviar:hover:not(:disabled) { filter: brightness(1.06); }
.btn-enviar:active:not(:disabled) { transform: scale(.98); }
.btn-enviar:disabled { background: var(--muted); opacity: .5; cursor: not-allowed; }

.rodape { text-align: center; color: var(--muted); font-size: .82rem; padding: 28px 16px; }

/* ---------- Toast ---------- */
.toast-area { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 90vw; }
.toast {
  background: var(--text); color: var(--bg);
  padding: 11px 18px; border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px;
  animation: toastIn .3s var(--ease), toastOut .3s var(--ease) 2s forwards;
}

/* ---------- Animações ---------- */
@keyframes surge   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop     { 0% { transform: translateX(-50%) scale(.8); } 60% { transform: translateX(-50%) scale(1.05); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes brilho  { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes revealIn { from { opacity: 0; transform: translateY(34px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes floaty   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes popIn    { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes growLine { from { width: 0; } to { width: 64px; } }
@keyframes cardIn   { from { opacity: 0; transform: translateY(22px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes addPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* Revelar itens conforme o cliente rola a página (com cascata) */
.reveal { opacity: 0; }
.reveal.visivel { animation: revealIn .7s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut{ to { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Telas grandes (tablet/desktop) ---------- */
@media (min-width: 720px) {
  .cardapio { padding: 8px 24px; }
  .item-thumb { width: 100px; height: 100px; }
  .destaque-card { flex-basis: 168px; }
  .hero-banner { height: 172px; }
  .hero-logo { width: 138px; height: 138px; margin-top: -100px; }
}

/* Telas grandes: coluna mais larga + cardápio em 2 colunas */
@media (min-width: 900px) {
  :root { --col: 1040px; }
  .categoria { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 14px; align-items: start; }
  .categoria-titulo { grid-column: 1 / -1; margin-bottom: 2px; }
  .item { margin-bottom: 0; }
}
