/* J.A.V.A · catálogo · folha de estilo principal */

:root {
  /* ── Brand palette ─────────────────────────────────────── */
  --brown:        #6E3D30;
  --brown-deep:   #4a2820;
  --brown-soft:   #8d5644;
  --cream:        #FFFDED;
  --cream-warm:   #F4ECD8;
  --cream-deep:   #E8DBBE;
  --paper:        #F7F1E1;
  --ink:          #2a1a13;
  --ink-soft:     #5a4438;

  /* accents per linha */
  --acc-intensos:  #6E3D30;
  --acc-origem:    #B8862E;
  --acc-diet:      #4E80A0;
  --acc-recheados: #B6663B;
  --acc-infantil:  #D17B5A;

  /* Type */
  --font-display:  "Fira Sans", "Helvetica Neue", sans-serif;
  --font-body:     "Fira Sans", "Helvetica Neue", sans-serif;

  /* Variation tokens (overridden by [data-variant]) */
  --bg:           var(--cream);
  --bg-deep:      var(--cream-warm);
  --fg:           var(--ink);
  --fg-soft:      var(--ink-soft);
  --card-bg:      #FFFFFF;
  --card-border:  rgba(110, 61, 48, 0.14);
  --accent:       var(--brown);
  --rule:         rgba(110, 61, 48, 0.18);

  /* Sizing */
  --pad:          clamp(20px, 3vw, 48px);
  --maxw:         1320px;
  --radius:       2px;
}

/* ─── VARIATIONS ─────────────────────────────────────────── */
[data-variant="editorial"] {
  --bg:          #FBFAF6;
  --bg-deep:     #F0EEE6;
  --fg:          #1a1a1a;
  --fg-soft:     #5a5a5a;
  --card-bg:     #FFFFFF;
  --card-border: rgba(0,0,0,0.08);
  --accent:      #1a1a1a;
  --rule:        rgba(0,0,0,0.1);
}
[data-variant="premium"] {
  --bg:          #1a1310;
  --bg-deep:     #0f0a08;
  --fg:          #f4ecd8;
  --fg-soft:     #b8a48f;
  --card-bg:     #251a14;
  --card-border: rgba(244, 236, 216, 0.12);
  --accent:      #d6a857;
  --rule:        rgba(244, 236, 216, 0.16);
}

