/* ============================================
   APLTECH — Gaming PC Components
   Design tokens + shared components
   ============================================ */

:root {
  /* Palette */
  --bg:           #07050d;
  --bg-elev:      #0e0a1a;
  --surface:      #140d24;
  --surface-2:    #1c1331;
  --line:         #2a1f44;
  --line-soft:    #1f1735;

  --primary:      #6d3fc7;
  --primary-2:    #5832a8;
  --primary-soft: rgba(109, 63, 199, 0.08);
  --accent:       #c8bde0;
  --neon:         #c8bde0;

  --text:         #f3eeff;
  --text-2:       #c8bde0;
  --muted:        #8a7da8;
  --dim:          #5a4f74;

  --success:      #4ade80;
  --warn:         #fbbf24;
  --danger:       #f87171;

  /* Type */
  --f-sans: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radius / shadow */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --glow: 0 0 0 1px rgba(121,72,212,.25), 0 6px 24px -10px rgba(121,72,212,.14);
  --glow-soft: 0 4px 18px -10px rgba(121,72,212,.10);

  /* Layout */
  --nav-h: 72px;
  --container: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* transparent so the fixed circuit-board background (z-index:-1) shows through;
     html keeps var(--bg) as the dark base beneath it. */
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Texture overlay disabled — less visual noise */
body::before { content: none; }

/* ---- Living-circuit background, fixed behind the entire site ---- */
.site-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;   /* dim the circuit so it reads as a calm backdrop */
}
.site-bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(121,72,212,.10), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(121,72,212,.06), transparent 72%);
  opacity: .2;   /* fallback dim level (animation drives it when motion is allowed) */
  animation: siteBgBreathe 9s ease-in-out infinite;
}
@keyframes siteBgBreathe {
  0%, 100% { opacity: .14; }
  50%      { opacity: .24; }
}
@media (prefers-reduced-motion: reduce) {
  .site-bg-glow { animation: none; }
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

h1,h2,h3,h4,h5 {
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
  font-variation-settings: "opsz" 48;
}

h1 {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
}
h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-variation-settings: "opsz" 64;
}
h3 { font-size: 22px; line-height: 1.2; font-variation-settings: "opsz" 32; }
h4 { font-size: 17px; line-height: 1.3; font-variation-settings: "opsz" 24; letter-spacing: -0.01em; }

p { margin: 0; color: var(--text-2); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 5, 13, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  position: relative;
  display: grid;
  place-items: center;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--bg);
  clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%);
}
.brand-mark svg { position: relative; z-index: 1; }
.brand-name { color: var(--text); }
.brand-name span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); background: var(--primary-soft); }
.nav-links a.active {
  color: var(--text);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: background .15s, color .15s;
  position: relative;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--text); }
.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
  display: grid; place-items: center;
  font-family: var(--f-mono);
}

/* ---- "Fly to cart" flying chip + cart reactions ---- */
.fly-to-cart {
  position: fixed;
  z-index: 1200;
  pointer-events: none;
  border-radius: 14px;
  background-color: #14101f;
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 34px rgba(124, 77, 255, .45),
              inset 0 0 0 1.5px rgba(157, 124, 255, .65);
  will-change: transform, opacity;
}
@keyframes cart-bump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.42); }
  55%  { transform: scale(.86); }
  78%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.icon-btn.cart-bump { animation: cart-bump .6s cubic-bezier(.34, 1.56, .5, 1); color: var(--primary); }
.icon-btn.cart-bump::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--primary);
  opacity: 0;
  animation: cart-ring .6s ease-out;
}
@keyframes cart-ring {
  0%   { opacity: .8; transform: scale(.6); }
  100% { opacity: 0;  transform: scale(1.5); }
}
@keyframes cart-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.cart-count.cart-pop { animation: cart-pop .45s cubic-bezier(.34, 1.56, .5, 1); }
@media (prefers-reduced-motion: reduce) {
  .fly-to-cart { display: none; }
  .icon-btn.cart-bump, .cart-count.cart-pop { animation: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .15s, color .15s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover { background: var(--primary-2); transform: translateY(-1px); }

/* Purple buttons: a light sheen sweeps across on hover (same shine as the
   product-card image) — no always-on animation. */
.btn-primary::before {
  content: "";
  position: absolute;
  top: -60%; left: -75%;
  width: 50%; height: 220%;
  background: linear-gradient(100deg, transparent,
    rgba(255,255,255,.22) 45%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.22) 55%, transparent);
  transform: rotate(8deg);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}
.btn-primary:hover::before { animation: btn-sheen .8s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes btn-sheen {
  0%   { opacity: 0; left: -75%; }
  12%  { opacity: 1; }
  100% { opacity: 0; left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary::before { display: none; }
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.btn-sm { padding: 9px 14px; font-size: 11px; }
.btn-lg { padding: 16px 28px; font-size: 14px; }

/* Tag / chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--neon);
  background: var(--primary-soft);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(168,85,247,.25);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }

/* Eyebrow */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--primary);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  padding: 24px;
  position: relative;
  transition: box-shadow .25s, transform .2s;
}
.card:hover { box-shadow: inset 0 0 0 1px var(--line), var(--glow-soft); }

/* Bevel-corner card — simplified to plain rounded for cleaner look */
.card-bevel { /* intentionally no clip-path — keeps cards simple */ }

/* Image placeholder */
.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(121,72,212,.04) 0 6px, transparent 6px 14px),
    var(--bg-elev);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

/* Section spacing */
section { padding: 88px 0; position: relative; z-index: 1; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head p { color: var(--muted); max-width: 480px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line-soft);
  margin-top: 64px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--text-2); transition: color .15s; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  margin-right: 6px;
  vertical-align: middle;
}

/* ============================================
   UTILITY
   ============================================ */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.t-up { text-transform: uppercase; letter-spacing: 0.12em; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* Selection */
::selection { background: var(--primary); color: #fff; }

/* ============================================
   MARQUEE TOP BAR
   ============================================ */
.marquee {
  background: var(--primary);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  padding: 9px 0;
  animation: marquee-scroll 40s linear infinite;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.marquee-item { display: inline-flex; align-items: center; gap: 40px; }
.marquee-dot { opacity: 0.55; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   BRAND STRIP (logo carousel)
   ============================================ */
.brand-strip {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 22px 0;
}
.brand-strip-track {
  display: inline-flex;
  gap: 64px;
  animation: marquee-scroll 50s linear infinite;
  white-space: nowrap;
}
.brand-strip-item {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color .2s;
  text-transform: uppercase;
}
.brand-strip-item:hover { color: var(--text); }
/* the brand's own name — bigger + outlined (stroke), with a filled purple X */
.brand-strip-nexus {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--primary);
}
.brand-strip-nexus span {
  color: var(--primary);
  -webkit-text-stroke: 0;
}
.brand-strip-nexus:hover {
  color: transparent;
  -webkit-text-stroke-color: var(--neon);
}
.brand-strip-dot { color: var(--primary); opacity: 0.55; font-size: 16px; }

/* ============================================
   SECTION NUMBER HEADER
   ============================================ */
.section-num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 12px;
}
.section-num-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px; height: 22px;
  padding: 0 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(121,72,212,.25);
}

/* ============================================
   DISCOUNT BADGE
   ============================================ */
.discount-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 9px;
  background: var(--primary);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  z-index: 1;
}
.stock-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 9px;
  background: rgba(74,222,128,.16);
  color: var(--success);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 1;
}
.stock-badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}
.price-old {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 8px;
}

/* ============================================
   NAV ADDITIONS
   ============================================ */
