:root {
  --accent: #c471ed;
  --accent2: #6e8efb;
  --bg: #faf8ff;
  --card: #ffffff;
  --muted: #666
}

* {
  box-sizing: border-box
}

body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Apple Color Emoji, Segoe UI Emoji, Arial;
  background: var(--bg);
  margin: 0;
  color: #111
}

header {
  color: #fff;
  padding: 28px 20px
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px
}

nav {
  display: flex;
  gap: 12px;
  align-items: center
}

nav a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600
}

.hero {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between
}

.hero .left {
  max-width: 640px
}

.hero h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 36px)
}

.hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.95)
}

section {
  margin: 28px 0
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(30, 30, 60, 0.06)
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.full {
  grid-column: 1/-1
}

.gift {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #eee
}

.gift .meta {
  display: flex;
  gap: 12px;
  align-items: center
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  cursor: pointer
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent)
}

.muted {
  color: var(--muted)
}

form input,
form textarea,
select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e6f0
}

.rsvp-row {
  display: flex;
  gap: 8px
}

.rsvp-row>* {
  flex: 1
}

.mural-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.mural-item {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #f0eefb;
  background: linear-gradient(180deg, #fff, #fbf9ff)
}

footer {
  padding: 20px;
  text-align: center;
  color: #777
}

@media(max-width:800px) {
  .grid {
    grid-template-columns: 1fr
  }

  .hero {
    flex-direction: column;
    align-items: flex-start
  }
}

/* ===== HERO HEADER COM VÍDEO ===== */
.hero-header {
  position: relative;
  width: 100%;
  height: 90vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
}

/* Vídeo de fundo */
.hero-header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Overlay escuro sobre o vídeo */
.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* ===== NAV ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 40px;
  background: #9a01c4e6; /* ou transparente, ou preto */
  backdrop-filter: none;
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(.2,.9,.2,1), box-shadow 300ms;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}


.logo {
  font-family: 'Great Vibes', cursive;
  font-size: 38px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #f8d7ff;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-top: auto;
  padding: 80px 60px;
  text-align: left;
}

.hero-content h1 {
  font-family: 'Melinda',"great vibes", cursive;
  font-size: clamp(56px, 8vw, 96px);
  margin-bottom: 10px;
  line-height: 1.1;
  text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-content .muted {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 800px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    padding: 60px 20px;
    text-align: center;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 64px;
  }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 800px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    padding: 60px 20px;
    text-align: center;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 64px;
  }
}

@font-face {
  font-family: 'Melinda';
  src: url('/fonts/Melinda.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.guest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.guest-name {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e6f0;
}

.attend-options {
  display: flex;
  gap: 10px;
}

.remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #c33;
  transition: transform 0.2s ease;
}

.remove-btn:hover {
  transform: scale(1.1);
}

.autocomplete-wrapper {
  position: relative;
  flex: 1;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  max-height: 180px;
  overflow-y: auto;
  z-index: 5;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.autocomplete-list li {
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.autocomplete-list li:hover {
  background: #f5f5ff;
}

.guest-name {
  border: 1px solid #e6e6f0;
  border-radius: 8px;
  outline: none;
  box-shadow: none;
}

.guest-name:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(196, 113, 237, 0.2);
  /* borda roxa suave ao focar */
}

/* garante que a logo seja um elemento flexível e à direita */
.top-nav {
  display: flex;
  justify-content: space-between; /* já estava */
  align-items: center;
  padding: 20px 60px;
  box-sizing: border-box;
}

/* força a ordem: nav-links primeiro, logo por último (direita) */


.logo {          /* faz a logo ficar à direita no flex */
  display: flex;
  align-items: center;
  gap: 10px;
}

/* estilo da imagem da logo */
.logo-img {
  display: block;
  width: 64px;          /* ajuste o tamanho conforme quiser (48-96px são comuns) */
  height: 64px;
  object-fit: cover;    /* mantém aspecto e preenche a área */
  border-radius: 8px;   /* se quiser cantos arredondados; remova se quiser quadrada/perfeita */
 filter: brightness(0) invert(1); /* ← transforma roxo em branco */
}

/* responsividade: em telas pequenas colocamos a logo antes/numa linha separada */
@media (max-width: 800px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }
  /* na versão mobile, deixamos a logo acima (opcional) */
  .nav-links { order: 2; }
  .logo { order: 1; }
  .logo-img {
    width: 72px;
    height: 72px;
  }
}

