﻿/* ============================================================
   FARM Rio — Editorial Luxury v2 (Vanguard_UI_Architect)
   Vibe: Editorial Luxury  |  Layout: Z-Axis Cascade + Bento
   Font: Plus Jakarta Sans + Fraunces
   ============================================================ */

:root {
  --bg:           #FDFAF5;
  --surface:      #FFFCF8;
  --surface-2:    #F5F0E8;
  --ink:          #18130E;
  --muted:        #7A7060;
  --light:        #B5ACA0;
  --green:        #145c38;
  --green-deep:   #0D3D27;
  --green-soft:   #EEF4EF;
  --green-pale:   #F3F8F4;
  --coral:        #D4603A;
  --gold:         #C28A32;
  --line:         rgba(24, 19, 14, 0.09);
  --line-soft:    rgba(24, 19, 14, 0.05);
  --danger:       #8C2F24;

  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shell: 430px;
  --ease:   cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.46, 0.64, 1);
  --exit:   cubic-bezier(0.72, 0, 0.68, 0);

  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 999px;

  --sh-sm:  0 1px 3px rgba(24,19,14,.05), 0 4px 16px rgba(24,19,14,.04);
  --sh-md:  0 2px 8px rgba(24,19,14,.07), 0 8px 28px rgba(24,19,14,.05);
  --sh-green: 0 4px 20px rgba(20,92,56,.14), 0 8px 40px rgba(20,92,56,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #E8DDD1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain — fixed, pointer-events: none, never on scrolling containers */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px;
  mix-blend-mode: multiply;
}

/* ── App Shell ─────────────────────────────────────────────── */
#app {
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Screens ────────────────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
}
.screen.active {
  display: flex;
  animation: screenIn 0.55s var(--ease) both;
}
.screen.center {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal classes */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ── Top Bar ────────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  gap: 12px;
}
.top-bar.transparent {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
}

.brand-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ink);
  transition: color 0.3s var(--ease), filter 0.3s var(--ease);
}

/* SVG Logo variant */
.brand-logo-svg {
  display: block;
  height: 18px;
  width: auto;
}
.brand-logo-svg svg {
  height: 100%;
  width: auto;
  display: block;
}
/* Default logo color: institutional green */
.brand-logo-svg svg path {
  fill: var(--green);
  transition: fill 0.3s var(--ease);
}

/* Intro hero: green logo with soft white halo for legibility over the image */
.top-bar.transparent .brand-logo-svg svg {
  filter: drop-shadow(0 1px 3px rgba(255,255,255,0.9)) drop-shadow(0 2px 8px rgba(255,255,255,0.6));
}
.top-bar.transparent .brand-logo-svg svg path {
  fill: var(--green);
}

.top-bar.transparent .brand-logo {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.22), 0 2px 24px rgba(0,0,0,.12);
}

.top-tag {
  font-family: var(--font-sans);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--green);
  border: 1px solid rgba(20,92,56,.14);
  border-radius: var(--r-full);
  padding: 6px 12px;
  background: rgba(255,253,249,.88);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.link-back {
  border: none;
  background: none;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.link-back:hover { color: var(--ink); }

/* ── Typography ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.title-serif {
  font-family: var(--font-serif);
  font-weight: 380;
  font-optical-sizing: auto;
  line-height: 1.14;
  font-size: clamp(1.9rem, 7.5vw, 2.2rem);
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.title-serif .accent {
  color: var(--coral);
  font-style: italic;
  font-weight: 420;
}

.text-body {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.68;
  color: var(--muted);
  letter-spacing: 0.008em;
  text-wrap: pretty;
}
.text-body.small {
  font-size: 0.72rem;
  line-height: 1.6;
}

.divider {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--coral) 50%, transparent 100%);
  margin: 20px 0;
  border-radius: 1px;
}

/* ── Buttons ────────────────────────────────────────────────── */

/* Primary pill — button-in-button architecture */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(165deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: var(--r-full);
  padding: 17px 28px;
  width: 100%;
  box-shadow:
    0 2px 8px rgba(20,92,56,0.12),
    0 6px 24px rgba(20,92,56,0.16),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.35s var(--ease),
    opacity 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 50%);
  pointer-events: none;
}

.btn:active {
  transform: scale(0.975);
  box-shadow: 0 2px 6px rgba(20,92,56,.14);
}

.btn:hover {
  box-shadow:
    0 4px 12px rgba(20,92,56,0.18),
    0 10px 36px rgba(20,92,56,0.22),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.38;
  pointer-events: none;
  box-shadow: none;
  background: var(--light);
}

/* Button-in-button arrow icon */
.btn-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--spring), background 0.3s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.btn:hover .btn-arrow {
  transform: translate(4px, -2px) scale(1.08);
  background: rgba(255,255,255,.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.btn-arrow svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 2.2;
}

.btn-small { width: auto; padding: 12px 18px; letter-spacing: 0.09em; }

.btn-ghost {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: var(--r-full);
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* busy state (reservando…) */
.btn.is-busy {
  position: relative;
  pointer-events: none;
  color: transparent !important;
  background: #d4cdc4 !important;
  box-shadow: none !important;
  animation: busyPulse 1.4s ease-in-out infinite;
  overflow: hidden;
}
.btn.is-busy::after {
  content: "reservando";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #8a8070;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.btn.is-busy::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: btnShine 1.4s linear infinite;
}
@keyframes busyPulse { 0%,100% { background: #d4cdc4; } 50% { background: #cac3bb; } }
@keyframes btnShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Fields ─────────────────────────────────────────────────── */
.field {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: inset 0 1px 3px rgba(24,19,14,.04);
}
.field:focus {
  border-color: var(--green);
  box-shadow: inset 0 1px 3px rgba(24,19,14,.04), 0 0 0 3px rgba(20,92,56,.08);
}
.field.small { font-size: 0.72rem; }

/* ── 1. Intro ───────────────────────────────────────────────── */
.hero-wrap {
  position: relative;
  height: 54dvh;
  min-height: 300px;
  overflow: hidden;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  animation: heroScale 12s ease-in-out alternate infinite;
  will-change: transform;
}
@keyframes heroScale { from { transform: scale(1); } to { transform: scale(1.04); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,92,56,.12) 0%,
    rgba(20,92,56,.04) 35%,
    rgba(253,250,245,.0) 55%,
    var(--bg) 100%
  );
}

.intro-content {
  padding: 0 26px 36px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.intro-content .eyebrow { margin-bottom: 14px; }
.intro-content .title-serif { margin-bottom: 16px; font-size: clamp(2rem, 8.5vw, 2.6rem); }
.intro-content .text-body { margin-bottom: 26px; }

/* ── 2. Quiz ────────────────────────────────────────────────── */
.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 200px;
}
.quiz-step {
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-weight: 600;
}
.quiz-progress-track {
  flex: 1;
  height: 2px;
  background: rgba(20,92,56,.1);
  border-radius: 99px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--coral), var(--green));
  border-radius: 99px;
  transition: width 0.5s var(--ease);
}

.quiz-body {
  padding: 22px 20px 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quiz-question {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 6.5vw, 1.8rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Double-bezel quiz options */
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }

/* Outer shell */
.quiz-op {
  text-align: left;
  border: 1px solid rgba(20,92,56,.13);
  background: rgba(20,92,56,.04);
  border-radius: var(--r-lg);
  padding: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
  width: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
  box-shadow: var(--sh-sm);
}
.quiz-op:active { transform: scale(0.985); }

/* Inner core — JS generates .quiz-op-copy */
.quiz-op-copy {
  display: block;
  background: var(--surface);
  border-radius: calc(var(--r-lg) - 3px);
  padding: 15px 17px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.92);
}

.quiz-op strong,
.qo-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  font-family: var(--font-sans);
}
.quiz-op span:not(.quiz-op-copy),
.qo-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Hover state */
.quiz-op:hover:not(.is-on) {
  border-color: rgba(20,92,56,.22);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

/* Selected state */
.quiz-op.is-on {
  border-color: var(--green);
  background: rgba(20,92,56,.1);
  box-shadow: var(--sh-green);
}
.quiz-op.is-on .quiz-op-copy {
  background: var(--green-pale);
}

/* has-img variant */
.quiz-op.has-img { padding: 0; overflow: hidden; }
.quiz-op.has-img img { width: 100%; height: 120px; object-fit: cover; display: block; }
.quiz-op.has-img .quiz-op-copy { padding: 12px 16px 14px; border-radius: 0; box-shadow: none; }

.quiz-feedback {
  min-height: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
}

/* ── 3. Reveal ──────────────────────────────────────────────── */
.reveal-loader {
  width: 48px; height: 48px;
  margin: 28px 0;
  border-radius: 50%;
  border: 1.5px solid rgba(20,92,56,.15);
  border-top-color: var(--green);
  animation: spin 1s linear infinite;
}
.reveal-msg {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ink);
}

