/* ==========================================================
   Convite de casamento — branco, dourado e verde musgo
   ========================================================== */
:root {
  --ivory: #FBF8F1;
  --paper: #FFFDF8;
  --cream: #F4EEE1;
  --gold: #B08D4C;
  --gold-light: #D9C08A;
  --gold-deep: #8A6A2E;
  --gold-soft: #EADFC6;
  --moss: #3F4D2C;
  --moss-2: #56663D;
  --moss-deep: #2B3620;
  --sage: #9AA67F;
  --ink: #2A2E22;
  --muted: #6D6C5E;
  --line: rgba(176, 141, 76, .38);
  --gold-grad: linear-gradient(110deg, #8A6A2E 0%, #B8924A 20%, #E2C47F 38%, #A98238 55%, #7E6128 72%, #C9A75E 88%, #8A6A2E 100%);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Great Vibes', cursive;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 24px 60px -28px rgba(43, 54, 32, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(217, 192, 138, .14), transparent 40%),
    radial-gradient(circle at 88% 30%, rgba(154, 166, 127, .12), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .4 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-size: 19px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografia ---------- */
.gold-text {
  background: var(--gold-grad);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 250% center; } }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: .68rem;
  font-weight: 500;
  color: var(--gold-deep);
}
.script { font-family: var(--script); font-weight: 400; }
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: .01em;
  margin: .35em 0 .3em;
}
.section-title em { font-family: var(--script); font-style: normal; font-size: 1.15em; padding: 0 .2em .12em .25em; margin: 0 -.12em 0 -.18em; display: inline-block; line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); font-style: italic; font-weight: 300; }

/* ---------- Ornamentos ---------- */
.ornament { width: min(240px, 60vw); height: auto; color: var(--gold); display: block; margin: 0 auto; overflow: visible; }
.ornament path { fill: none; stroke: currentColor; stroke-width: .7; stroke-linecap: round; }
.ornament .rib { stroke-width: .45; opacity: .8; }
.ornament .dot { fill: currentColor; stroke: none; }
.ornament .ring { fill: none; stroke: currentColor; stroke-width: .5; }
.ornament.light { color: var(--gold-light); }

.divider { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--gold); }
.divider::before, .divider::after { content: ''; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--line)); }
.divider::after { transform: scaleX(-1); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: var(--ivory); transition: opacity .6s ease, visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--gold-soft); border-top-color: var(--gold);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   Abertura com envelope
   ========================================================== */
.intro {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 50% 35%, #FFFDF8 0%, #F5EFE2 62%, #E8DFCB 100%);
  transition: opacity 1.1s ease, visibility 1.1s, transform 1.1s var(--ease);
  overflow: hidden;
}
.intro.gone { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }
.intro-inner { text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 560px; }
.intro .eyebrow { margin-bottom: 10px; }
.intro-name {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.15; color: var(--moss);
  min-height: 1.15em; padding: 0 8px;
}
.intro-sub { font-style: italic; color: var(--muted); font-size: 1.05rem; margin-top: 2px; }