/* ===== SUAVE FADE DO VÍDEO ===== */
.hero-header video {
  opacity: 0;
  transition: opacity 2s ease-in-out;
  filter:none;
}

.hero-header video.visible {
  opacity: 1;
}

/* Efeito extra de escurecimento suave no final */
.fade-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 2;
  pointer-events: none;
}

.mapa a {
  color: inherit;                 /* usa a cor do texto local, não azul */
  text-decoration: none;          /* remove o sublinhado padrão */
  position: relative;             /* necessário pro pseudo-elemento funcionar */
  font-weight: 500;               /* deixa o texto um pouco mais forte */
  transition: color 0.3s ease;    /* animação suave da cor */
}

/* cria a linha que aparece ao passar o mouse */
.mapa a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: currentColor; /* usa a cor atual do texto */
  transition: width 0.3s ease;
}

/* efeito no hover */
.mapa a:hover::after {
  width: 100%;
}

/* ===== SMOOTH SCROLL & FIXED NAV ===== */
/* Smooth behavior for anchor navigation (basic) */
html {
  scroll-behavior: smooth;
}

/* Make top nav fixed and stylized for show/hide on scroll */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 40px; /* ajusta se quiser mais/menos espaço */
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(6px);
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(.2,.9,.2,1), box-shadow 300ms;
  z-index: 9999;
  box-shadow: none;
}

/* hidden state (when scrolling down) */
.top-nav.hidden {
  transform: translateY(-110%);
  box-shadow: none;
}

/* visible state (when scrolling up) : subtle shadow */
.top-nav.visible {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(20,20,40,0.08);
}

/* ensure hero content isn't hidden under fixed nav */
.hero-content {
  margin-top: 36px; /* espaço interno para não colidir com nav */
}

/* push the main content down so fixed nav doesn't cover sections when linking */
main.container {
  padding-top: 88px; /* ajuste conforme a altura real do seu nav (padrão ~88px) */
}

/* Make link hover feel smooth */
.nav-links a {
  transition: color 220ms ease, transform 220ms ease;
}
.nav-links a:hover {
  transform: translateY(-2px);
}

/* When a link is active (clicked), give subtle focus */
.nav-links a:active {
  transform: translateY(0);
}

/* Slightly smoother video fade (already had, but reforçar) */
.hero-header video {
  transition: opacity 1200ms cubic-bezier(.2,.9,.2,1), transform 900ms ease;
  will-change: opacity, transform;
}

/* Optional: tiny shadow under hero header when scrolled */
.header-shadow {
  box-shadow: 0 8px 30px rgba(10,10,30,0.06);
}

/* ===== NAV TRANSPARENTE NO TOPO / ROXA AO SUBIR ===== */

/* estado inicial: transparente */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 40px;
  background: transparent;
  backdrop-filter: none;
  transform: translateY(0);
  transition:
    background 300ms ease,
    backdrop-filter 300ms ease,
    transform 360ms cubic-bezier(.2,.9,.2,1),
    box-shadow 300ms ease;
  z-index: 9999;
  box-shadow: none;
}

/* quando o usuário rola para baixo -> nav sobe e some */
.top-nav.hidden {
  transform: translateY(-110%);
}