/* ── 4. Resultado ───────────────────────────────────────────── */
.confetti-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 50;
}

.result-screen {
  position: relative;
  text-align: center;
  align-items: center;
  overflow: hidden;
  background: url(assets/result-bg.jpg) center top / cover no-repeat;
  background-color: var(--surface);
}

/* Botanical frame — subtle leaf silhouettes */
.result-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'%3E%3Cpath fill='%23145c38' fill-opacity='0.06' d='M-5 200Q15 160 8 120Q25 145 45 100Q35 130 70 125Q50 145 58 175Q40 160 25 180Q10 165 -5 200Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200'%3E%3Cpath fill='%23145c38' fill-opacity='0.05' d='M105 200Q85 160 92 120Q75 145 55 100Q65 130 30 125Q50 145 42 175Q60 160 75 180Q90 165 105 200Z'/%3E%3C/svg%3E");
  background-position: left bottom, right bottom;
  background-size: 90px auto, 85px auto;
  background-repeat: no-repeat;
  opacity: 0.7;
}

/* Progressive cream wash — refined gradient */
.result-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(253,250,245,0)    0%,
    rgba(253,250,245,0)    38%,
    rgba(253,250,245,0.08) 46%,
    rgba(253,250,245,0.28) 56%,
    rgba(253,250,245,0.56) 68%,
    rgba(253,250,245,0.82) 80%,
    rgba(253,250,245,0.96) 92%,
    rgba(253,250,245,1)    100%
  );
  z-index: 0;
}

/* Top bar refinements */
.result-topbar {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  padding: 18px 24px 0;
  position: relative;
  z-index: 3;
}

.result-topbar .brand-logo {
  background: rgba(253,250,245,0.72);
  padding: 7px 20px 6px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 2px 12px rgba(20,92,56,0.08);
}

.result-topbar .brand-logo-svg {
  padding: 0;
}
.result-topbar .brand-logo-svg svg {
  height: 17px;
  filter: drop-shadow(0 1px 3px rgba(255,255,255,0.9)) drop-shadow(0 2px 8px rgba(255,255,255,0.6));
}
.result-topbar .brand-logo-svg svg path {
  fill: var(--green);
}

/* Main content container */
.result-content {
  width: min(100%, 380px);
  flex: 1;
  margin: 0 auto;
  padding: 0 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: result-enter 0.8s cubic-bezier(0.34,1.46,0.64,1) both;
}

@keyframes result-enter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Eyebrow — editorial refinement */
.result-content .eyebrow {
  margin-bottom: 14px;
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  color: var(--green);
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(20,92,56,0.06);
  border-radius: var(--r-full);
  border: 1px solid rgba(20,92,56,0.1);
  animation: result-enter 0.65s cubic-bezier(0.34,1.46,0.64,1) 0.08s both;
}

/* Headline — editorial serif treatment */
.result-content .title-serif {
  max-width: 320px;
  margin: 0 auto;
  font-size: clamp(2rem, 8.5vw, 2.6rem);
  font-weight: 350;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  animation: result-enter 0.75s cubic-bezier(0.34,1.46,0.64,1) 0.14s both;
}

.result-content .title-serif .accent {
  font-weight: 400;
  font-style: italic;
  color: var(--coral);
}

/* Divider — refined coral gradient */
.result-content .divider {
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--coral) 50%, transparent 95%);
  margin: 16px auto 20px;
  border-radius: 1px;
  opacity: 0.85;
  animation: result-enter 0.6s cubic-bezier(0.34,1.46,0.64,1) 0.22s both;
}

/* Double-bezel reason box — luxury card */
.reason-box {
  width: 100%;
  background: linear-gradient(
    145deg,
    rgba(255,253,250,0.92) 0%,
    rgba(253,250,245,0.88) 100%
  );
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-xl);
  padding: 3px;
  box-shadow:
    0 1px 2px rgba(20,92,56,0.04),
    0 4px 12px rgba(20,92,56,0.06),
    0 16px 48px rgba(20,92,56,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: result-enter 0.75s cubic-bezier(0.34,1.46,0.64,1) 0.28s both;
}

.reason-box-inner {
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.78) 100%
  );
  border-radius: calc(var(--r-xl) - 3px);
  padding: 24px 22px 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.98);
}

/* Reason title — refined typography */
.reason-title {
  font-family: var(--font-sans);
  font-size: 0.54rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reason-title::before,
.reason-title::after {
  content: '';
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20,92,56,0.25));
}

.reason-title::after {
  background: linear-gradient(90deg, rgba(20,92,56,0.25), transparent);
}

/* Reason body text */
.reason-box .text-body,
.reason-box-inner .text-body {
  max-width: 290px;
  margin: 0 auto;
  line-height: 1.72;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* CTA section */
.result-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 22px 0 0;
  animation: result-enter 0.75s cubic-bezier(0.34,1.46,0.64,1) 0.38s both;
}

