/* ==========================================================================
   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:        #ED7928;   /* laranja oficial Garage Burguer */
  --brand-strong: color-mix(in srgb, var(--brand) 88%, white);
  --brand-soft:   color-mix(in srgb, var(--brand) 22%, #111114);
  --on-brand:     #17150f;
  --brand-grad:   linear-gradient(135deg, color-mix(in srgb, var(--brand) 86%, #ffd27d), color-mix(in srgb, var(--brand) 76%, #b45309));

  --bg:        #0e0e10;   /* asfalto */
  --surface:   #17171a;   /* cartão escuro */
  --surface-2: #202024;
  --border:    #2c2c31;
  --text:      #f3efe8;
  --muted:     #9d9a94;

  --ok:      #22c55e;
  --ok-soft: color-mix(in srgb, var(--ok) 18%, #111114);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 6px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.6);

  --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 3D — moeda/medalhão com bordas arredondadas girando (só o logo) */
.logo3d {
  position: relative;
  display: block; margin: -66px auto 14px;
  width: 114px; height: 114px;
  perspective: 1100px;
  animation: popIn .6s var(--ease) both;
  cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.logo3d:active { cursor: grabbing; }
.logo3d img { pointer-events: none; -webkit-user-drag: none; }
/* sombra no chão (não gira) */
.logo3d::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; z-index: -1;
  width: 70%; height: 15px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.34), transparent);
  filter: blur(3px);
}
.logo3d-spin {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(0deg);   /* o giro é controlado pelo JavaScript */
  will-change: transform;
}
/* discos empilhados (com tamanhos diferentes) = corpo arredondado da moeda */
/* corpo inflado (squircle, degradê que dá volume de "adesivo 3D") */
.logo3d-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%,
    color-mix(in srgb, var(--brand) 72%, #ff9d54) 0%,
    var(--brand) 46%,
    color-mix(in srgb, var(--brand-strong) 82%, #000 14%) 100%);
}
/* as duas faces com o logo — limpo e brilhante, borda fina */
.logo3d-face {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 40% 32%, #ffffff 0%, #fdfaf3 64%, #f3ecdd 100%);
  box-shadow: inset 0 6px 12px rgba(255,255,255,.6);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.logo3d-face img { width: 100%; height: 100%; object-fit: contain; padding: 12px; display: block; }
/* brilho limpo (sem escurecer o logo) */
.logo3d-face::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(56% 42% at 33% 22%, rgba(255,255,255,.7), rgba(255,255,255,0) 60%);
}
.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.9rem;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.5), transparent 46%),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--brand) 9%, var(--surface-2)) 0 9px, var(--surface-2) 9px 18px);
}
.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%);
  /* sem blend: logo nitida */ 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.2rem;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.5), transparent 46%),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--brand) 9%, var(--surface-2)) 0 8px, var(--surface-2) 8px 16px);
}
.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; }

/* ---------- Promoção (Dia da Pizza) ---------- */
.promo-badge {
  position: absolute; top: 7px; left: 7px; z-index: 3;
  background: linear-gradient(135deg, #ff2d2d, #ff8a00);
  color: #fff; font-size: .58rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
  animation: promoPulse 1.4s ease-in-out infinite;
}
.preco-de { text-decoration: line-through; color: var(--muted); font-weight: 600; font-size: .8em; margin-right: 5px; }
.preco-promo { color: #e11900; font-weight: 800; }
.item--promo { border-color: #ffbf8a; box-shadow: 0 0 0 2px #ffe4cc inset; }
.destaque-card--promo:not(.destaque-card--fogo) { border: 2px solid #ff8a00; }
@keyframes promoPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Fita "Mais pedido" — explica o card em chamas */
.fita-mais {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #ff8a00, #ff3d2d); color: #fff;
  font-size: .6rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* Contador (stepper) direto no card do cardápio — aparece quando o item já está no carrinho */
.item-acao { flex-shrink: 0; }
.stepper {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface-2); border-radius: var(--radius-pill); padding: 4px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.stepper .qtd-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--surface); color: var(--text); font-size: 1.2rem; line-height: 1;
  box-shadow: var(--shadow-sm); transition: transform .1s;
}
.stepper .qtd-btn:active { transform: scale(.85); }
.stepper .qtd-num { min-width: 20px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.item.no-carrinho {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 12%, transparent);
}

.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);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%); transition: transform .32s var(--ease);
  box-shadow: var(--shadow-lg);
}
.painel.ativo { transform: translateX(0); }
.painel-topo {
  position: sticky; top: 0; z-index: 3;
  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 0 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 { position: sticky; bottom: 0; z-index: 3; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
/* Corrige campos que precisam sumir (label tem display:flex e ignorava o [hidden]) */
.form-pedido > label[hidden], .info-retirada[hidden], #campoEndereco[hidden], #campoTroco[hidden] { display: none !important; }
.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; }
  .logo3d { width: 140px; height: 140px; margin: -84px auto 14px; }
}