.nav-text-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 10px;
  transition: color .15s;
}
.nav-text-link:hover { color: var(--text); }

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: hidden;
  position: relative;
  transition: box-shadow .2s, transform .15s;
}
.product-card:hover {
  box-shadow: inset 0 0 0 1px var(--line);
  transform: translateY(-2px);
}
.product-img {
  height: 200px;
  background:
    repeating-linear-gradient(135deg, rgba(121,72,212,.04) 0 6px, transparent 6px 14px),
    var(--bg-elev);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.product-brand {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================
   HERO SLIDER (centered)
   ============================================ */
.hero {
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
  min-height: 750px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 1000px; height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(121,72,212,.10), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  animation: heroBreathe 7.5s ease-in-out infinite;
}
@keyframes heroBreathe {
  0%, 100% { opacity: .82; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.09); }
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  animation: heroBgIn .9s ease-out both;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.11;
  filter: blur(2px) saturate(0.85);
  transform: scale(1.06);
  animation: heroBgDrift 26s ease-in-out infinite alternate;
}
@keyframes heroBgDrift {
  from { transform: scale(1.06) translate(-1.2%, -1%); }
  to   { transform: scale(1.13) translate(1.2%, 1%); }
}
.hero-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(7,5,13,.4) 30%, rgba(7,5,13,.92) 80%),
    linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
}
@keyframes heroBgIn {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}
.hero-stage {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 24px 0;
}
.hero-copy {
  max-width: 820px;
  margin: 0 auto;
}
.hero-copy .eyebrow {
  margin-bottom: 6px;
}
.hero-copy .eyebrow::before { display: none; }
.hero-title {
  margin-top: 22px;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title .hl { color: var(--primary); }
.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-spotlight {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 100%;
}
.hero-spotlight-dot {
  color: var(--primary);
  opacity: 0.5;
  font-size: 8px;
}
.hero-spotlight-price {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats > div { text-align: center; }

.hero-controls {
  position: relative;
  z-index: 3;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-dot {
  width: 32px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, width .2s;
  border: 0;
  padding: 0;
}
.hero-dot.is-active {
  background: var(--primary);
  width: 56px;
}
.hero-counter {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-left: 8px;
}
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.hero-arrow:hover {
  background: var(--surface-2);
  color: var(--text);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   HERO FX — living circuit board + cinematic reveal
   ============================================ */
/* layer order: bg-image · circuit · glow · veil · scanlines (all z0/z1) → stage z3 */
.hero-circuit {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .92;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 62% at 50% 47%,
    rgba(7,5,13,.66), rgba(7,5,13,.18) 52%, transparent 76%);
}
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(0deg,
    rgba(200,189,224,.5) 0 1px, transparent 1px 3px);
}

/* corner HUD brackets */
.hero-hud {
  position: absolute;
  width: 52px; height: 52px;
  z-index: 2;
  pointer-events: none;
  opacity: .45;
  border: 1px solid var(--line);
}
.hero-hud::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 9px 1px rgba(121,72,212,.85);
  animation: hudDot 2.6s ease-in-out infinite;
}
.hero-hud-tl { top: 24px; left: 24px;  border-right: 0; border-bottom: 0; }
.hero-hud-tr { top: 24px; right: 24px; border-left: 0;  border-bottom: 0; }
.hero-hud-bl { bottom: 24px; left: 24px;  border-right: 0; border-top: 0; }
.hero-hud-br { bottom: 24px; right: 24px; border-left: 0;  border-top: 0; }
.hero-hud-tl::after { top: 7px; left: 7px; }
.hero-hud-tr::after { top: 7px; right: 7px; }
.hero-hud-bl::after { bottom: 7px; left: 7px; }
.hero-hud-br::after { bottom: 7px; right: 7px; }
@keyframes hudDot {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* word-by-word title reveal (blur-rise stagger) */
.hero-title .hw { display: inline-block; }
.hero-title .hw-i {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(11px);
  animation: heroWord .74s cubic-bezier(.2,.85,.22,1) both;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity, filter;
}
@keyframes heroWord {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* highlighted word — animated gradient sweep + steady neon glow */
.hero-title .hl .hw-i {
  background: linear-gradient(100deg, #c9b6ff 0%, #7a4ddb 38%, #c8bde0 60%, #c9b6ff 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: heroWordHl .8s cubic-bezier(.2,.85,.22,1) both, hlShimmer 5s linear infinite;
  animation-delay: var(--d, 0s), .9s;
}
@keyframes heroWordHl {
  from { opacity: 0; transform: translateY(28px); filter: blur(11px) drop-shadow(0 0 0 rgba(121,72,212,0)); }
  to   { opacity: 1; transform: none;             filter: blur(0)     drop-shadow(0 0 16px rgba(121,72,212,.5)); }
}
@keyframes hlShimmer { to { background-position: 230% 0; } }

/* eyebrow / sub / ctas cascade in after the title */
.hero-copy .eyebrow { animation: heroRise .6s cubic-bezier(.2,.8,.2,1) both;  animation-delay: .04s; }
.hero-sub          { animation: heroRise .72s cubic-bezier(.2,.8,.2,1) both; animation-delay: .5s; }
.hero-ctas         { animation: heroRise .72s cubic-bezier(.2,.8,.2,1) both; animation-delay: .66s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Hero responsive */
@media (max-width: 720px) {
  .hero { min-height: 650px; padding: 32px 0; }
  .hero-title { font-size: clamp(34px, 9vw, 50px); }
  .hero-sub { font-size: 13px; line-height: 1.5; margin-bottom: 24px; }
  /* keep both CTAs on one row, compact */
  .hero-ctas { flex-wrap: nowrap; gap: 8px; }
  .hero-ctas .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 11px 10px;
    font-size: 11px;
    letter-spacing: 0.03em;
    gap: 7px;
  }
  .hero-ctas .btn svg { width: 14px; height: 14px; flex-shrink: 0; }
  .hero-spotlight { font-size: 10px; gap: 10px; padding: 8px 14px; }
  .hero-stats { gap: 28px; }
  .hero-hud { display: none; }
  /* on phones you swipe the hero — the prev/next arrows are redundant */
  .hero-arrows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow,
  .hero-bg-image img,
  .hero-hud::after { animation: none !important; }
  .hero-title .hw-i,
  .hero-title .hl .hw-i,
  .hero-copy .eyebrow,
  .hero-sub,
  .hero-ctas {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-title .hl .hw-i {
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
  }
}

/* ============================================
   STORE PAGE
   ============================================ */
.store-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.store-sidebar {
  display: grid;
  gap: 16px;
  align-self: start;
}
.sidebar-cat {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  text-align: left;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sidebar-cat svg { color: var(--muted); }
.sidebar-cat:hover { background: rgba(255,255,255,.02); }
.sidebar-cat.is-active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.sidebar-cat.is-active svg { color: var(--text); }
.brand-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: all .15s;
  font-weight: 600;
}
.brand-chip:hover { color: var(--text); }
.brand-chip.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

/* Dual-handle price range slider */
.price-slider { position: relative; height: 26px; }
.price-track {
  position: absolute; top: 11px; left: 2px; right: 2px; height: 4px;
  border-radius: 2px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.price-fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--primary); }
.price-range {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 26px; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; pointer-events: none;
}
.price-range::-webkit-slider-runnable-track { height: 26px; background: transparent; }
.price-range::-moz-range-track { height: 26px; background: transparent; }
.price-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 16px; height: 16px; margin-top: 5px; border-radius: 50%;
  background: var(--text); border: 2px solid var(--primary); cursor: pointer;
  box-shadow: 0 0 10px -2px rgba(121,72,212,.9);
}
.price-range::-moz-range-thumb {
  pointer-events: auto;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text); border: 2px solid var(--primary); cursor: pointer;
  box-shadow: 0 0 10px -2px rgba(121,72,212,.9);
}
.store-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  min-width: 280px;
}
.store-search svg { color: var(--muted); }
.store-search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 14px; font-family: var(--f-body);
}
.store-search button { color: var(--muted); cursor: pointer; background: transparent; }
.store-sort {
  padding: 8px 30px 8px 12px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  border: 0;
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-family: var(--f-body);
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.page-num, .page-nav {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-family: var(--f-mono);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.page-num:hover,
.page-nav:hover:not([disabled]) { color: var(--text); background: var(--surface-2); }
.page-num.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.page-nav[disabled] { opacity: .4; cursor: default; }

/* Mobile filters: button + slide-in drawer (hidden on desktop) */
.store-filter-btn { display: none; }
.filters-head { display: none; }
.filters-apply { display: none; }
.store-overlay { display: none; }

@media (max-width: 900px) {
  /* drop the section/container stacking contexts so the fixed drawer + overlay
     layer above the sticky nav instead of being trapped behind it */
  .store-section { position: static; z-index: auto; }
  .store-grid { grid-template-columns: 1fr; position: static; }
  .store-filter-btn { display: inline-flex; }

  .store-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(330px, 86vw);
    height: 100%;
    z-index: 1010;
    margin: 0;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-elev);
    border-right: 1px solid var(--line);
    box-shadow: 2px 0 40px rgba(0, 0, 0, .55);
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.2,.85,.22,1);
    grid-auto-rows: max-content;
  }
  body.filters-open .store-sidebar { transform: translateX(0); }
  body.filters-open { overflow: hidden; }

  .filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px 4px;
  }
  .filters-apply {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 2px;
  }

  .store-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  body.filters-open .store-overlay { opacity: 1; pointer-events: auto; }
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-thumb {
  height: 72px;
  width: 100%;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  cursor: pointer;
  position: relative;
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb:hover { box-shadow: inset 0 0 0 1px var(--line); transform: translateY(-1px); }
/* Outset ring so the purple border shows on top of the image (an inset shadow
   would be hidden behind the object-fit:cover image). */
.product-thumb.is-active {
  box-shadow: 0 0 0 2px var(--primary);
  transform: translateY(-1px);
}

/* Product-detail image slider */
.product-gallery {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(121,72,212,.03) 0 6px, transparent 6px 14px),
    var(--bg-elev);
}
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.2,.85,.22,1);
}
.gallery-slide { flex: 0 0 100%; height: 100%; }
.gallery-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .22s ease-out, transform-origin .22s ease-out;
  will-change: transform;
}
/* hover-to-zoom */
.product-gallery { cursor: zoom-in; }
.product-gallery.is-zoomed { cursor: crosshair; }
.gallery-zoom-hint {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(10, 6, 20, .68);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  pointer-events: none;
  transition: opacity .25s ease;
}
.product-gallery.is-zoomed .gallery-zoom-hint { opacity: 0; }
@media (hover: none) {
  .product-gallery { cursor: default; }
  .gallery-zoom-hint { display: none; }
}
.gallery-thumbs {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line-soft);
}

