/* ==========================================================================
   RoboKit Labs — Design System
   1. Tokens
   2. Reset & base
   3. Layout & typography
   4. Buttons, chips, badges
   5. Navigation
   6. Home
   7. Product cards & grids
   8. Shop
   9. Product detail
   10. Fabrication
   11. Contact
   12. Checkout
   13. Cart drawer, search, modal, toast
   14. Footer
   17. Utilities & motion
   18. Responsive
   ========================================================================== */

/* 1. TOKENS
   ========================================================================== */
:root {
  --bg: #070b08;
  --bg-soft: #0a0f0b;
  --bg-elevated: #0e1510;
  --surface: #101813;
  --surface-2: #141e17;
  --surface-3: #1a261d;
  --line: rgba(232, 245, 232, 0.09);
  --line-strong: rgba(232, 245, 232, 0.16);
  --text: #f1f5ef;
  --text-soft: #c9d3c9;
  --muted: #94a396;
  --muted-2: #6f7f72;
  --accent: #c8ff4d;
  --accent-dim: #a8dd35;
  --accent-ink: #101505;
  --accent-soft: rgba(200, 255, 77, 0.12);
  --mint: #4de3c1;
  --blue: #7aa2ff;
  --orange: #ff9e64;
  --pink: #ff7aa8;
  --danger: #ff6b6b;
  --success: #4ade80;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(200, 255, 77, 0.25), 0 12px 40px rgba(200, 255, 77, 0.12);

  --container: 1240px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% -10%, rgba(200, 255, 77, 0.07), transparent 65%),
    radial-gradient(700px 500px at -10% 18%, rgba(77, 227, 193, 0.05), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(122, 162, 255, 0.05), transparent 65%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(200, 255, 77, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 77, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-soft);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2a372d;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #3b4c40;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

/* 3. LAYOUT & TYPOGRAPHY
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.container-narrow {
  max-width: 880px;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.025em;
}

h4 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-soft);
}

.section-title {
  max-width: 16ch;
}

.section-lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  margin-top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.eyebrow.muted {
  color: var(--muted);
}

.eyebrow.muted::before {
  background: var(--muted);
  box-shadow: none;
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--mint) 60%, var(--blue) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

.page-hero {
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 96px));
  padding-bottom: clamp(36px, 5vw, 56px);
  position: relative;
}

.page-hero .section-title {
  max-width: 20ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--muted-2);
}

/* 4. BUTTONS, CHIPS, BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease-soft),
    border-color 0.25s var(--ease-soft),
    box-shadow 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft);
}

.btn i {
  font-size: 1.1em;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover i.ph-arrow-right,
.btn:hover i.ph-arrow-up-right {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(200, 255, 77, 0.18);
}

.btn-primary:hover {
  background: #d4ff70;
  box-shadow: 0 12px 40px rgba(200, 255, 77, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 255, 77, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 17px 30px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent);
}

.link-arrow i {
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover i {
  transform: translateX(4px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: rgba(10, 16, 12, 0.72);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.badge-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.badge-soft {
  background: var(--accent-soft);
  border-color: rgba(200, 255, 77, 0.3);
  color: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.82rem;
  color: var(--muted);
  transition: all 0.2s var(--ease-soft);
}

.chip:hover,
.chip.is-active {
  color: var(--text);
  border-color: rgba(200, 255, 77, 0.45);
  background: var(--accent-soft);
}

.chip.is-active {
  color: var(--accent);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 5. NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    backdrop-filter 0.3s var(--ease-soft);
}

.navbar.is-scrolled {
  background: rgba(7, 11, 8, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
}

.logo-word {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.logo-word em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 1.15rem;
  transition: all 0.2s var(--ease-soft);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.25s var(--ease);
}

.cart-count.is-visible {
  transform: scale(1);
}

.mobile-toggle {
  display: none;
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 40px;
  background: rgba(7, 11, 8, 0.97);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-soft), visibility 0.3s;
}

.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-panel nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-panel .nav-link {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  padding: 10px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}

.mobile-panel .nav-link.is-active::after {
  display: none;
}

.mobile-panel-foot {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 6. HOME
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 92px));
  padding-bottom: clamp(48px, 7vw, 80px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin-top: 22px;
  max-width: 13ch;
}

.hero-title .line {
  display: block;
}

.hero-sub {
  max-width: 52ch;
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note i {
  color: var(--accent);
  font-size: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 7px;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-stage {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 77, 0.16), rgba(77, 227, 193, 0.05) 45%, transparent 70%);
  filter: blur(10px);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(200, 255, 77, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-1 {
  width: 92%;
  aspect-ratio: 1;
  animation: spin 42s linear infinite;
}

.orbit-2 {
  width: 72%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(232, 245, 232, 0.1);
  animation: spin-reverse 30s linear infinite;
}

.orbit-1::before,
.orbit-2::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.stage-card {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #162019, #0b110d);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease);
}

.stage-card:hover {
  transform: rotate(0deg) translateY(-6px);
}

.stage-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0f0b;
}

.stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 8, 0.8), transparent 55%);
}

.stage-body {
  padding: 18px 20px 20px;
}

.stage-body .stage-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}

.stage-body p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
}

.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stage-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.stage-price small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}

.float-pill {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: rgba(12, 18, 14, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.float-pill i {
  color: var(--accent);
  font-size: 1rem;
}

.float-pill.pill-a {
  top: 12%;
  right: 0;
}

.float-pill.pill-b {
  bottom: 38%;
  left: 0;
  animation-delay: -2s;
}

.float-pill.pill-c {
  bottom: 2%;
  right: 8%;
  animation-delay: -4s;
}

.stage-tag {
  position: absolute;
  z-index: 3;
  top: 8%;
  left: 2%;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  box-shadow: 0 8px 24px rgba(200, 255, 77, 0.25);
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding-block: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-inline: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(200, 255, 77, 0.4);
  margin-left: 26px;
}

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.compare-col {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.compare-col.is-bad {
  background: linear-gradient(160deg, rgba(255, 107, 107, 0.04), var(--surface));
}

.compare-col.is-good {
  border-color: rgba(200, 255, 77, 0.3);
  background: linear-gradient(160deg, rgba(200, 255, 77, 0.07), var(--surface));
  box-shadow: var(--glow);
}

.compare-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.compare-col.is-good .compare-label {
  color: var(--accent);
}

.compare-col h3 {
  margin-bottom: 20px;
  max-width: 18ch;
}

.compare-list {
  display: grid;
  gap: 13px;
}

.compare-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.compare-list i {
  margin-top: 2px;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.is-bad .compare-list i {
  color: var(--danger);
}

.is-good .compare-list i {
  color: var(--accent);
}

.compare-foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -40px;
  bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cat-accent, var(--accent)), transparent 68%);
  opacity: 0.14;
  transition: opacity 0.35s;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.category-card:hover::after {
  opacity: 0.3;
}

.category-card i {
  font-size: 1.7rem;
  color: var(--cat-accent, var(--accent));
}

.category-card h3 {
  margin-top: 24px;
  font-size: 1rem;
}

.category-card p {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.category-card .count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.step {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.step i {
  display: block;
  margin: 26px 0 18px;
  font-size: 1.8rem;
  color: var(--text-soft);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.step p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.feature-card i {
  font-size: 1.5rem;
  color: var(--accent);
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.feature-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Fabrication split */
.fab-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fab-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #17221a, #0a0f0b 70%);
}