/* 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; }
}

/* ==========================================================================
   GARAGE BURGUER — banner industrial + PORTÃO DE ENTRADA (arrastar pra cima)
   ========================================================================== */

/* Banner do topo: asfalto com brilho âmbar */
.hero-banner {
  background:
    radial-gradient(120% 140% at 50% -25%, rgba(245,158,11,.38), transparent 62%),
    linear-gradient(180deg, #2a2a30, #141417);
}

/* ---------- Portão seccional ---------- */
body.portao-travado { overflow: hidden; }

.portao {
  position: fixed; inset: 0; z-index: 9999;
  background: transparent;          /* o cardápio aparece atrás na hora */
  overflow: hidden;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}

.portao-porta {
  position: absolute; inset: 0; z-index: 2;
  cursor: grab; will-change: transform;
  background: #4a4a54;
  box-shadow: 0 26px 50px rgba(0,0,0,.85);
}
.portao-porta:active { cursor: grabbing; }

/* ===== painéis: aço escovado com faixa de brilho em cada um ===== */
.portao-paineis { position: absolute; inset: 0; display: flex; flex-direction: column; }
.portao-painel {
  position: relative; flex: 1 1 0;
  background: linear-gradient(180deg,
    #4e4e59 0%,      /* sombra da junta */
    #9ea0ae 5%,      /* a luz bate na curva do painel */
    #b9bbc9 11%,     /* brilho máximo */
    #9093a1 22%,
    #747682 44%,
    #5d5f6a 68%,
    #4a4c56 86%,
    #35373f 96%,
    #22242a 100%);   /* groove de baixo */
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.45),
    inset 0 -3px 7px rgba(0,0,0,.5);
}
.portao-painel + .portao-painel::before {
  content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 3px;
  background: linear-gradient(180deg, #16171b, #2b2d34);
  box-shadow: 0 1px 0 rgba(255,255,255,.16);
}
.painel-interno {
  position: absolute; inset: 22% 7%;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.10));
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.3),
    inset 0 -2px 0 rgba(0,0,0,.4),
    0 0 0 1px rgba(0,0,0,.28),
    0 1px 0 rgba(255,255,255,.18);
}
.painel-rebite {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle at 34% 30%, #e6e8f0, #8f919d 55%, #3d3f47);
  box-shadow: 0 1px 2px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.6);
}
.painel-rebite.esq { left: 2.6%; }
.painel-rebite.dir { right: 2.6%; }

/* ===== metal escovado (bem sutil) ===== */
.portao-textura {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, rgba(0,0,0,.06) 1px 2px, transparent 2px 5px);
}

/* ===== luz: quente no alto, leve penumbra nas pontas (sem escurecer tudo) ===== */
.portao-luz {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(85% 50% at 50% -10%, rgba(255,222,180,.4), rgba(255,180,110,.13) 40%, transparent 70%),
    linear-gradient(0deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.14) 16%, transparent 38%),
    linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 10%, transparent 34%, transparent 66%, rgba(0,0,0,.1) 90%, rgba(0,0,0,.5) 100%);
}

