/* ═══════════════════════ TOKENS ═══════════════════════ */
:root {
  --bg: #03030a;
  --surf: rgba(13, 12, 30, .82);
  --surf-2: rgba(24, 21, 52, .9);
  --line: #262448;
  --line-hot: #6f4cff;

  --cyan: #46e6ff;
  --cyan-lt: #b8f6ff;
  --violet: #8b5cff;
  --magenta: #e04cff;
  --paper: #ececf2;

  --ink: #ffffff;
  --ink-2: #cbcbe0;
  --ink-3: #8c8ca8;

  --shell: min(1180px, 100% - 2.5rem);
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px;

  --cosmic-grad: linear-gradient(178deg, #f6fdff 4%, #b8f6ff 22%, #46e6ff 40%, #8b5cff 62%, #e04cff 80%, #ffd9ff 98%);
  --display: "Archivo Black", Impact, "Arial Black", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink-2);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, .95rem + .2vw, 1.06rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-lt); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ═══════════════════════ DEEP SPACE ═══════════════════════ */
.space { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; background: var(--bg); }
#cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 90% at 50% 40%, transparent 45%, rgba(0, 0, 0, .55) 88%, #000 100%);
}

/* Nebula clouds: big soft colour fields that breathe and drift */
.neb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; mix-blend-mode: screen; }
.n1 {
  width: 70vmax; height: 46vmax; left: -18vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(139, 92, 255, .42), rgba(90, 40, 200, .18) 55%, transparent);
  animation: drift1 70s ease-in-out infinite alternate;
}
.n2 {
  width: 60vmax; height: 40vmax; right: -20vmax; top: 18vh;
  background: radial-gradient(closest-side, rgba(224, 76, 255, .30), rgba(150, 30, 160, .14) 55%, transparent);
  animation: drift2 85s ease-in-out infinite alternate;
}
.n3 {
  width: 55vmax; height: 34vmax; left: 8vw; bottom: -16vmax;
  background: radial-gradient(closest-side, rgba(70, 230, 255, .22), rgba(20, 110, 170, .12) 55%, transparent);
  animation: drift3 95s ease-in-out infinite alternate;
}
.n4 {
  width: 34vmax; height: 22vmax; left: 38vw; top: 30vh;
  background: radial-gradient(closest-side, rgba(255, 120, 200, .14), transparent);
  animation: drift1 120s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { from { transform: translate(0, 0) rotate(0deg) scale(1); } to { transform: translate(8vw, 6vh) rotate(14deg) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0, 0) rotate(0deg) scale(1.05); } to { transform: translate(-9vw, -5vh) rotate(-12deg) scale(.95); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, -8vh) scale(1.15); } }

/* Spiral galaxies: a tilted disc with a bright core, slowly turning */
.galaxy { position: absolute; transform: rotate(var(--tilt)) scaleY(.36); opacity: .75; }
.g1 { --tilt: -24deg; width: clamp(220px, 30vw, 460px); aspect-ratio: 1; right: 4vw; top: 9vh; }
.g2 { --tilt: 32deg; width: clamp(130px, 15vw, 240px); aspect-ratio: 1; left: 5vw; bottom: 12vh; opacity: .5; }
.galaxy-disc {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 1.5%, rgba(255, 236, 250, .95) 3%, rgba(255, 190, 240, .55) 8%, transparent 22%),
    conic-gradient(from 0deg,
      rgba(139, 92, 255, .0), rgba(139, 92, 255, .55) 8%, rgba(139, 92, 255, 0) 22%,
      rgba(70, 230, 255, .45) 33%, rgba(70, 230, 255, 0) 47%,
      rgba(224, 76, 255, .5) 58%, rgba(224, 76, 255, 0) 72%,
      rgba(180, 160, 255, .45) 83%, rgba(139, 92, 255, 0) 97%);
  -webkit-mask: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  mask: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  filter: blur(3px);
  animation: spin 160s linear infinite;
}
.g2 .galaxy-disc { animation-duration: 120s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════ COSMIC TYPE ═══════════════════════ */
.cosmic-3d {
  font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: .005em;
  background: var(--cosmic-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter:
    drop-shadow(0 1px 0 #3d2a8a)
    drop-shadow(0 2px 0 #2f1f6e)
    drop-shadow(0 3px 0 #211552)
    drop-shadow(0 6px 16px rgba(224, 76, 255, .38))
    drop-shadow(0 14px 40px rgba(0, 0, 0, .9));
}
.cosmic-flat {
  background: var(--cosmic-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ═══════════════════════ NAV ═══════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: var(--shell); margin: .7rem auto 0;
  padding: .6rem 1rem;
  border: 1px solid transparent; border-radius: var(--r-md);
  transition: background .35s, border-color .35s, backdrop-filter .35s, box-shadow .35s;
}
.nav.stuck {
  background: rgba(8, 7, 22, .7);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-color: #26244a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo {
  height: 72px; width: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)) drop-shadow(0 0 16px rgba(70, 230, 255, .25));
  transition: height .35s ease, transform .3s cubic-bezier(.2, .9, .25, 1);
}
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.05); }
.nav.stuck .brand-logo { height: 52px; }
.brand-name { font: 400 1.05rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.brand-tld { color: var(--cyan); text-transform: none; }
.nav nav { display: flex; gap: .3rem; }
.nav nav a {
  color: var(--ink-2); font-weight: 600; padding: .5rem .9rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .5rem; transition: background .2s, color .2s;
}
.nav nav a:hover, .nav nav a[aria-current="page"] { background: rgba(139, 92, 255, .18); color: var(--ink); }
.cart-count {
  background: linear-gradient(180deg, var(--cyan), var(--violet)); color: #050314; font-weight: 800; font-size: .72rem;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  box-shadow: 0 0 12px rgba(70, 230, 255, .6);
}

/* ═══════════════════════ BUTTONS ═══════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border: 1px solid rgba(184, 246, 255, .55); border-radius: 999px;
  padding: .85rem 1.6rem; font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  background: linear-gradient(180deg, #a6f5ff, #46d2ff 40%, #7a55ff 100%);
  color: #06031a; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 10px 30px rgba(70, 230, 255, .25);
  transition: transform .3s cubic-bezier(.2, .9, .25, 1), box-shadow .3s, filter .2s;
}
.btn:hover {
  color: #06031a; transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(0, 0, 0, .28), 0 16px 44px rgba(139, 92, 255, .45), 0 0 0 6px rgba(70, 230, 255, .12);
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: saturate(.4); }
.btn-glow::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; width: 38%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-18deg); animation: shine 4.2s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { left: -60%; } 88%, 100% { left: 130%; } }
.btn.lg { padding: 1.05rem 2.2rem; font-size: 1.12rem; }
.btn.wide { flex: 1; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: 6.5rem 0 4.5rem; isolation: isolate; overflow: hidden;
  --px: 0; --py: 0; --beam-h: min(60svh, 520px);
}
.hero-glow {
  position: absolute; z-index: -1; left: 50%; top: 30%; translate: -50% -50%;
  width: min(1300px, 170vw); aspect-ratio: 1.6;
  background:
    radial-gradient(40% 36% at 50% 50%, rgba(139, 92, 255, .40), transparent 70%),
    radial-gradient(30% 26% at 46% 56%, rgba(224, 76, 255, .30), transparent 70%),
    radial-gradient(26% 22% at 56% 44%, rgba(70, 230, 255, .22), transparent 70%);
  filter: blur(30px);
  animation: bloom 8s ease-in-out infinite;
}
@keyframes bloom { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }

.hero-inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 1.2rem; width: var(--shell); }
.hero-inner > :not(.ufo-stage) { position: relative; z-index: 2; }

/* The UFO: pointer parallax › slow sideways drift › bob and wobble */
.ufo-stage { position: relative; z-index: 1; width: min(620px, 86vw, 72svh); margin-bottom: -.4rem; }
.ufo-par {
  transform: translate(calc(var(--px) * 18px), calc(var(--py) * 12px)) rotate(calc(var(--px) * 3deg));
  transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}
.ufo-drift { animation: drift-x 11s ease-in-out infinite; }
@keyframes drift-x { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }
.ufo-bob { position: relative; animation: hover 6s ease-in-out infinite; }
@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-16px) rotate(1.4deg); }
}
.ufo { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 20px 50px rgba(139, 92, 255, .35)); }