.fab-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 255, 77, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 77, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 70% 20%, #000, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000, transparent 65%);
  pointer-events: none;
}

.fab-card .fab-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--accent);
  opacity: 0.9;
  filter: drop-shadow(0 0 30px rgba(200, 255, 77, 0.2));
}

.fab-card h3 {
  position: relative;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.fab-card p {
  position: relative;
  margin-top: 12px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.fab-card .btn {
  position: relative;
  align-self: flex-start;
  margin-top: 24px;
}

.fab-card .mono {
  position: relative;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(200, 255, 77, 0.24);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(200, 255, 77, 0.16), transparent 65%),
    linear-gradient(140deg, #121c15, #080d0a);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 255, 77, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  opacity: 0.5;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band p {
  max-width: 52ch;
  margin: 18px auto 0;
  color: var(--muted);
}

.cta-band .hero-actions {
  justify-content: center;
}

/* 7. PRODUCT CARDS & GRIDS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--surface-2), var(--surface) 60%);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 255, 77, 0.28);
  box-shadow: var(--shadow-md);
}

.product-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0f0b;
  border-bottom: 1px solid var(--line);
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-card:hover .product-art img {
  transform: scale(1.05);
}

.product-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 8, 0.45), transparent 45%);
  pointer-events: none;
}

.kit-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--art-accent) 18%, transparent), transparent 62%),
    linear-gradient(150deg, #111a14, #080d0a);
}

.kit-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--art-accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--art-accent) 8%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 76%);
}

.kit-art .art-rings {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border: 1px dashed color-mix(in srgb, var(--art-accent) 30%, transparent);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.kit-art .art-rings::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid color-mix(in srgb, var(--art-accent) 18%, transparent);
  border-radius: 50%;
}

.kit-art > i {
  position: relative;
  font-size: clamp(3.2rem, 7vw, 5rem);
  color: var(--art-accent);
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--art-accent) 40%, transparent));
}

.kit-art .art-code {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--art-accent) 70%, transparent);
}

.kit-art .art-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--art-accent) 70%, transparent);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}

.meta-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.product-title {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.product-title a:hover {
  color: var(--accent);
}

/* The whole card is clickable; the title link is stretched over it. */
.product-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.product-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Cards already show the category below the image. */
.product-art .art-label {
  display: none;
}

.product-tagline {
  margin-top: 7px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.price {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

.quick-add {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.2s var(--ease-soft);
}

.quick-add:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.quick-add i {
  font-size: 1rem;
}

/* 8. SHOP
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.filters-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: -8px;
}

.shop-heading {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.filter-group h3 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  font-size: 0.84rem;
  color: var(--muted);
  text-align: left;
  transition: all 0.2s;
}

.filter-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.filter-btn.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.filter-btn span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted-2);
}

.filter-btn.is-active span {
  color: var(--accent);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.shop-count {
  font-size: 0.82rem;
  color: var(--muted);
}

.shop-count strong {
  color: var(--text);
}

.shop-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon i {
  position: absolute;
  left: 14px;
  color: var(--muted-2);
  font-size: 1rem;
  pointer-events: none;
}

.input-icon .input {
  padding-left: 40px;
  min-width: 220px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(200, 255, 77, 0.55);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.1);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a396' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.select option {
  background: var(--surface-2);
  color: var(--text);
}

.textarea {
  min-height: 130px;
  resize: vertical;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field > label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
}

.field-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.payment-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-sm, 10px);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.payment-hint i {
  color: var(--accent);
  font-size: 1.05rem;
  margin-top: 1px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-grid .product-card:nth-child(3n + 2) {
  transform: translateY(18px);
}

.shop-grid .product-card:nth-child(3n + 2):hover {
  transform: translateY(12px);
}

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
}

.empty-state i {
  font-size: 2.4rem;
  color: var(--muted-2);
}

.empty-state h3 {
  margin-top: 16px;
}

.empty-state p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 40ch;
}

.mobile-filter-toggle {
  display: none;
}

/* 9. PRODUCT DETAIL
   ========================================================================== */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.gallery {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0a0f0b;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main .kit-art > i {
  font-size: clamp(5rem, 12vw, 9rem);
}

.gallery-main .kit-art .art-code,
.gallery-main .kit-art .art-label {
  font-size: 0.7rem;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
}

.gallery-thumb.is-art {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 1.5rem;
}

.product-info {
  padding-top: 4px;
}

.product-info .eyebrow {
  margin-bottom: 16px;
}

.product-info h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 16ch;
}

.product-info .product-sub {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-info .product-desc {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.highlight-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.highlight-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.highlight-list i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.buy-panel {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}

.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.price-main {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-main small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-left: 6px;
}

.stock-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
}

.stock-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.buy-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.buy-actions .btn {
  flex: 1;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.qty button {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.qty button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.qty span {
  min-width: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.buy-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--muted);
}

.buy-note i {
  color: var(--accent);
  margin-top: 1px;
}

.trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--muted);
}

.trust-list i {
  color: var(--accent);
  font-size: 1rem;
}

.product-tabs {
  margin-top: clamp(48px, 7vw, 80px);
}

.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  position: relative;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.is-active {
  color: var(--accent);
}

.tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.tab-panel {
  display: none;
  padding-top: 28px;
  animation: fade-up 0.4s var(--ease);
}

.tab-panel.is-active {
  display: block;
}

.prose {
  max-width: 72ch;
}

.prose p + p {
  margin-top: 14px;
}

.prose h3 {
  margin: 28px 0 12px;
}

.prose ul {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.prose ul li {
  display: flex;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.prose ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 10px;
  flex-shrink: 0;
}

.box-table,
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.box-table th,
.spec-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
}

.box-table td,
.spec-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  vertical-align: top;
}

.box-table td:first-child,
.spec-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.box-table .qty-cell,
.box-table .price-cell {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.box-table .price-cell {
  text-align: right;
  color: var(--text-soft);
}

.box-table th:last-child {
  text-align: right;
}

.box-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--muted);
}

.box-summary strong {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.doc-card i {
  font-size: 1.2rem;
  color: var(--accent);
}

.doc-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 2px;
}

.repo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.repo-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.repo-card h3 i {
  color: var(--accent);
}

.repo-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.build-steps {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.build-step {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.build-step:last-child {
  border-bottom: 0;
}

.build-step .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  padding-top: 3px;
  min-width: 24px;
}

.build-step p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
}

.faq-q i {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease), color 0.2s;
  flex-shrink: 0;
}

.faq-item.is-open .faq-q i {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-a p {
  padding: 0 20px 20px;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 72ch;
}

.faq-item.is-open .faq-a {
  max-height: 400px;
}

.related {
  margin-top: clamp(56px, 8vw, 96px);
}

/* 10. FABRICATION
   ========================================================================== */
.fab-hero {
  display: block;
}

.fab-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  max-width: 15ch;
}

.fab-hero p {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--muted);
}