/* quando o usuário rola para cima -> nav aparece com fundo roxo */
.top-nav.scrolled-up {
  background: rgba(196, 113, 237, 0.55); /* roxo translúcido */
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* quando chegar no topo novamente: volta a ficar transparente */
.top-nav.at-top {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

/* corrige o deslocamento do conteúdo por causa do nav fixo */
main.container {
  padding-top: 88px; /* ajuste conforme o tamanho do seu nav real */
}

/* ===== Timeline / Carrossel (4 itens por página, 16 fotos total) ===== */
.timeline-section .history-intro { margin-bottom: 18px; color: #333; }

.timeline-wrap { width:100%; overflow:hidden; position:relative; }
.timeline-carousel {
  display:flex;
  flex-wrap:nowrap;            /* evita quebra */
transition: transform 900ms cubic-bezier(.25,.8,.25,1); /* bem suave */
  will-change: transform;
}

/* cada grupo é uma "página" ocupando 100% do container */
.timeline-group {
  flex: 0 0 100%;
  display:flex;
  gap:18px;
  justify-content:center;
  align-items:center;
  padding:24px 10px;
  box-sizing:border-box;
  position:relative;
}

/* linha do tempo sutil */
.timeline-group::before {
  content:"";
  position:absolute;
  left:6%;
  right:6%;
  height:2px;
  top:50%;
  background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.04));
  z-index:0;
  border-radius:2px;
}

/* itens (4 por grupo) */
.timeline-item {
  width: calc((100% - 3 * 18px) / 4); /* 4 itens por página */
  max-width: 240px;
  background:#fff;
  padding:8px;
  border-radius:8px;
  border:6px solid #fff;
  box-shadow: 0 10px 30px rgba(10,10,30,0.08);
  position:relative;
  transform-origin:center;
  z-index:2;
  text-align:center;
}

.timeline-item img {
  display:block;
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:6px;
}

.timeline-item figcaption {
  margin-top:8px;
  font-size:13px;
  color:#444;
}

/* rotações esporádicas para o visual "polaroid" */
.timeline-item:nth-child(1) { transform: rotate(-3deg); margin-top:-18px; }
.timeline-item:nth-child(2) { transform: rotate(2deg); margin-top:8px; }
.timeline-item:nth-child(3) { transform: rotate(-1deg); margin-top:-6px; }
.timeline-item:nth-child(4) { transform: rotate(3deg); margin-top:14px; }

/* controles */
.timeline-controls {
   display:flex;
    justify-content:center; 
    align-items:center; 
    gap:12px; 
    margin-top:12px;
  
  }
.timeline-dots { display:flex; gap:8px; align-items:center; }
.timeline-dots button {
  width:10px; height:10px; border-radius:50%; border:none;
  background: rgba(0,0,0,0.12); transition:transform 180ms ease, background 180ms ease; cursor:pointer;
}
.timeline-dots button.active { background: var(--accent); transform: scale(1.25); border-radius: 50%; }

/* responsivo: 3 itens por página em medium, 2 em mobile */
@media (max-width:900px) {
  .timeline-item { width: calc((100% - 2 * 12px) / 3); max-width:220px; }
}
@media (max-width:600px) {
  .timeline-item { width: calc((100% - 1 * 8px) / 2); max-width:160px; }
}

/* ===== Correções: dots, botões e largura do container ===== */

/* Aumenta a largura máxima do container do site */
.container {
  max-width: 1200px; /* aumente para 1300px se quiser ainda mais largo */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Garantir que as bolinhas fiquem pequenas (dots de paginação) */
.timeline-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.12);
  transition: transform 180ms ease, background 180ms ease;
  cursor: pointer;
  box-shadow: none; /* remove qualquer sombra indesejada */
}
.timeline-dots button.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Estilo específico só para os botões Prev/Next (não afeta as dots)
   Usamos IDs para evitar que regras genéricas alterem as bolinhas */
#timelinePrev,
#timelineNext {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;           /* sem preenchimento */
  border: 2px solid var(--accent);   /* borda roxa */
  color: var(--accent);              /* seta roxa */
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

/* hover: sutil destaque (borda levemente mais escura e leve scale) */
#timelinePrev:hover,
#timelineNext:hover {
  transform: scale(1.08);
  border-color: var(--accent2);
  color: var(--accent2);
}

/* quando desabilitado (início/fim) */
#timelinePrev:disabled,
#timelineNext:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* caso exista regra genérica anterior que tornava .timeline-controls button grande,
   a especificidade pelos IDs acima garante que estes estilos prevaleçam. */
