/* ============================================================
   NutraPolska — CSS Global
   Paleta: Verde Floresta #2E7D32 · Terracota #C0501A
   Tipografia: Playfair Display (títulos) · DM Sans (corpo)
   ============================================================ */

:root {
  --verde:          #2E7D32;
  --verde-light:    #E8F5E9;
  --verde-mid:      #4CAF50;
  --terracota:      #C0501A;
  --terracota-hover:#A8421A;
  --text:           #1A1A1A;
  --text-muted:     #5A5A5A;
  --bg:             #FFFFFF;
  --bg-alt:         #F8FAF8;
  --border:         #E0E8E0;
  --rating:         #F59E0B;
  --success:        #7AC142;
  --error:          #EF4444;
  --radius:         8px;
  --shadow:         0 1px 4px rgba(0,0,0,.08);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── TIPOGRAFIA ─────────────────────────────────────── */
h1, h2, h3, .serif {
  font-family: Georgia, 'Times New Roman', serif;
}
h1 { font-size: 40px; font-weight: 700; line-height: 1.28; letter-spacing: 0.01em; margin-bottom: 18px; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: 0.005em; margin: 52px 0 18px; }
h3 { font-size: 19px; font-weight: 600; margin: 32px 0 12px; color: var(--verde); font-family: inherit; }
p  { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ── NAV ────────────────────────────────────────────── */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav__logo { text-decoration: none; display: flex; align-items: center; }
.nav__logo img { height: 36px; width: auto; display: block; }
.nav__links {
  list-style: none;
  display: flex;
  gap: 28px;
}
.nav__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--verde); }
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text);
}

