/* Yucatán — cardápio digital. Tema escuro com cores quentes + turquesa, creme e marrom.
   A fonte ADUMU do logotipo é carregada pelo JavaScript só quando o arquivo existe em public/fonts. */

:root {
  --bg: #120b08;
  --bg-2: #180f0b;
  --surface: #1f1510;
  --surface-2: #2a1c15;
  --surface-3: #35241b;
  --line: rgba(246, 231, 200, 0.09);
  --line-2: rgba(246, 231, 200, 0.16);
  --cream: #f6e7c8;
  --cream-2: #e8d3ab;
  --text: #f6e7c8;
  --muted: #b9a385;
  --muted-2: #8f7b62;
  --brown: #6b3f24;
  --brown-2: #8f5a36;
  --turq: #25c6b8;
  --turq-2: #129d91;
  --turq-ink: #062a27;
  --orange: #ff7a1a;
  --magenta: #ec1e79;
  --yellow: #ffbe1a;
  --red: #ef4444;
  --green: #4cc26a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Reggae One', 'DM Sans', system-ui, sans-serif;
  --font-brand: 'Adumu', 'Reggae One', 'DM Sans', system-ui, sans-serif;
  --top-h: 60px;
  --nav-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.locked, html.locked body { overflow: hidden; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--turq); }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--turq); color: var(--turq-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--turq), var(--turq-2)); color: var(--turq-ink);
  font-weight: 800; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); }