/* Arredondar apenas as imagens da seção Localização */
#localizacao img {
  border-radius: 10px;   /* ajuste o valor para mais ou menos arredondado */
  overflow: hidden;
}

/* ===== Dropdown Presentes (header) ===== */
.nav-links { display:flex; gap:18px; align-items:center; }

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropdown-toggle {
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
}

/* menu dropdown (invisível por padrão) */
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10,10,30,0.12);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 99999;
  border: 1px solid rgba(0,0,0,0.04);
}

/* link dentro do dropdown */
.nav-dropdown .dropdown-item {
  display: block;
  padding: 10px 12px;
  color: #3a2a4a;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease;
}
.nav-dropdown .dropdown-item:hover {
  background: rgba(196,113,237,0.08);
  color: var(--accent);
}

/* show dropdown on hover (desktop) */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}

/* mobile: toggle class 'open' via JS (handled in presents.html too) */
.nav-dropdown.open .dropdown-menu { display:flex; }

/* ===== Presentes page styles ===== */
.presentes-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
}

.presentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

/* card */
.presente-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(10,10,30,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  display:flex;
  flex-direction:column;
  gap:8px;
  position:relative;
  overflow:hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.presente-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(10,10,30,0.08); }

.presente-card img {
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius: 8px;
}

/* content area */
.presente-card h3 { font-size:15px; margin:6px 0 0; color:#352244; }
.presente-card .valor { font-weight:700; color:var(--accent); font-size:14px; margin-top:6px; }

/* actions */
.presente-actions { margin-top:auto; display:flex; gap:10px; justify-content:center; align-items:center; }

/* botão copy (outline) */
.btn-copy {
  padding:8px 12px;
  border-radius:999px;
  border:2px solid var(--accent);
  background:transparent;
  color:var(--accent);
  font-weight:700;
  cursor:pointer;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}
.btn-copy:hover { background:var(--accent); color:#fff; transform: translateY(-2px); }

/* botão marcar como comprado (filled) */
.btn-bought {
  padding:8px 12px;
  border-radius:999px;
  border:none;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition: opacity 140ms ease, transform 120ms ease;
}
.btn-bought[aria-pressed="true"] {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 18px rgba(120,60,200,0.12);
}

/* overlay 'Comprado' */
.presente-card.bought::after {
  content: "COMPRADO";
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-weight:700;
  padding:6px 10px;
  border-radius:8px;
  font-size:12px;
  z-index:5;
  transform: rotate(-6deg);
}

/* small toast */
.presentes-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding:10px 14px;
  border-radius:10px;
  z-index:999999;
  box-shadow: 0 8px 30px rgba(10,10,30,0.25);
}

/* responsivo: imagem menor */
@media (max-width:600px) {
  .presente-card img { height:140px; }
}

/* ===== Presentes: HERO + cards maiores (menos por fileira) ===== */

/* HERO da página de Presentes (foto dos noivos com overlay) */
/* ====== HERO DE PRESENTES — IGUAL AO HERO DO VÍDEO, MAS COM IMAGEM ====== */

.hero-img-wrapper {
  position: relative;
  width: 100%;
  height: 90vh; /* mesmo tamanho do seu vídeo */
  max-height: 900px;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* imagem de fundo */
.hero-img-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/5-IMG_9224.jpg'); /* TROQUE POR SUA FOTO */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.85);
  z-index: 0;
  transform: scale(1.05); /* dá um leve zoom cinematográfico como o vídeo */
}

/* overlay igual ao do vídeo */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.60) 75%
  );
  z-index: 1;
}

/* texto igual ao do vídeo */
.hero-img-text {
  position: absolute;
  z-index: 2;
  bottom: 18vh; /* igual ao texto do vídeo — alinhado */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
  color: white;
}

.hero-img-text h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-img-text p {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  opacity: 0.95;
}

