/* =========================================================================
   BaseSet Atacado — direção visual
   Ficha técnica editorial: papel cru, tinta quase preta, laranja da marca
   usado só onde há informação (faixa ativa, destaque, ação principal).
   Movimento: ease-out para entradas, ease-in-out para o que já está na tela,
   só transform/opacity/clip-path, e nada animado no que se repete.
   ========================================================================= */
:root {
  --paper: #efede8;
  --paper-2: #e4e1da;
  --card: #f8f7f3;
  --ink: #0e0e0d;
  --ink-2: #46453f;
  --ink-3: #85837b;
  --line: #d5d1c8;
  --line-dark: #2e2d2a;
  --accent: #ff4f00;
  --accent-ink: #c43c00;
  --ok: #1f6b3a;
  --wa: #1c8a4c;
  --radius: 4px;
  --font: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
/* grão de papel: estático, uma camada composta, sem custo no scroll */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-stretch: 75%; font-weight: 800; letter-spacing: -0.015em; line-height: 0.92; text-transform: uppercase; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
@media (min-width: 1280px) { .wrap { padding: 0 48px; } }

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }

/* Títulos em linhas mascaradas */
.ln { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; padding-bottom: .02em; }
.ln > span { display: inline-block; }

/* ---------- Faixa superior ---------- */
.strip { background: var(--ink); color: #cfcdc6; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; }
.strip__inner { display: flex; gap: 28px; height: 32px; align-items: center; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.strip__inner::-webkit-scrollbar { display: none; }
.strip__inner span:not(.strip__cnpj) { display: inline-flex; align-items: center; gap: 28px; }
.strip__inner span:not(.strip__cnpj):not(:first-child)::before { content: ""; width: 3px; height: 3px; background: #5d5b55; margin-left: -14px; margin-right: -14px; }
.strip__cnpj { margin-left: auto; color: #8d8b84; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(239, 237, 232, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform 420ms var(--ease-out), border-color 200ms ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; background: #000; overflow: hidden; flex: none; border-radius: 2px; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); }
.brand__name { font-weight: 800; font-stretch: 80%; font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.brand__name em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.nav { display: none; gap: 4px; margin-left: 20px; font-size: 14px; }
.nav a { position: relative; text-decoration: none; color: var(--ink-2); padding: 8px 10px; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
@media (min-width: 900px) { .nav { display: flex; } }
.cart-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 6px 0 16px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: transparent; font-size: 14px; font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.cart-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .cart-btn:hover { background: var(--ink); color: var(--paper); }
  .cart-btn:hover .cart-btn__count { background: var(--accent); color: #fff; }
}
.cart-btn__count { min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 6px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; border-radius: 2px; font-variant-numeric: tabular-nums; transition: background-color 150ms ease; }
.cart-btn.bump .cart-btn__count { animation: bump 450ms var(--ease-out); }
@keyframes bump { 0% { transform: translateY(0); } 30% { transform: translateY(-3px) scale(1.12); background: var(--accent); color: #fff; } 100% { transform: none; } }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:active:not([disabled]) { transform: scale(0.97); }
.btn__arrow { display: inline-block; transition: transform 250ms var(--ease-out); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .btn--dark:hover { background: #2a2926; }
  .btn--line:hover { background: var(--ink); color: var(--paper); }
  .btn--accent:hover { background: #e84700; border-color: #e84700; }
  .btn--wa:hover { background: #16773f; }
}
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- Abertura ---------- */
.hero { padding: 40px 0 0; }
.hero__grid { display: grid; gap: 40px; align-items: end; }
.hero__meta { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.hero__meta-rule { flex: 0 0 48px; height: 1px; background: var(--ink-3); }
.hero__title { font-size: clamp(60px, min(16.5vw, 14.5vh), 156px); font-stretch: 62%; font-weight: 800; line-height: .84; letter-spacing: -0.02em; }
.hero__title .ln--soft > span { font-weight: 300; color: var(--ink-3); }
.hero__title i { font-style: normal; color: var(--accent); }
.hero__lead { max-width: 460px; margin: 28px 0 0; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Giro da peça */
.turn { margin: 0; }
.turn__stage {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: #b9b7b3;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.turn__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 180ms ease; }
.turn__stage img.is-on { opacity: 1; }
.turn__tick { position: absolute; top: 14px; left: 14px; right: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; pointer-events: none; }
.turn__tick i { height: 2px; background: rgba(255,255,255,.4); transition: background-color 180ms ease; }
.turn__tick i.is-on { background: #fff; }
.turn__hint {
  position: absolute; left: 14px; bottom: 12px; padding: 5px 8px; border-radius: 2px; pointer-events: none;
  background: rgba(14,14,13,.55); color: #fff; font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  transition: opacity 300ms ease;
}
.turn__stage.is-touched .turn__hint { opacity: 0; }
@media (hover: none), (pointer: coarse) { .turn__hint { display: none; } .turn__stage { cursor: default; } }
.turn__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.turn__cap { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* Controle segmentado com pílula deslizante */
.seg { position: relative; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.seg__pill { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; background: var(--ink); border-radius: 2px; transition: transform 300ms var(--ease-in-out), width 300ms var(--ease-in-out); }
.seg button { position: relative; z-index: 1; height: 28px; padding: 0 12px; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: color 200ms ease; }
.seg button[aria-pressed="true"] { color: var(--paper); }

/* Passos */
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 22px 0 24px; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; }
.steps__n { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); padding-top: 3px; }
.steps strong { display: block; font-size: 17px; }
.steps p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 34ch; }
@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 64px; }
  .hero__lead { margin-top: 36px; }
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 40px; margin-top: 88px; }
}
@media (min-width: 1280px) { .hero__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* Coreografia de abertura: título em linhas, depois o resto; a foto abre como uma cortina */
.js .hero__title .ln > span { transform: translateY(108%); }
.js .hero [data-hero] { opacity: 0; transform: translateY(14px); }
.js .turn__stage { clip-path: inset(100% 0 0 0); }
.js .turn__stage img.is-on { transform: scale(1.12); }
.is-ready .hero__title .ln > span { transform: none; transition: transform 1100ms var(--ease-out); }
.is-ready .hero__title .ln:nth-child(2) > span { transition-delay: 70ms; }
.is-ready .hero__title .ln:nth-child(3) > span { transition-delay: 140ms; }
.is-ready .hero__title .ln:nth-child(4) > span { transition-delay: 210ms; }
.is-ready .hero [data-hero] { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out) 450ms, transform 900ms var(--ease-out) 450ms; }
.is-ready .hero .hero__actions[data-hero] { transition-delay: 540ms; }
.is-ready .hero .turn[data-hero] { transition-delay: 150ms; }
.is-ready .turn__stage { clip-path: inset(0 0 0 0); transition: clip-path 1300ms var(--ease-out) 200ms; }
.is-ready .turn__stage img.is-on { transform: none; transition: opacity 180ms ease, transform 1600ms var(--ease-out) 200ms; }

/* ---------- Revelação genérica ao rolar ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-out) var(--d, 0ms); }
.js .split[data-reveal], .js [data-reveal] .split { opacity: 1; transform: none; }
.js .split .ln > span { transform: translateY(108%); }
.js .split.is-in .ln > span, .js .is-in .split .ln > span { transform: none; transition: transform 1000ms var(--ease-out); }
.js .split.is-in .ln:nth-child(2) > span, .js .is-in .split .ln:nth-child(2) > span { transition-delay: 80ms; }
.js .steps li[data-reveal]::before { transform: scaleX(0); }
.js .steps li[data-reveal].is-in::before { transform: scaleX(1); transition: transform 1100ms var(--ease-out) var(--d, 0ms); }

/* ---------- Catálogo ---------- */
.catalog { padding: 120px 0 96px; scroll-margin-top: 24px; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.catalog__head h2 { font-size: clamp(48px, 9vw, 112px); font-stretch: 62%; }
.filters { position: relative; display: flex; gap: 6px; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters__pill { position: absolute; top: 0; left: 0; height: 38px; width: 0; background: var(--ink); border-radius: var(--radius); transition: transform 320ms var(--ease-in-out), width 320ms var(--ease-in-out); }
.filters__pill.is-instant { transition: none; }
.chip {
  position: relative; z-index: 1; flex: none; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; font-size: 14px; color: var(--ink-2); white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip sup { font-family: var(--mono); font-size: 10px; margin-left: 3px; color: var(--ink-3); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); color: var(--ink); } }
.chip[aria-selected="true"] { border-color: var(--ink); color: var(--paper); }
.chip[aria-selected="true"] sup { color: #9d9b94; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; text-align: left; background: none; border: 0; padding: 0; }
.js .card { opacity: 0; transform: translateY(28px); }
.card.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.card__media { position: relative; aspect-ratio: 3 / 4; background: var(--paper-2); overflow: hidden; border-radius: 2px; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), clip-path 650ms var(--ease-out); }
.card__media img + img { clip-path: inset(100% 0 0 0); }
.card__tag, .card__idx {
  position: absolute; top: 8px; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em;
  padding: 3px 6px; border-radius: 2px;
}
.card__tag { left: 8px; background: var(--card); }
.card__idx { right: 8px; color: rgba(255,255,255,.9); mix-blend-mode: difference; }
.card__cta {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  height: 40px; padding: 0 14px; border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity 200ms var(--ease-out), transform 300ms var(--ease-out);
}
.card__cta i { font-style: normal; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img { transform: scale(1.04); }
  .card:hover .card__media.has-alt img + img { clip-path: inset(0 0 0 0); }
  .card:hover .card__cta, .card:focus-visible .card__cta { opacity: 1; transform: none; }
}
.card__body { padding-top: 14px; display: grid; gap: 6px; }
.card__name { font-size: 20px; line-height: 1; }
.card__spec { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 2px; }
.card__from { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.card__from small { font-family: var(--font); font-size: 12px; color: var(--ink-3); font-weight: 400; margin-right: 4px; }
.card__retail { font-size: 12.5px; color: var(--ink-3); }
.swatches { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.swatches__more { font-family: var(--mono); font-size: 11px; color: var(--ink-3); line-height: 12px; }

/* ---------- Gramatura ---------- */
.gsm { padding: 96px 0 120px; border-top: 1px solid var(--line); }
.gsm__head { display: grid; gap: 24px; margin-bottom: 48px; }
.gsm__head h2 { font-size: clamp(44px, 8vw, 104px); font-stretch: 62%; }
.gsm__lead { margin: 0; max-width: 42ch; color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
@media (min-width: 960px) { .gsm__head { grid-template-columns: 1.4fr 1fr; align-items: end; } }

.gsm__ruler { position: relative; --name: 1fr; }
@media (min-width: 720px) { .gsm__ruler { --name: 280px; } }
.gsm__axis, .gsm__row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); column-gap: 32px; }
@media (max-width: 719px) { .gsm__axis, .gsm__row { grid-template-columns: 1fr; row-gap: 6px; } .gsm__axis-k { display: none; } }
.gsm__axis { padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.gsm__axis-track { position: relative; height: 16px; }
.gsm__axis-track span { position: absolute; transform: translateX(-50%); }
.gsm__list { list-style: none; margin: 0; padding: 0; }
.gsm__row {
  width: 100%; align-items: center; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
  transition: background-color 200ms ease;
}
.gsm__name { display: flex; align-items: baseline; gap: 10px; font-weight: 800; font-stretch: 75%; font-size: 19px; text-transform: uppercase; line-height: 1.1; transition: transform 300ms var(--ease-out); }
.gsm__name small { width: 74px; flex: none; font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--ink-3); letter-spacing: .03em; font-stretch: 100%; }
.gsm__track { position: relative; height: 28px; }
.gsm__track > i { position: absolute; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.gsm__bar { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(var(--x)); }
.gsm__dot { position: absolute; top: 50%; display: flex; align-items: center; gap: 8px; transform: translate(-6px, -50%); }
.gsm__dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); transition: background-color 200ms ease, transform 250ms var(--ease-out); }
.gsm__dot b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.js .gsm__ruler .gsm__bar { transform: scaleX(0); }
.js .gsm__ruler .gsm__dot { opacity: 0; }
.js .gsm__ruler.is-in .gsm__bar { transform: scaleX(var(--x)); transition: transform 1200ms var(--ease-out) calc(var(--i) * 60ms); }
.js .gsm__ruler.is-in .gsm__dot { opacity: 1; transition: opacity 500ms var(--ease-out) calc(var(--i) * 60ms + 500ms); }
@media (hover: hover) and (pointer: fine) {
  .gsm__row:hover { background: var(--paper-2); }
  .gsm__row:hover .gsm__name { transform: translateX(8px); }
  .gsm__row:hover .gsm__dot::before { background: var(--accent); transform: scale(1.3); }
}
.gsm__row:active .gsm__name { transform: translateX(8px) scale(0.99); }
.gsm__peek {
  position: absolute; left: 0; top: 0; z-index: 3; width: 168px; aspect-ratio: 3 / 4; pointer-events: none;
  opacity: 0; transition: opacity 200ms ease; overflow: hidden; border-radius: 2px; background: var(--paper-2);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
}
.gsm__peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 500ms var(--ease-out); }
.gsm__peek.is-on { opacity: 1; }
.gsm__peek.is-on img { transform: none; }
@media (hover: none), (pointer: coarse) { .gsm__peek { display: none; } }

/* ---------- Simulador de preço ---------- */
.ladder { background: var(--ink); color: var(--paper); padding: 104px 0 112px; }
.ladder .eyebrow { color: #8d8b84; }
.ladder h2 { font-size: clamp(44px, 7.4vw, 96px); font-stretch: 62%; }
.ladder__grid { display: grid; gap: 48px; }
.ladder__note { margin: 28px 0 0; color: #a9a79f; font-size: 15px; max-width: 38ch; }
@media (min-width: 1024px) { .ladder__grid { grid-template-columns: 1fr 1.15fr; column-gap: 80px; align-items: start; } }

.calc { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px; background: #141413; }
@media (min-width: 600px) { .calc { padding: 28px; } }
.calc__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.calc__model { display: flex; align-items: center; gap: 12px; white-space: nowrap; min-width: 0; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: #8d8b84; letter-spacing: .03em; }
.calc__model select {
  height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--line-dark); border-radius: var(--radius); appearance: none; -webkit-appearance: none;
  background: #1c1c1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23cfcdc6' fill='none' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--paper); font: 600 14px var(--font); text-transform: none; letter-spacing: 0; cursor: pointer; max-width: 220px;
}
.calc__readout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 0 8px; }
.calc__k { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8d8b84; margin-bottom: 6px; }
.calc__qty, .calc__price { display: block; font-weight: 800; font-stretch: 62%; line-height: .9; font-size: clamp(48px, 8vw, 88px); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.calc__unit { text-align: right; overflow: hidden; }
.calc__price { color: var(--accent); }
.calc__save { display: block; margin-top: 8px; font-size: 13px; color: #a9a79f; }

.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 16px 0 0; background: transparent; cursor: pointer; --v: 0%; touch-action: pan-y; }
.calc__range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--paper) var(--v), #3a3935 var(--v)); }
.calc__range::-moz-range-track { height: 2px; background: #3a3935; }
.calc__range::-moz-range-progress { height: 2px; background: var(--paper); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--accent); border: 4px solid #141413; box-shadow: 0 0 0 1px var(--accent); transition: transform 160ms var(--ease-out); }
.calc__range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 4px solid #141413; box-shadow: 0 0 0 1px var(--accent); }
.calc__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__range:focus-visible { outline: none; }
.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px rgba(255,79,0,.3); }
.calc__scale { position: relative; height: 18px; font-family: var(--mono); font-size: 11px; color: #8d8b84; }
.calc__scale span { position: absolute; top: 0; transform: translateX(-50%); }
.calc__scale span:first-child { transform: none; }
.calc__scale span:last-child { transform: translateX(-80%); }

.calc__tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 28px 0 0; }
.calc__tiers > div { display: grid; grid-template-rows: 110px auto auto; cursor: pointer; padding-top: 8px; }
.calc__bar { align-self: end; height: calc(var(--h) * 100%); background: #2e2d2a; border-radius: 2px 2px 0 0; transition: background-color 250ms ease; }
.calc__tiers dt { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 12px; color: #a9a79f; transition: color 200ms ease; }
.calc__tiers dt small { font-size: inherit; color: #6e6c66; }
.calc__tiers dd { margin: 4px 0 0; display: grid; gap: 2px; }
.calc__tiers dd span { font-family: var(--mono); font-size: 14px; font-weight: 500; color: #cfcdc6; font-variant-numeric: tabular-nums; transition: color 200ms ease; }
.calc__tiers dd em { font-style: normal; font-size: 12px; color: #6e6c66; }
.calc__tiers .is-on .calc__bar { background: var(--accent); }
.calc__tiers .is-on dt, .calc__tiers .is-on dd span { color: var(--paper); }
.calc__tiers .is-on dd em { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .calc__tiers > div:not(.is-on):hover .calc__bar { background: #45443f; } }

/* ---------- Rodapé ---------- */
.footer { padding: 96px 0 0; overflow: hidden; }
.footer__cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 64px; border-bottom: 1px solid var(--ink); }
.footer__cta h2 { font-size: clamp(44px, 8vw, 104px); font-stretch: 62%; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: start; padding: 40px 0 48px; }
.footer__cnpj { margin: 12px 0 0; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer__links span { display: inline-block; width: 90px; color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; }
.footer__links a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; transition: background-size 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { background-size: 0 1px; background-position: 100% 100%; } }

/* ---------- Painéis (produto e pedido) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(14, 14, 13, .5); animation: fade 300ms ease both; }
.sheet__panel {
  position: absolute; background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  inset: 0; animation: sheet-up 500ms var(--ease-drawer) both;
}
@media (min-width: 768px) {
  .sheet__panel { inset: 0 0 0 auto; width: min(1040px, 94vw); animation-name: sheet-left; box-shadow: -30px 0 60px -30px rgba(0,0,0,.35); }
  .sheet__panel--cart { width: min(480px, 100vw); }
}
.sheet.is-closing .sheet__backdrop { animation: fade-out 240ms ease forwards; }
.sheet.is-closing .sheet__panel { animation: sheet-down 240ms var(--ease-out) forwards; }
@media (min-width: 768px) { .sheet.is-closing .sheet__panel { animation-name: sheet-right; } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-left { from { transform: translateX(100%); } }
@keyframes sheet-down { to { transform: translateY(40%); opacity: 0; } }
@keyframes sheet-right { to { transform: translateX(40%); opacity: 0; } }
.sheet__panel--product { overflow: hidden; }
.sheet__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 6;
  height: 34px; padding: 0 12px; border: 1px solid var(--ink); background: var(--paper); border-radius: var(--radius); font-size: 13px; font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.sheet__close:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .sheet__close:hover { background: var(--ink); color: var(--paper); } }
.sheet__close--inline { position: static; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; transform: translate(-50%, 16px) scale(.97); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius); font-size: 14px;
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out);
  max-width: calc(100vw - 32px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sem movimento: tudo aparece no lugar, só troca de estado */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .header.is-hidden { transform: none; }
}

/* =========================================================================
   Ficha do produto, medidas, tecido e pedido (mantidos do layout original)
   ========================================================================= */
/* Tabela de medidas */
.measures { width: 100%; border-collapse: collapse; font-size: 14px; }
.measures th { font-weight: 400; color: var(--ink-3); font-size: 12px; text-align: right; padding: 0 0 6px; }
.measures th:first-child, .measures td:first-child { text-align: left; }
.measures td { padding: 9px 0; border-top: 1px solid var(--line); text-align: right; font-family: var(--mono); }
.measures td:first-child { font-family: var(--font); font-weight: 700; }
.measures__note { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); }
.measures tbody tr { cursor: pointer; }
.measures tr.is-active td { background: var(--paper-2); }
.measures tr.is-active td:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; background: var(--accent); border-radius: 50%; }

/* Desenho técnico interativo */
.mfig { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 12px 12px 14px; margin-bottom: 16px; }
.mfig__sizes { display: flex; gap: 6px; }
.mfig__sizes button {
  min-width: 44px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; font: 600 13px var(--font); cursor: pointer; color: var(--ink-2);
}
.mfig__sizes button:hover { border-color: var(--ink); color: var(--ink); }
.mfig__sizes button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mfig__svg { display: block; width: 100%; height: auto; margin: 6px auto 0; max-width: 420px; overflow: visible; }
.mph { margin-top: 10px; }
.mph__stage { position: relative; width: 100%; max-width: 440px; margin: 0 auto; overflow: hidden; border-radius: var(--radius); background: #9c9a96; touch-action: pan-y; cursor: grab; user-select: none; }
.mph__fit { position: absolute; inset: 0; transform-origin: 50% 8%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.mph__view { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.mph__view.is-on { opacity: 1; }
.mph__view img { position: absolute; max-width: none; height: auto; pointer-events: none; }
.mph__dims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mph .dim__line { stroke: var(--ink); stroke-width: .5; fill: none; }
.mph .dim__head { stroke: var(--ink); stroke-width: .5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mph .dim__ext { stroke: var(--ink); stroke-width: .25; opacity: .7; fill: none; }
.mph .dim__bg { fill: var(--card); stroke: var(--ink); stroke-width: .25; }
.mph .dim__txt { font-size: 4.6px; font-family: var(--mono); font-weight: 500; text-anchor: middle; fill: var(--ink); }
.mph .dim.is-hl .dim__line, .mph .dim.is-hl .dim__head { stroke: var(--accent); stroke-width: .8; }
.mph .dim.is-hl .dim__bg { stroke: var(--accent); }
.mph .dim.is-hl .dim__txt { fill: var(--accent); }
.mph .dim.is-dim { opacity: .25; }
.mph__view.is-on .dim__line { stroke-dasharray: 1; animation: draw .5s ease-out both; }
.mph__hint { position: absolute; right: 8px; bottom: 6px; font-family: var(--mono); font-size: 10.5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); pointer-events: none; }
.mph__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mph__tabs { display: flex; gap: 4px; }
.mph__tabs button, .mph__spin { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.mph__tabs button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.mph__spin:hover, .mph__tabs button:hover { border-color: var(--ink); color: var(--ink); }

.shirt { fill: var(--card); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.shirt--detail { fill: none; stroke-width: 1; }
.dim { cursor: pointer; transition: opacity .2s; }
.dim__line { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.dim__ext { fill: none; stroke: var(--ink-3); stroke-width: .8; }
.dim__bg { fill: var(--card); }
.dim__txt { font-family: var(--mono); font-size: 19px; font-weight: 500; text-anchor: middle; fill: var(--ink); transition: fill .2s; }
.dim.is-hl .dim__line { stroke: var(--accent); stroke-width: 2; }
.dim.is-hl .dim__txt { fill: var(--accent); }
.dim.is-dim { opacity: .28; }
.mfig__legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.mlegend {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer;
  font: 400 12px var(--mono); color: var(--ink-3); text-align: left; transition: border-color .2s;
}
.mlegend span { font: 600 11px var(--font); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.mlegend strong { font-size: 18px; font-weight: 500; color: var(--ink); }
.mlegend.is-hl { border-color: var(--accent); }
.mlegend.is-hl strong { color: var(--accent); }

/* Tecido ampliado */
.fab { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 40px; align-items: center; margin: 22px 0 0; padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
@media (min-width: 420px) { .fab { grid-template-columns: 150px minmax(0, 1fr); gap: 0 48px; } }
.fab__lens-wrap { position: relative; z-index: 1; }
.fab__lens {
  width: 100%; aspect-ratio: 1; border-radius: 50%; background-color: var(--paper-2); background-repeat: no-repeat;
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px var(--card), 0 0 0 6px var(--line), inset 0 0 18px rgba(0,0,0,.25);
  cursor: grab; touch-action: none; user-select: none;
}
.fab__lens.is-drag { cursor: grabbing; }
.fab__cap { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); text-align: center; line-height: 1.4; }
.fab__cap span { opacity: .75; }
.fab__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.fab__facts li { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fab__facts span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); line-height: 18px; }
.fab__facts strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.fab__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.fab__line, .fab__head { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.fab__dot { fill: var(--accent); stroke: var(--card); stroke-width: 1.5; }

.fab.is-anim .fab__lens { animation: lens-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.fab.is-anim .fab__line { stroke-dasharray: 1; animation: draw .5s ease-out both; animation-delay: calc(.45s + var(--i) * .12s); }
.fab.is-anim .fab__dot, .fab.is-anim .fab__head { animation: fade .2s both; animation-delay: calc(.45s + var(--i) * .12s); }
.fab.is-anim .fab__head { animation-delay: calc(.9s + var(--i) * .12s); }
.fab.is-anim .fab__facts li { animation: rise .4s ease-out both; animation-delay: calc(.85s + var(--i) * .12s); }
@keyframes lens-in { from { transform: scale(.35); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateX(-6px); } }

/* Product detail */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); }
.pd > * { min-width: 0; }
@media (min-width: 768px) { .pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100%; } }
.pd__gallery { background: var(--paper-2); }
@media (min-width: 768px) { .pd__gallery { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; } }
.pd__main { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
@media (min-width: 768px) { .pd__main { aspect-ratio: auto; flex: 1; } }
.pd__main img { width: 100%; height: 100%; object-fit: cover; }
.pd__nav { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 4px; }
.pd__nav button { width: 38px; height: 38px; border: 0; background: var(--card); border-radius: 2px; font-size: 16px; }
.pd__nav button:hover { background: var(--ink); color: var(--paper); }
.pd__count { position: absolute; bottom: 12px; left: 12px; font-family: var(--mono); font-size: 11.5px; background: var(--card); padding: 4px 7px; border-radius: 2px; }
.pd__thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: thin; }
.pd__thumbs button { flex: none; width: 56px; aspect-ratio: 3 / 4; padding: 0; border: 2px solid transparent; background: none; border-radius: 2px; overflow: hidden; }
.pd__thumbs button[aria-current="true"] { border-color: var(--ink); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd__info { padding: 28px 16px 190px; }
@media (min-width: 768px) { .pd__info { padding: 56px 36px 48px; } }
.pd__cat { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; }
.pd__name { font-size: clamp(34px, 5vw, 48px); margin-top: 8px; }
.pd__specs { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pd__specs li { font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); }
.pd__video { display: inline-block; margin-top: 14px; font-size: 14px; border-bottom: 1px solid var(--ink); text-decoration: none; }

.block { margin-top: 32px; }
.block__title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.block__title span { font-weight: 400; text-transform: none; color: var(--ink-3); letter-spacing: 0; }

.tiers { width: 100%; border-collapse: collapse; font-size: 14px; }
.tiers th { text-align: left; font-weight: 400; color: var(--ink-3); font-size: 12px; padding: 0 0 6px; }
.tiers th:last-child, .tiers td:last-child { text-align: right; }
.tiers td { padding: 10px 0; border-top: 1px solid var(--line); }
.tiers td:last-child { font-family: var(--mono); font-weight: 500; }
.tiers tr.is-active td { color: var(--ink); font-weight: 600; }
.tiers tr.is-active td:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; background: var(--accent); border-radius: 50%; }
.tiers tr:not(.is-active) td { color: var(--ink-2); }
.tiers .save { margin-left: 8px; font-family: var(--font); font-size: 11.5px; font-weight: 400; color: var(--ok); }

.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 13.5px;
}
.color-opt .swatch { width: 18px; height: 18px; }
.color-opt:hover { border-color: var(--ink-3); }
.color-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.color-opt__n { font-family: var(--mono); font-size: 11px; background: var(--ink); color: var(--paper); padding: 1px 5px; border-radius: 2px; }

.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.size { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 10px; }
.size.is-set { border-color: var(--ink); }
.size.is-out { opacity: .45; }
.size__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.size__label { font-weight: 700; font-size: 15px; }
.size__stock { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.stepper { display: grid; grid-template-columns: 32px 1fr 32px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.stepper button { border: 0; background: none; font-size: 17px; line-height: 1; }
.stepper button:hover:not([disabled]) { background: var(--paper-2); }
.stepper button[disabled] { color: var(--ink-3); cursor: not-allowed; }
.stepper input { width: 100%; border: 0; border-inline: 1px solid var(--line); background: var(--card); text-align: center; font-family: var(--mono); font-size: 14px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick button { height: 30px; padding: 0 10px; border: 1px dashed var(--ink-3); border-radius: var(--radius); background: none; font-size: 12.5px; color: var(--ink-2); }
.quick button:hover { border-style: solid; border-color: var(--ink); color: var(--ink); }

.pd__bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .pd__bar { position: sticky; bottom: 0; margin: 32px -36px -48px; padding: 16px 36px 24px; } }
.pd__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.pd__sum strong { font-family: var(--mono); font-size: 18px; }
.pd__hint { font-size: 12.5px; color: var(--ok); margin: -4px 0 10px; min-height: 1em; }
.pd__bar .btn { width: 100%; }

/* Cart */
.sheet__panel--cart { display: flex; flex-direction: column; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-size: 28px; }
.cart__body { flex: 1; overflow-y: auto; padding: 0 16px; }
.cart__empty { padding: 48px 0; color: var(--ink-2); }
.cart__empty p { margin: 0 0 16px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; background: var(--paper-2); }
.line__top { display: flex; justify-content: space-between; gap: 8px; }
.line__name { font-weight: 700; font-size: 15px; text-transform: uppercase; font-stretch: 85%; }
.line__total { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.line__meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.line__grid { margin-top: 8px; display: grid; gap: 4px; font-size: 13px; }
.line__row { display: flex; gap: 8px; align-items: center; }
.line__row .swatch { width: 10px; height: 10px; }
.line__sizes { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.line__actions { margin-top: 8px; display: flex; gap: 14px; }
.link-btn { border: 0; background: none; padding: 0; font-size: 12.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--ink); }

.cart__foot { border-top: 1px solid var(--ink); padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--paper); }
.cart__foot[hidden] { display: none; }
.totals { display: grid; gap: 4px; font-size: 14px; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals dd, .totals dt { margin: 0; }
.totals dd { font-family: var(--mono); }
.totals .grand { font-size: 17px; font-weight: 700; padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); }
.totals .saved dd { color: var(--ok); }
.field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 12.5px; color: var(--ink-2); }
.field select, .field input {
  height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); font: inherit; font-size: 15px; color: var(--ink);
}
.field select:focus, .field input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart__legal { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }

/* Medidas em 3D */
.m3d { position: relative; margin-top: 10px; aspect-ratio: 1 / 1; max-height: 520px; width: 100%; border-radius: var(--radius);
  background: radial-gradient(ellipse 42% 6% at 50% 93%, rgba(0,0,0,.13), transparent 70%), linear-gradient(#f4f2ed, #e9e6df); overflow: hidden; }
.m3d__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.m3d__canvas:active { cursor: grabbing; }
.m3d__labels { position: absolute; inset: 0; pointer-events: none; }
.m3d__lbl { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; min-width: 40px; padding: 3px 7px;
  border: 1px solid var(--ink); border-radius: 2px; background: var(--card); font: 500 15px var(--mono); color: var(--ink); transition: color .2s, border-color .2s; }
.m3d__lbl.is-hl { color: var(--accent); border-color: var(--accent); }
.m3d__hint, .m3d__load { position: absolute; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); pointer-events: none; }
.m3d__hint { right: 8px; bottom: 6px; display: none; }
.m3d__load { inset: 0; display: grid; place-items: center; }
.m3d.is-3d .m3d__hint { display: block; }
.m3d.is-3d .m3d__load, .m3d.is-fail .m3d__hint { display: none; }
.m3d.is-fail .m3d__load::after { content: " indisponível neste aparelho"; }

/* =========================================================================
   Responsivo — telas pequenas
   ========================================================================= */
/* itens de grid nunca podem ser mais largos que a coluna */
.hero__grid > *, .ladder__grid > *, .gsm__head > *, .calc__readout > *, .calc__tiers > *, .pd > * { min-width: 0; }
.calc__model { flex: 1; }
.calc__model select { flex: 1; min-width: 0; max-width: 260px; }

@media (max-width: 767px) {
  html { scroll-padding-top: 64px; }

  /* faixa e cabeçalho */
  .strip { font-size: 11px; }
  .strip__inner { gap: 22px; height: 30px; }
  .strip__cnpj { display: none; }
  .header__inner { height: 58px; gap: 12px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 18px; }
  .cart-btn { height: 40px; padding: 0 5px 0 14px; }

  /* abertura */
  .hero { padding-top: 28px; }
  .hero__grid { gap: 32px; }
  .hero__meta { margin-bottom: 16px; gap: 10px; font-size: 11px; white-space: nowrap; }
  .hero__meta-rule { flex-basis: 24px; }
  .hero__title { font-size: clamp(52px, 17vw, 96px); line-height: .86; }
  .hero__lead { font-size: 16px; margin-top: 20px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .hero__actions .btn { width: 100%; }
  .turn__stage { aspect-ratio: 4 / 5; }
  .turn__stage img { object-position: 50% 20%; }
  .turn__bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .turn__cap { order: 2; text-align: center; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .seg button { height: 36px; font-size: 13.5px; }

  .steps { margin-top: 40px; }
  .steps li { grid-template-columns: 36px 1fr; gap: 8px; padding: 16px 0 18px; }
  .steps strong { font-size: 16px; }
  .steps p { font-size: 14px; max-width: none; }

  /* catálogo */
  .catalog { padding: 72px 0 64px; }
  .catalog__head { gap: 16px; margin-bottom: 24px; }
  .catalog__head > div:first-child { width: 100%; }
  .catalog__head h2 { font-size: clamp(48px, 15vw, 72px); }
  .filters {
    width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 28px), transparent);
  }
  .filters__pill { left: 0; }
  .chip { height: 38px; padding: 0 13px; font-size: 13.5px; }
  .grid { gap: 32px 10px; }
  .card__tag { font-size: 9.5px; left: 6px; top: 6px; padding: 2px 5px; }
  .card__idx { display: none; }
  .card__body { padding-top: 10px; gap: 4px; }
  .card__name { font-size: 16px; line-height: 1.02; }
  .card__spec { font-size: 12px; }
  .card__prices { display: grid; gap: 0; }
  .card__from { font-size: 14px; }
  .card__from small { display: block; font-size: 11px; margin: 0 0 1px; }
  .card__retail { font-size: 11.5px; }
  .swatch { width: 11px; height: 11px; }

  /* gramatura */
  .gsm { padding: 64px 0 72px; }
  .gsm__head { gap: 16px; margin-bottom: 28px; }
  .gsm__head h2 { font-size: clamp(42px, 13vw, 64px); }
  .gsm__lead { font-size: 15px; }
  .gsm__axis { padding-bottom: 8px; }
  .gsm__axis > :first-child { display: none; }
  .gsm__row { padding: 12px 0 10px; row-gap: 4px; }
  .gsm__name { display: grid; gap: 2px; font-size: 16px; }
  .gsm__name small { width: auto; font-size: 10px; }
  .gsm__track, .gsm__axis-track { margin-right: 34px; }
  .gsm__track { height: 22px; }
  .gsm__dot b { font-size: 12px; }

  /* simulador */
  .ladder { padding: 64px 0 72px; }
  .ladder__grid { gap: 32px; }
  .ladder h2 { font-size: clamp(42px, 13vw, 64px); }
  .ladder__note { margin-top: 18px; font-size: 14.5px; }
  .calc { padding: 16px; margin: 0 -4px; }
  .calc__top { padding-bottom: 14px; }
  .calc__model { gap: 10px; font-size: 10.5px; }
  .calc__model select { height: 40px; font-size: 16px; max-width: none; }
  .calc__readout { padding-top: 18px; gap: 8px; }
  .calc__qty, .calc__price { font-size: clamp(40px, 13vw, 60px); }
  .calc__save { font-size: 12px; }
  .calc__range { height: 44px; margin-top: 8px; }
  .calc__range::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -13px; }
  /* faixas viram linhas com barra horizontal: cabem sem apertar o texto */
  .calc__tiers { grid-template-columns: 1fr; gap: 0; margin-top: 20px; }
  .calc__tiers > div {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px;
    padding: 12px 0; border-top: 1px solid var(--line-dark);
  }
  .calc__tiers dt { grid-row: 1; margin: 0; padding: 0; border: 0; align-self: center; }
  .calc__tiers dd { grid-row: 1; margin: 0; display: flex; align-items: baseline; gap: 10px; }
  .calc__tiers dd em { min-width: 44px; text-align: right; }
  .calc__bar { grid-column: 1 / -1; grid-row: 2; align-self: auto; height: 4px; width: calc(var(--h) * 100%); margin-top: 10px; border-radius: 2px; }

  /* rodapé */
  .footer { padding-top: 64px; }
  .footer__cta { padding-bottom: 40px; gap: 20px; }
  .footer__cta h2 { font-size: clamp(42px, 13vw, 64px); }
  .footer__actions, .footer__actions .btn { width: 100%; }
  .footer__grid { padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); flex-direction: column; }
  .footer__links span { width: 84px; }

  /* formulários: 16px evita o zoom automático do iOS ao focar */
  .field select, .field input, .stepper input { font-size: 16px; }

  /* painéis */
  .sheet__close { top: max(10px, env(safe-area-inset-top)); right: 10px; }
  .cart__head { padding: 14px 16px; }
  .cart__head h2 { font-size: 26px; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .brand__name em { display: none; }
  .hero__meta span:last-child { display: none; }
  .hero__meta-rule { flex: 1; }
  .grid { gap: 28px 8px; }
  .card__name { font-size: 15px; }
  .fields-2 { grid-template-columns: 1fr; }
}

/* tablet: duas colunas na abertura ficam apertadas, empilha com foto menor */
@media (min-width: 768px) and (max-width: 959px) {
  .hero__grid { grid-template-columns: 1fr; }
  .turn { max-width: 520px; }
  .hero__title { font-size: clamp(80px, 13vw, 128px); }
}

/* =========================================================================
   Pedido em destaque
   ========================================================================= */
/* Botão do cabeçalho: preenchido, com ícone; o contador fica laranja quando há peças */
.cart-btn {
  height: 44px; gap: 8px; padding: 0 6px 0 14px;
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.cart-btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; flex: none; }
.cart-btn__label { font-size: 14.5px; font-weight: 700; }
.cart-btn__count { min-width: 30px; height: 30px; background: rgba(255,255,255,.14); color: var(--paper); font-size: 13px; font-weight: 500; }
.cart-btn.has-items .cart-btn__count { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .cart-btn:hover { background: #2a2926; color: var(--paper); }
  .cart-btn:hover .cart-btn__count { background: rgba(255,255,255,.22); }
  .cart-btn.has-items:hover .cart-btn__count { background: #e84700; }
}

/* Barra fixa do pedido */
.cart-bar {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 10px 10px 12px; border: 0; border-radius: 10px;
  background: var(--ink); color: var(--paper); text-align: left;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: translateY(calc(100% + 32px)); visibility: hidden;
  transition: transform 450ms var(--ease-out), visibility 0s linear 450ms;
}
.cart-bar.is-on { transform: none; visibility: visible; transition: transform 450ms var(--ease-out), visibility 0s; }
.cart-bar:active { transform: scale(0.98); transition-duration: 160ms; }
body.locked .cart-bar { transform: translateY(calc(100% + 32px)); }
.cart-bar__icon { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.1); }
.cart-bar__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.cart-bar__n {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center;
  border-radius: 11px; background: var(--accent); color: #fff; font: 500 11.5px var(--mono); box-shadow: 0 0 0 2px var(--ink);
}
.cart-bar__txt { display: grid; gap: 1px; min-width: 0; }
.cart-bar__txt strong { font-size: 15px; font-weight: 700; line-height: 1.2; }
.cart-bar__txt span { font-family: var(--mono); font-size: 12.5px; color: #b9b7b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cart-bar__go {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap;
}
.cart-bar__go i { font-style: normal; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cart-bar:hover .cart-bar__go i { transform: translateX(3px); } }
.cart-bar.bump .cart-bar__n { animation: bump 450ms var(--ease-out); }

/* abre espaço no fim da página e tira o aviso de cima da barra */
body.has-cart { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
body.has-cart .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
  .cart-bar { left: auto; right: 24px; bottom: 24px; width: 400px; }
  body.has-cart { padding-bottom: 0; }
  body.has-cart .toast { bottom: 24px; }
}
@media (max-width: 380px) {
  .cart-btn__label { display: none; }
  .cart-btn { padding-left: 10px; }
  .cart-bar__go { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .cart-bar, body.locked .cart-bar { transform: none; } .cart-bar:not(.is-on) { visibility: hidden; } }
/* no celular o total aparece sozinho (a quantidade já está no selo); com espaço, mostra os dois */
.cart-bar__sum { display: none; }
@media (min-width: 768px) { .cart-bar__sum { display: block; } .cart-bar__total { display: none; } }
@media (max-width: 380px) { .cart-btn__label { display: inline; } .cart-btn { padding-left: 12px; } }
@media (max-width: 340px) { .cart-btn__label { display: none; } .cart-bar__txt strong { font-size: 14px; } }
