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

:root {
  --color-primary: #8B9A46;
  --color-primary-light: #A8B86A;
  --color-text: #5C5C5C;
  --color-text-light: #7A7A7A;
  --color-background: #FAF9F7;
  --color-cream: #F5F3EF;
  --color-gold: #C9B97A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

/* Header / Hero Section */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(to bottom, #E8F4F8 0%, var(--color-background) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(135deg, rgba(173, 216, 230, 0.3) 0%, rgba(135, 206, 235, 0.2) 100%);
  border-radius: 0 0 50% 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero Monogram */
.hero-monogram {
  width: 120px;
  height: auto;
  margin: 0 auto 20px;
}

.monogram-svg {
  width: 100%;
  height: auto;
  color: var(--color-primary);
  filter: drop-shadow(0 2px 4px rgba(139, 154, 70, 0.2));
}

.save-the-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--color-text-light);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.save-the-date span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.1em;
}

.couple-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 25px;
  line-height: 1.2;
}

.couple-names span {
  font-weight: 300;
}

.venue-image {
  width: 100%;
  max-width: 500px;
  margin: 10px auto 0;
}

.venue-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Couple Photo */
.couple-photo {
  width: 180px;
  margin: 0 auto 15px;
}

.couple-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Guest Welcome */
.guest-welcome {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--color-cream);
}

.guest-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.guest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.guest-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-light);
}

/* Event Details */
.event-details {
  padding: 50px 20px;
  text-align: center;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 15px auto 0;
}

.detail-item {
  margin-bottom: 25px;
}

.detail-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text);
}

.detail-address {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
  line-height: 1.5;
}

.date-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.date-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-primary);
}

.date-separator {
  width: 1px;
  height: 40px;
  background-color: var(--color-gold);
}

.date-month {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.date-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-primary);
}

/* Dress Code Section */
.dress-code {
  padding: 50px 20px;
  background-color: var(--color-cream);
  text-align: center;
}

.dress-instructions {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 450px;
  margin: 0 auto 30px;
}

/* Dress Code Visual Cards */
.dresscode-category {
  max-width: 560px;
  margin: 0 auto 40px;
}

.dresscode-category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.dresscode-category-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  margin: 10px auto 0;
  border-radius: 2px;
}

.dresscode-allowed-title {
  color: var(--color-primary);
}

.dresscode-allowed-title::after {
  background: var(--color-primary);
}

.dresscode-blocked-title {
  color: #B07A7A;
}

.dresscode-blocked-title::after {
  background: #B07A7A;
}

.dresscode-grid {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.dresscode-grid--allowed {
  grid-template-columns: repeat(2, 1fr);
}

.dresscode-grid--blocked {
  grid-template-columns: repeat(3, 1fr);
}

.dresscode-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 200px;
}

.dresscode-card:hover {
  transform: translateY(-3px);
}

.dresscode-card--allowed {
  border: 2px solid rgba(139, 154, 70, 0.25);
}

.dresscode-card--blocked {
  border: 2px solid rgba(176, 122, 122, 0.25);
}

.dresscode-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-cream) 0%, #EDE9E1 100%);
}

.dresscode-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dresscode-badge-blocked {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(176, 82, 82, 0.85);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(176, 82, 82, 0.3);
}

.dresscode-card-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
  padding: 12px 10px;
  line-height: 1.4;
}

.dresscode-closing {
  margin-top: 10px;
}

