@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #faf9f5;
  --white: #ffffff;
  --ink: #191b16;
  --muted: #5e6158;
  --muted-light: #888b80;
  --sage: #4d5f49;
  --sage-soft: #e2e8df;
  --line: #e3e2d9;
  --line-light: #ecebe3;
  --gold: #c59b4f;
  --gold-dark: #9c7329;
  --sand: #f4efe6;
  
  --radius-btn: 6px;
  --radius-card: 8px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --shadow-sm: 0 2px 8px rgba(25, 27, 22, 0.04);
  --shadow-md: 0 8px 24px rgba(25, 27, 22, 0.06);
  --shadow-lg: 0 16px 40px rgba(25, 27, 22, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  touch-action: pan-y pinch-zoom;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

button, input, textarea, select {
  font: inherit;
}

button, a {
  color: inherit;
}

.text-center {
  text-align: center;
}

.section-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.section-kicker {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 800;
  margin-bottom: 6px;
}

/* ========================================================================= */
/* 💌 NOVO ENVELOPE REALÍSTICO COM LACRE E SEM TEXTO SOBREPOSTO */
/* ========================================================================= */
.invitation-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  z-index: 999;
  background: radial-gradient(circle at 50% 30%, #fbfaf6 0%, #ede7dc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.invitation-container {
  width: min(520px, 100%);
  max-width: 100%;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.envelope {
  width: min(480px, 100%);
  max-width: 100%;
  background: #fbf7ee;
  border: 1px solid #dfd4c3;
  border-radius: var(--radius-card);
  position: relative;
  box-shadow: 0 20px 50px rgba(70, 50, 30, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 380px;
  padding: 0 24px 28px;
  text-align: center;
  overflow: visible;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, #efe5d4 0%, #e2d4be 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.envelope-seal-wrap {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
}

.wax-seal-btn {
  background: linear-gradient(135deg, #c59b4f 0%, #9c7329 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(156, 115, 41, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wax-seal-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(156, 115, 41, 0.6);
}

.wax-seal-icon {
  font-size: 16px;
}

.envelope-footer-info {
  margin-top: 175px;
  position: relative;
  z-index: 4;
  width: 100%;
}

.envelope-to {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage);
  font-weight: 800;
  margin: 0 0 4px;
}

.envelope-couple-names {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 5.5vw, 42px);
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}

.envelope-couple-names span {
  color: var(--gold);
  font-style: italic;
}

.envelope-date-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 20px;
}

.envelope-skip-link {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
  padding: 4px;
}

.envelope-skip-link:hover {
  color: var(--ink);
}

/* CARTA DO CONVITE */
.invitation-card {
  width: 100%;
  max-width: 100%;
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid #e8e0d2;
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 4vw, 36px);
  position: relative;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overflow-x: hidden;
}

.card-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-btn);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.card-close-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.card-header {
  text-align: center;
  margin-bottom: 18px;
}

.card-monogram {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.card-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
  margin: 4px 0 8px;
}

.card-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 5.5vw, 50px);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 10px;
}

.card-header h1 em {
  color: var(--sage);
  font-style: italic;
  font-weight: 400;
}

.card-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(14px, 2.2vw, 16.5px);
  font-style: italic;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.5;
}

.card-photo-wrap {
  width: 100%;
  height: clamp(180px, 26vw, 240px);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line-light);
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* LOCAL NO CONVITE */
.invite-location-box {
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.invite-location-box .location-icon {
  font-size: 28px;
  line-height: 1;
}

.invite-location-details {
  flex-grow: 1;
}

.invite-location-box strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.invite-location-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 1px 0 3px;
}

.invite-location-box small {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-dark);
}

.map-action-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: all 0.2s ease;
}

.waze-btn:hover {
  background: #33ccff;
  color: #fff;
  border-color: #33ccff;
}

.google-btn:hover {
  background: #4285f4;
  color: #fff;
  border-color: #4285f4;
}

.countdown-block {
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  text-align: center;
  margin-bottom: 22px;
}

