:root {
  --bg: #e8e8e5;
  --bg-hi: #f3f3f0;
  --bg-lo: #d6d6d2;
  --ink: #0e0e0e;
  --ink-2: #5d5d5a;
  --line: rgba(14, 14, 14, 0.14);
  --neon: #3cff2e;
  --neon-ink: #062b02;
  --h: 380px;            /* altura da camisa na arara (JS recalcula) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --ticker-h: 34px;
  --top-h: 64px;         /* altura do header: a arara centraliza abaixo dele */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; user-select: none; -webkit-user-drag: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* parede de estúdio */
.wall {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 38%, var(--bg-hi) 0%, var(--bg) 52%, var(--bg-lo) 100%);
}
.wall::after { /* granulado sutil */
  content: ''; position: absolute; inset: 0; opacity: .35; 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 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── header ───────── */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px clamp(16px, 3vw, 40px);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top-left { justify-self: start; }
.top-right { justify-self: end; display: flex; gap: clamp(14px, 2vw, 28px); }
.nav-link {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.bag-count { display: inline-block; }

.logo { text-decoration: none; display: block; }
.logo-word {
  display: inline-block;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1;
  color: var(--neon);
  -webkit-text-stroke: 1.5px var(--neon-ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--neon-ink);
  transform: skewX(-8deg);
}
.logo-word .char { display: inline-block; }

/* ───────── stage ───────── */
.stage {
  position: fixed; inset: var(--top-h) 0 var(--ticker-h) 0;
  display: grid; place-items: center;
}

/* ───────── arara ───────── */
.rack-view {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(18px, 3vh, 34px);
  transform: translateY(1vh);
}
.rack { position: relative; padding-top: 6px; }
.rod {
  position: absolute; left: 0; right: 0; top: 0; height: 12px;
  transform-origin: 50% 50%;
}
.rod-bar {
  position: absolute; left: 6px; right: 6px; top: 3px; height: 6px; border-radius: 6px;
  background: linear-gradient(180deg, #fbfbfb 0%, #b8b8b8 35%, #7d7d7d 60%, #d9d9d9 85%, #9a9a9a 100%);
  box-shadow: 0 6px 10px -4px rgba(0,0,0,.35);
}
.rod-cap {
  position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #c9c9c9 40%, #7b7b7b 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,.25);
}
.rod-cap--l { left: 0; }
.rod-cap--r { right: 0; }

.hangers {
  list-style: none; display: flex; justify-content: center;
  padding: 0 calc(var(--h) * var(--pad, .22));
  height: calc(var(--h) * 1.0);
}
.shirt {
  position: relative; flex: none; height: 100%;
  width: calc(var(--h) * .13);
  perspective: calc(var(--h) * 3);
}
.shirt-btn {
  position: absolute; inset: 0; z-index: 2;
  /* área de clique sobe um pouco p/ pegar o gancho */
  top: -8px;
}
.swing {
  position: absolute; top: calc(var(--h) * -0.033); left: 50%;
  width: calc(var(--h) * 900 / 1040); height: var(--h);
  margin-left: calc(var(--h) * -450 / 1040);
  transform-origin: 50% 3.2%;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.swing img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  backface-visibility: hidden;
  filter: drop-shadow(-6px 10px 10px rgba(0,0,0,.16));
}
.swing .img-front { opacity: 0; }

.rack-meta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.caption {
  font-size: 12px; color: var(--ink-2); letter-spacing: .02em; height: 1.4em; overflow: hidden;
  white-space: nowrap;
}
.caption-text { display: inline-block; }
.pill {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.pill::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit;
}
.pill:hover { color: var(--bg-hi); }
.pill:hover::before { transform: translateY(0); }

/* ───────── visão focada ───────── */
.focus-view {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: 1fr auto; justify-items: center;
  padding: 6px 16px 18px;
  --fh: min(64vh, 640px);           /* altura da camisa em foco */
}
.focus-view[hidden] { display: none; }

/* Fechar: pendurado ao lado do cabide, bem visível */
.close-btn {
  position: absolute; z-index: 6;
  top: calc(50% - var(--fh) / 2 + var(--fh) * .045);
  right: calc(50% + var(--fh) * .2);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.close-x {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--neon); color: var(--neon-ink);
  transition: transform .5s var(--ease), background .3s;
}
.close-x svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.close-btn:hover { transform: scale(1.05); }
.close-btn:hover .close-x { transform: rotate(90deg); }
.close-kbd {
  font-size: 9px; font-weight: 600; letter-spacing: .08em; opacity: .5;
  border: 1px solid rgba(255,255,255,.35); border-radius: 4px; padding: 2px 5px; margin-left: 2px;
}
.arrow {
  position: absolute; top: 46%; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease);
}
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: var(--ink); color: var(--bg-hi); transform: scale(1.06); }
.arrow--prev { left: clamp(16px, 5vw, 80px); }
.arrow--next { right: clamp(16px, 5vw, 80px); }

.focus-stage {
  position: relative; width: 100%; height: 100%; min-height: 0;
  display: grid; place-items: center;
}
.focus-swing {
  position: relative; height: var(--fh); aspect-ratio: 900 / 1040;
  transform-origin: 50% 3%;
  perspective: 1600px;
}
.focus-card { position: absolute; inset: 0; transform-style: preserve-3d; cursor: grab; }
.focus-card:active { cursor: grabbing; }
.focus-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(-26px 18px 22px rgba(0,0,0,.20));
}
.ghost {
  position: absolute; top: 50%; height: min(46vh, 460px); aspect-ratio: 900 / 1040;
  translate: 0 -46%; object-fit: contain;
  opacity: .3; filter: blur(8px) saturate(.55);
  cursor: pointer; transition: filter .4s var(--ease);
}
.ghost:hover { filter: blur(4px) saturate(.8); }
.ghost--prev { left: 50%; margin-left: calc(min(46vh, 460px) * -1.32); }
.ghost--next { left: 50%; margin-left: calc(min(46vh, 460px) * 0.46); }