/* ─── Reset / base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }

/* ─── Typography utilities ───────────────────────────────── */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.over    { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.lead    { font-size: 19px; line-height: 1.55; color: var(--fg-soft); }
.mono    { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: 0.04em; }

h1.title { font-size: clamp(40px, 5vw, 64px); font-weight: 500; line-height: 1.05; margin: 0; }
h2.title { font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h3.title { font-size: 22px; font-weight: 500; line-height: 1.25; margin: 0; }

/* ─── Header / shell ────────────────────────────────────── */
.site {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar { padding: 18px var(--pad); }
.topbar .brand { display: flex; align-items: center; gap: 12px; }
.topbar .brand .brand-logo {
  /* 3cm @ 96dpi ≈ 113px — comprimido um pouco para caber bem */
  width: 100px;
  height: auto;
  display: block;
}
.topbar .brand-name { display: none; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.topbar nav a.active, .topbar nav a:hover { color: var(--fg); opacity: 1; }
.topbar .actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.primary:hover { opacity: 0.85; }
.btn.ghost { border-color: var(--rule); color: var(--fg-soft); }
.btn.ghost:hover { color: var(--fg); border-color: var(--fg); background: transparent; }

/* ─── Symbol bar (sem leite · sem glúten · vegano) ───────── */
.symbol-bar {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 24px 0;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.symbol-bar .sym {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.symbol-bar .sym span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.symbol-bar .sym svg {
  display: block;
}
@media (max-width: 700px) {
  .symbol-bar { gap: 32px; }
  .symbol-bar .sym svg { width: 32px; height: 32px; }
}

/* ─── Section eyebrow (Fira Sans Bold) ───────────────────── */
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* italic medium lead */
.lead.lead-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* ─── COVER ─────────────────────────────────────────────── */
.cover {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min(50vw, calc(100vh - 64px));
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.cover-text {
  padding: clamp(32px, 5vw, 72px) clamp(28px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 3vw, 40px);
}
.cover-text .meta {
  display: flex;
  gap: 32px;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.cover-text h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 300;
  line-height: 0.95;
  margin: 40px 0 28px;
  letter-spacing: -0.02em;
}
.cover-text h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.cover-text .subtitle {
  font-size: clamp(17px, 1.5vw, 21px);
  max-width: 38ch;
  color: var(--fg-soft);
  line-height: 1.55;
  margin: 0 0 56px;
}
.cover-footnote {
  display: flex; gap: 32px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.cover-footnote span { display: inline-flex; align-items: center; gap: 8px; }
.cover-footnote span::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.cover-img {
  position: relative;
  background: var(--brown);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: calc(100vh - 64px);
  align-self: center;
  justify-self: stretch;
}
.cover-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
[data-variant="premium"] .cover-img { background: var(--brown-deep); }

/* logo lockup on cover */
.cover-logo {
  position: absolute;
  bottom: 40px; right: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--cream);
}
.cover-logo img { width: 84px; height: auto; }
.cover-logo .est { font-size: 10px; letter-spacing: 0.3em; opacity: 0.7; }

/* ─── SUMÁRIO ────────────────────────────────────────────── */
.sumario {
  padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--rule);
}
.sumario .grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.sumario h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.sumario .toc { display: flex; flex-direction: column; gap: 0; }
.toc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 0.18s ease;
}
.toc-row:first-child { border-top: 1px solid var(--rule); }
.toc-row:hover { padding-left: 8px; }
.toc-row .num { font-family: ui-monospace, monospace; font-size: 12px; color: var(--fg-soft); letter-spacing: 0.04em; }
.toc-row .name { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.toc-row .sub { color: var(--fg-soft); font-size: 13px; letter-spacing: 0.04em; }
.toc-row .count { color: var(--fg-soft); font-size: 12px; font-family: ui-monospace, monospace; }

/* ─── MANIFESTO ──────────────────────────────────────────── */
.manifesto {
  padding: clamp(64px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-deep);
}
.manifesto .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.manifesto blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--fg);
}
.manifesto blockquote em { color: var(--accent); font-style: italic; }
.manifesto .credos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.credos > div { border-left: 1px solid var(--accent); padding-left: 16px; }
.credos h4 { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin: 0 0 6px; }
.credos p { font-size: 14px; margin: 0; color: var(--fg-soft); line-height: 1.5; }

/* ─── SECTION HEAD ───────────────────────────────────────── */
.section-head {
  padding: clamp(48px, 6vw, 96px) 0 clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
}
.section-head .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.015em;
}
.section-head .right { color: var(--fg-soft); font-size: 15px; max-width: 48ch; }

/* ─── FILTERS ────────────────────────────────────────────── */
.filters {
  position: sticky; top: 64px; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 8px 6px;
  padding: 20px 0;
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.filters .grp {
  display: flex; gap: 6px; align-items: center;
  padding-right: 14px;
  border-right: 1px solid var(--rule);
}
.filters .grp:last-of-type { border-right: none; }
.filters .grp-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-soft); margin-right: 4px;
}
.chip {
  padding: 7px 12px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  border-radius: 100px;
  transition: all 0.15s ease;
}
.chip:hover { color: var(--fg); border-color: var(--fg-soft); }
.chip.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.filters .reset {
  margin-left: auto;
  font-size: 12px;
  color: var(--fg-soft);
  background: none;
  border: none;
  letter-spacing: 0.06em;
}
.filters .reset:hover { color: var(--fg); }

/* "mais vendidos" chip emphasis */
.chip.chip-best {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}
.chip.chip-best.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ─── PRODUCT GRID ───────────────────────────────────────── */
.grid-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 0 0 80px;
}
.card {
  background: var(--bg);
  padding: 24px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  position: relative;
  text-align: left;
  border: none;
  width: 100%;
  transition: background 0.2s ease;
  cursor: pointer;
  min-height: 360px;
}
.card:hover { background: var(--bg-deep); }
.card .badge-new {
  position: absolute; top: 12px; left: 12px;
  z-index: 2;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 4px 8px;
  background: var(--accent); color: var(--bg);
  border-radius: 100px;
}
.card .badge-best {
  position: absolute; top: 12px; right: 12px;
  z-index: 2;
  width: 26px; height: 26px;
  background: var(--accent); color: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.card-actions {
  display: flex; gap: 6px;
  margin-top: -4px;
}
.card-actions .mini-btn {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-actions .mini-btn:hover {
  color: var(--fg);
  border-color: var(--fg-soft);
}
.card-actions .mini-btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 500;
}
.card-actions .mini-btn.primary:hover {
  opacity: 0.85;
  color: var(--bg);
}
.card-actions .mini-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.card .photo {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.card .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .photo img { transform: scale(1.04); }
.card .photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--placeholder-tone, var(--brown-soft)), color-mix(in oklab, var(--placeholder-tone, var(--brown-soft)) 70%, black));
}
.card .photo.placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.07) 14px 15px);
}
.card .photo.placeholder .ph-label {
  position: relative;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  padding: 0 16px;
  letter-spacing: 0.02em;
}
.card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-soft); }
.card .meta .pct { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.02em; color: var(--accent); font-weight: 500; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0;
}
.card .family { font-size: 13px; color: var(--fg-soft); margin-top: -4px; line-height: 1.3; }
.card .sizes { display: flex; gap: 10px; margin-top: 8px; }
.card .sizes .sz {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--fg-soft);
}
/* legacy .compare overlay removed in favor of card-actions */