@media (max-width: 480px) {
  .dresscode-grid--allowed {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dresscode-grid--blocked {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dresscode-card {
    max-width: 100%;
  }

  .dresscode-category-title {
    font-size: 1.25rem;
  }
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.color-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  color: var(--color-text-light);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Watercolor Gallery */
.gallery {
  padding: 50px 20px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Footer */
.footer {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(to top, #E8F4F8 0%, var(--color-background) 100%);
}

.footer-message {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* Decorative Elements */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.divider-line {
  width: 80px;
  height: 1px;
  background-color: var(--color-gold);
}

.divider-icon {
  margin: 0 15px;
  color: var(--color-gold);
  font-size: 1.2rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Calendar (inside event-details) */
.calendar-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.calendar {
  max-width: 340px;
  margin: 0 auto 30px;
}

.cta-maps {
  margin-top: 15px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekday {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  padding: 8px 0;
}

.calendar-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  padding: 8px 0;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.highlight {
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(139, 154, 70, 0.4);
}

/* Calendar CTA */
.calendar-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--color-gold);
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
  background-color: var(--color-gold);
  color: white;
}

.cta-icon {
  width: 16px;
  height: 16px;
}

/* Color Carousel */
.color-carousel {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 25px;
  flex-wrap: wrap;
  padding: 0 10px;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-option:hover {
  transform: translateY(-3px);
}

.color-option .color-swatch {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.color-option.active .color-swatch {
  transform: scale(1.15);
  border: 3px solid var(--color-gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.color-option.active .color-label {
  font-weight: 500;
  color: var(--color-text);
}

/* Inspiration Section */
.inspiration-section {
  display: none;
  margin-top: 35px;
  animation: fadeIn 0.4s ease forwards;
}

.inspiration-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.inspiration-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0;
  flex: 1;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-image {
  min-width: 250px;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.carousel-nav {
  background: white;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.carousel-nav:hover {
  background-color: var(--color-gold);
  color: white;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-background);
  text-align: center;
  padding: 15px 20px 10px;
  border-bottom: 1px solid var(--color-gold);
}

.nav-logo {
  display: block;
  margin-bottom: 10px;
}

.nav-logo img {
  height: 45px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-logo:hover img {
  opacity: 1;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: absolute;
  right: 20px;
  top: 18px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Countdown */
.countdown {
  margin-top: 0;
  text-align: center;
  position: relative;
  padding: 20px 20px 30px;
}

.countdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(139, 154, 70, 0.08) 0%,
    rgba(201, 185, 122, 0.12) 25%,
    rgba(139, 154, 70, 0.06) 50%,
    rgba(201, 185, 122, 0.10) 75%,
    rgba(139, 154, 70, 0.08) 100%
  );
  border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%;
  filter: blur(8px);
  z-index: -1;
}

.countdown-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.countdown-box {
  background: transparent;
  border: none;
  padding: 10px 8px;
  min-width: 65px;
  text-align: center;
  position: relative;
}

.countdown-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 154, 70, 0.15) 0%,
    rgba(139, 154, 70, 0.05) 50%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
}

.countdown-value {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1;
}

.countdown-unit {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 5px;
}

/* R.S.V.P. Form */
.rsvp-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--color-cream);
}

.rsvp-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-top: -15px;
  margin-bottom: 30px;
}

.rsvp-form {
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-background);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 154, 70, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #bbb;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A7A7A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
}

.form-radio input {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.form-radio input:checked + .radio-custom {
  border-color: var(--color-primary);
}

.form-radio input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.form-submit {
  width: 100%;
  padding: 16px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit.loading {
  pointer-events: none;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}

.form-submit.loading .spinner {
  display: inline-block;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.rsvp-form.sending {
  position: relative;
}

.rsvp-form.sending::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 247, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 8px;
  z-index: 10;
  animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Placeholder Sections */
.placeholder-section {
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--color-cream);
}

.placeholder-section:nth-child(even) {
  background-color: var(--color-cream);
}

.placeholder-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-top: 10px;
}

/* Gift Registry Page */
.gifts-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.gifts-header {
  text-align: center;
  margin-bottom: 40px;
}

.gifts-header .section-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.gifts-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Gift sort controls */
.gift-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.gift-sort-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.gift-sort-select {
  padding: 8px 32px 8px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--color-text);
  background-color: white;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A7A7A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s ease;
}

.gift-sort-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gift-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.gift-card-disabled {
  opacity: 0.5;
  filter: grayscale(100%);
  pointer-events: none;
}

.gift-card-disabled:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gift-card-btn-disabled {
  background-color: var(--color-text-light);
  cursor: default;
}

.gift-card-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: var(--color-cream);
}

.gift-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-background) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 2.5rem;
}

.gift-card-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gift-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.4;
  flex: 1;
}

.gift-card-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.gift-card-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gift-card-btn:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.gift-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-light);
  text-decoration: none;
  margin-bottom: 30px;
  transition: color 0.2s ease;
}

