/* MintCards — dark design system */

:root {
  --bg: #121412;
  --surface: #1a1e1b;
  --surface-2: #0c0e0c;
  --ink: #eef2ee;
  --muted: #a3ada5;
  --faint: #707b73;
  --line: #252b27;
  --line-strong: #37403a;
  --accent: #2fbf8a;
  --accent-hover: #45d49d;
  --accent-ink: #0c130f;
  --error: #e06a52;
  --psa-red: #d64541;
  --radius: 14px;
  --radius-s: 9px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .4), 0 22px 50px rgba(0, 0, 0, .5);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 44px); }

/* ---------- micro type ---------- */
.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.serif { font-family: var(--font-display); font-weight: 400; }
h1, h2, h3 { font-weight: 400; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--surface-2); color: var(--muted);
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.topbar b { color: var(--accent); font-weight: 700; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 11px;
  line-height: 1;
}
.wordmark .logo-img { height: 42px; width: auto; }
.wm-text {
  font-family: var(--font-ui); font-style: normal;
  font-weight: 800; text-transform: uppercase;
  font-size: 19px; letter-spacing: .01em; line-height: 1;
}
.wm-text i { color: var(--accent); font-style: normal; }
nav.main { display: flex; gap: 22px; margin-left: 8px; }
nav.main a {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 6px 2px; position: relative; transition: color .18s;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }
nav.main a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang-wrap { position: relative; }
.lang-btn {
  height: 38px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  color: var(--ink); transition: border-color .15s;
}
.lang-btn:hover { border-color: var(--muted); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 170px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px;
}
.lang-opt {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink);
  transition: background .12s;
}
.lang-opt:hover { background: rgba(238, 242, 238, .06); }
.lang-opt.on { color: var(--accent); font-weight: 600; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; transition: background .18s; position: relative;
  color: var(--ink);
}
.icon-btn:hover { background: rgba(238, 242, 238, .08); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  border-radius: 9px; transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.on { transform: scale(1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .18s, background .18s, color .18s, border-color .18s;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--surface-2); }
.btn-primary:hover { background: #fff; box-shadow: var(--shadow-1); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 6px 18px rgba(47, 191, 138, .3); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- hero ---------- */
.hero {
  --px: 0; --py: 0; --sy: 0;
  --gold: #f6c453;
  --violet: #a78bfa;
  --spring: cubic-bezier(.16, 1, .3, 1);
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(26px, 4vw, 56px) 0 clamp(18px, 3vw, 36px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after { /* faint dot lattice behind the showcase */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(238, 242, 238, .09) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(46% 62% at 72% 48%, #000 0%, transparent 100%);
          mask-image: radial-gradient(46% 62% at 72% 48%, #000 0%, transparent 100%);
}
.hero-aurora {
  position: absolute; inset: -18% -12%;
  transform: translate3d(calc(var(--px) * -22px), calc(var(--py) * -14px + var(--sy) * .22px), 0);
}
.hero-aurora::before, .hero-aurora::after {
  content: ""; position: absolute; inset: 0;
  will-change: transform;
}
.hero-aurora::before {
  background:
    radial-gradient(34% 42% at 70% 46%, rgba(47, 191, 138, .24), transparent 70%),
    radial-gradient(22% 30% at 12% 20%, rgba(47, 191, 138, .08), transparent 70%);
  animation: auroraA 16s ease-in-out infinite alternate;
}
.hero-aurora::after {
  background:
    radial-gradient(26% 32% at 86% 20%, rgba(167, 139, 250, .17), transparent 70%),
    radial-gradient(24% 28% at 62% 84%, rgba(246, 196, 83, .12), transparent 70%);
  animation: auroraB 21s ease-in-out infinite alternate;
}
@keyframes auroraA { to { transform: translate3d(-5%, 4%, 0) scale(1.08); } }
@keyframes auroraB { to { transform: translate3d(4%, -5%, 0) scale(1.12) rotate(6deg); } }
.hero-sparks { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 40px); align-items: center;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: livePing 2.2s var(--ease) infinite;
}
@keyframes livePing { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.hero h1 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .98; letter-spacing: -.02em;
  margin: 16px 0 20px;
}
html[lang="sl"] .hero h1, html[lang="hr"] .hero h1 {
  font-size: clamp(32px, 4.2vw, 54px);
}
.hero h1 .dot { color: var(--accent); }
.hero h1 .mint {
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent) 0%, #7fe8bf 24%, #fff4cf 40%, var(--gold) 50%, #7fe8bf 66%, var(--accent) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lede { font-size: 16px; color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-accent {
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 12px 30px -12px rgba(47, 191, 138, .7);
}
.hero-cta .btn-accent svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.hero-cta .btn-accent:hover svg { transform: translateX(3px); }
.hero-cta .btn-accent::after { /* sheen sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.hero-cta .btn-accent:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.hero-cta .btn-ghost { background: rgba(12, 14, 12, .45); }
.hero-meta {
  display: flex; gap: 26px; margin-top: 24px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.hero-meta b { display: block; font-size: 19px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* entrance choreography */
.hero-copy > *, .hero h1 > span {
  animation: heroRise 1s var(--spring) both;
  animation-delay: calc(var(--d, 0) * 90ms + 60ms);
}
.hero h1 > span { display: inline-block; }
.hero-copy > .kicker { --d: 0; }
.hero h1 { animation: none; }
.hero h1 > span:nth-of-type(1) { --d: 1; }
.hero h1 > span:nth-of-type(2) { --d: 2; }
.hero h1 > span:nth-of-type(3) { --d: 3; }
.hero h1 > span:nth-of-type(4) { --d: 3.5; }
.hero-copy > .lede { --d: 4.5; }
.hero-copy > .hero-cta { --d: 5.5; }
.hero-copy > .hero-meta { --d: 6.5; }
.hero h1 .mint {
  animation: heroRise 1s var(--spring) both, foilText 7s ease-in-out 1.4s infinite;
  animation-delay: calc(var(--d) * 90ms + 60ms), 1.4s;
}
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } }
@keyframes foilText { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }

/* ---------- hero showcase ---------- */
.hero-showcase { position: relative; }
.hero-stage {
  position: relative; container-type: inline-size;
  aspect-ratio: 1 / .86; max-height: 620px;
  perspective: 1400px;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.hero-halo {
  position: absolute; left: 50%; top: 44%; width: 90cqi; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(47, 191, 138, .5) 18%, transparent 30% 55%, rgba(246, 196, 83, .4) 66%, transparent 78%);
  -webkit-mask: radial-gradient(closest-side, transparent 97.6%, #000 98%, #000 99.6%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 97.6%, #000 98%, #000 99.6%, transparent 100%);
  animation: haloSpin 26s linear infinite;
}
.hero-halo::before {
  content: ""; position: absolute; inset: -6%; border-radius: 50%;
  border: 1px dashed rgba(238, 242, 238, .08);
}
.hero-stage::before { /* spotlight cone */
  content: ""; position: absolute; inset: -18% 4% 18%; pointer-events: none;
  background: radial-gradient(42% 60% at 50% 8%, rgba(238, 242, 238, .09), transparent 70%);
}
@keyframes haloSpin { to { rotate: 360deg; } }
.hero-floor {
  position: absolute; left: -14%; right: -14%; bottom: 2%; height: 38%;
  pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(47, 191, 138, .3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 191, 138, .3) 1px, transparent 1px);
  background-size: 7cqi 7cqi; background-position: center bottom;
  transform: perspective(420px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(50% 80% at 50% 100%, #000 0%, transparent 100%);
          mask-image: radial-gradient(50% 80% at 50% 100%, #000 0%, transparent 100%);
}
.hero-fan {
  position: absolute; inset: 0;
  perspective: 1500px; perspective-origin: 50% 38%;
  transform: rotateX(calc(var(--py) * -3deg)) rotateY(calc(var(--px) * 6deg)) translateY(calc(var(--sy) * -.07px));
}
.hero-stage { cursor: grab; }
.hero-stage.is-dragging, .hero-stage.is-dragging * { cursor: grabbing !important; }

/* card — position, scale, fan and depth are written every frame by hero.js */
.hcard {
  --w: 38cqi; --glow: var(--accent);
  position: absolute; left: 50%; bottom: 15%;
  width: var(--w); margin-left: calc(var(--w) / -2);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hcard.is-slab { --w: 32cqi; }           /* same height as a raw card */
.hcard:focus-visible { outline: none; }
.hcard-tilt {
  position: relative; display: block;
  transform: perspective(900px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.hcard-tilt::before { /* rarity glow, strongest on the centre card */
  content: ""; position: absolute; inset: 6% 2%; border-radius: 18px;
  background: var(--glow); filter: blur(28px);
  opacity: var(--glow-o, .12); transform: translateZ(-30px);
}
.hcard-flip { position: relative; display: block; transform-style: preserve-3d; }
.hcard-face, .hcard-back {
  display: block; overflow: hidden;
  aspect-ratio: 63 / 88; border-radius: 4.8% / 3.4%;
  background: #0b0d0b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 28px 50px -18px rgba(0, 0, 0, .85), 0 8px 18px -6px rgba(0, 0, 0, .6);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.hcard-face { position: relative; }
.hcard-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.is-slab .hcard-face, .is-slab .hcard-back { aspect-ratio: 600 / 1002; border-radius: 6% / 3.6%; }
.hcard-face img, .hcard-back img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; -webkit-user-drag: none; pointer-events: none;
}
.is-raw .hcard-face img:not(.is-cropped), .is-raw .hcard-back img:not(.is-cropped) { width: 112%; height: 110%; left: -6%; top: -5%; }
.hcard-face::before { /* resting sheen */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .16), transparent 34%, transparent 70%, rgba(255, 255, 255, .05));
}
.hcard-face::after, .hcard-back::after { /* dims cards away from the centre */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: #070907; opacity: var(--dim, .34);
}
.hcard-foil, .hcard-glare {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; will-change: opacity;
}
.hcard-foil {
  z-index: 2; mix-blend-mode: color-dodge;
  opacity: calc(var(--o, 0) * .72);
  background:
    repeating-linear-gradient(118deg,
      rgba(255, 95, 143, .9) 0%, rgba(255, 211, 107, .9) 5%, rgba(125, 255, 179, .9) 10%,
      rgba(111, 212, 255, .9) 15%, rgba(181, 139, 255, .9) 20%, rgba(255, 95, 143, .9) 25%),
    repeating-linear-gradient(28deg, rgba(255, 255, 255, .0) 0 2px, rgba(255, 255, 255, .18) 2px 3px);
  background-size: 260% 260%, 100% 100%;
  background-position: calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%), 0 0;
  -webkit-mask-image: radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%), #000 0%, rgba(0, 0, 0, .25) 75%);
          mask-image: radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%), #000 0%, rgba(0, 0, 0, .25) 75%);
}
.is-slab .hcard-foil { opacity: calc(var(--o, 0) * .42); }
.hcard-glare {
  z-index: 3; mix-blend-mode: overlay;
  opacity: calc(var(--o, 0) * .9);
  background: radial-gradient(farthest-corner circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%),
    rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .22) 24%, rgba(0, 0, 0, .4) 88%);
}
.hcard-tag {
  position: absolute; left: 50%; top: calc(100% + 16px);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(12, 14, 12, .88); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8);
  font-size: 12px; line-height: 1.2;
  opacity: var(--tag, 0); translate: -50% calc((1 - var(--tag, 0)) * 8px);
  pointer-events: none;
}
.hcard-tag b { font-weight: 700; color: var(--ink); }
.hcard-tag span { color: var(--accent); font-weight: 600; }
.is-grail .hcard-tag span { color: var(--gold); }
.hcard:focus-visible .hcard-face { outline: 2px solid var(--accent); outline-offset: 4px; }

/* loading: a face-down deck waits in the centre until the images are decoded */
.hcard-ghost {
  position: absolute; left: 50%; bottom: 15%; width: 38cqi; margin-left: -19cqi;
  aspect-ratio: 63 / 88; border-radius: 4.8% / 3.4%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 191, 138, .16) 0 14%, transparent 15%),
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%),
    var(--surface);
  background-size: 100% 100%, 220% 100%, 100% 100%;
  animation: shimmer 1.4s linear infinite;
  transform-origin: 50% 100%;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
}
.hcard-ghost:nth-child(1) { transform: rotate(-4deg) translate(-1.2cqi, 1cqi); }
.hcard-ghost:nth-child(2) { transform: rotate(1.5deg); }
.hcard-ghost:nth-child(3) { transform: rotate(5deg) translate(1.2cqi, .6cqi); }
.hero-stage.is-error .hcard-ghost { animation: none; opacity: .6; }