/* Tractor beam pouring out of the saucer's belly */
.beam {
  position: absolute; z-index: 0; left: 50%; top: 72%; translate: -50% 0;
  width: 78%; height: var(--beam-h);
  clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, transparent, rgba(184, 246, 255, .14) 30%, rgba(224, 255, 255, .22) 50%, rgba(184, 246, 255, .14) 70%, transparent),
    linear-gradient(180deg, rgba(170, 245, 255, .55), rgba(110, 200, 255, .22) 35%, rgba(139, 92, 255, .10) 70%, transparent 100%);
  /* fade out softly instead of stopping at the section's edge */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  mix-blend-mode: screen;
  animation: beam-pulse 3.2s ease-in-out infinite;
}
@keyframes beam-pulse { 0%, 100% { opacity: .75; } 45% { opacity: 1; } 55% { opacity: .82; } }
.motes { position: absolute; inset: 0; overflow: hidden; }
.motes i {
  position: absolute; bottom: -4%;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(150, 240, 255, .9) 40%, rgba(139, 92, 255, 0) 72%);
  opacity: 0;
  animation: abduct var(--d) linear var(--dl) infinite;
}
@keyframes abduct {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  12% { opacity: var(--o); }
  80% { opacity: var(--o); }
  100% { transform: translate3d(var(--dx), calc(-1 * var(--beam-h)), 0) scale(.4); opacity: 0; }
}

.title { font-size: clamp(2.6rem, 1.4rem + 6vw, 5.6rem); margin: 0; text-transform: uppercase; }
/* Floating title: white 3D letters, each drifting on its own path,
   with a glow that cycles colours and sweeps across the word */
.float-title { color: #fff; line-height: 1; }
.float-title .letters { display: inline-flex; flex-wrap: wrap; justify-content: center; column-gap: .32em; }
.float-title .word { display: inline-flex; }
.float-title .l {
  display: inline-block;
  font-family: var(--display); font-weight: 400;
  text-shadow:
    0 1px 0 #e4e6f5, 0 2px 0 #cdd0e6, 0 3px 0 #b5bad6,
    0 4px 0 #9ca2c4, 0 5px 0 #848bb0, 0 6px 0 #6d7399,
    0 8px 6px rgba(0, 0, 0, .45), 0 14px 22px rgba(0, 0, 0, .55);
  animation:
    float-letter var(--d) ease-in-out var(--dl) infinite,
    glow-cycle 8s linear var(--g) infinite;
  will-change: transform, filter;
}
@keyframes float-letter {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(var(--x1), var(--y1)) rotate(var(--r1)); }
  66% { transform: translate(var(--x2), var(--y2)) rotate(var(--r2)); }
}
@keyframes glow-cycle {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(70, 230, 255, .95)) drop-shadow(0 0 26px rgba(70, 230, 255, .55)); }
  20% { filter: drop-shadow(0 0 10px rgba(139, 92, 255, .95)) drop-shadow(0 0 26px rgba(139, 92, 255, .55)); }
  40% { filter: drop-shadow(0 0 10px rgba(224, 76, 255, .95)) drop-shadow(0 0 26px rgba(224, 76, 255, .55)); }
  60% { filter: drop-shadow(0 0 10px rgba(255, 110, 170, .95)) drop-shadow(0 0 26px rgba(255, 110, 170, .5)); }
  80% { filter: drop-shadow(0 0 10px rgba(90, 255, 190, .95)) drop-shadow(0 0 26px rgba(90, 255, 190, .5)); }
}

