/* ========================================
   VITRINE - DESIGN CLEAN, ELEGANTE E EMOCIONAL
   MOBILE-FIRST & RESPONSIVO
   COMPATIBILIDADE CROSS-BROWSER GARANTIDA
   ======================================== */

/* ========================================
   -1. RESET E NORMALIZAÇÃO CROSS-BROWSER
   ======================================== */
button {
  /* Reset completo de estilos nativos de botões */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Garantir que inputs e selects também sejam normalizados */
input,
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: inherit;
}

/* ========================================
   0. LOADER - Exibido até configurações carregarem
   ======================================== */
.vitrine-loader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  transition: opacity 0.3s ease !important;
}

.vitrine-loader.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.vitrine-loader-content {
  text-align: center !important;
}

.vitrine-loader-spinner {
  width: 48px !important;
  height: 48px !important;
  margin: 0 auto 1rem !important;
  border: 3px solid #f3f3f3 !important;
  border-top: 3px solid #6b5b95 !important;
  border-radius: 50% !important;
  animation: vitrine-spin 1s linear infinite !important;
}

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

.vitrine-loader-text {
  color: #666 !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* ========================================
   1. FIX GLOBAL - Evitar overflow lateral
   ======================================== */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto; /* Garantir scroll vertical */
  -webkit-overflow-scrolling: touch; /* iOS scroll suave */
  margin: 0;
  padding: 0;
  /* iOS: não usar height fixo, deixar conteúdo definir */
  height: auto;
  min-height: 100vh;
  /* EMBED FIX: Evitar altura infinita */
  max-height: none;
  position: relative;
}

img,
svg,
canvas,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HEADER: fundo suave, texto emocional */
.public-header {
  background: linear-gradient(135deg, #f5f0eb 0%, #faf8f5 100%);
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
  border-radius: 0;
  width: 100%;
}

@media (max-width: 768px) {
  .public-header {
    padding: 2rem 1.25rem;
    margin-bottom: 2rem;
  }
}

.public-header h1 {
  color: #5a4a3a;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .public-header h1 {
    font-size: 1.5rem;
  }
}

