/* ══════════════════════════════════════════════════
   RESET & VARIÁVEIS
══════════════════════════════════════════════════ */

@font-face {
    font-family: "Parfumerie Script Pro";
    src: url("ParfumerieScriptPro.ttf") format("truetype");
    /* Se o arquivo estiver na pasta 'fonts' que está um nível acima do seu CSS */
    /* Ou src: url("fonts/ParfumerieScriptPro.ttf") format("truetype"); se estiver na mesma pasta */
}

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

:root {
  --gold:        #C9A96E;
  --gold-dark:   #A8844E;
  --gold-light:  #E8D5B0;
  --cream:       #FAF7F2;
  --white:       #FFFFFF;
  --sage:        #8A9E85;
  --sage-light:  #C8D8C5;
  --charcoal:    #2C2C2C;
  --gray:        #6B6B6B;
  --gray-light:  #F0EDE8;

  --font-title:  'Cormorant Garamond', serif;
  --font-body:   'Lato', sans-serif;

  --radius:      12px;
  --shadow:      0 8px 40px rgba(0,0,0,0.10);
  --shadow-sm:   0 2px 16px rgba(0,0,0,0.07);
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════
   UTILITÁRIOS
══════════════════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* ══════════════════════════════════════════════════
   ANIMAÇÕES DE SCROLL
══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   BOTÕES
══════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-small {
  padding: 10px 22px;
  font-size: 0.78rem;
}

.btn-full {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════
   ORNAMENTO / DIVISOR
══════════════════════════════════════════════════ */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.divider-ornament span {
  display: block;
  width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.divider-ornament .diamond {
  width: auto;
  height: auto;
  background: none;
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 1;
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(10px);
  padding: 12px 40px;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: "Parfumerie Script Pro";
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--charcoal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--charcoal);
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 15px;
  background:
    url('6a52b623-4062-40f8-8789-e9a5883dec4e.jpeg')
    bottom/cover no-repeat fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Parfumerie Script Pro";
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top:50px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: -20px 32px 32px;
}

.count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.count-block span {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  min-width: 70px;
  text-align: center;
}

.count-block label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ══════════════════════════════════════════════════
   SECTION PADRÃO
══════════════════════════════════════════════════ */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.1;
}

.section-subtitle {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--gray);
  line-height: 1.8;
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════
   OS NOIVOS
══════════════════════════════════════════════════ */
.noivos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.noivo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.noivo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.noivo-photo {
  width: 100%;
  height: 410px;
  background-size: cover;
  background-position: center top;
}

.noivo-info {
  padding: 28px;
}

.noivo-info h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.noivo-quote {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.6;
}

.noivo-info p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
}

/* Centro coração */
.noivos-heart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.heart-icon {
  font-size: 3.5rem;
  color: var(--gold);
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  56% { transform: scale(1); }
}

.noivos-story {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   GALERIA
══════════════════════════════════════════════════ */
.gallery-section {
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 12px;
}

.gallery-item {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
  filter: brightness(0.92);
}

.gallery-item:hover {
  transform: scale(1.02);
  filter: brightness(1);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* ══════════════════════════════════════════════════
   O LOCAL
══════════════════════════════════════════════════ */
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.local-nome {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.local-endereco {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}

.local-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.local-features li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.local-features li strong {
  display: block;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.local-features li p {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.7;
}

.local-map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* ══════════════════════════════════════════════════
   PRESENTES
══════════════════════════════════════════════════ */
.presentes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.presente-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--gold-light);
}

.presente-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-top-color: var(--gold);
}

.presente-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.presente-card h4 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.presente-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════
   MODAL PIX
══════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 100%;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--gray);
  cursor: pointer;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--charcoal); }

.modal h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.pix-info {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.pix-info p {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 2;
}

/* ══════════════════════════════════════════════════
   RSVP — FORMULÁRIO
══════════════════════════════════════════════════ */
.rsvp-search {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.rsvp-search label {
  display: block;
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.search-group {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.search-group input {
  flex: 1;
}

.search-feedback {
  margin-top: 16px;
  font-size: 0.875rem;
  min-height: 24px;
  color: var(--gold-dark);
}

.rsvp-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
}

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

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
  background: var(--white);
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio personalizado */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--charcoal);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-bottom: 0;
}

.radio-label input[type="radio"] {
  display: noneX;
}

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

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

.radio-label input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--gold);
  border-radius: 50%;
}