/* sits snug under the title */
.title + .tagline { margin-top: -.4rem; }
.tagline {
  font-family: var(--display); letter-spacing: .03em; line-height: 1.15;
  font-size: clamp(1rem, .7rem + 1.4vw, 1.7rem); color: var(--ink); margin: 0; text-wrap: balance;
}
/* the shouted words glow plain white */
.tagline em {
  font-style: normal; color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, .95), 0 0 14px rgba(255, 255, 255, .7), 0 0 28px rgba(255, 255, 255, .45);
}
.hero-sub { max-width: 54ch; margin: 0 0 .4rem; color: var(--ink-2); font-size: clamp(1rem, .94rem + .3vw, 1.14rem); }

@media (max-height: 820px) {
  .hero { padding-top: 5.5rem; padding-bottom: 3rem; }
  .hero-inner { gap: .9rem; }
  .ufo-stage { width: min(560px, 86vw, 62svh); }
}
@media (max-width: 640px) {
  .hero { padding-top: 5.5rem; min-height: auto; padding-bottom: 3.5rem; --beam-h: 380px; }
  .hero-inner { gap: 1rem; }
  .hero-sub { font-size: .98rem; }
}

/* ═══════════════════════ PAGE FRAME ═══════════════════════ */
.demo-banner {
  width: var(--shell); margin: 6rem auto 0; padding: 10px 16px;
  background: rgba(70, 230, 255, .08); border: 1px solid rgba(70, 230, 255, .35); color: var(--cyan-lt);
  border-radius: 10px; font-size: 14px;
}
main { flex: 1; width: var(--shell); margin: 0 auto; padding: 6.5rem 0 4.5rem; outline: none; }
body.has-hero main { padding-top: 1.5rem; }
body.has-hero .demo-banner { margin-top: 1rem; }

.section-head { text-align: center; margin: 1rem 0 2.2rem; scroll-margin-top: 96px; }
.eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--cyan); margin-bottom: .6rem; }
.section-title { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem); margin: 0; text-transform: uppercase; }

