/* =========================================================
   XAVIER'S PUB · Cardápio digital
   Identidade: preto, branco quente e dourado-cerveja.
   Mobile first. Ajuste as cores em :root.
   ========================================================= */
:root {
  --bg: #0A0A0B;
  --bg-2: #101012;
  --card: #151518;
  --card-2: #1B1B1F;
  --line: #26262C;
  --line-2: #33333A;
  --text: #F6F3EC;
  --muted: #A7A39B;
  --gold: #F5B301;
  --gold-2: #FFCB45;
  --gold-ink: #1A1300;
  --orange: #F07A1A;
  --wa: #25D366;
  --ok: #3BD16F;
  --danger: #FF6B6B;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --font-display: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --topbar-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0);
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .85rem; color: var(--muted); }
@media (max-width: 420px) { .hide-xs { display: none; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; letter-spacing: .01em;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, opacity .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card-2); font-size: 22px; line-height: 1; display: grid; place-items: center;
}

/* ---------- Pré-visualização ---------- */
.preview-banner {
  background: var(--orange); color: #1d0d00; font-size: .85rem; font-weight: 700;
  padding: 8px 16px; text-align: center;
}
.preview-banner button { margin-left: 8px; border: 0; border-radius: 999px; padding: 2px 12px; background: #1d0d00; color: #fff; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  background: rgba(10,10,11,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; letter-spacing: .04em; }
.brand small { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
.topnav { display: none; gap: 28px; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.topnav a:hover { color: var(--text); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-label { display: none; font-weight: 700; font-size: .9rem; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: .75rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg);
}
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 22px 0 28px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,179,1,.22), rgba(245,179,1,0) 70%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hero-logo { flex: none; }
.hero-logo img {
  aspect-ratio: 1 / 1; object-fit: cover;
  width: 132px; height: 132px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(245,179,1,.35), 0 0 0 10px rgba(245,179,1,.06), 0 20px 60px rgba(0,0,0,.6);
}
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--gold); font-weight: 700; }
.hero-title {
  margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; line-height: .92;
  font-size: clamp(3.2rem, 14vw, 6.4rem); letter-spacing: .01em;
}
.hero-title span {
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #C98A00);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-text { margin: 12px auto 0; max-width: 520px; color: var(--muted); font-size: 1.02rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.hero-cta { flex-wrap: nowrap; }
.hero-cta .btn { flex: 1 1 0; max-width: 260px; padding: 0 14px; font-size: .95rem; }
.hero-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-chips li { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Aberto / fechado ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 14px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; font-weight: 700;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status span { color: var(--muted); font-weight: 500; }
.status.is-open { color: var(--ok); border-color: rgba(59,209,111,.35); }
.status.is-open i { box-shadow: 0 0 0 4px rgba(59,209,111,.18); animation: pulse 2s ease-in-out infinite; }
.status.is-closed { color: var(--danger); border-color: rgba(255,107,107,.35); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(59,209,111,0); } }
@media (prefers-reduced-motion: reduce) { .status.is-open i { animation: none; } }
.closed-note {
  margin: 4px 0 14px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .9rem;
  background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.3); color: var(--text);
}

/* ---------- Pedir de novo ---------- */
.reorder { margin-top: 12px; }
.reorder-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245,179,1,.10), rgba(240,122,26,.05)); border: 1px solid rgba(245,179,1,.35);
}
.reorder-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(245,179,1,.14); color: var(--gold); }
.reorder-ic svg { width: 22px; height: 22px; }
.reorder-txt { flex: 1; min-width: 0; }
.reorder-txt strong { display: block; font-size: .95rem; }
.reorder-txt small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.reorder .btn { flex: none; min-height: 42px; padding: 0 16px; font-size: .9rem; }

