:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #00cec9;
  --dark: #1a1a2e;
  --text: #2d3436;
  --muted: #636e72;
  --bg: #ffffff;
  --bg-soft: #f8f7ff;
  --border: #e8e6f0;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e17055;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.1rem;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; color: var(--muted); transition: color 0.2s; }
.main-nav a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--dark); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  background:
    radial-gradient(800px 300px at 80% -10%, rgba(108, 92, 231, 0.16), transparent),
    radial-gradient(600px 260px at 10% 0%, rgba(0, 206, 201, 0.12), transparent),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 56px;
}

.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 16px;
}

.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 54ch; margin-bottom: 26px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 12px 22px;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(108, 92, 231, 0.42); transform: translateY(-1px); }

.btn-ghost { background: #fff; color: var(--dark); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.search-bar { margin: -26px auto 48px; position: relative; z-index: 10; }

.search-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 20px;
}
.search-icon { color: var(--muted); flex-shrink: 0; }
.search-wrap input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  padding: 12px 4px;
  background: transparent;
  font-family: inherit;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 20px; }

.filter-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.filter-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.category-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.category-icon { font-size: 1.7rem; margin-bottom: 10px; }
.category-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.category-card p { font-size: 0.82rem; color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.25s;
  position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  padding: 18px;
}
.product-thumb img { max-height: 150px; object-fit: contain; transition: transform 0.3s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 8px;
  color: #fff;
}
.badge.destaque { background: var(--primary); }
.badge.oferta { background: var(--danger); }
.badge.novo { background: var(--accent); color: var(--dark); }

.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }

.product-cat { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 6px; }

.product-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.35; cursor: pointer; }
.product-title:hover { color: var(--primary); }

.product-desc {
  font-size: 0.85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.rating-row { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.stars { color: var(--warning); font-size: 0.9rem; letter-spacing: 1px; }
.rating-num { font-weight: 700; font-size: 0.85rem; }
.review-count { color: var(--muted); font-size: 0.78rem; }

.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.price-current { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.price-old { font-size: 0.9rem; color: var(--muted); text-decoration: line-through; }
.price-discount { font-size: 0.78rem; font-weight: 700; color: var(--success); background: rgba(0, 184, 148, 0.12); padding: 3px 8px; border-radius: 6px; }

.product-actions { margin-top: auto; display: flex; gap: 10px; }
.product-actions .btn { flex: 1; padding: 10px 14px; font-size: 0.88rem; border-radius: 10px; }
.btn-sm-ghost { background: transparent; border-color: var(--border); color: var(--dark); }

.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

.how-it-works { padding: 56px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

.reviews { padding: 56px 0 64px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; color: var(--dark); font-size: 0.95rem; }
.review-product { color: var(--muted); font-size: 0.8rem; }
.review-text { color: var(--text); font-size: 0.92rem; }
.review-card .stars { margin-bottom: 10px; }

.affiliate-note {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(0, 206, 201, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.affiliate-note h2 { font-size: 1.5rem; color: var(--dark); margin-bottom: 12px; }
.affiliate-note p { max-width: 78ch; color: var(--muted); margin-bottom: 12px; }
.affiliate-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  background: #fff;
  border: 1px dashed var(--primary);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 10px;
}

.newsletter {
  text-align: center;
  padding: 64px 0;
}
.newsletter h2 { font-size: 1.6rem; color: var(--dark); margin-bottom: 8px; }
.newsletter p { color: var(--muted); margin-bottom: 22px; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-msg { margin-top: 14px; font-weight: 600; font-size: 0.9rem; }
.newsletter-msg.ok { color: var(--success); }
.newsletter-msg.err { color: var(--danger); }

.site-footer { background: var(--dark); color: #d5d5ea; padding-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: #a9a9c8; max-width: 34ch; }
.footer-links h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; }
.footer-links a { display: block; color: #a9a9c8; font-size: 0.88rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; font-size: 0.82rem; color: #8a8ab0; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(26, 26, 46, 0.6); backdrop-filter: blur(4px); }
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 1.3rem;
  color: var(--muted);
  z-index: 2;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--dark); color: #fff; }
.modal-body { padding: 28px; }
.modal-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; }
.modal-thumb {
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.modal-thumb img { max-height: 220px; object-fit: contain; }
.modal-info h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: 10px; }
.modal-pros { margin: 16px 0; }
.modal-pros li { list-style: none; font-size: 0.9rem; color: var(--muted); padding: 4px 0 4px 24px; position: relative; }
.modal-pros li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--success);
}
.modal-cons li::before { background: var(--danger); }

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 40;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--primary-dark); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 5%;
    gap: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .modal-detail { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}
