/* =========================================================
   MELT — design system
   Paleta: chocolate profundo · cacau · chocolate quente · cobre · bronze · baunilha · off-white
   Tipos:  Bodoni Moda (marca, títulos, preços) · Montserrat 300/400/500 espaçada (texto e rótulos)
   ========================================================= */
:root {
  --choc-900: #251007;  /* chocolate profundo — fundo principal */
  --choc-800: #35180B;  /* marrom cacau — superfícies */
  --choc-700: #53260F;  /* chocolate quente — elementos secundários */
  --cobre:    #93694A;  /* caramelo cobre — linhas e decoração */
  --bronze:   #B79470;  /* bronze dourado — destaque, ações */
  --creme:    #E6D6C2;  /* creme baunilha — texto principal, cartões */
  --off:      #EFE4D5;  /* off-white — texto claro de realce */

  --bg: var(--choc-900);
  --surface: var(--choc-800);
  --surface-2: var(--choc-700);
  --text: var(--creme);
  --text-muted: color-mix(in srgb, var(--creme) 66%, var(--choc-900));
  --line: color-mix(in srgb, var(--bronze) 22%, transparent);
  --line-strong: color-mix(in srgb, var(--bronze) 45%, transparent);
  --ink: var(--choc-800); /* texto sobre fundos claros */

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 24px 48px -24px rgba(0, 0, 0, .7);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--text); overflow-x: hidden;
  background:
    radial-gradient(min(1100px, 150vw) 680px at 15% 0%, color-mix(in srgb, var(--choc-700) 55%, transparent) 0%, transparent 70%),
    var(--bg);
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: var(--radius-sm); }
svg { flex: none; }
::selection { background: var(--bronze); color: var(--choc-900); }

.eyebrow { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--bronze); }
.sparkle { width: 14px; height: 14px; color: var(--bronze); }
.rule { display: flex; align-items: center; gap: 14px; color: var(--bronze); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-full); font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  transition: transform .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--bronze); color: var(--choc-900); }
.btn-primary:hover { background: var(--creme); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--creme); }
.btn-ghost:hover { border-color: var(--bronze); background: color-mix(in srgb, var(--bronze) 10%, transparent); }
.btn-block { width: 100%; }
.btn[hidden] { display: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--creme); border: 1px solid var(--line); transition: transform .2s var(--ease-out), background-color .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--bronze); background: color-mix(in srgb, var(--bronze) 10%, transparent); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--header);
  background: color-mix(in srgb, var(--choc-900) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px #000; }
.topbar-in { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.topbar-brand { display: flex; align-items: center; text-decoration: none; }
.topbar-brand img { height: 40px; width: auto; }
.tabs { position: relative; display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: var(--radius-full); border: 1px solid var(--line); background: color-mix(in srgb, var(--choc-800) 60%, transparent); }
.tab {
  position: relative; z-index: 1; white-space: nowrap; text-decoration: none; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: 9px 16px; border-radius: var(--radius-full); color: var(--text-muted); transition: color .3s var(--ease-out);
}
.tab:hover { color: var(--creme); }
.tab.active { color: var(--choc-900); }
.tab-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--radius-full); background: var(--bronze); opacity: 0;
           transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s; }
.bag-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--creme); border: 1px solid var(--line); transition: transform .2s var(--ease-out), border-color .2s; }
.bag-btn:hover { border-color: var(--bronze); }
.bag-btn svg { width: 22px; height: 22px; }
.bag-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bronze); color: var(--choc-900); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.bag-count[hidden], .backdrop[hidden], .sheet[hidden], .drawer[hidden] { display: none; }
.bump { animation: bump .45s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.15); } }

@media (max-width: 760px) {
  :root { --header: 112px; }
  .topbar-in { flex-wrap: wrap; row-gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .topbar-brand img { height: 34px; }
  .bag-btn { margin-left: auto; }
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 1; text-align: center; padding: 9px 10px; letter-spacing: .14em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid; gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-copy { text-align: center; display: grid; justify-items: center; }
.hero-logo { width: clamp(240px, 62vw, 420px); }
.hero .eyebrow { margin-top: 28px; }
.hero h1 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(44px, 8vw, 72px); line-height: 1; color: var(--off); margin-top: 10px; }
.hero-lead { font-size: clamp(15px, 1.6vw, 17px); color: var(--text-muted); max-width: 32em; margin-top: 16px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

.hero-visual { position: relative; width: min(100%, 480px); justify-self: center; padding: 18px; }
.ring { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: calc(var(--radius-xl) + 18px); }
.ring::before, .ring::after { content: ""; position: absolute; width: 22px; height: 22px; background: var(--bronze);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.ring::before { top: -11px; right: 44px; }
.ring::after { bottom: -11px; left: 44px; width: 14px; height: 14px; }
.hero-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.hero-photo img { width: 100%; height: 110%; object-fit: cover; will-change: transform; }
.hero-card {
  position: absolute; left: 0; bottom: 8%; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; text-align: left;
  background: var(--creme); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .3s var(--ease-spring);
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card:active { transform: scale(.97); }
.hero-card img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-md); }
.hero-card small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--cobre); }
.hero-card b { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.2; }
.hero-card em { font-style: normal; font-size: 13px; font-weight: 500; }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr 1fr; min-height: calc(100svh - var(--header)); }
  .hero-copy { text-align: left; justify-items: start; }
  .hero-cta { justify-content: flex-start; }
  .hero-card { left: -30px; }
}