/* ===== reflexo que passeia (dá vida ao metal) ===== */
.portao-brilho {
  position: absolute; top: 0; bottom: 0; width: 55%; left: -60%;
  pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent, rgba(255,241,220,.22) 42%, rgba(255,255,255,.3) 50%, rgba(255,241,220,.22) 58%, transparent);
  animation: passarBrilho 6s ease-in-out infinite;
}
@keyframes passarBrilho {
  0%, 62%  { left: -60%; }
  100%     { left: 115%; }
}

.portao-base {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px; pointer-events: none;
  background: linear-gradient(180deg, #3a3c44 0%, #1d1f24 45%, #0a0b0d 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 3px 10px rgba(0,0,0,.85);
}

/* ===== logo estampada ===== */
.portao-marca { position: absolute; left: 0; right: 0; top: 15%; display: grid; place-items: center; pointer-events: none; }
.portao-logo {
  display: block; width: min(60vw, 330px); height: auto; opacity: 1;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.8));
}

/* ===== puxador ===== */
.portao-puxador {
  position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%);
  width: min(200px, 54vw); height: 18px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(180deg, #e2e4ec 0%, #a8aab6 20%, #6a6c78 58%, #3a3c44 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 3px rgba(0,0,0,.5), 0 5px 12px rgba(0,0,0,.75);
}
.portao-puxador::before, .portao-puxador::after {
  content: ""; position: absolute; top: -7px; width: 12px; height: 32px; border-radius: 3px;
  background: linear-gradient(180deg, #9a9ca8, #45474f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 6px rgba(0,0,0,.7);
}
.portao-puxador::before { left: -14px; }
.portao-puxador::after  { right: -14px; }

/* ===== dica ===== */
.portao-dica {
  position: absolute; left: 0; right: 0; bottom: 10%;
  text-align: center; pointer-events: none;
  color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  text-shadow: 0 2px 8px rgba(0,0,0,1);
  transition: opacity .2s;
}
.portao-seta {
  display: block; width: 26px; height: 26px; margin: 0 auto 12px;
  border-left: 3px solid var(--brand); border-top: 3px solid var(--brand);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 10px rgba(237,120,40,.9));
  animation: subirSeta 1.4s var(--ease) infinite;
}
@keyframes subirSeta {
  0%, 100% { transform: rotate(45deg) translate(0, 0);     opacity: .55; }
  50%      { transform: rotate(45deg) translate(6px, -6px); opacity: 1; }
}
.portao.arrastando .portao-dica { opacity: .2; }