.public-header p {
  color: #6b5b4f;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .public-header p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* FILTROS: layout horizontal clean - COMPATIBILIDADE CROSS-BROWSER */
.search-public {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* Fallback: usar margin nos filhos quando gap não é suportado */
.search-public > * {
  margin-right: 1rem;
}

.search-public > *:last-child {
  margin-right: 0;
}

/* Quando gap é suportado, usar gap e remover margins */
@supports (gap: 1rem) {
  .search-public {
    gap: 1rem;
  }
  
  .search-public > * {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .search-public {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
}

.search-public .form-group {
  flex: 1;
  min-width: 240px;
}

@media (max-width: 500px) {
  .search-public .form-group {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

.search-public label {
  font-size: 0.9rem;
  color: #6b5b4f;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.search-public input,
.search-public select {
  border: 1px solid #e0d7cf;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-shadow: none;
}

.search-public input:focus,
.search-public select:focus {
  border-color: #c4b5a8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 181, 168, 0.1);
}

/* ========================================
   2. GRID MOBILE-FIRST - Cards responsivos
   FIX: Evitar cards cortados no mobile (sempre 2 colunas fixas)
   ======================================== */
.gift-grid {
  display: grid;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  /* Reset para evitar overflow */
  min-width: 0;
  
  /* Mobile padrão (< 768px): 2 colunas fixas com minmax(0, 1fr) */
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem; /* 12px - gap menor no mobile */
  padding: 0 1rem;
}

/* Mobile muito pequeno: 1 coluna */
@media (max-width: 360px) {
  .gift-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

/* Tablet/Desktop pequeno: 3 colunas */
@media (min-width: 768px) {
  .gift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem; /* 24px */
  }
}

/* Desktop médio: auto-fill para 4+ colunas */
@media (min-width: 1024px) {
  .gift-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 2rem; /* 32px */
  }
}

/* CARD: clean, imagem protagonista, card inteiro clicável */
.gift-card-wrap {
  position: relative;
  /* FIX: Prevenir overflow do card */
  min-width: 0;
  min-height: 0;
}

.gift-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0ebe6;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  height: 100%;
  /* FIX: Garantir que o card não force overflow */
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.gift-card:hover {
  transform: translateY(-6px);
  -webkit-transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(90, 74, 58, 0.12);
  border-color: #e0d7cf;
}

.gift-card-img {
  width: 100%;
  /* FALLBACK para aspect-ratio - suporta navegadores antigos */
  padding-bottom: 100%; /* Cria proporção 1:1 */
  height: 0;
  position: relative;
  
  object-fit: cover;
  object-position: center;
  background: #f8f5f2;
  display: block;
  
  /* FIX: Garantir que imagem não ultrapasse container */
  max-width: 100%;
  box-sizing: border-box;
}

/* Para navegadores que suportam aspect-ratio, substituir o fallback */
@supports (aspect-ratio: 1 / 1) {
  .gift-card-img {
    padding-bottom: 0;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* Ajustar imagem dentro do container com padding-bottom */
.gift-card-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Proporção 1:1 */
  overflow: hidden;
  background: #f8f5f2;
}

.gift-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gift-card-img-placeholder {
  width: 100%;
  /* FALLBACK para aspect-ratio */
  padding-bottom: 100%;
  height: 0;
  position: relative;
  
  background: linear-gradient(135deg, #f8f5f2 0%, #f0ebe6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #d4c8bc;
}

/* Para navegadores que suportam aspect-ratio */
@supports (aspect-ratio: 1 / 1) {
  .gift-card-img-placeholder {
    padding-bottom: 0;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.gift-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  
  /* FALLBACK para gap - navegadores antigos */
  /* Usar margin nos filhos como alternativa */
  
  /* Para navegadores modernos com suporte a gap */
  gap: 0.75rem;
  
  flex: 1;
  /* FIX: Prevenir overflow de texto */
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Fallback: adicionar margin aos filhos quando gap não é suportado */
.gift-card-body > * + * {
  margin-top: 0.75rem;
}

/* Remover margin quando gap é suportado */
@supports (gap: 0.75rem) {
  .gift-card-body > * + * {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .gift-card-body {
    padding: 1rem;
    gap: 0.5rem;
  }
  
  /* Fallback mobile */
  .gift-card-body > * + * {
    margin-top: 0.5rem;
  }
  
  @supports (gap: 0.5rem) {
    .gift-card-body > * + * {
      margin-top: 0;
    }
  }
}

.gift-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #3a3a3a;
  line-height: 1.4;
  margin: 0;
  /* FIX: Quebrar texto longo */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 768px) {
  .gift-card-title {
    font-size: 0.95rem;
  }
}

.gift-card-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #8b7355;
  margin: 0;
}

.gift-card-status {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 0.25rem;
}

.gift-card-status.available {
  background: #e8f5e9;
  color: #2e7d32;
}

.gift-card-status.reserved {
  background: #fff3e0;
  color: #e65100;
}

/* RESERVED OVERLAY */
.reserved-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #8a6d00;
  border-radius: 12px;
  pointer-events: none;
}

/* ========================================
   3. MODAL RESPONSIVO - Bottom-sheet no mobile
   COMPATIBILIDADE CROSS-BROWSER GARANTIDA
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  
  /* REMOVIDO backdrop-filter para compatibilidade */
  /* Usar background sólido é mais confiável */
  
  /* No mobile: sem padding, modal ocupa tudo */
  padding: 0;
  /* Em embed, permitir scroll interno do modal */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  
  /* iOS FIX: Garantir que o overlay use todo o viewport disponível */
  height: 100vh; /* Fallback padrão */
  height: 100dvh; /* Dynamic viewport height - navegadores modernos */
  
  /* EMBED FIX: Evitar que o modal inflacione a altura do documento */
  max-height: 100vh;
  contain: layout size; /* Isolar o modal do layout pai */
}

@media (min-width: 769px) {
  .modal-overlay {
    padding: 20px;
    height: auto; /* Desktop: remover height fixo */
  }
}

@media (max-width: 768px) {
  .modal-overlay {
    /* iOS FIX: Alinhar ao topo no mobile */
    align-items: flex-start;
    justify-content: center;
  }
}

.modal {
  width: 100%;
  background: #fff;
  /* Mobile: fullscreen/bottom-sheet */
  max-width: 100%;
  /* iOS FIX: Usar dvh (dynamic viewport) e remover height fixo */
  max-height: 100dvh; /* Viewport dinâmico (respeita barra de endereço) */
  max-height: 100vh; /* Fallback para navegadores antigos */
  height: auto; /* iOS: Não forçar altura fixa */
  min-height: 0; /* Evitar problemas de flex no iOS */
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-overflow-scrolling: touch; /* iOS scroll suave */
}

@media (min-width: 769px) {
  .modal {
    max-width: 820px;
    max-height: 90vh;
    height: auto;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  /* Bottom-sheet style: arredondado no topo */
  .modal {
    border-radius: 20px 20px 0 0;
    /* iOS FIX: Garantir que o modal comece no topo */
    align-self: flex-start;
    margin-top: 0;
  }
}

.modal-header {
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #f0ebe6;
  background: linear-gradient(135deg, #f5f0eb 0%, #faf8f5 100%);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3a3a3a;
  margin: 0;
  letter-spacing: -0.3px;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #8b7355;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(139, 115, 85, 0.1);
  color: #5a4a3a;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0; /* iOS FIX: Evitar que flex force altura incorreta */
  /* iOS FIX: Garantir scroll funcional */
  position: relative;
}

@media (min-width: 769px) {
  .modal-body {
    padding: 2.5rem;
  }
}

/* ========================================
   ✨ INDICADOR DE PROGRESSO (3 etapas)
   ======================================== */
.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem 1rem;
  background: #fff;
  border-bottom: 1px solid #f0ebe6;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .progress-indicator {
    padding: 1rem 0.75rem 0.75rem;
    gap: 0.25rem;
  }
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #e0d7cf;
  background: #fff;
  color: #999;
}

@media (max-width: 768px) {
  .step-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

.step-label {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
  text-align: center;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .step-label {
    font-size: 0.7rem;
  }
}

/* Etapa ativa */
.progress-step.active .step-icon {
  background: var(--color-primary, #6b5b95);
  border-color: var(--color-primary, #6b5b95);
  color: #fff;
  box-shadow: 0 2px 8px rgba(107, 91, 149, 0.25);
}

.progress-step.active .step-label {
  color: var(--color-primary, #6b5b95);
  font-weight: 600;
}

/* Etapa completada */
.progress-step.completed .step-icon {
  background: #1f7a33;
  border-color: #1f7a33;
  color: #fff;
}

.progress-step.completed .step-label {
  color: #1f7a33;
}

/* Conector entre etapas */
.progress-connector {
  flex: 1;
  height: 2px;
  background: #e0d7cf;
  max-width: 60px;
  transition: background 0.3s ease;
}

@media (max-width: 768px) {
  .progress-connector {
    max-width: 30px;
  }
}

.progress-step.completed + .progress-connector {
  background: #1f7a33;
}

/* ========================================
   ✨ FRASE EMOCIONAL
   ======================================== */
.emotional-message {
  font-size: 0.95rem;
  color: #6b5b4f;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fffbf5 0%, #fff8f0 100%);
  border-left: 3px solid #e6c896;
  border-radius: 6px;
  font-style: italic;
}

@media (max-width: 768px) {
  .emotional-message {
    font-size: 0.9rem;
    padding: 0.875rem 1rem;
  }
}

/* ========================================
   ✨ FEEDBACK AO COPIAR PIX
   ======================================== */
.copy-feedback {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   ✨ REFORÇO DE SEGURANÇA
   ======================================== */
.security-note {
  font-size: 0.875rem;
  color: #1f7a33;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* ========================================
   ✨ MENSAGEM DE AGRADECIMENTO
   ======================================== */
.thank-you-message {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #fffbf5 0%, #fff8f0 100%);
  border-radius: 12px;
  margin-top: 1.5rem;
  border: 2px solid #e6c896;
  animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.thank-you-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: heartBeat 1s ease infinite;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
}

.thank-you-message h3 {
  color: #5a4a3a;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.thank-you-message p {
  color: #6b5b4f;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .thank-you-message {
    padding: 2rem 1.25rem;
  }
  
  .thank-you-icon {
    font-size: 2.5rem;
  }
  
  .thank-you-message h3 {
    font-size: 1.25rem;
  }
  
  .thank-you-message p {
    font-size: 0.9rem;
  }
}

.gift-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .gift-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .gift-detail {
    gap: 1.5rem;
  }
}

/* ========================================
   4. IMAGEM DO PRODUTO NO MODAL - Contida e responsiva
   ======================================== */
.gift-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid #f0ebe6;
  background: #f8f5f2;
  display: block;
}

/* Container da imagem com aspect-ratio controlado */
.gift-detail > div:first-child > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: clamp(200px, 40vh, 360px);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .gift-detail > div:first-child > img {
    aspect-ratio: 16 / 9;
    max-height: clamp(180px, 35vh, 280px);
  }
}

.gift-detail-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f8f5f2 0%, #f0ebe6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #d4c8bc;
}

.gift-detail-info {
  margin-top: 1.5rem;
}

.gift-detail-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #8b7355;
  margin-bottom: 1rem;
}

.gift-detail-description {
  margin-top: 1rem;
  color: #5a5a5a;
  line-height: 1.7;
  font-size: 1rem;
}

.gift-detail-store {
  margin-top: 1.25rem;
  color: #888;
  font-size: 0.95rem;
}

/* ========================================
   UX FIX: NOVO LAYOUT DO MODAL
   Resumo → CTA → Pix (fechado) → Confirmar (fechado)
   ======================================== */

/* 1. RESUMO DO PRESENTE (topo, sempre visível) */
.gift-summary {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0ebe6;
}

.gift-summary-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: clamp(180px, 35vh, 280px);
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid #f0ebe6;
  background: #f8f5f2;
  display: block;
  margin-bottom: 1.5rem;
}

@media (min-width: 769px) {
  .gift-summary-img {
    aspect-ratio: 4 / 3;
    max-height: clamp(200px, 40vh, 320px);
  }
}

.gift-summary-content {
  text-align: center;
}

.gift-summary-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3a3a3a;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .gift-summary-title {
    font-size: 1.25rem;
  }
}

.gift-summary-price {
  font-size: 2rem;
  font-weight: 700;
  color: #8b7355;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .gift-summary-price {
    font-size: 1.75rem;
  }
}

.gift-summary-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  background: #e8f5e9;
  color: #2e7d32;
}

.gift-summary-description {
  color: #5a5a5a;
  line-height: 1.6;
  font-size: 1rem;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .gift-summary-description {
    font-size: 0.95rem;
    text-align: left;
  }
}

.gift-summary-store {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.gift-summary-store a {
  color: #8b7355;
  text-decoration: none;
}

.gift-summary-store a:hover {
  text-decoration: underline;
}

/* REMOVIDO: CTA intermediário (não é mais necessário) */

/* 2️⃣ CONFIRMAR PRESENTE (helper text) */
.section-helper-text {
  color: #6b5b4f;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: -0.5rem 0 1.25rem 0;
  padding: 0;
}

/* UX EMOCIONAL: Texto mais caloroso */
.section-helper-text.emotional {
  color: #5a4a3a;
  font-size: 1rem;
  line-height: 1.7;
  margin: -0.5rem 0 1.75rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .section-helper-text.emotional {
    font-size: 0.95rem;
    text-align: left;
  }
}

/* CAMPO PRINCIPAL: Mensagem (destaque visual) */
.form-group-message {
  margin-bottom: 2rem !important;
  background: linear-gradient(135deg, #fffbf5 0%, #fff7ed 100%);
  border: 2px solid #f0ebe6;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(139, 115, 85, 0.08);
}

@media (max-width: 768px) {
  .form-group-message {
    padding: 1.25rem;
    margin-bottom: 1.5rem !important;
  }
}

.label-emotional {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #5a4a3a;
  margin-bottom: 0.75rem;
}

.label-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.label-text {
  flex: 1;
}

.label-optional {
  font-size: 0.85rem;
  font-weight: 400;
  color: #999;
  font-style: italic;
}

.input-emotional {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  border: 2px solid #e0d7cf;
  border-radius: 10px;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fff;
}

.input-emotional:focus {
  border-color: #c4b5a8;
  outline: none;
  box-shadow: 0 0 0 4px rgba(196, 181, 168, 0.15);
  background: #fffef9;
}

.input-emotional::placeholder {
  color: #bbb;
  font-style: italic;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .input-emotional {
    font-size: 16px;
    min-height: 90px;
  }
}

/* DIVISOR: Separar mensagem dos campos técnicos */
.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0 1.5rem 0;
  position: relative;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0d7cf;
}

.form-divider span {
  padding: 0 1rem;
  color: #999;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .form-divider {
    margin: 1.5rem 0 1.25rem 0;
  }
  
  .form-divider span {
    font-size: 0.8rem;
    padding: 0 0.75rem;
  }
}

/* CAMPOS SECUNDÁRIOS: Discretos e compactos */
.form-row-compact {
  gap: 0.75rem;
}

.form-row-compact .form-group label {
  font-size: 0.875rem;
  color: #888;
  font-weight: 500;
}

.form-row-compact .form-group input {
  border-color: #e8e3de;
  font-size: 0.95rem;
}

.optional-tag {
  font-size: 0.8rem;
  font-weight: 400;
  color: #aaa;
  font-style: italic;
  margin-left: 0.25rem;
}

.form-actions-step {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* 3️⃣ PIX VALUE TEXT (apenas texto, não campo) */
.pix-value-text {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbf5 100%);
  border: 2px solid #8b7355;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.05rem;
  color: #5a4a3a;
  width: 100%;
}

.pix-value-text strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #8b7355;
  margin-top: 0.5rem;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .pix-value-text {
    font-size: 0.95rem;
    padding: 1rem;
  }
  
  .pix-value-text strong {
    font-size: 1.5rem;
  }
}

/* REMOVIDO: .pix-value-display antigo */

/* ========================================
   5. FLUXO UX - Seções colapsáveis no mobile
   ======================================== */
/* PIX BOX */
.pix-box {
  border: 1px solid #e0d7cf;
  border-radius: 12px;
  padding: 1.75rem;
  background: #faf8f5;
}

@media (max-width: 768px) {
  .pix-box {
    padding: 1.25rem;
  }
}

.pix-box h3 {
  color: #5a4a3a;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

/* Ícone de toggle para seção colapsável */
.pix-box h3::after {
  content: '▼';
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.pix-box.collapsed h3::after {
  transform: rotate(-90deg);
}

.pix-box.collapsed .pix-row {
  display: none;
}

.pix-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .pix-row {
    flex-direction: column;
    align-items: center;
  }
}

/* QR Code: tamanho controlado no mobile */
.pix-qr {
  border-radius: 12px;
  border: 1px solid #e0d7cf;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  width: 180px;
  height: 180px;
}

@media (max-width: 768px) {
  .pix-qr {
    width: min(200px, 50vw);
    height: min(200px, 50vw);
  }
}

.pix-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pix-code {
  flex: 1;
  min-width: 240px;
  width: 100%;
}

@media (max-width: 768px) {
  .pix-code {
    width: 100%;
    min-width: 100%;
  }
}

.pix-code label {
  font-size: 0.9rem;
  color: #6b5b4f;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.pix-code textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  border: 1px solid #e0d7cf;
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-all;
}

@media (max-width: 768px) {
  .pix-code textarea {
    min-height: 80px;
    font-size: 0.8rem;
  }
}

.pix-code textarea:focus {
  border-color: #c4b5a8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 181, 168, 0.1);
}

.row-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .row-actions {
    flex-direction: column;
    gap: 0.625rem;
  }
  
  .row-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.meta-note {
  font-size: 0.875rem;
  color: #888;
  margin-top: 1rem;
  line-height: 1.5;
}

/* FORM SECTION */
.form-section {
  margin-top: 2rem;
}

.form-section h2 {
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

/* Ícone de toggle para seção colapsável */
.form-section h2::after {
  content: '▼';
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.form-section.collapsed h2::after {
  transform: rotate(-90deg);
}

.form-section.collapsed form {
  display: none;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .form-group {
    flex: 1 1 100%;
  }
}

/* ========================================
   6. BOTÕES E CAMPOS - Otimizados para mobile
   ======================================== */
.form-group label {
  font-size: 0.9rem;
  color: #6b5b4f;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-group input,
.form-group textarea {
  border: 1px solid #e0d7cf;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
}

/* Evitar zoom automático no iOS */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea,
  .pix-code textarea,
  .search-public input,
  .search-public select {
    font-size: 16px;
  }
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #c4b5a8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 181, 168, 0.1);
}

/* Botões com área de toque adequada */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
  }
}

.form-actions {
  margin-top: 1.5rem;
}

/* Footer fixo/sticky no mobile para CTA */
@media (max-width: 768px) {
  .form-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    margin: 1rem -1.5rem -1.5rem;
    border-top: 1px solid #f0ebe6;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  }
}

.btn-block {
  width: 100%;
  justify-content: center;
  display: flex;
}

/* Espaçamento entre elementos no mobile */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-row {
    gap: 1rem;
  }
}

.btn-size-small {
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
}

.btn-size-medium {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn-size-large {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

/* EMPTY MESSAGE */
.empty-message {
  text-align: center;
  color: #888;
  font-size: 1.05rem;
  padding: 3rem 1rem;
}

#empty-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#empty-subtitle {
  display: block;
  font-size: 0.95rem;
  color: #999;
}

/* COUPLE HERO SECTION - Modern Hero Layout */
#couple-section {
  margin: 0 auto 3rem;
  max-width: 1200px;
}

.couple-hero {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(90, 74, 58, 0.1);
}

/* Hero com foto (capa) */
.couple-hero__media {
  position: relative;
  height: 240px;
  max-height: 280px;
  overflow: hidden;
}

.couple-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.couple-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.couple-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.couple-hero__text {
  max-width: 800px;
  animation: fadeInUp 0.6s ease-out;
}

.couple-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.couple-hero__message {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

/* Hero sem foto (fallback elegante) */
.couple-hero--no-photo {
  background: linear-gradient(135deg, #f5f0eb 0%, #faf8f5 100%);
  border: 1px solid #e8dfd6;
}

.couple-hero__content-only {
  padding: 3rem 2rem;
  text-align: center;
}

.couple-hero--no-photo .couple-hero__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #5a4a3a;
  margin: 0 0 1rem 0;
  font-weight: 600;
  text-shadow: none;
}

.couple-hero--no-photo .couple-hero__message {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: #6b5b4f;
  text-shadow: none;
  max-width: 700px;
  margin: 0 auto;
}

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

/* Responsivo */
@media (max-width: 768px) {
  .couple-hero__media {
    height: 200px;
    max-height: 220px;
  }

  .couple-hero__content {
    padding: 1.5rem;
  }

  .couple-hero__title {
    margin-bottom: 0.5rem;
  }

  .couple-hero__content-only {
    padding: 2rem 1.5rem;
  }
}

/* Legacy styles removidos (couple-container, couple-photo, etc.) */

/* ========================================
   LOAD MORE BUTTON - Ver mais presentes
   COMPATIBILIDADE CROSS-BROWSER GARANTIDA
   ======================================== */

/* Reset completo para evitar estilos nativos do navegador */
#load-more-btn,
.btn-load-more {
  /* RESET: Remover todos os estilos nativos do navegador */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  margin: 0;
  font-family: inherit;
  outline: none;
  
  /* Layout - largura otimizada para clicabilidade */
  display: block;
  width: 80%;
  max-width: 320px;
  min-height: 52px;
  margin-top: 3rem;
  margin-right: auto;
  margin-bottom: 1.5rem;
  margin-left: auto;
  padding: 1rem 2.5rem;
  box-sizing: border-box;
  
  /* Estilo visual premium - SEM backdrop-filter para compatibilidade */
  background: #faf8f6; /* Fundo sólido, não transparente */
  background: rgba(250, 248, 246, 0.98); /* Fallback com opacidade alta */
  
  /* Borda elegante */
  border: 2px solid #d4c5b9;
  border-radius: 36px;
  
  /* Tipografia elegante e legível */
  color: #8b7355;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: center;
  line-height: 1.4;
  
  /* Interação */
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  
  /* Transição suave */
  transition-property: background, border-color, transform, box-shadow, color;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Sombra mais visível para hierarquia */
  box-shadow: 0 3px 12px rgba(139, 115, 85, 0.12);
  
  /* Garantir que o botão fique acima de outros elementos */
  position: relative;
  z-index: 10;
}

/* Estado de hover - desktop e mobile touch */
#load-more-btn:hover,
.btn-load-more:hover,
#load-more-btn:focus,
.btn-load-more:focus {
  background: #f8f5f2;
  background: rgba(248, 245, 242, 0.98);
  border-color: #c4b5a8;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 115, 85, 0.16);
  color: #6b5b4f;
}

/* Estado de active - feedback visual no clique */
#load-more-btn:active,
.btn-load-more:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 3px 10px rgba(139, 115, 85, 0.12);
}

/* Estado disabled - quando está desabilitado */
#load-more-btn:disabled,
.btn-load-more:disabled,
#load-more-btn[disabled],
.btn-load-more[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #f0ebe6;
}

/* Estado de loading - texto muda mas botão mantém tamanho */
#load-more-btn.loading,
.btn-load-more.loading {
  pointer-events: none;
  color: #b8a596;
}

#load-more-btn.loading::before,
.btn-load-more.loading::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  border: 2px solid rgba(139, 115, 85, 0.25);
  border-top-color: #8b7355;
  border-radius: 50%;
  animation: load-more-spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes load-more-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Mobile - aumenta ainda mais a área de toque */
@media (max-width: 768px) {
  #load-more-btn,
  .btn-load-more {
    width: 85%;
    max-width: none;
    min-height: 56px;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding: 1.125rem 2rem;
    font-size: 1.05rem;
    
    /* Garantir boa área de toque no mobile */
    -webkit-tap-highlight-color: rgba(196, 181, 168, 0.1);
  }
  
  /* No mobile, hover não é confiável, então ajustamos o active */
  #load-more-btn:active,
  .btn-load-more:active {
    background: #f8f5f2;
    border-color: #c4b5a8;
    transform: scale(0.98);
  }
}

/* ========================================
   BOTÃO FLUTUANTE DE RETOMADA - Presente pendente
   ======================================== */
.resume-gift-btn {
  /* Posicionamento fixo no canto inferior direito */
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 9999 !important;
  
  /* Layout circular - apenas ícone */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding: 0;
  
  /* Visual premium */
  background: linear-gradient(135deg, #6b5b95 0%, #8a7aaa 100%);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(107, 91, 149, 0.35);
  
  /* Interação */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-gift-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 28px rgba(107, 91, 149, 0.45);
  background: linear-gradient(135deg, #8a7aaa 0%, #6b5b95 100%);
}

.resume-gift-btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 20px rgba(107, 91, 149, 0.35);
}

.resume-gift-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.resume-gift-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  
  background: #dc3545;
  color: #ffffff;
  border-radius: 11px;
  border: 2px solid #ffffff;
  
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Esconder texto - só ícone em todas as resoluções */
.resume-gift-text {
  display: none;
}

/* Mobile: versão levemente menor */
@media (max-width: 768px) {
  .resume-gift-btn {
    bottom: 20px !important;
    right: 20px !important;
    width: 72px;
    height: 72px;
  }
  
  .resume-gift-icon {
    font-size: 2.35rem;
  }
}

/* Animação de entrada */
@keyframes resumeBtnSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.resume-gift-btn[style*="display: flex"],
.resume-gift-btn[style*="display: block"] {
  animation: resumeBtnSlideIn 0.3s ease-out;
}

/* ========================================
   SKELETON LOADER - Cards durante carregamento inicial
   ======================================== */
.skeleton-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90, 74, 58, 0.08);
  overflow: hidden;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

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

.skeleton-content {
  padding: 1rem;
}

.skeleton-title {
  height: 18px;
  width: 70%;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-price {
  height: 24px;
  width: 40%;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-button {
  height: 44px;
  width: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: skeleton-shimmer 1.5s infinite;
}

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

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@media (max-width: 768px) {
  .skeleton-image {
    height: 200px;
  }
}

