/* ==========================================================================
   DESIGN SYSTEM - CHÁ DE BEBÊ 100% ONLINE DO MIGUEL
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #FAF6F0;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #FFFFFF;
  --primary: #C88A58;
  --primary-hover: #B57746;
  --primary-light: #F4E8DC;
  --primary-dark: #8C562B;
  --accent: #E0A96D;
  --accent-gold: #D4AF37;
  --text-main: #3D3228;
  --text-muted: #7A6C5D;
  --text-light: #A39382;
  --border-subtle: rgba(217, 185, 155, 0.35);
  --border-focus: #C88A58;
  
  /* Status & Accents */
  --success: #528E64;
  --success-bg: #E8F3EB;
  --gold-bg: #FFF9E6;
  --danger: #D9534F;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Effects */
  --shadow-sm: 0 4px 12px rgba(184, 147, 117, 0.06);
  --shadow-md: 0 8px 24px rgba(184, 147, 117, 0.10);
  --shadow-lg: 0 16px 40px rgba(140, 86, 43, 0.12);
  --shadow-glow: 0 0 25px rgba(200, 138, 88, 0.25);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --glass-backdrop: blur(14px);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Paleta Dark Fofa & Acolhedora de Bebê (Café com Leite, Bege Quente & Rosado Suave) */
    --bg-main: #231F1C;
    --bg-card: #2E2925;
    --bg-card-hover: #38322D;
    --text-main: #FAF5EF;
    --text-muted: #D9C8B8;
    --text-light: #B0A090;
    --border-subtle: rgba(224, 169, 109, 0.28);
    --primary-light: rgba(200, 138, 88, 0.25);
    --primary: #E0A96D;
    --primary-dark: #F5C696;
    --primary-hover: #D4985B;
    --gold-bg: #342D22;
    --success-bg: #1F3325;
    --success: #7AC090;
  }

  .navbar {
    background: rgba(35, 31, 28, 0.94) !important;
  }

  /* Modais no Dark Mode */
  .modal-card {
    background: #2A2521 !important;
    color: #FAF5EF !important;
    border: 1px solid rgba(224, 169, 109, 0.3) !important;
  }

  .modal-title, .modal-subtitle {
    color: #FAF5EF !important;
  }

  /* Box e Elementos de PIX no Dark Mode */
  .pix-box {
    background: #1E1A17 !important;
    border-color: rgba(224, 169, 109, 0.3) !important;
  }

  .pix-key-display {
    background: #14110F !important;
    border-color: rgba(224, 169, 109, 0.35) !important;
  }

  .pix-key-text {
    color: #F5C696 !important;
  }

  /* Inputs, Selects e Textareas no Dark Mode */
  .form-label {
    color: #FAF5EF !important;
  }

  .form-input, .form-textarea, .form-select {
    background: #1E1A17 !important;
    color: #FAF5EF !important;
    border-color: rgba(224, 169, 109, 0.3) !important;
  }

  .form-input:focus, .form-textarea:focus, .form-select:focus {
    background: #25201C !important;
    border-color: #E0A96D !important;
    color: #FFFFFF !important;
  }

  .form-select option {
    background: #2A2521 !important;
    color: #FAF5EF !important;
  }

  .section-badge {
    background: rgba(224, 169, 109, 0.18) !important;
    color: #F5C696 !important;
  }

  .btn-secondary {
    background: rgba(46, 41, 37, 0.9) !important;
    color: #FAF5EF !important;
    border-color: rgba(224, 169, 109, 0.3) !important;
  }

  .stock-badge {
    background: rgba(245, 198, 150, 0.25) !important;
    color: #F5C696 !important;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 15% 20%, rgba(224, 169, 109, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(200, 138, 88, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(244, 232, 220, 0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #FFFFFF;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-hero {
  padding: 1.1rem 2.2rem;
  font-size: 1.15rem;
  box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border-subtle);
}

/* Hero Section */
.hero {
  padding: 2.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-parents-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .hero-parents-badge {
    align-self: center;
  }
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  color: var(--text-main);
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Countdown Card */
.countdown-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-backdrop);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
}

.countdown-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.countdown-item {
  background: var(--primary-light);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.countdown-value {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* Hero Media */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid rgba(255, 255, 255, 0.85);
  aspect-ratio: 4/3;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border-subtle);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-bg);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Goal Progress Bar */
.goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-backdrop);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.goal-stats {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.goal-current {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: var(--font-heading);
}

.goal-target {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.goal-progress-bg {
  width: 100%;
  height: 22px;
  background: var(--primary-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--accent-gold) 100%);
  border-radius: var(--radius-pill);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.goal-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.goal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Category Filters */
.filters-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Gift Cards Grid */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.gift-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.gift-media {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--primary-light);
}

.gift-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gift-card:hover .gift-media img {
  transform: scale(1.05);
}

.gift-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-backdrop);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(61, 50, 40, 0.85);
  color: #FFFFFF;
  backdrop-filter: var(--glass-backdrop);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.stock-badge.completed {
  background: var(--success);
}

.gift-completed {
  opacity: 0.75;
  filter: grayscale(0.2);
}

.gift-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.gift-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.gift-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.gift-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
  gap: 0.5rem;
}

.gift-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: var(--font-heading);
}

.gift-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--success-bg);
  color: var(--success);
}

/* Guestbook Section */
.guestbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.message-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.message-relation-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gold-bg);
  color: var(--primary-dark);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.25rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.message-author {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.message-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.message-gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.message-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40, 32, 24, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  padding: 2rem;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* PIX Box */
.pix-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.qr-code-wrapper {
  width: 170px;
  height: 170px;
  margin: 0 auto 1.25rem;
  background: #FFFFFF;
  padding: 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-wrapper canvas, .qr-code-wrapper img {
  max-width: 100%;
  max-height: 100%;
}

.pix-key-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.pix-key-text {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-main);
  word-break: break-all;
  flex: 1;
  text-align: left;
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(200, 138, 88, 0.15);
  background: #FFFFFF;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--text-main);
  color: #FFFFFF;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-heart {
  color: var(--primary);
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS (App Feel & Native Touch UX)
   ========================================================================== */

@media (max-width: 768px) {
  /* Previne zoom automático do iOS em inputs */
  .form-input, .form-textarea, .form-select {
    font-size: 16px !important;
    padding: 0.85rem 1rem;
  }

  .container {
    padding: 0 1.15rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Hero Responsivo */
  .hero {
    padding: 1.25rem 0 2rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image-wrapper {
    max-width: 100%;
    border-width: 5px;
    border-radius: var(--radius-md);
  }

  .floating-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin: -15px auto 0 auto;
    box-shadow: var(--shadow-sm);
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    width: fit-content;
  }

  /* Filtros com Scroll Horizontal Nativo de App (Swipe fácil) */
  .filters-wrap {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.3rem 0.2rem 0.8rem 0.2rem;
    margin-bottom: 1.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

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

  .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    touch-action: manipulation;
  }

  /* Cards de Presentes no Celular */
  .gifts-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .gift-card {
    border-radius: var(--radius-md);
  }

  .gift-media {
    height: 175px;
  }

  .gift-content {
    padding: 1.15rem;
    gap: 0.5rem;
  }

  .gift-title {
    font-size: 1.1rem;
  }

  .gift-price {
    font-size: 1.25rem;
  }

  /* Botões com maior área de toque */
  .btn {
    min-height: 48px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    touch-action: manipulation;
  }

  .btn:active {
    transform: scale(0.97);
  }

  /* Mural de Recados */
  .guestbook-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .message-card {
    padding: 1.15rem;
    border-radius: var(--radius-md);
  }

  /* Modal Estilo Bottom Sheet no Celular */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    max-width: 100%;
    max-height: 88vh;
    padding: 1.5rem 1.25rem;
    transform: translateY(100%);
  }

  .modal-overlay.active .modal-card {
    transform: translateY(0);
  }

  .modal-close {
    top: 0.85rem;
    right: 0.85rem;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  /* Notificações Toast no Celular */
  .toast-container {
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .toast {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
}

@media (max-width: 480px) {
  .gifts-grid {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    gap: 0.35rem;
  }

  .countdown-value {
    font-size: 1.35rem;
  }

  .countdown-label {
    font-size: 0.65rem;
  }

  .pix-box {
    padding: 1rem;
  }

  .qr-code-wrapper {
    width: 155px;
    height: 155px;
  }
}

/* ==========================================================================
   BARRA FLUTUANTE DE CARRINHO (MULTI-PRESENTES)
   ========================================================================== */
.cart-floating-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - 2rem);
  max-width: 600px;
  z-index: 950;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-floating-bar.active {
  transform: translateX(-50%) translateY(0);
}

.cart-floating-inner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 12px 35px rgba(140, 86, 43, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-count-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* Ajustes de sobreposição e safe area para mobile */
@media (max-width: 768px) {
  body {
    padding-bottom: 5.5rem; /* Espaço para a barra flutuante do carrinho não cobrir o rodapé */
  }

  .cart-floating-bar {
    bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .toast-container {
    bottom: calc(5.5rem + env(safe-area-inset-bottom)); /* Eleva toasts no mobile para não sobrepor o carrinho */
    z-index: 1100;
  }
}

.gift-card.selected-in-cart {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}