.result-cta .btn {
  width: min(100%, 320px);
  padding: 17px 26px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  box-shadow:
    0 4px 16px rgba(20,92,56,0.2),
    0 8px 32px rgba(20,92,56,0.15),
    inset 0 1px 0 rgba(255,255,255,0.12);
  background: linear-gradient(
    165deg,
    var(--green) 0%,
    var(--green-deep) 100%
  );
  transition: transform 0.4s var(--spring), box-shadow 0.35s var(--ease);
}

.result-cta .btn:hover {
  box-shadow:
    0 6px 20px rgba(20,92,56,0.28),
    0 12px 44px rgba(20,92,56,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.result-cta .btn:active {
  transform: translateY(0) scale(0.98);
}

.result-cta .btn .btn-arrow {
  background: rgba(255,255,255,0.18);
  width: 30px;
  height: 30px;
}

/* Result trust row — horizontal reassurance under the CTA */
.result-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  animation: result-enter 0.75s cubic-bezier(0.34,1.46,0.64,1) 0.46s both;
}
.result-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  white-space: nowrap;
}
.result-trust-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.85; }
.result-trust-item + .result-trust-item {
  padding-left: 8px;
  border-left: 1px solid rgba(20,92,56,0.18);
}

/* Responsive — short screens */
@media (max-height: 740px) {
  .result-content {
    padding-top: 0;
    padding-bottom: 20px;
    justify-content: center;
  }
  .result-content .eyebrow {
    margin-bottom: 10px;
  }
  .result-content .title-serif {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
  }
  .result-content .divider {
    margin: 14px auto;
  }
  .reason-box-inner {
    padding: 18px 16px 20px;
  }
  .result-cta {
    padding-top: 18px;
  }
}

/* Responsive — very short screens */
@media (max-height: 640px) {
  .result-topbar {
    min-height: 48px;
    padding-top: 12px;
  }
  .result-content .eyebrow {
    padding: 5px 12px;
    font-size: 0.52rem;
  }
  .result-content .title-serif {
    font-size: clamp(1.6rem, 7vw, 2rem);
    max-width: 280px;
  }
  .result-content .divider {
    margin: 10px auto;
    width: 36px;
  }
  .reason-box-inner {
    padding: 14px 14px 16px;
  }
  .reason-box-inner .text-body {
    font-size: 0.76rem;
    line-height: 1.65;
  }
  .result-cta .btn {
    padding: 14px 22px;
    font-size: 0.7rem;
  }
}

/* ── 5. Presentes ───────────────────────────────────────────── */
.catalog-head { padding: 8px 22px 14px; }
.catalog-head .eyebrow { margin-bottom: 10px; }
.catalog-head .title-serif { font-size: clamp(1.7rem, 7vw, 2rem); }

.gift-cat-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 2px;
  scrollbar-width: none;
  margin-top: 12px;
}
.gift-cat-tabs::-webkit-scrollbar { display: none; }

.gift-cat-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.gift-cat-tab.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: var(--sh-green);
}

/* Sub-tabs (tipos dentro da categoria) */
.gift-sub-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 4px;
  scrollbar-width: none;
  margin-top: 6px;
}
.gift-sub-tabs::-webkit-scrollbar { display: none; }
.gift-sub-tab {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: none;
  background: var(--surface-2);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.gift-sub-tab:hover { background: var(--line); }
.gift-sub-tab.is-on {
  background: var(--green-light, #e8f5e9);
  color: var(--green);
  font-weight: 600;
}

.gift-search { position: relative; margin: 8px 0 2px; }
.gift-search .field { padding-right: 44px; }
.gift-search-clear {
  position: absolute; right: 7px; top: 50%;
  transform: translateY(-50%);
  border: none; background: var(--green-soft); color: var(--green);
  width: 30px; height: 30px; border-radius: 50%; font-size: 0.78rem; cursor: pointer;
  transition: background 0.2s;
}
.gift-search-clear:hover { background: var(--green-pale); }

/* Asymmetrical gift grid */
.gifts-list {
  list-style: none;
  padding: 4px 14px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gifts-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 36px 10px;
  line-height: 1.6;
}

/* Gift card — double-bezel outer shell */
.gift-card {
  background: rgba(24,19,14,.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--spring), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--sh-sm);
  position: relative;
}
.gift-card:active { transform: scale(0.975); }
.gift-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: rgba(20,92,56,.18);
}
.gift-card.is-on {
  border-color: var(--green);
  box-shadow: var(--sh-green);
}
.gift-card.is-on::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: var(--green);
  border-radius: 50%;
  color: #fff; font-size: 0.66rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

/* Gift card inner core */
.gift-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  background: var(--green-soft);
  border-radius: calc(var(--r-lg) - 4px) calc(var(--r-lg) - 4px) 0 0;
  outline: 1px solid rgba(24,19,14,0.06);
  outline-offset: -1px;
}

.gift-copy {
  background: var(--surface);
  border-radius: 0 0 calc(var(--r-lg) - 4px) calc(var(--r-lg) - 4px);
  padding: 10px 11px 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.gift-label {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.gift-name {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
  color: var(--ink);
}
.gift-price {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 5px;
}
.gift-price s { color: var(--light); margin-right: 5px; }
.gift-price strong { color: var(--green); font-weight: 700; }

/* ── VTEX searching text (outside grid) ── */
.gifts-searching-msg {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 32px 10px 0;
  width: 100%;
}

/* ── VTEX live card — arrive animation ── */
@keyframes card-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gift-card--arriving {
  animation: card-arrive 0.52s cubic-bezier(0.34,1.46,0.64,1) both;
}

/* ── Live badge on VTEX cards ── */
.gift-card[data-live='1'] {
  border-color: rgba(20,92,56,.14);
}
.gift-card[data-live='1'] .gift-label {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.gift-card[data-live='1'] .gift-label::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: live-dot 1.8s cubic-bezier(0.32,0.72,0,1) infinite;
}
@keyframes live-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.gift-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  align-items: center;
}
.gift-sizes-label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  width: 100%;
  margin-bottom: 2px;
}
.gift-size-chip {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.gift-size-chip.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ── 6. Tamanho ─────────────────────────────────────────────── */
.size-wrap {
  padding: 10px 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.size-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--r-xl);
  background: var(--green-soft);
  box-shadow: var(--sh-md);
}
.size-name { font-size: 1.3rem; }
.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 4px 0 8px;
}
.size-chip {
  min-width: 50px;
  padding: 13px 4px;
  text-align: center;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: var(--sh-sm);
}
.size-chip.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: var(--sh-green);
}

/* ── 7. Confirmação ─────────────────────────────────────────── */
.confirm-wrap {
  padding: 8px 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.confirm-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--r-xl);
  background: var(--green-soft);
  box-shadow: var(--sh-md);
}
.confirm-size { font-size: 0.8rem; color: var(--muted); }
.confirm-size strong { color: var(--ink); }