/* Gallery prev/next arrows over the main image */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(7, 5, 13, .55);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 3;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, background .15s ease;
}
.product-gallery:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: var(--primary); color: #fff; }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }
@media (hover: none) { .gallery-arrow { opacity: 1; } }
.product-price-block {
  display: flex; align-items: baseline; gap: 14px;
  padding: 22px 24px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 24px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  flex-wrap: wrap;
}
.product-price {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 38px;
  color: var(--text);
  letter-spacing: -0.025em;
}
.product-save {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
}
.qty-box {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.qty-box .icon-btn { width: 42px; height: 100%; border-radius: 0; }
.qty-box span {
  min-width: 36px; text-align: center;
  font-family: var(--f-mono); font-size: 14px;
}
.trust-badge {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
}
.trust-badge-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.product-tab {
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  background: transparent;
  text-transform: uppercase;
}
.product-tab.is-active {
  color: var(--text);
  /* the indicator is now a single sliding underline (.product-tab-underline) */
}
.product-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
/* one underline that slides left/right under the active tab */
.product-tab-underline {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 10px -1px rgba(109,63,199,.8);
  transform: translateX(0);
  opacity: 0;
  transition: transform .38s cubic-bezier(.55,.06,.2,1),
              width .38s cubic-bezier(.55,.06,.2,1),
              opacity .2s ease;
  pointer-events: none;
}
.product-tab-panel { padding: 28px; }

/* tab content swaps in with a soft fade-rise on every change */
.tab-anim { animation: tabIn .34s cubic-bezier(.22,.7,.2,1) both; }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(9px); filter: blur(3px); }
  to   { opacity: 1; transform: none;            filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .product-tab-underline { transition: none; }
  .tab-anim { animation: none; }
}