.fab-hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 255, 77, 0.12), transparent 60%),
    linear-gradient(150deg, #131d16, #080d0a);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.fab-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 255, 77, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 77, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 75%);
}

.fab-hero-art i {
  position: relative;
  font-size: clamp(5rem, 13vw, 9rem);
  color: var(--accent);
  filter: drop-shadow(0 0 40px rgba(200, 255, 77, 0.3));
}

.fab-hero-art .orbit {
  width: 74%;
}

.fab-hero-art .orbit-2 {
  width: 52%;
}

.fab-hero-art .tag {
  position: absolute;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: rgba(10, 16, 12, 0.9);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  backdrop-filter: blur(10px);
}

.fab-hero-art .tag-a {
  top: 14%;
  left: 8%;
}

.fab-hero-art .tag-b {
  bottom: 18%;
  right: 6%;
}

.fab-hero-art .tag-c {
  bottom: 8%;
  left: 14%;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.quote-form {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.form-section + .form-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
}

.form-section-title span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.material-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s var(--ease-soft);
}

.material-option:hover {
  border-color: var(--line-strong);
}

.material-option.is-selected {
  border-color: rgba(200, 255, 77, 0.5);
  background: var(--accent-soft);
}

.material-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.material-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
  background: var(--swatch, var(--accent));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.material-option strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
}