/* chocolate derretendo entre seções (SVG geométrico, sem filtros — gerado/animado em js/app.js: setupMelt) */
.melt-edge { position: relative; height: clamp(96px, 11vw, 150px); background: var(--melt-to); overflow: hidden; pointer-events: none; margin-bottom: -1px; }
.melt-svg { position: absolute; inset: 0; display: block; color: var(--melt-from); }

/* ---------- seções ---------- */
.band { background: var(--surface); }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(52px, 7vw, 96px) var(--gutter); }
.sec-head { max-width: 640px; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; color: var(--off); margin-top: 10px; letter-spacing: -.01em; }
.sec-head h2 em { font-style: italic; color: var(--bronze); }
.sec-head p { font-size: 16px; color: var(--text-muted); margin-top: 12px; }
.sec-head p b { color: var(--creme); font-weight: 500; }

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(14px, 2.2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-feature { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-cones { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid-cones { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-xl); padding: 10px; cursor: pointer;
  background: color-mix(in srgb, var(--choc-800) 92%, var(--bronze)); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.band .card { background: color-mix(in srgb, var(--choc-900) 88%, var(--bronze)); }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card:hover .card-photo img { transform: scale(1.05); }
.card-tag { position: absolute; top: 10px; left: 10px; font-size: 9.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
            background: var(--creme); color: var(--ink); padding: 6px 11px; border-radius: var(--radius-full); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 8px 6px; }
.card-name { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.2; color: var(--off); }
.card-desc { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.card-opt { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--cobre); margin-bottom: 2px; }
.price { font-family: var(--display); font-weight: 500; font-size: 23px; color: var(--creme); line-height: 1; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--bronze); margin-right: 4px; }
.add {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bronze); color: var(--choc-900); transition: transform .25s var(--ease-spring), background-color .2s;
}
.add:hover { background: var(--creme); transform: rotate(90deg); }
.add:active { transform: scale(.9); }
.add svg { width: 20px; height: 20px; }

.grid-cones .card-name { font-size: 18px; }
.grid-cones .card-desc { font-size: 13.5px; -webkit-line-clamp: 2; }
.grid-cones .card-photo img { object-position: 50% 30%; }
@media (max-width: 520px) {
  .grid-cones { gap: 10px; }
  .grid-cones .card { padding: 6px; border-radius: var(--radius-lg); }
  .grid-cones .card-photo { border-radius: var(--radius-md); }
  .grid-cones .card-body { padding: 10px 4px 4px; }
  .grid-cones .card-name { font-size: 16px; }
  .grid-cones .card-desc { font-size: 12.5px; }
  .grid-cones .price { font-size: 19px; }
  .grid-cones .add { width: 38px; height: 38px; }
}

@media (min-width: 900px) {
  .grid-feature { grid-template-columns: 1fr 1fr; }
  .grid-feature .card { flex-direction: row; gap: 8px; }
  .grid-feature .card-photo { width: 52%; flex: none; }
  .grid-feature .card-body { padding: 20px 16px 10px; }
  .grid-feature .card-name { font-size: 27px; }
  .grid-feature .card-desc { -webkit-line-clamp: unset; font-size: 15px; }
}

/* ---------- cartão fidelidade (chamada no cardápio): cartão creme + impressão cacau ---------- */
.fidelidade {
  position: relative; display: grid; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl);
  background: var(--creme); color: var(--ink); box-shadow: var(--shadow); overflow: hidden;
}
.fidelidade .eyebrow { color: var(--cobre); }
.fidelidade h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin-top: 8px; }
.fidelidade h2 em { font-style: italic; color: var(--choc-700); }
.fidelidade p { font-size: 15.5px; margin-top: 10px; color: color-mix(in srgb, var(--ink) 80%, var(--creme)); }
.fidelidade .btn { margin-top: 18px; border-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); }
.fidelidade .btn:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fid-selos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: min(100%, 300px); }
.fid-selos span { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.fid-selos .on { background: var(--ink); }
.fid-selos .on::before { content: ""; width: 42%; height: 42%; background: var(--bronze); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.fid-selos .gift { border-style: dashed; font-size: 12px; font-weight: 600; color: var(--ink); }
@media (min-width: 820px) { .fidelidade { grid-template-columns: 300px 1fr; gap: 44px; } }

/* ---------- fechamento ---------- */
.closing { display: grid; gap: clamp(36px, 5vw, 60px); }
.seals { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.seal { display: grid; gap: 6px; justify-items: start; padding: 24px; border-radius: var(--radius-xl); border: 1px solid var(--line); }
.seal .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--bronze); border: 1px solid var(--line-strong); margin-bottom: 8px; }
.seal .ic svg { width: 18px; height: 18px; }
.seal b { font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--off); }
.seal span:last-child { font-size: 14.5px; color: var(--text-muted); }
.closing-cta { text-align: center; display: grid; justify-items: center; gap: 20px; }
.thanks { font-family: var(--display); font-style: italic; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; color: var(--off); }

