/* ==========================================================================
   cta-sticky.css
   Barra de compra fixa no rodapé — mobile-only.
   Aparece após ~40% de scroll, esconde ao chegar na seção #oferta,
   reaparece ao sair dela. Reaproveita tokens de style.css.
   ========================================================================== */

.cta-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(199, 255, 56, 0.28);
  background: rgba(10, 12, 17, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

/* Exibe apenas no mobile */
@media (max-width: 768px) {
  .cta-sticky {
    display: flex;
  }
}

/* Estado visível */
.cta-sticky.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Bloco de preço (esquerda) */
.cta-sticky-price {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1.15;
}

.cta-sticky-price .old {
  color: #747b87;
  font-size: 0.68rem;
  text-decoration: line-through;
}

.cta-sticky-price .current {
  color: var(--lime);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Botão principal (direita) */
.cta-sticky-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  color: #0a0d08;
  background: var(--lime);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(199, 255, 56, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-sticky-btn:hover,
.cta-sticky-btn:focus-visible {
  background: #d7ff78;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(199, 255, 56, 0.45);
}

.cta-sticky-btn:active {
  transform: scale(0.98);
}

.cta-sticky-btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.cta-sticky-btn:hover .arrow {
  transform: translateX(3px);
}

/* Ajuste: quando o sticky está visível, o botão "voltar ao topo" sobe
   para não ser coberto. Reduz também o padding da barra final. */
.cta-sticky.is-visible ~ .back-to-top,
body.has-sticky-cta .back-to-top {
  bottom: 88px;
}

/* Ajuste: quando o sticky está visível, o WhatsApp flutuante também
   sobe para ficar acima da barra, senão fica escondido atrás. */
body.has-sticky-cta .whatsapp-float {
  bottom: 88px;
}

/* Ajuste global: enquanto o sticky está visível, adiciona padding extra
   no rodapé para não esconder conteúdo. */
@media (max-width: 768px) {
  body.has-sticky-cta .site-footer {
    padding-bottom: 96px;
  }
}