/* ---------- Atalhos ---------- */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.channel {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; text-align: center; transition: border-color .2s, transform .12s;
}
.channel:hover { border-color: var(--line-2); }
.channel:active { transform: scale(.98); }
.channel-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.channel-ic svg { width: 24px; height: 24px; }
.channel strong { font-size: .92rem; white-space: nowrap; }
.channel > span:last-child { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.channel small { font-size: .74rem; color: var(--muted); line-height: 1.2; }
.ch-wa .channel-ic { background: rgba(37,211,102,.14); color: var(--wa); }
.ch-ig .channel-ic { background: rgba(240,122,26,.14); color: var(--orange); }
.ch-ze .channel-ic { background: rgba(245,179,1,.14); color: var(--gold); }
.channel.is-soon { opacity: .6; cursor: default; }
.ic-wa { background: rgba(37,211,102,.14); color: var(--wa); }
.ic-ig { background: rgba(240,122,26,.14); color: var(--orange); }
.ic-ze { background: rgba(245,179,1,.14); color: var(--gold); }
.gold-link { color: var(--gold); }

/* ---------- Títulos de seção ---------- */
section { scroll-margin-top: calc(var(--topbar-h) + 8px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; letter-spacing: .02em; line-height: 1; }
.section-sub { margin: 0; color: var(--muted); font-size: .95rem; flex-basis: 100%; }
.link-more { color: var(--gold); text-decoration: none; font-weight: 700; font-size: .9rem; }

/* ---------- Destaques ---------- */
.highlights { padding: 34px 0 6px; }
.hscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; scrollbar-width: none;
  max-width: 1180px; margin: 0 auto;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

/* ---------- Cardápio ---------- */
.menu { padding: 34px 0 20px; }
.menu-tools {
  position: sticky; top: var(--topbar-h); z-index: 30; padding: 10px 0 10px;
  background: linear-gradient(var(--bg) 82%, rgba(10,10,11,0));
}
.search {
  position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s;
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 1rem; }
.search input::placeholder { color: #7a776f; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { border: 0; background: var(--line-2); width: 26px; height: 26px; border-radius: 50%; line-height: 1; font-size: 18px; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); font-size: .88rem; font-weight: 500; white-space: nowrap; color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); font-weight: 700; }
.chip .chip-n { opacity: .6; margin-left: 4px; font-size: .78rem; }

.cat-block { margin-top: 22px; }
.cat-title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .03em;
}
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cat-title small { font-family: var(--font); font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ---------- Card de produto ---------- */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-2); }
.card-media {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, #24242a 0%, #141417 70%);
}
.card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.card-media svg { width: 58%; height: 78%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.card-tags { position: absolute; top: 8px; left: 8px; z-index: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.tag-promo { background: var(--orange); color: #1d0d00; }
.tag-off { background: #2a2a2f; color: var(--muted); border: 1px solid var(--line-2); }
.tag-cold { background: rgba(10,10,11,.7); color: #bfe9ff; border: 1px solid rgba(191,233,255,.25); }
.card-qty {
  position: absolute; top: 8px; right: 8px; z-index: 1; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: .8rem; display: grid; place-items: center;
}
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.card-name { margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.25; }
.card-meta { font-size: .78rem; color: var(--muted); }
.card-desc { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-size: 1.15rem; color: var(--gold); font-weight: 700; letter-spacing: -.01em; }
.price s { font-size: .8rem; color: var(--muted); }
.add-btn {
  height: 40px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--gold);
  font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, color .15s;
}
.add-btn:hover { background: var(--gold); color: var(--gold-ink); }
.add-btn:disabled { border-color: var(--line-2); color: var(--muted); background: transparent; cursor: not-allowed; }
.stepper { display: flex; align-items: center; justify-content: space-between; height: 40px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.25rem; font-weight: 700; color: inherit; border-radius: 50%; }
.stepper span { font-weight: 700; min-width: 24px; text-align: center; }
.card.is-off .card-media { filter: grayscale(.9) brightness(.7); }
.card.is-off .price strong { color: var(--muted); }
.card.is-promo { border-color: rgba(240,122,26,.45); }

/* ---------- Busca vazia ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- Como pedir ---------- */
.how { padding: 40px 0 10px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-family: var(--font-display); font-size: 1.4rem; }
.how-alt { margin-top: 12px; padding: 14px; border-radius: var(--radius); border: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.how-alt strong { color: var(--text); }

/* ---------- Contato ---------- */
.contact { padding: 40px 0 30px; }
.contact-grid { display: grid; gap: 10px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s;
}
.contact-card:hover { border-color: var(--line-2); }
.contact-card .channel-ic { flex: none; }
.contact-card div { flex: 1; min-width: 0; }
.contact-card strong { display: block; }
.contact-card span { color: var(--muted); font-size: .88rem; word-break: break-word; }
.contact-card .go { color: var(--gold); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.contact-card.is-soon { opacity: .6; }
.info { margin: 16px 0 0; display: grid; gap: 10px; }
.info div { padding: 12px 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.info dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.info dd { margin: 2px 0 0; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0 calc(110px + var(--safe-b)); background: var(--bg-2); }
.footer-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.footer img { border-radius: 50%; opacity: .9; }
.legal { margin: 6px 0 0; font-size: .85rem; color: var(--text); max-width: 560px; }
.footer p { margin: 0; }

/* ---------- Barra do carrinho ---------- */
.cart-bar {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px 0 8px; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.2);
  animation: rise .25s ease;
}
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.cart-bar-count { min-width: 40px; height: 40px; border-radius: 999px; background: var(--gold-ink); color: var(--gold); display: grid; place-items: center; padding: 0 8px; }
.cart-bar-label { flex: 1; text-align: left; }

/* ---------- Bottom sheet / painel ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet-panel {
  position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow); animation: up .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--bg-2); }
.foot-total { display: flex; justify-content: space-between; align-items: baseline; }
.foot-total span { color: var(--muted); }
.foot-total strong { font-size: 1.35rem; color: var(--gold); }

/* Itens do carrinho */
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.cart-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #26262c, #141417); }
.cart-thumb svg { width: 60%; height: 85%; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-info { min-width: 0; }
.cart-info strong { display: block; font-size: .95rem; line-height: 1.25; }
.cart-info small { color: var(--muted); font-size: .8rem; }
.cart-info .line-total { color: var(--gold); font-weight: 700; font-size: .9rem; }
.cart-info .warn { color: var(--danger); font-size: .78rem; font-weight: 700; }
.cart-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 34px; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.1rem; font-weight: 700; border-radius: 50%; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.remove { border: 0; background: transparent; color: var(--muted); font-size: .78rem; text-decoration: underline; padding: 2px; }
.cart-empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.cart-sum, .form-sum { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; font-size: .92rem; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; }
.sum-row span:first-child { color: var(--muted); }
.sum-row.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-weight: 700; font-size: 1rem; }
.sum-note { font-size: .8rem; color: var(--muted); }
.sum-warn { font-size: .85rem; color: var(--danger); font-weight: 700; }

/* Formulário */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: .85rem; font-weight: 700; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--card); outline: none; font-size: 1rem; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field .invalid, .field input.invalid, .field textarea.invalid { border-color: var(--danger); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { grid-column: 1 / -1; margin-bottom: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; color: var(--muted); font-size: .92rem; cursor: pointer; }
.seg input:checked + span { border-color: var(--gold); color: var(--gold); background: rgba(245,179,1,.08); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; }
.check.invalid span { color: var(--danger); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,107,107,.1); color: var(--danger); font-size: .9rem; font-weight: 700; }

/* Concluído */
.done { text-align: center; padding: 20px 6px; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(37,211,102,.15); color: var(--wa); font-size: 2rem; font-weight: 700; }
.done h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .02em; }
.done p { color: var(--muted); margin: 6px 0; }
.done a { color: var(--gold); }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* Opções */
.opt-list { display: grid; gap: 8px; }
.opt-list button { min-height: 50px; padding: 0 16px; text-align: left; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.opt-list button:hover { border-color: var(--gold); }

/* Toast */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 999px; background: #F6F3EC; color: #111; font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 16px; text-align: center; background: var(--orange); color: #000; margin: 0; }

/* =================== Tablet =================== */
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .hero-logo img { width: 180px; height: 180px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hscroll { grid-auto-columns: 30%; padding: 4px 24px 16px; }
  .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .cart-label { display: inline; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .info { grid-template-columns: repeat(2, 1fr); }
  .channel { flex-direction: row; text-align: left; padding: 14px; gap: 12px; }
  .channel > span:last-child { align-items: flex-start; }
  .sheet { align-items: stretch; justify-content: flex-end; }
  .sheet-panel { width: 440px; max-height: none; height: 100%; border-radius: 22px 0 0 22px; border: 1px solid var(--line); border-right: 0; animation: slide .28s cubic-bezier(.2,.8,.2,1); }
  .sheet-sm { align-items: center; justify-content: center; }
  .sheet-sm .sheet-panel { height: auto; max-height: 80vh; border-radius: 22px; border-right: 1px solid var(--line); animation: up .25s ease; }
  @keyframes slide { from { transform: translateX(40px); opacity: 0; } }
}

/* =================== Desktop =================== */
@media (min-width: 960px) {
  :root { --topbar-h: 68px; }
  .topnav { display: flex; }
  .hero { padding: 56px 0 64px; }
  .hero-in { flex-direction: row; text-align: left; gap: 56px; justify-content: center; }
  .hero-logo img { width: 280px; height: 280px; }
  .hero-text { margin-left: 0; }
  .hero-cta, .hero-chips { justify-content: flex-start; }
  .hero-cta .btn { flex: 0 0 auto; padding: 0 24px; font-size: 1rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .hscroll { grid-auto-columns: calc((100% - 48px - 48px) / 5); }
  .section-head h2 { font-size: 2.8rem; }
  .cart-bar { display: none !important; }
  .footer { padding-bottom: 40px; }
  .toast { bottom: 28px; }
}

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