/* Sucesso */
.rsvp-success {
  text-align: center;
  padding: 60px 24px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: successPop 0.5s ease;
}

@keyframes successPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.rsvp-success h3 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.rsvp-success p {
  color: var(--gray);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--charcoal);
  padding: 60px 24px;
  text-align: center;
}

.footer-names {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.footer-date {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-quote {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 460px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .presentes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .noivos-grid {
    grid-template-columns: 1fr;
  }
  .noivos-heart {
    max-width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item.tall, .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250,247,242,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px 40px;
    gap: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    color: var(--charcoal);
    font-size: 0.9rem;
  }
  .navbar {
    padding: 16px 24px;
  }
  .nav-logo {
    color: var(--white);
  }
  .navbar.scrolled .nav-logo {
    color: var(--gold);
  }

  /* Seções */
  .section {
    padding: 70px 0;
  }
  .local-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .presentes-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .rsvp-form {
    padding: 32px 24px;
  }
  .rsvp-search {
    padding: 32px 24px;
  }
  .search-group {
    flex-direction: column;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item {
    height: 240px;
  }
  .countdown {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .presentes-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 4.2em;
  }
  .count-block span {
    font-size: 2.2rem;
    min-width: 50px;
  }
}

/* ══════════════════════════════════════════════════
   VITRINE DE PRESENTES
══════════════════════════════════════════════════ */

/* Filtros */
.vitrine-filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filtro-btn {
  padding: 9px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--gold-light);
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filtro-btn:hover,
.filtro-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201,169,110,0.35);
  transform: translateY(-1px);
}

/* Grid de produtos */
.vitrine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card do produto */
.produto-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.produto-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

/* Badge */
.produto-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: var(--white);
  color: var(--sage);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.produto-badge.presente-especial {
  background: var(--gold);
  color: var(--white);
}

.produto-badge.presente-ganho {
  background: var(--sage);
  color: var(--white);
}

/* Imagem do produto */
.produto-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.produto-img-ganho {
  filter: grayscale(60%);
  opacity: 0.75;
}

/* Overlay com botão ao hover */
.produto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.produto-card:hover .produto-overlay {
  opacity: 1;
}

.btn-ver {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.8);
  padding: 10px 22px;
  border-radius: 50px;
  transition: var(--transition);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

.btn-ver:hover {
  background: var(--white);
  color: var(--charcoal);
}

/* Card Pix especial */
.produto-img-pix {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-logo {
  font-size: 4rem;
}

/* Infos do produto */
.produto-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.produto-categoria {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
}

.produto-nome {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  line-height: 1.3;
}

.produto-desc {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

/* Footer do card */
.produto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--gray-light);
  padding-top: 14px;
  margin-top: auto;
}

.produto-preco {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.produto-preco-ganho {
  color: var(--gray);
  text-decoration: line-through;
  font-size: 1.1rem;
}

.btn-ganho {
  background: var(--gray-light);
  color: var(--gray);
  border-color: var(--gray-light);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Mensagem vitrine vazia */
.vitrine-vazia {
  text-align: center;
  padding: 48px;
  color: var(--gray);
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.2rem;
}

/* ── Responsivo ── */
@media (max-width: 1024px) {
  .vitrine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .vitrine-grid {
    grid-template-columns: 1fr;
  }
  .produto-img {
    height: 200px;
  }
  .vitrine-filtros {
    gap: 8px;
  }
  .filtro-btn {
    font-size: 0.7rem;
    padding: 8px 16px;
  }
}

/* ══════════════════════════════════════════════════
   TOAST NOTIFICAÇÃO
══════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 16px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: var(--shadow);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  white-space: nowrap;
}

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

.toast-sucesso { background: var(--sage); }
.toast-erro    { background: #c0392b; }
.toast-aviso   { background: var(--gold); }

/* Badge Pix */
.produto-badge.presente-pix {
  background: #009688;
  color: #fff;
  font-size: 0.7rem;
}

/* Fundo especial do card Pix */
.produto-img-pix {
  background: linear-gradient(135deg, #009688, #4db6ac);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-logo {
  font-size: 3.2rem;
}

/* ═══════════════════════════════════════════
   MODAL DE PAGAMENTO - DESIGN REFINADO
   ═══════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  padding: 30px;
  max-width: 580px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #a0a0a0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #666;
}

/* ── Cabeçalho do Produto no Modal ── */
.modal-header-produto {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0; /* Linha divisória suave */
}

.modal-produto-icone {
  width: 65px;
  height: 65px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.8rem; /* Ícone maior e mais impactante */
  background: linear-gradient(135deg, #f8f3ed, #e8dcd0); /* Gradiente suave */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Sombra mais pronunciada */
  flex-shrink: 0;
}

.modal-produto-categoria {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9a8b7a;
  margin-bottom: 5px;
  font-weight: 600;
}

.modal-produto-nome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; /* Nome do presente em destaque */
  font-weight: 700;
  color: #4a3a2a;
  margin: 0;
  line-height: 1.2;
}

.modal-produto-preco {
  font-size: 1.2rem;
  font-weight: 700;
  color: #b5835a; /* Cor dourada para o preço */
  margin-top: 10px;
}

.modal-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e0d9d0, transparent);
  margin: 25px 0;
}

/* ── Opções de Cotas no Modal ── */
.modal-opcoes-cotas {
  margin-bottom: 30px;
}

.modal-opcoes-cotas-titulo {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7762;
  margin-bottom: 20px;
}

.modal-opcoes-cotas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .modal-opcoes-cotas-grid {
    grid-template-columns: 1fr;
  }
}

.modal-opcao-cartao {
  position: relative;
  display: block;
  cursor: pointer;
}

.modal-opcao-cartao input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal-opcao-cartao-inner {
  height: 100%;
  border-radius: 16px;
  border: 2px solid #e3d9cf;
  padding: 18px;
  background: #fdfcf9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease-out;
}

.modal-opcao-cartao:hover .modal-opcao-cartao-inner {
  border-color: #c9aa87;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.modal-opcao-cartao input[type="radio"]:checked + .modal-opcao-cartao-inner {
  border-color: #b5835a;
  background: #fdf5ec;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.modal-opcao-cartao-header {
  display: flex;
  justify-content: flex-start;
}

.modal-pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.modal-pill-total {
  color: #5a4a35;
  background: #f1e5d6;
}

.modal-pill-cota {
  color: #234c3f;
  background: #d2eee3;
}

.modal-opcao-cartao h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #4a3a2a;
}