/* Product spec table */
.spec-table { font-size: 14px; }
.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec-row.is-last { border-bottom: 0; }
.spec-key {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.spec-val { color: var(--text); min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .product-hero { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* All four tabs share the row equally so none gets cut off */
  .product-tabs { gap: 2px; overflow: visible; }
  .product-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 3px;
    font-size: 10px;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: nowrap;
  }
  .product-tab-panel { padding: 20px 18px; }
  /* Stack label above value so the 180px column stops squeezing the text */
  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
}

/* ============================================
   CART
   ============================================ */
.cart-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}
.cart-row {
  padding: 18px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 18px;
  align-items: center;
}
.cart-row-thumb {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.cart-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-remove {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  cursor: pointer;
  background: transparent;
}
.cart-remove:hover { color: var(--text); }
.cart-foot-link {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  background: transparent;
  cursor: pointer;
}
.cart-foot-link:hover { color: var(--text); }

@media (max-width: 800px) {
  .cart-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.checkout-input, .checkout-select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  border: 0;
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-family: var(--f-body);
  font-size: 14px;
  transition: box-shadow .15s;
}
.checkout-input.is-mono { font-family: var(--f-mono); letter-spacing: 0.04em; }
.checkout-input:focus, .checkout-select:focus { box-shadow: inset 0 0 0 1.5px var(--primary); }
.checkout-select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.pay-method {
  display: grid;
  grid-template-columns: 44px 1fr auto 22px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: box-shadow .15s;
}
.pay-method.is-active { box-shadow: inset 0 0 0 1.5px var(--primary); }
.pay-method-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.pay-method-radio {
  width: 20px; height: 20px; border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: all .15s;
}
.pay-method.is-active .pay-method-radio {
  background: var(--primary);
  box-shadow: inset 0 0 0 5px var(--bg);
}

@media (max-width: 800px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PC BUILDER
   ============================================ */
.builder-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
.purpose-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--bg);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.purpose-toggle button {
  flex: 1;
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-weight: 600;
}
.purpose-toggle button.is-active {
  background: var(--primary);
  color: #fff;
}

/* ---- AI assistant: input row ---- */
.ai-build-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 12px;
  align-items: end;
}
.ai-build-go { white-space: nowrap; }
@media (max-width: 620px) {
  /* Budget + purpose share a row; the button drops below at full width. */
  .ai-build-form { grid-template-columns: 1fr 1.4fr; }
  .ai-build-go { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .ai-build-form .checkout-input { font-size: 13px; padding: 12px 12px; }
  .purpose-toggle button { padding: 9px 8px; font-size: 10px; letter-spacing: 0.08em; }
}
@media (max-width: 420px) {
  .ai-build-form { grid-template-columns: 1fr; }
}

/* ---- AI assistant: loading state ---- */
.ai-loading { display: flex; gap: 18px; align-items: flex-start; }
.ai-loading-orb {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  animation: aiOrbPulse 1.1s ease-in-out infinite;
}
.ai-loading-orb::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 14px;
  border: 1.5px solid var(--primary);
  opacity: .5;
  animation: aiOrbRing 1.1s ease-out infinite;
}
.ai-loading-orb svg { animation: aiOrbSpin 2.4s linear infinite; }
.ai-steps { margin-top: 14px; display: grid; gap: 9px; }
.ai-step {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--text-2);
  opacity: 0;
  transform: translateX(-6px);
  animation: aiStepIn .4s ease forwards;
}
.ai-step-dot {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ai-progress {
  margin-top: 16px;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.ai-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #a07be6);
  animation: aiProgress 1.6s cubic-bezier(.3,.7,.3,1) forwards;
}
@keyframes aiOrbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes aiOrbRing { 0% { transform: scale(.85); opacity: .6; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes aiOrbSpin { to { transform: rotate(360deg); } }
@keyframes aiStepIn { to { opacity: 1; transform: none; } }
@keyframes aiProgress { 0% { width: 4%; } 35% { width: 46%; } 75% { width: 78%; } 100% { width: 100%; } }

/* ---- AI assistant: result banner ---- */
.ai-result {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text);
  background: rgba(109,63,199,.12);
  box-shadow: inset 0 0 0 1px rgba(109,63,199,.4);
}
.ai-result svg { color: var(--primary); flex-shrink: 0; }
.ai-result strong { font-weight: 700; }
.ai-result-left {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-2);
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.ai-result.is-over {
  background: rgba(212,72,72,.1);
  box-shadow: inset 0 0 0 1px rgba(212,72,72,.4);
}
.ai-result.is-over svg { color: #e06b6b; }

@media (prefers-reduced-motion: reduce) {
  .ai-loading-orb, .ai-loading-orb::after, .ai-loading-orb svg,
  .ai-step, .ai-progress-bar { animation-duration: .01ms; animation-iteration-count: 1; }
  .ai-step { opacity: 1; transform: none; }
  .ai-progress-bar { width: 100%; }
}

.slot-row {
  display: grid;
  grid-template-columns: 44px 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.slot-row:last-child { border-bottom: 0; }
.slot-thumb {
  width: 70px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot-change {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  background: var(--surface-2);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  cursor: pointer;
  font-weight: 600;
}
.slot-change:hover { color: var(--text); }

/* Build slots — compact rows on phones so the text column has room */
@media (max-width: 600px) {
  .slot-row {
    grid-template-columns: 16px 42px 1fr auto;
    gap: 9px;
    padding: 13px 14px;
  }
  .slot-thumb { width: 42px; height: 42px; }
  .slot-row .btn-sm { padding: 8px 11px; font-size: 11px; }
  .slot-change { padding: 7px 9px; font-size: 9px; }
  /* AI Build Assistant header — tighten so the subtitle fits on one line
     (!important to beat the element's inline font-size/letter-spacing) */
  .ai-card { padding: 18px !important; }
  .ai-card-sub { font-size: 8.5px !important; letter-spacing: 0.03em !important; }
}

/* Picker modal */
.picker-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7,5,13,.82);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 24px;
  animation: pickerFadeIn .18s ease-out;
}
.picker-modal {
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 80px -20px rgba(0,0,0,.8), inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: pickerSlideIn .22s ease-out;
}
.picker-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.picker-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  display: grid; gap: 8px;
}
.picker-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow .15s, transform .12s;
  width: 100%;
  text-align: left;
}
.picker-row:hover { transform: translateY(-1px); }
@keyframes pickerFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pickerSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Picker modal on phones — near full-screen, compact rows so names don't pile up */
@media (max-width: 600px) {
  .picker-overlay { padding: 8px; }
  .picker-modal { max-height: 92vh; }
  .picker-head { padding: 16px 18px; }
  .picker-head h3 { font-size: 19px; }
  .picker-body { padding: 12px; gap: 8px; }
  .picker-row { gap: 11px; padding: 10px; }
  .pick-thumb { width: 46px !important; height: 46px !important; }
  .pick-name { font-size: 13px !important; }
  .pick-sub { font-size: 11px !important; }
  .pick-price { font-size: 14px !important; }
  /* search bar row padding trim */
  .picker-modal > div:nth-child(2) { padding: 12px 18px !important; }
}

@media (max-width: 900px) {
  .builder-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CATEGORY CARDS (home)
   ============================================ */
.cat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  text-decoration: none;
  position: relative;
  transition: box-shadow .2s, transform .15s;
}
.cat-card:hover {
  box-shadow: inset 0 0 0 1px var(--line);
  transform: translateY(-2px);
}
.cat-card:hover .cat-arrow { color: var(--primary); transform: translateX(2px); }
.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.cat-icon-img {
  overflow: hidden;
  padding: 0;
  position: relative;
}
.cat-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
}
.cat-icon-img::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(121,72,212,0);
  border-radius: 10px;
  transition: box-shadow .2s;
}
.cat-card:hover .cat-icon-img img { transform: scale(1.08); filter: brightness(1.1) saturate(1.1); }
.cat-card:hover .cat-icon-img::after { box-shadow: inset 0 0 0 1px rgba(121,72,212,.35); }
.cat-card:hover .cat-icon { color: var(--primary); }
.cat-arrow {
  color: var(--muted);
  transition: color .15s, transform .15s;
}

/* ============================================
   PILLAR CARDS (why choose)
   ============================================ */
.pillar-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  padding: 28px;
}
.pillar-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--f-mono);
  font-size: 48px;
  font-weight: 700;
  color: rgba(121,72,212,.10);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.pillar-card:hover .pillar-icon { color: var(--primary); }

/* ============================================
   PRODUCT CARD (refined)
   ============================================ */
