/* ============ Modelo Semi Joias 18K ============ */
:root {
  --bg: #0c0a08;
  --bg-2: #14110d;
  --ink: #efe6d4;
  --mute: #a39683;
  --gold: #cfa754;
  --gold-hi: #f1d68a;
  --gold-lo: #86631f;
  --line: rgba(207, 167, 84, .24);
  --line-soft: rgba(239, 230, 212, .1);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --hh: 64px;
  --gutter: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + var(--safe-t) + 56px);
  scrollbar-color: var(--gold-lo) var(--bg);
  overscroll-behavior-y: none;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  caret-color: var(--gold);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: #0c0a08; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

/* ---------- Cabeçalho ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--hh) + var(--safe-t));
  padding: var(--safe-t) var(--gutter) 0;
  transition: background-color .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  background: rgba(12, 10, 8, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand-name { font: 500 1.05rem/1 var(--serif); letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }
.brand-sub { font: 500 .6875rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

.bag-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink);
  transition: transform .14s var(--ease-out), border-color .2s, background-color .2s;
  user-select: none; -webkit-user-select: none;
}
.bag-btn:active { transform: scale(.96); }
.bag-count { font-variant-numeric: tabular-nums; font-size: .875rem; font-weight: 600; color: var(--gold-hi); min-width: 1ch; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(207, 167, 84, .16), transparent 70%),
    radial-gradient(90% 60% at 50% 110%, rgba(134, 99, 31, .12), transparent 70%);
}
.chain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; }
.hero-copy {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hh) + var(--safe-t)) var(--gutter) calc(28px + var(--safe-b));
  max-width: 1280px; margin: 0 auto; pointer-events: none;
}
.hero-title { margin: 0; font: 400 clamp(2.5rem, 12.6vw, 6rem)/.96 var(--serif); letter-spacing: -.025em; font-optical-sizing: auto; }
.hw { display: block; width: fit-content; overflow: hidden; padding: .12em 0 .02em; margin-top: -.1em; text-decoration: none; pointer-events: auto; }
.hw-in { display: inline-block; transition: color .25s, opacity .25s; }
.n { margin-left: .22em; font: 500 .2em/1 var(--sans); letter-spacing: .06em; color: var(--gold); vertical-align: top; position: relative; top: .5em; font-variant-numeric: tabular-nums; }
.n:empty { display: none; }
.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
}
.from { margin: 0; color: var(--mute); font-size: .9375rem; }
.from b { color: var(--gold-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-hi);
  text-decoration: none; font-weight: 500; letter-spacing: .02em; pointer-events: auto;
  transition: background-color .2s, color .2s, transform .14s var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.cta:active { transform: scale(.97); }

/* entrada do hero (um momento, orquestrado) */
.js .hw-in { transform: translateY(108%); }
.js .hero-foot { opacity: 0; transform: translateY(12px); }
.js.ready .hw-in { transform: none; transition: transform 1.05s var(--ease-out), color .25s, opacity .25s; }
.js.ready .hw:nth-child(1) .hw-in { transition-delay: .35s, 0s, 0s; }
.js.ready .hw:nth-child(2) .hw-in { transition-delay: .43s, 0s, 0s; }
.js.ready .hw:nth-child(3) .hw-in { transition-delay: .51s, 0s, 0s; }
.js.ready .hero-foot { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) .9s, transform .8s var(--ease-out) .9s; }

/* ---------- Faixa ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--bg); }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee span {
  font: 400 clamp(2rem, 6vw, 3.75rem)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(207, 167, 84, .6);
}
.marquee i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); margin: 0 34px; flex: none; }

/* ---------- Loja ---------- */
.shop { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) 72px; }
.shop-bar {
  position: sticky; top: calc(var(--hh) + var(--safe-t)); z-index: 10;
  margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter);
  background: rgba(12, 10, 8, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-soft); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; background: none; border: 0; padding: 18px 14px 16px; min-height: 52px;
  color: var(--mute); font-weight: 500; font-size: .9375rem; letter-spacing: .02em;
  transition: color .2s; user-select: none; -webkit-user-select: none;
}
.tab:first-child { padding-left: 0; }
.tab[aria-pressed="true"] { color: var(--ink); }
.tab-ind { position: absolute; left: 0; bottom: -1px; width: 1px; height: 2px; background: var(--gold); transform-origin: 0 50%; transition: transform .45s var(--ease-drawer); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; margin-top: 32px; }
.empty { grid-column: 1 / -1; color: var(--mute); text-align: center; padding: 48px 0; }