.modal-opcao-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #7a6b5a;
  line-height: 1.5;
}

.modal-opcao-cotas-controle {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-opcao-cotas-label-interna {
  font-size: 0.85rem;
  color: #6a5a46;
}

.modal-select-cotas {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid #decec0;
  background-color: #fbf8f3;
  font-size: 0.95rem;
  color: #3f3a33;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b5835a' stroke-width='1.8' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 7px;
}

.modal-select-cotas:focus {
  outline: none;
  border-color: #b5835a;
  background-color: #fdf5ec;
}

.modal-opcao-valor {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #b5835a;
}

.modal-opcoes-cotas-nota {
  margin-top: 15px;
  font-size: 0.8rem;
  text-align: center;
  color: #9a8b7a;
}

/* Ajustes para os campos de formulário padrão dentro do modal */
.modal .form-group {
  margin-bottom: 20px;
}

.modal .form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal .form-group input,
.modal .form-group textarea {
  padding: 12px 15px;
  border: 1.5px solid #e0d9d0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #333;
  background-color: #fdfcfa;
  transition: border-color 0.2s ease;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
  outline: none;
  border-color: #b5835a;
  background-color: #fdf5ec;
}

.modal .btn-full {
  margin-top: 25px;
  padding: 15px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.pagamento-seguro {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 15px;
}

/* Loading Spinner */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #b5835a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal #pagamentoLoading p {
  text-align: center;
  color: #666;
  font-size: 1rem;
}

/* Media Queries para responsividade */
@media (max-width: 480px) {
  .modal {
    padding: 20px;
    width: 95%;
  }
  .modal-header-produto {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .modal-produto-icone {
    width: 55px;
    height: 55px;
    font-size: 2.2rem;
  }
  .modal-produto-nome {
    font-size: 1.5rem;
  }
  .modal-produto-preco {
    font-size: 1.1rem;
  }
  .modal-opcoes-cotas-grid {
    grid-template-columns: 1fr;
  }
  .modal-opcao-cartao-inner {
    padding: 15px;
  }
  .modal-pill {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  .modal-opcao-cartao h4 {
    font-size: 1rem;
  }
  .modal-opcao-desc {
    font-size: 0.8rem;
  }
  .modal-select-cotas {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  .modal-opcao-valor {
    font-size: 0.9rem;
  }
  .modal .btn-full {
    padding: 12px;
    font-size: 1rem;
  }
}

/* ── OPÇÕES DE PRESENTE NO MODAL (NOVO DESIGN) ───────────── */

.modal-opcoes-presente {
  margin-bottom: 30px;
}

.modal-opcoes-presente-titulo {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a3a2a;
  margin-bottom: 25px;
}

.modal-opcoes-presente-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; /* Espaçamento maior entre os cartões */
}

@media (max-width: 640px) {
  .modal-opcoes-presente-cards {
    grid-template-columns: 1fr; /* Empilha em telas menores */
  }
}

.opcao-presente-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.opcao-presente-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opcao-presente-card-inner {
  height: 100%;
  border-radius: 18px; /* Cantos mais arredondados */
  border: 2px solid #e3d9cf;
  padding: 25px; /* Mais padding interno */
  background: #fdfcf9;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centraliza o conteúdo */
  text-align: center;
  gap: 12px;
  transition: all 0.25s ease-out;
}

.opcao-presente-card:hover .opcao-presente-card-inner {
  border-color: #c9aa87;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Sombra mais suave e presente */
  transform: translateY(-3px); /* Efeito de "levantar" */
}

.opcao-presente-card input[type="radio"]:checked + .opcao-presente-card-inner {
  border-color: #b5835a; /* Borda dourada quando selecionado */
  background: #fdf5ec; /* Fundo mais claro quando selecionado */
  box-shadow: 0 12px 35px rgba(0,0,0,0.15); /* Sombra mais forte */
  transform: translateY(-3px);
}

.opcao-presente-card-icon {
  font-size: 2; /* Ícone grande e visível */
  margin-bottom: 10px;
}

.opcao-presente-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #4a3a2a;
  margin: 0;
}

.opcao-presente-card-desc {
  font-size: 0.9rem;
  color: #7a6b5a;
  line-height: 1.5;
  margin-bottom: 15px;
}

.opcao-presente-card-valor {
  font-size: 1.2rem;
  font-weight: 700;
  color: #b5835a;
  margin-top: auto; /* Empurra para baixo */
}

/* Controle de cotas dentro do cartão */
.opcao-presente-cotas-controle {
  width: 100%; /* Ocupa a largura total do card */
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opcao-presente-cotas-label {
  font-size: 0.85rem;
  color: #6a5a46;
}

.opcao-presente-cotas-valor {
  font-size: 1rem;
  font-weight: 700;
  color: #b5835a;
  margin-top: 5px;
}

/* O select de cotas já usa a classe .modal-select-cotas que já está estilizada */

.modal-opcoes-presente-nota {
  margin-top: 25px;
  font-size: 0.85rem;
  text-align: center;
  color: #9a8b7a;
}

/* ═══════════════════════════════════════════
   MODAL DE PAGAMENTO - DESIGN RESPONSIVO
   ═══════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  padding: 30px; /* Padding padrão para telas maiores */
  max-width: 100%; /* Largura máxima para computadores */
  width: 90%; /* Ocupa 90% da largura disponível */
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh; /* Limita a altura máxima para não estourar em telas pequenas */
  overflow-y: auto; /* Adiciona scroll se o conteúdo for maior que a altura */
}

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #a0a0a0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #666;
}

/* ── Cabeçalho do Produto no Modal ── */
.modal-header-produto {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-produto-icone {
  width: 65px;
  height: 65px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.8rem;
  background: linear-gradient(135deg, #f8f3ed, #e8dcd0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.modal-produto-categoria {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9a8b7a;
  margin-bottom: 5px;
  font-weight: 600;
}

.modal-produto-nome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #4a3a2a;
  margin: 0;
  line-height: 1.2;
}

.modal-produto-preco {
  font-size: 1.2rem;
  font-weight: 700;
  color: #b5835a;
  margin-top: 10px;
}

.modal-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e0d9d0, transparent);
  margin: 25px 0;
}

