/* =========================================================================
   O QUE VALE COMPRAR - CSS SYSTEM
   Premium White Theme
========================================================================= */

/* CSS Variables */
:root {
  --primary: #0066FF;       /* Vibrant Blue */
  --primary-hover: #0050CC;
  --secondary: #FFFBEB;     /* Soft highlight */
  --accent: #FCA400;        /* MercadoLivre-ish yellow/orange for attention */
  --bg-color: #FAFAFB;      /* Base Light background */
  --surface: #FFFFFF;       /* Card background */
  --text-main: #14161A;
  --text-muted: #5F6368;
  --border: #ECEDEE;
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 40px rgba(0, 102, 255, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, .logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================== NAVBAR ================== */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-blog {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot-new {
  width: 8px;
  height: 8px;
  background-color: var(--accent); /* Cor amarela/laranja chamativa */
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(252, 164, 0, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(252, 164, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(252, 164, 0, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(252, 164, 0, 0);
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* ================== HERO SECTION ================== */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #F3F7FF 0%, #FFFFFF 100%);
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.badge {
  display: inline-block;
  background: #E8F0FE;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.hero-image-bg {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
  height: 480px; /* Definido altura fixa para o slider */
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
}

/* ====== HERO BANNER CARD ====== */
.hero-banner-card {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: float 4s ease-in-out infinite;
}

.slider-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.dot {
  width: 10px;
  height: 10px;
  background: #CBD0D5;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  width: 30px;
  background: var(--primary);
  border-radius: 10px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.hb-badge {
  position: absolute;
  top: -15px;
  right: 25px;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 10px 20px rgba(252, 164, 0, 0.3);
  z-index: 10;
  text-transform: uppercase;
}

.hb-content {
  text-align: center;
}

.hb-content img {
  width: auto;
  max-width: 100%;
  max-height: 160px; /* Reduzido para proporção melhor */
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.12));
}

.hb-info h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}

.hb-price {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.hb-price .old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.hb-price .current {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

.btn-hb {
  display: block;
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-hb:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* ================== PRODUCTS SECTION ================== */
.products {
  padding: 100px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 64px;
}

.section-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-heading h2 span {
  color: var(--primary);
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/* Product Card */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 102, 255, 0.2);
}

.card-image {
  height: 280px;
  position: relative;
  background-color: #fff;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.08);
}

.discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.discount-badge.destaque {
  background: var(--accent);
  color: #14161A;
}

.card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  line-height: 1.4;
  flex-grow: 1;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.price-old {
  font-size: 0.95rem;
  color: #A0A4A8;
  text-decoration: line-through;
}

.price-current {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.installments {
  font-size: 0.85rem;
  color: #00A650; /* ML Green */
  font-weight: 500;
  margin-bottom: 24px;
}

.btn-block {
  width: 100%;
}

.btn-buy {
  background-color: #FFE600; /* ML Yellow */
  color: #2D3277;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-buy:hover {
  background-color: #FFD100;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.4);
}

/* ====== BOTÃO WHATSAPP ====== */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  gap: 8px;
  font-size: 0.92rem;
  padding: 12px 24px;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  color: #fff;
}

/* ================== SEARCH BAR ================== */
.search-container {
  margin-bottom: 24px;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9AA0A6;
  pointer-events: none;
}

#product-search {
  width: 100%;
  padding: 16px 16px 16px 48px;
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

#product-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
  background: #fff;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.no-results .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.view-more {
  text-align: center;
  margin-top: 40px;
}

/* ================== CATEGORIES FILTER ================== */
.categories-filter-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 8px 4px 16px 4px;
  margin-bottom: 32px;
  /* Visual Cues for scroll */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #CBD0D5 transparent;
  cursor: grab;
}

.categories-filter-container:active {
  cursor: grabbing;
}

/* Custom Webkit Scrollbar */
.categories-filter-container::-webkit-scrollbar {
  height: 6px;
}

.categories-filter-container::-webkit-scrollbar-track {
  background: transparent;
}

.categories-filter-container::-webkit-scrollbar-thumb {
  background-color: #E8EAED;
  border-radius: 10px;
}

.categories-filter-container:hover::-webkit-scrollbar-thumb {
  background-color: #CBD0D5;
}

.category-btn {
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* For JS filtering animation */
.product-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease;
}

.product-card.hidden {
  display: none;
}

/* ================== ABOUT SECTION ================== */
.about {
  padding: 100px 0;
  background: var(--bg-color);
}

.about-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  box-shadow: var(--shadow-md);
}

.about-content {
  flex: 1.5;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.about-content h2 span {
  color: var(--primary);
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content strong {
  color: var(--text-main);
  font-weight: 700;
}

.about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: var(--bg-color);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .about-wrapper {
    flex-direction: column;
    padding: 40px 24px;
    gap: 40px;
  }
  .about-stats {
    width: 100%;
  }
}

/* ================== FOOTER ================== */
.footer {
  background-color: #14161B;
  color: #fff;
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.text-white {
  color: #fff;
}

.footer-brand p {
  color: #9AA0A6;
  margin-top: 16px;
  max-width: 400px;
}

.footer-links h4, .footer-legal h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links a, .footer-legal a {
  display: block;
  color: #9AA0A6;
  margin-bottom: 12px;
}

.footer-links a:hover, .footer-legal a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  color: #9AA0A6;
  font-size: 0.9rem;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  
  .hero-image-bg {
    width: 100%;
    height: auto;
    min-height: 420px;
    justify-content: center;
  }

  .hero-slider {
    max-width: 100%;
    height: 420px;
  }

  .hero-banner-card {
    position: relative; /* Mudamos para relativo no mobile para o container respeitar a altura */
    opacity: 0;
    display: none;
    margin: 0 auto;
  }

  .hero-banner-card.active {
    opacity: 1;
    display: block;
  }

  .hb-content img {
    max-height: 140px;
  }

  .slider-dots {
    bottom: -30px;
  }
  
  .hero p {
    margin: 0 auto 32px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ======= BOTÃO VOLTAR AO TOPO ======= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 56, 255, 0.2);
}


@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple toggle via JS */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }
}