.product-card {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: hidden;
  position: relative;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: inset 0 0 0 1px var(--line);
  transform: translateY(-2px);
}
.product-img {
  height: 232px;
  background:
    repeating-linear-gradient(135deg, rgba(121,72,212,.03) 0 6px, transparent 6px 14px),
    var(--bg-elev);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.product-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s ease, object-position .45s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-img img { transform: scale(1.04); filter: brightness(1.05); }
.product-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,5,13,.0) 40%, rgba(7,5,13,.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.product-model {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.92);
  text-transform: uppercase;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(7,5,13,.55);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-icon { display: none; }
.product-brand {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================
   BUILDER CTA + REVIEWS + MISC
   ============================================ */
.builder-cta {
  padding: 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #150b25 0%, #0a0617 70%);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  position: relative;
  overflow: hidden;
}
.builder-cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(121,72,212,.14), transparent 60%);
  pointer-events: none;
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.review-product {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--neon);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  text-decoration: none;
}
.review-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.review-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  display: grid; place-items: center;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 11px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.view-all {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Eyebrow — neutral accent line */
.eyebrow { color: var(--text-2); }
.eyebrow::before {
  background: var(--line);
  opacity: 1;
}

/* Section number tag — neutral, not purple */
.section-num { color: var(--text-2); }
.section-num-tag {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* View-all link — muted, not purple */
.view-all { color: var(--text-2); }
.view-all:hover { color: var(--text); }

/* Tag chips — neutral by default */
.tag {
  color: var(--text-2);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tag-dot { background: var(--text-2); box-shadow: none; }

/* Hero glow much fainter, almost grey */
.hero-glow {
  background: radial-gradient(ellipse at center, rgba(109,63,199,.04), transparent 70%);
}
.hero-bg-image img { opacity: 0.06; filter: blur(2px) saturate(0.5); }

/* Old grid responsive cleanup (centered hero handles its own breakpoints) */
@media (max-width: 960px) {
  .builder-cta { grid-template-columns: 1fr; padding: 40px 28px; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  section { padding: 56px 0; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

/* ============================================
   HOME — SCROLL REVEAL & SIGNATURE MOTION
   (extends the hero's blur-rise + violet-energy language)
   ============================================ */
@property --ering { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Reveal uses the `translate` property so a card's hover `transform` lift stays
   independent (different durations, no conflict). Per-property transition-delay
   staggers only the reveal — hover stays instant. */
[data-reveal] {
  opacity: 0;
  translate: 0 26px;
  filter: blur(8px);
  transition:
    opacity .72s cubic-bezier(.2,.85,.22,1),
    translate .6s cubic-bezier(.2,.85,.22,1),
    filter .72s cubic-bezier(.2,.85,.22,1),
    transform .22s ease,
    box-shadow .25s ease;
  transition-delay: calc(var(--i, 0) * 75ms), calc(var(--i, 0) * 75ms), calc(var(--i, 0) * 75ms), 0s, 0s;
  will-change: opacity, translate, filter;
}
[data-reveal].is-in { opacity: 1; translate: 0 0; filter: blur(0); }

/* ===== MOBILE PERFORMANCE =====
   On phones the two costliest things during normal use are (1) the sticky nav's
   backdrop-blur, which recomputes a full-width blur on every scroll frame, and
   (2) the scroll-reveal animating filter:blur on every card/section. Both are
   pure GPU killers on mobile. We drop the BLUR only — the fade + slide motion,
   the nav, the reveals and every feature stay exactly the same, just sharp. */
@media (max-width: 820px) {
  *, *::before, *::after {
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
  }
  .nav { background: rgba(8, 6, 16, 0.96); }          /* opaque enough without the blur */
  .product-model { background: rgba(7, 5, 13, 0.82); }
  [data-reveal] {
    filter: none;
    will-change: auto;   /* avoid promoting dozens of cards to permanent GPU layers */
    transition: opacity .5s cubic-bezier(.2,.85,.22,1), translate .5s cubic-bezier(.2,.85,.22,1), transform .22s ease, box-shadow .25s ease;
  }
  [data-reveal].is-in { filter: none; }
}

/* section header — scan line grows under the number tag on reveal */
.section-head .section-num-tag { position: relative; overflow: hidden; }
.section-head .section-num-tag::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-110%);
  transition: transform .9s cubic-bezier(.2,.85,.22,1) .25s;
}
.section-head.is-in .section-num-tag::after { transform: translateX(110%); }

/* ===== Section-header purple left→right "swipe" reveal on scroll =====
   (header text only — the category CARDS below use the normal reveal) */
/* opt out of the default blur-rise so the swipe drives the reveal here */
.fx-swipe .section-head[data-reveal],
.cat-section .section-head[data-reveal] { opacity: 1 !important; translate: 0 !important; filter: none !important; }
/* a purple bar sweeps in from the left (covering), then out to the right
   (revealing) — the text fades in behind it while it's covered. */
.cw { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; }
.cw-in { display: inline-block; opacity: 0; }
.cw::after {
  content: ""; position: absolute; inset: 0;
  background: var(--primary);
  transform: scaleX(0); transform-origin: left;
}
.is-in .cw::after { animation: cw-bar .85s cubic-bezier(.65,0,.25,1) both; animation-delay: calc(var(--i,0) * 90ms); }
.is-in .cw-in     { animation: cw-show .85s cubic-bezier(.65,0,.25,1) both; animation-delay: calc(var(--i,0) * 90ms); }

@keyframes cw-bar {
  0%   { transform: scaleX(0); transform-origin: left; }
  44%  { transform: scaleX(1); transform-origin: left; }
  56%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes cw-show { 0%, 44% { opacity: 0; } 56%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .cw-in { opacity: 1 !important; animation: none !important; }
  .cw::after { display: none; }
}

/* CATEGORY CARDS — rotating energy-ring border on hover */
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ering, 0deg),
    transparent 0%, transparent 58%,
    rgba(154,108,240,0) 60%, #9a6cf0 76%, #d7c9ff 84%, #9a6cf0 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px -18px rgba(121,72,212,.5);
}
.cat-card:hover::before { opacity: 1; animation: eRing 2.6s linear infinite; }
@keyframes eRing { to { --ering: 360deg; } }

/* PRODUCT CARDS — diagonal sheen sweep + deeper glow lift */
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -20px rgba(121,72,212,.55);
}
.product-img::before {
  content: "";
  position: absolute;
  top: -60%; left: -75%;
  width: 50%; height: 220%;
  background: linear-gradient(100deg, transparent,
    rgba(216,201,255,.22) 45%, rgba(255,255,255,.34) 50%, rgba(216,201,255,.22) 55%, transparent);
  transform: rotate(8deg);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.product-card:hover .product-img::before { animation: sheen .9s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes sheen {
  0%   { opacity: 0; left: -75%; }
  12%  { opacity: 1; }
  100% { opacity: 0; left: 130%; }
}
.product-model { transition: transform .25s ease, background .25s ease; }
.product-card:hover .product-model { transform: translateY(-2px); }

/* PILLAR CARDS — top scan line + icon glow + number ignite */
.pillar-card { overflow: hidden; }
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 36px -20px rgba(121,72,212,.5);
}
.pillar-scan {
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-110%);
  transition: transform .8s cubic-bezier(.2,.85,.22,1);
}
.pillar-card:hover .pillar-scan { transform: translateX(110%); }
.pillar-icon { transition: color .2s, box-shadow .25s, transform .25s; }
.pillar-card:hover .pillar-icon {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(121,72,212,.5), 0 0 18px -4px rgba(121,72,212,.6);
}
.pillar-num { transition: color .3s ease; }
.pillar-card:hover .pillar-num { color: rgba(121,72,212,.30); }

/* REVIEW CARDS — lift/glow + stars pop in sequence on reveal */
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 36px -20px rgba(121,72,212,.5);
}
.rstar {
  display: inline-flex;
  transform: scale(0) rotate(-30deg);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2,1.4,.4,1), opacity .4s ease;
  transition-delay: calc(.2s + var(--si, 0) * .09s);
}
[data-reveal].is-in .rstar { transform: none; opacity: 1; }

/* BUILDER CTA — slow drifting energy glow */
.builder-cta-bg { animation: ctaDrift 9s ease-in-out infinite alternate; }
@keyframes ctaDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-4%, 3%) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .rstar { transition: none !important; opacity: 1 !important; transform: none !important; }
  .cat-card:hover::before { animation: none; }
  .builder-cta-bg { animation: none; }
  .section-head .section-num-tag::after { transition: none; }
  .pillar-scan { transition: none; }
}

/* ============================================
   MOBILE NAV (hamburger + dropdown panel)
   ============================================ */