/* ─── PRODUCT DETAIL (modal/sheet) ───────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 12, 8, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: stretch; justify-content: flex-end;
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: min(620px, 100%);
  background: var(--bg);
  color: var(--fg);
  overflow-y: auto;
  animation: slide 0.3s ease;
  display: flex; flex-direction: column;
}
@keyframes slide { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-deep);
  overflow: hidden;
}
.sheet-head img { width: 100%; height: 100%; object-fit: cover; }
.sheet-head .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--placeholder-tone, var(--brown-soft)), color-mix(in oklab, var(--placeholder-tone, var(--brown-soft)) 70%, black));
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 36px;
}
.sheet-head .close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.sheet-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 28px; }
.sheet-body .pct {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.sheet-body h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); font-weight: 500; line-height: 1.05; margin: 4px 0 4px; letter-spacing: -0.01em; }
.sheet-body .family-line { color: var(--fg-soft); font-size: 15px; }
.sheet-body .desc { font-size: 17px; line-height: 1.55; color: var(--fg); }

.sheet-body .block-title {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 10px;
}
.sheet-body .skus {
  display: flex; flex-direction: column; gap: 0;
}
.sku-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.sku-row:first-child { border-top: 1px solid var(--rule); }
.sku-row .label { font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.sku-row .gram {
  font-family: ui-monospace, monospace;
  font-size: 12px; color: var(--fg-soft);
}
.sku-row .code { font-family: ui-monospace, monospace; font-size: 11px; color: var(--fg-soft); }
.sku-row .pack {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  font-style: italic;
}
.gram .old { text-decoration: line-through; opacity: 0.5; margin-right: 6px; }
.gram .new { color: var(--accent); font-weight: 600; }

.notes-list { display: flex; flex-wrap: wrap; gap: 6px; }
.notes-list .note {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--fg-soft);
  letter-spacing: 0.02em;
}

.restrictions-list { display: flex; flex-wrap: wrap; gap: 6px; }
.restrictions-list .r {
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 100px;
}

.nutri {
  background: var(--bg-deep);
  padding: 18px;
  border-radius: var(--radius);
}
.nutri table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nutri th, .nutri td { padding: 8px 4px; text-align: left; border-bottom: 1px solid var(--rule); }
.nutri th { font-weight: 500; color: var(--fg-soft); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; }
.nutri tr:last-child td, .nutri tr:last-child th { border-bottom: none; }
.nutri td.val { font-family: ui-monospace, monospace; text-align: right; }

.sheet-actions { display: flex; gap: 10px; margin-top: 8px; }
.sheet-actions .btn { flex: 1; justify-content: center; padding: 14px 16px; font-size: 14px; }

/* ─── COMPARADOR ─────────────────────────────────────────── */
.comparator {
  padding: clamp(48px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
}
.comparator h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.comparator .hint { font-size: 14px; color: var(--fg-soft); margin: 0 0 28px; }
.comparator .table {
  display: grid;
  grid-template-columns: 180px repeat(var(--cols, 3), 1fr);
  border: 1px solid var(--rule);
}
.comparator .row {
  display: contents;
}
.comparator .cell {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-size: 14px;
}
.comparator .cell:last-child { border-right: none; }
.comparator .row.head .cell { background: var(--bg-deep); }
.comparator .row.head .name { font-family: var(--font-display); font-size: 22px; font-weight: 500; padding-top: 18px; }
.comparator .row.head .photo { aspect-ratio: 4/3; padding: 0; overflow: hidden; background: var(--bg-deep); }
.comparator .row.head .photo img { width: 100%; height: 100%; object-fit: cover; }
.comparator .row.head .photo.ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-family: var(--font-display); font-size: 18px;
}
.comparator .row .field {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-soft);
}
.comparator .empty-slot {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  color: var(--fg-soft);
  font-size: 14px;
  padding: 40px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 1px dashed var(--rule);
}
.comparator .remove {
  position: absolute; top: 8px; right: 8px;
  border: none; background: rgba(0,0,0,0.5); color: white;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.comparator .head .photo-wrap { position: relative; padding: 0; }

/* ─── DESCONTINUADOS ─────────────────────────────────────── */
.discontinued {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
.discontinued h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; margin: 0 0 16px; }
.disc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.disc-item {
  padding: 16px;
  border: 1px solid var(--rule);
  font-size: 14px;
}
.disc-item .nm { font-family: var(--font-display); font-size: 17px; }
.disc-item .reason { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-soft); margin-top: 4px; }

