:root {
  --bg: #f4f1ea;
  --ink: #1a1814;
  --muted: #5c574e;
  --line: #d9d2c5;
  --paper: #fffcf7;
  --accent: #2c4a5a;
  --accent-fg: #f4f1ea;
  --ok: #2f5d45;
  --radius: 14px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; display: block; }
video { max-width: 100%; }
button, .btn { font: inherit; cursor: pointer; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
header.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.brand span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
nav.top-nav { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
}
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn.wide { width: 100%; }
.hero { padding: 48px 0 28px; }
.hero h1 { font-family: var(--display); font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 8px 0 12px; letter-spacing: -0.03em; }
.kicker { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding-bottom: 64px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.art {
  position: relative;
  background: #1c3a48;
  overflow: hidden;
  height: 140px;
}
.art img,
.art video,
.art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #1c3a48;
}
.art-lg {
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  max-height: 420px;
  border-radius: var(--radius);
}
.tbl .art { height: 72px; }
.cfg-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 18px 0 10px; color: var(--muted); }
.qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.qty-card {
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.qty-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.qty-card input { position: absolute; opacity: 0; pointer-events: none; }
.qty-n { font-weight: 700; }
.qty-p { font-size: 13px; color: var(--muted); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.price { font-size: 22px; font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; }
.pdp { display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 32px; padding: 36px 0 80px; align-items: start; }
.pdp-title { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); margin: 10px 0 8px; letter-spacing: -0.03em; }
.resumo {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: sticky; top: 88px;
}
.resumo p { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }
.resumo .price { margin: 16px 0; }
.resumo .btn + .btn { margin-top: 8px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 14px 0 6px; }
select, input, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; background: #fff; font: inherit;
}
textarea { min-height: 96px; resize: vertical; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.flash { background: #e8efe8; border: 1px solid #c3d4c5; padding: 12px 14px; border-radius: 10px; margin: 16px 0; }
.btn.wa { background: var(--ok); color: #f4f1ea; border-color: var(--ok); }
.pix { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pix-qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; width: max-content; padding: 10px; margin: 12px 0; }
.pix-code { font-family: ui-monospace, monospace; font-size: 12px; min-height: 88px; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  min-height: 48px; padding: 0 16px; border-radius: 999px;
  background: var(--ok); color: #f4f1ea; text-decoration: none;
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600;
}
@media (max-width: 760px) {
  .pdp { grid-template-columns: 1fr; }
  .resumo { position: static; }
  .top-inner { padding: 8px 0; flex-wrap: wrap; }
}
