/* ===== Base ===== */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5b54;
  --line: #e4e1da;
  --brand: #1f3a2e;
  --cta: #c2410c;
  --cta-hover: #9a3412;
  --good: #166534;
  --warn: #9a3412;
  --radius: 12px;
  --max: 1040px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--brand); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); margin-top: 0; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header / Footer ===== */
.site-header {
  background: var(--brand);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.logo span { color: #fdba74; }

.site-footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
/* espaço para a barra fixa de compra no celular */
.has-sticky .site-footer { padding-bottom: 110px; }
@media (min-width: 900px) {
  .has-sticky .site-footer { padding-bottom: 32px; }
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(194, 65, 12, .35);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #fdba74; outline-offset: 3px; }
.btn-block { display: flex; width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

.disclosure {
  font-size: .82rem;
  color: var(--muted);
  margin: 8px 0 0;
  text-align: center;
}

/* ===== Cards (home) ===== */
.hero { padding: 36px 0 20px; }
.hero p { color: var(--muted); max-width: 620px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img {
  background: #fff;
  aspect-ratio: 1 / 1;
  padding: 16px;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-body h2 { font-size: 1.15rem; margin: 0; }
.card-body h2 a { color: var(--text); text-decoration: none; }
.card-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-actions { margin-top: auto; display: grid; gap: 10px; }
.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid var(--brand);
  border-radius: 10px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ===== Página de produto ===== */
.crumbs {
  font-size: .85rem;
  color: var(--muted);
  padding: 16px 0 8px;
}
.crumbs a { color: var(--muted); }

.product-top {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}
@media (min-width: 900px) {
  .product-top { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

.gallery-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  padding: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.thumbs button {
  flex: 0 0 72px;
  height: 72px;
  padding: 4px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: var(--cta); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.buy-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.buy-box .lead { color: var(--muted); }
.quick-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}
.quick-list li {
  padding-left: 28px;
  position: relative;
}
.quick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--good);
  font-weight: 800;
}

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
}

.verdict {
  border-left: 5px solid var(--cta);
}

.pros-cons {
  display: grid;
  gap: 20px;
}
@media (min-width: 700px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}
.pros-cons ul { margin: 0; padding-left: 1.2em; }
.pros-cons li { margin-bottom: 6px; }
.pros h3 { color: var(--good); }
.cons h3 { color: var(--warn); }

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: .97rem;
}
.specs th, .specs td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.specs th { width: 45%; color: var(--muted); font-weight: 600; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 32px;
}
.faq details p { margin: 10px 0 0; color: var(--muted); }

.final-cta { text-align: center; }
.final-cta .btn { width: 100%; max-width: 420px; }

/* ===== Barra fixa de compra (celular) ===== */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}
@media (min-width: 900px) {
  .sticky-buy { display: none; }
}