/* ─── CONTATO ────────────────────────────────────────────── */
.contato {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--brown);
  color: var(--cream);
  border-top: 1px solid var(--rule);
}
[data-variant="editorial"] .contato { background: #1a1a1a; color: #FBFAF6; }
[data-variant="premium"] .contato { background: var(--brown-deep); color: var(--cream); }
.contato .shell { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
.contato h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  line-height: 0.98;
}
.contato p.lead { color: rgba(255, 253, 237, 0.78); max-width: 40ch; }
.contato .info { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.contato .info .ln { display: flex; gap: 16px; align-items: baseline; font-size: 16px; }
.contato .info .ln .lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,253,237,0.6); min-width: 80px; }
.contato .actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.contato .btn { border-color: rgba(255,253,237,0.4); color: var(--cream); padding: 16px 24px; font-size: 14px; justify-content: space-between; }
.contato .btn.primary { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.contato .btn:hover { background: var(--cream); color: var(--brown); }
.contato .logo-block {
  display: flex; flex-direction: column; gap: 24px;
  border-left: 1px solid rgba(255,253,237,0.2);
  padding-left: 48px;
}
.contato .logo-block img { width: 140px; height: auto; }
.contato .logo-block .legals { font-size: 11px; letter-spacing: 0.06em; line-height: 1.7; color: rgba(255,253,237,0.5); }

/* ─── FLOATING TRAYS (orçamento + comparador) ────────────── */
.trays {
  position: fixed; bottom: 16px; right: 16px;
  z-index: 30;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.tray {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 36px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tray:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.28); }
.tray .lbl { font-size: 14px; font-weight: 500; }
.tray .arrow { font-size: 12px; letter-spacing: 0.06em; opacity: 0.95; }
.tray.orc-tray {
  background: var(--accent);
  color: var(--bg);
}
.tray.orc-tray .arrow { font-weight: 500; }
.tray.cmp-tray {
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}

/* ─── ORÇAMENTO modal ────────────────────────────────────── */
.sheet.sheet-wide {
  width: min(720px, 100%);
}
.close-x {
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: var(--fg-soft);
  display: flex; align-items: center; justify-content: center;
}
.close-x:hover { color: var(--fg); border-color: var(--fg-soft); }

.orc-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
}
.orc-row {
  display: grid;
  grid-template-columns: 64px 1fr 36px;
  gap: 14px; align-items: start;
  padding: 14px 12px;
  border-bottom: 1px solid var(--rule);
}
.orc-row.orc-row-warn { background: #fdf6f0; }
.orc-sizes {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px dashed var(--rule);
}
.orc-sizes-hint {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 2px;
}
.orc-size-row {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--bg-deep);
  transition: background 0.15s, border-color 0.15s;
}
.orc-size-row.is-on { background: #fff; border-color: var(--rule); }
.orc-size-check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; flex: 1; min-width: 0;
}
.orc-size-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.orc-size-label {
  display: flex; flex-direction: column;
  font-size: 13px;
  line-height: 1.3;
  min-width: 0;
}
.orc-size-label strong { font-weight: 600; }
.orc-size-line { white-space: nowrap; }
.orc-size-pack {
  font-style: normal;
  font-size: 11px;
  color: var(--fg-soft);
}
.qty.qty-dim { opacity: 0.4; }
.qty button[disabled] { cursor: not-allowed; }
.qty input[disabled] { color: #aaa; background: transparent; }
.orc-size-warn {
  font-size: 11.5px;
  color: #8a1f1f;
  margin-top: 2px;
}
.orc-row:last-child { border-bottom: none; }
.orc-thumb {
  width: 64px; height: 64px;
  background: var(--bg-deep);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.orc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.orc-info { min-width: 0; }
.orc-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.orc-sub {
  font-size: 12px;
  color: var(--fg-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qty {
  display: flex; align-items: center;
  border: 1px solid var(--rule);
  border-radius: 100px;
  overflow: hidden;
}
.qty button {
  width: 30px; height: 30px;
  border: none; background: transparent;
  font-size: 15px;
  cursor: pointer;
  color: var(--fg);
}
.qty button:hover { background: var(--bg-deep); }
.qty input {
  width: 40px;
  border: none;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: transparent;
  color: var(--fg);
  outline: none;
}
.orc-remove {
  width: 32px; height: 32px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--fg-soft);
  font-size: 11px;
}
.orc-remove:hover { color: #c44; border-color: #c44; }

.orc-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin: 12px 0 4px;
}
@media (max-width: 560px) { .orc-form-grid { grid-template-columns: 1fr; } }
.orc-field { display: flex; flex-direction: column; gap: 6px; }
.orc-field-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: 600;
}
.orc-field-label em { color: #c44; font-style: normal; font-weight: 700; }
.orc-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--rule);
  background: var(--bg-deep);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  border-radius: var(--radius);
}
.orc-input:focus { outline: none; border-color: var(--accent); }
.orc-input.invalid { border-color: #c44; background: #fdf2f2; }
.orc-hint { font-size: 11px; color: #c44; }

.orc-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e7b3b3;
  background: #fdf2f2;
  color: #8a1f1f;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.45;
  animation: orcErrShake 0.32s ease-out;
}
.orc-error-icon {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #c44;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
@keyframes orcErrShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.orc-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: #1f1f1f;
  color: #fffded;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: orcToastIn 0.22s ease-out;
  z-index: 5;
  pointer-events: none;
}
@keyframes orcToastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: auto; }

.orc-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: var(--bg-deep);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.orc-textarea:focus { outline: none; border-color: var(--accent); }

.orc-preview {
  background: var(--bg-deep);
  padding: 14px;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: var(--radius);
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--rule);
  margin: 0;
}

