/* ============================================ */
/* POOL DE OFERTAS - CSS PREMIUM PLUS (LIMPO)   */
/* ============================================ */

/* 1. IMPORTAÇÃO DE FONTES */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* 2. VARIÁVEIS GLOBAIS (ÚNICA DEFINIÇÃO) */
:root {
  /* Cores principais */
  --verde-escuro: #1a4d2e;
  --verde-claro: #2ecc71;
  --azul-profundo: #1b4f72;
  --azul-claro: #3498db;
  --laranja-principal: #e67e22;
  --laranja-escuro: #c44536;
  --laranja-claro: #f39c12;
  --whatsapp: #25D366;
  --mercadolivre: #fff159;
  
  /* Cores neutras */
  --branco: #ffffff;
  --cinza-claro: #f5f7fa;
  --cinza-medio: #e2e8f0;
  --cinza-texto: #64748b;
  --cinza-escuro: #1e293b;
  --preto: #0f172a;
  --borda: #e0e0e0;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  
  /* Bordas */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 40px;
  --radius-full: 9999px;
}

/* 3. RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cinza-claro);
  color: var(--cinza-escuro);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 4. TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--laranja-escuro), var(--laranja-principal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  color: var(--azul-profundo);
  font-weight: 700;
  border-left: 5px solid var(--laranja-principal);
  padding-left: 20px;
  margin-bottom: 30px;
}

h2 span {
  color: var(--laranja-principal);
}

h3 {
  font-size: 1.5rem;
  color: var(--preto);
  margin-bottom: 15px;
}

/* 5. CONTAINER */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* 6. HEADER PREMIUM */
header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  width: 100%;
  min-height: 70px;
  border-bottom: 1px solid var(--borda);
  transition: all 0.3s;
}

header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 8px 20px;
}

header.scrolled .logo span {
  color: var(--cinza-escuro);
}

.logo {
  width: 110px;
  height: auto;
  display: block;
}

.logo img {
  transition: all 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05) rotate(1deg);
  filter: drop-shadow(0 5px 10px rgba(26,77,46,0.3));
}

.top-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.info-box {
  background: var(--cinza-claro);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cinza-escuro);
  border: 1px solid var(--borda);
  white-space: nowrap;
}

/* 7. NAVEGAÇÃO */
nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--cinza-escuro);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--verde-claro);
  border-bottom-color: var(--verde-claro);
}

nav a.ativo {
  color: var(--verde-claro);
  border-bottom-color: var(--verde-claro);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cinza-escuro);
  padding: 5px 10px;
}

/* 8. HERO SECTION PREMIUM */
.hero {
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(135deg, var(--verde-escuro), var(--azul-profundo));
  color: white;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--verde-claro) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatGlow 15s infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--azul-claro) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  animation: floatGlow 20s infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0); opacity: 0.2; }
  100% { transform: translate(30px, 30px); opacity: 0.4; }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 800;
  -webkit-text-fill-color: white;
  background: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: fadeIn 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 9. BOTÕES PREMIUM */
.btn {
  display: inline-block;
  padding: 15px 35px;
  background: white;
  color: var(--verde-escuro);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  background: #f8f8f8;
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--laranja-escuro), var(--laranja-principal));
  color: var(--branco);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--branco);
  color: var(--laranja-principal);
  border-color: var(--laranja-principal);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--laranja-principal);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--laranja-principal);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--laranja-principal);
  color: var(--branco);
  transform: translateY(-2px);
}

.btn-super {
  background: linear-gradient(135deg, var(--verde-claro), var(--azul-claro));
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(46,204,113,0.4);
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(46,204,113,0.4); }
  50% { transform: scale(1.02); box-shadow: 0 15px 35px rgba(46,204,113,0.6); }
}

.btn-super::before {
  content: '🔥';
  position: absolute;
  left: -30px;
  top: -10px;
  font-size: 2rem;
  opacity: 0.5;
  transition: all 0.3s;
}

.btn-super:hover::before {
  left: 10px;
  top: 5px;
  opacity: 1;
}

.btn-super i {
  margin-left: 10px;
  transition: transform 0.3s;
}

.btn-super:hover i {
  transform: translateX(10px);
}

/* 10. OFERTAS / CARDS */
.ofertas {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
}

.controles {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.controles h2 {
  border-left: none;
  padding-left: 0;
  margin-bottom: 0;
}

.busca input {
  padding: 12px 25px;
  border-radius: 50px;
  border: 2px solid var(--borda);
  width: 280px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.busca input:focus {
  outline: none;
  border-color: var(--verde-claro);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
}

/* CARD PREMIUM */
.card {
  background: var(--branco);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--cinza-medio);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--laranja-principal);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--verde-claro), var(--azul-claro), var(--verde-claro));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover::after {
  transform: scaleX(1);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.5s;
}

.card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 18px;
  flex: 1;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--cinza-escuro);
  line-height: 1.4;
}

.card p {
  font-size: 0.85rem;
  color: var(--cinza-texto);
  margin-top: 10px;
}