/* ===== batente ===== */
.portao-trilho {
  position: absolute; top: 0; bottom: 0; width: 24px; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, #0c0d10, #3c3f47 38%, #5e616b 50%, #2a2c33 68%, #08090b);
  box-shadow: 0 0 20px rgba(0,0,0,.85);
}
.portao-trilho.esq { left: 0; }
.portao-trilho.dir { right: 0; }
.portao-lintel {
  position: absolute; top: 0; left: 0; right: 0; height: 44px; z-index: 6; pointer-events: none;
  background: linear-gradient(180deg, #121318 0%, #2a2c33 55%, #0b0c0e 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,.9), inset 0 -1px 0 rgba(255,255,255,.12);
}

/* ao abrir: batente some na hora, nada cobre o cardápio */
.portao.abrindo .portao-trilho,
.portao.abrindo .portao-lintel,
.portao.abrindo .portao-brilho { display: none; }

@media (prefers-reduced-motion: reduce) {
  .portao-seta, .portao-brilho { animation: none; }
}

/* ---------- Plaquinha pendurada com o logo ---------- */
.placa-suporte {
  position: absolute; left: 50%; top: 8%;
  transform: translateX(-50%);
  width: min(62vw, 290px);
  pointer-events: none;
}

/* olhais parafusados na porta (ficam fixos, não balançam) */
.placa-olhal {
  position: absolute; top: -9px; width: 17px; height: 17px; border-radius: 50%;
  border: 3.5px solid #aeb1bb; box-sizing: border-box;
  background: radial-gradient(circle at 34% 28%, #f0f2f7, #70727c 62%, #30323a);
  box-shadow: 0 2px 5px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.55);
  z-index: 3;
}
.placa-olhal.esq { left: 13%; }
.placa-olhal.dir { right: 13%; }

/* conjunto corrente + placa: balança de leve */
.placa-balanco {
  position: relative;
  transform-origin: 50% -9px;
  animation: balancarPlaca 5s ease-in-out infinite alternate;
}
@keyframes balancarPlaca {
  from { transform: rotate(-1.5deg); }
  to   { transform: rotate(1.5deg); }
}
.portao.arrastando .placa-balanco { animation-duration: 1.1s; }  /* chacoalha ao puxar */

/* correntes (elos desenhados em SVG, alternando de lado) */
.placa-corrente {
  position: absolute; top: -4px; width: 18px; height: 50px; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='26'%3E%3Cg fill='none' stroke='%23b9bcc6' stroke-width='3'%3E%3Cellipse cx='9' cy='7' rx='5.5' ry='8'/%3E%3Cellipse cx='9' cy='20' rx='2.4' ry='8'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-y; background-size: 18px 26px;
  filter: drop-shadow(1px 3px 3px rgba(0,0,0,.85));
}
.placa-corrente.esq { left: calc(13% - 1px); }
.placa-corrente.dir { right: calc(13% - 1px); }

/* a placa em si: moldura metálica em volta do logo */
.placa {
  position: relative; margin: 46px auto 0;
  width: 100%; aspect-ratio: 1 / 1; border-radius: 50%;
  padding: 13px; box-sizing: border-box;
  background: linear-gradient(165deg, #6b6e78 0%, #40434b 30%, #24262c 62%, #121318 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.45),
    inset 0 -5px 14px rgba(0,0,0,.9),
    0 22px 38px rgba(0,0,0,.75),
    0 6px 14px rgba(0,0,0,.6);
}
.placa-logo {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.7);
}

/* argolas onde a corrente prende na placa */
.placa-argola {
  position: absolute; top: -10px; width: 15px; height: 15px; border-radius: 50%;
  border: 3.5px solid #b4b7c1; box-sizing: border-box; background: transparent;
  box-shadow: 0 2px 4px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.45);
  z-index: 3;
}
.placa-argola.esq { left: 13%; }
.placa-argola.dir { right: 13%; }

/* parafusos na moldura */
.placa-parafuso {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 33% 28%, #e9ebf1, #8d8f99 55%, #41434a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 3px rgba(0,0,0,.85);
}
.placa-parafuso::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 50%;
  height: 1.5px; background: rgba(0,0,0,.6); transform: rotate(38deg);
}
.placa-parafuso.p1 { top: 16%;    left: 16%; }
.placa-parafuso.p2 { top: 16%;    right: 16%; }
.placa-parafuso.p3 { bottom: 16%; left: 16%; }
.placa-parafuso.p4 { bottom: 16%; right: 16%; }

@media (prefers-reduced-motion: reduce) {
  .placa-balanco { animation: none; }
}

/* ==========================================================================
   REFINAMENTO DA MARCA — hero, medalhão, tipografia e aproveitamento de tela
   ========================================================================== */

/* ---------- Aproveitar telas largas ---------- */
@media (min-width: 1280px) { :root { --col: 1180px; } }
@media (min-width: 1600px) {
  :root { --col: 1440px; }
  .categoria { grid-template-columns: repeat(3, 1fr); }
  .destaque-card { flex-basis: 200px; }
}