.orc-actions {
  display: flex; gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.orc-actions .btn { flex: 1; min-width: 180px; padding: 14px 16px; justify-content: center; font-size: 14px; }
.orc-actions .btn.whats {
  background: #25D366;
  color: white;
  border-color: #25D366;
  font-weight: 500;
}
.orc-actions .btn.whats:hover { background: #1ebe5b; border-color: #1ebe5b; color: white; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .cover { grid-template-columns: 1fr; min-height: auto; }
  .cover-img { aspect-ratio: 4/3; }
  .cover-text h1 { font-size: clamp(48px, 11vw, 72px); margin: 28px 0 20px; }
  .cover-text .subtitle { margin-bottom: 36px; }
  .sumario .grid, .manifesto .grid, .section-head, .contato .shell { grid-template-columns: 1fr; gap: 32px; }
  .contato .logo-block { border-left: none; border-top: 1px solid rgba(255,253,237,0.2); padding-left: 0; padding-top: 32px; }
  .topbar nav { display: none; }
  .filters { position: relative; top: 0; }
  .comparator .table { grid-template-columns: 1fr; }
  .comparator .row.head .photo { display: none; }
  /* Tablet — drop product grid from 3 to 2 columns so photos stay generous */
  .grid-products { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --pad: 18px; }
  body { font-size: 15px; }

  /* Top bar */
  .topbar { padding: 12px var(--pad); }
  .topbar .brand .brand-logo { width: 72px; }
  .topbar .actions { gap: 6px; }
  .topbar .actions .btn { padding: 8px 12px; font-size: 12px; }
  .topbar .actions .btn.ghost { display: none; }

  /* Cover */
  .cover-text { padding: 36px var(--pad) 32px; }
  .cover-text .meta { gap: 16px; justify-content: flex-start; font-size: 10px; flex-wrap: wrap; }
  .cover-text h1 { font-size: clamp(42px, 12vw, 56px); line-height: 1.0; margin: 20px 0 16px; }
  .cover-text .subtitle { font-size: 15px; margin-bottom: 28px; }
  .cover-footnote { gap: 14px; flex-wrap: wrap; font-size: 10px; }
  .cover-img { aspect-ratio: 1/1; }

  /* Sumário */
  .symbol-bar { gap: 24px; }
  .toc-row { grid-template-columns: auto 1fr; gap: 12px; padding: 14px 0; }
  .toc-row .count { grid-column: 2; font-size: 11px; }
  .toc-row .name { font-size: 18px; }

  /* Section head */
  .section-head h2 { font-size: clamp(32px, 9vw, 42px); }
  .section-head .right { font-size: 14px; }

  /* Filters — horizontal scroll feel */
  .filters { padding: 12px var(--pad); gap: 10px; }
  .filters .grp {
    border-right: none;
    border-bottom: 1px dashed var(--rule);
    padding: 0 0 10px 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .filters .grp:last-of-type { border-bottom: none; padding-bottom: 0; }
  .filters .reset { width: 100%; justify-content: center; }
  .filters .chip { font-size: 12px; padding: 6px 10px; }

  /* Product grid — 1 column under 480, 2 columns above */
  .grid-products { grid-template-columns: 1fr; gap: 18px; }

  /* Card */
  .card { padding: 12px; }
  .card-actions { flex-direction: column; gap: 6px; }
  .card-actions .mini-btn { width: 100%; justify-content: center; }

  /* Sheet (product detail) */
  .sheet { width: 100%; max-width: 100%; }
  .sheet-body { padding: 24px var(--pad) !important; gap: 20px; }
  .sheet h2 { font-size: 26px !important; }
  .sheet-actions { flex-direction: column; }
  .sheet-actions .btn { width: 100%; justify-content: center; }
  .nutri table th, .nutri table td { font-size: 12px; padding: 6px 4px; }

  /* Orçamento modal */
  .orc-row { grid-template-columns: 56px 1fr 28px; gap: 10px; }
  .orc-thumb { width: 56px; height: 56px; }
  .orc-size-row { flex-wrap: wrap; }
  .orc-actions { flex-direction: column; }
  .orc-actions .btn { width: 100%; min-width: 0; }
  .orc-preview { font-size: 11px; max-height: 140px; }

  /* Contato */
  .contato { padding: 56px 0; }
  .contato h2 { font-size: clamp(36px, 11vw, 48px) !important; line-height: 1 !important; }
  .contato .info .ln { flex-direction: column; gap: 2px; font-size: 14px; }
  .contato .info .ln .lbl { min-width: 0; }
  .contato .btn { padding: 14px 18px; font-size: 13px; }

  /* Floating trays */
  .trays { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .tray { padding: 12px 16px; justify-content: space-between; }
  .tray .lbl { font-size: 13px; }
  .tray .arrow { font-size: 11px; }

  /* Tweaks panel — hide on mobile, kept usable via the toolbar */
  .tweaks-panel { transform: scale(0.92); transform-origin: bottom right; }
}

@media (min-width: 460px) and (max-width: 600px) {
  .grid-products { grid-template-columns: 1fr 1fr; }
  .card-actions { flex-direction: row; }
}

/* ─── PRINT (PDF A4 retrato) ─────────────────────────────── */
@page {
  size: A4 portrait;
  margin: 0;
}
@media print {
  body { background: white !important; color: var(--ink) !important; }
  .topbar, .filters, .compare-tray, .sheet-backdrop, .tweaks-panel, .interactive-only { display: none !important; }
  .print-only { display: block !important; }
  .pdf-page {
    page-break-after: always;
    break-after: page;
    width: 210mm;
    height: 297mm;
    overflow: hidden;
    position: relative;
    background: white;
    color: var(--ink);
  }
  .pdf-page:last-child { page-break-after: avoid; }
}

.print-only { display: none; }

@media screen {
  .pdf-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 24px;
    background: white;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
  }
  body.print-preview .site { display: none; }
  body.print-preview .print-only { display: block !important; background: #ddd; padding: 24px 0; }
}

/* ─── TWEAKS panel custom touches ────────────────────────── */
.tweaks-panel { z-index: 200 !important; }