/* responsivo */
@media (max-width: 700px) {
  .hero-img-wrapper {
    height: 70vh;
  }
  .hero-img-text {
    bottom: 14vh;
  }
}

/* GRID: menos produtos por fileira -> cards maiores */
.presentes-grid {
  display: grid;
  /* min cada card 300px -> menos por linha, mais espaço para imagem maior */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* CARD maior e mais espaçoso */
.presente-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(10,10,30,0.07);
  border: 1px solid rgba(0,0,0,0.03);
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: transform 220ms ease, box-shadow 220ms ease;
  min-height: 360px; /* garante altura agradável */
}

.presente-card img {
  width: 100%;
  height: 220px; /* imagem maior */
  object-fit: cover;
  border-radius: 10px;
}

/* título e valor maiores */
.presente-card h3 {
  font-size: 18px;
  margin: 6px 0 0;
  color: #2e1f3a;
}
.presente-card .valor {
  font-weight: 800;
  color: var(--accent);
  font-size: 15px;
}

/* ações alinhadas */
.presente-actions {
  margin-top: auto;
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
}

/* botões same as before (outline + filled) */
.btn-copy {
  padding:10px 14px;
  border-radius:999px;
  border:2px solid var(--accent);
  background:transparent;
  color:var(--accent);
  font-weight:700;
  cursor:pointer;
}
.btn-copy:hover { background:var(--accent); color:#fff; }

.btn-bought {
  padding:10px 14px;
  border-radius:999px;
  border:none;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.presente-card.bought { opacity: 0.85; transform: translateY(-4px); }

/* overlay COMPRADO permanece */
.presente-card.bought::after {
  content:"COMPRADO";
  position:absolute;
  top:12px;
  right:12px;
  background: rgba(0,0,0,0.75);
  color:#fff;
  font-weight:700;
  padding:6px 8px;
  border-radius:8px;
  font-size:12px;
  transform: rotate(-6deg);
  z-index: 6;
}

/* responsivo: em mobile mostramos 1 por linha para foco */
@media (max-width:720px) {
  .presentes-hero { height: 220px; }
  .presentes-grid { grid-template-columns: 1fr; gap:14px; }
  .presente-card { min-height: auto; }
  .presente-card img { height: 180px; }
}

/* ---------- HERO (imagem) compatível com hero-header do index ---------- */
/* versão em imagem do hero (substitui o vídeo) */
.hero-header.hero-header--image {
  position: relative;
  width: 100%;
  height: 90vh; /* mantém mesma altura do vídeo do index */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
}

/* div que mostra a imagem (background) */
.hero-header.hero-header--image .hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/img/5-IMG_9224.jpg'); /* <-- troque aqui para sua foto */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  filter: brightness(0.92);
  transition: transform 900ms ease;
}

/* leve zoom cinematográfico ao hover (opcional) */
.hero-header.hero-header--image:hover .hero-bg-image {
  transform: scale(1.05);
}

/* overlay idêntico ao do vídeo */
.hero-header.hero-header--image .fade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
  transition: opacity 600ms ease;
}

/* garante que o nav fique por cima da imagem */
.hero-header .top-nav {
  position: fixed; /* mantemos fixed para o comportamento de show/hide */
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;   /* por cima de tudo */
}

/* hero-content sobre a imagem (central/ajustável) */
.hero-header .hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;   /* empurra o conteúdo para baixo, como no index */
  padding: 80px 60px;
  max-width: 720px;
  text-align: left;
}

/* responsivo: ajusta altura em telas pequenas */
@media (max-width: 900px) {
  .hero-header.hero-header--image { height: 70vh; }
  .hero-header .hero-content { padding: 60px 28px; text-align: center; }
}

/* Se quiser o texto centralizado como no index (mantenha .hero-content--center) */
.hero-content--center { text-align: center; left:50%; transform: translateX(-50%); }

/* Ajuste extra: se seu layout adiciona padding-top no main, garanta que mostra o conteúdo corretamente */
main.presentes-container { padding-top: 110px; } /* já existe no seu HTML, mantenha esse valor se necessário */