/* controls: arrows + dots (the active dot fills up until the next card) */
.hero-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: -2px; min-height: 38px; }
.hc-arrow {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(12, 14, 12, .5); color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.hc-arrow:hover { color: var(--ink); border-color: var(--muted); }
.hc-arrow:active { transform: scale(.92); }
.hc-arrow svg { width: 16px; height: 16px; }
.hc-dots { display: flex; align-items: center; gap: 8px; }
.hc-dot {
  position: relative; width: 8px; height: 8px; padding: 0; border-radius: 999px;
  background: var(--line-strong); overflow: hidden;
  transition: width .45s var(--ease), background .3s;
}
.hc-dot::after { content: ""; position: absolute; inset: -10px -4px; }   /* bigger tap target */
.hc-dot:hover { background: var(--faint); }
.hc-dot.on { width: 30px; background: rgba(238, 242, 238, .16); }
.hc-dot i { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(var(--prog, 0)); opacity: 0; }
.hc-dot.on i { opacity: 1; }

.hero-hint {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 18px; margin-top: -6px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero h1 > span, .hero h1 .mint { animation: none; }
  .hero-aurora::before, .hero-aurora::after, .hero-halo, .live-dot::after { animation: none; }
  .hero-sparks { display: none; }
}

/* ---------- shortcut strip ---------- */
.shortcuts { border-block: 1px solid var(--line); }
.shortcuts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.shortcut {
  padding: 20px 24px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 7px;
  transition: background .2s;
}
.shortcut:first-child { border-left: 0; padding-left: 0; }
.shortcut small {
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.shortcut strong { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.shortcut strong::after {
  content: "↗"; color: var(--accent); font-weight: 400;
  transition: transform .25s var(--ease);
}
.shortcut:hover { background: var(--surface); }
.shortcut:hover strong::after { transform: translate(3px, -3px); }
.shortcut:last-child { padding-right: 0; }

/* ---------- sections ---------- */
section.block { padding: clamp(26px, 3.6vw, 44px) 0; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; margin-bottom: 26px;
}
.block-head h2 {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 36px); letter-spacing: -.015em; line-height: 1.05;
}
.block-head .kicker { display: block; margin-bottom: 8px; }
.link-more { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.link-more:hover { color: var(--accent); }

/* ---------- card tile ---------- */
.grid-cards {
  display: grid; gap: 30px 30px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.tile { display: flex; flex-direction: column; }
.tile-link { display: block; }
.tile-media {
  position: relative; aspect-ratio: 5 / 7; border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover .tile-media { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.tile-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease, transform .5s var(--ease);
}
.tile-slab .tile-media { aspect-ratio: 5 / 8.36; }
.tile-media img.loaded { opacity: 1; }
.tile-media::after { /* glare sweep for slabs */
  content: ""; position: absolute; inset: -40%; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.18) 50%, transparent 58%);
  transform: translateX(-80%);
  opacity: 0;
}
.tile-link:hover .tile-media::after { opacity: 1; transform: translateX(80%); transition: transform .8s var(--ease), opacity .3s; }
.tile-meta { padding: 16px 2px 14px; }
.tile-name { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.cond-chip {
  display: inline-block; padding: 2px 7px 2px; border-radius: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  vertical-align: 1px;
}
.tile-link { position: relative; display: block; transition: transform .35s var(--ease); }
@media (hover: hover) { .tile:hover .tile-link { transform: translateY(-4px) scale(1.02); } }
.tile-frame { position: relative; }
.cond-badge {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); z-index: 4;
  padding: 3px 9px 3px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  white-space: nowrap;
}
.tile-price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-price-row .low-stock { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.tile-add {
  margin-top: auto;
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line-strong); border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: border-color .18s, color .18s, background .18s;
}
.tile-add:hover { border-color: var(--accent); color: var(--accent); background: rgba(47, 191, 138, .07); }
.tile-skel {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.045) 50%, transparent 70%), var(--line);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }
.tile-skel.hide { display: none; }

/* ---------- scroller ---------- */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 16vw, 230px);
  gap: 30px; overflow-x: auto; padding: 4px 4px 18px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