.envelope {
  position: relative;
  width: min(86vw, 440px);
  aspect-ratio: 1.48;
  margin: 46px auto 26px;
  perspective: 1600px;
  filter: drop-shadow(0 30px 34px rgba(43, 54, 32, .32));
  transition: transform 1s var(--ease);
}
.env-back {
  position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(165deg, #4B5B35 0%, #34412A 100%);
}
.env-back::after {
  content: ''; position: absolute; inset: 7px; border-radius: 3px;
  background: repeating-linear-gradient(45deg, rgba(217,192,138,.10) 0 2px, transparent 2px 9px);
}
.letter {
  position: absolute; left: 5%; right: 5%; top: 5%; height: 90%;
  background: var(--paper); border-radius: 3px; z-index: 2;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: transform 1.25s var(--ease) .6s;
  display: grid; place-items: center; text-align: center;
}
.letter-inner {
  position: absolute; inset: 9px; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.letter-inner::before { content: ''; position: absolute; inset: 4px; border: .5px solid var(--line); }
.letter .mono { font-family: var(--script); font-size: clamp(2.1rem, 9vw, 3.1rem); line-height: 1.1; }
.letter .letter-date { font-family: var(--sans); letter-spacing: .35em; font-size: .62rem; color: var(--gold-deep); }

.env-pocket {
  position: absolute; inset: 0; z-index: 3; border-radius: 0 0 6px 6px;
  background: linear-gradient(170deg, #55663E 0%, #3E4B2D 100%);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env-lines { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.env-lines path { fill: none; stroke: var(--gold-light); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .75; }

.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 4;
  transform-origin: 50% 0;
  transition: transform .9s cubic-bezier(.55, 0, .3, 1), z-index 0s linear .45s;
}
.env-flap::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #607248 0%, #46552F 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.env-flap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.env-flap svg path { fill: none; stroke: var(--gold-light); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .8; }

.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .letter { transform: translateY(-58%); }
.envelope.open { transform: translateY(18%); }

.seal {
  position: absolute; left: 50%; top: 60%; z-index: 5;
  width: clamp(70px, 19vw, 92px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #F6E4AE 0%, #D1AC62 30%, #A9843F 62%, #7C5D24 100%);
  box-shadow:
    0 0 0 4px rgba(169, 132, 63, .35),
    0 8px 16px rgba(0, 0, 0, .35),
    inset 0 -5px 10px rgba(0, 0, 0, .25),
    inset 0 4px 8px rgba(255, 255, 255, .45);
  display: grid; place-items: center;
  transition: transform .6s var(--ease), opacity .5s ease;
}
.seal::before {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px solid rgba(92, 67, 24, .45);
  box-shadow: inset 0 0 0 3px rgba(255, 240, 200, .18);
}
.seal::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(201, 163, 90, .6);
  animation: ripple 2.4s ease-out infinite;
}
.seal span {
  position: relative; font-family: var(--script); color: #5A4217;
  font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1; padding-top: 4px;
  text-shadow: 0 1px 0 rgba(255, 245, 210, .5);
}
.seal:hover { transform: translate(-50%, -50%) scale(1.06); }
.seal:focus-visible { outline: 2px solid var(--moss); outline-offset: 6px; }
@keyframes ripple { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.envelope.open .seal { opacity: 0; transform: translate(-50%, -50%) scale(1.6) rotate(-20deg); pointer-events: none; }

.intro-hint {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .3em; font-size: .65rem;
  color: var(--gold-deep); display: flex; align-items: center; gap: 10px;
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .45; } }
.intro .eyebrow, .intro-name { transition: opacity .6s ease, transform .6s ease; }
.intro.opening .intro-hint, .intro.opening .intro-sub { opacity: 0; transition: opacity .4s; animation: none; }
.intro.opening .eyebrow, .intro.opening .intro-name { opacity: 0; transform: translateY(-14px); }

/* ==========================================================
   Layout geral
   ========================================================== */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; text-align: center; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* ---------- Mensagem ---------- */
.welcome .greeting { font-family: var(--script); font-size: clamp(2.4rem, 8vw, 3.4rem); color: var(--moss); line-height: 1.2; }
.welcome p.text { font-size: clamp(1.18rem, 3vw, 1.45rem); font-weight: 300; max-width: 620px; margin: 18px auto 0; }
.quote { margin-top: 40px; font-style: italic; font-size: 1.2rem; color: var(--gold-deep); }

/* ---------- Detalhes ---------- */
.details { background: linear-gradient(180deg, transparent, rgba(234, 223, 198, .35) 30%, rgba(234, 223, 198, .35) 70%, transparent); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; margin-top: 46px; text-align: center; }
.card {
  position: relative; background: var(--paper); padding: 44px 28px 34px;
  box-shadow: var(--shadow); border-radius: 2px;
}
.card::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.card .card-ico {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  color: var(--paper); background: var(--moss); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold);
}
.card .card-ico .ico { width: 24px; height: 24px; }
.card h3 { font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.card .when { font-family: var(--sans); letter-spacing: .25em; text-transform: uppercase; font-size: .72rem; color: var(--gold-deep); margin: 10px 0 12px; }
.card .place { font-size: 1.25rem; font-weight: 500; }
.card .addr { color: var(--muted); font-size: 1.02rem; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500;
  padding: 15px 26px; border-radius: 999px; text-decoration: none; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold-grad); background-size: 220% auto; color: #2E2410; box-shadow: 0 10px 24px -12px rgba(138, 106, 46, .9); animation: shine 8s linear infinite; }
.btn-gold:hover { box-shadow: 0 14px 30px -12px rgba(138, 106, 46, 1); transform: translateY(-2px); }
.btn-moss { background: var(--moss); color: var(--paper); }
.btn-moss:hover { background: var(--moss-deep); transform: translateY(-2px); }
.btn-line { border: 1px solid var(--gold); color: var(--gold-deep); background: transparent; }
.btn-line:hover { background: var(--gold); color: var(--paper); }
.btn-ghost-light { border: 1px solid rgba(217, 192, 138, .6); color: var(--gold-light); }
.btn-ghost-light:hover { background: rgba(217, 192, 138, .12); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-sm { padding: 10px 18px; font-size: .64rem; }
.card .btn { margin-top: 22px; }

.extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin-top: 46px; color: var(--moss); }
.extras .pill { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; text-decoration: none; }
.extras a.pill { border-bottom: 1px solid var(--line); }
.extras a.pill:hover { border-color: var(--gold); }
.extras .pill .ico { color: var(--gold); }

/* ==========================================================
   RSVP (fundo verde musgo)
   ========================================================== */
.rsvp {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(217, 192, 138, .14), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(154, 166, 127, .2), transparent 55%),
    linear-gradient(180deg, #3F4D2C, #2B3620);
  color: var(--paper);
  overflow: hidden;
}
.rsvp::before {
  content: ''; position: absolute; inset: 18px; border: 1px solid rgba(217, 192, 138, .3); pointer-events: none;
}
.rsvp .eyebrow { color: var(--gold-light); }
.rsvp .section-title { color: var(--paper); }
.rsvp .lead { color: rgba(255, 253, 248, .75); }
.deadline { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-top: 10px; }

.rsvp-box { margin-top: 40px; text-align: left; }
.guest-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 18px 0; border-bottom: 1px solid rgba(217, 192, 138, .22);
}
.guest-row:first-child { border-top: 1px solid rgba(217, 192, 138, .22); }
.guest-name { font-size: 1.35rem; font-weight: 400; display: flex; align-items: center; gap: 12px; }
.guest-name .initial {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid rgba(217, 192, 138, .6); font-family: var(--script); font-size: 1.25rem; color: var(--gold-light);
}
.choice { display: inline-flex; border: 1px solid rgba(217, 192, 138, .5); border-radius: 999px; padding: 3px; }
.choice button {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; color: rgba(255, 253, 248, .8); transition: all .3s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.choice button .ico { width: 14px; height: 14px; }
.choice button.on.yes { background: var(--gold-grad); background-size: 200% auto; color: #2E2410; }
.choice button.on.no { background: rgba(255, 253, 248, .14); color: var(--paper); }

.field { display: block; margin-top: 26px; }
.field > span {
  display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%; background: rgba(255, 253, 248, .06); border: 1px solid rgba(217, 192, 138, .35);
  border-radius: 4px; padding: 14px 16px; color: var(--paper); font-size: 1.1rem; outline: none;
  transition: border-color .3s, background .3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 253, 248, .4); font-style: italic; }
.field input:focus, .field textarea:focus { border-color: var(--gold-light); background: rgba(255, 253, 248, .1); }

.rsvp-actions { margin-top: 32px; display: flex; justify-content: center; }

.rsvp-done { text-align: center; margin-top: 30px; }
.rsvp-done .big-heart {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  border: 1px solid rgba(217, 192, 138, .6); color: var(--gold-light);
  animation: pop .8s var(--ease) both;
}
.rsvp-done .big-heart .ico { width: 36px; height: 36px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.rsvp-done h3 { font-family: var(--script); font-weight: 400; font-size: clamp(2.4rem, 8vw, 3.4rem); color: var(--gold-light); line-height: 1.2; }
.rsvp-done p { color: rgba(255, 253, 248, .85); font-size: 1.2rem; max-width: 540px; margin: 10px auto 0; }
.summary { list-style: none; margin: 26px auto 0; max-width: 420px; text-align: left; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(217, 192, 138, .25); }
.summary li span:last-child { font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); align-self: center; }
.summary li.no span:last-child { color: rgba(255, 253, 248, .55); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.code-form { display: flex; gap: 10px; max-width: 460px; margin: 30px auto 0; flex-wrap: wrap; justify-content: center; }
.code-form input {
  flex: 1 1 220px; background: rgba(255, 253, 248, .06); border: 1px solid rgba(217, 192, 138, .4);
  border-radius: 999px; padding: 14px 20px; color: var(--paper); outline: none;
}
.notice { color: rgba(255, 253, 248, .85); font-size: 1.15rem; max-width: 560px; margin: 26px auto 0; }

/* ==========================================================
   Lista de presentes
   ========================================================== */
.gifts .lead { max-width: 640px; margin: 10px auto 0; }
.pay-badges { display: flex; justify-content: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.pay-badges span {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--moss); padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.pay-badges .ico { color: var(--gold); }

.gift-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px;
  margin-top: 50px; text-align: left;
}
.gift {
  background: var(--paper); display: flex; flex-direction: column; position: relative;
  box-shadow: 0 18px 40px -26px rgba(43, 54, 32, .5); border-radius: 3px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.gift:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -26px rgba(43, 54, 32, .6); }
.gift-media {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #4E5E38, #2F3B22);
  display: grid; place-items: center; color: var(--gold-light);
}
.gift-media::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(217, 192, 138, .45); pointer-events: none; }
.gift-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gift:hover .gift-media img { transform: scale(1.06); }
.gift-media .ico { width: 54px; height: 54px; stroke-width: 1.1; }
.gift-body { padding: 20px 22px 6px; flex: 1; }
.gift-body h3 { font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.gift-body p { color: var(--muted); font-size: 1rem; margin-top: 6px; line-height: 1.45; }
.gift-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px 22px; }
.price { font-size: 1.5rem; font-weight: 500; color: var(--moss); }
.gift .in-cart {
  position: absolute; top: 18px; right: 18px; z-index: 2; background: var(--gold-grad); color: #2E2410;
  font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}

.gift.custom .gift-media { background: radial-gradient(circle at 50% 40%, #F6EEDB, #E5D6B4); color: var(--gold-deep); }
.gift.custom .gift-media::after { border-color: rgba(138, 106, 46, .35); }
.money-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 16px; flex: 1; min-width: 0; }
.money-input span { color: var(--muted); font-size: 1rem; }
.money-input input { border: 0; outline: 0; background: transparent; padding: 10px 8px; width: 100%; font-size: 1.15rem; min-width: 0; }

.gifts-empty { margin-top: 40px; color: var(--muted); font-style: italic; }

/* Botão flutuante do carrinho */
.cart-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 999px;
  background: var(--moss); color: var(--paper); box-shadow: 0 16px 34px -12px rgba(43, 54, 32, .7);
  transition: transform .4s var(--ease), opacity .4s;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .08em;
}
.cart-fab .bubble {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--gold-grad); background-size: 200% auto; color: #2E2410;
}
.cart-fab .count {
  position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px;
  background: var(--paper); color: var(--moss); font-size: .68rem; display: grid; place-items: center; font-weight: 500;
}
.cart-fab.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.1); } }