/* Category tiles: the artwork is the label */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 3vw, 40px); margin: 1rem auto 3.5rem; max-width: 1000px; scroll-margin-top: 96px; }
.cat { display: grid; justify-items: center; gap: .5rem; color: var(--ink-3); text-align: center; }
.cat-art { display: block; width: 100%; max-width: 300px; animation: cat-bob 6s ease-in-out infinite; }
.cat:nth-child(2) .cat-art { animation-delay: -2s; }
.cat:nth-child(3) .cat-art { animation-delay: -4s; }
@keyframes cat-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.cat img {
  width: 100%;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .6));
  transition: transform .35s cubic-bezier(.2, .9, .25, 1), filter .35s, opacity .35s;
}
.cat:hover img { transform: scale(1.05) rotate(-1.5deg); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 28px rgba(139, 92, 255, .6)); }
.cat-count { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.cat:hover .cat-count, .cat[aria-current] .cat-count { color: var(--cyan); }
.cats.compact { max-width: 620px; margin: 0 auto 1.6rem; }
.cats.compact .cat:not([aria-current]) img { opacity: .55; }
.cats.compact .cat:not([aria-current]):hover img { opacity: 1; }
.cat[aria-current] img { filter: drop-shadow(0 0 30px rgba(70, 230, 255, .55)); }
.see-all { display: inline-block; margin-top: .9rem; color: var(--ink-3); font-weight: 600; }
@media (max-width: 480px) { .cat-count { font-size: .62rem; letter-spacing: .12em; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.chip {
  border: 1px solid var(--line); background: var(--surf); border-radius: 999px;
  padding: 7px 15px; font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.chip:hover { border-color: var(--line-hot); color: var(--ink); }
.chip[aria-pressed="true"] { background: linear-gradient(180deg, #a6f5ff, #46d2ff 45%, #7a55ff); color: #06031a; border-color: transparent; }

/* ═══════════════════════ PRODUCT GRID ═══════════════════════ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card {
  position: relative; display: block; color: inherit;
  background: var(--surf); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2, .9, .25, 1), border-color .3s, box-shadow .3s;
}
/* cursor-tracking glow */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 255, .22), transparent 60%);
}
.card:hover { color: inherit; transform: translateY(-5px); border-color: var(--line-hot); box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 30px rgba(139, 92, 255, .25); }
.card:hover::after { opacity: 1; }
.card-img { aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; }
.card-title { font-weight: 700; color: var(--ink); margin: 0 0 4px; line-height: 1.3; }
.card-price { color: var(--cyan); font-weight: 600; margin: 0; }

/* ═══════════════════════ PRODUCT PAGE ═══════════════════════ */
.back { display: inline-block; margin: 0 0 20px; color: var(--ink-3); }
.back:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.gallery-main { aspect-ratio: 1; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(139, 92, 255, .15); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 70px; height: 70px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--paper); }
.thumbs button[aria-current="true"] { border-color: var(--cyan); box-shadow: 0 0 14px rgba(70, 230, 255, .5); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(1.5rem, 1rem + 2vw, 2.3rem); line-height: 1.12; margin: 0 0 12px; }
.price { font-size: 1.6rem; font-weight: 800; margin: 0 0 24px; }
.price span { background: var(--cosmic-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.opt { margin: 0 0 20px; }
.opt-label { font-weight: 700; margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.opt-label span { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.val { min-width: 48px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf); font-weight: 600; }
.val:hover:not(:disabled) { border-color: var(--line-hot); }
.val[aria-pressed="true"] { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 16px rgba(70, 230, 255, .3); color: var(--ink); }
.val:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.swatch { width: 38px; height: 38px; min-width: 0; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--cyan), 0 0 18px rgba(70, 230, 255, .6); border-color: transparent; }
.buy { display: flex; gap: 12px; align-items: stretch; margin: 28px 0 8px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surf); }
.qty button { background: none; border: 0; width: 42px; height: 100%; font-size: 18px; color: var(--ink); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; color: var(--ink); }
.added { color: var(--cyan-lt); min-height: 24px; margin: 0; font-size: 14px; }
.desc { color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.desc :is(p, ul) { margin: 0 0 12px; }

/* ═══════════════════════ CART ═══════════════════════ */
.page-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.8rem); line-height: 1.1; margin: 0 0 26px; }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.lines { display: flex; flex-direction: column; gap: 14px; }
.line {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px;
}
.line img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: var(--paper); }
.line-title { font-weight: 700; color: var(--ink); margin: 0; }
.line-variant { color: var(--ink-3); margin: 2px 0 8px; font-size: 14px; }
.line .qty { display: inline-flex; height: 36px; }
.line-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; color: var(--ink); }
.remove { background: none; border: 0; color: var(--ink-3); font-size: 14px; text-decoration: underline; padding: 0; }
.summary {
  background: var(--surf-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  position: sticky; top: 96px; box-shadow: 0 0 50px rgba(139, 92, 255, .14);
}
.summary-row { display: flex; justify-content: space-between; margin: 0 0 10px; color: var(--ink); }
.summary-row.total { font-size: 20px; font-weight: 800; }
.summary small { display: block; color: var(--ink-3); margin: 0 0 18px; }
.summary .btn { width: 100%; }
.error { color: #ff7ab8; font-size: 14px; margin: 12px 0 0; }

.empty, .thanks { text-align: center; padding: 56px 0; }
.empty p, .thanks p { color: var(--ink-2); margin: 0 auto 24px; max-width: 460px; }
.thanks-ufo { width: 200px; margin: 0 auto 18px; animation: hover 6s ease-in-out infinite; filter: drop-shadow(0 10px 30px rgba(139, 92, 255, .45)); }
.loading { color: var(--ink-3); padding: 60px 0; text-align: center; }

/* ═══════════════════════ FOOTER ═══════════════════════ */
.site-footer { border-top: 1px solid var(--line); padding: 30px 20px 36px; text-align: center; color: var(--ink-3); font-size: 14px; background: rgba(3, 3, 10, .6); }
.site-footer p { margin: 0 0 6px; }
.site-footer .fine { opacity: .7; }
.site-footer { padding-bottom: 0; }
.cowboy {
  width: min(250px, 58vw); margin: 22px auto 0;
  filter: drop-shadow(0 0 18px rgba(224, 76, 255, .35));
  animation: laser-glow 2.6s ease-in-out infinite;
}
@keyframes laser-glow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(224, 76, 255, .28)); }
  50% { filter: drop-shadow(0 0 26px rgba(224, 76, 255, .6)); }
}

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 820px) {
  .product, .cart { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .summary { position: static; }
}
@media (max-width: 480px) {
  :root { --shell: calc(100% - 2rem); }
  .nav { padding: .5rem .7rem; }
  .brand-logo { height: 58px; }
  .nav.stuck .brand-logo { height: 46px; }
  .nav nav a { padding: .45rem .7rem; }
  .nav nav a[href="/"] { display: none; } /* the logo already leads to the shop */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 14px; }
  .line { grid-template-columns: 64px minmax(0, 1fr); }
  .line img { width: 64px; height: 64px; }
  .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

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

/* ═══════════════════════ TRUST & HELP ═══════════════════════ */
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .7rem; margin: 0;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.hero-meta i { font-style: normal; color: var(--violet); }

/* Product page reassurance */
.assure { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 0; margin: .4rem 0 0; font-size: .85rem; color: var(--ink-3); }
.assure li::before { content: "✓"; color: var(--cyan); font-weight: 800; margin-right: .4rem; }
.assure a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(70, 230, 255, .4); }

/* Cart summary */
.summary .free { color: var(--cyan); font-weight: 700; }
.summary .summary-row.total { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 18px; }
.btn .lock { width: 18px; height: 18px; fill: currentColor; flex: none; }
.secure-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }
.secure-note p { margin: 0 0 8px; }
.secure-note b { color: var(--ink-2); }

/* Footer trust strip and links */
.trust {
  list-style: none; margin: 0 auto 26px; padding: 0 0 26px; max-width: 980px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  border-bottom: 1px solid var(--line); text-align: left;
}
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { width: 28px; height: 28px; flex: none; fill: var(--cyan); filter: drop-shadow(0 0 8px rgba(70, 230, 255, .45)); }
.trust b { display: block; color: var(--ink); font-size: .95rem; }
.trust span { font-size: .84rem; line-height: 1.45; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin: 0 0 22px; }
.foot-links a { color: var(--ink-2); font-weight: 600; }
.foot-links a:hover { color: var(--cyan-lt); }
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; max-width: 360px; } }