/* ---------- confidence panel ---------- */
.confidence {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(26px, 4vw, 46px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.confidence h2 {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: -.015em; line-height: 1.05;
  margin: 10px 0 14px;
}
.confidence p { font-size: 14px; color: var(--muted); max-width: 42ch; }
.conf-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 4px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600;
  transition: color .18s, padding-left .25s var(--ease);
}
.conf-links a:first-child { border-top: 1px solid var(--line); }
.conf-links a::after { content: "↗"; color: var(--accent); font-weight: 400; }
.conf-links a:hover { color: var(--accent); padding-left: 10px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 48px 0 30px;
}
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand .wordmark .logo-img { height: 64px; }
.foot-brand .wm-text { font-size: 24px; }
.foot-brand p { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 30ch; }
.foot-col h4, .foot-news h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 12px;
}
.foot-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.foot-col a:hover { color: var(--ink); }
.foot-news { max-width: 380px; }
.foot-news p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.news-form { display: flex; gap: 10px; }
.news-form input {
  flex: 1; height: 46px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  outline: none; transition: border-color .15s;
}
.news-form input:focus { border-color: var(--accent); }
.news-form .btn { height: 46px; border-radius: 10px; padding: 0 22px; }
.foot-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- shop ---------- */
.shop-head { padding: 40px 0 8px; }
.shop-head h1 {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.02em; line-height: 1;
}
.toolbar {
  position: sticky; top: 64px; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 14px 0; margin-top: 18px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.toolbar-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.seg button {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .18s;
}
.seg button.on { background: var(--ink); color: var(--surface-2); }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 500; color: var(--ink); background: transparent;
  transition: all .15s;
}
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface-2); }
.toolbar .grow { flex: 1; }
.filter-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.sort-wrap { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.toolbar .result-count { padding: 0; white-space: nowrap; }
/* facet dropdowns */
details.facet { position: relative; }
details.facet summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: border-color .15s, color .15s;
  user-select: none;
}
details.facet summary::-webkit-details-marker { display: none; }
details.facet summary::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
details.facet[open] summary::after { transform: rotate(225deg) translateY(-1px); }
details.facet summary:hover { border-color: var(--muted); }
details.facet[open] summary { border-color: var(--accent); color: var(--accent); }
details.facet.has-opts summary { border-color: var(--accent); color: var(--accent); }
.facet-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  width: 300px; max-width: 84vw;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 10px;
}
.facet-search {
  width: 100%; height: 38px; margin-bottom: 8px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px;
  outline: none; font-size: 13px;
}
.facet-search:focus { border-color: var(--accent); }
.facet-list { max-height: 300px; overflow-y: auto; }
.facet-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; font-size: 13.5px;
  cursor: pointer; transition: background .12s;
}
.facet-opt:hover { background: rgba(238, 242, 238, .05); }
.facet-opt input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.facet-opt .fo-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet-opt .fo-count { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.facet-none { padding: 14px 10px; font-size: 13px; color: var(--faint); }
.fc-count {
  min-width: 17px; height: 17px; padding: 0 5px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 800; border-radius: 999px;
}
.fc-count[hidden] { display: none; }
.facet-clear {
  width: 100%; margin-top: 8px; padding: 9px 0;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: border-color .15s, color .15s;
}
.facet-clear:hover { border-color: var(--error); color: var(--error); }
/* active filter chips */
.active-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; }
.active-row:empty { display: none; }
.active-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(47, 191, 138, .12); border: 1px solid rgba(47, 191, 138, .4);
  color: var(--accent); font-size: 12.5px; font-weight: 600;
  transition: background .15s;
}
.active-chip:hover { background: rgba(47, 191, 138, .22); }
.active-chip > span:last-child { font-size: 14px; line-height: 1; opacity: .8; }
.clear-all {
  font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px; padding: 5px 8px;
}
.clear-all:hover { color: var(--ink); }
.toolbar .search-box { min-width: 0; width: 100%; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0 15px; height: 40px; min-width: 220px;
}
.search-box svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.search-box input { border: 0; outline: 0; background: none; width: 100%; font-size: 13.5px; }
.search-box input::placeholder { color: var(--faint); }
.select {
  height: 40px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); padding: 0 14px; font-size: 13px; font-weight: 500;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a3ada5' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 32px;
  cursor: pointer;
}
.result-count { font-size: 13px; color: var(--muted); padding: 18px 0 6px; }
.result-count b { color: var(--ink); }
.empty {
  text-align: center; padding: 80px 0 110px; color: var(--muted);
}
.empty .serif { font-size: 28px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 8px; font-family: var(--font-ui); }