/* ── Confirm multi (2 presentes) — editorial Farm ───────────── */
.confirm-single[hidden],
.confirm-multi[hidden] { display: none !important; }
.confirm-multi {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 20px 0 8px;
}
.confirm-multi .eyebrow { margin-bottom: 4px; }
.confirm-multi .title-serif {
  font-size: clamp(2rem, 7vw, 2.4rem);
  text-align: center;
  margin: 0 0 8px;
}
.confirm-multi-list {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 360px;
  margin: 4px auto 0;
}
.confirm-multi-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  position: relative;
  transition: transform .25s var(--spring), box-shadow .2s var(--ease);
}
.confirm-multi-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(13,61,39,.2);
}
.confirm-multi-item img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--green-soft);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(13,61,39,.08);
}
.confirm-multi-info { flex: 1; min-width: 0; }
.confirm-multi-name {
  font-family: var(--font-serif);
  font-size: 0.95rem; font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.confirm-multi-size {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 3px;
}
.confirm-multi-size strong { color: var(--green); font-weight: 700; }
.confirm-multi-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(20,92,56,.5);
}
.confirm-multi-check svg { width: 13px; height: 13px; }

/* ── 8. Dados ───────────────────────────────────────────────── */
.data-wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.data-intro {
  width: 100%;
  max-width: 350px;
  margin: 4px auto 2px;
  text-align: center;
}
.data-intro .eyebrow { margin-bottom: 8px; }
.data-intro .title-serif { margin-bottom: 10px; }
.data-intro .text-body { max-width: 330px; margin: 0 auto; }

.cpf-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
  width: 100%;
}
.cpf-row #inp-cpf { flex: 1 1 auto; min-width: 0; width: 0; }
.cpf-row #btn-cpf-lookup { flex: 0 0 auto; min-width: 82px; }
.cpf-status { font-size: 0.74rem; color: var(--danger); }