/* ===== Hero text aligned left (colocado no canto esquerdo do hero) ===== */
.hero-content--left {
  position: relative;
  z-index: 2;
  margin-top: auto;    /* manter texto na "dobra" inferior, ajustável */
  padding: 80px 40px;
  max-width: 540px;    /* largura do bloco de texto */
  text-align: left;
  left: 0;             /* garante que fique do lado esquerdo visual */
}

/* Se a .hero-content tinha transform/left centrador, sobrescrevemos */


/* adaptações responsivas */
@media (max-width: 900px) {
  .hero-content--left {
    padding: 56px 28px;
    max-width: 68%;
    left: 0;
    text-align: left;
  }
}
@media (max-width: 600px) {
  .hero-content--left {
    padding: 36px 18px;
    max-width: 92%;
    text-align: left;
  }
}

/* ===== Presentes grid: 3 por linha no desktop, responsivo ===== */
.presentes-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 colunas fixas no desktop */
}

/* tablet: 2 colunas */
@media (max-width: 1024px) {
  .presentes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* mobile: 1 coluna */
@media (max-width: 600px) {
  .presentes-grid {
    grid-template-columns: 1fr;
  }
}

/* opcional: garante que os cards tenham boa altura e alinhamento */
.presente-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-height: 360px; /* ajuste se quiser mais/menos altura */
}

/* se quiser que o botão "Ver presentes" dentro do hero role para a grid:
   (adicione um <a href="#presentesGrid" class="btn hero-cta">Ver presentes</a> dentro do .hero-content--left)
*/
.hero-cta {
  margin-top: 14px;
  display: inline-block;
}

/* Margens laterais bonitas para os cards de presentes */
.presentes-grid {
  padding-left: 24px;
  padding-right: 24px;
}

/* aumenta um pouco em telas grandes */
@media (min-width: 1200px) {
  .presentes-grid {
    padding-left: 48px;
    padding-right: 48px;
  }
}


/* ===== estilos para título + categorias (demonstração) ===== */
.presentes-intro {
  text-align: center;
  margin: 20px 12px;
}
.page-main-title {
  font-size: clamp(20px, 3.6vw, 28px);
  margin: 0 0 6px;
  color: #2b1f3a;
  font-weight: 700;
}
.page-subtitle {
  margin: 0;
  color: #6b6370;
  font-size: 14px;
}

/* categorias / fileiras */
.categorias-demo {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.categoria-row {
  display: block;
}

.categoria-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #2b2240;
  text-align: left; /* título no canto esquerdo */
}

/* container onde ficam os cartões de cada fileira */
.row-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* reaproveita/garante compatibilidade com .presente-card já existente */
.row-cards .presente-card {
  margin: 0;
}

/* responsivo: empilhamento em telas pequenas */
@media (max-width: 720px) {
  .row-cards { grid-template-columns: 1fr; }
  .page-main-title { font-size: 22px; }
  .categorias-demo { padding: 0 10px; gap: 14px; }
}
/* ===== estilos para categorias e badge grande ===== */
.presentes-category { display:block; margin: 28px auto; position:relative; padding: 18px 20px; background:transparent; }
.presentes-category .category-title {
  font-weight:700;
  font-size:18px;
  color:#222;
  margin-bottom:12px;
  /* fica no canto esquerdo visualmente, como subtítulo */
  text-align:left;
}

/* grid de cards */
/* ===========================================
   3 CARDS POR LINHA (desktop)
   =========================================== */

/* ===========================================
   CARD COMPACTO
   =========================================== */

.presente-card:hover {
  transform: translateY(-3px);
}

/* ===========================================
   IMAGEM QUADRADA PERFEITA (SEM BUG)
   =========================================== */


/* ===========================================
   TEXTO DO CARD
   =========================================== */
.presente-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}

.presente-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.presente-body .valor {
  color: #6b6b7a;
  font-weight: 600;
  font-size: 14px;
}

/* ===========================================
   BOTÕES (MAIORES E CONFORTÁVEIS)
   =========================================== */