/* ── Opções de Presente no Modal (Novo Design) ── */

.modal-opcoes-presente {
  margin-bottom: 30px;
}

.modal-opcoes-presente-titulo {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a3a2a;
  margin-bottom: 25px;
}

.modal-opcoes-presente-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.opcao-presente-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.opcao-presente-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opcao-presente-card-inner {
  height: 100%;
  border-radius: 18px;
  border: 2px solid #e3d9cf;
  padding: 9px;
  background: #fdfcf9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all 0.25s ease-out;
}

.opcao-presente-card:hover .opcao-presente-card-inner {
  border-color: #c9aa87;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.opcao-presente-card input[type="radio"]:checked + .opcao-presente-card-inner {
  border-color: #b5835a;
  background: #fdf5ec;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.opcao-presente-card-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.opcao-presente-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #4a3a2a;
  margin: 0;
}

.opcao-presente-card-desc {
  font-size: 0.9rem;
  color: #7a6b5a;
  line-height: 1.5;
  margin-bottom: 15px;
}

.opcao-presente-card-valor {
  font-size: 1.2rem;
  font-weight: 700;
  color: #b5835a;
  margin-top: auto;
}

/* Controle de cotas dentro do cartão */
.opcao-presente-cotas-controle {
  width: 100%;
  margin-top: -10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opcao-presente-cotas-label {
  font-size: 0.85rem;
  color: #6a5a46;
}

.opcao-presente-cotas-valor {
  font-size: 1rem;
  font-weight: 700;
  color: #b5835a;
  margin-top: 5px;
}

.modal-select-cotas {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid #decec0;
  background-color: #fbf8f3;
  font-size: 0.95rem;
  color: #3f3a33;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b5835a' stroke-width='1.8' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 7px;
}

.modal-select-cotas:focus {
  outline: none;
  border-color: #b5835a;
  background-color: #fdf5ec;
}

.modal-opcoes-presente-nota {
  margin-top: 25px;
  font-size: 0.85rem;
  text-align: center;
  color: #9a8b7a;
}

/* Ajustes para os campos de formulário padrão dentro do modal */
.modal .form-group {
  margin-bottom: 20px;
}

.modal .form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal .form-group input,
.modal .form-group textarea {
  padding: 12px 15px;
  border: 1.5px solid #e0d9d0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #333;
  background-color: #fdfcfa;
  transition: border-color 0.2s ease;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
  outline: none;
  border-color: #b5835a;
  background-color: #fdf5ec;
}

.modal .btn-full {
  margin-top: 25px;
  padding: 15px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.pagamento-seguro {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 15px;
}

/* Loading Spinner */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #b5835a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal #pagamentoLoading p {
  text-align: center;
  color: #666;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════
   MEDIA QUERIES PARA RESPONSIVIDADE
   ═══════════════════════════════════════════ */

/* Para telas menores que 768px (tablets e celulares) */
@media (max-width: 768px) {
  .modal {
    padding: 25px; /* Reduz o padding do modal */
    width: 95%; /* Ocupa mais largura em telas menores */
    max-width: 95%; /* Garante que não ultrapasse 95% */
  }

  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 1.3rem;
  }

  .modal-header-produto {
    flex-direction: column; /* Empilha o ícone e as informações */
    text-align: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .modal-produto-icone {
    width: 55px;
    height: 55px;
    font-size: 2.2rem;
  }

  .modal-produto-categoria {
    font-size: 0.7rem;
    margin-bottom: 3px;
  }

  .modal-produto-nome {
    font-size: 1.5rem;
  }

  .modal-produto-preco {
    font-size: 1.1rem;
    margin-top: 8px;
  }

  .modal-divider {
    margin: 20px 0;
  }

  .modal-opcoes-presente-titulo {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .modal-opcoes-presente-cards {
    grid-template-columns: 1fr; /* Empilha os cartões de opção */
    gap: 15px;
  }

  .opcao-presente-card-inner {
    padding: 20px; /* Reduz o padding interno dos cartões */
    gap: 10px;
  }

  .opcao-presente-card-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
  }

  .opcao-presente-card-title {
    font-size: 1.1rem;
  }

  .opcao-presente-card-desc {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .opcao-presente-card-valor {
    font-size: 1.1rem;
  }

  .opcao-presente-cotas-label {
    font-size: 0.8rem;
  }

  .modal-select-cotas {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .opcao-presente-cotas-valor {
    font-size: 0.95rem;
  }

  .modal-opcoes-presente-nota {
    font-size: 0.75rem;
    margin-top: 20px;
  }

  .modal .form-group {
    margin-bottom: 15px;
  }

  .modal .form-group label {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .modal .form-group input,
  .modal .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .modal .btn-full {
    margin-top: 20px;
    padding: 12px;
    font-size: 1rem;
  }

  .pagamento-seguro {
    font-size: 0.8rem;
    margin-top: 10px;
  }
}

/* Para telas muito pequenas (celulares antigos, etc.) */
@media (max-width: 400px) {
  .modal {
    padding: 15px;
  }
  .modal-header-produto {
    gap: 10px;
  }
  .modal-produto-icone {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
  .modal-produto-nome {
    font-size: 1.3rem;
  }
  .modal-produto-preco {
    font-size: 1rem;
  }
  .modal-opcoes-presente-titulo {
    font-size: 1.2rem;
  }
  .opcao-presente-card-inner {
    padding: 15px;
  }
  .opcao-presente-card-icon {
    font-size: 2rem;
  }
  .opcao-presente-card-title {
    font-size: 1rem;
  }
  .opcao-presente-card-desc {
    font-size: 0.75rem;
  }
  .opcao-presente-card-valor {
    font-size: 1rem;
  }
}

/* Estilos para a barra de rolagem do próprio modal, se ele for o elemento rolavel */
.modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal::-webkit-scrollbar-track {
  background: #f8f3ed;
  border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
  background-color: #b5835a;
  border-radius: 10px;
  border: 2px solid #f8f3ed;
}

.modal::-webkit-scrollbar-thumb:hover {
  background-color: #a07550;
}

.modal {
  scrollbar-width: thin;
  scrollbar-color: #b5835a #f8f3ed;
}

/* ═ TOAST CONTAINER CENTRAL ═ */

.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  width: 100%;
  max-width: 360px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ═ TOAST CARD ═ */

.toast-message {
  width: 100%;
  background: #1f1f23;
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  pointer-events: auto;
}

/* Aparição/saída suave */
.toast-message.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Estrutura interna: ícone + conteúdo */
.toast-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Ícone */
.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.08);
}

/* Conteúdo (título + texto) */
.toast-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Título */
.toast-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;        /* em vez de uppercase */
  letter-spacing: 0.03em;
}

/* Texto */
.toast-text {
  color: #f5f5f5;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ═ VARIAÇÕES POR TIPO ═ */

.toast-success {
  background: #155724;
}

.toast-success .toast-icon {
  background: rgba(40, 167, 69, 0.2);
}

.toast-error {
  background: #7b2525;
}

.toast-error .toast-icon {
  background: rgba(220, 53, 69, 0.2);
}

.toast-info {
  background: #114b5f;
}

.toast-info .toast-icon {
  background: rgba(23, 162, 184, 0.2);
}

/* Pequenos ajustes responsivos */
@media (max-width: 480px) {
  .toast-container {
    max-width: 90%;
  }

  .toast-message {
       padding: 10px 12px;
    border-radius: 10px;
  }
  .toast-title {
    font-size: 0.85rem;
  }
  .toast-text {
    font-size: 0.85rem;
  }

  .toast-icon {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}

.presente-indisponivel {
  opacity: 0.6;
  position: relative;
}

.presente-indisponivel .btn-presentear {
  pointer-events: none;
  background: #ccc;
  cursor: default;
}

.presente-selo-indisponivel {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #7b2525;
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
}