/* Help and policy pages */
.prose { max-width: 760px; margin: 0 auto; color: var(--ink-2); }
.prose .page-title { margin-bottom: 18px; }
.prose .lead { font-size: 1.12rem; color: var(--ink); margin: 0 0 28px; }
.prose section, .prose h2 { scroll-margin-top: 100px; }
.prose section { margin: 0 0 8px; }
.prose h2 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: 1.3rem; letter-spacing: .01em; margin: 34px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: rgba(70, 230, 255, .4); }

/* Contact page */
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; max-width: 1000px; margin: 0 auto; }
.contact-intro p { color: var(--ink-2); }
.contact-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.contact-points li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surf); font-size: .92rem; }
.contact-points b { display: block; color: var(--ink); margin-bottom: 2px; }
.contact-form {
  display: grid; gap: 16px; padding: 28px; border-radius: var(--r-lg);
  background: var(--surf-2); border: 1px solid var(--line); box-shadow: 0 0 60px rgba(139, 92, 255, .14);
}
.contact-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.contact-form small { color: var(--ink-3); font-weight: 500; }
.contact-form :is(input, select, textarea) {
  font: inherit; font-weight: 400; color: var(--ink); background: rgba(3, 3, 10, .7);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(70, 230, 255, .18); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; min-height: 1.2em; font-size: .9rem; color: var(--ink-3); }
.form-note.bad { color: #ff7ab8; }
.sent { text-align: center; padding: 24px 8px; }
.sent img { width: 120px; margin: 0 auto 14px; }
.sent h2 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0 0 8px; }
.sent p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .contact-page { grid-template-columns: 1fr; gap: 28px; } }

/* ═══════════════════════ FLOATING ART CARDS ═══════════════════════ */
/* No box: the design floats in space, tilts like a holographic trading card
   under the pointer, and the product photo rides along as a badge. */
.grid:has(.art-card) { gap: 34px 26px; }
.card.art-card {
  background: none; border: 0; overflow: visible; border-radius: 0;
  box-shadow: none; transform: none;
}
.card.art-card::after { display: none; }
.card.art-card:hover { transform: none; box-shadow: none; }

.card-stage {
  position: relative; aspect-ratio: 1; perspective: 900px;
}
/* only cards on or near the screen bob (app.js marks them .live) */
.card.live .card-stage { animation: card-bob 7s ease-in-out var(--dl, 0s) infinite; }
/* off-screen cards are not drawn at all until scrolled near */
.card.art-card { content-visibility: auto; contain-intrinsic-size: auto 320px; }
@keyframes card-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.holo {
  position: absolute; inset: 6%;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.card.art-card:hover .holo { transition: transform .08s linear; }
.holo .art {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(139, 92, 255, .28));
  transition: filter .35s;
}
.card.art-card:hover .holo .art {
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .65)) drop-shadow(0 0 26px rgba(70, 230, 255, .45));
}

/* Rainbow foil, cut to the exact shape of the design */
.foil {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--art) center / contain no-repeat;
  mask: var(--art) center / contain no-repeat;
  background:
    radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 255, 255, .55), transparent 38%),
    linear-gradient(115deg,
      transparent 18%, rgba(255, 60, 200, .55) 30%, rgba(255, 220, 90, .5) 40%,
      rgba(90, 255, 190, .5) 50%, rgba(70, 200, 255, .55) 60%, rgba(160, 90, 255, .55) 70%, transparent 82%);
  background-size: 100% 100%, 260% 260%;
  background-position: center, var(--fx, 50%) var(--fy, 50%);
  mix-blend-mode: color-dodge;
  opacity: 0; transition: opacity .35s;
}
.card.art-card:hover .foil { opacity: .75; }

/* The product photo as a little badge that grows on hover */
.peek {
  position: absolute; right: 0; bottom: 2%; width: 30%; aspect-ratio: 1; object-fit: cover;
  border-radius: 16px; background: var(--paper);
  border: 2px solid rgba(184, 246, 255, .55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .55), 0 0 18px rgba(70, 230, 255, .35);
  transform-origin: bottom right;
  transition: transform .35s cubic-bezier(.2, .9, .25, 1), box-shadow .35s;
}
.card.art-card:hover .peek { transform: scale(1.65) translate(4%, 4%); box-shadow: 0 18px 40px rgba(0, 0, 0, .65), 0 0 26px rgba(70, 230, 255, .55); }

.card.art-card .card-body { padding: 6px 4px 0; text-align: center; }
.card.art-card .card-title { font-size: .98rem; }
.card.art-card:hover .card-title { color: var(--cyan-lt); }

/* Touch screens have no hover: let the foil shimmer gently by itself */
/* touch screens: no foil (it follows a mouse, and costs a lot of memory on phones) */
@media (hover: none) {
  .card .foil { display: none; }
}
@keyframes foil-drift { 0%, 100% { background-position: center, 10% 20%; } 50% { background-position: center, 90% 80%; } }
@media (max-width: 480px) {
  .grid:has(.art-card) { gap: 22px 12px; }
  .peek { width: 34%; border-radius: 12px; }
}

/* ═══════════════════════ PRODUCT VIEWER ═══════════════════════ */
.pv { display: grid; gap: 14px; }
.pv-stage {
  position: relative; aspect-ratio: 1; perspective: 1400px; cursor: zoom-in; outline: none;
  touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none;
}
.pv-stage:focus-visible { box-shadow: 0 0 0 3px var(--cyan); border-radius: var(--r-lg); }

/* two-sided photo card that flips in 3D */
.pv-flipper {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.3, .9, .3, 1);
}
.pv-flipper.flipped { transform: rotateY(180deg); }
.pv-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(139, 92, 255, .15);
}
.pv-b { transform: rotateY(180deg); }
.pv-face img { width: 100%; height: 100%; object-fit: contain; }
.pv-face img[src=""], .pv-face img:not([src]) { visibility: hidden; }

