﻿/* Configurações Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}

/* Tipografia Serifada para o Logo (Efeito Premium) */
.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Ajuste dos Cards de Produto - Resolve a sobreposição do botão */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  transition: all 0.3s ease;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Faz o conteúdo ocupar o espaço disponível */
  justify-content: space-between; /* Empurra o botão para o final */
  padding: 1.5rem;
  min-height: 200px;
}

.add-cart-btn {
  margin-top: auto; /* Garante que o botão fique sempre na base do card */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.add-cart-btn:active {
  transform: scale(0.95);
}

/* Carrossel - Agora controlado via JavaScript para maior precisão */
.carousel-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0; /* Começa invisível, o JS controla a opacidade */
  transition: opacity 1s ease-in-out; /* Transição suave de 1 segundo */
}

/* WhatsApp FAB - Ícone centralizado e sem texto */
#whatsappFab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 100;
  transition: transform 0.3s ease;
  animation: pulse-whatsapp 2.8s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); }
  50% { transform: scale(1.08); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5); }
}

/* Carrinho (Drawer Lateral) */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 400px;
  background: white;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Ajustes para Acessibilidade e Performance */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.product-slides {
  display: flex;
  width: 100%;
}

.product-slides img {
  width: 100%;
  flex-shrink: 0;
}

/* Evita que o clique nas setas ative o link da página do produto */
.prev-slide, .next-slide {
  pointer-events: auto;
  border: none;
  cursor: pointer;
}