/* CPF trust panel — anchored to bottom, fills the empty space with purpose */
.cpf-trust {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cpf-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 2px;
  border-top: 1px solid var(--line-soft);
}
.cpf-trust-item:first-child { border-top: none; }
.cpf-trust-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cpf-trust-icon svg { width: 17px; height: 17px; }
.cpf-trust-copy { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.cpf-trust-copy strong {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cpf-trust-copy span {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
}

.welcome-note {
  font-size: 0.83rem;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
  line-height: 1.5;
}

/* Cliente card — double-bezel */
.cliente-card {
  background: rgba(24,19,14,.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 3px;
}
.cliente-card-inner,
.cliente-card > *:first-child,
.cc-head {
  /* JS renders directly into .cliente-card, so style children */
}
.cc-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 0;
}
.cc-badge {
  align-self: flex-start;
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: var(--r-full);
  padding: 5px 10px;
  font-weight: 600;
}
.cc-head strong {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.25;
  padding: 0 16px;
  display: block;
}
.cc-desde {
  font-size: 0.66rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  padding: 0 16px;
  display: block;
  margin-bottom: 10px;
}
.cc-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 16px 14px;
}
.cc-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: baseline; }
.cc-row dt { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cc-row dd { margin: 0; font-size: 0.83rem; word-break: break-word; }
.cc-compra {
  margin: 0 14px 14px;
  background: var(--green-soft);
  border-radius: var(--r-md);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cc-compra-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cc-compra-title {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.cc-compra-head strong { font-family: var(--font-serif); font-size: 1.02rem; }
.cc-compra-info { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip {
  font-size: 0.62rem;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(20,92,56,.1);
  border-radius: var(--r-full);
  padding: 4px 9px;
  white-space: nowrap;
}
.cc-chip-ok { color: var(--green); border-color: rgba(20,92,56,.26); }
.cc-chip-code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: 0.02em; }
.cc-note {
  margin: 0 16px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.66rem;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

/* Forms */
.data-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.form-grid label:nth-child(1),
.form-grid label:nth-child(2),
.form-grid label:nth-child(3) { grid-column: 1 / -1; }

.address-head { text-align: center; margin-bottom: 2px; }
.address-head .eyebrow { margin-bottom: 8px; }
.address-head .title-serif { font-size: 1.4rem; margin-bottom: 8px; }
.address-head .text-body { max-width: 320px; margin: 0 auto; }
#address-form .form-grid label:nth-child(1),
#address-form .form-grid label:nth-child(2) { grid-column: auto; }
#address-form .form-grid label:nth-child(3) { grid-column: 1 / -1; }

/* ── 8b. Frete ──────────────────────────────────────────────── */
.frete-wrap {
  padding: 10px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
#btn-frete-continue { margin-top: auto; }
.frete-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--light);
  line-height: 1.5;
  margin-top: -4px;
}
.frete-opcoes { display: flex; flex-direction: column; gap: 10px; }
.frete-opcao {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.3s var(--ease);
  text-align: left;
  box-shadow: var(--sh-sm);
}
.frete-opcao:hover { border-color: rgba(20,92,56,.25); box-shadow: var(--sh-md); }
.frete-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.frete-copy strong { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.frete-copy small { font-size: 0.74rem; color: var(--muted); }
.frete-valor { font-family: var(--font-serif); font-size: 1.1rem; color: var(--green); }

/* ── 8c. Envio ──────────────────────────────────────────────── */
#screen-envio {
  justify-content: flex-start;
  min-height: 100dvh;
}
#screen-envio .data-intro { margin-top: clamp(4px, 4vh, 28px); }
#screen-envio #btn-envio-continue { margin-top: auto; }

.envio-opts { display: flex; flex-direction: column; gap: 10px; }

.envio-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: transform 0.35s var(--spring), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--sh-sm);
  inset: 0 1px 0 rgba(255,255,255,.9);
}
.envio-opt:hover {
  transform: translateY(-2px);
  border-color: rgba(20,92,56,.22);
  box-shadow: var(--sh-md);
}
.envio-opt.is-on {
  border-color: var(--green);
  box-shadow: var(--sh-green);
  background: linear-gradient(135deg, rgba(20,92,56,.03) 0%, var(--surface) 100%);
}
.envio-opt.is-on::after {
  content: '✓';
  position: absolute;
  top: -9px; right: -8px;
  width: 24px; height: 24px;
  background: var(--green);
  border-radius: 50%;
  color: #fff; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(20,92,56,.28);
}

.envio-badge {
  position: absolute;
  top: -9px; left: 16px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--r-full);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.envio-badge.rapido   { background: linear-gradient(135deg, #d4614a, #b84834); color: #fff; }
.envio-badge.economico { background: var(--green-deep); color: #fff; }

.envio-logo {
  flex-shrink: 0;
  width: 72px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(24,19,14,.05);
  transition: border-color 0.3s var(--ease);
}
.envio-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.envio-opt.is-on .envio-logo { border-color: var(--green); }

.envio-copy { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.envio-copy strong { font-size: 0.94rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.envio-copy span   { font-size: 0.76rem; color: var(--muted); }
.envio-copy .envio-diff {
  display: inline-block; align-self: flex-start;
  font-size: 0.64rem; font-weight: 600; color: var(--green);
  background: var(--green-soft); border-radius: 6px;
  padding: 2px 7px; margin-top: 4px;
}
.envio-opt.is-on .envio-diff { background: rgba(20,92,56,.15); }
.envio-copy .envio-diff-eco {
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line);
}
.envio-opt.is-on .envio-diff-eco {
  color: var(--green);
  background: var(--green-soft);
  border-color: transparent;
}
.envio-val {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green);
  white-space: nowrap;
  font-weight: 600;
}
.envio-opt.is-on .envio-val { color: var(--green-deep); }
.envio-status { font-size: 0.78rem; color: var(--danger); margin: 0; }

.envio-skel {
  height: 64px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--bg) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: btnShine 1.6s linear infinite;
}

/* Envio trust band — fills the space, reinforces confidence */
.envio-trust {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding: 18px 6px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.envio-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
  flex: 1;
  max-width: 92px;
}
.envio-trust-item svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }

/* Trust band */
/* ── 9. Pagamento ───────────────────────────────────────────── */
.payment-wrap {
  padding: 8px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Double-bezel fee box */
.fee-box {
  background: rgba(24,19,14,.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 3px;
  text-align: center;
}
.fee-box > * { padding: 16px; }
.fee-val {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--ink);
  margin: 6px 0 8px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.fee-box .text-body { max-width: 260px; margin: 0 auto; }

.pix-area { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pix-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
}
#pix-qr-wrap {
  width: 200px; height: 200px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
#pix-qr-img { width: 100%; height: 100%; object-fit: contain; }
.pix-copy-row { display: flex; gap: 8px; width: 100%; }
.pix-copy-row .field { font-size: 0.66rem; }
.pix-status { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--muted); }
.pix-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}
.pix-dot.ok  { background: var(--green); animation: none; }
.pix-dot.err { background: var(--danger); animation: none; }
.pix-dot.green { background: var(--green); }

.pix-status-faixa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 18px; margin: 10px 0 0; border-radius: 14px;
  background: rgba(238,244,239,.6); border: 1px solid rgba(20,92,56,.12);
  color: #145c38; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  text-align: center; line-height: 1.5; animation: statusGlowGreen 2.4s cubic-bezier(0.5,0.1,0.5,1) infinite;
}
@keyframes statusGlowGreen { 0%,100% { background: rgba(238,244,239,.6); } 50% { background: rgba(238,244,239,.9); } }
.pix-status-faixa::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #145c38; box-shadow: 0 0 0 3px rgba(20,92,56,.16);
  flex-shrink: 0; animation: pulse 1.8s cubic-bezier(0.5,0.1,0.5,1) infinite;
}
.pix-status-faixa.ok { background: linear-gradient(135deg, #145c38 0%, #0D3D27 100%); color: #fff; border-color: transparent; animation: none; box-shadow: 0 6px 20px rgba(20,92,56,.3); }
.pix-status-faixa.ok::before { background: rgba(255,255,255,.8); box-shadow: 0 0 0 3px rgba(255,255,255,.22); animation: none; }

.pix-instrucao { font-size: 0.7rem; color: var(--muted); text-align: center; letter-spacing: 0.03em; margin-top: -6px; }
.pix-timer-row { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 0.7rem; color: var(--light); margin-top: -6px; }
.pix-timer {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.pix-timer.urgente { color: var(--danger); }

.pay-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 0.88rem;
}
.pay-line strong { color: var(--ink); font-weight: 700; text-align: right; }
.pay-total { padding-top: 12px; font-size: 0.96rem; border-bottom: 0; }
.pay-total strong { color: var(--green); font-size: 1.1rem; }
.pay-receiver, .pay-instructions { margin: 6px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }

/* ── 10. Final (editorial) ──────────────────────────────────── */
.final-wrap {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-eyebrow { color: var(--green); margin-bottom: 18px; }
#screen-final .title-serif { font-size: clamp(2rem, 8.5vw, 2.6rem); line-height: 1.1; }
#screen-final .divider { margin: 22px auto 20px; }
#screen-final .text-body { max-width: 300px; }
.final-protocol-line {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.final-protocol-line strong {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  font-size: 0.86rem;
}

/* ── Toast ──────────────────────────────────────────────────── */
#toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 80px);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  padding: 12px 20px;
  border-radius: var(--r-full);
  opacity: 0;
  transition: all 0.4s var(--ease);
  z-index: 9500;
  max-width: 88vw;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(24,19,14,.22);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Desktop block ──────────────────────────────────────────── */
#desktop-block {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}
.db-logo {
  font-family: var(--font-serif);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin-bottom: 36px;
}
.db-msg {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1.3;
  max-width: 500px;
  margin-bottom: 16px;
}
.db-sub { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }

/* ── Upsell (Farm Rio editorial palette) ────────────────────── */
.upsell-timer-banner {
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: 0.02em;
}
.upsell-timer-banner strong {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.upsell-alert-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 4px 0;
}
.upsell-alert-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 8px;
  color: var(--gold);
}
.upsell-alert-text { font-size: 0.84rem; color: var(--ink); line-height: 1.6; }
.upsell-product-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
}
.upsell-product-row img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--green-soft); }
.upsell-product-name { font-family: var(--font-serif); font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.upsell-status-row { display: flex; gap: 12px; margin-top: 6px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.upsell-confirmed { color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.upsell-confirmed::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.upsell-pending   { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.upsell-pending::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.upsell-benefits {
  background: var(--green-pale);
  border: 1px solid rgba(20,92,56,.1);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.upsell-benefits-title {
  font-size: 0.64rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}
.upsell-benefit-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.upsell-benefit-row:last-child { margin-bottom: 0; }
.upsell-benefit-check {
  width: auto; height: auto;
  background: none;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}
.upsell-benefit-text { font-size: 0.82rem; color: var(--ink); line-height: 1.4; }
.upsell-fee-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 18px 20px;
  text-align: center;
  position: relative;
  box-shadow: var(--sh-sm);
}
.upsell-fee-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.upsell-fee-val {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--ink);
  margin: 0 0 6px;
  display: block;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.upsell-fee-note { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.upsell-pix-area { margin-top: 16px; }
.upsell-pix-qr-wrap { min-height: 150px; display: flex; align-items: center; justify-content: center; }


/* ── Regras compartilhadas preservadas do bloco PIX ──────────── */
.pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.pix-dot    { width: 7px; height: 7px; border-radius: 50%; background: var(--farm-coral, #D4603A); animation: pulse 2s cubic-bezier(0.5,0.1,0.5,1) infinite; }
.pix-spin   { width: 42px; height: 42px; border: 2.5px solid #e0dbd4; border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; display: block; margin: 10px auto; }

/* ══════════════════════════════════════════════════════════════
   #screen-payment como MODAL flutuante — tropical FARM Rio
   Folhas Monstera nas quinas, Fraunces, verde+coral+gold
   ══════════════════════════════════════════════════════════════ */
body.modal-locked { overflow: hidden; }

#screen-payment.is-modal {
  position: fixed; inset: 0;
  z-index: 9200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background:
    radial-gradient(ellipse 75% 55% at 35% 20%, rgba(20,92,56,.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 85%, rgba(212,96,58,.14) 0%, transparent 55%),
    rgba(13,61,39,.68);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0; pointer-events: none;
  transition: opacity .32s cubic-bezier(0.32,0.72,0,1);
  overflow-y: auto;
}
#screen-payment.is-modal.is-open { opacity: 1; pointer-events: auto; }

#screen-payment.is-modal .top-bar { display: none; }

#screen-payment.is-modal .payment-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: auto;
  background: #faf7f3;
  border-radius: 26px;
  padding: 22px 22px 20px;
  box-shadow:
    0 32px 72px -12px rgba(13,61,39,.3),
    0 12px 28px -8px rgba(13,61,39,.15);
  animation: paymentModalSlide .5s cubic-bezier(0.16,1,0.3,1);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
@keyframes paymentModalSlide {
  from { opacity: 0; transform: translateY(26px) scale(0.965); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* FOLHAS TROPICAIS — Monstera top-left, Filodendro bottom-right.
   SVGs vetoriais, cortadas pela borda, opacidade sutil. */
#screen-payment.is-modal .payment-wrap::before,
#screen-payment.is-modal .payment-wrap::after {
  content: '';
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}
#screen-payment.is-modal .payment-wrap::before {
  top: -22px; left: -24px;
  width: 128px; height: 128px;
  transform: rotate(-18deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='%230D3D27' fill-opacity='.14'%3E%3Cpath d='M60 8c-4 0-9 2-14 6-10 8-18 20-22 34-3 10-3 20 0 29 2 6 6 11 11 14 4 3 10 4 15 4 7 0 14-3 20-9 10-9 17-22 20-36 2-9 2-18-1-26-2-6-6-11-11-13-5-2-11-3-18-3zM52 24c3-2 7-3 10-3 4 0 7 1 9 4 2 3 2 7 1 11-2 8-7 16-14 22-3 2-7 4-10 4-3 0-5-1-7-3-2-3-2-7-1-12 2-10 7-18 12-23zM38 54c2-1 4-1 6 0 2 2 2 5 1 8-3 6-7 11-12 13-2 1-4 1-5 0-2-1-2-3-1-6 2-6 7-12 11-15z'/%3E%3Cpath d='M58 16c-1-1-3-1-5-1-3 0-5 1-7 3-1 2-1 4 0 5 1 1 3 1 5 0 3-1 5-3 7-5 1-1 1-1 0-2z' fill='%230D3D27' fill-opacity='.22'/%3E%3C/g%3E%3C/svg%3E");
}
#screen-payment.is-modal .payment-wrap::after {
  bottom: -20px; right: -22px;
  width: 108px; height: 108px;
  transform: rotate(145deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='%23D4603A' fill-opacity='.11'%3E%3Cpath d='M60 10c-3 0-7 1-10 3-10 6-18 16-23 29-3 8-4 17-2 24 2 5 5 9 10 11 4 2 9 2 14 1 7-2 14-7 20-14 9-10 14-23 14-35 0-7-2-13-6-16-5-3-10-4-17-3zM52 22c2-1 5-2 8-2 3 0 5 1 7 3 1 2 2 5 1 8-2 8-8 15-15 20-3 2-6 3-9 3-3 0-5-1-6-3-2-2-1-6 0-10 3-8 8-15 14-19zM40 46c2-1 4-1 5 0 2 1 2 3 1 5-2 5-6 9-10 11-2 1-3 0-4-1-1-2-1-4 0-6 2-4 6-8 8-9z'/%3E%3C/g%3E%3Cg fill='%230D3D27' fill-opacity='.1'%3E%3Cpath d='M32 70c-1 0-2 1-3 2-3 4-5 10-6 15 0 2 1 3 2 3 2 0 4-2 6-5 2-4 3-9 3-13 0-1 0-2-2-2z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Botão fechar — discreto, não compete */
.payment-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: rgba(24,19,14,.04);
  color: rgba(24,19,14,.45);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease);
  z-index: 10;
}
.payment-modal-close:hover { background: rgba(24,19,14,.08); color: var(--ink); }

/* HEADER — FARM RIO | Pix, separador vertical coral discreto */
#screen-payment.is-modal .payment-wrap > .eyebrow,
#screen-payment.is-modal .payment-wrap > .title-serif {
  display: none !important; /* oculta eyebrow "frete & embalagem" + H2 default; header próprio injetado via JS */
}
.pix-formal-header {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
  padding-top: 2px;
}
.pix-formal-brand {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.pix-formal-sep {
  width: 1px; height: 20px;
  background: linear-gradient(180deg, transparent, var(--coral), transparent);
  opacity: .5;
}
.pix-formal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: var(--green-deep);
  letter-spacing: -.01em;
  line-height: 1;
}

/* CARD VERDE — método + valor, substitui .fee-box no modal */
#screen-payment.is-modal .fee-box {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, #0D3D27 0%, #145c38 55%, #0D3D27 100%);
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 28px -10px rgba(13,61,39,.5);
  text-align: left;
}
#screen-payment.is-modal .fee-box::before { display: none; }
#screen-payment.is-modal .fee-box .eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(238,244,239,.65);
  font-weight: 600;
  margin: 0 0 6px;
}
#screen-payment.is-modal .fee-box .fee-val {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
#screen-payment.is-modal .fee-box .text-body {
  display: none; /* copy longa fica fora, no modal preferimos conciso */
}
/* wrap do método (à esquerda do valor) — injetado via JS */
.pix-method-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pix-value-wrap { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pix-value-wrap .eyebrow {
  display: block !important;
  font-family: var(--font-sans);
  font-size: 0.56rem !important;
  letter-spacing: .22em !important;
  text-transform: uppercase;
  color: rgba(238,244,239,.6) !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
.pix-method-row {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}
.pix-method-row svg { width: 16px; height: 16px; color: var(--coral); flex-shrink: 0; }
.pix-method-prazo {
  display: block;
  font-size: 0.6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(238,244,239,.55);
  font-weight: 500;
  margin-top: 6px;
}

/* ÁREA PIX — QR + código + status */
#screen-payment.is-modal .pix-area {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
}
#screen-payment.is-modal .pix-label {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0;
}
#screen-payment.is-modal #pix-qr-wrap {
  background: #fff;
  padding: 10px;
  border-radius: 16px;
  box-shadow:
    0 2px 6px rgba(13,61,39,.04),
    0 10px 24px -8px rgba(13,61,39,.12);
}
#screen-payment.is-modal #pix-qr-img {
  display: block;
  width: 136px; height: 136px;
  border-radius: 8px;
}
#screen-payment.is-modal #pix-qr-img[hidden] { display: none; }

/* Timer pill sutil */
.pix-timer-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(13,61,39,.08);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1;
}
.pix-timer-pill .pix-dot {
  width: 6px; height: 6px;
  background: var(--coral);
}
.pix-timer-pill strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* Divider editorial com label */
.pix-formal-divider {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  margin: 2px 0;
}
.pix-formal-divider::before,
.pix-formal-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13,61,39,.15), transparent);
}
.pix-formal-divider span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Trust row — 3 micros no fim do modal (editorial Farm, compacto) */
#screen-payment.is-modal .pay-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(13,61,39,.08);
  position: relative; z-index: 1;
}
#screen-payment.is-modal .pay-trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--green);
}
#screen-payment.is-modal .pay-trust-item svg {
  width: 15px; height: 15px; opacity: .85;
}
#screen-payment.is-modal .pay-trust-item span {
  font-family: var(--font-sans);
  font-size: 0.54rem;
  text-align: center;
  line-height: 1.15;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Campo PIX + botão copiar */