.countdown-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin: 0 0 8px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.count-unit {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.count-unit b {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.count-unit small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 700;
}

.count-sep {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.wedding-date-highlight {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 0;
}

.card-rsvp-box {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.card-rsvp-box h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  text-align: center;
}

.rsvp-sub {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 16px;
}

/* ========================================================================= */
/* 🌟 TOPBAR (BARRA FIXA COM LEONARDO & LUANA SEMPRE EM LINHA) */
/* ========================================================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 90;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(14px, 3vw, 40px);
  background: rgba(250, 249, 245, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(25, 27, 22, 0.08);
}

main {
  padding-top: 64px;
}

.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand span, .footer-brand span {
  color: var(--sage);
  font-style: italic;
  font-weight: 400;
  margin: 0 2px;
}

.desktop-nav {
  display: flex;
  gap: 20px;
}

.desktop-nav a {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.open-convite-btn {
  background: #f3eee3;
  border: 1px solid #dfd3bf;
  padding: 7px 14px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.open-convite-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.cart-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--sage);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.cart-button:hover {
  border-color: var(--ink);
}

.cart-button b {
  position: absolute;
  right: -3px;
  top: -3px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  background: var(--sage);
  color: #fff;
  font: 700 10px 'Plus Jakarta Sans', sans-serif;
  padding: 0 4px;
}

/* ========================================================================= */
/* 🌸 HERO SECTION */
/* ========================================================================= */
.hero {
  padding: 48px 0 60px;
  width: 100%;
  max-width: 100%;
}

.hero-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  font-weight: 600;
  margin: 0 0 14px;
}

.hero h1 em {
  font-weight: 400;
  color: var(--sage);
  font-style: italic;
}

.hero-text {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.hero-countdown-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-countdown-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin: 0 0 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-photo-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-light);
  height: 460px;
  width: 100%;
}

.hero-couple-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================================================= */
/* ⛪ LOCAL & CERIMÔNIA (COM BOTÕES WAZE E GOOGLE MAPS) */
/* ========================================================================= */
.event-info-section {
  padding: 20px 0 50px;
  width: 100%;
  max-width: 100%;
}

.event-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}

.event-info-header {
  margin-bottom: 24px;
}

.event-info-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  margin: 2px 0 0;
}

.event-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.event-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
}

.detail-icon {
  font-size: 26px;
  line-height: 1;
}

.event-detail-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.event-detail-item p {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.detail-sub {
  font-size: 12px !important;
  color: var(--sage) !important;
  font-weight: 600;
}

/* BARRA DE BOTÕES GPS NA SEÇÃO DO LOCAL */
.location-navigation-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-bar-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.nav-bar-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.map-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.map-app-btn .app-icon {
  font-size: 20px;
}

.map-app-btn .app-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.map-app-btn small {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.map-app-btn strong {
  font-size: 13px;
  font-weight: 800;
}

.map-app-btn:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.waze-action:hover {
  background: #33ccff;
  color: #fff;
  border-color: #33ccff;
}

.waze-action:hover small {
  color: rgba(255, 255, 255, 0.85);
}

.google-action:hover {
  background: #4285f4;
  color: #fff;
  border-color: #4285f4;
}

.google-action:hover small {
  color: rgba(255, 255, 255, 0.85);
}

/* ========================================================================= */
/* 💳 BANNER DE PARCELAMENTO EM ATÉ 12X */
/* ========================================================================= */
.payment-trust-banner {
  background: #f7f3ea;
  border: 1px solid #e2d6c1;
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-badge-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.trust-badge-pill b {
  font-weight: 700;
}

.trust-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* BOTÕES QUADRADOS COM BORDAS LEVEMENTE ARREDONDADAS */
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(25, 27, 22, 0.14);
}

.primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.full {
  width: 100%;
}

/* ========================================================================= */
/* ✍️ SEÇÃO DE RSVP */
/* ========================================================================= */
.rsvp-section {
  padding: 50px 0 70px;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #f6f5ee 0%, #ebe7dc 100%);
}

.rsvp-card-box {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 40px);
  max-width: 640px;
  margin: 0 auto;
}

.rsvp-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  margin: 4px 0 8px;
}

.rsvp-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.rsvp-form .form-group {
  margin-bottom: 14px;
}

.rsvp-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink);
}

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 14px;
  transition: all 0.2s ease;
}