/* ---------- Faixa do topo: asfalto com luz quente ---------- */
.hero-banner {
  height: 150px;
  background:
    radial-gradient(85% 120% at 50% -30%, rgba(237,120,40,.42), rgba(237,120,40,.10) 45%, transparent 72%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #2e2f36 0%, #1d1e23 55%, #121317 100%);
}
@media (min-width: 720px) { .hero-banner { height: 190px; } }

/* ---------- Medalhão: moldura escura metálica (adeus anel branco) ---------- */
.logo3d-face {
  background: #101116;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), inset 0 0 22px rgba(0,0,0,.9);
}
.logo3d-face img { padding: 3px; }
.logo3d-face::after { background: linear-gradient(145deg, rgba(255,255,255,.18), transparent 45%); }
.logo3d-disc {
  background: linear-gradient(180deg, #7c7f8a 0%, #3a3c44 48%, #17181d 100%);
}
.logo3d { width: 132px; height: 132px; margin: -72px auto 16px; }
.logo3d::before {
  content: ""; position: absolute; inset: -22%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(237,120,40,.3), rgba(237,120,40,.08) 48%, transparent 68%);
}
@media (min-width: 720px) {
  .logo3d { width: 176px; height: 176px; margin: -100px auto 20px; }
}

/* ---------- Nome da marca: protagonista ---------- */
.hero-card h1 {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor; color: #f2ece2;
  filter: none;
  font-size: clamp(2.5rem, 8.5vw, 4.8rem);
  letter-spacing: .015em; line-height: .85;
  text-shadow: 0 3px 0 rgba(0,0,0,.55), 0 10px 28px rgba(0,0,0,.6);
}
.hero-card h1 .nome-a { color: #f4efe6; }
.hero-card h1 .nome-b { color: var(--brand); text-shadow: 0 3px 0 rgba(0,0,0,.55), 0 0 32px rgba(237,120,40,.45); }
.hero-card h1::after {
  content: ""; display: block; width: 86px; height: 4px; border-radius: 99px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--brand) 25%, var(--brand) 75%, transparent);
  animation: none;
}

/* ---------- Slogan: limpo, sem pílula ---------- */
.hero-card .slogan {
  display: block; margin-top: 14px; padding: 0;
  background: none; border-radius: 0; color: #a9a49c;
  font-size: .78rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
}

