/* ── ESTILOS NÃO-CRÍTICOS ─────────────────────────────────────────────
   Carregados de forma assíncrona (não bloqueiam o first paint).
   O CSS crítico (hero, título) está inline no <head> do index.html.
──────────────────────────────────────────────────────────────────────── */

/* ── UTILITÁRIOS ──────────────────────────────────────────────────── */
h2.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #111B21;
  margin-bottom: 16px;
}
.section-divider {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 32px 16px;
}

/* ── HOW IT WORKS (chips abaixo do título) ─────────────────────────── */
.how-it-works {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
}
.how-step__emoji { font-size: 20px; }
.how-step__label {
  font-size: 10px;
  font-weight: 500;
  color: #374151;
  text-align: center;
  line-height: 1.3;
}

/* ── SALES COUNTER ─────────────────────────────────────────────────── */
.sales-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #F3F4F6;
  border: 0.5px solid #D1D5DB;
  border-radius: 999px;
  margin-bottom: 16px;
}
.sales-counter__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.sales-counter__text { font-size: 13px; color: #555; }
.sales-counter__text strong { color: #111; font-weight: 600; }

/* ── OFERTA ─────────────────────────────────────────────────────────── */
.offer-section { padding: 0 16px 16px; }
.offer-card {
  background: #fff;
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(37,211,102,0.05);
  padding: 12px 20px 20px;
}
.free-shipping {
  font-size: 16px;
  font-weight: 700;
  color: #15803D;
  text-align: center;
  margin-bottom: 12px;
}

/* Cards de oferta (renderizados via JS) */
.offer-selector { display: flex; flex-direction: column; gap: 0; }
.offer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
}
.offer-item--selected {
  border: 2px solid #16A34A;
  background: rgba(22,163,74,0.05);
  box-shadow: 0 4px 10px rgba(22,163,74,0.15);
}
.offer-item__main { flex: 1; }
.offer-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.offer-qty {
  font-size: 14px;
  font-weight: 600;
  color: #111B21;
}
.offer-item--selected .offer-qty { color: #16A34A; }
.offer-badge {
  padding: 3px 7px;
  background: #F3F4F6;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #374151;
  letter-spacing: 0.3px;
}
.offer-item--selected .offer-badge {
  background: rgba(22,163,74,0.12);
  color: #16A34A;
}
.offer-item__prices { display: flex; align-items: center; gap: 6px; }
.offer-price {
  font-size: 18px;
  font-weight: 900;
  color: #111B21;
}
.offer-item--selected .offer-price { color: #16A34A; }
.offer-compare {
  font-size: 12px;
  color: #9CA3AF;
  text-decoration: line-through;
}
.offer-discount {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #F0FDF4;
  color: #15803D;
}
.offer-item--selected .offer-discount {
  background: #F0FDF4;
  color: #15803D;
}
.offer-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  margin-left: 10px;
}
.offer-item--selected .offer-radio {
  border-color: #16A34A;
  background: #16A34A;
  color: #fff;
}

/* ── BOTÃO COMPRAR ─────────────────────────────────────────────────── */
.btn-buy {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: #25D366;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 0;
}
.btn-buy--compact {
  font-size: 15px;
  padding: 14px 18px;
  flex: 1;
}

/* Infos de pagamento */
.payment-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
}
.payment-row {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.payment-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* ── URGÊNCIA ───────────────────────────────────────────────────────── */
.urgency-bar {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 0 16px 4px;
  letter-spacing: 0.2px;
}

/* ── REVIEWS MINI ───────────────────────────────────────────────────── */
.reviews-mini-section { margin: 16px 0; }
.reviews-mini {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reviews-mini::-webkit-scrollbar { display: none; }
.reviews-mini__item {
  flex: 0 0 100%;
  padding: 0 16px;
  scroll-snap-align: start;
}
.review-mini-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px;
  min-height: 110px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.review-mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37,211,102,0.1);
  color: #25D366;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-mini-body { flex: 1; min-width: 0; }
.review-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.review-mini-name {
  font-size: 13px;
  font-weight: 700;
  color: #111B21;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.review-mini-stars { color: #FFC107; font-size: 12px; }
.review-mini-text {
  font-size: 12px;
  color: #4B5563;
  font-style: italic;
  line-height: 1.45;
}
.review-mini-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── ENTREGA SEGURA ─────────────────────────────────────────────────── */
.delivery-section { padding: 16px 16px 0; }
.delivery-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.delivery-title { font-size: 20px; font-weight: 700; color: #111B21; }
.correios-logo { object-fit: contain; }
.delivery-icon { font-size: 22px; color: #4B5563; flex-shrink: 0; }
.delivery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 12px;
}

/* ── BENEFÍCIOS ─────────────────────────────────────────────────────── */
.benefits-section { padding: 0 16px; }
.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: rgba(17,27,33,0.8);
  line-height: 1.4;
}
.benefit-item::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37,211,102,0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

/* ── HIGHLIGHTS ─────────────────────────────────────────────────────── */
.highlights-section { padding: 0 16px; display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.highlight-title {
  font-size: 18px;
  font-weight: 700;
  color: #111B21;
  margin-bottom: 12px;
  line-height: 1.3;
}
.highlight-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 12px;
  background: #f3f4f6;
}
.highlight-desc {
  font-size: 16px;
  color: #4B5563;
  line-height: 1.6;
}

/* ── CARD EMOCIONAL ─────────────────────────────────────────────────── */
.emotional-section { padding: 12px 16px 0; }
.emotional-card {
  padding: 8px 16px 16px;
  background: rgba(37,211,102,0.05);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: 16px;
  text-align: center;
}
.emotional-icon { font-size: 28px; color: #25D366; display: block; margin-bottom: 10px; }
.emotional-title {
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: #374151;
  line-height: 1.4;
  margin-bottom: 16px;
}
.emotional-desc {
  font-size: 16px;
  color: #4B5563;
  line-height: 1.5;
}

/* ── AVALIAÇÕES COMPLETAS ───────────────────────────────────────────── */
.reviews-section { padding: 32px 0 0; }
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 16px;
}
.reviews-rating { font-size: 16px; font-weight: 700; color: #111B21; }
.reviews-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reviews-carousel::-webkit-scrollbar { display: none; }
.reviews-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}
.review-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37,211,102,0.1);
  color: #25D366;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 700; color: #111B21; }
.review-stars { color: #FFC107; font-size: 13px; }
.review-card-body { display: flex; align-items: flex-start; gap: 12px; }
.review-text {
  flex: 1;
  font-size: 14px;
  font-style: italic;
  color: #374151;
  line-height: 1.5;
}
.review-photo {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-section { padding: 32px 16px 0; }
.faq-item {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: #111B21;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: #6B7280;
  flex-shrink: 0;
}
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.5;
  padding: 0 16px 16px;
}

/* ── WHATSAPP ─────────────────────────────────────────────────────────── */
.whatsapp-section {
  padding: 24px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.whatsapp-text { font-size: 14px; color: #6B7280; line-height: 1.4; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(37,211,102,0.3);
}
.btn-whatsapp img { border-radius: 0; }

/* ── CENTRAL DE ATENDIMENTO ─────────────────────────────────────────── */
.support-section {
  margin: 24px 16px 0;
  padding: 32px 24px;
  background: #F9FAFB;
  border-radius: 16px;
  text-align: center;
}
.support-icon { font-size: 32px; display: block; margin-bottom: 16px; color: #111827; }
.support-email-icon { font-size: 18px; vertical-align: middle; color: #374151; }
.support-title {
  font-size: 16px;
  font-weight: 700;
  color: #111B21;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.support-subtitle { font-size: 14px; color: #6B7280; margin-bottom: 24px; }
.support-email { font-size: 16px; font-weight: 500; color: #111B21; }

/* ── REDES SOCIAIS ─────────────────────────────────────────────────── */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}
.social-links a img { display: block; }

/* ── TRUST BADGES ──────────────────────────────────────────────────── */
.trust-badges {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px 20px;
}
.trust-badges img { object-fit: contain; }

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding-bottom: 20px;
  font-size: 12px;
  color: #9CA3AF;
}

/* ── STICKY CTA ─────────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 100;
}
.sticky-cta[hidden] { display: none; }
.sticky-price { display: flex; flex-direction: column; }
.sticky-price-label { font-size: 12px; color: #6B7280; }
.sticky-price-value { font-size: 20px; font-weight: 700; color: #25D366; }

/* ── MODAL ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal-overlay[hidden] { display: none; }
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #9CA3AF;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #111B21;
  line-height: 1.25;
  letter-spacing: -0.3px;
  text-align: center;
  margin-bottom: 10px;
}
.modal-text {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 28px;
}
.modal-steps {
  list-style: none;
  counter-reset: modal-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.modal-step {
  counter-increment: modal-step;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}
.modal-step::before {
  content: counter(modal-step);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37,211,102,0.12);
  color: #15803D;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-modal-cta {
  display: block;
  width: 100%;
  padding: 18px;
  background: #25D366;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
}

.btn-buy { display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-icon { font-size: 20px; flex-shrink: 0; }

/* ── ESPAÇO EXTRA no fim para não ser coberto pelo sticky CTA ──────── */
.footer { padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px)); }

/* ── LIGHTBOX ────────────────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-img {
  max-width: calc(100% - 96px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
  padding: 0;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ── NAVEGAÇÃO DOS CARROSSÉIS (desktop only) ─────────────────────────── */

/* Setas do hero — ocultas no mobile */
.carousel-arrow {
  display: none;
}

/* Setas das reviews — ocultas no mobile */
.review-nav {
  display: none;
}

@media (min-width: 601px) {
  /* Setas do hero — visíveis no desktop, nas laterais da imagem */
  .carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.88);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    color: #111B21;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.15s;
    padding: 0;
  }
  .carousel-arrow:hover { background: #fff; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }

  /* Dots do hero — interativos no desktop */
  .carousel-dots { pointer-events: auto; }
  .carousel-dot  { cursor: pointer; transition: opacity 0.15s; }
  .carousel-dot:hover { opacity: 0.8; }

  /* Setas das reviews — visíveis no desktop */
  .review-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .reviews-header { align-items: center; }
  .reviews-mini-section { position: relative; }
  .review-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #374151;
    padding: 0;
    transition: background 0.15s, border-color 0.15s;
  }
  .review-nav-btn:hover { background: #E5E7EB; border-color: #D1D5DB; }

  /* Nav das reviews mini — abaixo do carousel */
  #mini-nav {
    justify-content: center;
    padding: 8px 0 4px;
  }
}