/* etiquetas penduradas */
.tags {
  position: absolute; top: 0; left: 50%;
  margin-left: calc(var(--fh) * .34);
  display: flex; gap: 10px; align-items: flex-start;
  height: 100%;
}
.tag {
  position: relative; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
}
.tag svg.string { width: 12px; overflow: visible; display: block; }
.tag svg.string path { stroke: #2b2b2b; stroke-width: 1; fill: none; }
.tag-card {
  position: relative;
  width: 30px; padding: 16px 0 12px; border-radius: 3px 3px 4px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: -4px 6px 10px rgba(0,0,0,.18);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tag-card::before { /* furo */
  content: ''; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 1px rgba(0,0,0,.4);
}
.tag-label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.tag-price { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 8.5px; font-weight: 600; opacity: .85; }
.tag[aria-checked='true'] .tag-card { transform: scale(1.12); box-shadow: -6px 10px 16px rgba(0,0,0,.26); }
.tag[aria-checked='false'] .tag-card { opacity: .82; }

.focus-meta { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 6px; }
.focus-title {
  font-family: var(--font-display); font-weight: 900; font-stretch: 112%;
  font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -.01em; text-transform: uppercase; line-height: 1.05;
  text-align: center;
}
.toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; border: 1px solid var(--ink);
}
.toggle-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: var(--ink); border-radius: 999px; z-index: 0;
}
.toggle-btn {
  position: relative; z-index: 1; min-width: 74px; padding: 6px 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: color .35s var(--ease);
}
.toggle-btn.is-active { color: var(--bg-hi); }
.link-btn {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-btn span { display: inline-block; transition: transform .35s var(--ease); }
.link-btn:hover span { transform: translate(2px, -2px); }

/* ───────── gaveta ───────── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10,10,10,.28); backdrop-filter: blur(2px); opacity: 0; }
.scrim[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(440px, 100vw); background: #fafaf8; color: var(--ink);
  transform: translateX(100%);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 60px rgba(0,0,0,.12);
  outline: none;
}
.drawer-close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; line-height: 1; display: grid; place-items: center; z-index: 2;
  transition: background .25s;
}
.drawer-close:hover { background: rgba(0,0,0,.06); }
.drawer-body { flex: 1; overflow-y: auto; padding: 28px clamp(20px, 4vw, 32px) 32px; }
.d-media {
  height: 260px; margin: -28px calc(-1 * clamp(20px, 4vw, 32px)) 22px; background: var(--bg);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.d-media img {
  position: absolute; left: 0; right: 0; top: 4%; height: 92%; width: 100%; object-fit: contain;
  filter: drop-shadow(-12px 10px 14px rgba(0,0,0,.18));
}
.d-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.d-title {
  font-family: var(--font-display); font-weight: 900; font-stretch: 108%;
  font-size: 26px; line-height: 1.05; text-transform: uppercase; margin: 6px 0 4px;
}
.d-price { font-size: 15px; font-weight: 600; margin-bottom: 22px; }
.d-label { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 8px; display: flex; justify-content: space-between; }
.d-label em { font-style: normal; color: var(--ink-2); letter-spacing: .04em; text-transform: none; font-weight: 500; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.opt {
  border: 1px solid var(--line); padding: 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  border-radius: 3px; transition: border-color .2s, background .2s, color .2s;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta {
  width: 100%; margin-top: 26px; padding: 16px; border-radius: 3px;
  background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--neon);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.cta:hover { color: var(--neon-ink); }
.cta:hover::before { transform: translateY(0); }
.cta[disabled] { opacity: .35; pointer-events: none; }
.d-note { font-size: 12px; color: var(--ink-2); margin-top: 12px; min-height: 1.4em; }
.d-text { font-size: 14px; line-height: 1.6; color: #333; margin-top: 12px; }
.bag-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bag-item img { width: 64px; height: 74px; object-fit: contain; background: var(--bg); border-radius: 3px; }
.bag-item b { display: block; font-size: 13px; }
.bag-item small { color: var(--ink-2); font-size: 12px; }
.bag-item button { font-size: 18px; color: var(--ink-2); width: 30px; height: 30px; }
.bag-total { display: flex; justify-content: space-between; font-weight: 600; margin-top: 18px; }

/* ───────── ticker ───────── */
.ticker {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--ticker-h); z-index: 20;
  background: var(--neon); color: var(--neon-ink); overflow: hidden;
  display: flex; align-items: center;
}
.ticker-track { display: flex; white-space: nowrap; will-change: transform; }
.ticker-track span {
  font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-style: italic;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 0 14px;
}
.ticker-track i { font-style: normal; opacity: .6; }