/* ---- Hamburger (always visible — desktop + mobile) ---- */
.nav-burger {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  padding: 0; border: 0; cursor: pointer;
  background: transparent;
  border-radius: var(--r-sm);
  position: relative;
  transition: background .2s ease, box-shadow .25s ease, transform .55s cubic-bezier(.34,0,.18,1);
}
.nav-burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.85,.22,1), opacity .2s ease, top .3s cubic-bezier(.2,.85,.22,1), background .2s ease, left .2s ease, right .2s ease;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 25px; }
/* hover: glow + brighten + the bars fan out slightly */
.nav-burger:hover {
  background: var(--primary-soft);
  box-shadow: 0 0 18px -6px rgba(109,63,199,.7);
  transform: translateY(-1px);
}
.nav-burger:hover span { background: var(--text); }
.nav-burger:hover span:nth-child(1) { left: 10px; }
.nav-burger:hover span:nth-child(3) { right: 10px; }
/* open: roll to the top-right corner of the screen, scale up, drop the border */
body.nav-open .nav {
  background: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-bottom-color: transparent;
}
body.nav-open .nav-burger {
  transform: translate(var(--bx, 9px), var(--by, -3px)) scale(1.6) rotate(360deg);
  background: transparent;
  box-shadow: none;
}
body.nav-open .nav-burger span:nth-child(1) { top: 20px; left: 11px; right: 11px; transform: rotate(45deg); background: var(--text); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { top: 20px; left: 11px; right: 11px; transform: rotate(-45deg); background: var(--text); }

/* ---- While the menu is OPEN, fade out the logo + cart (leave only the X) ---- */
.nav .brand,
.nav [data-action="open-cart"] {
  transition: opacity .3s ease, transform .3s ease;
}
body.nav-open .nav .brand,
body.nav-open .nav [data-action="open-cart"],
body.nav-open .nav [data-action="search-toggle"] {
  opacity: 0;
  transform: scale(.85);
  pointer-events: none;
}

/* ---- Full-screen menu — links on the LEFT, split by white lines ---- */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 45;                 /* below the nav bar (z 50) so the X stays clickable */
  display: flex;
  flex-direction: column;
  justify-content: center;     /* vertically centred */
  align-items: stretch;        /* children span the full width → full-width lines */
  padding: 24px 0;
  /* SOLID fill (no backdrop-filter) — animating clip-path over a backdrop blur
     re-computes the whole-screen blur every frame, which is what made it stutter.
     A near-opaque solid lets the circle reveal stay buttery. */
  background: #0a0614;
  pointer-events: none;
  /* circular reveal: a circle grows from the hamburger (origin set by JS) and
     covers the whole screen; links + lines then animate in (delayed below). */
  --ox: calc(100% - 52px); --oy: 56px;
  clip-path: circle(0px at var(--ox) var(--oy));
  -webkit-clip-path: circle(0px at var(--ox) var(--oy));
  transition: clip-path .72s cubic-bezier(.62,0,.34,1), -webkit-clip-path .72s cubic-bezier(.62,0,.34,1);
  will-change: clip-path;
}
body.nav-open .nav-menu {
  pointer-events: auto;
  clip-path: circle(160vmax at var(--ox) var(--oy));
  -webkit-clip-path: circle(160vmax at var(--ox) var(--oy));
}

/* ---- Full-screen SEARCH overlay — same circle-burst reveal as the menu ---- */
body.search-open .nav {
  background: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-bottom-color: transparent;
}
body.search-open .nav .brand,
body.search-open .nav [data-action="open-cart"],
body.search-open .nav-burger {
  opacity: 0;
  transform: scale(.85);
  pointer-events: none;
}
/* the search button rolls to the top-right corner and morphs glass → X */
.search-btn { overflow: visible; transition: transform .55s cubic-bezier(.34,0,.18,1), color .2s ease, background .2s ease; }
.search-ico {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: opacity .3s ease, transform .45s cubic-bezier(.34,0,.18,1);
}
.search-ico-x { opacity: 0; transform: rotate(-90deg) scale(.4); }
body.search-open .search-btn {
  transform: translate(var(--sbx, 0px), var(--sby, 0px)) scale(1.5) rotate(360deg);
  background: transparent;
  color: var(--text);
}
body.search-open .search-btn:hover { background: transparent; }
body.search-open .search-ico-glass { opacity: 0; transform: rotate(90deg) scale(.4); }
body.search-open .search-ico-x { opacity: 1; transform: rotate(0deg) scale(1); }
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  background: #0a0614;
  overflow: hidden;
  pointer-events: none;
  --sx: calc(100% - 100px); --sy: 56px;
  clip-path: circle(0px at var(--sx) var(--sy));
  -webkit-clip-path: circle(0px at var(--sx) var(--sy));
  transition: clip-path .72s cubic-bezier(.62,0,.34,1), -webkit-clip-path .72s cubic-bezier(.62,0,.34,1);
  will-change: clip-path;
}
body.search-open .search-overlay {
  pointer-events: auto;
  clip-path: circle(160vmax at var(--sx) var(--sy));
  -webkit-clip-path: circle(160vmax at var(--sx) var(--sy));
}
.search-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(680px, 92vw);
  padding: 14px 6px;
  border-bottom: 2px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s ease .26s, transform .42s ease .26s, border-color .2s ease;
}
body.search-open .search-box { opacity: 1; transform: none; }
.search-box:focus-within { border-color: var(--primary); }
.search-box-ico { color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.search-box:focus-within .search-box-ico { color: var(--primary); }
.search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(22px, 4vw, 40px);
  letter-spacing: -0.01em;
}
.search-input::placeholder { color: var(--muted); }
.search-go {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  transition: background .15s, transform .15s;
}
.search-go:hover { background: var(--primary-2); transform: scale(1.06); }
.search-hints {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: min(680px, 92vw);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .42s ease .4s, transform .42s ease .4s;
}
body.search-open .search-hints { opacity: 1; transform: none; }
.search-hints-label { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-right: 4px; }
.search-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .2s, box-shadow .2s, background .2s;
}
.search-chip:hover {
  color: var(--text);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}
@media (prefers-reduced-motion: reduce) {
  .search-overlay { transition: none; }
  .search-box, .search-hints { transition: none; }
}
/* animated background: drifting violet glow orbs (soft radial gradients, moved
   via transform → GPU-cheap; their drift starts after the circle reveal). */