/* ── CATEGORY BAR ───────────────────────────────────── */
.cat-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cat-bar__inner {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.cat-btn {
  white-space: nowrap;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all .15s;
}
.cat-btn:hover { color: var(--verde); }
.cat-btn.active { color: var(--verde); border-bottom-color: var(--verde); font-weight: 600; }

/* ── HERO (index) ───────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--verde-light) 0%, #fff 60%);
  padding: 64px 24px;
  text-align: center;
}
.hero__tag {
  display: inline-block;
  background: var(--verde);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 { max-width: 600px; margin: 0 auto 16px; }
.hero p   { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ── PRODUCT GRID ───────────────────────────────────── */
.grid-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
.grid-section__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  min-height: 420px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card__tagline { flex: 1; }
.card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #FFFFFF;
}
.card__img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--verde);
  font-weight: 500;
}
.card__cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--verde);
  font-weight: 600;
  margin-bottom: 6px;
}
.card__name {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: 0.005em;
}
.card__tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card__stars { color: var(--rating); font-size: 13px; }
.card__rating-count { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.card__pricing { display: flex; align-items: baseline; gap: 8px; margin: 10px 0; }
.card__price { font-size: 20px; font-weight: 700; color: var(--verde); }
.card__price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.card__badge {
  display: inline-block;
  background: var(--terracota);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.card__cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--verde);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.card__cta:hover { background: #245f27; }

/* ── BREADCRUMB ─────────────────────────────────────── */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--verde); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── PRODUCT PAGE LAYOUT ────────────────────────────── */
.page-hero { max-width: 900px; margin: 0 auto; padding: 32px 24px 48px; }
.page-hero__tag {
  display: inline-block;
  background: var(--verde-light);
  color: var(--verde);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.page-hero__meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.page-content { max-width: 900px; margin: 0 auto; padding: 0 24px 80px; content-visibility: auto; contain-intrinsic-size: 0 2000px; }

/* ── BUY BOX ────────────────────────────────────────── */
.buy-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.buy-box__img { width: 100%; display: block; }
.buy-box__body { padding: 24px; }
.price-badge { border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.price-badge__bar {
  background: var(--terracota);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 7px 12px;
}
.price-badge__body {
  background: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-badge__old {
  font-size: 16px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 4px;
}
.price-badge__new {
  font-size: 46px;
  font-weight: 700;
  color: var(--terracota);
  line-height: 1;
}
.price-badge__new span { font-size: 24px; }
.price-badge__save { font-size: 12px; font-weight: 600; color: var(--verde); margin-top: 4px; }
.price-badge__disc {
  background: var(--terracota);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  border-radius: 50%;
  width: 68px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1.1;
}
.price-badge__disc small { font-size: 11px; font-weight: 500; }

/* ── BUTTONS ────────────────────────────────────────── */
.btn { display: block; width: 100%; text-align: center; border-radius: 6px; padding: 15px; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s; border: none; }
.btn--primary { background: var(--terracota); color: #fff; margin-bottom: 10px; }
.btn--primary:hover { background: var(--terracota-hover); }
.btn--outline { background: transparent; color: var(--verde); border: 1px solid var(--verde); font-size: 15px; font-weight: 500; margin-bottom: 18px; }
.btn--outline:hover { background: var(--verde-light); }
.btn--lg { padding: 18px 44px; width: auto; display: inline-block; font-size: 17px; }

.trust-list { list-style: none; font-size: 14px; }
.trust-list li { padding: 5px 0; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.trust-list li::before { content: "✓"; color: var(--verde); font-weight: 700; flex-shrink: 0; }

/* ── CONTENT BLOCKS ─────────────────────────────────── */
.problem-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--verde);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 24px 0;
}
.problem-box ul { list-style: none; }
.problem-box ul li { padding: 6px 0 6px 20px; position: relative; }
.problem-box ul li::before { content: "›"; position: absolute; left: 0; color: var(--verde); font-weight: 700; }

.highlight-box { background: var(--verde-light); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }

.warning-box { background: #FFF8F5; border: 1px solid #F0D0C0; border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; font-size: 15px; color: var(--text-muted); }
.warning-box strong { color: var(--terracota); }

/* ── INGREDIENT CARDS ───────────────────────────────── */
.ingredient { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.ingredient__header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ingredient__icon { display: none; }
.ingredient__name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; }
.ingredient__label { font-size: 12px; color: var(--verde); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ingredient p { font-size: 16px; margin-bottom: 12px; }
.ingredient p:last-child { margin: 0; }
.science-tag { display: inline-block; background: var(--verde-light); color: var(--verde); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }

/* ── TABLES ─────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
th { background: var(--verde); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: var(--bg-alt); }

/* ── TIMELINE ───────────────────────────────────────── */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.timeline__item { text-align: center; padding: 20px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.timeline__week { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--terracota); font-weight: 700; margin-bottom: 8px; }
.timeline__item p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ── PROSPEKT ───────────────────────────────────────── */
.prospekt { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; margin: 24px 0; }
.prospekt__row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.prospekt__row:last-child { border-bottom: none; }
.prospekt__label { font-weight: 600; color: var(--text-muted); }

/* ── TESTIMONIALS ───────────────────────────────────── */
.testimonials { display: grid; gap: 20px; margin: 24px 0; }
.testimonial { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.testimonial__avatar { width: 52px; height: 52px; background: var(--verde); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; font-weight: 700; flex-shrink: 0; }
.testimonial__name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.testimonial__meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.testimonial p { margin: 0; font-size: 15px; }
.verified-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--verde); background: var(--verde-light); padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.verified-badge::before { content: '✓'; }
.stars { color: var(--rating); }
.stars--sm { font-size: 14px; }

/* ── FORUM COMMENTS ─────────────────────────────────── */
.forum-comment { border-left: 3px solid var(--border); padding: 14px 20px; margin-bottom: 14px; }
.forum-comment__user { font-weight: 600; font-size: 14px; color: var(--verde); margin-bottom: 6px; }
.forum-comment p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* ── AUTHOR BOX ─────────────────────────────────────── */
.author-box { display: flex; align-items: flex-start; gap: 20px; background: var(--verde-light); border-radius: var(--radius); padding: 24px; margin: 40px 0; }
.author-box__avatar { width: 64px; height: 64px; background: var(--verde); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.author-box__name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.author-box__title { font-size: 14px; color: var(--verde); margin-bottom: 10px; }
.author-box p { font-size: 15px; }

/* ── CTA SECTION ────────────────────────────────────── */
.cta-section { background: var(--verde); color: #fff; border-radius: 12px; padding: 40px 32px; text-align: center; margin: 48px 0; }
.cta-section h2 { color: #fff; margin-top: 0; font-size: 26px; margin-bottom: 20px; }
.cta-price-row { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 24px; }
.cta-price-old { font-size: 18px; color: rgba(255,255,255,.55); text-decoration: line-through; }
.cta-price-new { font-size: 48px; font-weight: 700; color: #fff; line-height: 1; }
.cta-price-new span { font-size: 24px; }
.cta-price-save { display: inline-block; background: var(--terracota); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.trust-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.chip { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.9); background: rgba(255,255,255,.12); border-radius: 6px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; }
.chip::before { content: "✓"; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ── FAQ ────────────────────────────────────────────── */
.faq__item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq__q { font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.faq__q::after { content: "+"; color: var(--verde); font-size: 22px; flex-shrink: 0; margin-left: 12px; transition: transform .2s; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { margin-top: 12px; color: var(--text-muted); font-size: 15px; display: none; }
.faq__item.open .faq__a { display: block; }

/* ── CHECKOUT PAGE ──────────────────────────────────── */
.checkout-page { max-width: 520px; margin: 0 auto; padding: 40px 24px; }
.checkout-page h1 { font-size: 24px; margin-bottom: 6px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; font-family: inherit; font-size: 16px; color: var(--text); outline: none; transition: border .15s; }
.form-group input:focus { border-color: var(--verde); }

.order-summary { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 32px; overflow: hidden; }
.order-summary__header { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 10px 20px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.order-summary__body { display: flex; align-items: center; gap: 20px; padding: 20px; }
.order-summary__img { width: 130px; height: 150px; object-fit: contain; border-radius: 6px; flex-shrink: 0; background: #fff; }
.order-summary__info { flex: 1; }
.order-summary__name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.order-summary__tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.order-summary__price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.order-summary__price { font-size: 38px; font-weight: 700; color: var(--terracota); line-height: 1; }
.order-summary__price-old { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.order-summary__cod { font-size: 12px; color: var(--text-muted); }
.order-summary__trust { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px; background: var(--bg-alt); border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.order-summary__trust span::before { content: '✓ '; color: var(--verde); font-weight: 700; }

.phone-row { display: flex; }
.phone-prefix { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--border); border-right: none; border-radius: 6px 0 0 6px; background: var(--bg-alt); font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.phone-row input { flex: 1; border-radius: 0 6px 6px 0 !important; }

.checkout-submit { width: 100%; padding: 16px; font-size: 17px; font-weight: 600; margin-top: 8px; }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.checkout-secure::before { content: '🔒'; }

/* ── OBRIGADO PAGE ──────────────────────────────────── */
.obrigado-page { max-width: 600px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.obrigado-page .icon { font-size: 64px; margin-bottom: 24px; }
.steps { list-style: none; text-align: left; margin-top: 32px; }
.steps li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.steps li:last-child { border-bottom: none; }
.step-num { width: 32px; height: 32px; background: var(--verde); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 14px; }

/* ── FOOTER ─────────────────────────────────────────── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; font-size: 13px; color: var(--text-muted); }
.footer strong { color: var(--verde); }
.footer__links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.footer__links a { color: var(--text-muted); text-decoration: none; }
.footer__links a:hover { color: var(--verde); }

/* ── OFFLINE PAGE ───────────────────────────────────── */
.offline-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; padding: 24px; }

/* ── CONTENT UTILS ──────────────────────────────────── */
.content-list { padding-left: 20px; margin-bottom: 16px; }
.content-list li { margin-bottom: 8px; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero__grid { grid-template-columns: 1fr; }
  .buy-box { position: static; order: -1; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 10px; }
  .card__cat { font-size: 10px; margin-bottom: 4px; }
  .card__name { font-size: 14px; margin-bottom: 4px; }
  .card__tagline { font-size: 12px; margin-bottom: 6px; }
  .card__stars { font-size: 11px; }
  .card__pricing { margin: 6px 0; }
  .card__price { font-size: 16px; }
  .card__badge { font-size: 10px; padding: 2px 6px; margin-bottom: 8px; }
  .card__cta { padding: 8px; font-size: 13px; }
  .cta-section { padding: 32px 20px; }
  .prospekt__row { grid-template-columns: 1fr; gap: 4px; }
  .author-box { flex-direction: column; }
  .cat-bar__inner { padding: 0 12px; }
  .page-hero { padding: 24px 16px 32px; }
  .page-content { padding: 0 16px 60px; }
}