.gift-back-link:hover {
  color: var(--color-primary);
}

/* Gift loading skeleton */
.gift-skeleton {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gift-skeleton-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, var(--color-cream) 25%, #ede9e2 50%, var(--color-cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.gift-skeleton-text {
  padding: 20px;
}

.gift-skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--color-cream) 25%, #ede9e2 50%, var(--color-cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 12px;
}

.gift-skeleton-line:nth-child(1) { width: 85%; }
.gift-skeleton-line:nth-child(2) { width: 40%; }
.gift-skeleton-line:nth-child(3) { width: 60%; height: 36px; border-radius: 30px; margin-top: 10px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Gift error/empty state */
.gift-message {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.gift-message p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text-light);
}

/* Presentes CTA button (in guest pages) */
.presentes-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  background-color: var(--color-primary);
  border-radius: 30px;
  margin-top: 15px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.presentes-cta:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

/* Cart Bottom Bar */
.cart-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: var(--color-primary);
  color: white;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cart-bottom-bar.active {
  transform: translateY(0);
}

.cart-bottom-bar-pulse {
  animation: barPulse 0.4s ease;
}

@keyframes barPulse {
  0% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  60% { transform: translateY(0); }
}

.cart-bottom-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 12px;
}

.cart-bottom-bar-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-bottom-bar-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.cart-bottom-bar-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.cart-bottom-bar-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.cart-bottom-bar-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 30px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.cart-bottom-bar:hover .cart-bottom-bar-btn {
  background: rgba(255, 255, 255, 0.3);
}

/* Gift card button added state */
.gift-card-btn-added {
  background-color: var(--color-gold) !important;
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--color-background);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
  transform: translateX(0);
}

/* Cart Header */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-gold);
  flex-shrink: 0;
}

.cart-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.cart-close:hover {
  color: var(--color-text);
}

/* Cart Items List */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-light);
}

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

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: contain;
  background-color: var(--color-cream);
  flex-shrink: 0;
}

.cart-item-img-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  background: white;
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1;
  padding: 0;
}

.qty-btn:hover {
  background-color: var(--color-gold);
  color: white;
}

.cart-item-qty span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.cart-item-right {
  text-align: right;
  flex-shrink: 0;
}

.cart-item-total {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.cart-item-remove {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  color: var(--color-text-light);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  color: #c0392b;
}

/* Cart Footer */
.cart-footer {
  border-top: 1px solid var(--color-gold);
  padding: 20px 24px;
  flex-shrink: 0;
}

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

.cart-total-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.cart-total-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
}

.cart-continue-btn {
  width: 100%;
  padding: 12px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: transparent;
  border: 2px dashed var(--color-gold);
  border-radius: 30px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cart-continue-btn:hover {
  background-color: rgba(201, 185, 122, 0.1);
  border-color: var(--color-primary);
}

.cart-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-checkout-input,
.cart-checkout-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--color-text);
  background-color: white;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.cart-checkout-input:focus,
.cart-checkout-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 154, 70, 0.15);
}

.cart-checkout-input::placeholder,
.cart-checkout-textarea::placeholder {
  color: #bbb;
}

.cart-checkout-textarea {
  resize: vertical;
  min-height: 50px;
}

.cart-checkout-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-checkout-pix,
.cart-checkout-card,
.cart-checkout-infinitepay {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  text-align: center;
}

.cart-checkout-pix {
  background-color: var(--color-primary);
  color: white;
}