/* ---------- Chips: discretos e consistentes ---------- */
.chip {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  color: #c9c4bc; font-weight: 600; font-size: .78rem;
  padding: 7px 14px;
  backdrop-filter: blur(4px);
}
.chip.ok { color: #6ee79a; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); }
.chip.fechado { color: #ff8e8e; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); }

/* ---------- Cartão do hero: mais respiro ---------- */
.hero-card { padding: 20px 24px 24px; }
@media (min-width: 720px) { .hero-card { padding: 26px 32px 30px; } }

/* ==========================================================================
   LEGIBILIDADE — superfícies mais claras e textos com mais presença
   ========================================================================== */
:root {
  --bg:        #131318;
  --surface:   #22222a;   /* cartões bem mais claros que o fundo = destacam */
  --surface-2: #2d2d37;
  --border:    #3d3d49;
  --text:      #f8f5ef;
  --muted:     #b8b4ac;
}

/* ---------- Itens do cardápio ---------- */
.item {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 3px 12px rgba(0,0,0,.45);
  padding: 15px;
}
.item:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.item-nome {
  font-size: 1.1rem; font-weight: 800; color: #fffdf8;
  letter-spacing: -.005em; margin-bottom: 4px;
}
.item-desc {
  color: #bdb8b0; font-size: .85rem; line-height: 1.4;
  -webkit-line-clamp: 3; margin: 0 0 10px;
}
.item-preco {
  font-size: 1.15rem; font-weight: 800;
  color: var(--brand);
}
.item-thumb { background: #16161b; border: 1px solid rgba(255,255,255,.07); }

/* ---------- Destaques ---------- */
.destaque-card {
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.destaque-thumb { background: #16161b; }
.destaque-nome { color: #fffdf8; font-size: .95rem; font-weight: 700; }
.destaque-preco { color: var(--brand); font-size: 1.02rem; font-weight: 800; }

/* ---------- Títulos ---------- */
.categoria-titulo { font-size: 1.4rem; font-weight: 800; color: #fffdf8; }
.secao-mini { color: #fffdf8; font-size: 1.05rem; font-weight: 800; }

/* ---------- Busca e abas ---------- */
.busca {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .95rem;
}
.busca::placeholder { color: #8f8b84; }
.aba {
  background: var(--surface); border: 1px solid var(--border);
  color: #d2cdc5; font-weight: 600;
}
.aba.ativa { background: var(--brand-grad); color: var(--on-brand); border-color: transparent; }

/* ---------- Carrinho / painel ---------- */
.linha-item { background: var(--surface-2); border-color: var(--border); }
.form-pedido input, .form-pedido select, .form-pedido textarea {
  background: var(--surface-2); border-color: var(--border); color: var(--text);
}
.form-pedido > label { color: #cfcac2; }

/* ==========================================================================
   APROVEITAMENTO DE TELA — preencher as laterais em monitores largos
   ========================================================================== */
@media (min-width: 900px) {
  :root { --col: min(94vw, 1200px); }
  .categoria { grid-template-columns: repeat(2, 1fr); column-gap: 20px; row-gap: 16px; }
  .destaque-card { flex-basis: 200px; }
}
@media (min-width: 1280px) {
  :root { --col: min(94vw, 1520px); }
  .categoria { grid-template-columns: repeat(3, 1fr); }
  .destaque-card { flex-basis: 230px; }
  .item-thumb { width: 112px; height: 112px; }
}
@media (min-width: 1800px) {
  :root { --col: min(95vw, 1860px); }
  .categoria { grid-template-columns: repeat(4, 1fr); }
  .destaque-card { flex-basis: 250px; }
  .item-thumb { width: 120px; height: 120px; }
}
/* destaques ocupando a largura disponível */
@media (min-width: 900px) {
  .destaques { justify-content: center; flex-wrap: wrap; }
}

/* ==========================================================================
   AJUSTE FINO PARA CELULAR
   ========================================================================== */
@media (max-width: 560px) {
  /* nome empilhado: GARAGE em cima, BURGUER embaixo (igual ao logo) */
  .hero-card h1 { font-size: clamp(2.2rem, 13vw, 3.4rem); line-height: .92; }
  .hero-card h1 .nome-a,
  .hero-card h1 .nome-b { display: block; }
  .hero-card h1::after { margin-top: 12px; width: 70px; }

  .hero-card { margin: -40px 12px 0; padding: 16px 16px 20px; border-radius: 22px; }
  .hero-card .slogan { font-size: .7rem; letter-spacing: .2em; margin-top: 10px; }

  /* chips: centralizados e quebrando certo */
  .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
  .chip { font-size: .72rem; padding: 6px 11px; }

  /* logo do topo sem exagero */
  .logo3d { width: 116px; height: 116px; margin: -62px auto 12px; }
  .hero-banner { height: 128px; }

  /* destaques: primeiro card não encostando na borda */
  .destaques { padding-left: 14px; padding-right: 14px; justify-content: flex-start; }
  .destaque-card { flex-basis: 150px; }

  /* itens: foto e texto alinhados */
  .item { padding: 12px; gap: 12px; border-radius: 14px; }
  .item-thumb { width: 84px; height: 84px; flex-shrink: 0; }
  .item-nome { font-size: 1rem; line-height: 1.2; }
  .item-desc { font-size: .8rem; -webkit-line-clamp: 3; margin-bottom: 8px; }
  .item-preco { font-size: 1.05rem; }
  .cardapio { padding: 8px 12px; }
  .categoria-titulo { font-size: 1.2rem; }
}

/* corrige a cor do nome (o -webkit-text-fill-color herdado atropelava o laranja) */
.hero-card h1 .nome-a { color: #f4efe6; -webkit-text-fill-color: #f4efe6; }
.hero-card h1 .nome-b { color: var(--brand); -webkit-text-fill-color: var(--brand); }

/* ==========================================================================
   DESTAQUES NO CELULAR — grade que cabe inteira (sem carrossel cortando)
   ========================================================================== */
@media (max-width: 900px) {
  .destaques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 10px;
    overflow-x: visible;          /* nada de rolagem lateral */
    padding: 2px 14px 8px;
    justify-content: stretch;
  }
  .destaque-card { flex-basis: auto; width: 100%; scroll-snap-align: none; }
  .destaque-thumb { height: 104px; }
  .destaque-nome { font-size: .82rem; }
  .destaque-preco { font-size: .92rem; }

  /* nome empilhado também aqui (garante em tablets estreitos) */
  .hero-card h1 .nome-a, .hero-card h1 .nome-b { display: block; }
  .hero-card h1 { font-size: clamp(2.2rem, 12vw, 3.6rem); line-height: .92; }
}

/* ==========================================================================
   AJUSTES: fogo discreto, selo fora do lanche, menos saturação
   ========================================================================== */

/* 1) tira o laranja que cobria a foto do lanche mais pedido */
.destaque-card--fogo .destaque-thumb::before { display: none !important; }

/* 2) brilho suave e LENTO (era pisca-pisca de 1,3s) */
.destaque-card--fogo {
  border: 2px solid color-mix(in srgb, var(--brand) 88%, #ff5a1f);
  animation: cardIn .55s var(--ease) backwards, fogoSuave 5s ease-in-out infinite;
}
@keyframes fogoSuave {
  0%, 100% { box-shadow: 0 0 9px 1px rgba(237,120,40,.26),  0 0 20px 4px rgba(237,120,40,.12); }
  50%      { box-shadow: 0 0 16px 3px rgba(237,120,40,.42), 0 0 32px 8px rgba(237,120,40,.20); }
}

/* 3) selo sai de cima do hambúrguer -> rodapé da foto, discreto */
.fita-mais {
  top: auto; bottom: 7px; left: 7px;
  background: rgba(13,13,16,.85);
  color: var(--brand);
  border: 1px solid rgba(237,120,40,.5);
  font-size: .56rem; letter-spacing: .04em;
  padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}

/* 4) menos saturação geral: degradê da marca mais suave */
:root {
  --brand-grad: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 92%, #ffb066),
    color-mix(in srgb, var(--brand) 86%, #a8521a));
}
.destaque-thumb::after { opacity: .35; }   /* véu sobre as fotos mais leve */

@media (prefers-reduced-motion: reduce) {
  .destaque-card--fogo { animation: cardIn .55s var(--ease) backwards; }
}

/* selo "mais pedido" agora FORA da foto, acima do nome */
.fita-mais {
  position: static; top: auto; left: auto; bottom: auto;
  display: inline-flex; align-items: center; gap: 4px;
  margin: 8px 4px 0; padding: 3px 9px;
  background: rgba(237,120,40,.14);
  border: 1px solid rgba(237,120,40,.45);
  color: var(--brand);
  font-size: .58rem; font-weight: 800; letter-spacing: .05em;
  border-radius: 999px; box-shadow: none; backdrop-filter: none;
}

/* ==========================================================================
   LOGO NOVO (emblema, não circular) — topo e plaquinha do portão
   ========================================================================== */

/* ---------- Topo: emblema limpo, sem moldura de moeda ---------- */
.logo3d {
  width: 200px; height: 200px; perspective: 1100px;
  margin: -86px auto 6px;
}
.logo3d::after { display: none; }                 /* some a sombra de chão */
.logo3d::before {                                  /* brilho quente atrás */
  inset: -14%;
  background: radial-gradient(circle, rgba(237,120,40,.22), rgba(237,120,40,.06) 48%, transparent 70%);
}
/* (rotacao controlada pelo JS — regra travada removida) */
.logo3d-disc { display: none !important; }
.logo3d-face {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.logo3d-face::after { display: none !important; }
.logo3d-face img {
  padding: 0 !important; object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.7));
}
@media (min-width: 720px) { .logo3d { width: 268px; height: 268px; margin: -116px auto 8px; } }
@media (max-width: 560px) { .logo3d { width: 168px; height: 168px; margin: -74px auto 4px; } }

/* ---------- Plaquinha do portão: placa retangular escura ---------- */
.placa-suporte { width: min(70vw, 330px); top: 9%; }
.placa {
  border-radius: 18px;
  aspect-ratio: 1 / 0.92;
  padding: 10px;
  background: linear-gradient(165deg, #2b2d33 0%, #1b1d22 45%, #0e0f12 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.3),
    inset 0 -4px 12px rgba(0,0,0,.85),
    0 22px 38px rgba(0,0,0,.8),
    0 6px 14px rgba(0,0,0,.65);
}
.placa-logo {
  border-radius: 10px; object-fit: contain;
  box-shadow: none;
  background: transparent;
}
.placa-parafuso.p1 { top: 7%;    left: 6%; }
.placa-parafuso.p2 { top: 7%;    right: 6%; }
.placa-parafuso.p3 { bottom: 7%; left: 6%; }
.placa-parafuso.p4 { bottom: 7%; right: 6%; }

/* ==========================================================================
   REVISÃO MOBILE — área segura, alvos de toque e respiro final
   ========================================================================== */

/* botão flutuante respeitando a faixa inferior do iPhone */
.btn-carrinho { bottom: calc(18px + env(safe-area-inset-bottom)); }

/* alvo de toque confortável (mínimo recomendado: 44px) */
@media (max-width: 900px) {
  .btn-add { width: 46px; height: 46px; font-size: 1.3rem; }
  .qtd-btn { width: 34px; height: 34px; }
  .aba { padding: 9px 14px; }       /* abas mais fáceis de acertar com o dedo */
}

/* espaço no fim da página pro botão do carrinho não tapar o último item */
.rodape { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* evita que descrição longa empurre o preço pra fora no celular */
@media (max-width: 420px) {
  .item-desc { -webkit-line-clamp: 2; font-size: .78rem; }
  .item-thumb { width: 76px; height: 76px; }
  .item-nome { font-size: .95rem; }
}

/* ---------- Ingredientes: abrir a descrição completa ---------- */
.item-desc.cortada { cursor: pointer; }
.item-desc.aberta {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.ver-mais {
  display: inline-block; margin: -4px 0 9px;
  background: none; border: none; padding: 0;
  color: var(--brand); font-weight: 700; font-size: .76rem;
  letter-spacing: .01em; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.ver-mais:hover { color: color-mix(in srgb, var(--brand) 80%, white); }
.ver-mais[hidden] { display: none; }

/* sem sublinhado no "ver mais" — usa uma setinha como indicação */
.ver-mais {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; opacity: .95;
}
.ver-mais::after {
  content: ""; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .18s var(--ease);
}
.item-desc.aberta ~ .ver-mais::after { transform: rotate(-135deg) translateY(-1px); }
.ver-mais:hover { opacity: 1; }

/* ---------- Logo girando em 3D (e arrastável com o dedo) ---------- */
.logo3d { perspective: 1100px; }
.logo3d-spin {
  animation: none;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: grab;
}
.logo3d-spin:active { cursor: grabbing; }
.logo3d-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* camadas que formam a espessura do emblema 3D */
.logo3d-camada {
  position: absolute; inset: 0;
  pointer-events: none;
  backface-visibility: visible;
}
.logo3d-camada img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Plaquinha: corrente completa + tom que combina com o portão ---------- */

/* corrente alonga até encostar nos olhais (antes sobrava um vão) */
.placa-corrente {
  top: -11px;
  height: 66px;
}

/* placa em grafite metálico, não preta — conversa com a chapa do portão */
.placa {
  background: linear-gradient(165deg, #585b63 0%, #43454c 38%, #313339 70%, #26282d 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.4),
    inset 0 -4px 12px rgba(0,0,0,.65),
    0 22px 38px rgba(0,0,0,.72),
    0 6px 14px rgba(0,0,0,.55);
}
/* fundo escuro só atrás do emblema, pro logo manter contraste na placa clara */
.placa-logo {
  background: radial-gradient(75% 75% at 50% 45%, rgba(18,19,23,.94), rgba(18,19,23,.78) 70%, rgba(18,19,23,.45));
  border-radius: 12px;
}

/* corrige o colapso de margem: o espaço vira padding do contêiner,
   assim ele começa no topo e as correntes alcançam os olhais */
.placa-balanco {
  padding-top: 50px;
  transform-origin: 50% 0;
}
.placa { margin-top: 0; }
.placa-corrente { top: 0; height: 58px; z-index: 1; }
.placa-olhal { z-index: 4; }
.placa-argola { z-index: 4; }