.footer { text-align: center; padding: 48px var(--gutter) calc(112px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer img { width: 180px; margin: 0 auto; }
.footer p { font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--text-muted); margin-top: 16px; }

/* ---------- barra de pedido ---------- */
.fab {
  position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: var(--radius-full);
  background: var(--bronze); color: var(--choc-900); box-shadow: 0 18px 40px -16px #000;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: transform .45s var(--ease-spring), opacity .3s;
}
.fab[hidden] { display: flex; transform: translateY(150%); opacity: 0; pointer-events: none; }
.fab svg { width: 22px; height: 22px; }
.fab b { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: 0; text-transform: none; padding-left: 12px; border-left: 1px solid color-mix(in srgb, var(--choc-900) 30%, transparent); }
.fab-count { position: absolute; top: -5px; left: 30px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--choc-900); color: var(--creme); font-size: 11px; display: grid; place-items: center; letter-spacing: 0; }
.flyer { position: fixed; z-index: 60; left: 0; top: 0; width: 22px; height: 22px; color: var(--bronze); pointer-events: none; }

/* ---------- painéis ---------- */
.backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(10, 4, 1, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--ease-out); }
.backdrop.open { opacity: 1; }
.sheet, .drawer { position: fixed; z-index: 50; background: var(--surface); color: var(--text); box-shadow: 0 -20px 60px -20px #000; border: 1px solid var(--line); }

.sheet {
  left: 0; right: 0; bottom: 0; max-height: 92svh; overflow-y: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 18px;
  transform: translateY(105%); transition: transform .5s var(--ease-drawer);
}
.sheet::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); justify-self: center; }
.sheet.open { transform: none; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--surface); }
.sheet-photo { aspect-ratio: 1; width: min(100%, 340px); justify-self: center; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { display: grid; gap: 10px; align-content: start; }
.sheet h3 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15; color: var(--off); }
.sheet-desc { font-size: 15.5px; color: var(--text-muted); }
.sheet-price { margin-top: 2px; }
.sheet-price .card-opt { display: inline; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.opts:empty { display: none; }
.opt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; min-height: 44px; padding: 0 18px; border-radius: var(--radius-full); border: 1px solid var(--line-strong); color: var(--creme); transition: background-color .2s, color .2s, border-color .2s; }
.opt[aria-pressed="true"] { background: var(--bronze); color: var(--choc-900); border-color: var(--bronze); }
.sheet-actions { display: flex; gap: 10px; margin-top: 10px; }
.sheet-actions .btn { flex: 1; padding: 0 16px; letter-spacing: .12em; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-full); }
.stepper button { width: 44px; height: 46px; font-size: 20px; color: var(--creme); border-radius: var(--radius-full); }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 24px; text-align: center; font-weight: 500; color: var(--off); }

@media (min-width: 820px) {
  .sheet {
    left: 50%; right: auto; top: 50%; bottom: auto; width: min(860px, 92vw); border-radius: var(--radius-xl); border-bottom: 1px solid var(--line); padding: 24px;
    grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
    transform: translate(-50%, -50%) scale(.95); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s var(--ease-out);
  }
  .sheet::before { display: none; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-photo { width: 100%; }
  .sheet-body { padding-right: 24px; }
}

.drawer {
  top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; border-radius: var(--radius-xl) 0 0 var(--radius-xl); border-right: 0;
  transform: translateX(105%); transition: transform .5s var(--ease-drawer);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 36px; line-height: 1.1; color: var(--off); }
.cart-list { list-style: none; flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; align-content: start; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-md); }
.cart-item .n { font-family: var(--display); font-weight: 500; color: var(--off); font-size: 16px; line-height: 1.2; }
.cart-item .s { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cart-item .stepper button { width: 34px; height: 36px; font-size: 17px; }
.cart-empty { text-align: center; font-size: 15px; padding: 48px 0; color: var(--text-muted); }
.drawer-foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; text-transform: uppercase; letter-spacing: .24em; font-size: 11px; color: var(--text-muted); }
.total b { font-family: var(--display); font-weight: 500; font-size: 30px; color: var(--off); letter-spacing: 0; }
.hint { font-size: 12px; text-align: center; color: var(--text-muted); }
.hint:empty { display: none; }