.presente-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.copy-pix-btn,
.btn-bought {
  min-width: 115px;
  padding: 10px 12px !important;
  font-size: 14px !important;
  border-radius: 10px;
}

/* ===========================================
   BADGE DE COMPRADO (GRANDE, VERMELHA)
   =========================================== */
.bought-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 60px;
  height: 60px;
  font-size: 32px;
  border-radius: 50%;
  background: #ff2d2d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.2);
  transition: 0.28s ease;
  pointer-events: none;
}

.presente-card.bought .bought-badge {
  opacity: 1;
  transform: scale(1);
}

/* remove qualquer ✔ escondido antigo */
.presente-card .check-icon,
.presente-card .checkmark,
.presente-card .presente-check {
  display: none !important;
}

/* ===========================================
   RESPONSIVIDADE
   =========================================== */

/* =====================================
   IMAGEM QUADRADA VISÍVEL (ESTILO HISTÓRIA)
   ===================================== */


.presente-media {
  width: 100%;
  aspect-ratio: 1 / 1;   /* QUADRADO REAL */
  overflow: hidden;
  border-radius: 12px;
}

.presente-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* igual ao carrossel */
  display: block;
  border-radius: 12px;
}

/* =====================================
   CARD COMPACTO
   ===================================== */
.presente-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  position: relative;
}

/* =====================================
   GRID 3 POR LINHA
   ===================================== */
.present-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* RESPONSIVO */
@media (max-width:1000px) {
  .present-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:650px) {
  .present-list {
    grid-template-columns: 1fr;
  }
}

/* filtro horizontal e estilo 'gordinho' */
#present-filter { margin-bottom: 12px; display:flex; align-items:center; gap:12px; }
#present-filter .filter-wrap { display:flex; gap:10px; }
#present-filter .filter-btn {
  padding:10px 16px;
  border-radius:12px;
  border:1px solid #e6e6f0;
  background:transparent;
  cursor:pointer;
  font-weight:600;
  white-space:nowrap;
  min-width: auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
#present-filter .filter-btn.active {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}
@media(max-width:900px){
  #present-filter { flex-wrap:wrap; }
}


/* ===== Ajuste de espaçamento entre filtro, título e grid ===== */

.section-title {
  margin-top: 24px;    /* distância fixa entre o filtro e o título */
  margin-bottom: 16px; /* distância fixa entre o título e os cards */
  padding: 0;
}

.presentes-container {
  margin-top: 0 !important; /* evita espaçamentos irregulares herdados */
}

.presente-card {
  margin-top: 0 !important;  /* impede cards de criarem gaps extras */
}

#present-filter {
  margin-bottom: 20px;
}

/* Padroniza espaço entre filtro -> título -> cards */
#present-filter { margin-bottom: 18px; } /* espaço fixo abaixo do filtro */

.presentes-category {
  display: block;           /* garantimos block por padrão */
  margin: 0;                /* evita margens duplicadas entre seções */
  padding: 8px 0 20px;      /* padding interno controlado (top 8, bottom 20) */
  box-sizing: border-box;
}

.presentes-category + .presentes-category {
  margin-top: 0;            /* evita gaps adicionais entre seções */
}

/* título da categoria sempre com mesma distância do filtro / do topo da seção */
.presentes-category .category-title {
  margin: 0 0 12px;         /* 12px entre título e grid */
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}

/* garante que present-list não adicione margin inesperada */
.present-list {
  margin: 0;
  padding: 0;
}

