/* ==========================================================================
   SacolaUp · protótipo de layout (consumidor)
   Paleta, raio e tom herdados de sandbox.sacolaup.com
   ========================================================================== */

:root {
  /* Paleta oficial do site */
  --green: #00645e;
  --deep: #004b46;
  --lime: #f8ed9c;
  --mint: #eaf3ec;
  --paper: #fafaf6;
  --white: #fff;
  --ink: #203b36;
  --muted: #697571;
  --line: #e3e8e0;
  /* Derivadas */
  --forest: #003632;
  --mint-2: #d6e7cf;
  --cream: #f7f2e4;
  --amber-bg: #fff1d7;
  --amber: #76470e;
  --gold: #cd9d2c;

  --radius: 18px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(32, 59, 54, .06), 0 6px 20px rgba(32, 59, 54, .07);
  --shadow-2: 0 2px 4px rgba(32, 59, 54, .06), 0 18px 44px -12px rgba(0, 75, 70, .22);
  --shadow-3: 0 30px 80px -24px rgba(0, 54, 50, .5);

  --font-display: 'Bricolage Grotesque', 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Fraunces', Georgia, 'Times New Roman', serif;

  --gutter: max(clamp(18px, 4vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --sat: env(safe-area-inset-top, 0px);
  --hdr-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (min-width: 960px) { :root { --hdr-h: 78px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--sat) + var(--hdr-h) + 16px); }
html.lock { overflow: hidden; }
body {
  margin: 0; min-height: 100dvh; overflow-x: clip;
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Faixa sob a barra de status do celular: nada rola por trás do cabeçalho fixo */
body::before { content: ''; position: fixed; inset: 0 0 auto; z-index: 60; height: var(--sat); background: var(--paper); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h1 em, h2 em, h3 em, .ac { font-family: var(--font-accent); font-style: italic; font-weight: 500; letter-spacing: -.025em; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button, a, input, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 16px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 700; }
.skip:focus { top: 10px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 11.5px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- Botões, chips e etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--deep); box-shadow: 0 10px 24px -10px rgba(0, 75, 70, .6); }
.btn-lime { background: var(--lime); color: var(--deep); }
.btn-lime:hover { background: #fff6b5; box-shadow: 0 10px 24px -10px rgba(248, 237, 156, .7); }
.btn-ghost { background: #fff; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.round-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, transform .2s var(--spring); }
.round-btn:hover { background: var(--green); color: #fff; box-shadow: none; }
.round-btn:active { transform: scale(.92); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 42px; padding: 0 16px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 650; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s;
}
.chip .ic { width: 18px; height: 18px; color: var(--green); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--green); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"] .ic, .chip.is-on .ic { color: var(--lime); }
.chip b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--deep); font-size: 11.5px; font-weight: 800; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.tag .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.tag-lime { background: var(--lime); color: var(--deep); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.tag-mint { background: var(--mint); color: var(--green); }
.tag-white { background: rgba(255, 255, 255, .94); color: var(--deep); }
.tag-mute { background: rgba(32, 59, 54, .78); color: #fff; }
.tag-green { background: var(--green); color: #fff; }

.live { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: #1fa971; }
.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #1fa971; animation: ping 1.8s var(--ease) infinite; }

/* ---------- Cabeçalho ---------- */
.hdr {
  position: sticky; top: var(--sat); z-index: 50; height: var(--hdr-h); view-transition-name: hdr;
  background: rgba(250, 250, 246, .84); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.hdr.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(0, 54, 50, .35); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; flex: none; border-radius: 10px; }
.logo { display: block; width: 128px; height: auto; aspect-ratio: 2024 / 527; color: #055c50; }
.logo-leaf { fill: var(--logo-leaf, #fbe592); }
.hdr-nav { display: none; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.city { display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 12px 0 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; transition: box-shadow .2s; }
.city:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.city-pin { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green); }
.city-pin .ic { width: 17px; height: 17px; }
.city span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city > .ic { width: 15px; height: 15px; color: var(--muted); }
.hdr-merchant, .hdr-login { display: none; }
.hdr-user { display: none; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; text-decoration: none; }
.hdr-user:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; display: block; }
.avatar svg { display: block; width: 100%; height: 100%; }

@media (min-width: 960px) {
  .logo { width: 156px; }
  .hdr-in { gap: 20px; }
  .hdr-nav { display: flex; gap: 2px; margin-left: 14px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px var(--line); }
  .hdr-nav a { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 650; font-size: 14.5px; text-decoration: none; transition: background .2s, color .2s; }
  .hdr-nav a .ic { width: 18px; height: 18px; color: var(--green); }
  .hdr-nav a:hover { background: var(--mint); }
  .hdr-nav a[aria-current] { background: var(--green); color: #fff; }
  .hdr-nav a[aria-current] .ic { color: var(--lime); }
  .hdr-merchant { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 8px; font-weight: 700; font-size: 14px; color: var(--green); text-decoration: none; white-space: nowrap; }
  .hdr-merchant:hover { text-decoration: underline; text-underline-offset: 4px; }
  .hdr-merchant .ic { width: 18px; height: 18px; }
  .hdr-login { display: inline-flex; }
  .hdr-user { display: flex; }
}
@media (min-width: 960px) and (max-width: 1120px) { .hdr-merchant span, .hdr-nav a .ic { display: none; } }

/* ---------- Barra de abas (celular) ---------- */
.tabs {
  position: fixed; z-index: 45; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); view-transition-name: tabs;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 26px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -14px rgba(0, 54, 50, .4);
}
.tabs a { position: relative; z-index: 0; display: grid; justify-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 20px; font-size: 10.5px; font-weight: 650; color: var(--muted); text-decoration: none; }
.tabs a .ic { width: 22px; height: 22px; transition: transform .35s var(--spring); }
.tabs a[aria-current] { color: var(--green); font-weight: 800; }
.tabs a[aria-current]::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 20px; background: var(--mint); animation: tab-in .35s var(--spring); }
.tabs a[aria-current] .ic { transform: translateY(-1px) scale(1.08); fill: var(--lime); }
.tabs i { position: absolute; top: 5px; left: calc(50% + 7px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--green); color: #fff; font: 800 10px/16px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
@media (min-width: 960px) { .tabs { display: none; } }
body[data-view="sacola"] .tabs { display: none; }

main { display: block; min-height: 60vh; }
main:focus { outline: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 8px; }
.stage {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #0e857a 0%, rgba(14, 133, 122, 0) 55%), linear-gradient(165deg, #00645e 0%, #004b46 58%, #003632 100%);
}
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(248, 237, 156, .2) 1.2px, transparent 1.7px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%); mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}
.hero-grid { display: grid; }
.hero-copy { padding: 30px 22px 6px; min-width: 0; }
.hero-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 14px 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-size: 13px; font-weight: 650; color: #e6f3ee; }
.pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
.hero h1 { margin-top: 18px; font-size: clamp(42px, 11.4vw, 84px); line-height: .95; letter-spacing: -.05em; font-weight: 800; }
.hero h1 em { display: block; margin-top: .06em; color: var(--lime); letter-spacing: -.04em; line-height: 1.05; }
.hero-lead { margin-top: 18px; max-width: 520px; font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.62; color: #d3e7e1; }
.hsearch { margin-top: 24px; max-width: 580px; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .55); }
.hsearch-city, .hsearch-sep { display: none; }
.hsearch input { flex: 1; min-width: 0; height: 48px; padding: 0 6px 0 16px; border: 0; outline: 0; background: none; font: 500 15.5px var(--font); color: var(--ink); }
.hsearch input::placeholder { color: #8a9692; }
.hsearch .btn { min-height: 48px; padding: 0; width: 48px; flex: none; }
.hsearch .btn span { display: none; }
.hero-facts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; font-weight: 600; color: #cfe5de; }
.hero-facts li { display: flex; align-items: center; gap: 7px; }
.hero-facts .ic { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--lime); color: var(--deep); stroke-width: 3; }

.hero-art { position: relative; height: 392px; margin-top: 14px; }
.arch {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 246px; aspect-ratio: 5 / 7;
  border-radius: 999px 999px 0 0; overflow: hidden; background: var(--cream);
  box-shadow: 0 0 0 12px rgba(248, 237, 156, .13), 0 0 0 26px rgba(248, 237, 156, .06);
}
.arch img {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(transparent, #000 9%); mask-image: linear-gradient(transparent, #000 9%);
}
.stamp { position: absolute; top: 4px; right: 4%; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--deep); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .5); rotate: 8deg; }
.stamp-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.stamp-ring text { font: 800 8.4px var(--font); letter-spacing: .06em; fill: var(--deep); }
.stamp-mark { width: 34%; aspect-ratio: 477 / 503; color: #055c50; --logo-leaf: #fffef2; }
.float { position: absolute; display: flex; align-items: center; gap: 11px; padding: 9px 14px 9px 9px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 22px 44px -16px rgba(0, 20, 18, .55); animation: float-in .7s var(--ease) .75s both, float 6s ease-in-out 1.5s infinite; }
.float b { display: block; font-size: 13px; font-weight: 800; line-height: 1.25; }
.float small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.float-a { left: 0; top: 30px; scale: .88; transform-origin: left top; }
.float-a img { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; }
.float-a .fp { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.float-a .fp strong { font: 800 15px/1 var(--font-display); color: var(--green); letter-spacing: -.03em; }
.float-b { right: 0; bottom: 34px; scale: .88; transform-origin: right bottom; animation-delay: .95s, 3s; }
.float-b .fb-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--lime); }
.float-b .fb-ic .ic { stroke-width: 2.6; }

@media (min-width: 620px) {
  .hero-copy { padding: 40px 36px 10px; }
  .hsearch .btn { width: auto; padding: 0 22px; }
  .hsearch .btn span { display: inline; }
  .hsearch-city { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 10px 0 8px; border-radius: 999px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
  .hsearch-city:hover { background: var(--mint); }
  .hsearch-city .ic:first-child { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--mint); color: var(--green); }
  .hsearch-city .ic:last-child { width: 14px; height: 14px; color: var(--muted); }
  .hsearch-sep { display: block; width: 1px; height: 26px; flex: none; background: var(--line); }
  .hero-art { height: 460px; }
  .arch { width: 296px; }
  .stamp { width: 116px; height: 116px; right: 12%; }
  .float-a, .float-b { scale: 1; }
  .float-a { left: 6%; top: 60px; }
  .float-b { right: 7%; bottom: 56px; }
}
@media (min-width: 1000px) {
  .hero { padding-top: 12px; }
  .stage { border-radius: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); min-height: min(660px, calc(100dvh - var(--hdr-h) - 96px)); }
  .hero-copy { padding: clamp(40px, 5vw, 68px) 0 clamp(40px, 5vw, 64px) clamp(40px, 5vw, 68px); align-self: center; }
  .hero h1 { font-size: clamp(56px, 5.9vw, 86px); }
  .hero-art { height: auto; min-height: 560px; margin: 0; }
  .arch { width: min(370px, 72%); left: 52%; }
  .stamp { width: 132px; height: 132px; top: 9%; right: 7%; }
  .float-a { left: -4%; top: auto; bottom: 30%; }
  .float-b { right: 3%; bottom: 9%; }
}

/* ---------- Letreiro ---------- */
.marquee { margin-top: 18px; overflow: hidden; border-radius: 999px; background: var(--lime); color: var(--deep); padding: 13px 0; font: 800 12.5px/1 var(--font); letter-spacing: .13em; text-transform: uppercase; }
.marquee-track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 20px; padding-right: 20px; white-space: nowrap; }
.marquee .ic { width: 15px; height: 15px; stroke-width: 2.2; }

/* ---------- Seções ---------- */
.sec { margin-top: clamp(56px, 7.5vw, 104px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.sec-head h2 { margin-top: 12px; font-size: clamp(28px, 3.5vw, 46px); }
.sec-head h2 em { color: var(--green); }
.sec-sub { margin-top: 10px; max-width: 580px; color: var(--muted); font-size: 15.5px; }
.sec-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 14.5px; color: var(--green); text-decoration: none; white-space: nowrap; }
.link-arrow .ic { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
.rail-nav { display: none; gap: 8px; }
@media (min-width: 960px) { .rail-nav { display: flex; } }

/* Categorias */
.cats { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 116px; scroll-snap-align: start; display: grid; justify-items: center; gap: 3px; padding: 14px 8px 15px; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .3s, background .3s; }
.cat-ph { width: 78px; height: 78px; margin-bottom: 8px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--mint); transition: box-shadow .3s; }
.cat-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat strong { font-size: 14.5px; font-weight: 750; }
.cat small { font-size: 12px; color: var(--muted); }
.cat:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--green), var(--shadow-1); }
.cat:hover .cat-ph { box-shadow: 0 0 0 4px var(--lime); }
.cat:hover img { transform: scale(1.14) rotate(3deg); }
@media (min-width: 960px) {
  .cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0; padding: 0; overflow: visible; }
  .cat { padding: 20px 10px 22px; border-radius: 32px; }
  .cat-ph { width: 100px; height: 100px; }
  .cat strong { font-size: 16px; }
}

/* ---------- Cartão de sacola (bilhete) ---------- */
.bag { position: relative; display: block; min-width: 0; filter: drop-shadow(0 1px 1px rgba(32, 59, 54, .08)) drop-shadow(0 10px 20px rgba(32, 59, 54, .07)); transition: transform .4s var(--ease), filter .4s; }
.bag:hover { transform: translateY(-6px); filter: drop-shadow(0 1px 1px rgba(32, 59, 54, .08)) drop-shadow(0 24px 30px rgba(0, 75, 70, .17)); }
.bag-link {
  --foot: 66px; --notch: 9px;
  display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: #fff; text-decoration: none;
  -webkit-mask-image: radial-gradient(circle var(--notch) at 0 calc(100% - var(--foot)), transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% calc(100% - var(--foot)), transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle var(--notch) at 0 calc(100% - var(--foot)), transparent 96%, #000 100%), radial-gradient(circle var(--notch) at 100% calc(100% - var(--foot)), transparent 96%, #000 100%);
  mask-composite: intersect;
}
.bag-top { position: relative; }
.bag-photo { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; background: #dbe5da; }
.bag-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform-origin: var(--pos, 50% 50%); transform: scale(var(--zoom, 1)); transition: transform .8s var(--ease); }
.bag:hover .bag-photo img { transform: scale(calc(var(--zoom, 1) * 1.07)); }
.bag-photo::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 40, 36, .34)); pointer-events: none; }
.bag-tag { position: absolute; z-index: 2; top: 12px; left: 12px; }
.bag-rate { position: absolute; z-index: 2; right: 12px; bottom: 11px; display: inline-flex; align-items: center; gap: 4px; height: 27px; padding: 0 10px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 12.5px; font-weight: 800; }
.bag-rate .ic { width: 13px; height: 13px; fill: var(--gold); stroke: var(--gold); }
.mono { position: absolute; z-index: 3; left: 16px; bottom: -22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #fff; background: #f5e9d1; color: #6e4d31; font: italic 600 22px/1 var(--font-accent); }
.tone-1 { background: #e3efdc; color: #386c49; }
.tone-2 { background: #f6e1dc; color: #8a4b45; }
.tone-3 { background: #e8efcb; color: #577332; }
.tone-4 { background: #f4dccb; color: #9a5331; }
.tone-5 { background: #dfeaf0; color: #2c5a73; }
.bag-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 30px 18px 15px; }
.bag-body h3 { font-size: 18.5px; line-height: 1.2; letter-spacing: -.03em; }
.bag-kind { font-size: 13.5px; color: var(--muted); }
.bag-when, .bag-where { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.bag-when { margin-top: 9px; font-weight: 700; }
.bag-when .ic, .bag-where .ic { width: 15px; height: 15px; color: var(--green); }
.bag-when small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.bag-when .live { margin: 0 3px; }
.bag-where { color: var(--muted); }
.bag-foot { position: relative; flex: none; height: var(--foot); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; }
.bag-foot::before { content: ''; position: absolute; top: -1px; left: 16px; right: 16px; border-top: 2px dashed var(--line); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price del { font-size: 13px; color: var(--muted); }
.price strong { font: 800 22px/1 var(--font-display); letter-spacing: -.04em; color: var(--green); }
.off { display: inline-grid; place-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--lime); color: var(--deep); font-size: 12.5px; font-weight: 800; }
.fav { position: absolute; z-index: 4; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .93); color: var(--deep); transition: transform .25s var(--spring), background .2s, color .2s; }
.fav:hover { transform: scale(1.12); }
.fav .ic { width: 19px; height: 19px; }
.fav.is-on { background: var(--green); color: var(--lime); }
.fav.is-on .ic { fill: var(--lime); }
.fav.pop { animation: pop .5s var(--spring); }
.bag.is-out .bag-photo img { filter: grayscale(1) contrast(.9); opacity: .75; }
.bag.is-out .price strong { color: var(--muted); }
.bag.is-out .off { background: var(--line); color: var(--muted); }

.grid { display: grid; gap: 22px 20px; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }
.rail { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 30px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 clamp(264px, 78vw, 312px); scroll-snap-align: start; }
.rail-end { display: grid; place-items: center; gap: 12px; align-content: center; text-align: center; padding: 24px; border-radius: 22px; border: 2px dashed var(--mint-2); color: var(--green); font-weight: 750; text-decoration: none; transition: background .2s; }
.rail-end:hover { background: var(--mint); }
.rail-end span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--deep); }

/* ---------- Como funciona ---------- */
.how { display: grid; gap: 34px; }
.how-art { position: relative; width: min(440px, 100%); margin-inline: auto; }
.how-photo { aspect-ratio: 9 / 10; border-radius: 180px 180px var(--r-xl) var(--r-xl); overflow: hidden; background: var(--mint); }
.how-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.mini-ticket { position: absolute; left: -6px; bottom: 26px; rotate: -5deg; display: grid; gap: 3px; min-width: 196px; padding: 14px 16px 14px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-2); border-left: 6px solid var(--lime); }
.mini-ticket small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mini-ticket b { font: 800 24px/1.1 var(--font-display); letter-spacing: .06em; color: var(--green); }
.mini-ticket span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; }
.mini-ticket .ic { width: 14px; height: 14px; color: var(--green); }
.eco-badge { position: absolute; right: -4px; top: 34%; rotate: 6deg; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 750; box-shadow: var(--shadow-2); }
.eco-badge .ic { width: 16px; height: 16px; color: var(--lime); }
.steps { margin-top: 22px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--deep); font: italic 500 30px/1 var(--font-accent); transition: transform .4s var(--spring); }
.steps li:hover::before { transform: rotate(-10deg) scale(1.08); }
.steps h3 { font-size: 20px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (min-width: 960px) { .how { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; } .how-art { margin: 0; } }

/* ---------- Impacto ---------- */
.impact { position: relative; isolation: isolate; overflow: hidden; display: grid; border-radius: var(--r-xl); background: linear-gradient(160deg, #005650, #003632); color: #fff; }
.impact::before { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(248, 237, 156, .2), transparent); }
.impact-copy { padding: 40px 22px 30px; }
.impact .eyebrow { color: var(--lime); }
.impact h2 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 48px); }
.impact h2 em { color: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.stat { min-width: 0; padding: 16px 14px; border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); }
.stat .ic { width: 22px; height: 22px; color: var(--lime); }
.stat b { display: block; margin-top: 14px; font: 800 clamp(23px, 3vw, 42px)/1 var(--font-display); letter-spacing: -.045em; white-space: nowrap; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: #bcd9d2; }
.impact-note { margin-top: 18px; font-size: 12.5px; color: #9fc4bb; }
.impact-art { position: relative; min-height: 300px; }
.arch-2 { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(300px, 76%); aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 0 0 12px rgba(248, 237, 156, .12), 0 0 0 26px rgba(248, 237, 156, .05); }
.arch-2 img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
@media (min-width: 960px) {
  .impact { grid-template-columns: 1.2fr .8fr; border-radius: 40px; }
  .impact-copy { padding: 68px 0 64px 68px; }
  .impact-art { min-height: 0; }
  .arch-2 { width: min(330px, 74%); }
}

/* ---------- Lojistas ---------- */
.merchant { display: grid; overflow: hidden; border-radius: var(--r-xl); background: var(--cream); }
.merchant-photo { position: relative; min-height: 250px; }
.merchant-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.merchant-copy { padding: 34px 22px 38px; }
.merchant-copy h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 44px); }
.merchant-copy h2 em { color: var(--green); }
.merchant-copy > p { margin-top: 12px; color: #5b6b61; max-width: 520px; }
.ticks { display: grid; gap: 12px; margin: 22px 0 26px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 650; }
.ticks .ic { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--lime); color: var(--deep); stroke-width: 2.6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) { .merchant { grid-template-columns: .82fr 1.18fr; border-radius: 40px; } .merchant-copy { padding: 64px; } .merchant-photo { min-height: 460px; } }

/* ---------- FAQ e aviso ---------- */
.faq { display: grid; gap: 22px; }
.faq h2 { margin-top: 12px; font-size: clamp(28px, 3.5vw, 46px); }
.faq h2 em { color: var(--green); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font: 700 17.5px/1.3 var(--font-display); letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300645e' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: rotate .3s var(--ease), background-color .3s; }
.faq-list details[open] summary::after { rotate: 45deg; background-color: var(--lime); }
.faq-list p { padding: 0 54px 22px 0; color: var(--muted); }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 72px; } }

.notify { display: grid; gap: 22px; align-items: center; padding: 30px 22px; border-radius: var(--r-xl); background: var(--lime); color: var(--deep); }
.notify h2 { font-size: clamp(24px, 2.8vw, 36px); }
.notify p { margin-top: 8px; color: #4b5b3c; max-width: 520px; }
.notify form { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; }
.notify input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; outline: 0; background: none; font: 500 15px var(--font); }
@media (min-width: 960px) { .notify { grid-template-columns: 1fr minmax(380px, auto); padding: 44px 56px; border-radius: 40px; } }

/* ---------- Rodapé ---------- */
.ftr { margin-top: clamp(64px, 8vw, 112px); padding: 52px 0 130px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--forest); color: #cfe3dd; }
.ftr-grid { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; }
.ftr .logo { width: 172px; color: #fafaf6; --logo-leaf: var(--lime); }
.ftr-brand p { margin-top: 16px; max-width: 320px; font: italic 500 21px/1.3 var(--font-accent); color: #e9f3ef; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, color .2s; }
.socials a:hover { background: var(--lime); color: var(--deep); }
.socials svg { width: 18px; height: 18px; }
.ftr h4 { margin-bottom: 14px; font: 800 11.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.ftr-grid a:not(.brand) { display: block; padding: 6px 0; font-size: 15px; color: #cfe3dd; text-decoration: none; }
.ftr-grid a:not(.brand):hover { color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #9fbfb7; }
.ftr-bottom p + p { margin-top: 4px; }
.ftr-bottom a[data-action="reset"] { margin-left: 4px; color: #cfe3dd; text-underline-offset: 3px; }
.ftr-bottom a[data-action="reset"]:hover { color: #fff; }
.asaas { display: flex; align-items: center; gap: 14px; }
.asaas-seal { display: block; padding: 7px 12px; border-radius: 12px; background: #fff; }
.asaas-seal img { height: 34px; width: auto; }
.seal-text { display: block; max-width: 150px; font: 800 12px/1.25 var(--font); color: var(--green); }
.asaas-links a { display: block; color: #cfe3dd; font-size: 12.5px; text-underline-offset: 3px; }
@media (min-width: 960px) {
  .ftr { padding: 72px 0 34px; border-radius: 40px 40px 0 0; }
  .ftr-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; }
  .ftr-brand { grid-column: auto; }
}

/* ---------- Páginas internas ---------- */
.page { padding-top: 26px; }
.page-head h1 { margin-top: 12px; font-size: clamp(32px, 4.4vw, 56px); }
.page-head h1 em { color: var(--green); }
.page-head > p:not(.eyebrow) { margin-top: 10px; max-width: 600px; color: var(--muted); }

.toolbar { position: sticky; top: var(--hdr-h); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 0 10px; background: linear-gradient(var(--paper) 82%, rgba(250, 250, 246, 0)); }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--green), 0 0 0 4px rgba(0, 100, 94, .1); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 15px var(--font); color: var(--ink); }
.toolbar .chip { height: 52px; padding: 0 18px; }
.select { position: relative; display: flex; align-items: center; flex: none; }
.select select { -webkit-appearance: none; appearance: none; height: 52px; padding: 0 42px 0 18px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 650 14px var(--font); cursor: pointer; }
.select .ic { position: absolute; right: 16px; width: 15px; height: 15px; pointer-events: none; color: var(--muted); }
.seg { display: flex; flex: none; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg button .ic { width: 17px; height: 17px; }
.seg button[aria-pressed="true"] { background: var(--green); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 2px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 10px; }
.chips::-webkit-scrollbar { display: none; }
@media (max-width: 719px) { .toolbar .select { flex: 1; } .toolbar .select select { width: 100%; } }

.results-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 6px 0 18px; font-size: 14.5px; color: var(--muted); }
.results-meta strong { color: var(--ink); }
.region-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 30px 0 14px; }
.region-title:first-child { margin-top: 0; }
.region-title h2 { font-size: 23px; }
.region-title span { font-size: 13.5px; color: var(--muted); }
.explore { display: grid; gap: 24px; }
.explore-list { min-width: 0; }
.explore-map { display: none; min-width: 0; }
.explore[data-view="map"] .explore-map { display: block; }
@media (max-width: 959px) {
  .explore[data-view="map"] .explore-list { display: none; }
  .explore-map { height: calc(100dvh - var(--hdr-h) - 270px); min-height: 440px; }
}
@media (min-width: 960px) {
  .explore[data-view="map"] { grid-template-columns: minmax(0, 1fr) minmax(380px, 43%); }
  .explore[data-view="map"] .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .explore-map { position: sticky; top: calc(var(--hdr-h) + 88px); height: calc(100dvh - var(--hdr-h) - 112px); min-height: 460px; }
}

/* Mapa ilustrativo */
.map { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r-xl); background: #edf2e6; box-shadow: inset 0 0 0 1px var(--line); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; z-index: 2; translate: -50% calc(-100% - 7px); display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--green); color: #fff; box-shadow: 0 0 0 2.5px #fff, 0 8px 18px rgba(0, 54, 50, .35); font: 800 13px/1 var(--font); white-space: nowrap; transition: transform .3s var(--spring), background .2s, color .2s; }
.pin::after { content: ''; position: absolute; left: 50%; top: calc(100% + 1px); translate: -50% 0; border: 6px solid transparent; border-top: 7px solid #fff; }
.pin .ic { width: 15px; height: 15px; color: var(--lime); }
.pin:hover, .pin.is-hot { z-index: 4; transform: scale(1.12); }
.pin.is-on { z-index: 5; background: var(--lime); color: var(--deep); transform: scale(1.14); }
.pin.is-on .ic { color: var(--green); }
.pin.is-out { background: #88968f; }
.me { position: absolute; z-index: 1; translate: -50% -50%; width: 18px; height: 18px; border-radius: 50%; background: #2f7fe6; box-shadow: 0 0 0 3px #fff; }
.me::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: rgba(47, 127, 230, .35); animation: ping 2.4s var(--ease) infinite; z-index: -1; }
.map-note { position: absolute; z-index: 3; left: 12px; top: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 700; color: var(--muted); }
.map-ctrl { position: absolute; z-index: 3; right: 12px; top: 12px; display: grid; gap: 6px; }
.map-ctrl .round-btn { width: 40px; height: 40px; box-shadow: var(--shadow-1); }
.map-card { position: absolute; z-index: 6; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 13px; padding: 10px 14px 10px 10px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-2); text-decoration: none; animation: rise .4s var(--ease); }
.map-card img { width: 86px; height: 86px; flex: none; border-radius: 15px; object-fit: cover; }
.map-card div { min-width: 0; flex: 1; }
.map-card h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card p { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card .price { margin-top: 5px; }
.map-card .price strong { font-size: 19px; }
.map-card > .ic { color: var(--green); }

/* ---------- Detalhe da sacola ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 14.5px; color: var(--green); text-decoration: none; }
.back .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.back:hover .ic { transform: translateX(-4px); }
.gallery { display: grid; gap: 10px; margin-top: 4px; }
.g-main { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--r-xl); background: #dbe5da; view-transition-name: bag-photo; }
.g-main img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.g-main .tag { position: absolute; left: 14px; top: 14px; }
.g-actions { position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; gap: 8px; }
.g-actions .fav { position: static; width: 44px; height: 44px; }
.g-side { display: none; }
@media (min-width: 960px) {
  .gallery { grid-template-columns: 2.1fr 1fr; height: 430px; }
  .g-main { aspect-ratio: auto; height: 100%; border-radius: 36px; }
  .g-side { display: grid; gap: 10px; grid-template-rows: 1fr 1fr; min-height: 0; }
  .g-side figure { position: relative; overflow: hidden; border-radius: var(--r-xl); background: #dbe5da; }
  .g-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .g-side figcaption { position: absolute; left: 12px; bottom: 12px; }
}
.detail { display: grid; gap: 30px; margin-top: 22px; }
.d-main { min-width: 0; }
.d-title { display: flex; gap: 16px; align-items: flex-start; }
.d-title .mono { position: static; flex: none; width: 60px; height: 60px; font-size: 27px; border: 0; }
.d-title h1 { margin-top: 8px; font-size: clamp(29px, 3.9vw, 46px); }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.d-meta span { display: inline-flex; align-items: center; gap: 6px; }
.d-meta b { color: var(--ink); }
.d-meta .ic { width: 16px; height: 16px; color: var(--green); }
.d-meta .star { fill: var(--gold); stroke: var(--gold); }
.when-card { display: grid; gap: 14px; margin-top: 22px; padding: 18px 20px; border-radius: 22px; background: var(--mint); }
.when-row { display: flex; align-items: center; gap: 14px; }
.when-ic { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--green); }
.when-row div { flex: 1; min-width: 0; }
.when-card strong { display: block; font: 700 18.5px/1.2 var(--font-display); letter-spacing: -.02em; }
.when-card small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.timeline { position: relative; height: 8px; border-radius: 99px; background: #fff; overflow: hidden; }
.timeline i { position: absolute; inset: 0 auto 0 0; min-width: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--green), #46a99f); transition: width 1s var(--ease); }
.timeline-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); }
.d-block { padding: 28px 0; border-top: 1px solid var(--line); }
.d-block:first-of-type { margin-top: 28px; }
.d-block h2 { font-size: 22px; margin-bottom: 12px; }
.d-block > p { color: var(--muted); line-height: 1.7; }
.items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.items span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 650; }
.note { display: flex; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--cream); color: #5b6b61; font-size: 14px; line-height: 1.6; }
.note .ic { color: var(--green); margin-top: 2px; }
.score-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.score-head h2 { margin: 0; }
.score-head small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); font-weight: 400; font-family: var(--font); letter-spacing: 0; }
.score-big { display: flex; align-items: center; gap: 8px; font: 800 40px/1 var(--font-display); letter-spacing: -.04em; color: var(--green); }
.score-big .ic { width: 26px; height: 26px; fill: var(--gold); stroke: var(--gold); }
.scores { display: grid; gap: 12px; }
.score { display: grid; grid-template-columns: 96px 1fr 34px; gap: 14px; align-items: center; font-size: 14.5px; }
.score i { position: relative; height: 10px; border-radius: 99px; background: var(--mint); overflow: hidden; }
.score i::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #a6d3c7, var(--green)); transform-origin: left; animation: grow 1.1s var(--ease) both; }
.score b { text-align: right; }
.store-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.store-card .mono { position: static; flex: none; border: 0; }
.store-card div { flex: 1; min-width: 0; }
.store-card strong { display: block; font-size: 16px; }
.store-card div span { display: block; font-size: 13.5px; color: var(--muted); }
.mini-map { height: 210px; margin-top: 12px; }
.store-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.store-stats div { padding: 16px; border-radius: 18px; background: var(--mint); }
.store-stats b { display: block; font: 800 24px/1 var(--font-display); color: var(--green); letter-spacing: -.03em; }
.store-stats span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.pick-list { display: grid; gap: 14px; }
.pick-list li { display: flex; gap: 14px; align-items: flex-start; }
.pick-list .ic { width: 40px; height: 40px; padding: 10px; flex: none; border-radius: 50%; background: var(--lime); color: var(--deep); }
.pick-list strong { display: block; }
.pick-list span { display: block; font-size: 14px; color: var(--muted); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font: 700 22px/1.2 var(--font-display); letter-spacing: -.035em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { transition: rotate .3s var(--ease); }
.acc[open] summary .ic { rotate: 180deg; }
.acc p { margin-top: 12px; color: var(--muted); line-height: 1.7; }

.reserve { align-self: start; padding: 24px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.reserve h2 { margin-top: 16px; font-size: 25px; }
.reserve h2 em { color: var(--green); }
.big-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 16px; }
.big-price strong { font: 800 46px/1 var(--font-display); letter-spacing: -.05em; color: var(--green); }
.big-price del { color: var(--muted); }
.saving { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--mint); color: var(--green); font-size: 13px; font-weight: 750; }
.saving .ic { width: 15px; height: 15px; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 650; }
.qty small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green); transition: background .2s, transform .2s var(--spring); }
.stepper button:not(:disabled):hover { background: var(--lime); }
.stepper button:not(:disabled):active { transform: scale(.88); }
.stepper .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.stepper output { min-width: 30px; text-align: center; font-weight: 800; font-size: 16px; }
.total { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 18px; }
.total strong { font: 800 26px/1 var(--font-display); letter-spacing: -.04em; color: var(--green); }
.facts { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.facts div { display: flex; align-items: center; gap: 10px; }
.facts .ic { width: 18px; height: 18px; color: var(--green); }
.buybar { position: fixed; z-index: 46; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -18px rgba(0, 54, 50, .3); }
.buybar del { display: block; font-size: 12px; color: var(--muted); }
.buybar strong { display: block; font: 800 24px/1.1 var(--font-display); letter-spacing: -.04em; color: var(--green); }
@media (min-width: 960px) {
  .detail { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); gap: 60px; margin-top: 34px; }
  .reserve { position: sticky; top: calc(var(--hdr-h) + 20px); padding: 28px; }
  .buybar { display: none; }
}
body[data-view="sacola"] .ftr { padding-bottom: 110px; }
@media (min-width: 960px) { body[data-view="sacola"] .ftr { padding-bottom: 34px; } }

/* ---------- Estados vazios e portão de login ---------- */
.empty { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 52px 22px; border-radius: var(--r-xl); background: #fff; border: 2px dashed var(--mint-2); }
.empty-art { position: relative; width: 150px; height: 124px; margin-bottom: 14px; }
.empty-art .card { position: absolute; inset: 14px 10px 0; border-radius: 18px; background: var(--mint); overflow: hidden; }
.empty-art .card::after { content: ''; position: absolute; inset: 58% 0 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.empty-art .dot { position: absolute; right: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--lime); box-shadow: 0 0 0 5px #fff; animation: float 4s ease-in-out infinite; }
.empty-art .dot .ic { fill: var(--lime); }
.empty h2 { font-size: 24px; }
.empty p { max-width: 400px; margin: 8px 0 20px; color: var(--muted); }
.gate { display: grid; gap: 26px; align-items: center; margin-top: 10px; padding: 30px 22px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.gate h1 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 44px); }
.gate h1 em { color: var(--green); }
.gate-copy > p:not(.eyebrow) { margin-top: 10px; color: var(--muted); max-width: 460px; }
.gate .social { max-width: 400px; }
@media (min-width: 860px) { .gate { grid-template-columns: 1.1fr .9fr; padding: 56px; gap: 56px; } }

/* ---------- Login social ---------- */
.social { display: grid; gap: 10px; margin-top: 22px; }
.sbtn { display: flex; align-items: center; gap: 13px; width: 100%; height: 54px; padding: 0 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 15px; text-align: left; transition: box-shadow .2s, transform .2s var(--ease); }
.sbtn:hover { box-shadow: inset 0 0 0 1.5px var(--green), var(--shadow-1); transform: translateY(-1px); }
.sbtn svg { width: 22px; height: 22px; flex: none; }
.sbtn span { flex: 1; }
.sbtn .ic { width: 16px; height: 16px; color: var(--muted); }
.sbtn.is-loading { pointer-events: none; opacity: .75; }
.sbtn.is-loading .ic { animation: spin .8s linear infinite; }
.social-mini { display: flex; justify-content: center; gap: 10px; }
.social-mini .sbtn { width: 54px; padding: 0; justify-content: center; border-radius: 50%; }
.or { display: flex; align-items: center; gap: 12px; margin: 6px 0; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.legal { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }
.legal a { color: var(--green); text-underline-offset: 3px; }
.login-side { display: none; }
.login-merchant { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--mint); font-size: 14px; text-decoration: none; }
.login-merchant .ic:first-child { color: var(--green); }
.login-merchant span { flex: 1; }
.login-merchant b { display: block; }
@media (min-width: 720px) {
  .ov-panel.has-side { padding: 0; display: grid; grid-template-columns: .82fr 1fr; overflow: hidden; }
  .has-side .login-main { padding: 40px 38px 34px; overflow: auto; max-height: 92dvh; }
  .login-side { display: flex; flex-direction: column; position: relative; isolation: isolate; padding: 38px 34px 0; background: linear-gradient(165deg, #00645e, #003632); color: #fff; overflow: hidden; }
  .login-side::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(248, 237, 156, .18) 1.2px, transparent 1.7px); background-size: 22px 22px; }
  .login-side .logo { width: 140px; color: #fafaf6; --logo-leaf: var(--lime); }
  .login-side h3 { margin-top: 26px; font-size: 30px; line-height: 1.05; }
  .login-side h3 em { color: var(--lime); }
  .login-side ul { display: grid; gap: 10px; margin-top: 20px; font-size: 14px; font-weight: 600; color: #d7ebe5; }
  .login-side li { display: flex; align-items: center; gap: 10px; }
  .login-side li .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--lime); color: var(--deep); stroke-width: 2.8; }
  .login-side .arch { position: relative; left: auto; bottom: auto; translate: none; width: 200px; margin: auto auto 0; flex: none; }
}

/* ---------- Camada modal / folha inferior ---------- */
.ov { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; justify-items: center; }
.ov-back { position: absolute; inset: 0; background: rgba(0, 43, 40, .56); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade .25s both; }
.ov-panel { position: relative; width: 100%; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; padding: 30px 22px calc(26px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; background: var(--paper); box-shadow: var(--shadow-3); animation: sheet .45s var(--ease) both; }
.ov-panel:focus { outline: none; }
.ov-panel::before { content: ''; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 44px; height: 5px; border-radius: 99px; background: #cdd7ce; }
.ov-x { position: absolute; z-index: 5; top: 14px; right: 14px; }
.ov h2 { font-size: 27px; padding-right: 48px; }
.ov h2 em { color: var(--green); }
.ov .lead { margin-top: 8px; color: var(--muted); font-size: 15px; }
.ov.closing .ov-panel { animation: sheet-out .22s ease-in both; }
.ov.closing .ov-back { animation: fade-out .22s both; }
@media (min-width: 720px) {
  .ov { align-items: center; padding: 24px; }
  .ov-panel { width: min(var(--w, 480px), 100%); padding: 34px; border-radius: 30px; animation-name: modal; }
  .ov-panel::before { display: none; }
  .ov.closing .ov-panel { animation-name: modal-out; }
}

/* Listas dentro de modais */
.opt-list { display: grid; margin-top: 18px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.opt-ic { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green); }
.opt > span:not(.opt-ic) { flex: 1; min-width: 0; }
.opt b { display: block; font-weight: 700; }
.opt small { display: block; font-size: 13px; color: var(--muted); }
.opt .radio { width: 24px; height: 24px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px #b9c7bd; transition: box-shadow .2s; }
.opt[aria-checked="true"] .radio { box-shadow: inset 0 0 0 7px var(--green); }
.opt:hover .opt-ic { background: var(--lime); }
.opt.is-soon { opacity: .6; }
.field-title { margin: 22px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.range-row { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 14px 0 4px; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--fill, 50%), var(--mint-2) var(--fill, 50%)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--green), var(--shadow-1); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--green), var(--shadow-1); cursor: grab; }
.ov-foot { display: flex; gap: 10px; margin-top: 26px; }
.ov-foot .btn { flex: 1; }
.ov-foot .btn-ghost { flex: 0 0 auto; }

/* Checkout */
.co-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-right: 48px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.co-steps span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.co-steps span i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-2); color: var(--deep); font: 800 11.5px/1 var(--font); font-style: normal; }
.co-steps span.on { color: var(--green); }
.co-steps span.on i { background: var(--green); color: #fff; }
.co-steps u { flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.co-item { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.co-item img { width: 76px; height: 76px; flex: none; border-radius: 14px; object-fit: cover; }
.co-item div { flex: 1; min-width: 0; }
.co-item strong { display: block; font: 700 17px/1.2 var(--font-display); letter-spacing: -.02em; }
.co-item small { display: block; font-size: 13px; color: var(--muted); }
.co-rows { display: grid; gap: 12px; margin-top: 18px; }
.co-row { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; }
.co-row .ic { color: var(--green); margin-top: 1px; }
.co-row small { display: block; color: var(--muted); font-size: 13px; }
.eco { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--lime); color: var(--deep); font-size: 14px; }
.eco .ic { width: 38px; height: 38px; padding: 9px; flex: none; border-radius: 50%; background: #fff; }
.eco b { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--green); }
.pix { display: grid; justify-items: center; gap: 14px; margin-top: 20px; padding: 22px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.qr { width: 190px; height: 190px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 2px var(--mint-2); }
.qr svg { display: block; width: 100%; height: 100%; }
.pix-code { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--mint); font: 600 13px/1 ui-monospace, 'Cascadia Code', Consolas, monospace; color: var(--deep); }
.pix-code span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.pix-timer { font-size: 13.5px; color: var(--muted); }
.pix-timer b { color: var(--ink); font-variant-numeric: tabular-nums; }
.proto-hint { margin-top: 14px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* Bilhete de retirada */
.ticket { position: relative; margin-top: 22px; padding: 26px 22px 22px; border-radius: 24px; background: #fff; text-align: center; filter: drop-shadow(0 12px 26px rgba(0, 75, 70, .16)); }
.ticket-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticket-code { display: block; margin-top: 8px; font: 800 38px/1 var(--font-display); letter-spacing: .1em; color: var(--green); }
.ticket-cut { position: relative; height: 0; margin: 20px 0; border-top: 2px dashed var(--line); }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.ticket-cut::before { left: -33px; }
.ticket-cut::after { right: -33px; }
.ticket h3 { font-size: 20px; }
.ticket p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.ticket .t-when { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-weight: 750; color: var(--green); }
.ticket .t-when .ic { width: 16px; height: 16px; }
.success-ic { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--lime); animation: pop .6s var(--spring) both; }
.success-ic .ic { width: 32px; height: 32px; stroke-width: 2.6; }
.center { text-align: center; }
.center h2 { padding: 0; }
.code-ring { position: relative; margin: 22px auto 0; width: min(280px, 100%); padding: 5px; border-radius: 30px; background: conic-gradient(from var(--a, 0deg), var(--green), var(--lime), #46a99f, var(--lime), var(--green)); animation: ring 5s linear infinite; }
.code-ring > div { padding: 22px; border-radius: 26px; background: #fff; text-align: center; }
.code-ring .qr { width: 170px; height: 170px; margin: 0 auto; box-shadow: none; padding: 0; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- Pedidos ---------- */
.tabs-line { display: flex; gap: 24px; margin: 22px 0; border-bottom: 1px solid var(--line); }
.tabs-line button { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px 12px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-weight: 700; color: var(--muted); }
.tabs-line button[aria-pressed="true"] { color: var(--green); border-color: var(--green); }
.tabs-line button b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--mint); color: var(--green); font-size: 12px; }
.orders { display: grid; gap: 18px; }
.order { display: grid; gap: 18px; padding: 18px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.order-main { display: flex; gap: 16px; min-width: 0; }
.order-main img { width: 92px; height: 92px; flex: none; border-radius: 18px; object-fit: cover; }
.order-main div { min-width: 0; }
.order-main h3 { margin-top: 8px; font-size: 19px; }
.order-main p { font-size: 13.5px; color: var(--muted); }
.order-main .t-when { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.order-main .t-when .ic { width: 15px; height: 15px; color: var(--green); }
.order-code { display: grid; gap: 4px; align-content: center; justify-items: center; padding: 16px; border-radius: 20px; background: var(--paper); border: 2px dashed var(--mint-2); text-align: center; }
.order-code small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.order-code b { font: 800 26px/1.1 var(--font-display); letter-spacing: .08em; color: var(--green); }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-actions .btn { flex: 1 1 auto; }
.track { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.track span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.track span::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--mint-2); }
.track span.ok { color: var(--green); }
.track span.ok::before { background: var(--green); }
.track u { flex: 1; min-width: 10px; height: 2px; background: var(--mint-2); }
.track u.ok { background: var(--green); }
@media (max-width: 519px) { .track span { font-size: 0; gap: 0; } .track span.cur { font-size: 12px; gap: 6px; } }
@media (min-width: 860px) {
  .order { grid-template-columns: minmax(0, 1fr) 210px; grid-template-areas: 'main code' 'track code' 'actions code'; column-gap: 26px; padding: 24px; }
  .order-main { grid-area: main; } .track { grid-area: track; } .order-actions { grid-area: actions; } .order-code { grid-area: code; }
  .order-main img { width: 108px; height: 108px; }
}

/* ---------- Perfil ---------- */
.profile { display: grid; gap: 22px; margin-top: 6px; }
.profile > * { min-width: 0; }
.p-col { display: grid; gap: 22px; align-content: start; }
.hello { display: flex; align-items: center; gap: 16px; }
.avatar-btn { position: relative; width: 78px; height: 78px; flex: none; border-radius: 50%; }
.avatar-btn .avatar { width: 100%; height: 100%; }
.avatar-btn i { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 3px var(--paper); }
.avatar-btn i .ic { width: 14px; height: 14px; }
.hello h1 { margin-top: 8px; font-size: clamp(28px, 3.6vw, 42px); }
.hello p:not(.eyebrow) { margin-top: 4px; font-size: 14px; color: var(--muted); }
.card { padding: 22px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.card > h2 { font-size: 22px; }
.me-impact { position: relative; isolation: isolate; overflow: hidden; padding: 26px 22px; border-radius: var(--r-xl); background: linear-gradient(160deg, #00645e, #003632); color: #fff; }
.me-impact::before { content: ''; position: absolute; z-index: -1; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(248, 237, 156, .22), transparent); }
.me-impact .eyebrow { color: var(--lime); }
.me-impact h2 { margin-top: 12px; font-size: clamp(24px, 2.8vw, 34px); }
.me-impact h2 em { color: var(--lime); }
.me-impact .stats { margin-top: 22px; }
.level { margin-top: 20px; padding: 16px; border-radius: 18px; background: rgba(0, 0, 0, .18); }
.level-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 700; }
.level-row span { color: #bcd9d2; font-weight: 500; }
.level-bar { height: 8px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.level-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--lime); transform-origin: left; animation: grow 1.2s var(--ease) both; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; margin-top: 22px; }
.bars div { display: grid; gap: 6px; height: 100%; grid-template-rows: 1fr auto; align-items: end; justify-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.bars i { width: 100%; max-width: 46px; height: var(--h); min-height: 6px; border-radius: 10px 10px 4px 4px; background: var(--mint-2); transform-origin: bottom; animation: grow-y 1s var(--ease) both; }
.bars div.now i { background: var(--green); }
.bars div.now { color: var(--green); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-top small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.card-top b { font: 800 26px/1 var(--font-display); letter-spacing: -.04em; color: var(--green); white-space: nowrap; }
.invite { position: relative; overflow: hidden; padding: 24px 22px; border-radius: var(--r-xl); background: var(--lime); color: var(--deep); }
.invite h2 { font-size: 24px; max-width: 300px; }
.invite p { margin: 8px 0 16px; font-size: 14.5px; color: #4b5b3c; max-width: 330px; }
.invite-code { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 18px; border-radius: 999px; background: #fff; font: 800 15px var(--font-display); letter-spacing: .1em; }
.invite-code .round-btn { width: 36px; height: 36px; background: var(--green); color: #fff; box-shadow: none; }
.invite .stamp { top: auto; bottom: -22px; right: -16px; width: 110px; height: 110px; background: var(--green); color: var(--lime); rotate: -10deg; box-shadow: none; }
.invite .stamp-ring text { fill: var(--lime); }
.invite .stamp-mark { color: var(--lime); --logo-leaf: #fff; }
.menu { padding: 8px 22px; }
.menu h4 { margin: 18px 0 2px; font: 800 11.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; border-bottom: 1px solid var(--line); font-weight: 650; text-align: left; text-decoration: none; }
.menu a:last-child, .menu button:last-child { border-bottom: 0; }
.menu .ic:first-child { color: var(--green); }
.menu span { flex: 1; }
.menu small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.menu .ic:last-child { width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease); }
.menu a:hover .ic:last-child, .menu button:hover .ic:last-child { transform: translateX(4px); color: var(--green); }
.menu .danger, .menu .danger .ic:first-child { color: #a2452f; }
@media (min-width: 960px) { .profile { grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr); gap: 28px; } .me-impact { padding: 34px; } }

/* Avatar */
.av-preview { width: 112px; height: 112px; margin: 20px auto 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px #fff, var(--shadow-2); }
.av-preview svg { display: block; width: 100%; height: 100%; }
.av-opts { display: flex; justify-content: center; gap: 14px; }
.av-opts button { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--line); transition: transform .25s var(--spring), box-shadow .2s; }
.av-opts button svg { display: block; width: 100%; height: 100%; }
.av-opts button:hover { transform: scale(1.08); }
.av-opts button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--green); }
.av-opts.colors button { width: 46px; height: 46px; background: var(--c); }

/* ---------- Página do lojista ---------- */
.m-hero { display: grid; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(165deg, #00645e, #003632); color: #fff; }
.m-hero-copy { padding: 36px 22px; }
.m-hero .eyebrow { color: var(--lime); }
.m-hero h1 { margin-top: 14px; font-size: clamp(34px, 4.8vw, 62px); line-height: 1; }
.m-hero h1 em { color: var(--lime); }
.m-hero p { margin-top: 14px; max-width: 500px; color: #d3e7e1; }
.m-hero .btn-row { margin-top: 24px; }
.m-hero-photo { position: relative; min-height: 280px; }
.m-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-grid { display: grid; gap: 16px; margin-top: 22px; }
.m-card { padding: 24px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.m-card .ic { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--lime); color: var(--deep); }
.m-card h3 { margin-top: 16px; font-size: 20px; }
.m-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.m-access { display: grid; gap: 22px; align-items: center; margin-top: 22px; padding: 28px 22px; border-radius: var(--r-xl); background: var(--cream); }
.m-access h2 { margin-top: 12px; font-size: clamp(24px, 3vw, 36px); }
.m-access p { margin-top: 8px; color: #5b6b61; max-width: 520px; }
.m-lock { display: grid; gap: 12px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-1); }
.m-lock .fake { height: 50px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: flex; align-items: center; padding: 0 16px; color: #9aa7a2; font-size: 14.5px; }
@media (min-width: 960px) {
  .m-hero { grid-template-columns: 1.1fr .9fr; border-radius: 40px; }
  .m-hero-copy { padding: 72px 0 72px 68px; }
  .m-grid { grid-template-columns: repeat(3, 1fr); }
  .m-access { grid-template-columns: 1.2fr .8fr; padding: 52px 56px; border-radius: 40px; }
}

/* ---------- Toast e confete ---------- */
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); translate: -50% 16px; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 28px); padding: 13px 20px 13px 14px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 650; font-size: 14.5px; box-shadow: var(--shadow-3); opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--spring); }
.toast.show { opacity: 1; translate: -50% 0; }
.toast .ic { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--lime); color: var(--deep); stroke-width: 2.6; }
@media (min-width: 960px) { .toast { bottom: 32px; } }
.confetti { position: fixed; z-index: 210; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; width: 12px; height: 12px; border-radius: 2px 10px; background: var(--c); animation: burst 1.2s var(--ease) both; }

/* ---------- Revelação ao rolar ---------- */
.rv { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; translate: 0 0; }

/* ---------- Animações ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(248, 237, 156, .7); } 70% { box-shadow: 0 0 0 10px rgba(248, 237, 156, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 237, 156, 0); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes modal { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes tab-in { from { transform: scale(.6); opacity: 0; } }
@keyframes ring { to { --a: 360deg; } }
@keyframes burst { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 0; } }

/* Transições de tela (View Transitions API) */
::view-transition-old(root) { animation: fade-out .18s ease both; }
::view-transition-new(root) { animation: rise .38s var(--ease) both; }
::view-transition-group(bag-photo) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(bag-photo), ::view-transition-new(bag-photo) { height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; translate: none; }
  .marquee-track { animation: none !important; }
}

/* ---------- Ajustes complementares ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h2 { margin-top: 12px; font-size: clamp(28px, 3.5vw, 46px); }
.h2 em { color: var(--green); }
.tag .live, .tag .live::after { background: var(--lime); }
.social-half { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-half .sbtn { justify-content: center; }
.social-half .sbtn span { flex: none; }
.co-item .stepper { flex: none; }
.co-steps i .ic { width: 12px; height: 12px; stroke-width: 3.2; }
.empty-art .dot .ic { fill: none; }
.empty-art .dot .ic path[d^="M20.8"] { fill: var(--lime); }
.field-title.center { text-align: center; }
@media (max-width: 959px) { .toolbar { position: static; } }
@media (max-width: 719px) { .toolbar .select { display: none; } .toolbar .seg { margin-left: auto; } }
@media (min-width: 720px) {
  .ov-panel.has-side { padding: 0; overflow: hidden; display: block; }
  .has-side .ov-body { display: grid; grid-template-columns: .82fr 1fr; }
}

/* Entrada do hero */
.arch { animation: arch-in 1s var(--ease) .1s both; }
.stamp { animation: stamp-in .8s var(--spring) .6s both; }
@keyframes arch-in { from { opacity: 0; transform: translateY(48px); } }
@keyframes stamp-in { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }
@keyframes float-in { from { opacity: 0; transform: translateY(18px) scale(.94); } }

/* Evita transbordo horizontal em telas estreitas */
.notify > *, .gate > *, .how > *, .faq > *, .merchant > *, .impact > *, .m-hero > *, .m-access > *, .detail > * { min-width: 0; }
@media (max-width: 519px) {
  .notify form { flex-direction: column; padding: 8px; border-radius: 26px; }
  .notify form .btn { width: 100%; }
}

/* O hero entra por animação CSS (não depende do observador de rolagem) */
.hero .rv { opacity: 1; translate: none; transition: none; animation: rise .8s var(--ease) var(--d, 0s) both; }

@media (min-width: 620px) { .stat { padding: 20px; } }

/* Checkout em telas estreitas */
.pix { grid-template-columns: minmax(0, 1fr); }
.pix-code { min-width: 0; max-width: 100%; }
.co-item { flex-wrap: wrap; }
.co-item > div:not(.stepper) { flex: 1 1 150px; }
.co-item .stepper { margin-left: auto; }
/* Com um modal aberto, o aviso sobe para não cobrir os botões */
.ov:not([hidden]) ~ .toast { bottom: auto; top: calc(14px + env(safe-area-inset-top)); translate: -50% -16px; }
.ov:not([hidden]) ~ .toast.show { translate: -50% 0; }
.bag-when { flex-wrap: wrap; row-gap: 2px; }
.bag-when span, .bag-when small { white-space: nowrap; }

/* Hero em notebooks menores */
@media (min-width: 1000px) { .hero-copy { padding-right: 28px; } .float-a { left: 0; } }
@media (min-width: 1000px) and (max-width: 1239px) { .hsearch .btn { width: 48px; padding: 0; } .hsearch .btn span { display: none; } }