/* artwork view: the design itself, no box, tilting like the shop cards */
.pv-art { position: absolute; inset: 0; perspective: 900px; }
.pv-art .holo { inset: 4%; }
.pv-art:hover .foil { opacity: .7; }
.pv-art:hover .holo .art { filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .65)) drop-shadow(0 0 26px rgba(70, 230, 255, .45)); }
.pv-stage.is-art .pv-zoom-tag { background: rgba(8, 7, 22, .7); }


.pv-flip {
  position: absolute; z-index: 4; left: 50%; bottom: 14px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .9rem; cursor: pointer;
  color: #06031a; border: 1px solid rgba(184, 246, 255, .7);
  background: linear-gradient(180deg, #a6f5ff, #46d2ff 45%, #7a55ff);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 22px rgba(70, 230, 255, .45);
  transition: transform .2s;
}
.pv-flip:hover { transform: translateY(-2px); }
.pv-flip-ico { display: inline-block; font-size: 1.1rem; transition: transform .7s; }
.pv-flip:hover .pv-flip-ico { transform: rotate(-180deg); }
.pv-zoom-tag {
  position: absolute; z-index: 4; top: 12px; right: 12px; pointer-events: none;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(8, 7, 22, .55); border: 1px solid var(--line);
  padding: .3rem .6rem; border-radius: 999px; backdrop-filter: blur(6px);
}

/* angle tabs and the strip beneath */
.pv-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-tab {
  border: 1px solid var(--line); background: var(--surf); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.pv-tab:hover { border-color: var(--line-hot); color: var(--ink); }
.pv-tab[aria-selected="true"] { background: linear-gradient(180deg, #a6f5ff, #46d2ff 45%, #7a55ff); color: #06031a; border-color: transparent; }
.pv-tab-art { border-color: rgba(224, 76, 255, .5); }
.pv-tab-art[aria-selected="true"] { background: linear-gradient(180deg, #ffb3f2, #e04cff 50%, #8b5cff); }
.pv-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pv-strip[hidden] { display: none; }
.pv-thumb { flex: none; width: 66px; height: 66px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--paper); cursor: pointer; }
.pv-thumb[aria-current="true"] { border-color: var(--cyan); box-shadow: 0 0 14px rgba(70, 230, 255, .5); }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-chip { border: 1px solid var(--line); background: var(--surf); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pv-chip[aria-pressed="true"] { border-color: var(--magenta); color: var(--ink); box-shadow: 0 0 14px rgba(224, 76, 255, .35); }

/* ═══════════════════════ FULL-SCREEN INSPECTOR ═══════════════════════ */
html.insp-open, html.insp-open body { overflow: hidden; }
.insp {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 3, 10, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; grid-template-rows: auto 1fr auto;
  animation: insp-in .25s ease;
}
@keyframes insp-in { from { opacity: 0; } }
.insp-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--ink); }
.insp-label { font-family: var(--display); font-size: 1rem; letter-spacing: .02em; }
.insp-count { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.insp-close {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
  background: var(--surf-2); border: 1px solid var(--line); color: var(--ink);
}
.insp-close:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(70, 230, 255, .4); }
.insp-canvas {
  position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none;
  cursor: zoom-in; margin: 0 clamp(8px, 4vw, 70px);
}
.insp-canvas.zoomed { cursor: grab; }
.insp-canvas.zoomed:active { cursor: grabbing; }
.insp-img {
  max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none;
  border-radius: 14px; background: var(--paper); transform-origin: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.insp-img.is-art { background: none; box-shadow: none; filter: drop-shadow(0 0 30px rgba(139, 92, 255, .35)); }
.insp-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer;
  background: rgba(13, 12, 30, .8); border: 1px solid var(--line); color: var(--ink);
}
.insp-nav:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(70, 230, 255, .45); }
.insp-prev { left: 12px; }
.insp-next { right: 12px; }
.insp-hint { margin: 0; padding: 10px 16px 16px; text-align: center; color: var(--ink-3); font-size: .8rem; }
@media (max-width: 640px) {
  .insp-nav { width: 42px; height: 42px; font-size: 1.6rem; top: auto; bottom: 46px; translate: none; }
}

/* Colour swatches: beside the details on wide screens, right under the photo on
   phones so it's obvious the colour can change */
.gallery-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.opt-count { font-style: normal; font-weight: 600; color: var(--ink-3); text-transform: none; letter-spacing: 0; margin-left: .5rem; }
.opt-color.opt-under { display: none; }
@media (max-width: 820px) {
  .opt-color.opt-side { display: none; }
  .opt-color.opt-under {
    display: block; margin: 0; padding: 14px 14px 12px;
    background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-md);
  }
  .opt-color.opt-under .values { flex-wrap: nowrap; overflow-x: auto; padding: 6px 4px 8px; scroll-snap-type: x proximity; }
  .opt-color.opt-under .swatch { flex: none; width: 40px; height: 40px; scroll-snap-align: start; }
  .product h1 { font-size: 1.3rem; line-height: 1.2; }
  .price { font-size: 1.35rem; margin-bottom: 18px; }
}

/* Category star buttons in the top bar */
.nav-cats { display: contents; }
.nav .nav-star {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: .2rem .45rem; border-radius: 14px; font-size: .6rem; font-weight: 800;
  letter-spacing: .08em; line-height: 1.1; color: var(--ink-2); white-space: nowrap; text-transform: uppercase;
}
.nav .nav-star:hover { background: rgba(70, 230, 255, .1); color: var(--cyan-lt); }
.nav-star img {
  width: 26px; height: 26px;
  filter: drop-shadow(0 0 6px rgba(120, 200, 255, .8));
  animation: star-twinkle 3.2s ease-in-out infinite;
}
.nav-star:nth-child(2) img { animation-delay: -1.1s; }
.nav-star:nth-child(3) img { animation-delay: -2.2s; }
.nav-star:hover img { animation: star-spin .6s ease-out; filter: drop-shadow(0 0 10px rgba(160, 230, 255, 1)); }
@keyframes star-twinkle { 0%, 100% { transform: scale(.9) rotate(0deg); opacity: .85; } 50% { transform: scale(1.08) rotate(12deg); opacity: 1; } }
@keyframes star-spin { from { transform: rotate(0deg) scale(1); } to { transform: rotate(180deg) scale(1.15); } }
@media (max-width: 480px) {
  .nav .nav-star { padding: .15rem .25rem; font-size: .56rem; letter-spacing: .02em; }
  .nav-star img { width: 22px; height: 22px; }
}

/* Desk mat preview: the mat drawn in the colour the shopper picked */
.pv-matview { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1100px; }
.pv-mat {
  position: relative; width: 94%; overflow: hidden; border-radius: 12px;
  transform: rotateX(16deg); transform-origin: 50% 60%;
  transition: background .35s ease;
  box-shadow: 0 30px 50px rgba(0, 0, 0, .6), 0 0 50px rgba(139, 92, 255, .18);
}
/* the stitched black edge real mats have */
.pv-mat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px #111, inset 0 0 0 4px rgba(255, 255, 255, .08); pointer-events: none; }
.pv-mat img { position: absolute; height: auto; max-width: none; transform-origin: center; }
.mat-dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -.05em; margin-right: .3em; border: 1px solid rgba(255, 255, 255, .4); }

/* Phones and tablets: drawing huge blurred, blended layers is what pushes
   Safari on iPhone over its memory limit. The gradients are soft already. */
@media (hover: none), (max-width: 820px) {
  .neb { filter: none; mix-blend-mode: normal; opacity: .8; will-change: auto; }
  .hero-glow { filter: none; }
  .galaxy-disc { filter: none; }
}

/* Home page: newest few of each category */
.featured { margin: 0 0 3.5rem; }
.see-more { text-align: center; margin: 26px 0 0; }

/* ═══════════════════════ SPACE ACE CLUB ═══════════════════════ */
.club { padding: 3rem 1.25rem 3.5rem; }
.club-inner {
  max-width: 880px; margin: 0 auto; text-align: center; padding: 2.4rem 1.5rem 2rem;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 255, .22), transparent 60%), var(--surf-2);
  box-shadow: 0 0 70px rgba(139, 92, 255, .18);
}
.club-title { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.8rem); margin: 0; text-transform: uppercase; }
.club-perks { margin: .7rem 0 1.6rem; color: var(--ink-2); font-weight: 600; }
.club-perks i { font-style: normal; color: var(--violet); margin: 0 .4rem; }
.club-pick { margin: 0 0 .8rem; color: var(--ink-3); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.sides { display: flex; align-items: stretch; justify-content: center; gap: 14px; }
.side {
  flex: 1; max-width: 300px; display: grid; justify-items: center; gap: 4px; padding: 16px 14px 14px; cursor: pointer;
  border-radius: var(--r-md); border: 2px solid var(--line); background: rgba(3, 3, 10, .45); color: var(--ink);
  transition: transform .25s, border-color .25s, box-shadow .25s, opacity .25s;
}
.side img { height: 120px; width: auto; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); transition: transform .3s; }
.side b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; letter-spacing: .02em; }
.side small { color: var(--ink-3); font-size: .8rem; }
.side:hover { transform: translateY(-3px); }
.side:hover img { transform: scale(1.06) rotate(-2deg); }
.side-cowboy:hover, .side-cowboy[aria-pressed="true"] { border-color: #ff9a3d; box-shadow: 0 0 26px rgba(255, 140, 50, .4); }
.side-alien:hover, .side-alien[aria-pressed="true"] { border-color: #6dff9a; box-shadow: 0 0 26px rgba(80, 255, 150, .35); }
.club[data-side] .side[aria-pressed="false"] { opacity: .5; }
.vs { align-self: center; font-family: var(--display); font-size: 1.3rem; color: var(--magenta); text-shadow: 0 0 14px rgba(224, 76, 255, .7); }
.club-form { display: flex; gap: 10px; justify-content: center; max-width: 520px; margin: 1.3rem auto 0; }
.club-form[hidden] { display: none; }
.club-form input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); background: rgba(3, 3, 10, .7);
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px;
}
.club-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(70, 230, 255, .18); }
.club-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.club-note { min-height: 1.3em; margin: .7rem 0 0; color: var(--ink-3); font-size: .9rem; }
.club-note.bad { color: #ff7ab8; }
.club-done { display: none; margin: 1rem 0 0; font-size: 1.05rem; color: var(--ink); }
.club.is-member .club-body, .club.is-member .club-pick { display: none; }
.club.is-member .club-done { display: block; }
.club-fine { margin: 1.1rem 0 0; color: var(--ink-3); font-size: .78rem; }
.club-fine a { color: var(--ink-2); text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 560px) {
  .sides { gap: 8px; }
  .side { padding: 12px 8px; }
  .side img { height: 84px; }
  .side small { display: none; }
  .vs { font-size: 1rem; }
  .club-form { flex-direction: column; }
}

/* The Galactic Standoff: the gunslinger (left, aiming right) and the
   mastermind (right, aiming left) face each other across the VS */
.club-lead { margin: .6rem auto 0; max-width: 46ch; color: var(--ink-2); }
.club-perks { margin-top: .5rem; }
.side img { height: 180px; }
.side-cowboy:hover img { transform: scale(1.05) rotate(-2deg) translateX(4px); }
.side-alien:hover img { transform: scale(1.05) rotate(2deg) translateX(-4px); }
@media (max-width: 560px) { .side img { height: 120px; } }
.club-perks span { white-space: nowrap; }

/* Folded standoff: a slim bar that slides open into the full banner */
.club { padding: 2rem 1.25rem 2.5rem; }
.club-inner { padding: 0; overflow: hidden; }
.club-toggle {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 20px; cursor: pointer;
  background: none; border: 0; color: var(--ink); text-align: left;
}
.club-toggle:hover .club-chevron, .club-toggle:focus-visible .club-chevron { color: var(--cyan); }
.club-faces { display: flex; align-items: flex-end; flex: none; }
.club-faces img { height: 46px; width: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.club-faces img + img { margin-left: -4px; }
.club-toggle-text { flex: 1; display: grid; gap: 1px; }
.club-toggle-text b { font-family: var(--display); font-weight: 400; font-size: clamp(1rem, .9rem + .6vw, 1.3rem); letter-spacing: .02em; text-transform: uppercase; }
.club-toggle-text small { color: var(--ink-3); font-size: .85rem; }
.club-chevron { flex: none; font-size: 1.4rem; color: var(--ink-2); transition: transform .35s, color .2s; }
.club.open .club-chevron { transform: rotate(180deg); }
/* height animation: rows go from 0fr to 1fr */
.club-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .3, 1); }
.club.open .club-panel { grid-template-rows: 1fr; }
.club-panel-inner { min-height: 0; overflow: hidden; padding: 0 1.5rem; visibility: hidden; transition: visibility 0s .45s; }
.club.open .club-panel-inner { padding-bottom: 2rem; visibility: visible; transition: visibility 0s; }
@media (max-width: 560px) {
  .club-toggle { padding: 12px 14px; gap: 10px; }
  .club-faces img { height: 38px; }
  .club-panel-inner { padding: 0 1rem; }
}