.material-option small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: all 0.25s var(--ease-soft);
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone i {
  font-size: 2rem;
  color: var(--accent);
}

.dropzone strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 0.95rem;
}

.dropzone span {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--muted);
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.78rem;
}

.file-chip > i {
  color: var(--accent);
  font-size: 1.1rem;
}

.file-chip .file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip .file-size {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted-2);
  white-space: nowrap;
}

.file-chip button {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2px;
}

.file-chip button:hover {
  color: var(--danger);
}

.quote-result {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 255, 77, 0.3);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(200, 255, 77, 0.12), transparent 60%),
    linear-gradient(160deg, #131d16, #0a0f0b);
  box-shadow: var(--glow);
}

.quote-result .eyebrow {
  margin-bottom: 14px;
}

.quote-amount {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.quote-amount small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

.quote-breakdown {
  display: grid;
  gap: 9px;
  margin: 20px 0;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.quote-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.quote-line span:last-child {
  font-family: var(--font-mono);
  color: var(--text-soft);
}

.quote-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 28px;
}

.spec-strip > div {
  padding: 20px;
  background: var(--surface);
}

.spec-strip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.spec-strip span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

/* 11. CONTACT
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.form-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-cards {
  display: grid;
  gap: 10px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.contact-card:hover {
  border-color: rgba(200, 255, 77, 0.35);
  transform: translateY(-2px);
}

.contact-card .cc-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card strong {
  display: block;
  font-size: 0.88rem;
}

.contact-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  word-break: break-word;
}

/* 12. CHECKOUT
   ========================================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.summary-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.summary-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.order-items {
  display: grid;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.order-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-info strong {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item-info span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.order-item-price {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  white-space: nowrap;
}

.totals {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.total-line span:last-child {
  font-family: var(--font-mono);
  color: var(--text-soft);
}

.total-line.grand {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.total-line.grand span:last-child {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--accent);
}

.total-line.discount span:last-child {
  color: var(--success);
}

.radio-cards {
  display: grid;
  gap: 9px;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s;
}

.radio-card:hover {
  border-color: var(--line-strong);
}

.radio-card.is-selected {
  border-color: rgba(200, 255, 77, 0.5);
  background: var(--accent-soft);
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  flex-shrink: 0;
  position: relative;
}

.radio-card.is-selected .radio-dot {
  border-color: var(--accent);
}

.radio-card.is-selected .radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.radio-card strong {
  display: block;
  font-size: 0.84rem;
}

.radio-card small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}

.success-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 255, 77, 0.3);
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(200, 255, 77, 0.14), transparent 65%),
    var(--surface);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 2rem;
}

.success-panel h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.success-panel p {
  margin-top: 14px;
  color: var(--muted);
}

.order-code {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px dashed rgba(200, 255, 77, 0.45);
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

/* 13. CART DRAWER, SEARCH, MODAL, TOAST
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 6, 4, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.drawer-head h3 i {
  color: var(--accent);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.5rem;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h4 {
  font-size: 0.86rem;
  line-height: 1.3;
}

.cart-item-info .meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-top: 3px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.cart-item-row .qty {
  border-radius: var(--radius-xs);
}

.cart-item-row .qty button {
  width: 28px;
  height: 30px;
  font-size: 0.85rem;
}

.cart-item-row .qty span {
  min-width: 26px;
  font-size: 0.75rem;
}

.cart-item-price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-remove {
  font-size: 0.68rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-remove:hover {
  color: var(--danger);
}

.cart-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 10px;
}

.cart-empty i {
  font-size: 2.6rem;
  color: var(--muted-2);
}

.cart-empty h4 {
  margin-top: 16px;
}

.cart-empty p {
  margin: 8px 0 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

.drawer-foot {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.drawer-subtotal span {
  font-size: 0.82rem;
  color: var(--muted);
}

.drawer-subtotal strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.drawer-foot .field-hint {
  margin-bottom: 14px;
}

.drawer-foot .btn + .btn {
  margin-top: 8px;
}

/* Search */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  justify-content: center;
  padding: 12vh 20px 40px;
  background: rgba(3, 6, 4, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: min(620px, 100%);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.3s var(--ease);
}

.search-modal.is-open .search-box {
  transform: translateY(0);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.search-input-wrap i {
  color: var(--accent);
  font-size: 1.2rem;
}

.search-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 1rem;
  outline: none;
}

.search-input-wrap kbd {
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
}

.search-results {
  overflow-y: auto;
  padding: 8px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.04);
}