/* ---------- product page ---------- */
.crumbs { padding: 26px 0 22px; font-size: 12.5px; color: var(--faint); display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.stage {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  aspect-ratio: 5 / 6.5; cursor: pointer;
  touch-action: pan-y;
}
.stage.slab { aspect-ratio: 5 / 8.36; width: 74%; margin-inline: auto; }
.stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease, transform .25s ease-out;
}
.stage img.show { opacity: 1; }
.stage-flip {
  position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(160deg, rgba(255,255,255,.07), transparent 45%);
  pointer-events: none; opacity: 0; transition: opacity .4s;
}
.stage:hover .stage-flip { opacity: 1; }
.pv-toggle {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; gap: 2px; background: rgba(12, 14, 12, .65); border-radius: 999px; padding: 3px;
  backdrop-filter: blur(8px);
}
.pv-toggle button {
  padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; color: rgba(238,242,238,.75);
}
.pv-toggle button.on { background: var(--ink); color: var(--surface-2); }
.pinfo .kicker { color: var(--accent); }
.pinfo h1 {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.02em; line-height: 1.02; margin: 10px 0 6px;
}
.pinfo .setline { color: var(--muted); font-size: 14.5px; }
.p-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 4px; }
.p-price .price { font-size: 30px; letter-spacing: -.02em; }
.p-price .vat { font-size: 12px; color: var(--faint); }
.spec-table { margin: 22px 0; border-top: 1px solid var(--line); }
.spec-table > div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.spec-table dt { color: var(--muted); }
.spec-table dd { font-weight: 500; text-align: right; }
.buy-row { display: flex; gap: 12px; margin-top: 22px; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong);
  border-radius: 999px; height: 46px; overflow: hidden; flex: none;
}
.qty button { width: 40px; height: 100%; font-size: 17px; color: var(--muted); transition: background .15s; }
.qty button:hover { background: rgba(238,242,238,.06); color: var(--ink); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-row .btn { flex: 1; }
.stock-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; display: flex; align-items: center; gap: 7px; }
.stock-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.accordion { margin-top: 30px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 15px 2px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 17px; color: var(--muted); font-weight: 400; transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 2px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------- cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(420px, 94vw);
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -18px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(102%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-line {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 15px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  animation: lineIn .3s var(--ease);
}
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }
.cart-line img { width: 62px; border-radius: 7px; aspect-ratio: 5/7; object-fit: cover; background: var(--line); }
.cart-line .cl-name { font-size: 13.5px; font-weight: 600; }
.cart-line .cl-sub { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.cart-line .qty { height: 30px; border-radius: 999px; }
.cart-line .qty button { width: 28px; font-size: 14px; }
.cart-line .qty span { min-width: 20px; font-size: 12.5px; }
.cart-line .cl-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line .cl-price { font-weight: 600; font-size: 13.5px; }
.cart-line .cl-remove { font-size: 11.5px; color: var(--faint); }
.cart-line .cl-remove:hover { color: var(--error); }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; }
.subtotal { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ship-progress { margin-bottom: 12px; }
.sp-bar {
  height: 6px; border-radius: 999px; background: var(--line); overflow: hidden;
}
.sp-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .5s var(--ease); }
.sp-text { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.sp-text b { color: var(--accent); }
.sp-text.sp-ok { color: var(--accent); font-weight: 600; }
.drawer-foot .note { font-size: 12px; color: var(--faint); margin-bottom: 14px; }
.drawer-foot .btn { width: 100%; }
.cart-empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.cart-empty .serif { font-size: 24px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 8px; font-family: var(--font-ui); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; z-index: 120;
  transform: translate(-50%, 80px);
  background: var(--accent); color: var(--accent-ink);
  padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-2);
  opacity: 0; transition: transform .35s var(--ease), opacity .3s;
  display: flex; align-items: center; gap: 9px; max-width: 88vw;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 15px; height: 15px; color: var(--accent-ink); flex: none; }

/* ---------- to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease);
}
.to-top.on { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: 10px 0 60px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--bg); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 191, 138, .15); }
.field .err { display: none; font-size: 11.5px; color: var(--error); margin-top: 5px; }
.field.invalid input { border-color: var(--error); }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary-panel { position: sticky; top: 92px; }
.sum-line { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sum-line img { width: 46px; border-radius: 6px; aspect-ratio: 5/7; object-fit: cover; background: var(--line); }
.sum-line .sl-name { font-weight: 600; }
.sum-line .sl-sub { color: var(--muted); font-size: 12px; }
.sum-line .sl-price { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-total { display: flex; justify-content: space-between; padding-top: 16px; font-size: 16px; font-weight: 700; }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); padding-top: 10px; }
.success { text-align: center; padding: 90px 20px 120px; }
.success .ring {
  width: 74px; height: 74px; margin: 0 auto 26px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center;
}
.success .ring svg { width: 30px; height: 30px; }
.success h1 {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -.02em;
}
.success p { color: var(--muted); margin: 12px 0 30px; }
.success .order-id { font-weight: 700; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 6px; }
  .hero-showcase { order: -1; width: min(100%, 560px); margin-inline: auto; }
  .hero-stage { aspect-ratio: 1 / .78; }
  .product-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .confidence { grid-template-columns: 1fr; }
  .shortcuts-grid { grid-template-columns: 1fr 1fr; }
  .shortcut { padding: 20px 18px; }
  .shortcut:nth-child(odd) { border-left: 0; padding-left: 0; }
  .shortcut:nth-child(n+3) { border-top: 1px solid var(--line); }
  nav.main { display: none; }
}
@media (max-width: 560px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .buy-row { flex-wrap: wrap; }
  .toolbar { top: 63px; }
  .hcard { --w: 42cqi; }
  .hcard.is-slab { --w: 35.5cqi; }
  .hcard-ghost { width: 42cqi; margin-left: -21cqi; }
  .hcard-tag { font-size: 11px; padding: 6px 11px; gap: 7px; }
  .hero-meta { gap: 20px; }
}

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =====================================================================
   Storefront upgrade — shared chrome, discovery, conversion features
   ===================================================================== */
[hidden] { display: none !important; }
html.no-scroll { overflow: hidden; }
body { overflow-x: clip; }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.topbar { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* header */
.menu-btn { display: none; margin-left: -8px; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 10px 0 14px; margin-right: 6px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--faint);
  font-size: 13px; min-width: 210px;
  transition: border-color .15s, color .15s;
}
.search-trigger:hover { border-color: var(--muted); color: var(--muted); }
.search-trigger svg { width: 16px; height: 16px; flex: none; }
.search-trigger span { flex: 1; text-align: left; }
.search-trigger kbd {
  font: 600 11px var(--font-ui); color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px;
}
.fav-btn[aria-current="page"] { color: var(--accent); }
.fav-count { background: #ff6b8b; color: #fff; }
.cart-count.bump { animation: badgeBump .5s var(--ease); }
@keyframes badgeBump { 0% { transform: scale(1); } 35% { transform: scale(1.6); } 100% { transform: scale(1); } }
nav.main a[data-nav="premium"] { color: var(--gold, #f6c453); }

/* fly-to-cart ghost */
.fly-ghost {
  position: fixed; z-index: 300; margin: 0; pointer-events: none; object-fit: cover;
  border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  transform-origin: center;
}

/* toast action */
.toast { padding-right: 8px; }
.toast-act {
  margin-left: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgba(12, 19, 15, .16); color: var(--accent-ink); font-weight: 700; font-size: 12.5px;
  white-space: nowrap;
}
.toast-act:hover { background: rgba(12, 19, 15, .28); }
.toast-act[hidden] { display: none; }

/* scroll reveal */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ---------- hero additions ---------- */
.hero-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 12.5px; color: var(--faint); }
.hero-pop:empty { display: none; }
.hero-pop span { margin-right: 2px; }
.hero-pop a {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--muted); font-weight: 600; background: rgba(12, 14, 12, .45);
  transition: border-color .15s, color .15s;
}
.hero-pop a:hover { border-color: var(--accent); color: var(--accent); }
.hero-copy > .hero-pop { --d: 6; }
.hero-meta { flex-wrap: wrap; }

.sc-n { font-size: 12px; color: var(--muted); margin-top: -2px; min-height: 18px; }

/* ---------- tiles ---------- */
.tile { position: relative; }
.tile-fav {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 14, 12, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--ink); border: 1px solid rgba(255, 255, 255, .12);
  opacity: .9; transition: transform .2s var(--ease), color .2s, background .2s, opacity .2s;
}
.tile-fav svg { width: 17px; height: 17px; }
.tile-fav:hover { transform: scale(1.1); opacity: 1; }
.tile-fav.on { color: #ff6b8b; background: rgba(255, 107, 139, .16); border-color: rgba(255, 107, 139, .4); opacity: 1; }
.tile-fav.on svg, .p-fav.on svg { fill: currentColor; }
.tile-fav.pop, .p-fav.pop { animation: favPop .5s var(--ease); }
@keyframes favPop { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (hover: hover) {
  .tile-fav:not(.on) { opacity: 0; }
  .tile:hover .tile-fav, .tile-fav:focus-visible { opacity: 1; }
}
.tile-flag {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  padding: 4px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #fff0b8, #f6c453 45%, #d8962a); color: #2a1d05;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 6px 16px -6px rgba(246, 196, 83, .7);
}
.grade-badge {
  display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 5px;
  background: rgba(47, 191, 138, .14); border: 1px solid rgba(47, 191, 138, .4);
  color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px;
}
.tile-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-add.in-cart { border-color: rgba(47, 191, 138, .5); color: var(--accent); background: rgba(47, 191, 138, .08); }
.tile-price-row .low-stock { color: #f6c453; }

/* ---------- scroller arrows ---------- */
.block-tools { display: flex; align-items: center; gap: 16px; }
.scroll-btns { display: flex; gap: 6px; }
.sbtn { border: 1px solid var(--line-strong); }
.sbtn svg { width: 17px; height: 17px; }
.scroller { scroll-padding-inline: 4px; overscroll-behavior-x: contain; }

/* ---------- grail spotlight ---------- */
.spotlight {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 70px);
  align-items: center; padding: clamp(24px, 4vw, 54px);
  border: 1px solid rgba(246, 196, 83, .28); border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(60% 90% at 18% 50%, color-mix(in srgb, var(--c, #f6c453) 30%, transparent), transparent 70%),
    radial-gradient(50% 70% at 90% 10%, rgba(246, 196, 83, .12), transparent 70%),
    var(--surface);
}
.spotlight:empty { min-height: 380px; }
.sp-media {
  position: relative; display: block; justify-self: center; width: min(100%, 330px);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.sp-media:hover { transform: perspective(900px) rotateY(0) rotateX(0) scale(1.02); }
.sp-media img { width: 100%; }
.sp-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%);
  background-size: 250% 100%; animation: spShine 5s ease-in-out infinite;
}
@keyframes spShine { 0%, 40% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.sp-copy .kicker { color: #f6c453; }
.sp-copy h2 {
  font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: 1;
  font-size: clamp(30px, 4.4vw, 56px); margin: 12px 0 8px;
}
.sp-set { color: var(--muted); font-size: 14px; }
.sp-p { color: var(--muted); font-size: 15px; max-width: 46ch; margin: 18px 0 22px; }
.sp-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 26px; }
.sp-facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sp-facts dd { font-weight: 600; margin-top: 2px; }
.sp-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sp-buy .price { font-size: 32px; letter-spacing: -.02em; margin-right: 10px; color: #f6c453; }
.sp-buy .btn-accent.in-cart { background: transparent; color: var(--accent); border-color: var(--accent); }

/* ---------- shop by set ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.set-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
  min-height: 150px; padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 20%, rgba(12, 14, 12, .92) 78%), color-mix(in srgb, var(--c) 40%, var(--surface));
  transition: border-color .2s, transform .3s var(--ease);
}
.set-card img {
  position: absolute; z-index: -1; right: -14px; top: -18px; width: 58%;
  border-radius: 8px; transform: rotate(12deg); opacity: .85;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease);
}
.set-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.set-card:hover img { transform: rotate(6deg) translateY(6px) scale(1.04); }
.set-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.set-meta { font-size: 12px; color: var(--muted); }

/* ---------- condition scale + FAQ ---------- */
.confidence { align-items: start; }
.cond-scale { margin-top: 26px; }
.cs-h { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.cond-scale ol { list-style: none; display: grid; gap: 7px; }
.cond-scale li { display: grid; grid-template-columns: 38px 108px 1fr; align-items: center; gap: 8px; font-size: 13px; }
.cond-scale li .cond-chip { text-align: center; }
.cond-scale li b { font-weight: 600; }
.cond-scale li span:last-child { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 17px 2px; font-size: 14.5px; font-weight: 600; transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 2px 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- footer ---------- */
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line);
}
.trust-row > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
.trust-row svg { grid-row: span 2; width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: rgba(47, 191, 138, .1); color: var(--accent); }
.trust-row b { font-size: 13.5px; }
.trust-row span { font-size: 12.5px; color: var(--muted); }

/* ---------- instant search ---------- */
.qs { position: fixed; inset: 0; z-index: 150; }
.qs-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 5, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.qs-panel {
  position: relative; margin: min(12vh, 110px) auto 0; width: min(680px, calc(100% - 24px));
  max-height: min(76vh, 680px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(-12px) scale(.98); transition: opacity .2s, transform .25s var(--ease);
}
.qs.on .qs-backdrop { opacity: 1; }
.qs.on .qs-panel { opacity: 1; transform: none; }
.qs-bar { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.qs-bar svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.qs-bar input { flex: 1; height: 62px; border: 0; outline: 0; background: none; font-size: 17px; min-width: 0; }
.qs-bar input::placeholder { color: var(--faint); }
.qs-bar input::-webkit-search-cancel-button { display: none; }
.qs-esc { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 8px; }
.qs-results { overflow-y: auto; padding: 10px; overscroll-behavior: contain; }
.qs-h { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 8px; }
.qs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 8px; }
.qs-chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; transition: border-color .15s, color .15s; }
.qs-chip:hover { border-color: var(--accent); color: var(--accent); }
.qs-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 8px 10px; border-radius: 10px; transition: background .12s;
}
.qs-row img { width: 44px; height: 60px; object-fit: cover; border-radius: 6px; }
.qs-row:hover, .qs-row[aria-selected="true"], .qs-all[aria-selected="true"] { background: rgba(238, 242, 238, .06); }
.qs-name { min-width: 0; display: flex; flex-direction: column; }
.qs-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-name small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.qs-all { display: block; margin-top: 6px; padding: 12px 10px; border-radius: 10px; color: var(--accent); font-weight: 600; font-size: 13.5px; border-top: 1px solid var(--line); }
.qs-empty { text-align: center; padding: 30px 10px; display: grid; gap: 6px; color: var(--muted); }
.qs-empty b { color: var(--ink); font-size: 17px; }
.qs-empty .qs-chips { justify-content: center; margin-top: 10px; }
.qs-cats { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 10px 6px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.qs-cats a:hover { color: var(--accent); }

/* ---------- mobile menu ---------- */
.mm { position: fixed; inset: 0; z-index: 140; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.mm-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(360px, 88vw);
  display: flex; flex-direction: column; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-102%); transition: transform .3s var(--ease);
}
.mm.on .mm-backdrop { opacity: 1; }
.mm.on .mm-panel { transform: none; }
.mm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mm-head .logo-img { height: 38px; width: auto; }
.mm-search {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--faint); font-size: 15px;
}
.mm-search svg { width: 17px; height: 17px; }
.mm-links { display: flex; flex-direction: column; margin-top: 14px; }
.mm-links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 15px 2px; border-bottom: 1px solid var(--line);
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.mm-links a small { font-size: 11.5px; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.mm-links a:active { color: var(--accent); }
.mm-foot { margin-top: auto; padding-top: 24px; }
.mm-foot > a { display: block; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.mm-h { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.mm-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-lang { width: 46px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 800; }
.mm-lang.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- drawer upgrades ---------- */
.drawer { padding-bottom: env(safe-area-inset-bottom); }
.drawer:focus { outline: none; }
.drawer-n { color: var(--muted); font-weight: 600; }
.drawer-foot[hidden] { display: none; }
.drawer-trust { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 10px; }
.cart-line a.cl-name { display: block; }
.cart-line a.cl-name:hover { color: var(--accent); }
.qty button:disabled { opacity: .3; cursor: default; }
.cart-empty { padding: 50px 10px 30px; display: grid; justify-items: center; gap: 4px; }
.cart-empty-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 191, 138, .1); color: var(--accent); margin-bottom: 12px; }
.cart-empty-ico svg { width: 28px; height: 28px; }
.cart-empty-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.cart-empty-cta .btn { height: 40px; padding: 0 18px; font-size: 13px; }
.upsell { margin: 18px 0 8px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-strong); }
.upsell-h { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.up-line { display: grid; grid-template-columns: 34px 1fr auto 32px; gap: 10px; align-items: center; padding: 7px 0; }
.up-line img { width: 34px; height: 46px; object-fit: cover; border-radius: 4px; }
.up-name { min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.up-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-name span { color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-price { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.up-add { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 700; line-height: 1; transition: transform .15s; }
.up-add:hover { transform: scale(1.1); }

/* ---------- shop ---------- */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shop-search { width: min(100%, 380px); height: 46px; }
.saved-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; transition: border-color .15s, color .15s, background .15s;
}
.saved-toggle svg { width: 15px; height: 15px; }
.saved-toggle:hover { border-color: var(--muted); }
.saved-toggle.on { border-color: #ff6b8b; color: #ff6b8b; background: rgba(255, 107, 139, .1); }
.saved-toggle.on svg { fill: currentColor; }
.saved-toggle .fc-count { background: #ff6b8b; color: #fff; }
.saved-toggle .fc-count:not(.on) { display: none; }
.results-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 0 18px; }
.results-bar .result-count { padding: 0; }
.results-bar .active-row { padding: 0; }
.facet-opt.dead { opacity: .4; }
.facet-actions { display: flex; gap: 8px; margin-top: 8px; }
.facet-actions .facet-clear { margin-top: 0; flex: 1; }
.facet-done { display: none; flex: 1; padding: 11px 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.sheet-h { display: none; }
.more { display: grid; justify-items: center; gap: 12px; padding: 44px 0 10px; text-align: center; }
.more-text { font-size: 13px; color: var(--muted); }
.more-bar { width: 200px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.more-bar span { display: block; height: 100%; background: var(--accent); transition: width .4s var(--ease); }
.empty { display: grid; justify-items: center; gap: 4px; }
.empty-cta { margin-top: 20px; }

/* ---------- product ---------- */
.gallery { position: sticky; top: 88px; }
.stage {
  cursor: zoom-in; perspective: 1200px; overflow: visible;
  background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--c, #333) 45%, transparent), transparent 75%), var(--surface);
}
.stage.slab { width: 100%; aspect-ratio: 5 / 6.5; }
.stage-tilt {
  position: absolute; inset: 6%; display: block;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  transform-style: preserve-3d;
}
.stage.is-tilting .stage-tilt { transition: transform .08s linear; }
.stage.slab .stage-tilt { inset: 4% 18%; }
.stage img {
  object-fit: contain; border-radius: 12px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}
.stage.raw img { border-radius: 4.5% / 3.3%; }
.stage-foil, .stage-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; border-radius: 12px; }
.stage-foil {
  mix-blend-mode: color-dodge;
  background: repeating-linear-gradient(118deg, rgba(255, 95, 143, .5) 0%, rgba(255, 211, 107, .5) 5%, rgba(125, 255, 179, .5) 10%, rgba(111, 212, 255, .5) 15%, rgba(181, 139, 255, .5) 20%, rgba(255, 95, 143, .5) 25%);
  background-size: 300% 300%; background-position: var(--mx, 50%) var(--my, 50%);
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
          mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%);
}
.stage-glare { mix-blend-mode: overlay; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .7), transparent 55%); }
.stage.is-tilting .stage-foil { opacity: .35; }
.stage.is-tilting .stage-glare { opacity: .8; }
.stage.slab .stage-foil { display: none; }
.stage.is-loading::after {
  content: ""; position: absolute; inset: 10% 22%; border-radius: 12px;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%), var(--line);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
.stage-zoom {
  position: absolute; right: 14px; top: 14px; z-index: 6;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 14, 12, .6); backdrop-filter: blur(6px); color: var(--ink);
}
.stage-zoom svg { width: 18px; height: 18px; }
.stage-flip { display: none; }
.gallery .pv-toggle {
  position: static; transform: none; display: flex; justify-content: center; gap: 10px;
  background: none; backdrop-filter: none; padding: 0; margin-top: 14px;
}
.gallery .pv-toggle button {
  display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  color: var(--muted); font-size: 13px;
}
.gallery .pv-toggle button img { width: 34px; height: 46px; object-fit: cover; border-radius: 5px; }
.gallery .pv-toggle button.on { border-color: var(--accent); color: var(--ink); background: var(--surface); }
.stage-hint { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 12px; }
.pinfo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pinfo-acts { display: flex; gap: 4px; }
.pinfo-acts .icon-btn { border: 1px solid var(--line-strong); }
.p-fav.on { color: #ff6b8b; border-color: rgba(255, 107, 139, .5); }
.p-ship { font-size: 13px; color: var(--muted); min-height: 20px; margin-top: 6px; }
.p-ship b { color: var(--accent); }
.qty[hidden] { display: none; }
.qty button:disabled { opacity: .3; }
#add.is-in-cart, #bb-add.is-in-cart { background: transparent; color: var(--accent); border-color: var(--accent); }
.stock-note.hot { color: #f6c453; }
.stock-note.hot .dot { background: #f6c453; box-shadow: 0 0 0 0 rgba(246, 196, 83, .6); animation: dotPulse 1.8s infinite; }
@keyframes dotPulse { 70% { box-shadow: 0 0 0 7px rgba(246, 196, 83, 0); } 100% { box-shadow: 0 0 0 0 rgba(246, 196, 83, 0); } }
.p-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 4px; }
.p-trust li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.p-trust svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
#related h2 { font-size: clamp(24px, 3vw, 32px); }

/* sticky buy bar (phones) */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  display: none; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.buybar.on { transform: none; }
.buybar img { width: 36px; height: 50px; object-fit: cover; border-radius: 5px; }
.bb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bb-info b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-info .price { font-size: 15px; }
.buybar .btn { height: 44px; padding: 0 20px; }

/* ---------- checkout ---------- */
.steps { list-style: none; display: flex; align-items: center; gap: 10px; padding-top: 28px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.steps li.done { color: var(--accent); }
.steps li.done a::before { content: "✓ "; }
.steps li.on { color: var(--ink); }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.step-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 191, 138, .14); color: var(--accent); font-size: 11.5px; }
.field .hint { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.field.invalid .hint { display: none; }
.field.valid input, .field.valid select { border-color: rgba(47, 191, 138, .55); }
.field.invalid select { border-color: var(--error); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a3ada5' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: rgba(47, 191, 138, .06); }
.pay-opt input { accent-color: var(--accent); margin-top: 3px; width: 16px; height: 16px; }
.pay-opt span { display: flex; flex-direction: column; }
.pay-opt b { font-weight: 600; font-size: 14px; }
.pay-opt small { color: var(--muted); font-size: 12.5px; }
.demo-note { font-size: 12px; color: var(--faint); margin-top: 12px; }
.place-btn { width: 100%; margin-top: 18px; height: 54px; font-size: 15px; }
.place-note { text-align: center; font-size: 12px; color: var(--faint); margin-top: 10px; }
.sum-head { display: flex; justify-content: space-between; align-items: baseline; }
.link-btn { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.sl-img { position: relative; flex: none; }
.sl-img i { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--muted); color: var(--bg); font: 700 11px/19px var(--font-ui); text-align: center; }
#sum-ship-progress .ship-progress { margin: 14px 0 4px; }
.sum-row .free, .sum-row b.free { color: var(--accent); }
.sum-vat { font-size: 11.5px; color: var(--faint); text-align: right; margin-top: 2px; }
.sum-trust { flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.success { position: relative; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.success .ring { animation: ringIn .7s var(--spring, cubic-bezier(.16, 1, .3, 1)) both; background: rgba(47, 191, 138, .1); box-shadow: 0 0 0 10px rgba(47, 191, 138, .06); }
@keyframes ringIn { from { transform: scale(.4); opacity: 0; } }
.suc-mail { font-size: 13px; color: var(--faint); }
.suc-cards { display: flex; justify-content: center; margin: 6px 0 34px; }
.suc-cards img { width: 70px; border-radius: 6px; margin-left: -18px; box-shadow: 0 12px 26px rgba(0, 0, 0, .5); transform: rotate(calc((var(--i) - 1) * 6deg)); animation: heroRise .8s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.suc-cards img:first-child { margin-left: 0; }
.suc-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- responsive (upgrade) ---------- */
@media (max-width: 1100px) {
  .search-trigger { min-width: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 38px; padding: 0; justify-content: center; border: 0; background: none; color: var(--ink); margin: 0; }
  .search-trigger svg { width: 19px; height: 19px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .site-inner { gap: 10px; }
  .lang-wrap { display: none; }
  .spotlight { grid-template-columns: 1fr; text-align: left; }
  .sp-media { width: min(70%, 280px); transform: none; }
  .gallery { position: static; }
  .confidence { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .toolbar { top: 63px; padding: 10px 0; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .toolbar-inner {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px;
    margin-inline: calc(-1 * clamp(18px, 4vw, 44px)); padding-inline: clamp(18px, 4vw, 44px);
  }
  .toolbar-inner::-webkit-scrollbar { display: none; }
  .toolbar-inner > * { flex: none; }
  .toolbar .grow { display: none; }
  .sort-wrap > span { display: none; }
  .seg button { padding: 7px 12px; }
  .saved-toggle span[data-i18n] { display: none; }
  /* facet panels become bottom sheets */
  .facet-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 130;
    width: 100%; max-width: none; border-radius: 20px 20px 0 0;
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
    max-height: 78vh; display: flex; flex-direction: column;
    animation: sheetUp .3s var(--ease);
  }
  .facet-panel::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); align-self: center; margin-bottom: 12px; }
  .sheet-h { display: block; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
  .facet-list { max-height: none; flex: 1; overflow-y: auto; }
  .facet-opt { padding: 12px 6px; font-size: 15px; }
  .facet-opt input { width: 19px; height: 19px; }
  .facet-done { display: block; }
  html.sheet-open::after { content: ""; position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .6); }
  html.sheet-open { overflow: hidden; }
  .shop-head { padding-top: 26px; gap: 16px; }
  .shop-search { width: 100%; }
  .buybar { display: flex; }
  body[data-nav="product"] .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body[data-nav="product"] .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .scroll-btns { display: none; }
  .cond-scale li { grid-template-columns: 38px 1fr; }
  .cond-scale li span:last-child { grid-column: 2; margin-top: -6px; font-size: 12px; }
  .steps { padding-top: 20px; }
}
@keyframes sheetUp { from { transform: translateY(40%); opacity: 0; } }
@media (max-width: 560px) {
  .fav-btn { display: none; }
  .wordmark .logo-img { height: 36px; }
  .wm-text { font-size: 17px; }
  .topbar { font-size: 10.5px; letter-spacing: .05em; padding: 7px 12px; }
  .hero-meta { gap: 14px 22px; }
  .hero-meta > div { min-width: calc(50% - 22px); }
  .tile-fav { width: 32px; height: 32px; top: 8px; right: 8px; }
  .tile-flag { top: 8px; left: 8px; font-size: 9px; padding: 3px 7px; }
  .tile-meta { padding: 14px 0 10px; }
  .tile-add { min-height: 40px; }
  .set-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .set-card { min-height: 130px; padding: 12px; }
  .set-name { font-size: 13.5px; }
  .trust-row { grid-template-columns: 1fr; gap: 14px; }
  .sp-buy .price { width: 100%; }
  .sp-buy .btn { flex: 1; }
  .scroller { grid-auto-columns: 46%; gap: 12px; }
  .foot-grid { flex-direction: column; }
  .news-form { flex-direction: column; }
  .qs-panel { margin-top: 0; width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .qs-bar input { font-size: 16px; }
  .panel { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field input, .field select { height: 48px; font-size: 16px; }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 24px); }
  .p-trust { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .sp-shine { animation: none; }
}

/* overflow guards + set card legibility */
.tile, .tile-link, .tile-meta { min-width: 0; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
@media (max-width: 560px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .toolbar { overflow-x: clip; } }
.set-card img { width: 40%; right: 10px; top: 12px; }
.set-name, .set-meta { position: relative; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.set-card { background: linear-gradient(180deg, transparent 10%, rgba(12, 14, 12, .95) 70%), color-mix(in srgb, var(--c) 40%, var(--surface)); }
@media (max-width: 760px) { html.sheet-open .toolbar { z-index: 135; } }

/* ---------- product gallery: card + front/back always in the first screen ---------- */
.gallery { --chrome: 300px; }
.stage, .stage.slab { width: min(100%, calc((100vh - var(--chrome)) * 5 / 6.5)); margin-inline: auto; }
@supports (height: 100svh) { .stage, .stage.slab { width: min(100%, calc((100svh - var(--chrome)) * 5 / 6.5)); } }
.stage { min-width: min(100%, 260px); }
/* phones: small-viewport units (svh) re-evaluate when Safari's URL bar collapses on
   scroll, which briefly resized the card. On phones size from the large viewport (vh) —
   stable in Safari and matches the screen as seen while reading (bar hidden); the calc
   shrinks it on shorter phones and min(100%, …) caps it on narrow ones. */
@media (max-width: 560px) { .stage, .stage.slab { width: min(100%, calc((100vh - var(--chrome)) * 5 / 6.5)); } }
.stage.slab .stage-tilt { inset: 4% 16%; }
@media (max-width: 960px) {
  .crumbs { padding: 14px 0 12px; }
  .gallery { --chrome: 270px; }
}
@media (max-width: 560px) {
  .gallery .pv-toggle { margin-top: 10px; }
  .gallery .pv-toggle button { padding: 4px 14px 4px 4px; }
  .gallery .pv-toggle button img { width: 28px; height: 38px; }
  .stage-hint { margin-top: 8px; }
}

/* ---------- zoom viewer ---------- */
.viewer {
  --fade: 1;
  position: fixed; inset: 0; z-index: 160;
  display: flex; flex-direction: column;
  background: rgba(6, 8, 6, calc(1 * var(--fade)));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transition: opacity .22s;
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.viewer.on { opacity: 1; }
.vw-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: calc(.55 * var(--fade));
  background: radial-gradient(55% 50% at 50% 45%, color-mix(in srgb, var(--c, #2fbf8a) 55%, transparent), transparent 75%);
}
.vw-top, .vw-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; }
.vw-top { padding-top: calc(14px + env(safe-area-inset-top)); }
.vw-bar { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.vw-title { display: flex; flex-direction: column; min-width: 0; }
.vw-title b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vw-title span { font-size: 12.5px; color: var(--muted); }
.vw-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(238, 242, 238, .08); border: 1px solid rgba(238, 242, 238, .14); color: var(--ink);
  transition: background .15s, transform .15s;
}
.vw-btn:hover { background: rgba(238, 242, 238, .16); }
.vw-btn:active { transform: scale(.92); }
.vw-btn svg { width: 19px; height: 19px; }
.vw-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; padding: 4px 16px; }
.viewer.is-zoomed .vw-stage { cursor: grab; }
.viewer.is-dragging .vw-stage { cursor: grabbing; }
.vw-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9);
  transform-origin: center; will-change: transform; -webkit-user-drag: none; pointer-events: none;
  transition: opacity .2s;
}
.vw-stage img.anim { transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.vw-stage img.swap { opacity: 0; }
.vw-spin {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(238, 242, 238, .15); border-top-color: var(--accent);
  animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s;
}
.viewer.is-loading .vw-spin { opacity: 1; }
@keyframes spin { to { rotate: 360deg; } }
.vw-hint { position: relative; z-index: 2; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); transition: opacity .3s; }
.viewer.is-zoomed .vw-hint { opacity: 0; }
.vw-sides { display: flex; gap: 8px; }
.vw-side {
  display: flex; align-items: center; gap: 9px; padding: 4px 14px 4px 4px;
  border-radius: 12px; border: 1px solid rgba(238, 242, 238, .14); background: rgba(238, 242, 238, .05);
  font-size: 13px; font-weight: 600; color: var(--muted); transition: border-color .15s, color .15s;
}
.vw-side img { width: 30px; height: 42px; object-fit: cover; border-radius: 5px; }
.vw-side.on { border-color: var(--accent); color: var(--ink); }
.vw-zoom { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(238, 242, 238, .05); border: 1px solid rgba(238, 242, 238, .1); }
.vw-zoom .vw-btn { width: 38px; height: 38px; border: 0; background: none; }
.vw-zoom .vw-btn:hover { background: rgba(238, 242, 238, .1); }
.vw-pct { min-width: 54px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 560px) {
  .vw-top, .vw-bar { padding-inline: 14px; }
  .vw-stage { padding: 0 8px; }
  .vw-zoom .vw-btn { width: 34px; height: 34px; }
  .vw-pct { min-width: 46px; }
  .vw-side span { display: none; }
  .vw-side { padding: 4px; }
  .vw-hint { font-size: 10px; letter-spacing: .06em; padding-inline: 16px; }
}
.vw-stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 32px); max-height: calc(100% - 8px); }
@media (max-width: 560px) { .vw-stage img { max-width: calc(100% - 16px); } }
/* zoom viewer: front/back centred on larger screens */
@media (min-width: 561px) {
  .vw-bar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .vw-sides { grid-column: 2; }
  .vw-zoom { grid-column: 3; justify-self: end; }
}
.p-about { margin: 22px 0 4px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.p-about h2 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.p-about p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.set-card img { width: 34%; top: 10px; right: 10px; }
/* sort lives in the results line so the filter row never reflows */
.results-bar .sort-wrap { margin-left: auto; }
.results-bar { row-gap: 10px; }
/* top announcement bar: mint text framed by stars */
.topbar { color: var(--accent); }
.topbar b { color: #7fe8bf; }
.topbar-track > span::before, .topbar-track > span::after {
  content: "★"; display: inline-block; margin: 0 .7em; color: var(--accent); font-size: 1.05em;
}
@media (max-width: 560px) {
  .topbar { white-space: normal; line-height: 1.5; letter-spacing: .04em; padding: 6px 10px; }
  .topbar-track > span::before, .topbar-track > span::after { margin: 0 .45em; }
}
.tb-sep { font-style: normal; }
@media (max-width: 560px) {
  .tb-sep { display: none; }
  .tb-part { display: block; }
  .topbar-track > span::before, .topbar-track > span::after { content: none; }
  .tb-part:first-child::before { content: "★"; margin-right: .45em; }
  .tb-part:last-child::after { content: "★"; margin-left: .45em; }
}
.vw-stage.off-card, .viewer.is-zoomed .vw-stage.off-card { cursor: pointer; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; padding-block: 40px 60px; }
html:not([lang="sl"]) .legal-sl, html[lang="sl"] .legal-en { display: none; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 10px; }
.legal h2 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 6px; }
.legal a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { font-size: 13px !important; color: var(--faint) !important; }
.legal-form { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; }
.legal-table { border-collapse: collapse; margin: 14px 0; min-width: 280px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.legal-table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin-top: 10px; }
.legal-dl dt { color: var(--faint); }
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { font-size: 120px; color: var(--accent); }
/* checkout additions */
.pay-marks { display: flex; flex-wrap: wrap; gap: 8px; }
.pm { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.pay-secure { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0 18px; }
.pay-secure svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.terms { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.terms input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.terms a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.terms-err { display: none; font-size: 12px; color: var(--error); margin-top: 8px; }
.co-error { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: rgba(224, 106, 82, .12); border: 1px solid rgba(224, 106, 82, .4); color: #f3a896; font-size: 14px; }
.place-btn.is-busy { opacity: .7; pointer-events: none; }
.place-btn.is-busy svg { animation: spin 1s linear infinite; }
/* sold cards */
.tile.is-sold .tile-media img { filter: grayscale(.85) brightness(.6); }
.sold-badge { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 6; padding: 6px 16px; border-radius: 8px; border: 2px solid var(--ink); color: var(--ink); background: rgba(12, 14, 12, .75); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.tile-add:disabled { opacity: .45; cursor: default; }
.stock-note.sold { color: var(--error); }
.stock-note.sold .dot { background: var(--error); }
/* order page */
.ring.is-wait { animation: pulseRing 1.2s ease-in-out infinite; }
.ring.is-wait svg { opacity: .2; }
.ring.is-fail { border-color: var(--error); color: var(--error); }
@keyframes pulseRing { 50% { transform: scale(.92); opacity: .6; } }
.ord-box { max-width: 460px; margin: 0 auto 28px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.ord-next { list-style: none; max-width: 560px; margin: 0 auto 34px; display: grid; gap: 12px; text-align: left; counter-reset: s; }
.ord-next li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; counter-increment: s; }
.ord-next li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 191, 138, .14); color: var(--accent); font-weight: 800; font-size: 13px; }
.ord-next b { font-size: 14px; }
.ord-next span { font-size: 13px; color: var(--muted); }
.ord-warn { color: #f6c453; }
.terms-err.on { display: block; }
.sold-badge.is-reserved { border-color: #f6c453; color: #f6c453; }
.tile.is-reserved .tile-media img { filter: saturate(.6) brightness(.75); }
.hold-note { color: var(--muted); margin-top: 12px; }

/* ---------- several copies of one card ---------- */
.copies-chip {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  background: rgba(12, 14, 12, .78); color: var(--ink); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.copies { margin: 18px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.copies-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.copies-head b { font-size: 14px; }
.copies-head span { font-size: 12.5px; color: var(--muted); }
.copies-list { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.copy {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 84px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  transition: border-color .15s, transform .15s;
}
.copy:hover { border-color: var(--muted); transform: translateY(-2px); }
.copy.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.copy img { width: 54px; height: 75px; object-fit: cover; border-radius: 5px; }
.copy-meta { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; }
.copy-meta b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.copy-meta small { font-size: 10.5px; color: var(--accent); font-weight: 700; text-align: center; line-height: 1.2; }
.copy.is-res { opacity: .6; }
.copy.is-res small { color: #f6c453; }
.copy-meta .mono { font-size: 10px; color: var(--muted); }
.copies-p { font-size: 12px; color: var(--faint); margin-top: 4px; }
.product-grid > * { min-width: 0; }
@media (max-width: 960px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.hcard-ghost { transition: opacity .4s ease, translate .45s var(--ease); }
.hcard-ghost.is-out { opacity: 0; translate: 0 -2cqi; }
.hero-ctrl { transition: opacity .6s ease .3s; }
.hero-ctrl.is-off { visibility: hidden; opacity: 0; transition: none; }   /* keeps its space: no layout jump */

/* ---------- holo hover: richer colour and contrast instead of a milky wash ---------- */
/* the card photo itself gets deeper colour and contrast as the effect comes in */
.hcard-face img {
  filter: saturate(calc(1 + var(--o, 0) * .38)) contrast(calc(1 + var(--o, 0) * .16)) brightness(calc(1 - var(--o, 0) * .03));
}
/* rainbow shimmer: tints and deepens (soft-light) in a band that follows the pointer — no longer lifts blacks to white */
.hcard-foil {
  mix-blend-mode: soft-light;
  opacity: calc(var(--o, 0) * .9);
  background:
    repeating-linear-gradient(118deg,
      hsl(340 95% 55%) 0%, hsl(40 100% 55%) 5%, hsl(150 90% 45%) 10%,
      hsl(195 100% 50%) 15%, hsl(265 90% 60%) 20%, hsl(340 95% 55%) 25%),
    repeating-linear-gradient(28deg, rgba(255, 255, 255, 0) 0 2px, rgba(255, 255, 255, .22) 2px 3px);
  background-size: 260% 260%, 100% 100%;
  -webkit-mask-image: radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%), #000 0%, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .12) 80%);
          mask-image: radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%), #000 0%, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .12) 80%);
}
.is-slab .hcard-foil { opacity: calc(var(--o, 0) * .5); }
/* glare: a small, crisp highlight where the light hits, and the far side falls into shadow */
.hcard-glare {
  mix-blend-mode: overlay;
  opacity: calc(var(--o, 0) * .85);
  background: radial-gradient(farthest-corner circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%),
    rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .16) 14%, rgba(255, 255, 255, 0) 32%,
    rgba(0, 0, 0, .12) 60%, rgba(0, 0, 0, .32) 100%);
}
/* finer, calmer rainbow so the artwork stays the hero */
.hcard-foil {
  opacity: calc(var(--o, 0) * .62);
  background-size: 170% 170%, 100% 100%;
  -webkit-mask-image: radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%), #000 0%, rgba(0, 0, 0, .45) 28%, rgba(0, 0, 0, .06) 70%);
          mask-image: radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%), #000 0%, rgba(0, 0, 0, .45) 28%, rgba(0, 0, 0, .06) 70%);
}
.is-slab .hcard-foil { opacity: calc(var(--o, 0) * .42); }
/* product page stage: same colour-rich holo as the hero */
.stage img { transition: opacity .35s ease, filter .35s ease; }
.stage.is-tilting img { filter: saturate(1.3) contrast(1.12) drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.stage-foil {
  mix-blend-mode: soft-light;
  background: repeating-linear-gradient(118deg,
    hsl(340 95% 55%) 0%, hsl(40 100% 55%) 5%, hsl(150 90% 45%) 10%,
    hsl(195 100% 50%) 15%, hsl(265 90% 60%) 20%, hsl(340 95% 55%) 25%);
  background-size: 170% 170%; background-position: var(--mx, 50%) var(--my, 50%);
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, .45) 28%, rgba(0, 0, 0, .06) 70%);
          mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0, 0, 0, .45) 28%, rgba(0, 0, 0, .06) 70%);
}
.stage-glare {
  background: radial-gradient(farthest-corner circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .14) 14%, rgba(255, 255, 255, 0) 32%,
    rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .28) 100%);
}
.stage.is-tilting .stage-foil { opacity: .6; }
.stage.is-tilting .stage-glare { opacity: .8; }
/* the stage box is bigger than the card: highlight only, no darkening (it would show as a rectangle) */
.stage-glare {
  background: radial-gradient(farthest-corner circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .12) 14%, rgba(255, 255, 255, 0) 32%);
}

/* ---------- "Izberi izvod" (card with several copies) ---------- */
.tile-choose { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.tile-choose svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.tile-choose:hover svg { transform: translateX(3px); }
.up-choose { display: grid; place-items: center; }
.up-choose svg { width: 15px; height: 15px; }
.copies { scroll-margin-top: 110px; }
.copies.is-pulse { animation: copiesPulse 1.6s var(--ease); }
@keyframes copiesPulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 191, 138, 0); border-color: var(--line); }
  25% { box-shadow: 0 0 0 4px rgba(47, 191, 138, .35); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 14px rgba(47, 191, 138, 0); border-color: var(--line); }
}

/* ---------- free-delivery progress ---------- */
/* 1) the announcement bar fills up as the cart grows */
.topbar { position: relative; }
.topbar::before {
  content: ""; position: absolute; inset: 0 auto 0 0; pointer-events: none;
  width: calc(var(--ship, 0) * 100%);
  background: linear-gradient(90deg, rgba(47, 191, 138, .05), rgba(47, 191, 138, .24));
  box-shadow: inset -1px 0 0 rgba(127, 232, 191, .55);
  transition: width .9s cubic-bezier(.2, .9, .25, 1.04);
}
.topbar.is-done::before { background: linear-gradient(90deg, rgba(47, 191, 138, .12), rgba(246, 196, 83, .26)); box-shadow: none; }
.topbar-track { position: relative; }
.tb-live { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.tb-live b { color: #7fe8bf; }
.tb-live::before, .tb-live::after { content: "★"; display: inline-block; margin: 0 .7em; color: var(--accent); }
.topbar.is-done .tb-live { color: #f6c453; }
.topbar.is-done .tb-live::before, .topbar.is-done .tb-live::after { color: #f6c453; }
.topbar.celebrate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 244, 207, .5) 50%, transparent 80%);
  background-size: 50% 100%; background-repeat: no-repeat;
  animation: tbSweep 1.2s ease-out both;
}
@keyframes tbSweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* 2) a glowing progress line along the bottom of the sticky header */
.shipline {
  position: absolute; left: 0; right: 0; top: 100%; height: 16px; margin-top: -8px;
  padding: 0; background: none; border: 0; cursor: pointer; z-index: 3;
  -webkit-tap-highlight-color: transparent;
}
.sl-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
  background: rgba(238, 242, 238, .07);
}
.sl-fill {
  position: relative; display: block; height: 100%;
  width: calc(var(--ship, 0) * 100%);
  background: linear-gradient(90deg, #1b7f5b, var(--accent) 55%, #7fe8bf);
  box-shadow: 0 0 10px rgba(47, 191, 138, .55);
  border-radius: 0 3px 3px 0;
  transition: width .9s cubic-bezier(.2, .9, .25, 1.04);
  overflow: visible;
}
.sl-fill::after { /* a light that travels along the filled part */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent) no-repeat;
  background-size: 30% 100%;
  animation: slSweep 3.2s ease-in-out infinite;
}
@keyframes slSweep { 0% { background-position: -40% 0; } 60%, 100% { background-position: 140% 0; } }
.sl-tip {
  position: absolute; right: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: #e9fff5;
  box-shadow: 0 0 0 3px rgba(47, 191, 138, .35), 0 0 14px 4px rgba(127, 232, 191, .8);
  animation: tipPulse 1.8s ease-in-out infinite;
}
@keyframes tipPulse { 50% { box-shadow: 0 0 0 5px rgba(47, 191, 138, .12), 0 0 20px 6px rgba(127, 232, 191, .55); } }
.shipline.is-done .sl-fill { background: linear-gradient(90deg, var(--accent), #7fe8bf 45%, #f6c453); box-shadow: 0 0 12px rgba(246, 196, 83, .5); }
.shipline.is-done .sl-tip { display: none; }
.shipline.celebrate .sl-track { animation: slBurst 1.4s ease-out; }
@keyframes slBurst { 0% { box-shadow: 0 0 0 0 rgba(246, 196, 83, 0); } 20% { box-shadow: 0 0 18px 4px rgba(246, 196, 83, .8); } 100% { box-shadow: 0 0 0 0 rgba(246, 196, 83, 0); } }
/* the amount rides along with the tip */
.sl-label {
  position: absolute; top: calc(50% + 10px);
  left: calc(14px + var(--ship, 0) * (100% - 28px));
  transform: translateX(calc(var(--ship, 0) * -100%)) translateY(-4px);
  white-space: nowrap; padding: 6px 12px; border-radius: 999px;
  background: rgba(12, 14, 12, .95); border: 1px solid rgba(47, 191, 138, .45);
  color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .8);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease), left .9s cubic-bezier(.2, .9, .25, 1.04);
}
.sl-label b { color: var(--accent); }
.shipline.is-done .sl-label { border-color: rgba(246, 196, 83, .5); color: #f6c453; }
.shipline:hover .sl-label, .shipline:focus-visible .sl-label, .shipline.show-label .sl-label {
  opacity: 1; transform: translateX(calc(var(--ship, 0) * -100%)) translateY(0);
}
.shipline:focus-visible { outline: none; }
.shipline:focus-visible .sl-track { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) {
  .sl-label { font-size: 12px; padding: 5px 10px; }
  .tb-live::before, .tb-live::after { margin: 0 .45em; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-fill::after, .sl-tip { animation: none; }
}

/* =====================================================================
   Hover v3 — "showcase light": the artwork stays clean; light plays on the surface and the edge
   ===================================================================== */
/* a touch richer colour, no wash */
.hcard-face img { filter: saturate(calc(1 + var(--o, 0) * .22)) contrast(calc(1 + var(--o, 0) * .08)); }
/* the card lifts towards you and its shadow falls away from the light */
.hcard-tilt {
  transform: perspective(900px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg))
             scale(calc(1 + var(--o, 0) * .025));
}
.hcard-face {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .08) inset,
    calc((50 - var(--mx, 50)) * .35px) calc(26px + (50 - var(--my, 50)) * .3px) calc(46px + var(--o, 0) * 24px) -16px rgba(0, 0, 0, .85),
    0 8px 18px -6px rgba(0, 0, 0, .6);
}
/* glossy reflection: a soft band and a highlight that glide with the pointer */
.hcard-glare {
  z-index: 2; mix-blend-mode: soft-light;
  opacity: var(--o, 0);
  background:
    radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%),
      rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .22) 16%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, .16) 100%),
    linear-gradient(115deg,
      transparent calc(var(--mx, 50) * 1% - 26%),
      rgba(255, 255, 255, .28) calc(var(--mx, 50) * 1% - 8%),
      rgba(255, 255, 255, .5) calc(var(--mx, 50) * 1%),
      rgba(255, 255, 255, .28) calc(var(--mx, 50) * 1% + 8%),
      transparent calc(var(--mx, 50) * 1% + 26%));
  -webkit-mask-image: none; mask-image: none;
}
/* iridescent edge light, brightest on the side the light comes from */
.hcard-foil {
  z-index: 3; mix-blend-mode: normal;
  inset: 0; border-radius: inherit; padding: 2px;
  opacity: var(--o, 0);
  background: conic-gradient(from calc(var(--ang, 0deg) - 75deg),
    transparent 0deg, rgba(47, 191, 138, 0) 18deg, rgba(127, 232, 191, .95) 48deg,
    #ffffff 72deg, rgba(246, 196, 83, .95) 96deg, rgba(167, 139, 250, .6) 118deg,
    transparent 150deg, transparent 360deg);
  background-size: auto; background-position: 0 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 5px rgba(127, 232, 191, .75));
}
.is-slab .hcard-foil { opacity: var(--o, 0); padding: 2.5px; }
/* the outer glow picks up the light too */
.hcard-tilt::before { opacity: calc(var(--glow-o, .12) + var(--o, 0) * .15); }

/* product page: same language — lift, calm tilt, shadow away from the light; no overlays on the photo */
.stage-foil, .stage-glare { display: none; }
.stage.is-tilting img {
  filter: saturate(1.2) contrast(1.07)
          drop-shadow(calc((50% - var(--mx, 50%)) * .5) 34px 44px rgba(0, 0, 0, .6));
}
.stage.is-tilting .stage-tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02); }
/* edge light v2: a lit rim just outside the card (sits behind it, so it can glow freely) */
.hcard-foil { display: none; }
.hcard-tilt::after {
  content: ""; position: absolute; inset: -2.5px; border-radius: 5.4% / 3.9%;
  pointer-events: none;
  background: conic-gradient(from calc(var(--ang, 0deg) - 80deg),
    transparent 0deg, rgba(47, 191, 138, 0) 14deg, rgba(127, 232, 191, .95) 46deg,
    #ffffff 74deg, rgba(246, 196, 83, .95) 102deg, rgba(167, 139, 250, .55) 124deg,
    transparent 160deg, transparent 360deg);
  opacity: var(--o, 0);
  filter: drop-shadow(0 0 6px rgba(127, 232, 191, .7));
  transform: translateZ(-1px);
}
.is-slab .hcard-tilt::after { border-radius: 6.5% / 4%; }
/* cart: empty the whole cart */
.drawer-head { gap: 10px; }
.drawer-head h2 { margin-right: auto; }
.drawer-clear {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 600; color: var(--faint);
  transition: color .15s, border-color .15s, background .15s;
}
.drawer-clear svg { width: 15px; height: 15px; }
.drawer-clear:hover { color: var(--error); border-color: rgba(224, 106, 82, .4); background: rgba(224, 106, 82, .08); }
@media (max-width: 400px) { .drawer-clear span { display: none; } .drawer-clear { padding: 7px; } }
.cart-tools { display: flex; justify-content: flex-end; padding: 10px 0 2px; }
.drawer-head h2 { margin-right: 0; }
.drawer-clear span { display: inline !important; }
.drawer-clear { padding: 6px 10px !important; }
/* hero hover: calmer surface gloss (the edge light stays as is) */
.hcard-glare {
  opacity: calc(var(--o, 0) * .55);
  background:
    radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%),
      rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .1) 16%, rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, .14) 100%),
    linear-gradient(115deg,
      transparent calc(var(--mx, 50) * 1% - 22%),
      rgba(255, 255, 255, .14) calc(var(--mx, 50) * 1% - 7%),
      rgba(255, 255, 255, .26) calc(var(--mx, 50) * 1%),
      rgba(255, 255, 255, .14) calc(var(--mx, 50) * 1% + 7%),
      transparent calc(var(--mx, 50) * 1% + 22%));
}
/* hero hover: natural gloss — one broad, soft reflection of a light source + gentle falloff */
.hcard-glare {
  mix-blend-mode: normal;
  opacity: calc(var(--o, 0) * .9);
  background:
    radial-gradient(ellipse 70% 55% at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%),
      rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 120% 120% at calc(var(--mx, 50) * 1%) calc(var(--my, 50) * 1%),
      rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .10) 100%);
}