#screen-payment.is-modal .pix-copy-row {
  width: 100%;
  display: flex; gap: 8px;
}
#screen-payment.is-modal .pix-copy-row input,
#screen-payment.is-modal .pix-copy-row .field {
  flex: 1;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 0.72rem;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(13,61,39,.1);
  border-radius: 12px;
  color: var(--ink);
  outline: none;
  text-overflow: ellipsis;
  letter-spacing: .01em;
  transition: border-color .2s var(--ease);
}
#screen-payment.is-modal .pix-copy-row input:focus,
#screen-payment.is-modal .pix-copy-row .field:focus { border-color: var(--green); }
#screen-payment.is-modal .pix-copy-row button,
#screen-payment.is-modal .pix-copy-row .btn-small {
  background: var(--coral);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(212,96,58,.45);
  transition: transform .18s cubic-bezier(.34,1.46,.64,1), box-shadow .2s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
#screen-payment.is-modal .pix-copy-row button:hover,
#screen-payment.is-modal .pix-copy-row .btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(212,96,58,.55);
}
#screen-payment.is-modal .pix-copy-row button:active { transform: scale(.98); }

/* Status */
#screen-payment.is-modal .pix-status {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0;
  gap: 8px;
  margin-top: 4px;
}
#screen-payment.is-modal .pix-status.ok { color: var(--green); font-weight: 600; }