.cart-checkout-pix:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.cart-checkout-card {
  background-color: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.cart-checkout-card:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.cart-checkout-asaas {
  background-color: #1A73E8;
  color: white;
}

.cart-checkout-asaas:hover {
  background-color: #1565C0;
  transform: translateY(-2px);
}

.cart-checkout-infinitepay {
  background-color: #00C853;
  color: white;
}

.cart-checkout-infinitepay:hover {
  background-color: #00B248;
  transform: translateY(-2px);
}

.cart-checkout-pix:disabled,
.cart-checkout-card:disabled,
.cart-checkout-asaas:disabled,
.cart-checkout-infinitepay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Body scroll lock when cart is open */
body.cart-open {
  overflow: hidden;
}

/* Stripe Embedded Checkout Modal */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.checkout-modal {
  background: var(--color-background);
  border-radius: 12px;
  width: 600px;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-gold);
  flex-shrink: 0;
}

.checkout-modal-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
}

#checkout-container {
  flex: 1;
  overflow-y: auto;
  min-height: 400px;
}

/* PIX Modal */
.pix-modal {
  width: 480px;
}

.pix-modal-body {
  padding: 24px;
  overflow-y: auto;
}

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

.pix-instruction {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 16px;
}

.pix-name-input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--color-text);
  background-color: white;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.pix-name-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 154, 70, 0.15);
}

.pix-name-input::placeholder {
  color: #bbb;
}

.pix-message-input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--color-text);
  background-color: white;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  resize: vertical;
  min-height: 70px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.pix-message-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 154, 70, 0.15);
}

.pix-message-input::placeholder {
  color: #bbb;
}

.pix-confirm-btn {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pix-confirm-btn:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.pix-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pix-qr-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.pix-qr-image {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 2px solid var(--color-cream);
}

.pix-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.pix-copy-area {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.pix-brcode-input {
  flex: 1;
  padding: 10px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: var(--color-text);
  background-color: var(--color-cream);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pix-copy-btn {
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.pix-copy-btn:hover {
  background-color: var(--color-primary-light);
}

.pix-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 16px;
}

.pix-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-gold);
  animation: pixPulse 1.5s ease infinite;
}

.pix-status-dot.pix-status-paid {
  background-color: var(--color-primary);
  animation: none;
}

.pix-status-dot.pix-status-expired {
  background-color: #c0392b;
  animation: none;
}

@keyframes pixPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 768px) {
  .gift-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .gift-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gifts-page {
    padding: 25px 15px 40px;
  }

  .gifts-header .section-title {
    font-size: 1.6rem;
  }

  .cart-bottom-bar-inner {
    padding: 12px 16px;
  }

  .cart-bottom-bar-total {
    font-size: 1.1rem;
  }

  .cart-bottom-bar-btn {
    font-size: 0.7rem;
    padding: 7px 14px;
  }

  .cart-sidebar {
    width: 100vw;
  }

  .checkout-modal,
  .pix-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .pix-qr-image {
    width: 180px;
    height: 180px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .countdown-boxes {
    gap: 5px;
  }

  .countdown-box {
    min-width: 55px;
    padding: 8px 5px;
  }

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

  .countdown-unit {
    font-size: 0.5rem;
  }

  .countdown::before {
    width: 95%;
    filter: blur(6px);
  }

  .rsvp-form {
    padding: 0 10px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .hero-monogram {
    width: 100px;
    margin-bottom: 15px;
  }

  .couple-photo {
    width: 150px;
    margin-bottom: 10px;
  }

  .couple-names {
    font-size: 2.2rem;
  }

  .guest-name {
    font-size: 1.6rem;
  }

  .date-number {
    font-size: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .calendar {
    max-width: 300px;
  }

  .calendar-day {
    font-size: 0.9rem;
    padding: 6px 0;
  }

  .cta-button {
    padding: 10px 18px;
    font-size: 0.7rem;
  }

  .color-carousel {
    gap: 12px;
  }

  .color-swatch {
    width: 42px;
    height: 42px;
  }

  .color-label {
    font-size: 0.55rem;
  }

  .carousel-image {
    min-width: 220px;
    height: 300px;
  }

  .carousel-nav {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}