.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(25, 27, 22, 0.06);
}

.companions-container {
  background: #fbf9f4;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px 2px;
  margin-bottom: 14px;
}

.companions-title {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 8px;
  display: block;
}

.companion-field {
  margin-bottom: 10px !important;
}

.rsvp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.link-btn-sub {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
}

.link-btn-sub:hover {
  color: var(--ink);
}

/* ========================================================================= */
/* 🎉 POPUP ELEGANTE DE SUCESSO DO RSVP */
/* ========================================================================= */
.rsvp-success-modal {
  max-width: min(480px, calc(100% - 24px));
  padding: 32px 24px;
  border-radius: var(--radius-card);
}

.success-popup-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.success-popup-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.success-popup-msg {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.success-popup-box {
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 24px;
  text-align: center;
}

.success-popup-box p {
  margin: 2px 0;
  font-size: 13px;
  color: var(--ink);
}

.success-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========================================================================= */
/* 🎁 LISTA DE PRESENTES */
/* ========================================================================= */
.gift-section {
  padding: 60px clamp(16px, 4vw, 40px) 190px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 18px;
}

.section-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1;
  margin: 4px 0 0;
}

.section-desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 380px;
  margin: 0;
  line-height: 1.5;
}

.gift-controls {
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex-grow: 1;
  min-width: 220px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
  opacity: 0.6;
}

.search-box input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--ink);
}

.sort-box select {
  height: 46px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  outline: none;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: var(--radius-btn);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  color: #44473f;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-count {
  font-size: 10.5px;
  background: var(--bg);
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 700;
}

.filter:hover {
  border-color: var(--ink);
}

.filter.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.filter.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* CARDS DE PRESENTES */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.gift-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--line-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.gift-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.gift-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 10px;
}

.gift-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gift-featured-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #d1565e;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.gift-quota-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(25, 27, 22, 0.88);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.gift-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gift-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gift-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage);
  margin-bottom: 4px;
  display: block;
}

.gift-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ink);
}

.gift-description {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.gift-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}

.gift-pricing {
  display: flex;
  flex-direction: column;
}

.price-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-light);
  text-transform: uppercase;
}

.price {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--ink);
}

.card-installments-badge {
  font-size: 10px;
  color: var(--sage);
  font-weight: 700;
}

.add-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.heart-icon {
  color: #d1565e;
}

.add-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.add-btn:hover .heart-icon {
  color: #fff;
}

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 50px 16px;
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px dashed var(--line);
  margin-top: 16px;
}

.no-results-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
}

.no-results h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
}

.no-results p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 14px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 16px;
  border-top: 1px solid var(--line);
  background: var(--white);
  width: 100%;
}

.footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: underline;
}

/* OVERLAY & DRAWER */
.overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  background: rgba(25, 27, 22, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 95;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  max-width: 100%;
  background: var(--white);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 50px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head small {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sage);
  font-weight: 700;
}

.drawer-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 2px 0 0;
}

.icon-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-btn);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 14px 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}

.cart-mini {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.cart-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-info {
  flex-grow: 1;
}

.cart-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 2px;
}

.cart-info p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 5px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.qty span {
  font-size: 12.5px;
  font-weight: 700;
  min-width: 14px;
  text-align: center;
}

.qty .remove {
  background: none;
  border: 0;
  color: #a34b4f;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 6px;
}

.cart-subtotal {
  font-size: 14.5px;
  font-weight: 800;
}

