/* ============================================================
   ASEMIC® — Streetwear Division
   ============================================================ */
:root {
  --bg: #f4f1ec;
  --bg-2: #ece8e1;
  --paper: #faf8f5;
  --ink: #171414;
  --ink-2: #3a3433;
  --muted: #6e6762;
  --line: #ddd7cf;
  --wine: #5f1419;
  --wine-2: #7e0d10;
  --wine-ink: #f4ece6;
  --metal-1: #e6e2dc;
  --metal-2: #b8b2aa;

  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-cap: 'Montserrat', 'Inter', system-ui, sans-serif;
  --f-serif: 'Cormorant Garamond', 'Times New Roman', serif;

  --ease: cubic-bezier(.22, .9, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-turn: cubic-bezier(.45, .05, .22, 1.12);   /* giro com leve passada do ponto */
  --ease-soft: cubic-bezier(.45, .05, .2, 1);

  --hdr: 76px;
  --gutter: clamp(16px, 3.2vw, 44px);

  /* arara */
  --n: 17;
  --rail-w: min(1680px, 96vw);
  /* espaço de cada cabide: cabe a arara inteira mesmo com uma peça aberta */
  --sp: calc((var(--rail-w) - var(--gw) - 60px) / (var(--n) - 1));
  --gw: clamp(170px, 18.5vw, 280px);               /* largura da peça de frente */
  --gh: calc(var(--gw) * 1.1);
  --rest: -90deg;                                  /* peça de perfil: mostra a lateral */
  --depth: calc(var(--gw) * .21);                  /* largura da lateral (perfil) */
  --push: calc(var(--gw) / 2 - var(--sp) / 2 + 10px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--wine); outline-offset: 4px; border-radius: 2px; }
.arr { display: inline-block; font-size: .9em; transform: translateY(-1px); transition: transform .35s var(--ease); }
a:hover .arr, button:hover .arr { transform: translate(2px, -3px); }
.muted { color: var(--muted); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--hdr);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  transition: opacity .5s var(--ease), background .4s;
}
.hdr.is-solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hdr__menu { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; justify-self: start; letter-spacing: .01em; }
.burger { width: 18px; display: grid; gap: 5px; }
.burger i { height: 1.2px; background: currentColor; transition: transform .4s var(--ease); }
.hdr__menu:hover .burger i:last-child { transform: translateX(4px); }
.hdr__logo img { height: 40px; width: auto; transition: transform .5s var(--ease); }
.hdr__logo:hover img { transform: rotate(-3deg) scale(1.03); }
.hdr__right { justify-self: end; display: flex; align-items: center; gap: 26px; font-size: 13px; }
.hdr__bag { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.hdr__bag svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.bag-count {
  position: absolute; top: 1px; right: -1px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: var(--wine); color: #fff; font-size: 10px; line-height: 16px; text-align: center;
  transform: scale(0); transition: transform .4s var(--ease);
}
.bag-count.is-on { transform: scale(1); }
.bag-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- views ---------- */
.view { min-height: 100svh; }
.view.is-enter { animation: viewIn .7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

/* ============================================================
   ARARA
   ============================================================ */
.view--rail { height: 100svh; min-height: 620px; display: grid; grid-template-rows: 1fr auto auto; }
.stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--hdr) + 8px) 0 18px;
  transition: opacity .5s var(--ease);
  overflow-x: clip;
}
.stage__labels {
  display: flex; align-items: center; gap: 18px;
  font: 500 10.5px/1 var(--f-cap); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: clamp(26px, 4.5vh, 48px);
}
.stage__labels .sep { width: 1px; height: 12px; background: var(--line); }

.rail { position: relative; width: var(--rail-w); }
.rail__rod {
  position: relative; height: 9px; margin: 0 auto; border-radius: 6px;
  background: linear-gradient(180deg, #f7f5f1 0%, var(--metal-1) 30%, var(--metal-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 14px -8px rgba(0,0,0,.35);
}
.cap { position: absolute; top: -9px; width: 11px; height: 27px; border-radius: 3px;
  background: linear-gradient(90deg, var(--metal-2), var(--metal-1) 45%, var(--metal-2));
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.4);
}
.cap--l { left: -2px; } .cap--r { right: -2px; }