/* Botão "já fiz o pagamento" — versão discreta no modal */
#screen-payment.is-modal #btn-payment-check {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 4px 8px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: lowercase;
  cursor: pointer;
  margin: 4px auto 0;
  display: inline-block;
  width: auto;
  text-decoration: underline;
  text-decoration-color: rgba(13,61,39,.2);
  text-underline-offset: 3px;
  transition: all .2s var(--ease);
  box-shadow: none;
}
#screen-payment.is-modal #btn-payment-check:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ══════════════════════════════════════════════════════════════
   RESERVING OVERLAY — simples e formal, mesmo mood tropical
   ══════════════════════════════════════════════════════════════ */
#reserving-overlay {
  position: fixed; inset: 0;
  z-index: 9300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(20,92,56,.22) 0%, transparent 60%),
    rgba(13,61,39,.76);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: #faf7f3;
  animation: reservingFade .4s cubic-bezier(0.32,0.72,0,1);
}
#reserving-overlay[hidden] { display: none; }
@keyframes reservingFade { from { opacity: 0; } to { opacity: 1; } }

.reserving-spin {
  width: 44px; height: 44px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--coral);
  border-right-color: var(--coral);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.reserving-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
  color: #faf7f3;
}
.reserving-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(250,247,243,.6);
  font-weight: 500;
}

/* ── Animations (compartilhadas) ──────────────────────────────── */
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes pulse      { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.9); } }
@keyframes faixaPulse { 0%,100% { opacity: 1; } 50% { opacity: .72; } }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes pulse      { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.9); } }
@keyframes faixaPulse { 0%,100% { opacity: 1; } 50% { opacity: .72; } }


/* ===== REFINAMENTOS FARM RIO ===== */

/* 1. Intro - texto mais visível */
.intro-subtitle,
.experience-label {
  color: #5a7a5a !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}

/* 2. Quiz cards - vida e personalidade */
.quiz-option,
.quiz-op {
  border: 1.5px solid #e8e0d8 !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 8px rgba(90, 122, 90, 0.06) !important;
}

.quiz-option:hover,
.quiz-op:hover {
  border-color: #5a7a5a !important;
  box-shadow: 0 4px 16px rgba(90, 122, 90, 0.15) !important;
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, #fff 0%, #f8f6f2 100%) !important;
}

.quiz-option.selected,
.quiz-op.selected {
  border-color: #5a7a5a !important;
  background: linear-gradient(135deg, #f0f5f0 0%, #e8f0e8 100%) !important;
  box-shadow: 0 4px 16px rgba(90, 122, 90, 0.2) !important;
}

/* 3. Progress bar em verde */
.progress-text,
.quiz-progress span,
[class*="progress"] span {
  color: #5a7a5a !important;
  font-weight: 600 !important;
}

.progress-bar,
.quiz-progress-bar {
  background: linear-gradient(90deg, #5a7a5a 0%, #7a9a7a 100%) !important;
}

/* 4. Ícones nos estilos via CSS */
.quiz-option[data-style*="Natural"]::before,
.quiz-op:first-child::before { content: "🌿 "; }

.quiz-option[data-style*="Tropical"]::before,
.quiz-op:nth-child(2)::before { content: "🌺 "; }

.quiz-option[data-style*="Boho"]::before,
.quiz-op:nth-child(3)::before { content: "🦋 "; }

.quiz-option[data-style*="Contempor"]::before,
.quiz-op:nth-child(4)::before { content: "✨ "; }

/* 5. Filtros - indicação de scroll */
.filters-container,
.category-filters {
  position: relative !important;
}

.filters-container::after,
.category-filters::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 40px !important;
  background: linear-gradient(90deg, transparent, #f5f0eb) !important;
  pointer-events: none !important;
}

.filter-btn,
.category-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* 6. Product cards - hover effect */
.product-card,
.gift-card {
  transition: all 0.3s ease !important;
  border-radius: 12px !important;
}

.product-card:hover,
.gift-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(90, 122, 90, 0.18) !important;
}

.product-card img,
.gift-card img {
  transition: transform 0.4s ease !important;
}

.product-card:hover img,
.gift-card:hover img {
  transform: scale(1.05) !important;
}

/* 7. Badge menos repetitivo */
.product-badge,
.gift-badge,
.card-badge {
  font-size: 9px !important;
  opacity: 0.7 !important;
  letter-spacing: 0.8px !important;
}

/* Bonus: botões mais suaves */
.btn-primary,
.cta-button,
[class*="continuar"],
[class*="confirmar"] {
  transition: all 0.25s ease !important;
}

.btn-primary:hover,
.cta-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(90, 122, 90, 0.3) !important;
}

/* Bonus: inputs mais elegantes */
input[type="text"],
input[type="tel"] {
  transition: all 0.2s ease !important;
}

input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: #5a7a5a !important;
  box-shadow: 0 0 0 3px rgba(90, 122, 90, 0.1) !important;
}