.nm-orb {
  position: absolute; z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.nm-orb-1 {
  width: 62vmin; height: 62vmin; left: -12vmin; top: -4vmin;
  background: radial-gradient(circle, rgba(124,58,237,.42), transparent 62%);
  animation: nm-drift1 15s ease-in-out .7s infinite;
}
.nm-orb-2 {
  width: 54vmin; height: 54vmin; right: -8vmin; bottom: -10vmin;
  background: radial-gradient(circle, rgba(168,85,247,.38), transparent 62%);
  animation: nm-drift2 18s ease-in-out .7s infinite;
}
.nm-orb-3 {
  width: 40vmin; height: 40vmin; right: 16vmin; top: 10vmin;
  background: radial-gradient(circle, rgba(91,33,182,.4), transparent 60%);
  animation: nm-drift3 13s ease-in-out .7s infinite;
}
@keyframes nm-drift1 { 0%,100% { transform: translate(0,0) scale(1); }      50% { transform: translate(13vmin,10vmin) scale(1.18); } }
@keyframes nm-drift2 { 0%,100% { transform: translate(0,0) scale(1.1); }    50% { transform: translate(-12vmin,-11vmin) scale(.92); } }
@keyframes nm-drift3 { 0%,100% { transform: translate(0,0) scale(1); opacity:.5; } 50% { transform: translate(-8vmin,9vmin) scale(1.3); opacity:.85; } }

.nav-menu-links {
  list-style: none; margin: 0; padding: 0;
  position: relative; z-index: 1;   /* above the orbs */
  width: 100%;                 /* lines stretch the whole width */
}
.nav-menu-links li { position: relative; }
/* white divider lines that draw in from the left, staggered per link */
.nav-menu-links li::after,
.nav-menu-links li:first-child::before {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: rgba(255, 255, 255, .28);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s cubic-bezier(.2,.85,.22,1);
}
.nav-menu-links li::after { bottom: 0; }
.nav-menu-links li:first-child::before { top: 0; }
body.nav-open .nav-menu-links li::after { transform: scaleX(1); transition-delay: calc(0.62s + var(--i,0) * 0.07s); }
body.nav-open .nav-menu-links li:first-child::before { transform: scaleX(1); transition-delay: .58s; }

.nav-menu-links a {
  display: block;
  position: relative;          /* anchor the fill + layer the letters above it */
  /* horizontal padding indents the TEXT while the divider lines stay full width */
  padding: clamp(10px, 2.3vh, 24px) clamp(30px, 9vw, 140px);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(40px, 8.6vw, 104px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}
.nav-menu-links a.active { color: var(--primary); }
/* clicked link: only the TEXT speeds off to the right (background stays put),
   skewing left like it's being dragged back by the air as it accelerates. */
.nm-text { display: inline-block; vertical-align: top; will-change: transform; }
.nav-menu-links a.is-leaving .nm-text {
  transform: translateX(105vw) skewX(22deg) scaleX(1.18);
  transition: transform .42s cubic-bezier(.5, 0, .2, 1);  /* fast whoosh */
}
/* direction-aware fill — grows/retreats via scaleY (origin set by JS) */
.nm-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #ffffff;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.nav-menu-links a .nm-ch { position: relative; z-index: 1; }

/* letters: eager pop-in entrance + a clipped vertical "roll" on hover */
.nm-ch {
  display: inline-block;
  overflow: hidden;            /* clips the rolling letter */
  vertical-align: top;
  line-height: 1.05;
}
.nm-ch-i {
  display: block;
  position: relative;
  transition: transform .42s cubic-bezier(.34,.9,.3,1.1);
}
.nm-ch-i::after {              /* the duplicate waiting below */
  content: attr(data-ch);
  position: absolute; top: 100%; left: 0;
}
.nm-sp { width: .28em; }
body.nav-open .nm-ch {
  animation: nm-in .55s cubic-bezier(.18,.9,.28,1.5) backwards;
  animation-delay: calc(0.6s + var(--i,0) * 0.07s + var(--c,0) * 0.026s);
}
@keyframes nm-in {
  from { opacity: 0; transform: translateY(.9em) rotate(8deg) scale(.85); }
}
/* a stream of outline shapes flowing right→left and fading, looping on hover */
.nm-shapes {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: min(52%, 560px);
  pointer-events: none;
  overflow: hidden;            /* NOTE: no z-index here, or it would isolate the
                                  shapes and break mix-blend-mode against the fill */
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-menu-links a:hover .nm-shapes { opacity: 1; }
.nm-shape {
  position: absolute; right: 0; top: var(--top, 50%);
  color: #fff;
  mix-blend-mode: difference;   /* always contrasts (white on dark, dark on the fill) */
  opacity: 0;
  transform: translate(40px, -50%);
}
.nm-shape svg { display: block; width: var(--sz, 24px); height: var(--sz, 24px); }
.nav-menu-links a:hover .nm-shape {
  animation: nm-shape-flow var(--dur, 2s) linear var(--d, 0s) infinite;
}
@keyframes nm-shape-flow {
  0%   { opacity: 0; transform: translate(40px, -50%) rotate(0deg) scale(.6); }
  18%  { opacity: 1; transform: translate(0, -50%) rotate(calc(var(--rot,40deg) * .2)) scale(1); }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-1 * var(--travel, 180px)), -50%) rotate(var(--rot, 40deg)) scale(.9); }
}

/* hover: each letter rolls up (current exits top, duplicate enters from bottom)
   in an eager left-to-right stagger, black over the white fill, keeping the glitch */