.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); translate: -50% 0; max-width: calc(100vw - 32px);
  padding: 12px 20px; border-radius: var(--radius-full); background: var(--creme); color: var(--ink); font-size: 13px; font-weight: 500; text-align: center;
  opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); pointer-events: none; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- movimento de entrada ---------- */
.js .intro { opacity: 0; transform: translateY(18px); }
.js.ready .intro { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s); }
.js .hero-logo.intro { transform: translateY(10px) scale(.98); filter: blur(6px); }
.js.ready .hero-logo.intro { transform: none; filter: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); }
.js .ring { opacity: 0; transform: scale(.97); }
.js.ready .ring { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) .4s, transform 1.2s var(--ease-out) .4s; }
.js .hero-card { opacity: 0; translate: 0 16px; }
.js.ready .hero-card { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease-out) .9s, translate .7s var(--ease-spring) .9s, transform .3s var(--ease-spring); }

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out) var(--stagger, 0ms), transform .6s var(--ease-out) var(--stagger, 0ms); }
.js .card[data-reveal].in:hover { transform: translateY(-4px); transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .intro, .js [data-reveal], .js .ring, .js .hero-card, .js .hero-logo.intro { opacity: 1; transform: none; translate: none; filter: none; }
}

/* ---------- logo 3D da abertura (animada por JS: setupLogo3D em js/app.js) ---------- */
.logo3d { width: clamp(260px, 72vw, 480px); perspective: 900px; }
.logo3d-tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.logo3d-img { width: 100%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); }
/* brilho metálico: só aparece dentro das letras (máscara = a própria logo) */
.logo3d-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  -webkit-mask: url("../img/melt-logo-3d.png") center / 100% 100% no-repeat; mask: url("../img/melt-logo-3d.png") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 238, 214, .55) 47%, rgba(255, 250, 240, .9) 50%, rgba(255, 238, 214, .55) 53%, transparent 62%);
  background-size: 300% 100%; background-position: 130% 0;
}
/* cintilar das estrelinhas da logo */
.twinkle { position: absolute; translate: -50% -50%; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(circle, #fff8ee 0 18%, rgba(255, 236, 210, .5) 32%, transparent 65%); border-radius: 50%; }
.twinkle::before { content: ""; position: absolute; inset: -60%; background: #fff6ea;
  clip-path: polygon(50% 0, 53% 47%, 100% 50%, 53% 53%, 50% 100%, 47% 53%, 0 50%, 47% 47%); }
.twinkle.t1 { left: 88.5%; top: 7.2%; width: 6%; aspect-ratio: 1; }
.twinkle.t2 { left: 93.5%; top: 16.8%; width: 3.6%; aspect-ratio: 1; }
/* gota que nasce na ponta e cai */
.droplet {
  position: absolute; left: 80%; top: 92.4%; width: 2.6%; aspect-ratio: .78; pointer-events: none; opacity: 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 0;
  background: radial-gradient(circle at 35% 65%, #ffe9d2 0 12%, #d9a173 30%, #9a5a30 62%, #5e2e14 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}
@media (min-width: 960px) { .logo3d { width: clamp(360px, 36vw, 500px); margin-left: -14px; } }

/* ---------- tela "Instalar app" (js/instalar.js) ---------- */
.sheet-instalar { gap: 16px; }
.instalar-topo { display: flex; align-items: center; gap: 14px; padding-right: 48px; }
.instalar-topo img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); flex: none; }
.instalar-topo h3 { font-size: 24px; margin-top: 2px; }
.passos { list-style: none; display: grid; gap: 10px; }
.passos li { display: grid; grid-template-columns: 28px 30px 1fr; gap: 10px; align-items: center; padding: 12px 14px;
             border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.passos .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bronze); color: var(--choc-900); font-weight: 600; font-size: 13px; }
.passos svg { width: 26px; height: 26px; fill: none; stroke: var(--bronze); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.passos svg circle[r="1.2"] { fill: var(--bronze); }
.passos b { font-weight: 600; color: var(--off); }
@media (min-width: 820px) {
  .sheet.sheet-instalar { grid-template-columns: 1fr; width: min(500px, 92vw); }
  .sheet.sheet-instalar .sheet-body { padding: 0; }
}