/* ===== FIM REFINAMENTOS ===== */


/* ===== REMOVE ÍCONES BUGADOS ===== */
.quiz-option::before,
.quiz-op::before,
.quiz-op:first-child::before,
.quiz-op:nth-child(2)::before,
.quiz-op:nth-child(3)::before,
.quiz-op:nth-child(4)::before {
  content: none !important;
  display: none !important;
}
/* ===== FIM REMOVE ===== */


/* ══════════════════════════════════════════════════════════════
   CARRINHO — sistema multi-presente Farm Rio
   Paleta: --green, --coral, --gold
   ══════════════════════════════════════════════════════════════ */

/* Badge no top-bar */
.cart-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--green);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(20,92,56,.25);
  transition: transform 0.3s var(--spring), box-shadow 0.25s var(--ease);
}
.cart-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 18px rgba(20,92,56,.35);
}
.cart-badge:active { transform: scale(0.95); }
.cart-badge svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(212,96,58,.4);
}

/* Overlay backdrop */
#cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(13,61,39,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cartFadeIn 0.3s var(--ease);
}
@keyframes cartFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal card */
.cart-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 32px 24px 28px;
  box-shadow: 0 20px 60px rgba(13,61,39,.3), 0 8px 24px rgba(0,0,0,.15);
  text-align: center;
  animation: cartSlideUp 0.4s var(--spring);
}
@keyframes cartSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.cart-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.cart-close:hover {
  background: var(--green-soft);
  color: var(--green);
}

/* Confirm checkmark animation */
.cart-confirm {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(145deg, var(--green) 0%, #0D3D27 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(20,92,56,.35);
  animation: cartPop 0.5s var(--spring);
}
@keyframes cartPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.cart-confirm svg {
  width: 32px;
  height: 32px;
  color: #fff;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: cartCheck 0.6s 0.2s var(--ease) forwards;
}
@keyframes cartCheck {
  to { stroke-dashoffset: 0; }
}

/* Title & progress */
.cart-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
.cart-progress {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Cart items list */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
}
.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--green-soft);
  box-shadow: 0 2px 8px rgba(13,61,39,.1);
}
.cart-item-price {
  margin-top: 5px;
  display: inline-flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cart-item-price s {
  color: var(--muted);
  text-decoration-thickness: 1px;
  font-size: 0.74rem;
}
.cart-item-price em {
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--coral);
  padding: 2px 8px 3px;
  border-radius: var(--r-full);
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-size {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.cart-item-remove {
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.cart-item-remove:hover {
  background: rgba(212,96,58,.1);
  border-color: var(--coral);
  color: var(--coral);
}

/* Finish button */
.cart-finish {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(145deg, var(--green) 0%, #0D3D27 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20,92,56,.35);
  transition: transform 0.3s var(--spring), box-shadow 0.25s var(--ease);
}
.cart-finish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(20,92,56,.45);
}
.cart-finish:active { transform: scale(0.97); }
.cart-finish-icon svg {
  width: 14px;
  height: 14px;
}

/* Add more link */
.cart-add-link {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--coral);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.cart-add-link:hover {
  color: var(--green);
}

/* Meta text */
.cart-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Timer de reserva — editorial, vira coral quando urgente */
.cart-timer {
  display: inline-flex; align-items: center; gap: 8px;
  margin: -6px auto 18px;
  padding: 7px 14px 7px 12px;
  background: var(--green-soft);
  border: 1px solid rgba(20,92,56,.14);
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.cart-timer svg { width: 14px; height: 14px; color: var(--green); }
.cart-timer strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-left: 2px;
}
.cart-timer[data-urgent="true"] {
  background: rgba(212,96,58,.1);
  border-color: rgba(212,96,58,.28);
  color: var(--coral);
  animation: cartTimerPulseFarm 1.1s ease-in-out infinite;
}
.cart-timer[data-urgent="true"] svg,
.cart-timer[data-urgent="true"] strong { color: var(--coral); }
@keyframes cartTimerPulseFarm {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

/* Economia destacada — dourado FARM Rio */
.cart-savings {
  display: flex; align-items: baseline; justify-content: center;
  gap: 10px;
  margin: 2px 2px 16px;
  padding: 11px 16px 13px;
  background: linear-gradient(180deg, rgba(194,138,50,.14), rgba(194,138,50,.04));
  border-radius: var(--r-md);
  border: 1px dashed rgba(194,138,50,.4);
}
.cart-savings[hidden] { display: none !important; }
.cart-savings-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.cart-savings-val {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green-deep);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* CTA pulse quando carrinho cheio */
.cart-modal:has(.cart-progress:last-letter) .cart-finish { animation: none; }
.cart-finish[data-full="true"],
.cart-modal:has(#cart-finish-label:not(:empty)) .cart-finish[data-full="true"] {
  animation: cartCTAPulseFarm 2.6s ease-in-out infinite;
}
@keyframes cartCTAPulseFarm {
  0%, 100% { box-shadow: 0 4px 16px rgba(20,92,56,.35); }
  50% { box-shadow: 0 8px 28px rgba(20,92,56,.5), 0 0 0 4px rgba(212,96,58,.18); }
}

/* Trust row — editorial, serifa pequena no label */
.cart-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cart-trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--green);
}
.cart-trust-item svg { width: 20px; height: 20px; opacity: .9; }
.cart-trust-item span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  text-align: center;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   FIM CARRINHO
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   PAGINAÇÃO
   ══════════════════════════════════════════════════════════════ */
.gifts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 32px 0 40px;
}
.pag-btn {
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.pag-btn:hover:not(.is-disabled) {
  background: var(--green-soft);
  color: var(--green);
}
.pag-btn.is-active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20, 92, 56, 0.25);
}
.pag-btn.pag-arrow {
  font-size: 1.2rem;
  color: var(--green);
}
.pag-btn.pag-arrow:hover:not(.is-disabled) {
  background: var(--green);
  color: #fff;
}
.pag-btn.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pag-dots {
  color: var(--light);
  font-size: 0.9rem;
  padding: 0 4px;
  user-select: none;
}
