:root {
  --bg: #F7F2E9;
  --bg-soft: #EFE7D3;
  --card: #FFFFFF;
  --text: #2E2B25;
  --muted: #79705F;
  --sage: #8C9B72;
  --sage-dark: #6D7C55;
  --orange: #D9791E;
  --blue: #3D6E8C;
  --blue-dark: #2C516A;
  --border: #E7DECA;
  --whatsapp: #25D366;
  --shadow: 0 12px 32px -14px rgba(46, 43, 37, 0.2);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3 { font-family: "Fredoka", "Poppins", sans-serif; letter-spacing: -0.01em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Promo bar */
.promo-bar {
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 12px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.5);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); }
.btn-outline { border: 1.5px solid var(--sage); color: var(--sage-dark); background: transparent; }
.btn-outline:hover { background: var(--bg-soft); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* Hero */
.hero { padding: 40px 0 0; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-text { text-align: center; max-width: 640px; margin: 0 auto; }
.hero-title { font-size: 2.4rem; font-weight: 700; margin-top: 10px; line-height: 1.15; }
.hero-cta { text-align: center; margin-top: 28px; }
.hero-cta .btn { padding: 16px 32px; font-size: 1.05rem; }
@media (max-width: 640px) {
  .hero-title { font-size: 1.7rem; }
}

/* Sections */
section { padding: 56px 0; }
.section-kicker {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
}
.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 600;
  margin-top: 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 12px auto 0;
}

/* Products */
.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 22px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-img { aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-soldout { background: #6B6459; }
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1rem; font-weight: 600; min-height: 2.6em; }
.product-body h3 a:hover { color: var(--sage-dark); }
.price-row { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.price-now { font-size: 1.3rem; font-weight: 700; color: var(--sage-dark); }
.price-old { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }
.product-body .btn { margin-top: 14px; justify-content: center; }

/* Product detail page */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--sage-dark); font-weight: 600; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumbs button {
  padding: 0;
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs button.active { border-color: var(--blue); }
@media (max-width: 800px) {
  .gallery-main { height: 300px; }
}
.product-detail-info h1 { font-size: 1.8rem; font-weight: 600; line-height: 1.2; }
.product-detail-info .price-row { margin-top: 16px; }
.product-detail-info .price-now { font-size: 1.9rem; }
.product-detail-info .description { margin-top: 18px; color: var(--muted); line-height: 1.7; }
.feature-list { margin-top: 24px; list-style: none; }
.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.feature-list li span:first-child { color: var(--muted); }
.feature-list li span:last-child { font-weight: 600; text-align: right; }
.color-swatches { display: flex; gap: 8px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.product-detail-info .btn-primary { margin-top: 28px; padding: 15px 30px; font-size: 1rem; }
.soldout-note {
  margin-top: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
}

/* Lightbox (zoom da foto) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(46, 43, 37, 0.9);
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* Benefits */
.benefits { background: var(--bg-soft); }
.benefit-list {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.benefit-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.benefit-item .emoji { font-size: 1.8rem; }
.benefit-item h4 { margin-top: 12px; font-size: 1rem; font-weight: 600; }
.benefit-item p { margin-top: 6px; font-size: 0.85rem; color: var(--muted); }

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 28px;
  margin: 0 20px;
  padding: 56px 24px;
  color: #fff;
}
.final-cta h2 { font-size: 1.9rem; font-weight: 600; }
.final-cta p { margin-top: 12px; opacity: 0.92; max-width: 480px; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary { margin-top: 26px; background: #fff; color: var(--blue-dark); box-shadow: 0 10px 24px -8px rgba(0,0,0,0.25); }

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6);
  z-index: 50;
  animation: pulse 2.2s ease-in-out infinite;
}
.floating-whatsapp svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* Footer */
footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: var(--sage-dark); font-weight: 600; }

@media (max-width: 640px) {
  .final-cta { margin: 0 12px; padding: 40px 20px; }
  .promo-bar { font-size: 0.72rem; gap: 14px; }
}