/* 11. ANIMAÇÕES DE ENTRADA */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.card {
  animation: fadeInUp 0.5s;
  animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* 12. NEWSLETTER PREMIUM */
.newsletter {
  text-align: center;
  padding: 70px 20px;
  background: white;
  width: 100%;
}

.newsletter h2 {
  border-left: none;
  padding-left: 0;
  text-align: center;
  margin-bottom: 15px;
}

.newsletter p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--cinza-texto);
}

.form-group {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.form-group input {
  flex: 1;
  padding: 15px 25px;
  border-radius: 50px;
  border: 2px solid var(--borda);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--verde-claro);
  box-shadow: 0 0 10px rgba(46,204,113,0.3);
}

.form-group button {
  padding: 15px 30px;
  background: var(--verde-claro);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.form-group button:hover {
  background: var(--verde-escuro);
  transform: scale(1.05);
}

.counter {
  margin-top: 25px;
  font-size: 1.1rem;
  color: var(--cinza-texto);
}

.counter strong {
  color: var(--verde-escuro);
  font-size: 1.3rem;
}

/* 13. WHATSAPP FLOAT PREMIUM */
.whatsapp-fixo,
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--whatsapp);
  color: white;
  font-size: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.3s;
  border: none;
  animation: floatWhats 3s infinite;
}

@keyframes floatWhats {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.whatsapp-fixo:hover,
.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* 14. BACK TO TOP PREMIUM */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 25px;
  background: var(--verde-escuro);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--verde-claro);
  transform: translateY(-5px);
}

/* 15. DEPOIMENTOS PREMIUM */
.testimonial-card {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
  transition: all 0.3s;
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-sm);
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--verde-claro);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(46, 204, 113, 0.1);
  font-family: serif;
}

/* 16. FOOTER PREMIUM */
footer {
  background: var(--preto);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  width: 100%;
}

footer p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

footer a {
  color: var(--verde-claro);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.social {
  margin-top: 20px;
}

.social a {
  margin: 0 10px;
  color: white;
}

/* 17. UTILITÁRIOS */
.text-center {
  text-align: center;
}

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* 18. CARREGAMENTO SUAVE DE IMAGENS */
.product-image img {
  opacity: 0;
  transition: opacity 0.5s;
}

.product-image img.loaded,
.product-image img[src] {
  opacity: 1;
}

.product-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-image img.loaded {
  background: none;
  animation: none;
}

/* ============================================= */
/* 19. CARROSSEL LENTO - IMAGENS DOS PRODUTOS    */
/* ============================================= */

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.product-card:hover .carousel-slide img {
  transform: scale(1.02);
}

@keyframes carouselFade {
  0%, 25% { opacity: 1; visibility: visible; }
  33%, 100% { opacity: 0; visibility: hidden; }
}

.carousel-auto-3 .carousel-slide:nth-child(1) { animation: carouselFade 15s infinite; }
.carousel-auto-3 .carousel-slide:nth-child(2) { animation: carouselFade 15s infinite 5s; }
.carousel-auto-3 .carousel-slide:nth-child(3) { animation: carouselFade 15s infinite 10s; }

.carousel-auto-4 .carousel-slide:nth-child(1) { animation: carouselFade 20s infinite; }
.carousel-auto-4 .carousel-slide:nth-child(2) { animation: carouselFade 20s infinite 5s; }
.carousel-auto-4 .carousel-slide:nth-child(3) { animation: carouselFade 20s infinite 10s; }
.carousel-auto-4 .carousel-slide:nth-child(4) { animation: carouselFade 20s infinite 15s; }

.product-card:hover .carousel-slide {
  animation-play-state: paused !important;
}

.product-card:hover .carousel-slide:nth-child(1) {
  opacity: 1;
  visibility: visible;
}

.product-card:hover .carousel-slide:nth-child(2),
.product-card:hover .carousel-slide:nth-child(3),
.product-card:hover .carousel-slide:nth-child(4) {
  opacity: 0;
  visibility: hidden;
}

/* ============================================= */
/* 20. RESPONSIVIDADE                            */
/* ============================================= */

@media (max-width: 992px) {
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    padding: 12px 15px;
  }
  
  .logo { width: 90px; }
  
  .top-info {
    order: 3;
    width: 100%;
    margin-top: 12px;
    justify-content: center;
  }
  
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 5px;
    border-top: 1px solid var(--borda);
  }
  
  nav.active { display: flex; }
  
  nav a {
    padding: 12px 15px;
    border-radius: 8px;
    border-bottom: none;
  }
  
  nav a:hover {
    background: var(--cinza-claro);
    color: var(--verde-claro);
  }
  
  nav a.ativo {
    background: var(--verde-claro);
    color: white;
  }
  
  .menu-toggle { display: block; }
  
  .hero { padding: 50px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  
  .controles h2 { font-size: 1.6rem; }
  
  .busca { width: 100%; }
  .busca input { width: 100%; }
  
  .cards { grid-template-columns: 1fr; }
  
  .form-group {
    flex-direction: column;
    padding: 0 15px;
  }
  
  .card h3 {
    height: auto;
    -webkit-line-clamp: 3;
  }
  
  .back-to-top {
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .btn-super {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 12px 25px; }
  
  .whatsapp-fixo,
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}