.cart-empty {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.cart-empty-icon {
  font-size: 38px;
  color: var(--sage);
  margin-bottom: 10px;
}

.cart-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.total-row span {
  font-size: 13.5px;
  color: var(--muted);
}

.total-row strong {
  font-size: 22px;
  font-weight: 800;
}

.cart-footer-note {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

/* FLOATING MOBILE CART BAR */
.mobile-cart-bar {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 10px 14px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  z-index: 80;
}

/* Em telas largas, a barra não deve cobrir os cartões: ela ocupa espaço no fluxo. */
@media (min-width: 769px) {
  .mobile-cart-bar {
    position: sticky;
    bottom: 18px;
    margin: 30px auto 0;
    max-width: 720px;
  }
}

.mobile-cart-info {
  display: flex;
  flex-direction: column;
}

.mobile-cart-count {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.8;
}

.mobile-cart-total {
  font-size: 16px;
  font-weight: 800;
}

.mobile-cart-btn {
  min-height: 36px;
  padding: 0 16px;
  font-size: 12.5px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-btn);
}

/* MODALS */
.modal {
  border: 0;
  border-radius: var(--radius-card);
  padding: 28px 24px;
  width: min(480px, calc(100% - 24px));
  max-width: min(480px, calc(100% - 24px));
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow-x: hidden;
}

.checkout-modal {
  position: fixed;
  inset: 10px;
  margin: auto;
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal::backdrop {
  background: rgba(25, 27, 22, 0.5);
  backdrop-filter: blur(6px);
}

.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.modal h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  margin: 4px 0 8px;
}

.modal .muted {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
}

.product-modal {
  width: min(640px, calc(100% - 24px));
  max-width: min(640px, calc(100% - 24px));
  padding: 0;
  overflow: hidden;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-modal-image-wrap {
  background: #ffffff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line-light);
}

.product-modal-img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.product-modal-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.product-modal-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

.product-modal-pricing {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.installments-note {
  display: block;
  font-size: 11px;
  color: var(--sage);
  font-weight: 700;
  margin-top: 4px;
}

.amount-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.preset-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: var(--radius-btn);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.preset-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

form label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

form label .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  float: right;
}

form input, form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-top: 4px;
}

.money-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-top: 4px;
  padding-left: 12px;
}

.money-input span {
  font-weight: 800;
  color: var(--muted);
}

.money-input input {
  border: 0;
  background: transparent;
  margin-top: 0;
  padding-left: 6px;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.choice {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  gap: 8px;
  cursor: pointer;
}

.choice.active {
  border-color: var(--sage);
  background: var(--sage-soft);
}

.choice b {
  display: block;
  font-size: 13px;
}

.choice small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin: 10px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-summary strong {
  font-size: 20px;
  font-weight: 800;
}

.secure-line {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.error {
  background: #fdf2f2;
  border: 1px solid #f8d7da;
  color: #c95d63;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-top: 10px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========================================================================= */
/* 📱 AJUSTES ESPECÍFICOS PARA DISPOSITIVOS MÓVEIS (MOBILE) */
/* ========================================================================= */
@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .hero-container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-photo-wrap { height: 360px; max-width: 480px; margin: 0 auto; width: 100%; }
  .event-info-grid { grid-template-columns: 1fr; }
  .location-navigation-bar { flex-direction: column; align-items: stretch; }
  .nav-bar-buttons { justify-content: stretch; }
  .map-app-btn { flex: 1; justify-content: center; }
  .product-modal-grid { grid-template-columns: 1fr; }
  .product-modal-image-wrap { border-right: 0; border-bottom: 1px solid var(--line-light); height: 200px; }
}

@media (max-width: 640px) {
  .topbar {
    height: 58px;
    padding: 0 12px;
  }

  main {
    padding-top: 58px;
  }

  .brand {
    font-size: 18px;
    white-space: nowrap;
  }

  .open-convite-btn {
    padding: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: var(--radius-btn);
  }

  .open-convite-btn .convite-text {
    display: none;
  }

  .open-convite-btn .convite-icon {
    font-size: 16px;
  }

  .cart-button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .envelope {
    min-height: 340px;
    padding: 0 16px 20px;
  }

  .envelope-seal-wrap {
    top: 95px;
  }

  .wax-seal-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .envelope-footer-info {
    margin-top: 155px;
  }

  .envelope-couple-names {
    font-size: 28px;
  }

  .hero { padding: 24px 0 36px; }
  .hero h1 { font-size: 34px; }
  .hero-photo-wrap { height: 260px; }
  
  .gift-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  
  .modal { padding: 18px 14px; width: calc(100% - 20px); max-width: calc(100% - 20px); }
  .modal h2 { font-size: 22px; }
  
  .countdown-grid { gap: 4px; }
  .count-unit { min-width: 42px; padding: 6px 4px; }
  .count-unit b { font-size: 15px; }
  .count-sep { font-size: 15px; }
}