/* ───────── crédito flutuante ───────── */
.credit {
  position: fixed; z-index: 35;
  right: clamp(16px, 3vw, 40px); bottom: calc(var(--ticker-h) + 18px);
  display: flex; align-items: center; gap: 10px;
  padding: 5px 6px 5px 5px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.credit-avatar {
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none;
}
.credit-avatar::before { /* anel neon girando */
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--neon), transparent 30%, var(--neon) 55%, transparent 80%, var(--neon));
  animation: credit-spin 3.2s linear infinite;
}
.credit-avatar img {
  position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: #fff; border: 2px solid var(--ink);
  filter: grayscale(1) contrast(1.15);
  transition: filter .45s var(--ease), transform .6s var(--ease), border-color .45s;
}
.credit-text { display: flex; flex-direction: column; line-height: 1; padding-right: 2px; }
.credit-text small {
  font-size: 8.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .55;
  margin-bottom: 4px;
}
.credit-text b {
  font-family: var(--font-display); font-weight: 900; font-stretch: 118%;
  font-size: 15px; letter-spacing: -.01em; text-transform: uppercase;
}
.credit-arrow {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--neon); color: var(--neon-ink);
  transition: transform .5s var(--ease), background .45s, color .45s;
}
.credit-arrow svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.credit:hover { background: var(--neon); color: var(--neon-ink); transform: translateY(-2px); }
.credit:hover .credit-avatar img { filter: grayscale(0) contrast(1); transform: scale(1.08); border-color: var(--neon); }
.credit:hover .credit-arrow { background: var(--ink); color: var(--neon); transform: rotate(45deg); }
@keyframes credit-spin { to { transform: rotate(360deg); } }

/* ───────── responsivo ───────── */
@media (max-width: 720px) {
  .top { padding: 14px 16px; }
  .top-right .nav-link[data-open-info] { display: none; }
  .arrow {
    top: 52%; width: 40px; height: 40px;
    background: rgba(255,255,255,.72); backdrop-filter: blur(6px); border-color: transparent;
    box-shadow: 0 6px 16px -6px rgba(0,0,0,.3);
  }
  .arrow--prev { left: 8px; }
  .arrow--next { right: 8px; }
  .focus-title { font-size: 20px; padding: 0 8px; }
  .focus-view { --fh: min(48vh, calc((100vw - 40px) / .74)); }
  .close-btn { padding: 6px 12px 6px 6px; right: auto; left: 0; top: 6px; }
  .close-kbd { display: none; }
  .credit { padding: 4px; gap: 0; bottom: calc(var(--ticker-h) + 12px); right: 12px; }
  .credit-text, .credit-arrow { display: none; }
  .tags { left: auto; right: 4px; margin-left: 0; gap: 6px; z-index: 2; }
  .tag-card { width: 26px; }
  .ghost { height: min(36vh, 360px); }
  .ghost--prev { margin-left: calc(min(36vh, 360px) * -1.25); }
  .ghost--next { margin-left: calc(min(36vh, 360px) * 0.4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