/* quando seção for escondida via display:none, não sobra espaço */
.presentes-category[style*="display: none"] {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* opcional: força cards a não empurrar a altura da seção (mais previsível) */
.presente-card { margin: 0; }

/* ===== SPOTIFY PLAYER FIXO ===== */

.spotify-player {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 320px;
  height: 80px;
  z-index: 9999;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  background: #000;
}

.spotify-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile */
@media (max-width: 600px) {
  .spotify-player {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 12px;
    width: 95%;
  }
}

.section-presentes {
  background: #f4f2fb;
  padding: 60px 20px;
}

.left h2{
  text-align: left;
}

.presentes-container {
  max-width: 1100px;
  margin: 0;
  background: #fff;
  padding: 50px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(160,120,255,0.15);
  font-family: 'Poppins', sans-serif;
}

.presentes-container h2 {
  color: #6b4eff;
}

.descricao {
  color: #666;
  margin-bottom: 40px;
}

.grid-presentes {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 30px;
}

.card-presente {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card-presente img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.info {
  padding: 20px;
}

.info h3 {
  margin: 0;
  color: #333;
}

.valor {
  color: #6b4eff;
  font-weight: 600;
  margin: 8px 0;
}

.contador {
  color: #8c7bff;
  font-size: 14px;
  margin-bottom: 15px;
}

.pix {
  display: block;
  background: #f8f6ff;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px dashed #d9ccff;
  margin-bottom: 15px;
}

.acoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acoes button {
  border: none;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.acoes button:first-child {
  background: #a97bff;
  color: #fff;
}

.acoes .comprado {
  background: #6b4eff;
  color: #fff;
}

.acoes .desfazer {
  background: #e6ddff;
  color: #6b4eff;
}

.card-presente {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.esgotado {
  position: absolute;
  inset: 0;
  background: rgba(200, 0, 0, 0.8);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ===== BLINDAGEM GRID PRESENTES ===== */
.presentes-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 24px !important;
}

/* impede que algum pai force coluna */
.presentes-grid > .presente-card {
  width: 100%;
}


/* ===== CORREÇÃO DEFINITIVA: PRESENT-LIST EM GRID ===== */
.present-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ===== LISTA FINAL PADRONIZADA ===== */

.lista-final {
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.lista-titulo{
  text-align: justify;
}
.lista-titulo,
.lista-descricao {
  text-align: left;
}

.lista-descricao {
  color: #666;
  margin-bottom: 32px;
}

/* ===== GRID FINAL CORRETO (SEM DEFORMAR CARD) ===== */

/* ===== CENTRALIZAÇÃO DEFINITIVA LISTA FINAL ===== */

.lista-final {
  padding: 40px 24px;
}

.lista-titulo,
.lista-descricao {
  text-align: left;
}

.lista-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto; /* CENTRALIZA O BLOCO */
}

.lista-grid .presente-card {
  width: 100%;
  max-width: 380px;
}

/* responsivo */
@media (max-width: 1024px) {
  .lista-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}

@media (max-width: 640px) {
  .lista-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CENTRALIZAR SECTION DA LISTA DE PRESENTES ===== */

/* ===== SECTION LISTA FINAL (CORRETA) ===== */
/* ===== FORÇAR CENTRALIZAÇÃO DA SECTION ===== */

.lista-final {   /* 🔴 ESSENCIAL quando o pai é flex */
  width: 100%;
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 24px;
}

body {
    background: #f7f4f2;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    color: #5a5a5a;
}

header {
    text-align: center;
    padding: 30px 10px;
    background: #fff;
    border-bottom: 2px solid #e8e2dd;
}

h1 {
    font-size: 32px;
    color: #ffffff;
}

h2 {
    text-align: center;
    margin-top: 40px;
    color: #000000;
}

.lista {
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 6px 12px var(--accent);
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1.7px solid black;
    height: 220px;
}

.carousel img {
    width: 100%;
    display: none;
    height: 100%;
    object-fit: cover;
}

.carousel img.active {
    display: block;
}

.links {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.links a {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    color: var(--accent);
    transition: 0.3s;
    border: 1.5px solid var(--accent);
}

.links a:hover {
    background: var(--accent);
    color: #ffffff;
}

#beleza .carousel {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
}

#beleza .carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 360px) {
  body {
    font-size: 0.95rem;
  }

  .presente-card {
    padding: 0.8rem;
  }
}

@media (max-width: 768px) {

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
     box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

  .nav-links {
    display: none;
    flex-direction:column;
    background: #c471eda2;
    position: absolute;
    top: 100%;
    width: 70%;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }

  .nav-links.active {
    display: flex;
  }
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