.rail__items {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center;
  height: calc(var(--gh) + 46px);
}
.ri {
  position: relative; flex: 0 0 var(--sp); height: 100%;
  transition: transform 1s var(--ease-soft);
}
.rail.has-active .ri.is-left  { transform: translateX(calc(var(--push) * -1)); }
.rail.has-active .ri.is-right { transform: translateX(var(--push)); }
.ri.is-active { z-index: 3; }

.ri__btn { position: absolute; inset: 0; width: 100%; cursor: pointer; }
.ri__btn:focus-visible { outline-offset: -2px; }
.ri.is-active .ri__btn { left: calc(50% - var(--gw) / 2); width: var(--gw); }

/* uma peça na arara */
.g {
  position: absolute; left: 50%; top: 0;
  width: var(--gw); height: calc(var(--gh) + 46px);
  margin-left: calc(var(--gw) / -2);
  pointer-events: none;
}
.g__wire { position: absolute; left: 50%; top: 3px; width: 1px; height: 18px; background: #a9a39b; }
.g__body {
  position: absolute; left: 0; right: 0; top: 18px; bottom: 0;
  perspective: 2200px;
  transform-origin: 50% 0;
}
.g__spin {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--rest));
  /* começa suave, passa um pouco do ponto e volta (inércia do tecido) */
  transition: transform 1.25s var(--ease-turn);
  will-change: transform;
}
.ri.is-active .g__spin { transform: rotateY(0deg); }
/* balanço de pendurada: ao virar e ao voltar, a peça oscila no gancho */
.ri.is-active .g__body  { animation: swayIn 1.25s cubic-bezier(.3, .1, .3, 1) both; }
.ri.is-leaving .g__body { animation: swayOut 1s cubic-bezier(.3, .1, .3, 1) both; }
@keyframes swayIn {
  0%   { transform: rotateZ(0) scale(1); }
  22%  { transform: rotateZ(-2.4deg) scale(1.012); }
  48%  { transform: rotateZ(1.3deg) scale(1.02); }
  72%  { transform: rotateZ(-.5deg) scale(1.02); }
  100% { transform: rotateZ(0) scale(1.02); }
}
@keyframes swayOut {
  0%   { transform: rotateZ(0) scale(1.02); }
  30%  { transform: rotateZ(1.8deg) scale(1.005); }
  62%  { transform: rotateZ(-.8deg) scale(1); }
  100% { transform: rotateZ(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ri.is-active .g__body, .ri.is-leaving .g__body { animation: none; }
}

.face {
  position: absolute; left: 0; right: 0; top: 0; height: var(--gh);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.face img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; user-select: none; -webkit-user-drag: none; }
.face--b { transform: rotateY(180deg) translateZ(1px); }
.face--a { transform: translateZ(1px); }
/* arara: giro em duas metades. A lateral gira até ficar de fio (quase invisível);
   só ENTÃO a troca acontece, e a frente continua o mesmo giro até ficar de frente.
   Como a troca é feita com a peça finíssima, não dá para perceber que são duas fotos. */
.ri .g__spin { transform: none; transition: none; }
.ri .face--s { left: calc(50% - var(--depth) / 2); right: auto; width: var(--depth);
  transform: rotateY(0deg); opacity: 1;
  transition: transform .36s cubic-bezier(.15, .55, .35, 1) .24s, opacity 0s .24s; }
.ri .face--a { transform: rotateY(88deg); opacity: 0;
  transition: transform .26s cubic-bezier(.55, 0, .85, .45), opacity 0s .24s; }
.ri.is-active .face--s { transform: rotateY(-88deg); opacity: 0;
  transition: transform .24s cubic-bezier(.55, 0, .85, .45), opacity 0s .22s; }
.ri.is-active .face--a { transform: rotateY(0deg); opacity: 1;
  transition: transform .62s var(--ease-turn) .22s, opacity 0s .22s; }
.ri .face--s img { object-fit: fill; }
/* sombra só na peça aberta, como um elemento estático (sem filtro) */
.g__shadow { position: absolute; left: 12%; right: 12%; top: calc(18px + var(--gh) - 10px); height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 20, 20, .22), transparent); opacity: 0; transform: scaleX(.2); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.ri.is-active .g__shadow { opacity: 1; transform: none; }

/* gancho + etiqueta do cabide (gira junto com a peça) */
.hook {
  position: absolute; left: 50%; top: -18px; width: 24px; height: calc(18px + var(--gh) * .056); margin-left: -12px;
  transform: translateZ(2px); z-index: 2;   /* gancho sempre por cima da gola */
}
.hook svg { width: 100%; height: 100%; overflow: visible; }
.hook path { fill: none; stroke: #9d968e; stroke-width: 1.6; stroke-linecap: round; }
.hook rect { fill: var(--wine); }

/* entrada */
.ri.pre .g { opacity: 0; transform: translate3d(60px, -26px, 0); }
.ri .g { transition: opacity .9s var(--ease), transform 1.1s var(--ease); }

.stage__caption { margin-top: clamp(10px, 2.4vh, 26px); text-align: center; display: grid; justify-items: center; gap: 4px; }
.cap-name {
  margin: 0; min-height: 1.4em;
  font: 500 13px/1.4 var(--f-cap); letter-spacing: .14em; text-transform: uppercase;
}
.cap-name.swap { animation: capSwap .5s var(--ease); }
@keyframes capSwap { from { opacity: 0; transform: translateY(5px); } }
.cap-hint { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.only-touch { display: none; }
@media (max-width: 760px), (hover: none) and (max-width: 1100px) { .only-hover { display: none; } .only-touch { display: inline; } }
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 12.5px; background: var(--paper);
  transition: border-color .3s, background .3s, color .3s;
}
.pill:hover { border-color: var(--wine); background: var(--wine); color: #fff; }

/* faixa (marquee) */
.band { transition: opacity .5s var(--ease); background: var(--wine); color: var(--wine-ink); overflow: hidden; height: 38px; display: flex; align-items: center; }
.band__track { display: flex; flex: none; white-space: nowrap; animation: marquee 38s linear infinite; }
.band__track span { display: inline-flex; align-items: center; gap: clamp(40px, 9vw, 130px); padding-right: clamp(40px, 9vw, 130px);
  font: 500 11px/1 var(--f-cap); letter-spacing: .16em; text-transform: uppercase; }
.band__track span::after { content: '✦'; font-size: 13px; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.foot-mini { display: flex; justify-content: space-between; gap: 16px; padding: 9px var(--gutter); font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }

/* ============================================================
   DETALHE
   ============================================================ */
/* sem desfoque animado (era o que travava ao abrir): só opacidade */
body.is-detail .stage,
body.is-detail .hdr,
body.is-detail .band,
body.is-detail .foot-mini {
  opacity: 0; visibility: hidden; pointer-events: none;
  /* some de verdade depois do fade: o navegador para de desenhar a arara 3D por trás */
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
body.is-detail .band__track { animation-play-state: paused; }
.stage, .band, .foot-mini { visibility: visible; }

.detail {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-rows: 1fr auto; justify-items: center;
  padding: calc(var(--hdr) - 10px) var(--gutter) clamp(52px, 8vh, 80px);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.detail__close { position: absolute; top: 24px; right: var(--gutter); font-size: 13px; display: flex; gap: 10px; align-items: center; z-index: 2; }
.detail__close span { font-size: 15px; }
.detail__nav {
  position: absolute; top: 46%; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 70%, transparent);
  font-size: 16px; display: grid; place-items: center; z-index: 2;
  transition: background .3s, color .3s, border-color .3s, opacity .4s;
}
.detail__nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.detail__nav--prev { left: var(--gutter); }
.detail__nav--next { right: var(--gutter); }
.detail__piece { position: relative; width: min(52vh, 82vw, 540px); align-self: end; }
.dg { position: relative; width: 100%; aspect-ratio: 1000 / 1100; perspective: 1600px; margin-top: 30px; }
.dg .g__wire { top: -40px; height: 26px; }
.dg .g__spin { transform: rotateY(0deg); transition: transform 1.1s var(--ease); }
.dg.is-back .g__spin { transform: rotateY(180deg); }
.dg .face { height: 100%; }
.dg::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -14px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 20, 20, .2), transparent); }
.dg .hook { top: -64px; width: 30px; height: calc(64px + 6.4%); margin-left: -15px; }

.detail__info { text-align: center; display: grid; justify-items: center; width: min(420px, 100%); padding-top: 18px; }
.d-count { margin: 0 0 8px; font: 500 10px/1 var(--f-cap); letter-spacing: .2em; color: var(--muted); }
.d-name { margin: 0; font: 500 clamp(19px, 2.2vw, 26px)/1.2 var(--f-cap); letter-spacing: .04em; text-transform: uppercase; }
.d-sub { margin: 6px 0 16px; font-size: 12.5px; color: var(--muted); }
.d-sides { display: flex; gap: 22px; font-size: 12.5px; margin-bottom: 18px; }
.d-sides button { color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.d-sides button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.d-sides button:disabled { opacity: .35; cursor: not-allowed; }
.d-foot { width: 100%; display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.d-foot a { color: var(--wine-2); }

.detail.is-in .detail__info > * { animation: infoIn .7s var(--ease) both; }
.detail.is-in .detail__info > :nth-child(2) { animation-delay: .05s; }
.detail.is-in .detail__info > :nth-child(3) { animation-delay: .1s; }
.detail.is-in .detail__info > :nth-child(4) { animation-delay: .15s; }
.detail.is-in .detail__info > :nth-child(5) { animation-delay: .2s; }
@keyframes infoIn { from { opacity: 0; transform: translateY(10px); } }
.detail.is-out { animation: fadeOut .45s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.detail__nav, .detail__close { animation: infoIn .6s .25s var(--ease) both; }

/* ============================================================
   LOJA
   ============================================================ */
.shop { padding: calc(var(--hdr) + 40px) var(--gutter) 40px; max-width: 1440px; margin: 0 auto; }
.eyebrow { margin: 0 0 10px; font: 500 10.5px/1 var(--f-cap); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.shop__title { margin: 0 0 26px; font: 400 clamp(46px, 8vw, 104px)/.95 var(--f-cap); letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; transition: all .3s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 44vw), 1fr)); gap: clamp(14px, 2vw, 26px) clamp(10px, 1.6vw, 22px); }
.card { display: block; }
.card__img { position: relative; aspect-ratio: 4 / 5; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.card__img img { position: absolute; inset: 9% 9% 4%; width: 82%; height: 87%; object-fit: contain; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.card__img img.alt { opacity: 0; transform: scale(.98); }
.card:hover .card__img img.main.has-alt { opacity: 0; }
.card:hover .card__img img.alt { opacity: 1; transform: scale(1); }
.card:hover .card__img img.main:not(.has-alt) { transform: scale(1.04); }
.card__tag { position: absolute; left: 12px; top: 12px; font: 500 9.5px/1 var(--f-cap); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card__meta { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px 0; font-size: 13px; }
.card__meta b { font-weight: 500; }
.card__meta small { display: block; color: var(--muted); font-size: 12px; }
.card__price { white-space: nowrap; color: var(--muted); font-size: 12px; }
.grid li { animation: viewIn .7s var(--ease) both; }

/* ============================================================
   PRODUTO
   ============================================================ */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: clamp(24px, 4vw, 70px);
  padding: calc(var(--hdr) + 24px) var(--gutter) 60px; max-width: 1440px; margin: 0 auto; }
.pdp__media { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-self: start; position: sticky; top: calc(var(--hdr) + 16px); }
.pdp__thumbs { display: grid; gap: 10px; align-content: start; }
.pdp__thumbs button { aspect-ratio: 4/5; background: var(--bg-2); border-radius: 3px; overflow: hidden; border: 1px solid transparent; transition: border-color .3s; }
.pdp__thumbs button[aria-current="true"] { border-color: var(--ink); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pdp__thumbs button.is-look img { object-fit: cover; padding: 0; }
.pdp__main { position: relative; aspect-ratio: 4 / 4.4; background: var(--bg-2); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.pdp__main img { position: absolute; inset: 6% 8% 3%; width: 84%; height: 91%; object-fit: contain; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.pdp__main img.is-look { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp__main.zoom img { transform: scale(1.8); cursor: zoom-out; }
.pdp__info { padding-top: 10px; }
.crumb { font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.crumb a:hover { color: var(--ink); }
.pdp__name { margin: 0; font: 500 clamp(24px, 2.6vw, 34px)/1.15 var(--f-cap); letter-spacing: .01em; }
.pdp__color { margin: 4px 0 14px; color: var(--muted); font-size: 13.5px; }
.pdp__price { font: 500 17px/1 var(--f-cap); margin: 0 0 22px; }
.pdp__price small { font: 400 12px var(--f-ui); color: var(--muted); }
.pdp__desc { color: var(--ink-2); margin: 0 0 26px; max-width: 46ch; }
.lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.swatches { display: flex; gap: 10px; margin-bottom: 24px; }
.swatches a { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px transparent; transition: box-shadow .3s; }
.swatches a[aria-current="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 22px; }
.sizes button { height: 46px; border: 1px solid var(--line); border-radius: 3px; font: 500 13px var(--f-cap); transition: all .25s; background: var(--paper); }
.sizes button:hover { border-color: var(--ink); }
.sizes button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sizes.shake { animation: shake .45s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.buy { display: grid; grid-template-columns: 120px 1fr; gap: 10px; margin-bottom: 26px; }
.qty { display: grid; grid-template-columns: 36px 1fr 36px; border: 1px solid var(--line); border-radius: 3px; height: 52px; align-items: center; text-align: center; background: var(--paper); }
.qty button { height: 100%; font-size: 16px; }
.qty output { font: 500 14px var(--f-cap); }
.btn { height: 52px; border-radius: 3px; background: var(--wine); color: #fff; font: 500 12px/1 var(--f-cap); letter-spacing: .16em; text-transform: uppercase; transition: background .3s, transform .2s; }
.btn:hover { background: var(--wine-2); }
.btn:active { transform: scale(.985); }
.btn:disabled { background: #b9b1ab; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; font-size: 13.5px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; transition: transform .3s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.related { padding: 0 var(--gutter) 70px; max-width: 1440px; margin: 0 auto; }
.related h3 { font: 500 11px/1 var(--f-cap); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 20px; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); }

.site-foot { display: grid; justify-items: center; gap: 12px; padding: 50px var(--gutter) 60px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.site-foot img { height: 44px; width: auto; }
.site-foot p { margin: 0; }

/* ============================================================
   SOBRE
   ============================================================ */
.view--about { display: grid; grid-template-rows: 1fr auto; }
.about { display: grid; justify-items: center; text-align: center; padding: calc(var(--hdr) + 50px) var(--gutter) 70px; }
.about__logo { width: min(560px, 80vw); height: auto; }
.about__lead { margin: 30px 0 6px; font: 400 clamp(20px, 2.6vw, 30px)/1.4 var(--f-cap); letter-spacing: .02em; }
.about__since { margin: 0 0 50px; font: italic 400 22px var(--f-serif); color: var(--wine-2); }
.about__cols { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; max-width: 900px; }
.about__cols a { display: grid; font: 500 12px var(--f-cap); letter-spacing: .14em; text-transform: uppercase; }
.about__cols a small { font: italic 400 15px var(--f-serif); letter-spacing: 0; text-transform: none; color: var(--muted); }
.about__cols a:hover { color: var(--wine-2); }

/* ============================================================
   MENU
   ============================================================ */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--wine); color: var(--wine-ink);
  display: grid; grid-template-rows: auto 1fr auto auto; padding: 0 var(--gutter) 28px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__top { height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.menu__top img { height: 40px; width: auto; }
.menu__close { justify-self: start; font-size: 13px; display: flex; gap: 10px; }
.menu :focus-visible { outline-color: #fff; }
.menu__nav { align-self: center; display: grid; gap: 4px; }
.menu__nav a { display: flex; align-items: baseline; gap: 18px; font: 400 clamp(44px, 9vw, 120px)/1 var(--f-cap); letter-spacing: -.02em;
  opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .9s var(--ease), color .3s; }
.menu__nav a small { font: 500 11px var(--f-cap); letter-spacing: .1em; opacity: .6; }
.menu__nav a:hover { color: #fff; font-style: italic; }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .32s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .39s; }
.menu__cols { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 24px; font-size: 13px; opacity: .85; }
.menu__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu__foot { margin: 0; font: 500 10.5px var(--f-cap); letter-spacing: .2em; text-transform: uppercase; opacity: .6; }

/* ============================================================
   SACOLA + TOAST
   ============================================================ */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(23, 20, 20, .32); opacity: 0; transition: opacity .5s; }
.scrim.is-on { opacity: 1; }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(440px, 100vw);
  background: var(--paper); display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(100%); transition: transform .7s var(--ease);
}
.bag.is-open { transform: none; }
.bag__head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.bag__head h2 { margin: 0; font: 500 12px var(--f-cap); letter-spacing: .2em; text-transform: uppercase; }
.bag__head button { font-size: 13px; }
.bag__list { list-style: none; margin: 0; padding: 8px 24px; overflow: auto; }
.bag__empty { padding: 50px 0; text-align: center; color: var(--muted); font-size: 14px; }
.bi { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.bi img { width: 76px; aspect-ratio: 4/5; object-fit: contain; background: var(--bg-2); border-radius: 3px; padding: 5px; }
.bi b { font-weight: 500; display: block; }
.bi small { color: var(--muted); display: block; }
.bi .bi__qty button { min-width: 32px; min-height: 32px; font-size: 16px; }
.bi .bi__qty { display: inline-flex; gap: 4px; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 3px; padding: 3px 10px; }
.bi .bi__rm { padding: 8px 0 8px 8px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; align-self: start; }
.bag__foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.bag__foot .row { display: flex; justify-content: space-between; font-size: 13.5px; }
.bag__foot .note { font-size: 12px; color: var(--muted); margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 18px; padding: 12px 14px 12px 20px; border-radius: 99px;
  background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
  transition: transform .6s var(--ease), opacity .4s; width: max-content; max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast button { background: var(--wine-2); padding: 7px 14px; border-radius: 99px; font-size: 12px; white-space: nowrap; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 900px) {
  :root { --hdr: 64px; }
  .hdr__logo img { height: 34px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { position: static; grid-template-columns: 1fr; }
  .pdp__thumbs { grid-auto-flow: column; grid-auto-columns: 64px; order: 2; }
  .pdp__main { aspect-ratio: auto; height: min(56svh, 92vw); }
  .pdp { padding-top: calc(var(--hdr) + 8px); gap: 18px; }
}

@media (max-width: 760px), (hover: none) and (max-width: 1100px) {
  :root {
    --sp: 62px;
    --gw: min(64vw, 270px);
    --push: calc(var(--gw) / 2 - var(--sp) / 2 + 6px);
  }
  .hide-sm { display: none; }
  .rail { width: 100vw; }
  .rail__rod { width: calc(100vw - 2 * var(--gutter)); }
  .rail__items {
    justify-content: flex-start; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-inline: calc(50vw - var(--sp) / 2);
    overscroll-behavior-x: contain;
  }
  .rail__items::-webkit-scrollbar { display: none; }
  .ri { scroll-snap-align: center; }
  .stage__labels { margin-bottom: 30px; }
  .detail__nav { top: auto; bottom: 22px; width: 40px; height: 40px; }
  .detail__piece { width: min(78vw, 46vh); }
  .detail { padding-bottom: 78px; }
  .foot-mini span:last-child { display: none; }
  .buy { grid-template-columns: 104px 1fr; }
}

@media (max-height: 700px) and (min-width: 761px) {
  :root { --gw: clamp(150px, 15vw, 230px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .band__track { animation: none; }
}

/* checkout Nuvemshop: dados do cliente antes de ir ao pagamento */
.ck { display: grid; gap: 10px; }
.ck[hidden] { display: none; }
.ck__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ck label { display: grid; gap: 5px; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.ck input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); min-width: 0; }
.ck input:focus-visible { outline: 2px solid var(--wine); outline-offset: 1px; border-color: transparent; }
.ck .btn:disabled { opacity: .6; cursor: progress; }
.pdp__price s { color: var(--muted); font-size: .72em; margin-left: 8px; }
.sizes button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* fotos da Nuvemshop: a CDN pode entregar JPG com fundo branco. "multiply" faz o
   branco virar a cor do fundo da página, como se a foto fosse recortada. */
.ns-photos #railItems, .ns-photos #dPiece,
.ns-photos .card__img img, .ns-photos .pdp__main img, .ns-photos .pdp__thumbs img, .ns-photos .bi img { mix-blend-mode: multiply; }
