/* PEPTIVE 3D catalog. Navy, ivory and gold; one page, no build step. */
:root {
  --navy: #0B1426; --navy-2: #111D36; --navy-3: #1A2A4A; --line: rgba(250, 247, 242, .12);
  --ivory: #FAF7F2; --muted: #A9B3C7; --gold: #C99A2E; --gold-2: #F2D37A; --gold-3: #8B6914;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif; --sans: Inter, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--navy); color: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }

.ruo { background: #070D1A; color: var(--gold-2); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 6px 12px; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 10px clamp(12px, 3vw, 28px); background: rgba(11, 20, 38, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; font: 600 1.7rem/1 var(--serif); letter-spacing: .06em; color: var(--ivory); }
.wordmark:hover { text-decoration: none; }
.helix-i { height: 1.22em; width: .46em; margin: 0 .05em; }
.helix-i .strand { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.6s var(--ease) forwards; }
.helix-i .strand.b { animation-delay: .25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.top-nav { display: flex; gap: 18px; font-size: .9rem; margin-left: auto; }
.top-nav a { color: var(--muted); }
.top-nav a.on, .top-nav a:hover { color: var(--gold-2); text-decoration: none; }
.top-actions { display: flex; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: .82rem; cursor: pointer; transition: border-color .2s, background .2s; }
.chip-btn:hover { border-color: var(--gold); }
.chip-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); animation: pulse 1.8s ease-in-out infinite; }
.chip-btn[aria-pressed="true"] .dot { background: var(--muted); box-shadow: none; animation: none; }
.chip-btn.gold { border-color: rgba(201, 154, 46, .55); color: var(--gold-2); }
.chip-btn.gold b { background: var(--gold); color: #0B1426; border-radius: 999px; padding: 1px 7px; font-size: .75rem; }
@keyframes pulse { 50% { opacity: .35; } }

.showroom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); min-height: calc(100vh - 80px); }
.stage { position: sticky; top: 57px; height: calc(100vh - 57px); overflow: hidden; background: radial-gradient(80% 60% at 50% 35%, #1B2D52 0%, #0B1426 70%); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
#gl.dragging { cursor: grabbing; }
.stage-hint { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: rgba(11, 20, 38, .55); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; pointer-events: none; transition: opacity .6s; }
.stage-hint.gone { opacity: 0; }
.stage-cat { position: absolute; top: 16px; left: 18px; font: 600 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.stage-arrows { position: absolute; top: 42%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.stage-arrows button { pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11, 20, 38, .5); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: border-color .2s, transform .2s; }
.stage-arrows button:hover { border-color: var(--gold); transform: scale(1.08); }

.detail { position: absolute; left: 18px; right: 18px; bottom: 18px; background: linear-gradient(180deg, rgba(17, 29, 54, .86), rgba(11, 20, 38, .94)); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 14px; backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.detail.swap { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.eyebrow { margin: 0 0 2px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.detail h1 { margin: 0; font: 600 clamp(1.5rem, 2.6vw, 2.2rem)/1.05 var(--serif); letter-spacing: .01em; }
.price-box { text-align: right; flex: none; }
.price { display: block; font: 700 clamp(1.7rem, 3vw, 2.4rem)/1 var(--serif); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.per { font-size: .68rem; color: var(--muted); letter-spacing: .06em; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; max-height: 92px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--navy-3) transparent; }
.size { border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 6px 10px; font-size: .8rem; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; transition: border-color .2s, background .2s, transform .2s; }
.size small { color: var(--muted); font-variant-numeric: tabular-nums; }
.size:hover { border-color: var(--gold); transform: translateY(-1px); }
.size[aria-checked="true"] { border-color: var(--gold-2); background: rgba(201, 154, 46, .16); }
.size[aria-checked="true"] small { color: var(--gold-2); }
.specs { margin: 0 0 10px; display: grid; gap: 4px; font-size: .82rem; }
.specs div { display: grid; grid-template-columns: 98px 1fr; gap: 8px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
#dSku { font-family: var(--mono); letter-spacing: .04em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(250, 247, 242, .04); color: var(--ivory); border-radius: 999px; padding: 9px 16px; font-size: .86rem; font-weight: 600; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.btn:hover { border-color: var(--gold); transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, #D9B04A, #B8860B); color: #0B1426; border-color: transparent; }
.btn.primary.saved { background: transparent; color: var(--gold-2); border-color: var(--gold); }
.btn.ghost { background: transparent; color: var(--muted); }
.fine { margin: 10px 0 0; font-size: .68rem; color: var(--muted); line-height: 1.45; }

.browser { padding: 22px clamp(14px, 2.4vw, 28px) 40px; border-left: 1px solid var(--line); background: var(--navy); }
.browser h2 { margin: 0; font: 600 2rem/1.1 var(--serif); }
.sub { margin: 4px 0 14px; color: var(--muted); font-size: .82rem; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 40px; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 154, 46, .14); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 10px; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: .78rem; cursor: pointer; color: var(--muted); transition: all .2s; }
.filter b { font-weight: 600; opacity: .7; margin-left: 4px; }
.filter:hover { color: var(--ivory); border-color: var(--gold); }
.filter[aria-selected="true"] { background: var(--ivory); color: #0B1426; border-color: var(--ivory); }
.sort { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.sort select { background: var(--navy-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.card { position: relative; text-align: left; border: 1px solid var(--line); background: linear-gradient(160deg, var(--navy-2), #0E182E); border-radius: 14px; padding: 12px 12px 11px; cursor: pointer; overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 80px at var(--mx, 80%) var(--my, 0%), rgba(242, 211, 122, .16), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-3px); border-color: rgba(201, 154, 46, .6); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.card:hover::after { opacity: 1; }
.card.on { border-color: var(--gold-2); box-shadow: 0 0 0 1px var(--gold-2) inset; }
.card .mini { width: 26px; height: 40px; float: right; margin: 0 0 4px 6px; }
.card .mini .liq { transform-origin: 50% 100%; animation: slosh 3.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -120ms); }
@keyframes slosh { 50% { transform: scaleY(.86); } }
.card h3 { margin: 0 0 6px; font: 600 1.08rem/1.15 var(--serif); }
.card .from { font-size: .95rem; font-weight: 700; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.card .from small { font-weight: 500; color: var(--muted); font-size: .68rem; }
.card .meta { display: block; margin-top: 3px; font-size: .68rem; color: var(--muted); }
.card .star { position: absolute; left: 10px; bottom: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); display: none; }
.card.saved .star { display: block; }
.card.saved .meta { padding-left: 12px; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); line-height: 1.6; }
.foot p { margin: 0 0 6px; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 60; background: var(--navy-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 600 1.5rem var(--serif); }
.drawer-head button { background: none; border: 0; font-size: 1.7rem; cursor: pointer; line-height: 1; }
.drawer-list { flex: 1; overflow: auto; padding: 8px 18px; }
.sel-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.sel-row .nm { font: 600 1.05rem var(--serif); cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.sel-row .sk { color: var(--muted); font-size: .72rem; font-family: var(--mono); }
.sel-row .pr { font-weight: 700; color: var(--gold-2); text-align: right; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; }
.qty span { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.sel-empty { color: var(--muted); padding: 30px 0; text-align: center; font-size: .9rem; }
.drawer-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font: 700 1.6rem var(--serif); color: var(--gold-2); }
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(4, 8, 16, .6); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 80; background: var(--ivory); color: #0B1426; font-size: .84rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; transition: all .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* no-WebGL fallback: a flat vial that still follows the selected product */
.fallback { position: absolute; inset: 0 0 38% 0; display: grid; place-items: center; }
.fb-vial { display: grid; justify-items: center; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.fb-cap { width: 74px; height: 26px; border-radius: 6px 6px 3px 3px; background: linear-gradient(90deg, #8B6914, #F2D37A, #B8860B); }
.fb-neck { width: 56px; height: 14px; background: linear-gradient(90deg, #6f7a8f, #dfe6f2, #7d889c); }
.fb-body { position: relative; width: 112px; height: 190px; border-radius: 14px 14px 18px 18px; border: 1px solid rgba(255, 255, 255, .4); background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 40%, rgba(255, 255, 255, .18)); overflow: hidden; }
.fb-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: rgba(250, 247, 242, .8); }
.fb-label { position: absolute; left: 0; right: 0; top: 30%; background: var(--ivory); color: #0B1426; text-align: center; padding: 8px 4px; display: grid; gap: 2px; }
.fb-label b { font: 700 .95rem var(--serif); letter-spacing: .12em; }
.fb-label span { font-size: .62rem; font-weight: 600; }
.fb-label i { font-style: normal; font-size: .6rem; color: #8B6914; }

@media (max-width: 900px) {
  .showroom { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; height: auto; min-height: 0; display: flex; flex-direction: column; }
  #gl { position: relative; height: 46vh; min-height: 300px; flex: none; }
  .fallback { position: relative; inset: auto; height: 46vh; min-height: 300px; }
  .detail { position: relative; left: 0; right: 0; bottom: 0; margin: -22px 10px 12px; }
  .stage-arrows { top: calc(23vh - 21px); }
  .browser { border-left: 0; border-top: 1px solid var(--line); }
  .top { gap: 10px; }
  .top-nav { display: none; }
  .stage-cat { display: none; }
  .sizes { max-height: none; }
  .top-actions { margin-left: auto; }
  .wordmark { font-size: 1.4rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); }
}
@media (max-width: 420px) {
  #motionBtn span[data-i18n] { display: none; }
  .detail-head { align-items: flex-start; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body.still .card .mini .liq, body.still .chip-btn .dot { animation: none; }