/* Gaveta do carrinho */
.scrim { position: fixed; inset: 0; background: rgba(30, 36, 22, .45); backdrop-filter: blur(3px); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.scrim.show { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(440px, 100%);
  background: var(--ivory); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .35);
  transform: translateX(105%); transition: transform .55s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-weight: 400; font-size: 1.8rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--moss); transition: background .3s; }
.icon-btn:hover { background: rgba(176, 141, 76, .12); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 20px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid rgba(176, 141, 76, .2); }
.cart-item h4 { font-weight: 500; font-size: 1.12rem; line-height: 1.25; }
.cart-item .unit { color: var(--muted); font-size: .95rem; }
.cart-item .sub { font-weight: 500; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--moss); }
.qty button .ico { width: 14px; height: 14px; }
.qty span { min-width: 22px; text-align: center; font-family: var(--sans); font-size: .85rem; }
.cart-item .row2 { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.link-btn { font-family: var(--sans); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: #9B3B2E; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; font-style: italic; }
.cart-empty .ico { width: 42px; height: 42px; color: var(--gold); margin: 0 auto 12px; display: block; }

.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total-row span:first-child { font-family: var(--sans); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }
.total-row strong { font-size: 1.9rem; font-weight: 500; color: var(--moss); }
.checkout-form .f { display: block; margin-bottom: 10px; }
.checkout-form .f span { display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.checkout-form input, .checkout-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--ivory); outline: none; font-size: 1.05rem;
}
.checkout-form textarea { min-height: 70px; resize: vertical; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--gold); }
.checkout-form .btn { width: 100%; margin-top: 6px; padding: 17px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-family: var(--sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.secure .ico { width: 13px; height: 13px; }

/* ---------- Pagamento dentro do site ---------- */
.drawer { width: min(480px, 100%); }
.pay-step { padding-top: 14px; }
.back-btn { margin-bottom: 14px; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 16px; }
.pay-total span { font-family: var(--sans); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.pay-total strong { font-size: 1.6rem; font-weight: 500; color: var(--moss); }
.pay-loading { text-align: center; padding: 40px 0; color: var(--muted); font-style: italic; }
.pay-loading .loader-ring { margin: 0 auto 14px; width: 42px; height: 42px; }

.pix-box { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px 18px; }
.pix-box h4 { font-weight: 500; font-size: 1.4rem; }
.pix-box p { color: var(--muted); font-size: 1rem; margin-top: 4px; }
.pix-qr { width: 220px; max-width: 80%; margin: 16px auto 12px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pix-code { display: flex; gap: 8px; margin-top: 10px; }
.pix-code input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--ivory); font-family: var(--sans); font-size: .8rem; }
.pix-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.pix-wait .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: breathe 1.4s ease-in-out infinite; }
.pix-steps { text-align: left; margin: 16px 0 0 18px; color: var(--muted); font-size: .98rem; }

.pay-result { text-align: center; padding: 26px 8px; }
.pay-result .res-ico { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--moss); color: var(--gold-light); box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px var(--gold); animation: pop .8s var(--ease) both; }
.pay-result .res-ico .ico { width: 34px; height: 34px; }
.pay-result.bad .res-ico { background: #8E3B2E; color: #fff; }
.pay-result h4 { font-family: var(--script); font-weight: 400; font-size: 2.6rem; line-height: 1.15; color: var(--moss); }
.pay-result p { color: var(--muted); font-size: 1.1rem; margin-top: 6px; }
.pay-result .btn { margin-top: 22px; }

/* ---------- Rodapé ---------- */
.footer { padding: 70px 20px 90px; text-align: center; }
.footer .mono { font-family: var(--script); font-size: 3.2rem; line-height: 1; }
.footer p { color: var(--muted); font-style: italic; margin-top: 8px; }
.footer .eyebrow { margin-top: 18px; display: block; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  background: var(--moss-deep); color: var(--paper); padding: 14px 22px; border-radius: 999px;
  font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Confete dourado ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i {
  position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 0 100% 0 100%;
  animation: confetti linear forwards;
}
@keyframes confetti {
  to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); opacity: .9; }
}

/* ---------- Página de obrigado ---------- */
.thanks-page { min-height: 100svh; display: grid; place-items: center; padding: 40px 16px; text-align: center; }
.thanks-card { background: var(--paper); max-width: 560px; width: 100%; padding: 56px 30px 44px; position: relative; box-shadow: var(--shadow); }
.thanks-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.thanks-card h1 { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1.15; color: var(--moss); margin: 14px 0 6px; }
.thanks-card p { color: var(--muted); font-size: 1.15rem; }
.thanks-card .status-ico { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--moss); color: var(--gold-light); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--gold); }
.thanks-card .status-ico .ico { width: 34px; height: 34px; }
.thanks-card .btn { margin-top: 28px; }
.thanks-items { list-style: none; margin: 24px auto 0; max-width: 360px; text-align: left; }
.thanks-items li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero-frame { inset: 10px; }
  .corner { width: 110px; }
  .guest-row { flex-direction: column; align-items: flex-start; }
  .choice { width: 100%; }
  .choice button { flex: 1; justify-content: center; padding: 11px 8px; }
  .gift-grid { grid-template-columns: 1fr; }
  .rsvp::before { inset: 10px; }
  .cart-fab .label { display: none; }
  .cart-fab { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
