@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --black: #101110;
  --charcoal: #1b1e19;
  --offwhite: #f7f6f0;
  --paper: #f3f0e9;
  --ivory: #eeeee5;
  --olive: #d4dcc0;
  --deep-olive: #4e5a41;
  --muted: #6f6c63;
  --line: rgba(16, 17, 16, .14);
  --font: Manrope, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(18px, 4.5vw, 64px);
  --rack-h: clamp(330px, calc(100svh - 400px), 600px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 300px;
  background: var(--offwhite);
  color: var(--black);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
em { font: italic 400 1em Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
:focus-visible { outline: 2px solid #74945c; outline-offset: 4px; }

.skip { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 12px 16px; border-radius: 8px; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* ---------- topo ---------- */
.announce {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px var(--pad);
  background: var(--olive); color: #11150e;
  font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.announce a { text-underline-offset: 3px; white-space: nowrap; }
.announce span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 68px; padding: 0 var(--pad);
  background: var(--black); color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.brand img { width: 30px; height: auto; }
.brand sup { font-size: .6em; }
.nav-links { display: none; gap: 30px; font-size: .86rem; font-weight: 700; }
.nav-links a { text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border: 1px solid #ffffff40; border-radius: 999px;
  text-decoration: none; font-size: .8rem; font-weight: 800;
  transition: background .25s, border-color .25s;
}
.nav-cta svg { width: 18px; height: 18px; }
.nav-cta:hover { background: #ffffff14; border-color: var(--olive); }

.label { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.label .dia { width: 15px; height: auto; filter: brightness(0); }
.label.light { color: var(--olive); justify-content: center; }
.tick { display: inline-block; width: 7px; height: 7px; background: currentColor; rotate: 45deg; }

/* ---------- arara ---------- */
.rack-section { position: relative; background: var(--paper); padding-top: clamp(30px, 5vw, 56px); overflow: hidden; }
.rack-head { padding: 0 var(--pad); max-width: 760px; }
.rack-head h1 { margin: 0; font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: .98; font-weight: 800; letter-spacing: -.065em; }
.rack-head h1 em { color: var(--deep-olive); }
.rack-head .lead { margin: 14px 0 0; max-width: 470px; color: var(--muted); font-size: .95rem; }

.rack { position: relative; height: calc(var(--rack-h) + 110px); margin-top: clamp(10px, 3vw, 30px); }
.rack-scroll {
  position: absolute; inset: 0 0 50px 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.rack-scroll::-webkit-scrollbar { display: none; }
.rack-scroll.dragging { cursor: grabbing; }
.rack-track {
  position: relative; height: 100%;
  display: flex; align-items: flex-start; gap: clamp(0px, .6vw, 10px);
  width: max-content; min-width: 100%;
  padding: 22px max(var(--pad), 4vw) 0;
  justify-content: center;
}
.rack-bar {
  position: absolute; left: 0; right: 0; top: 34px; height: 7px; border-radius: 6px;
  background: linear-gradient(180deg, #f6f6f3 0%, #b9bab5 45%, #7d7e79 60%, #d9dad6 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.rack-bar::before, .rack-bar::after {
  content: ""; position: absolute; top: -3px; width: 16px; height: 13px; border-radius: 4px; background: #2a2b28;
}
.rack-bar::before { left: 0; } .rack-bar::after { right: 0; }

.piece {
  position: relative; flex: 0 0 auto;
  height: calc(var(--rack-h) * var(--h, 1));
  width: calc(var(--rack-h) * var(--h, 1) * var(--ar, .42));
  margin: 0 calc(var(--rack-h) * -0.035);
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 14px;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .45s var(--ease), translate .7s var(--ease), filter .3s;
}
.piece img {
  width: 100%; height: 100%; object-fit: contain; object-position: top center;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.22)) drop-shadow(0 3px 4px rgba(0,0,0,.18));
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.piece .tag {
  position: absolute; left: 50%; bottom: -30px; translate: -50% 0;
  white-space: nowrap; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); opacity: 0; transition: opacity .3s, bottom .3s var(--ease);
}
.piece:hover .tag, .piece:focus-visible .tag { opacity: 1; bottom: -24px; }
.piece:hover { z-index: 3; }
.piece:hover img { filter: drop-shadow(0 26px 24px rgba(0,0,0,.28)) drop-shadow(0 3px 4px rgba(0,0,0,.2)); }

.is-in .piece { animation: hang-in 1.1s var(--ease) both; animation-delay: calc(var(--i) * 80ms + .15s); }
.is-in .piece.swing { animation: swing 1.25s var(--ease) both; }
.is-in .piece.idle { opacity: 1; animation: idle 7s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
@keyframes hang-in {
  0% { opacity: 0; transform: translateX(60px) rotate(9deg); }
  55% { opacity: 1; transform: translateX(-4px) rotate(-4deg); }
  78% { transform: rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes swing {
  0% { opacity: 1; transform: rotate(0); }
  20% { transform: rotate(5deg); }
  42% { transform: rotate(-3.5deg); }
  62% { transform: rotate(2deg); }
  80% { transform: rotate(-1deg); }
  100% { opacity: 1; transform: rotate(0); }
}
@keyframes idle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(.7deg); }
}

.rack-hint {
  position: absolute; left: 0; right: 0; bottom: 18px; margin: 0;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; color: var(--muted);
  transition: opacity .3s;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--deep-olive); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #4e5a4188; } 100% { box-shadow: 0 0 0 12px #4e5a4100; } }

/* foco: abre a peça */
.rack.focus .rack-scroll { pointer-events: none; }
.rack.focus .piece { opacity: 0 !important; animation: none !important; filter: blur(2px); }
.rack.focus .piece.left { translate: -120px 0; }
.rack.focus .piece.right { translate: 120px 0; }
.rack.focus .rack-hint { opacity: 0; }

.stage {
  position: absolute; inset: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr; justify-items: center;
  visibility: hidden; pointer-events: none;
}
.rack.focus .stage { visibility: visible; pointer-events: auto; }
.stage-figure {
  position: relative; height: calc(var(--rack-h) * .78); aspect-ratio: 3 / 4; margin-top: 6px;
}
.stage-figure img { width: 100%; height: 100%; object-fit: contain; object-position: top center; filter: drop-shadow(0 26px 26px rgba(0,0,0,.26)); will-change: transform; }
.stage-info {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: min(92vw, 560px);
  padding: 18px 20px 20px; border-radius: 18px;
  background: rgba(247, 246, 240, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(16,17,16,.08);
  box-shadow: 0 18px 40px rgba(16,17,16,.12);
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.rack.focus.ready .stage-info { opacity: 1; transform: none; }
.stage-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 6px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stage-meta .badge { margin-left: auto; padding: 3px 8px; border-radius: 4px; background: var(--black); color: #fff; letter-spacing: .1em; }
.stage-info h2 { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.04em; }
.stage-sub { margin: 2px 0 0; color: var(--muted); font-size: .8rem; font-weight: 600; }
.stage-desc { margin: 8px 0 0; font-size: .84rem; color: #34362f; }
.opt-label { margin: 12px 0 6px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-width: 40px; min-height: 36px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: .78rem; font-weight: 800;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--black); }
.chip:active { transform: scale(.94); }
.chip[aria-checked="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.stage-options[hidden] { display: none; }
.stage-buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.price { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.stage-note { margin: 10px 0 0; font-size: .7rem; font-weight: 700; color: var(--muted); }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 20px; border-radius: 8px;
  background: var(--olive); color: #11150e; text-decoration: none;
  font-size: .84rem; font-weight: 800; white-space: nowrap;
  transition: background .25s, transform .25s var(--ease);
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { background: #e6ecd5; transform: translateY(-1px); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(112deg, transparent 36%, #fff9 49%, transparent 62%); transform: translateX(-102%); animation: sheen 3.2s var(--ease) 1s infinite; }
@keyframes sheen { 0% { transform: translateX(-102%); } 45%, 100% { transform: translateX(102%); } }
.stage .btn { background: var(--black); color: #fff; }
.stage .btn:hover { background: #2a3025; }
.btn-outline { background: transparent; color: #fff; border: 1px solid #ffffff55; }
.btn-outline::after { display: none; }
.btn-outline:hover { background: #ffffff10; border-color: var(--olive); }

.stage-close, .stage-arrow {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
  cursor: pointer; transition: background .2s, transform .25s var(--ease);
  opacity: 0;
}
.rack.focus.ready .stage-close, .rack.focus.ready .stage-arrow { opacity: 1; }
.stage-close { top: 4px; right: var(--pad); }
.stage-arrow { top: calc(var(--rack-h) * .3); }
.stage-arrow.prev { left: var(--pad); }
.stage-arrow.next { right: var(--pad); }
.stage-close svg, .stage-arrow svg { width: 20px; height: 20px; }
.stage-close:hover, .stage-arrow:hover { background: #fff; transform: scale(1.06); }

/* faixa */
.marquee { position: relative; overflow: hidden; background: var(--black); color: var(--olive); border-top: 1px solid #000; }
.marquee-track { display: flex; align-items: center; gap: 22px; width: max-content; padding: 13px 0; animation: marquee 28s linear infinite; }
.marquee span { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 7px; height: 7px; background: var(--olive); rotate: 45deg; flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- como funciona ---------- */
.how { padding: clamp(56px, 9vw, 110px) var(--pad); max-width: 1280px; margin: 0 auto; }
.how h2, .visit h2 { margin: 0; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1; font-weight: 800; letter-spacing: -.06em; }
.how h2 em { color: var(--deep-olive); }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.steps .num { font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: var(--deep-olive); }
.steps h3 { margin: 10px 0 6px; font-size: 1.15rem; letter-spacing: -.03em; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- visita ---------- */
.visit { background: var(--black); color: #fff; padding: clamp(64px, 10vw, 120px) var(--pad); text-align: center; }
.visit-inner { max-width: 760px; margin: 0 auto; }
.visit-dia { width: 54px; margin: 0 auto 22px; }
.visit h2 em { color: var(--olive); }
.visit-text { margin: 14px auto 0; max-width: 440px; color: #d1d3c7; }
.visit-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 26px var(--pad) 90px; background: var(--charcoal); color: #cfd1c6; font-size: .8rem; }
.foot .brand { color: #fff; }
.foot p { margin: 0; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px; border-radius: 999px;
  background: #26d367; color: #fff; text-decoration: none; font-weight: 800; font-size: .86rem;
  box-shadow: 0 12px 28px rgba(38, 211, 103, .35);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 22px; height: 22px; }
.wa-float:hover { transform: translateY(-2px); }

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.on { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3) { transition-delay: .2s; }

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stage { grid-template-columns: 1fr minmax(320px, 430px); align-items: center; padding: 0 calc(var(--pad) + 60px); column-gap: 30px; }
  .stage-figure { height: calc(var(--rack-h) * .92); justify-self: end; margin-top: 0; }
  .stage-info { position: relative; left: auto; bottom: auto; translate: none; width: 100%; }
  .stage-arrow { top: 50%; margin-top: -24px; }
}
@media (max-width: 759px) {
  :root { --rack-h: clamp(290px, 42svh, 370px); }
  .rack { height: auto; }
  .rack-scroll { position: relative; inset: auto; height: calc(var(--rack-h) + 60px); }
  .rack-track { justify-content: flex-start; padding-left: 26px; padding-right: 26px; }
  .rack-hint { position: static; padding: 6px 0 18px; }
  .rack.focus { min-height: calc(var(--rack-h) * .62 + 400px); }
  .stage-figure { height: calc(var(--rack-h) * .62); }
  .stage-info { position: relative; left: auto; bottom: auto; translate: none; margin-top: 8px; padding: 14px 16px 16px; }
  .stage-desc { display: none; }
  .stage-arrow { top: calc(var(--rack-h) * .24); width: 42px; height: 42px; }
  .stage-buy .btn { padding: 0 14px; }
  .announce span { display: none; }
  .announce { justify-content: center; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 0 12px; }
}

body.focus-on .wa-float { opacity: 0; pointer-events: none; transform: translateY(20px); }
.wa-float { transition: transform .25s var(--ease), opacity .3s; }

/* ---------- v2: zoom, costas, marca e cores ---------- */
.rack { transition: height .7s var(--ease); }
.stage-figure { display: grid; place-items: start center; perspective: 1600px; overflow: clip; overflow-clip-margin: 40px; }
.garment {
  position: relative; height: 100%; aspect-ratio: var(--ar, .45);
  transform-style: preserve-3d; transform-origin: 50% 40%;
  cursor: zoom-in; touch-action: pan-y;
}
.garment img { width: 100%; height: 100%; object-fit: contain; }
.garment.zoomed { cursor: zoom-out; touch-action: none; }
.garment.zoomed img, .garment.zoomed .brand-print { transform: scale(2.3); }
.garment img, .brand-print { transition: transform .55s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 35%); }
.stage-figure img { filter: drop-shadow(0 30px 30px rgba(0,0,0,.26)); }

.brand-print {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity .25s, transform .55s var(--ease);
}
.garment.back .brand-print { opacity: 1; }
.bp {
  position: absolute; left: var(--bx, 50%); top: var(--by, 30%); width: var(--bw, 30%); translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: .55em;
  font-size: var(--bfs, 12px); color: var(--ink-print, #fff); opacity: .93;
  filter: blur(.15px);
}
.bp svg { width: 36%; fill: currentColor; }
.bp b { font: 800 1em/1 var(--font); letter-spacing: .16em; white-space: nowrap; }
.bp i { font: italic 400 1.05em/1 Georgia, serif; white-space: nowrap; opacity: .92; }

.zoom-hint {
  position: absolute; left: 50%; bottom: -6px; translate: -50% 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  font-size: .72rem; font-weight: 800; cursor: pointer; opacity: 0; transition: opacity .3s;
}
.zoom-hint svg { width: 16px; height: 16px; }
.rack.focus.ready .zoom-hint { opacity: 1; }

.stage-row { margin-top: 12px; }
.side-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #e7e5dc; }
.side { min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: .76rem; font-weight: 800; transition: background .25s, color .25s; }
.side.on { background: var(--black); color: #fff; }
.opt-value { margin-left: 6px; color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw {
  position: relative; width: 30px; height: 30px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(16,17,16,.2); background: var(--c);
  box-shadow: inset 0 0 0 2px #fff; transition: transform .2s var(--ease), box-shadow .2s;
}
.sw:hover { transform: scale(1.1); }
.sw[aria-checked="true"] { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--black); }
.sw.orig::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; background: var(--olive); border: 1px solid var(--black); rotate: 45deg; }
.sim-note { margin: 6px 0 0; font-size: .66rem; color: var(--muted); }

@media (min-width: 760px) {
  .rack.focus { height: calc(var(--rack-h) * 1.32 + 120px); }
  .rack.focus .stage-figure { height: calc(var(--rack-h) * 1.25); }
  .stage { grid-template-columns: 1fr minmax(330px, 430px); }
  .stage-info { max-height: calc(var(--rack-h) * 1.3); overflow: auto; }
}
@media (max-width: 759px) {
  .rack.focus .stage-figure { height: calc(var(--rack-h) * .92); }
  .rack.focus { min-height: calc(var(--rack-h) * .92 + 560px); }
  .stage-arrow { top: calc(var(--rack-h) * .36); }
}