.card { display: flex; flex-direction: column; min-width: 0; }
.ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0b0907; border: 1px solid var(--line-soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
/* fotos que vêm da planilha (sem tratamento): escurece o entorno */
.ph.raw img { filter: contrast(1.08) brightness(.82) saturate(1.05); }
.ph.raw::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 50% at 50% 52%, transparent 40%, #0c0a08 95%); pointer-events: none; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 228, 150, .16) 50%, transparent 62%); transform: translateX(-120%); transition: transform 1.1s var(--ease-out); pointer-events: none; }
.tag-out {
  position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 9px;
  background: rgba(12, 10, 8, .85); border: 1px solid var(--line);
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.card.out .ph img { filter: grayscale(1) brightness(.55); }

.info { padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.name { margin: 0; font: 500 1.125rem/1.2 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.mm { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--mute); font-size: .75rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; min-height: 12px; }
.mm-bar { width: 30px; height: calc(var(--mm) * 1.15px); min-height: 1px; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); border-radius: 1px; }
.pr { margin: 10px 0 0; font-weight: 600; font-size: 1.0625rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.st { margin: 4px 0 14px; min-height: 18px; font-size: .75rem; letter-spacing: .04em; color: var(--mute); display: flex; align-items: center; gap: 7px; }
.st.low { color: #e7b36a; }
.st.low::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e7b36a; }

.add {
  margin-top: auto; width: 100%; height: 48px;
  background: transparent; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-hi);
  font-weight: 500; font-size: .9375rem; letter-spacing: .02em;
  transition: transform .14s var(--ease-out), background-color .2s, color .2s, border-color .2s;
  user-select: none; -webkit-user-select: none;
}
.add:active:not(:disabled) { transform: scale(.97); background: var(--gold); color: #0c0a08; }
.add:disabled { border-color: var(--line-soft); color: var(--mute); cursor: not-allowed; }
.add.added { background: var(--gold); color: #0c0a08; }

/* entrada dos cards */
.js .card .ph { clip-path: inset(100% 0 0 0); }
.js .card .ph img { transform: scale(1.12); }
.js .card .info { opacity: 0; transform: translateY(12px); }
.js .card.in .ph { clip-path: inset(0); transition: clip-path 1s var(--ease-out) calc(var(--i, 0) * 80ms); }
.js .card.in .ph img { transform: none; transition: transform 1.4s var(--ease-out) calc(var(--i, 0) * 80ms), filter .6s; }
.js .card.in .info { opacity: 1; transform: none; transition: opacity .7s var(--ease-out) calc(var(--i, 0) * 80ms + 280ms), transform .7s var(--ease-out) calc(var(--i, 0) * 80ms + 280ms); }

/* ---------- Fecho ---------- */
.close { max-width: 1280px; margin: 0 auto; padding: 72px var(--gutter) 88px; border-top: 1px solid var(--line); }
.close-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; }
.close-text { font: 400 clamp(2.1rem, 9vw, 5.5rem)/1 var(--serif); letter-spacing: -.025em; transition: color .3s; }
.close-link svg { flex: none; color: var(--gold); transition: transform .5s var(--ease-out); }

.foot { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 32px var(--gutter) calc(120px + var(--safe-b)); border-top: 1px solid var(--line-soft); }
.foot-mark { width: 56px; height: 56px; flex: none; }
.foot-name { margin: 0; font: 500 1rem/1.3 var(--serif); letter-spacing: .02em; }
.foot-line { margin: 2px 0 0; color: var(--mute); font-size: .875rem; }

/* ---------- Barra da sacola ---------- */
.fab-wrap {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 30;
  max-width: 560px; margin: 0 auto; pointer-events: none;
  transform: translateY(calc(100% + 24px)); transition: transform .5s var(--ease-drawer);
}
.fab-wrap.on { transform: none; pointer-events: auto; }
.fab {
  width: 100%; height: 58px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between;
  background: var(--gold); color: #0c0a08; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .14s var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.fab:active { transform: scale(.98); }
.fab-r { font-variant-numeric: tabular-nums; }

/* ---------- Sacola (gaveta) ---------- */
.ov {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(5, 4, 3, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s .3s;
}
.ov.on { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out), visibility 0s; }
.sheet {
  width: 100%; max-width: 560px; max-height: 88svh; overflow: auto; overscroll-behavior: contain;
  background: var(--bg-2); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(20px + var(--safe-b));
  transform: translateY(100%); transition: transform .5s var(--ease-drawer);
}
.ov.on .sheet { transform: none; }
@media (min-width: 700px) {
  .ov { align-items: center; }
  .sheet { border-radius: 22px; border: 1px solid var(--line); transform: translateY(32px) scale(.98); transition: transform .45s var(--ease-out); }
  .ov.on .sheet { transform: none; }
}
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 16px; }
.sheet h2 { margin: 0 0 6px; font: 500 1.75rem/1.1 var(--serif); letter-spacing: -.01em; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.row-img { width: 56px; height: 70px; flex: none; background: #0b0907; border: 1px solid var(--line-soft); object-fit: cover; }
.row-info { flex: 1; min-width: 0; }
.row-name { font: 500 1rem/1.25 var(--serif); }
.row-pr { font-size: .875rem; color: var(--mute); font-variant-numeric: tabular-nums; margin-top: 2px; }
.q { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; font-weight: 600; }
.q span { min-width: 22px; text-align: center; }
.q button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.125rem; line-height: 1; transition: transform .14s var(--ease-out), background-color .2s; user-select: none; -webkit-user-select: none; }
.q button:active { transform: scale(.92); background: var(--gold); color: #0c0a08; }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 4px; font-size: 1.0625rem; }
.tot b { font: 500 1.75rem/1 var(--serif); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.note { margin: 10px 0 16px; color: var(--mute); font-size: .8125rem; }
.wa, .ghost { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: transform .14s var(--ease-out), background-color .2s; user-select: none; -webkit-user-select: none; }
.wa { background: var(--gold); color: #0c0a08; border: 0; }
.wa:active { transform: scale(.98); }
.ghost { margin-top: 10px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.ghost:active { transform: scale(.98); }
.m { color: var(--mute); font-size: .875rem; }

/* ---------- Só com mouse/trackpad ---------- */
@media (hover: hover) and (pointer: fine) {
  .bag-btn:hover { border-color: var(--gold); }
  .hero-title:hover .hw-in { opacity: .35; }
  .hero-title .hw:hover .hw-in { opacity: 1; color: var(--gold-hi); }
  .cta:hover { background: var(--gold); color: #0c0a08; }
  .tab:hover { color: var(--ink); }
  .card:not(.out):hover .ph img { transform: scale(1.045); }
  .card:not(.out):hover .ph::after { transform: translateX(120%); }
  .add:hover:not(:disabled) { background: var(--gold); color: #0c0a08; }
  .close-link:hover .close-text { color: var(--gold-hi); }
  .close-link:hover svg { transform: translate(8px, -8px); }
  .q button:hover { border-color: var(--gold); }
  .ghost:hover { border-color: var(--gold); }
  .wa:hover { background: var(--gold-hi); }
}

/* ---------- Telas largas ---------- */
@media (min-width: 820px) {
  :root { --gutter: 40px; --hh: 76px; }
  .mark { width: 46px; height: 46px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; margin-top: 44px; }
  .grid .card:nth-child(3n + 2) { margin-top: 80px; }
  .hero-copy { padding-bottom: 48px; }
  .shop { padding-bottom: 120px; }
}

/* ---------- Movimento reduzido: sem deslocamento, só opacidade ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { transform: none !important; }
  .js .hw-in, .js.ready .hw-in { transform: none; }
  .js .card .ph, .js .card.in .ph { clip-path: none; }
  .js .card .ph img, .js .card.in .ph img { transform: none; }
  .js .card .info, .js .card.in .info { transform: none; }
  .sheet, .fab-wrap { transition-duration: .01s; }
}