.btn.block { width: 100%; }
.btn.lg { min-height: 54px; font-size: 1.05rem; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 0.86rem; }
.btn.ghost { background: rgba(246, 231, 200, 0.06); color: var(--cream); border: 1px solid var(--line-2); font-weight: 700; }
.btn.ghost:hover { background: rgba(246, 231, 200, 0.12); }
.btn.warm { background: linear-gradient(135deg, var(--orange), var(--magenta)); color: #fff; }
.btn.wa { background: #25d366; color: #052e16; }
.btn svg { width: 1.15em; height: 1.15em; }
.linklike { background: none; border: 0; padding: 0; color: var(--turq); text-decoration: underline; font-weight: 600; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(18, 11, 8, 0.55); color: var(--cream);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.sm { min-width: 34px; height: 34px; padding: 0 8px; }
.icon-btn:hover { background: rgba(246, 231, 200, 0.1); }

/* ---------- Topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 40;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s;
  border-bottom: 1px solid transparent;
}
.topbar.solid { background: var(--bg); border-color: var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.topbar-in { height: 100%; width: min(1180px, 100%); margin: 0 auto; padding: 0 12px; display: flex; align-items: center; gap: 10px; }
.mini-logo {
  font-family: var(--font-brand); font-size: 1.45rem; color: var(--cream); text-decoration: none; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.topbar.solid .mini-logo { opacity: 1; transform: none; pointer-events: auto; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(18, 11, 8, 0.55); font-size: 0.82rem; font-weight: 700; color: var(--cream);
  max-width: 46vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); flex: none; }
.status-pill.open .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(76, 194, 106, 0.6); animation: pulse 2s infinite; }
.status-pill.paused .dot { background: var(--yellow); }
.status-pill.closed .dot { background: var(--red); }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.top-actions .lbl { font-size: 0.86rem; font-weight: 700; }
.cart-btn { position: relative; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--magenta); color: #fff; font-size: 0.72rem; font-weight: 800; display: grid; place-items: center;
}
.badge.bump { animation: bump 0.35s ease; }
@media (max-width: 480px) { .top-actions .lbl { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92svh, 760px); display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: calc(var(--top-h) + 64px) 16px 70px; text-align: center;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(255, 122, 26, 0.22), transparent 70%),
    radial-gradient(40% 40% at 15% 85%, rgba(37, 198, 184, 0.16), transparent 70%),
    radial-gradient(45% 40% at 88% 80%, rgba(236, 30, 121, 0.16), transparent 70%),
    linear-gradient(180deg, #1b100b 0%, var(--bg) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 90px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.sun {
  position: absolute; z-index: -1; left: 50%; top: 46%; width: min(160vw, 1500px); aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 190, 26, 0.085) 0deg 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
  mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 62%);
  animation: spin 90s linear infinite; will-change: transform;
}
.papel { position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1; color: rgba(246, 231, 200, 0.35); }
.papel .string { position: absolute; top: calc(var(--top-h) - 6px); left: -2%; width: 104%; height: 40px; }
.flags { position: absolute; top: calc(var(--top-h) - 4px); left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 2%; }
.flag {
  width: clamp(34px, 6.2vw, 64px); height: auto; aspect-ratio: 60 / 72; transform-origin: 50% 0; fill: currentColor;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); animation: sway 3.6s ease-in-out infinite alternate;
  opacity: 0.92;
}
.hero-in { position: relative; max-width: 980px; }
.brand {
  margin: 0; font-family: var(--font-brand); font-weight: 400; line-height: 0.95; letter-spacing: 0.01em;
  font-size: clamp(4.2rem, 19vw, 12.5rem); display: inline-flex; justify-content: center; flex-wrap: nowrap;
}
.brand span {
  display: inline-block; opacity: 0; transform: translateY(-70px) rotate(-10deg) scale(0.8);
  animation: drop 0.9s cubic-bezier(0.2, 1.6, 0.4, 1) forwards, bob 4.8s ease-in-out infinite;
  text-shadow: 0 0.04em 0 var(--brown), 0 0.08em 0 #4a2a17, 0 0.14em 0.25em rgba(0, 0, 0, 0.55);
}
.brand span:nth-child(1) { color: var(--magenta); animation-delay: 0.05s, 1.1s; }
.brand span:nth-child(2) { color: var(--orange); animation-delay: 0.15s, 1.25s; }
.brand span:nth-child(3) { color: var(--yellow); animation-delay: 0.25s, 1.4s; }
.brand span:nth-child(4) { color: var(--turq); animation-delay: 0.35s, 1.55s; }
.brand span:nth-child(5) { color: var(--cream); animation-delay: 0.45s, 1.7s; }
.brand span:nth-child(6) { color: var(--magenta); animation-delay: 0.55s, 1.85s; }
.brand span:nth-child(7) { color: var(--orange); animation-delay: 0.65s, 2s; }
.slogan {
  margin: 14px auto 0; font-family: var(--font-display); font-size: clamp(1.05rem, 3.6vw, 1.6rem); color: var(--cream);
  opacity: 0; animation: fadeUp 0.8s ease 0.95s forwards; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.hero-meta { margin-top: 26px; display: grid; gap: 14px; justify-items: center; opacity: 0; animation: fadeUp 0.8s ease 1.15s forwards; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: rgba(246, 231, 200, 0.07); border: 1px solid var(--line-2); color: var(--cream);
}
.chip svg { width: 16px; height: 16px; }
.chip.ok { color: #bff3cc; border-color: rgba(76, 194, 106, 0.4); background: rgba(76, 194, 106, 0.12); }
.chip.warn { color: #ffe3a0; border-color: rgba(255, 190, 26, 0.4); background: rgba(255, 190, 26, 0.12); }
.chip.bad { color: #ffc4c4; border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.12); }
.hero-address { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; color: var(--cream-2); font-size: 0.92rem; }
.hero-address .addr { display: inline-flex; align-items: center; gap: 6px; }
.hero-address .addr svg { color: var(--orange); width: 18px; height: 18px; }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cream); animation: cue 1.8s ease-in-out infinite; }
.hero.paused *, .hero.paused { animation-play-state: paused !important; }

/* ---------- Aviso da loja (fechada/pausada) ---------- */
.notice {
  position: relative; z-index: 2; width: min(1180px, calc(100% - 32px)); margin: -26px auto 10px; padding: 14px 16px; border-radius: var(--radius-sm);
  display: flex; gap: 12px; align-items: center; font-weight: 600; box-shadow: var(--shadow);
}
.notice.closed { background: #2b1414; border: 1px solid rgba(239, 68, 68, 0.35); color: #ffd6d6; }
.notice.paused { background: #2c2310; border: 1px solid rgba(255, 190, 26, 0.35); color: #ffe7ad; }
.notice svg { width: 22px; height: 22px; flex: none; }

/* ---------- Navegação de categorias ---------- */
.catnav {
  position: sticky; top: var(--top-h); z-index: 30; height: var(--nav-h); background: var(--bg);
  border-bottom: 1px solid var(--line); margin-top: 8px;
}
.catnav-in { height: 100%; width: min(1180px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; }
.search-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--cream); display: grid; place-items: center; }
.search-btn svg { width: 19px; height: 19px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 6px; }
.search-box input { flex: 1; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 16px; outline: none; }
.search-box input:focus { border-color: var(--turq); }
.cat-scroll { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 0 4px; -webkit-overflow-scrolling: touch; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-link {
  flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 0.92rem; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none;
}
.cat-link:hover { color: var(--cream); }
.cat-link.active { background: var(--cream); color: #2a1a10; }

/* ---------- Seções do cardápio ---------- */
main { padding-bottom: 120px; min-height: 60vh; }
.loading-menu { display: grid; place-items: center; gap: 12px; padding: 80px 0; color: var(--muted); }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--surface-3); border-top-color: var(--turq); animation: spin 0.8s linear infinite; }
.section { padding-top: 34px; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.55rem, 4.6vw, 2.1rem); line-height: 1.15; }
.section-title::after { content: ''; display: block; width: 54px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--accent, var(--orange)); }
.section-desc { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.sub-title { margin: 26px 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--cream-2); display: flex; align-items: center; gap: 10px; }
.sub-title::before { content: ''; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--accent, var(--orange)); }
.sub-desc { margin: 0 0 4px; color: var(--muted); font-size: 0.9rem; }
.grid { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); text-align: left; width: 100%; min-height: 128px; color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s;
}
@media (hover: hover) { .card:hover { transform: translateY(-2px); border-color: var(--line-2); background: #241812; } }
.card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card h3 { margin: 0; font-size: 1.02rem; font-weight: 800; line-height: 1.25; }
.card .desc { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.4; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 1.05rem; color: var(--cream); }
.price .from { font-weight: 600; font-size: 0.74rem; color: var(--muted); }
.price-old { color: var(--muted-2); text-decoration: line-through; font-size: 0.86rem; font-weight: 600; }
.off { background: var(--magenta); color: #fff; font-size: 0.74rem; font-weight: 800; padding: 3px 7px; border-radius: 7px; }
.tag { font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: rgba(37, 198, 184, 0.14); color: #8cf0e6; border: 1px solid rgba(37, 198, 184, 0.3); }
.tag.warm { background: rgba(255, 122, 26, 0.14); color: #ffc08f; border-color: rgba(255, 122, 26, 0.35); }
.tag.gold { background: rgba(255, 190, 26, 0.14); color: #ffdc85; border-color: rgba(255, 190, 26, 0.35); }
.spicy { font-size: 0.8rem; letter-spacing: -2px; }
.serves { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.thumb { position: relative; flex: none; width: 108px; height: 108px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ill { width: 100%; height: 100%; }
.add-fab {
  position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--turq); color: var(--turq-ink); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.add-fab svg { width: 18px; height: 18px; }
.card.soldout { opacity: 0.55; }
.card.soldout .add-fab { display: none; }
.soldout-tag { position: absolute; inset: auto 0 0 0; background: rgba(18, 11, 8, 0.85); color: var(--cream); font-size: 0.72rem; font-weight: 800; text-align: center; padding: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.fav {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(18, 11, 8, 0.6); color: var(--cream); fill: none;
}
.fav svg { width: 17px; height: 17px; fill: none; }
.fav.on { color: var(--magenta); }
.fav.on svg { fill: currentColor; }
.in-cart { position: absolute; top: 6px; left: 6px; background: var(--turq); color: var(--turq-ink); font-size: 0.68rem; font-weight: 800; border-radius: 8px; padding: 2px 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }

/* Blocos personalizados (favoritos / pedir de novo / promoções / oferta) */
.panel { margin-top: 20px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.row-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
.row-scroll::-webkit-scrollbar { display: none; }
.mini {
  flex: none; width: 150px; scroll-snap-align: start; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  overflow: hidden; text-align: left; padding: 0; color: inherit; position: relative;
}
.mini .thumb { width: 100%; height: 96px; border-radius: 0; }
.mini .mi { padding: 8px 10px 10px; }
.mini .mn { font-size: 0.86rem; font-weight: 700; line-height: 1.2; height: 2.4em; overflow: hidden; }
.mini .mp { font-weight: 800; font-size: 0.9rem; margin-top: 4px; }
.mini .reason { font-size: 0.72rem; color: var(--turq); font-weight: 700; margin-bottom: 2px; }
.mini .add-fab { width: 30px; height: 30px; bottom: auto; top: 62px; }
.reorder { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.reorder .ro-items { flex: 1; min-width: 220px; color: var(--cream-2); font-size: 0.92rem; }
.reorder .ro-meta { color: var(--muted); font-size: 0.82rem; }
.promo-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; }
.promo-strip::-webkit-scrollbar { display: none; }
.promo {
  flex: 1 0 260px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(236, 30, 121, 0.22), rgba(255, 122, 26, 0.18)); border: 1px solid rgba(255, 122, 26, 0.35);
}
.promo .pi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(18, 11, 8, 0.4); color: var(--yellow); flex: none; }
.promo .pi svg { width: 24px; height: 24px; }
.promo b { display: block; font-size: 0.98rem; }
.promo span { font-size: 0.84rem; color: var(--cream-2); }
.offer-banner {
  margin-top: 20px; padding: 18px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(37, 198, 184, 0.25), rgba(255, 190, 26, 0.15));
  border: 1px solid rgba(37, 198, 184, 0.5); display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.offer-banner .ob-text { flex: 1; min-width: 220px; }
.offer-banner h2 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.offer-banner p { margin: 0; color: var(--cream-2); }
.empty-search { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- Rodapé e botões flutuantes ---------- */
.footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 12px 0 76px; text-align: center; color: var(--muted-2, var(--muted)); background: transparent; font-size: 0.74rem; line-height: 1.5; }
body.has-cartbar .footer { padding-bottom: 104px; }
.footer p { margin: 0; }
.foot-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 8px; }
.foot-brand { font-family: var(--font-brand); font-size: 0.95rem; color: var(--cream-2); letter-spacing: 0.02em; }
.foot-slogan { font-family: var(--font-display); font-size: 0.72rem; color: var(--muted); }
.foot-meta { margin-top: 2px !important; }
.foot-meta .dot { opacity: 0.5; }
.foot-meta a, .foot-meta .linklike { color: var(--muted); font-size: inherit; text-decoration: none; }
.foot-meta a:hover, .foot-meta .linklike:hover { color: var(--cream); }
.wa-fab {
  position: fixed; right: 16px; bottom: calc(18px + var(--safe-b)); z-index: 35; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: bottom 0.25s ease, transform 0.2s;
}
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab:hover { transform: scale(1.06); }
body.has-cartbar .wa-fab { bottom: calc(90px + var(--safe-b)); }
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 34; height: 60px; border: 0; border-radius: 18px;
  display: flex; align-items: center; gap: 12px; padding: 0 18px; background: linear-gradient(135deg, var(--turq), var(--turq-2)); color: var(--turq-ink);
  font-weight: 800; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); animation: slideUp 0.3s ease;
}
.cb-count { background: rgba(6, 42, 39, 0.18); border-radius: 10px; min-width: 30px; height: 30px; display: grid; place-items: center; padding: 0 6px; }
.cb-label { flex: 1; text-align: left; font-size: 1.02rem; }
.cb-total { font-size: 1.05rem; }
@media (min-width: 760px) {
  .cartbar { left: auto; right: 24px; width: 380px; bottom: 24px; }
  body.has-cartbar .wa-fab { bottom: 24px; right: 420px; }
}
.track-chip {
  position: fixed; left: 12px; bottom: calc(84px + var(--safe-b)); z-index: 34; border: 1px solid rgba(255, 190, 26, 0.5); border-radius: 999px;
  background: #2c2310; color: #ffe7ad; padding: 10px 14px; font-weight: 800; font-size: 0.86rem; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center;
}
body:not(.has-cartbar) .track-chip { bottom: calc(18px + var(--safe-b)); }
.track-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); animation: pulse 1.6s infinite; }

/* ---------- Camadas (sheets / modais) ---------- */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(6, 3, 2, 0.66); opacity: 0; transition: opacity 0.25s ease; }
.backdrop.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 94dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 24px 24px 0 0; border: 1px solid var(--line-2); border-bottom: 0;
  transform: translateY(105%); transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.25, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}
.sheet.show { transform: none; }
.sheet.full { top: 0; max-height: none; border-radius: 0; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px; flex: none; }
.sheet-head h2 { margin: 0; flex: 1; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 16px 18px; }
.sheet-foot { flex: none; padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(600px, 94vw); max-height: 90vh; border-radius: 24px; border-bottom: 1px solid var(--line-2);
    transform: translate(-50%, -46%) scale(0.98); opacity: 0; transition: transform 0.28s ease, opacity 0.28s ease; }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.side { top: 0; bottom: 0; right: 0; left: auto; width: min(470px, 100vw); max-height: none; border-radius: 24px 0 0 24px; transform: translateX(100%); opacity: 1; }
  .sheet.side.show { transform: none; }
  .sheet.full { top: 50%; width: min(720px, 94vw); max-height: 92vh; border-radius: 24px; }
  .sheet .grab { display: none; }
  .sheet-head { padding-top: 16px; }
}

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label, .label { font-size: 0.84rem; font-weight: 700; color: var(--cream-2); }
.input, .select, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--cream);
  outline: none; transition: border-color 0.15s;
}
textarea.input { min-height: 72px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--turq); }
.input.err { border-color: var(--red); }
.field .hint { font-size: 0.78rem; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: 0.94rem; }
.check input { width: 20px; height: 20px; accent-color: var(--turq); margin-top: 1px; flex: none; }
.err-msg { color: #ffb4b4; font-size: 0.86rem; font-weight: 600; margin: 4px 0 10px; }
.block-title { margin: 18px 0 10px; font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.block-title .num { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 0.8rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line-2);
  background: var(--bg-2); cursor: pointer; font-weight: 700; font-size: 0.94rem; min-height: 52px;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice svg { width: 22px; height: 22px; color: var(--orange); }
.choice:has(input:checked) { border-color: var(--turq); background: rgba(37, 198, 184, 0.1); }
.choice:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.choice small { display: block; font-weight: 600; color: var(--muted); font-size: 0.76rem; }
.tabs { display: flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.tabs button { flex: 1; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 800; }
.tabs button.on { background: var(--cream); color: #2a1a10; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--cream); display: grid; place-items: center; border-radius: 50%; }
.stepper button svg { width: 16px; height: 16px; }
.stepper button:disabled { opacity: 0.3; }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; }
.stepper.sm button { width: 32px; height: 32px; }

/* ---------- Produto ---------- */
.p-hero { margin: -4px -16px 0; position: relative; aspect-ratio: 16 / 10; max-height: 300px; overflow: hidden; background: var(--surface-2); }
.p-hero img, .p-hero .ill { width: 100%; height: 100%; object-fit: cover; }
.p-name { margin: 14px 0 4px; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.p-desc { margin: 0 0 10px; color: var(--muted); white-space: pre-line; }
.p-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.group { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.group-head h3 { margin: 0; flex: 1; font-size: 1rem; }
.group-head .req { font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: var(--surface-3); color: var(--cream-2); text-transform: uppercase; letter-spacing: 0.04em; }
.group-head .req.need { background: rgba(255, 122, 26, 0.18); color: #ffc08f; }
.group-head .req.done { background: rgba(76, 194, 106, 0.16); color: #a6ecb8; }
.group.shake { animation: shake 0.4s; }
.group .gdesc { color: var(--muted); font-size: 0.82rem; margin: -4px 0 6px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt .on { flex: 1; font-weight: 600; }
.opt .op { color: var(--cream-2); font-weight: 700; font-size: 0.92rem; }
.opt input[type='radio'], .opt input[type='checkbox'] { width: 22px; height: 22px; accent-color: var(--turq); flex: none; }
.opt.disabled { opacity: 0.45; cursor: not-allowed; }
.opt .so { font-size: 0.72rem; color: #ffb4b4; font-weight: 700; }

/* ---------- Carrinho ---------- */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.mods .choice { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 10px 6px; font-size: 0.84rem; }
.line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .ln { flex: 1; min-width: 0; }
.line .lname { font-weight: 700; }
.line .ladd { color: var(--muted); font-size: 0.82rem; }
.line .lnote { font-size: 0.8rem; color: var(--yellow); margin-top: 2px; }
.line .lact { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.line .lprice { font-weight: 800; white-space: nowrap; }
.line.gift { background: linear-gradient(90deg, rgba(255, 190, 26, 0.1), transparent); border-radius: 12px; padding: 10px; border: 1px dashed rgba(255, 190, 26, 0.45); margin: 8px 0; }
.line.gift .lname { color: #ffdc85; }
.mini-link { background: none; border: 0; color: var(--turq); font-weight: 700; font-size: 0.82rem; padding: 4px 0; }
.mini-link.danger { color: #ff9b9b; }
.progress-box { margin: 12px 0; padding: 12px; border-radius: 14px; background: rgba(255, 190, 26, 0.08); border: 1px solid rgba(255, 190, 26, 0.3); font-size: 0.9rem; }
.progress-box .bar { height: 8px; border-radius: 4px; background: rgba(246, 231, 200, 0.1); margin-top: 8px; overflow: hidden; }
.progress-box .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--yellow), var(--orange)); transition: width 0.4s ease; }
.progress-box.ok { background: rgba(76, 194, 106, 0.1); border-color: rgba(76, 194, 106, 0.35); }
.upsell h3 { font-size: 0.95rem; margin: 18px 0 10px; }
.coupon { display: flex; gap: 8px; margin-top: 14px; }
.coupon .input { text-transform: uppercase; }
.coupon-ok { margin-top: 8px; font-size: 0.88rem; color: #a6ecb8; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.summary { margin-top: 14px; display: grid; gap: 6px; font-size: 0.94rem; }
.summary .sr { display: flex; justify-content: space-between; gap: 12px; color: var(--cream-2); }
.summary .sr.disc { color: #a6ecb8; }
.summary .sr.total { font-size: 1.15rem; font-weight: 800; color: var(--cream); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.empty-cart { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty-cart .big { font-size: 3rem; }
.warn-box { padding: 12px 14px; border-radius: 12px; background: rgba(255, 190, 26, 0.1); border: 1px solid rgba(255, 190, 26, 0.35); color: #ffe7ad; font-size: 0.9rem; margin: 10px 0; }
.bad-box { padding: 12px 14px; border-radius: 12px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.35); color: #ffd0d0; font-size: 0.9rem; margin: 10px 0; }
.good-box { padding: 12px 14px; border-radius: 12px; background: rgba(76, 194, 106, 0.1); border: 1px solid rgba(76, 194, 106, 0.35); color: #c9f5d5; font-size: 0.9rem; margin: 10px 0; }
.loyalty-box { padding: 14px; border-radius: 14px; margin: 10px 0; background: linear-gradient(120deg, rgba(255, 190, 26, 0.16), rgba(236, 30, 121, 0.12)); border: 1px solid rgba(255, 190, 26, 0.4); }
.loyalty-box .check { padding: 4px 0 0; font-weight: 700; }
.addr-card { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 0.92rem; color: var(--cream-2); margin: 6px 0 4px; }

/* ---------- Acompanhamento do pedido ---------- */
.track-hero { text-align: center; padding: 10px 0 6px; }
.track-hero .ok-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 194, 106, 0.16); color: var(--green); animation: pop 0.5s ease; }
.track-hero .ok-ico svg { width: 34px; height: 34px; }
.track-hero h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.code-big { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 0.08em; color: var(--yellow); margin: 6px 0 2px; }
.timeline { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 18px; color: var(--muted-2); }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--surface-3); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface-3); background: var(--bg-2); display: grid; place-items: center; flex: none; z-index: 1; }
.timeline .tdot svg { width: 14px; height: 14px; opacity: 0; }
.timeline li.done { color: var(--cream); }
.timeline li.done .tdot { background: var(--turq); border-color: var(--turq); color: var(--turq-ink); }
.timeline li.done .tdot svg { opacity: 1; }
.timeline li.done::before { background: var(--turq); }
.timeline li.now .tdot { box-shadow: 0 0 0 6px rgba(37, 198, 184, 0.2); animation: pulse 1.8s infinite; }
.timeline .tl { font-weight: 800; }
.timeline .tt { font-size: 0.8rem; color: var(--muted); }
.canceled-box { text-align: center; padding: 18px; border-radius: 16px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.4); color: #ffd0d0; }
.split-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.split-box .hint { grid-column: 1 / -1; margin-top: -4px; }
.pix-notice { margin-top: 12px; }
.pix-box { margin: 14px 0; padding: 16px; border-radius: 16px; background: rgba(37, 198, 184, 0.08); border: 1px solid rgba(37, 198, 184, 0.4); display: grid; gap: 10px; }
.pix-box h4 { margin: 0; font-size: 1.05rem; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stars { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.stars button { background: none; border: 0; color: var(--surface-3); padding: 2px; }
.stars button svg { width: 36px; height: 36px; fill: currentColor; }
.stars button.on { color: var(--yellow); }

/* ---------- Conta / informações ---------- */
.hello { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); margin-bottom: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--magenta)); font-weight: 800; color: #fff; font-size: 1.2rem; flex: none; }
.points { padding: 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(255, 190, 26, 0.16), rgba(37, 198, 184, 0.12)); border: 1px solid rgba(255, 190, 26, 0.35); margin-bottom: 12px; }
.points b { font-size: 1.6rem; font-family: var(--font-display); font-weight: 400; color: var(--yellow); }
.points .bar { height: 8px; border-radius: 4px; background: rgba(246, 231, 200, 0.12); margin-top: 8px; overflow: hidden; }
.points .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.order-row { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.order-row .or-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.order-row .or-items { color: var(--muted); font-size: 0.86rem; }
.st { font-size: 0.74rem; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: var(--surface-3); color: var(--cream-2); }
.st.ok { background: rgba(76, 194, 106, 0.16); color: #a6ecb8; }
.st.run { background: rgba(255, 190, 26, 0.16); color: #ffdc85; }
.st.bad { background: rgba(239, 68, 68, 0.16); color: #ffb4b4; }
.hours { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.hours td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.today td { background: rgba(37, 198, 184, 0.1); color: var(--cream); font-weight: 800; }
.hours tr.today td:first-child { border-radius: 10px 0 0 10px; }
.hours tr.today td:last-child { border-radius: 0 10px 10px 0; }
.hours tr.off td:last-child { color: var(--muted-2); font-weight: 600; }
.info-list { display: grid; gap: 8px; margin: 10px 0; }
.info-item { display: flex; gap: 10px; align-items: flex-start; color: var(--cream-2); font-size: 0.94rem; }
.info-item svg { width: 20px; height: 20px; color: var(--orange); margin-top: 2px; }

/* ---------- Pausa ---------- */
.pause-modal { text-align: center; padding: 10px 4px 4px; }
.pause-modal .pm-ico { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.pause-modal p { font-size: 1.05rem; color: var(--cream); white-space: pre-line; }

/* ---------- Toast / cookies ---------- */
.toasts { position: fixed; left: 50%; translate: -50% 0; top: calc(var(--top-h) + 10px); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: #2a1c15; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 700; font-size: 0.92rem; animation: toastIn 0.3s ease; pointer-events: auto; }
.toast.ok { border-color: rgba(76, 194, 106, 0.5); }
.toast.err { border-color: rgba(239, 68, 68, 0.6); background: #2b1414; }
.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 50; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #241812; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.85rem; }
.cookie p { margin: 0; flex: 1; color: var(--cream-2); }
@media (min-width: 760px) { .cookie { left: 24px; right: auto; width: 460px; } }

/* ---------- Animações ---------- */
@keyframes drop { to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.05em; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 198, 184, 0.45); } 70% { box-shadow: 0 0 0 10px rgba(37, 198, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 198, 184, 0); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes bump { 50% { transform: scale(1.35); } }
@keyframes slideUp { from { transform: translateY(120%); } to { transform: none; } }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .brand span, .slogan, .hero-meta { opacity: 1 !important; transform: none !important; }
}

/* ---------- Indique e ganhe ---------- */
.rf-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #ffe08a; background: rgba(255, 190, 26, 0.14); border: 1px solid rgba(255, 190, 26, 0.35); padding: 4px 10px; border-radius: 999px; }
.rf-hero { position: relative; overflow: hidden; padding: 18px 16px; border-radius: 18px; margin-bottom: 14px; background: radial-gradient(120% 140% at 0% 0%, rgba(236, 30, 121, 0.28), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(37, 198, 184, 0.24), transparent 55%), var(--surface-2); border: 1px solid var(--line-2); }
.rf-hero h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 10px 0 12px; color: var(--cream); }
.rf-deal { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.rf-deal > div:not(.rf-plus) { padding: 12px; border-radius: 14px; background: rgba(18, 11, 8, 0.55); border: 1px solid var(--line); display: grid; gap: 4px; }
.rf-deal span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.rf-deal b { font-size: 0.98rem; color: var(--cream); line-height: 1.3; }
.rf-plus { align-self: center; font-size: 1.4rem; font-weight: 800; color: var(--yellow); }
.rf-small { font-size: 0.8rem; color: var(--muted); margin: 8px 0 0; }
.rf-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 800; }
.rf-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(37, 198, 184, 0.55); background: rgba(37, 198, 184, 0.07); margin-bottom: 10px; }
.rf-code b { display: block; font-size: 1.35rem; letter-spacing: 0.08em; color: var(--turq); font-family: var(--font-display); }
.rf-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.rf-steps li { counter-increment: s; position: relative; padding: 2px 0 2px 36px; font-size: 0.9rem; color: var(--cream-2); }
.rf-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; background: var(--surface-3); color: var(--yellow); }
.rf-friends { display: grid; gap: 6px; margin-top: 8px; }
.rf-friend { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.rf-friend b { flex: 1; }
.rf-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--magenta), var(--orange)); color: #fff; font-size: 0.85rem; }
.st.run { background: rgba(255, 190, 26, 0.14); color: #ffe08a; }
.st.bad { background: rgba(239, 68, 68, 0.14); color: #ffb4b4; }
.rf-rewards { display: grid; gap: 6px; margin-bottom: 12px; }
.rf-reward { padding: 12px 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(76, 194, 106, 0.18), rgba(37, 198, 184, 0.1)); border: 1px solid rgba(76, 194, 106, 0.4); display: grid; gap: 2px; }
.rf-reward span { font-weight: 800; color: var(--cream); }
.rf-reward small { color: var(--cream-2); font-size: 0.78rem; }
.rf-rules { font-size: 0.74rem; color: var(--muted); margin: 16px 0 4px; line-height: 1.5; }
.rf-count { margin-left: 6px; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--green); color: #062a12; font-weight: 800; }
.rf-panel { display: flex; align-items: center; gap: 14px; background: radial-gradient(140% 160% at 0% 0%, rgba(236, 30, 121, 0.22), transparent 60%), var(--surface); }
.rf-panel-txt { flex: 1; display: grid; gap: 4px; }
.rf-panel-txt b { font-size: 1rem; color: var(--cream); margin-top: 4px; }
.rf-panel-txt span { color: var(--cream-2); font-size: 0.88rem; }
.rf-panel-txt .rf-has { color: #a6ecb8; font-weight: 700; font-size: 0.82rem; }
@media (max-width: 520px) { .rf-panel { flex-direction: column; align-items: stretch; } }
.rf-welcome { text-align: center; padding: 6px 4px 2px; }
.rf-gift { font-size: 3.2rem; line-height: 1; animation: rf-pop 0.6s cubic-bezier(.2, 1.4, .4, 1) both; }
.rf-welcome h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 10px 0 6px; color: var(--cream); }
.rf-welcome p { color: var(--cream-2); margin: 4px 0; }
.rf-note { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--cream-2); font-size: 0.86rem; }
@keyframes rf-pop { from { transform: scale(0.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rf-gift { animation: none; } }
.ref-note { margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-size: 0.8rem; color: var(--cream-2); background: var(--surface-2); border: 1px solid var(--line); }
.rf-box b { color: var(--cream); }
/* Botão "Adicionar · a partir de R$ …" ao lado do contador: encolhe e quebra a linha no celular em vez de sair da tela. */
.sheet-foot [data-addbtn] { flex: 1 1 auto; width: auto; min-width: 0; white-space: normal; flex-wrap: wrap; gap: 0 4px; line-height: 1.15; padding-inline: 12px; text-align: center; }
.sheet-foot [data-addbtn] [data-total] { white-space: nowrap; }