/* welcome reward shown after signing up */
.club-code { display: grid; justify-items: center; gap: 6px; margin: 1rem auto 0; padding: 14px 16px; max-width: 420px;
  border: 2px dashed rgba(139, 92, 255, .7); border-radius: 14px; background: rgba(139, 92, 255, .08); font-size: .95rem; }
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row code { font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; color: var(--cyan-lt); background: rgba(3, 3, 10, .6); padding: 6px 12px; border-radius: 8px; user-select: all; }
.copy-code { border: 1px solid var(--line); background: var(--surf); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.copy-code:hover { border-color: var(--cyan); }
.club-code small { color: var(--ink-3); }

/* ═══════════════════════ SEARCH, SORT, FILTER ═══════════════════════ */
.nav .search-link { padding: .45rem .6rem; }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: -0.6rem 0 1.6rem;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surf);
}
.toolbar .sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.toolbar select {
  font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink);
  background: rgba(3, 3, 10, .7); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.toolbar .colors { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fam { width: 30px; height: 30px; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; }
.fam i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.fam[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 12px rgba(70, 230, 255, .45); }
.fam-all { width: auto; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.fam-all[aria-pressed="true"] { color: var(--ink); }
.result-count { margin-left: auto; color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.search-page { max-width: 1100px; margin: 0 auto; }
.search-form { display: flex; gap: 10px; margin: 0 auto 1.6rem; max-width: 640px; }
.search-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; color: var(--ink); background: rgba(3, 3, 10, .7);
  border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px;
}
.search-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(70, 230, 255, .18); }
.search-hint { text-align: center; color: var(--ink-3); }
.search-hint a { color: var(--cyan); }
@media (max-width: 560px) {
  .toolbar { gap: 10px; padding: 10px; }
  .result-count { margin-left: 0; width: 100%; }
  .fam { width: 28px; height: 28px; }
}

/* ═══════════════════════ SIZE GUIDE ═══════════════════════ */
.size-guide { margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surf); }
.size-guide summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--ink); list-style: none; display: flex; align-items: baseline; gap: 10px; }
.size-guide summary::-webkit-details-marker { display: none; }
.size-guide summary::before { content: '📏'; }
.size-guide summary::after { content: '▾'; margin-left: auto; color: var(--ink-3); transition: transform .25s; }
.size-guide[open] summary::after { transform: rotate(180deg); }
.size-guide summary small { color: var(--ink-3); font-weight: 500; font-size: .8rem; }
.guide-units { display: flex; gap: 6px; padding: 0 16px 10px; }
.guide-units button { border: 1px solid var(--line); background: none; color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.guide-units button[aria-pressed="true"] { border-color: var(--cyan); color: var(--ink); }
.guide-scroll { overflow-x: auto; padding: 0 16px; }
.size-guide table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.size-guide th, .size-guide td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-guide tbody th { text-align: left; color: var(--ink-2); font-weight: 600; }
.size-guide thead th { color: var(--ink); }
.size-guide .is-chosen { background: rgba(70, 230, 255, .12); color: var(--cyan-lt); font-weight: 700; }
.guide-tip { margin: 10px 16px 14px; color: var(--ink-3); font-size: .8rem; }

/* ═══════════════════════ ALSO AVAILABLE AS ═══════════════════════ */
.also-as { margin: 3rem 0 0; }
.also-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--ink); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); text-align: center; margin: 0 0 1.4rem; }
.also-grid { max-width: 820px; margin: 0 auto; }
.fam-all { white-space: nowrap; }