.nav-menu-links a:hover .nm-ch { color: #0a0614; }
.nav-menu-links a:hover .nm-ch-i {
  transform: translateY(-100%);
  transition-delay: calc(var(--c, 0) * 0.03s);
}
.nav-menu-links a:hover { animation: nm-glitch .28s steps(1) infinite; }
@keyframes nm-glitch {
  0%   { text-shadow:  2px 0 #ff2d55, -2px 0 #2b8bff; }
  20%  { text-shadow: -3px 1px #ff2d55,  2px -1px #2b8bff; }
  40%  { text-shadow:  2px -1px #ff2d55, -3px 1px #2b8bff; }
  60%  { text-shadow: -2px 0 #ff2d55,  3px 0 #2b8bff; }
  80%  { text-shadow:  3px 1px #ff2d55, -2px -1px #2b8bff; }
  100% { text-shadow:  2px 0 #ff2d55, -2px 0 #2b8bff; }
}

@media (max-width: 600px) {
  .nav-text-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-burger span, .nav-menu, .nm-ch, .nav-menu-links li::after, .nav-menu-links li:first-child::before { transition: none; }
  body.nav-open .nm-ch { animation: none; }
  .nav-menu-links a:hover { animation: none; text-shadow: 2px 0 #ff2d55, -2px 0 #2b8bff; }
  .nm-bg { transition: none; }
  .nm-orb { animation: none; }
  .nm-shapes { transition: none; }
  .nav-menu-links a:hover .nm-shape { animation: none; }
  .nm-ch-i { transition: none; }
  .nav-menu-links a:hover .nm-ch-i { transform: none; }
}

/* ============================================
   HERO ECHO — subtle circuit grid + lighting in a
   few sections (a soft rounded lit "patch", toned
   way down vs the animated hero canvas)
   ============================================ */
.fx-section { position: relative; }
.fx-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* grid lines + intersection "solder pads", faded to a rounded patch */
.fx-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(180,152,255,.20) 1.4px, transparent 2px),
    linear-gradient(rgba(124,86,214,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,86,214,.12) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px, 46px 46px;
  -webkit-mask: radial-gradient(ellipse 58% 72% at 50% 50%, #000 0%, #000 34%, transparent 72%);
          mask: radial-gradient(ellipse 58% 72% at 50% 50%, #000 0%, #000 34%, transparent 72%);
}
/* soft drifting violet light over the grid */
.fx-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 48% 58% at 50% 42%, rgba(121,72,212,.17), transparent 66%);
  animation: fxGlow 13s ease-in-out infinite alternate;
}
.fx-grid--right::before {
  -webkit-mask: radial-gradient(ellipse 52% 70% at 72% 50%, #000 0%, #000 32%, transparent 70%);
          mask: radial-gradient(ellipse 52% 70% at 72% 50%, #000 0%, #000 32%, transparent 70%);
}
.fx-grid--right::after {
  background: radial-gradient(ellipse 42% 55% at 72% 48%, rgba(121,72,212,.16), transparent 64%);
  animation-duration: 16s;
}
@keyframes fxGlow {
  from { opacity: .7; transform: translateX(-3%) scale(1); }
  to   { opacity: 1;  transform: translateX(3%) scale(1.08); }
}

/* weave the same grid into the already-rounded Builder CTA panel */
.builder-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(180,152,255,.14) 1.4px, transparent 2px),
    linear-gradient(rgba(124,86,214,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,86,214,.09) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px, 44px 44px;
  -webkit-mask: radial-gradient(ellipse 85% 95% at 72% 50%, #000 0%, #000 30%, transparent 78%);
          mask: radial-gradient(ellipse 85% 95% at 72% 50%, #000 0%, #000 30%, transparent 78%);
}

@media (prefers-reduced-motion: reduce) {
  .fx-grid::after { animation: none; }
}

/* ============================================
   AMBIENT GLOWING ORBS — site-wide soft circles
   drifting behind all content (injected once by shell.js)
   ============================================ */
#root { position: relative; }
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.ambient .orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--c, rgba(121,72,212,.16)), transparent 70%);
  filter: blur(16px);
  transform: translate(-50%, -50%);
  will-change: transform;
  animation: orbFloat 26s ease-in-out infinite alternate;
}
.ambient .orb:nth-child(2n) { animation-name: orbFloat2; animation-duration: 32s; }
.ambient .orb:nth-child(3n) { animation-name: orbFloat3; animation-duration: 38s; }
@keyframes orbFloat {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(calc(-50% + 42px), calc(-50% - 34px)) scale(1.12); }
}
@keyframes orbFloat2 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(calc(-50% - 52px), calc(-50% + 38px)) scale(1.08); }
}
@keyframes orbFloat3 {
  from { transform: translate(-50%, -50%) scale(1.04); }
  to   { transform: translate(calc(-50% + 30px), calc(-50% + 52px)) scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient .orb { animation: none; }
}

/* Pin the Order button to the bottom of every product card so they all
   line up, regardless of name/spec/old-price height differences. */
.product-card .product-img { flex-shrink: 0; }
.product-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.card-actions { margin-top: auto; display: grid; gap: 8px; }
.card-actions .btn { width: 100%; justify-content: center; }
.card-actions .btn.is-added { background: var(--success); color: #06210f; box-shadow: none; }

/* hide the model-name watermark on product cards (real photos make it redundant) */
.product-card .product-model { display: none; }

/* Product cards stay 2-up on phones (instead of a single column) */
@media (max-width: 600px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .grid-products .product-img { height: 172px; }
  /* stack the discounted (old) price below the current price */
  .card-price { flex-direction: column; align-items: flex-start !important; }
  .card-price .price-old { margin-left: 0; margin-top: 1px; }
  /* smaller text on phones */
  [data-store-title] { font-size: 24px !important; }            /* store page heading */
  .product-body { padding: 13px !important; }
  .product-body > div:nth-child(2) { font-size: 12.5px !important; }   /* product name */
  .card-price > span:first-child { font-size: 15px !important; }       /* price */
  .product-brand { font-size: 9px !important; }
  /* eyebrow ("STORE · 500+ PRODUCTS · …") — tighten so it fits on one line */
  .eyebrow { font-size: 9.5px; letter-spacing: 0.07em; gap: 7px; }
  .eyebrow::before { width: 16px; }

  /* search + toolbar redesign: rounded search, then two equal pills
     (Filters | Sort). Drop the redundant "SHOWING N ITEMS" + "SORT BY" labels. */
  .store-search { border-radius: 12px; padding: 12px 14px; min-width: 0; }
  .store-toolbar { flex-wrap: nowrap !important; gap: 10px !important; margin-bottom: 16px; }
  .store-toolbar-side { flex: 1 1 0; gap: 0 !important; min-width: 0; }
  .store-showing, .store-sortby { display: none; }
  .store-filter-btn {
    width: 100%; justify-content: center; height: 46px;
    border-radius: 12px; font-size: 12px; letter-spacing: 0.06em;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  }
  .store-sort {
    width: 100%; height: 46px;
    border-radius: 12px; font-size: 14px;
    padding: 0 38px 0 16px;
    background-color: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  }

  /* product page: stack the trust badges into one column so titles fit */
  .trust-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   CART DRAWER (right-side slide-in)
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .58);
  pointer-events: none;
  /* a circle grows from the cart icon and covers the WHOLE screen (origin set by JS) */
  --cx: 95%; --cy: 4%;
  clip-path: circle(0px at var(--cx) var(--cy));
  -webkit-clip-path: circle(0px at var(--cx) var(--cy));
  transition: clip-path .55s cubic-bezier(.62,0,.34,1), -webkit-clip-path .55s cubic-bezier(.62,0,.34,1);
}
body.cart-open .cart-overlay {
  pointer-events: auto;
  clip-path: circle(150vmax at var(--cx) var(--cy));
  -webkit-clip-path: circle(150vmax at var(--cx) var(--cy));
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 92vw);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  box-shadow: -2px 0 44px rgba(0, 0, 0, .6);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2,.85,.22,1);
  overflow: hidden;
}
/* the side cart slides in normally, AFTER the circle has covered the screen */
body.cart-open .cart-drawer { transform: translateX(0); transition-delay: .4s; }
body.cart-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .cart-overlay, .cart-drawer { transition: none; }
}
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--line-soft);
}
.cart-drawer-title { font-family: var(--f-sans); font-weight: 600; font-size: 16px; color: var(--text); }
.cart-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.cart-drawer-foot { padding: 18px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }

.cart-d-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 10px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.cart-d-thumb {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--bg-elev); color: var(--text-2);
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.cart-d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-d-mid { flex: 1 1 auto; min-width: 0; }
.cart-d-name { font-family: var(--f-sans); font-weight: 600; font-size: 13px; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.cart-d-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-d-qty {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg); border-radius: 6px; padding: 2px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.cart-d-qty .icon-btn { width: 26px; height: 26px; }
.cart-d-qty span { font-family: var(--f-mono); font-size: 12px; min-width: 16px; text-align: center; color: var(--text); }
.cart-d-rm { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); background: 0; cursor: pointer; }
.cart-d-rm:hover { color: var(--danger); }
.cart-d-price { flex: 0 0 auto; font-family: var(--f-sans); font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; }
.cart-d-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--text-2); }
.cart-d-subval { font-family: var(--f-sans); font-weight: 700; font-size: 20px; color: var(--text); }
.cart-d-checkout { width: 100%; justify-content: center; }
.cart-d-viewlink {
  display: block; text-align: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-2);
}
.cart-d-viewlink:hover { color: var(--text); }
.cart-d-empty { text-align: center; padding: 48px 16px; display: grid; gap: 14px; justify-items: center; }
.cart-d-empty-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--surface-2); color: var(--text-2);
  display: grid; place-items: center;
}
.cart-d-empty p { color: var(--text-2); }

/* ============================================
   404 — NOT FOUND
   ============================================ */
.notfound {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.notfound-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 58% 55% at 50% 36%, rgba(109,63,199,.16), transparent 70%);
}
.notfound .container { position: relative; z-index: 1; }
.notfound-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.notfound-code {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(96px, 22vw, 196px);
  line-height: .9;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  color: var(--text);
  background: linear-gradient(180deg, var(--text) 0%, rgba(109,63,199,.6) 62%, transparent 128%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-user-select: none;
          user-select: none;
}
.notfound .eyebrow { justify-content: center; }
.notfound-title { font-size: clamp(26px, 4vw, 40px); line-height: 1.1; margin: 14px 0; }
.notfound-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto 28px;
}
.notfound-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.notfound-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 44px 0 22px;
  color: var(--muted);
}
.notfound-divider::before,
.notfound-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.notfound-divider .mono { font-size: 11px; letter-spacing: 0.16em; white-space: nowrap; }
.notfound-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.notfound-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--text);
  text-decoration: none;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.notfound-cat:hover {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: translateY(-2px);
}
.notfound-cat-name { flex: 1; }
.notfound-cat-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  flex-shrink: 0;
}
.notfound-cat > svg:last-child { color: var(--muted); transition: transform .18s ease, color .18s ease; }
.notfound-cat:hover > svg:last-child { transform: translateX(3px); color: var(--text); }

@media (max-width: 600px) {
  .notfound { padding: 56px 0 72px; min-height: 0; }
  .notfound-cats { grid-template-columns: 1fr; }
}