.search-result .sr-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-result .sr-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result strong {
  display: block;
  font-size: 0.86rem;
}

.search-result span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.search-result .sr-price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-soft);
}

.search-empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Generic modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 4, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 1rem;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

/* Toast */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(200, 255, 77, 0.35);
  background: rgba(12, 20, 14, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  color: var(--text);
  animation: toast-in 0.35s var(--ease);
}

.toast i {
  color: var(--accent);
  font-size: 1.1rem;
}

.toast.is-out {
  animation: toast-out 0.3s var(--ease) forwards;
}

/* 14. FOOTER
   ========================================================================== */
.footer {
  margin-top: clamp(60px, 9vw, 110px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 64px);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 34ch;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--accent);
}

.newsletter {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.newsletter h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.newsletter p {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--muted);
}

.newsletter form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter .input {
  padding: 10px 12px;
  font-size: 0.82rem;
}

.newsletter .btn {
  padding: 10px 16px;
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted-2);
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* 15. UTILITIES & MOTION
   ========================================================================== */
/* Content is visible immediately; no scroll-triggered hiding. */
.reveal,
.has-js .reveal {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

/* 16. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid .product-card:nth-child(3n + 2) {
    transform: none;
  }

  .shop-grid .product-card:nth-child(3n + 2):hover {
    transform: translateY(-6px);
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1.4fr;
  }

  .footer-col:nth-child(3) {
    display: none;
  }
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .fab-hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 440px;
    margin-top: 16px;
  }

  .float-pill {
    display: none;
  }

  .hero-title {
    max-width: 15ch;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-controls {
    width: 100%;
  }

  .shop-controls .input-icon {
    flex: 1 1 220px;
  }

  .shop-controls .input-icon .input {
    width: 100%;
  }

  .filters {
    position: static;
    display: none;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .filters.is-open {
    display: flex;
  }

  .mobile-filter-toggle {
    display: inline-flex;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .gallery {
    position: static;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .quote-layout,
  .contact-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .quote-result,
  .summary-card {
    position: static;
  }

  .spec-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:nth-child(3) {
    display: block;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 66px;
  }

  .container {
    padding-inline: 18px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stat span {
    font-size: 0.68rem;
  }

  .hero-stage {
    min-height: 380px;
  }

  .float-pill {
    display: none;
  }

  .category-grid,
  .product-grid,
  .feature-grid,
  .shop-grid,
  .docs-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .fab-split {
    grid-template-columns: 1fr;
  }

  .fab-card {
    min-height: 320px;
  }

  .spec-strip {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .buy-actions {
    flex-direction: column;
  }

  .buy-actions .qty {
    justify-content: space-between;
    width: 100%;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .box-table,
  .spec-table {
    font-size: 0.8rem;
  }

  .box-table th,
  .box-table td,
  .spec-table th,
  .spec-table td {
    padding: 10px 8px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-col:nth-child(3) {
    display: block;
  }

  .newsletter form {
    flex-direction: column;
  }

  .shop-toolbar {
    align-items: stretch;
  }

  .shop-controls {
    flex-direction: column;
  }

  .input-icon .input {
    min-width: 0;
    width: 100%;
  }

  .tab-btn {
    padding: 12px 12px;
    font-size: 0.8rem;
  }

  .search-modal {
    padding-top: 8vh;
  }

  .search-input-wrap kbd {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Simplified footer + linked cards
   -------------------------------------------------------------------------- */
.stage-card,
.fab-card {
  color: inherit;
  text-decoration: none;
}

.stage-card {
  display: block;
}

.stage-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-simple {
  display: grid;
  grid-template-columns: 1.6fr auto auto;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 56px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 6px;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.footer-contact > a {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.footer-contact > a:hover {
  color: var(--accent);
}

.footer-contact .footer-socials {
  margin-top: 0;
}

@media (max-width: 760px) {
  .footer-simple {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-contact {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .shop-toolbar {
    gap: 10px;
    margin-bottom: 18px;
  }

  .shop-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .shop-controls .input-icon {
    grid-column: 1 / -1;
  }

  .shop-controls .select {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Kit customization + project access
   -------------------------------------------------------------------------- */
.price-was {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-decoration: line-through;
}

.kit-customize {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.kit-customize summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.kit-customize summary::-webkit-details-marker {
  display: none;
}

.kit-customize summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
}

.kit-customize summary span i {
  color: var(--accent);
  font-size: 1rem;
}

.kit-customize summary small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: right;
}

.kit-customize[open] summary {
  border-bottom: 1px solid var(--line);
}

.customize-body {
  padding: 12px 14px 14px;
}

.customize-hint {
  margin: 0 0 12px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.component-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.component-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.component-option:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.component-option.is-partial {
  border-color: rgba(200, 255, 77, 0.35);
}

.component-qty {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.component-qty button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.66rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.component-qty button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.component-qty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.component-qty span {
  min-width: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text);
}

.component-info {
  flex: 1;
  min-width: 0;
}

.component-info strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-soft);
}

.component-info small {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  color: var(--muted-2);
}

.component-credit {
  flex: none;
  min-width: 62px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted-2);
  white-space: nowrap;
}

.component-credit.is-active {
  color: var(--accent);
}

.component-option.is-off {
  opacity: 0.5;
}

.component-option.is-off .component-credit {
  color: var(--muted-2);
}

.customize-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}

.customize-total strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.project-access {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(200, 255, 77, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(200, 255, 77, 0.04);
}

.project-access > i {
  flex: none;
  margin-top: 2px;
  font-size: 1.15rem;
  color: var(--accent);
}

.project-access strong {
  display: block;
  font-size: 0.8rem;
}

.project-access p {
  margin-top: 3px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.access-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.access-note i {
  font-size: 0.9rem;
}

.tab-panel > .access-note {
  display: flex;
  margin-top: 18px;
}

.box-table tr.is-removed td {
  opacity: 0.38;
  text-decoration: line-through;
}

@media (max-width: 640px) {
  .component-list {
    max-height: 220px;
  }

  .kit-customize summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .kit-customize summary small {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Sticky buy bar + recommended tools
   -------------------------------------------------------------------------- */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(18px, 4vw, 32px);
  border-top: 1px solid var(--line-strong);
  background: rgba(7, 11, 8, 0.94);
  backdrop-filter: blur(16px);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s var(--ease-soft), visibility 0.3s;
}

.sticky-buy.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.sticky-buy-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sticky-buy-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
}

.sticky-buy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-buy-copy {
  min-width: 0;
}

.sticky-buy-copy strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-buy-copy span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.sticky-buy .btn {
  flex: none;
}

.tools-recommend {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.tools-recommend .section-head {
  margin-bottom: 18px;
}

.tools-recommend .link-arrow {
  white-space: nowrap;
}

.box-table tr.is-partial td {
  color: var(--text-soft);
}

@media (max-width: 440px) {
  .component-option {
    flex-wrap: wrap;
  }

  .component-info {
    flex-basis: 100%;
  }

  .component-qty {
    margin-left: auto;
  }

  .sticky-buy-copy strong {
    max-width: 38vw;
  }
}
