/* ACHADO CERTO — identidade visual
   Paleta: papel kraft claro, tinta quase-preta, vermelho-tomate (urgência/oferta),
   verde-petróleo (confiança/economia), dourado (etiqueta de preço).
   Motivo: etiquetas de preço rotacionadas + linhas tracejadas "recorte aqui" (cupom). */

:root {
  --bg: #FBF8F3;
  --panel: #FFFFFF;
  --ink: #1F2421;
  --ink-soft: #52534E;
  --muted: #8C897E;
  --line: #E7E1D4;
  --red: #E0472C;
  --red-dark: #B8331C;
  --teal: #1F6F5C;
  --teal-dark: #14493D;
  --gold: #F4B942;
  --gold-dark: #A87A1E;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, .brand {
  font-family: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
header.site {
  background: var(--panel);
  border-bottom: 2px solid var(--ink);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand .dot { color: var(--red); }
nav.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
nav.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 7px 11px;
  border-radius: 6px;
}
nav.main-nav a:hover { background: var(--bg); color: var(--ink); }

/* ---- Hero ---- */
.hero {
  padding: 56px 0 44px;
  border-bottom: 2px dashed var(--line);
  position: relative;
}
.hero .kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  max-width: 15ch;
  margin-bottom: 14px;
}
.hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 0;
}

/* ---- Section heads ---- */
.section {
  padding: 40px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}
.section-head h2 { font-size: 1.4rem; }
.section-head .see-all {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red-dark);
  white-space: nowrap;
}

/* ---- Category grid ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--panel);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 20px 18px;
  transition: transform .12s ease;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card .icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.cat-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cat-card .count { font-size: 0.8rem; color: var(--muted); }

/* ---- Product grid & cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-photo {
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(135deg, var(--line), var(--line) 8px, transparent 8px, transparent 16px);
  border-radius: 10px 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* padding-top hack: guarantees a square box even in browsers/tools without aspect-ratio support */
  height: 0;
  padding-top: 100%;
}
.product-photo img {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px 10px 0 0;
}
.price-tag {
  position: absolute;
  top: -10px;
  right: -8px;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 10px 6px 14px;
  border-radius: 3px 8px 8px 3px;
  transform: rotate(4deg);
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
  border: 1px solid var(--gold-dark);
}
.price-tag::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  background: var(--bg);
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
}
.product-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-body .cat-chip {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.product-body h3 {
  font-size: 0.92rem;
  line-height: 1.35;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  min-height: 2.6em;
}
.product-meta {
  font-size: 0.76rem;
  color: var(--muted);
}
.btn-row {
  margin-top: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px 12px;
  border-radius: 7px;
  flex: 1;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---- Article / product review page ---- */
.article-head { padding: 40px 0 20px; }
.breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--teal-dark); font-weight: 600; }
.article-head h1 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 10px; }
.article-lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }

.article-cover {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
  margin: 26px 0 10px;
}
@media (max-width: 640px) { .article-cover { grid-template-columns: 1fr; } }
.buy-box {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 18px;
  background: var(--panel);
}
.buy-box .price-big {
  font-family: 'Zilla Slab', serif;
  font-size: 2rem;
  color: var(--red-dark);
}
.buy-box .old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: 6px;
}
.buy-box .sales { font-size: 0.78rem; color: var(--muted); margin: 6px 0 14px; }

article.body-copy {
  padding: 10px 0 40px;
  max-width: 74ch;
}
article.body-copy h2 {
  font-size: 1.3rem;
  margin: 28px 0 10px;
  padding-top: 6px;
  border-top: 2px dashed var(--line);
}
article.body-copy h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
article.body-copy p { color: var(--ink-soft); margin: 0 0 14px; }
article.body-copy ul { color: var(--ink-soft); padding-left: 20px; }
article.body-copy li { margin-bottom: 6px; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; } }
.pros, .cons {
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--line);
}
.pros { background: #EFF6F2; }
.cons { background: #FBF1EE; }
.pros h3, .cons h3 { font-size: 0.9rem; margin-bottom: 8px; }

.cta-block {
  text-align: center;
  border: 2px dashed var(--red);
  border-radius: 12px;
  padding: 26px;
  margin: 24px 0;
  background: #FDF1EE;
}
.cta-block .btn { display: inline-block; padding: 13px 26px; font-size: 0.95rem; }

/* ---- Footer ---- */
footer.site {
  border-top: 2px solid var(--ink);
  padding: 30px 0;
  margin-top: 30px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-grid a { color: var(--ink-soft); font-weight: 600; }
.footer-grid nav { display: flex; gap: 14px; flex-wrap: wrap; }
.disclaimer {
  font-size: 0.74rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
  max-width: 90ch;
}

/* ---- Institutional pages ---- */
.page-body {
  padding: 40px 0 60px;
  max-width: 74ch;
}
.page-body h1 { font-size: 1.8rem; margin-bottom: 18px; }
.page-body h2 { font-size: 1.15rem; margin: 22px 0 8px; }
.page-body p, .page-body li { color: var(--ink-soft); }
