/* ============================================================================
   TradeRigX — design system
   dark charcoal / electric green · angular · restrained motion
   ========================================================================= */

@import url('/fonts.css');

/* --------------------------------- tokens -------------------------------- */
:root {
  --bg: #060a08;
  --bg-2: #070c0a;
  --bg-3: #090f0c;
  --panel: #0b120f;
  --panel-2: #0e1713;
  --panel-3: #111c17;

  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);

  --text: #eef4f0;
  --text-2: #c2d1c9;
  --muted: #8fa298;
  --muted-2: #76897e;

  --green: #00e676;
  --green-bright: #6dffb4;
  --green-dim: #00a857;
  --green-ink: #04170d;
  --red: #ff5566;

  --glow: 0 0 60px rgba(0, 230, 118, 0.18);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 18px;

  --font-display: 'Saira', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(18px, 4vw, 48px);
  --section-y: clamp(64px, 8.5vw, 132px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------- reset -------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--green); color: var(--green-ink); }

/* -------------------------------- typography ----------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); text-transform: uppercase; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); text-transform: uppercase; letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.2rem, 1.7vw, 1.55rem); letter-spacing: -0.01em; }
.h4 { font-size: 1.05rem; letter-spacing: 0; }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.17rem);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 60ch;
}

.prose p + p { margin-top: 1em; }
.prose h3 { margin: 2em 0 0.6em; }
.prose ul { margin: 1em 0; display: grid; gap: 0.55em; }
.prose li { position: relative; padding-left: 1.4em; color: var(--text-2); }
.prose li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; background: var(--green); transform: rotate(45deg); opacity: 0.85;
}
.prose a { color: var(--green-bright); text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.75em;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}
.eyebrow.plain::before { display: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.green { color: var(--green); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.78rem; }

/* --------------------------------- layout -------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 940px; }

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.section-line { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head > :first-child { flex: 1 1 auto; min-width: 0; }
.section-head > :first-child .h2, .section-head > :first-child .h1 { max-width: 22ch; }
.section-head .lede { max-width: 52ch; flex: 0 1 46ch; margin-left: auto; }
@media (max-width: 760px) { .section-head .lede { margin-left: 0; } }

.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 10px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.g-auto-sm { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.hr { height: 1px; background: var(--line); border: 0; }
.rule-diag {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
}

/* ------------------------------- decorations ----------------------------- */
.cut {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.cut-sm {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  z-index: 0;
}
.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  background: rgba(0, 230, 118, 0.16);
  z-index: 0;
}

/* -------------------------------- buttons -------------------------------- */
.btn {
  --cut: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: var(--green-ink);
}
.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 34px rgba(0, 230, 118, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-bright);
  background: rgba(0, 230, 118, 0.06);
}

.btn-dark {
  background: rgba(4, 10, 7, 0.6);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-dark:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.06); }

.btn-sm { padding: 0.72em 1.15em; font-size: 0.76rem; --cut: 8px; }
.btn-lg { padding: 1.08em 2em; font-size: 0.92rem; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover { gap: 0.85em; color: var(--green-bright); }

/* --------------------------------- chips --------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.36em 0.7em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 3px;
  white-space: nowrap;
}
.chip-green {
  color: var(--green);
  border-color: rgba(0, 230, 118, 0.42);
  background: rgba(0, 230, 118, 0.08);
}
.chip-dot::before {
  content: '';
  width: 5px; height: 5px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

/* -------------------------------- header --------------------------------- */
.topbar {
  position: relative;
  z-index: 60;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
  flex-wrap: nowrap;
}
.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .topbar-short { display: none; }
.topbar .topbar-cta { flex: none; white-space: nowrap; }
@media (max-width: 780px) {
  .topbar .topbar-long { display: none; }
  .topbar .topbar-short { display: inline-flex; align-items: center; gap: 6px; }
  .topbar .topbar-cta { display: none; }
  .topbar { font-size: 0.6rem; letter-spacing: 0.08em; }
}
.topbar a { color: var(--green); }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(6, 10, 8, 0.86);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
@media (min-width: 1100px) { .brand img { height: 30px; } }

.nav { display: none; align-items: center; gap: 4px; margin-left: 8px; }
@media (min-width: 1080px) { .nav { display: flex; } }

.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.16s var(--ease);
  border-radius: 4px;
}
.nav-link:hover, .nav-item:hover .nav-link { color: var(--text); }
.nav-link[aria-current='page'] { color: var(--green); }
.nav-link .caret { width: 8px; height: 8px; opacity: 0.6; transition: transform 0.2s var(--ease); }
.nav-item:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 268px;
  padding: 8px;
  background: #0a110e;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 70;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: rgba(0, 230, 118, 0.07); color: var(--text); }
.dropdown a span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted-2); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.16s, border-color 0.16s, background 0.16s;
  border-radius: 4px;
}
.icon-btn:hover { color: var(--green); border-color: rgba(0, 230, 118, 0.45); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  display: grid; place-items: center;
  padding: 0 4px;
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  border-radius: 9px;
}
.cart-count[data-empty='true'] { display: none; }

.header-cta { display: none; }
@media (min-width: 1060px) { .header-cta { display: inline-flex; } }

.burger { display: inline-flex; }
@media (min-width: 1080px) { .burger { display: none; } }

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 8, 6, 0.98);
  backdrop-filter: blur(8px);
  padding: 20px var(--gutter) 40px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav[data-open='true'] { display: flex; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.mobile-nav a:hover { color: var(--green); }
.mobile-sub { display: grid; gap: 2px; padding: 6px 0 10px 12px; border-bottom: 1px solid var(--line); }
.mobile-sub a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  border: 0;
  padding: 8px 0;
}
.mobile-nav .btn { margin-top: 20px; }

/* --------------------------------- hero ---------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 62% 70% at 76% 46%, rgba(0, 230, 118, 0.14), transparent 62%),
    radial-gradient(ellipse 50% 60% at 8% 0%, rgba(0, 230, 118, 0.05), transparent 60%),
    linear-gradient(180deg, #050807 0%, #060a08 62%, #070c0a 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  display: grid;
  align-items: center;
  padding-block: clamp(46px, 6vw, 78px);
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-visual img {
  position: absolute;
  top: 50%;
  left: 34%;
  width: min(108%, 1480px);
  max-width: none;
  transform: translateY(-50%);
  filter: saturate(1.05) contrast(1.04);
  -webkit-mask-image:
    linear-gradient(97deg, transparent 0%, rgba(0, 0, 0, 0.06) 6%, rgba(0, 0, 0, 0.55) 19%, #000 34%, #000 100%),
    linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.55) 12%, #000 30%),
    linear-gradient(to bottom, transparent 0%, #000 14%);
  mask-image:
    linear-gradient(97deg, transparent 0%, rgba(0, 0, 0, 0.06) 6%, rgba(0, 0, 0, 0.55) 19%, #000 34%, #000 100%),
    linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.55) 12%, #000 30%),
    linear-gradient(to bottom, transparent 0%, #000 14%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  mask-repeat: no-repeat;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
}
.hero h1 {
  font-size: clamp(2.35rem, 5.3vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero h1 .line { display: block; }
.hero h1 .accent {
  color: var(--green);
  text-shadow: 0 0 46px rgba(0, 230, 118, 0.35);
}
.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 42px);
  margin-top: clamp(10px, 2vw, 22px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}
.hero-fact { display: grid; gap: 3px; }
.hero-fact dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-fact dd {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.hero-footnote {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-scroll::before {
  content: '';
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, transparent, var(--green));
}
@media (min-width: 1080px) and (min-height: 760px) { .hero-scroll { display: flex; } }

@media (max-width: 860px) {
  .hero-inner { min-height: 0; padding-block: 40px 0; align-items: start; }
  .hero-copy { order: 1; }
  .hero-visual { position: relative; inset: auto; margin-top: 26px; order: 2; }
  .hero-visual img {
    position: relative;
    top: auto; left: auto;
    width: 128%;
    margin-left: -14%;
    transform: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }
  .hero-copy { max-width: none; }
}

/* -------------------------------- cards ---------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.card:hover { border-color: rgba(0, 230, 118, 0.32); }
.card-pad { padding: clamp(20px, 2.4vw, 30px); }

.card-link { display: grid; }
.card-link:hover .card-media img,
.card-link:hover .card-media .rig { transform: scale(1.035); }
.card-link:hover .card-title { color: var(--green-bright); }

.card-media {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #0d1712, #070d0a 70%);
  aspect-ratio: 4 / 3;
}
.card-media img, .card-media .rig {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card-media .rig { object-fit: contain; padding: 12% 5% 4%; }
.card-media.wide { aspect-ratio: 16 / 10; }
.card-media.tall { aspect-ratio: 3 / 4; }

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.card-badge-right { left: auto; right: 12px; }

.card-body { padding: clamp(16px, 1.9vw, 24px); display: grid; gap: 10px; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  transition: color 0.18s;
}
.card-sub { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}
.price {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.price small { font-size: 0.68rem; color: var(--muted-2); letter-spacing: 0.06em; }
.price-ceiling { color: var(--green); }

/* category cards */
.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0b1410, #070d0a);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.cat-card:hover { border-color: rgba(0, 230, 118, 0.42); transform: translateY(-4px); }
.cat-card .card-media { aspect-ratio: 4 / 3; background: transparent; }
.cat-card .card-media img { object-fit: contain; padding: 2%; }
.cat-card-body { padding: clamp(18px, 2vw, 26px); display: grid; gap: 10px; }
.cat-count {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.cat-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.cat-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* feature block */
.feature {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
  transition: border-color 0.2s;
}
.feature:hover { border-color: var(--line-2); }
.feature-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(0, 230, 118, 0.28);
  background: rgba(0, 230, 118, 0.07);
  color: var(--green);
  margin-bottom: 4px;
}
.feature h3 { font-size: 1.05rem; font-family: var(--font-display); letter-spacing: 0; }
.feature p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------- panels -------------------------------- */
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(22px, 3vw, 38px);
}
.panel-flat { background: var(--panel); }

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 230, 118, 0.22);
  background: rgba(0, 230, 118, 0.045);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-2);
}
.notice svg { flex: none; color: var(--green); margin-top: 2px; }
.notice strong { color: var(--text); font-weight: 600; }
.notice-amber {
  border-color: rgba(255, 190, 90, 0.28);
  background: rgba(255, 190, 90, 0.05);
}
.notice-amber svg { color: #ffbe5a; }

/* -------------------------------- product -------------------------------- */
.pdp { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 1000px) {
  .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); align-items: start; }
}
.pdp-media {
  position: relative;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 40%, #0e1a14, #060b09 72%);
  overflow: hidden;
  padding-top: 46px;
}
.pdp-media .card-badge { top: 12px; left: 14px; }
.pdp-media img { width: 100%; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.pdp-thumb {
  border: 1px solid var(--line);
  padding: 6px;
  background: #080f0c;
  transition: border-color 0.16s;
}
.pdp-thumb:hover, .pdp-thumb[data-active='true'] { border-color: rgba(0, 230, 118, 0.5); }

.pdp-info { display: grid; gap: 20px; position: sticky; top: 100px; }
.pdp-price {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pdp-price .pdp-price-note {
  font-size: 0.78rem;
  color: var(--muted-2);
  line-height: 1.45;
  max-width: 40ch;
}
.pdp-price .amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.02em;
}
@media (min-width: 1000px) { .pdp-info { position: sticky; } }

.buy-list { display: grid; gap: 0; }
.buy-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}
.buy-list li:last-child { border-bottom: 0; }
.buy-list svg { flex: none; color: var(--green); margin-top: 3px; }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th {
  width: 42%;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.spec-table td { color: var(--text-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #ffbe5a;
}
.pending::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* -------------------------------- toolbar -------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
  padding: 0.5em 0.9em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.16s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--line-2); }
.filter-btn[aria-pressed='true'] {
  color: var(--green-ink);
  background: var(--green);
  border-color: var(--green);
  font-weight: 500;
}
.select {
  appearance: none;
  padding: 0.55em 2.2em 0.55em 0.9em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: #0a110e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2300e676' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-2);
  cursor: pointer;
}
.result-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* --------------------------------- forms --------------------------------- */
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.input, .textarea, .select-full {
  width: 100%;
  padding: 0.85em 1em;
  background: #080f0c;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color 0.16s, background 0.16s;
}
.input:focus, .textarea:focus, .select-full:focus {
  border-color: var(--green);
  outline: none;
  background: #0a1310;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.textarea { min-height: 150px; resize: vertical; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.check input { margin-top: 2px; accent-color: var(--green); }

/* ------------------------------- accordion ------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.16s;
}
.acc-trigger:hover { color: var(--green-bright); }
.acc-icon {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
}
.acc-icon::before, .acc-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s;
}
.acc-icon::before { inset: 7px 0 auto; height: 1.5px; }
.acc-icon::after { inset: 0 auto 0 7px; width: 1.5px; }
.acc-item[data-open='true'] .acc-icon::after { transform: scaleY(0); opacity: 0; }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}
.acc-item[data-open='true'] .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p, .acc-panel ul { color: var(--muted); font-size: 0.93rem; line-height: 1.65; padding-bottom: 20px; max-width: 72ch; }
.acc-panel li { position: relative; padding-left: 1.3em; margin-bottom: 0.5em; }
.acc-panel li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px; background: var(--green); transform: rotate(45deg);
}

/* --------------------------------- steps --------------------------------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  gap: 10px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 760px) {
  .step { grid-template-columns: 78px minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: baseline; }
}
.step-n {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* --------------------------------- footer -------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #070c0a, #040706);
  padding-top: clamp(48px, 6vw, 80px);
}
.footer-grid {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
  grid-template-columns: 1fr;
  padding-bottom: clamp(36px, 5vw, 60px);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); max-width: 34ch; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted-2);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a:hover { color: var(--text-2); }

.demo-strip {
  background: rgba(0, 230, 118, 0.06);
  border-top: 1px solid rgba(0, 230, 118, 0.18);
}
.demo-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding-block: 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-strip strong { color: var(--green); font-weight: 500; }

/* --------------------------------- cta ----------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 230, 118, 0.22);
  background:
    radial-gradient(ellipse 70% 120% at 88% 50%, rgba(0, 230, 118, 0.16), transparent 62%),
    linear-gradient(180deg, #0a1310, #070d0a);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .cta-band { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: center; }
  .cta-band .cta-actions { justify-self: end; }
}

/* ------------------------------ breadcrumbs ------------------------------ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 20px;
}
.crumbs a:hover { color: var(--green); }
.crumbs span { opacity: 0.5; }

/* -------------------------------- utilities ------------------------------ */
.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;
}
.skip-link {
  position: absolute;
  top: -60px; left: 20px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.empty-state {
  padding: clamp(40px, 6vw, 80px) 0;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

/* reveal on scroll */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------- mock configurator ui ------------------------ */
.mock {
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0a1310, #070d0a);
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}
.mock-head { display: flex; align-items: center; gap: 9px; }
.mock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  flex: none;
}
.mock-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.mock-bar span { display: block; height: 100%; background: var(--green); }
.mock-rows { display: grid; gap: 6px; }
.mock-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.014);
}
.mock-row.is-on { border-color: rgba(0, 230, 118, 0.35); color: var(--text-2); background: rgba(0, 230, 118, 0.05); }
.mock-row.is-warn { border-color: rgba(255, 190, 90, 0.4); background: rgba(255, 190, 90, 0.05); color: #ffcf8a; }
.mock-check {
  width: 9px; height: 9px;
  border: 1px solid var(--line-3);
  border-radius: 2px;
}
.mock-row.is-on .mock-check { background: var(--green); border-color: var(--green); }
.mock-row.is-warn .mock-check { border-color: #ffbe5a; }
.mock-price { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; opacity: 0.8; }
.mock-summary {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 4px;
}

/* ------------------------------ configurator ----------------------------- */
.build-layout {
  display: grid;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}
@media (min-width: 1060px) {
  .build-layout { grid-template-columns: minmax(0, 1fr) 372px; }
}

.build-form { display: grid; gap: clamp(26px, 3vw, 38px); }

.build-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.build-legend {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.build-num { font-size: 0.74rem; color: var(--green); padding-top: 3px; letter-spacing: 0.1em; }
.build-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 3px;
}
.build-desc { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.5; max-width: 62ch; }

.opt-grid { display: grid; gap: 10px; }
@media (min-width: 720px) { .opt-grid { grid-template-columns: 1fr 1fr; } }
.opt-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .opt-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.opt-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .opt-grid-2 { grid-template-columns: 1fr 1fr; } }

.build-duo { display: grid; gap: clamp(26px, 3vw, 38px); }
@media (min-width: 900px) { .build-duo { grid-template-columns: 1fr 1fr; align-items: start; } }

.opt { position: relative; display: block; cursor: pointer; }
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.opt-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 60px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.opt:hover .opt-body { border-color: var(--line-2); background: rgba(255, 255, 255, 0.035); }
.opt input:checked + .opt-body {
  border-color: rgba(0, 230, 118, 0.55);
  background: rgba(0, 230, 118, 0.07);
}
.opt input:focus-visible + .opt-body { outline: 2px solid var(--green); outline-offset: 2px; }

.opt-main { display: grid; gap: 3px; min-width: 0; flex: 1; }
.opt-title { font-size: 0.93rem; font-weight: 500; color: var(--text); line-height: 1.35; }
.opt-sub { font-size: 0.79rem; color: var(--muted); line-height: 1.45; }
.opt-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.opt-warn { color: #ffbe5a; }
.opt-tick {
  flex: none;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  position: relative;
}
.opt input:checked + .opt-body .opt-tick { border-color: var(--green); }
.opt input:checked + .opt-body .opt-tick::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}
.opt input[type="checkbox"]:checked + .opt-body .opt-tick { border-radius: 3px; }
.opt input[type="checkbox"]:checked + .opt-body .opt-tick::after { border-radius: 1px; }

.opt-lg .opt-body { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.opt-lg .opt-media { display: block; background: radial-gradient(ellipse at 50% 40%, #0d1712, #070d0a); }
.opt-lg .opt-media img { width: 100%; height: auto; display: block; }
.opt-lg .opt-main { padding: 13px 15px 4px; }
.opt-lg .opt-meta { padding: 0 15px 13px; align-items: flex-start; flex-direction: row; }
.opt-lg .opt-tick { display: none; }

.build-summary { position: relative; }
@media (min-width: 1060px) { .build-summary { position: sticky; top: 100px; } }
.sum-card {
  border: 1px solid rgba(0, 230, 118, 0.22);
  background: linear-gradient(180deg, #0b1410, #070d0a);
  padding: clamp(18px, 2.2vw, 24px);
  display: grid;
  gap: 16px;
}
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sum-list { display: grid; gap: 0; max-height: 300px; overflow-y: auto; }
.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.4;
}
.sum-row:last-child { border-bottom: 0; }
.sum-row span:first-child { min-width: 0; }
.sum-row .mono { flex: none; color: var(--text); }
.sum-total-block { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 9px; }
.sum-total { font-size: 1.35rem; color: var(--green); letter-spacing: -0.02em; }
.sum-bar { height: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.sum-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-dim), var(--green)); transition: width 0.3s var(--ease); }
.sum-warn-wrap { display: grid; gap: 8px; }
.sum-warn {
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  font-size: 0.79rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 190, 90, 0.35);
  background: rgba(255, 190, 90, 0.06);
  color: #ffd8a3;
}
.sum-warn.is-error {
  border-color: rgba(255, 85, 102, 0.4);
  background: rgba(255, 85, 102, 0.07);
  color: #ffb3ba;
}
.sum-warn-icon {
  flex: none;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  margin-top: 1px;
}
.sum-ok { font-size: 0.79rem; color: var(--green); font-family: var(--font-mono); letter-spacing: 0.02em; }
.sum-actions { display: grid; gap: 8px; }

/* ---------------------------------- cart --------------------------------- */
.cart-layout {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 940px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; } }

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:first-child { border-top: 1px solid var(--line); }
.cart-row-info { display: grid; gap: 4px; min-width: 0; }
.cart-row-info strong { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.cart-row-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}
.qty-btn:hover { border-color: var(--green); color: var(--green); }
.cart-row-qty span { min-width: 22px; text-align: center; font-size: 0.9rem; }
.cart-row-price { font-size: 0.95rem; min-width: 76px; text-align: right; }
.cart-row-remove {
  width: 26px;
  height: 26px;
  color: var(--muted-2);
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.15s;
}
.cart-row-remove:hover { color: var(--red); }

.cart-summary {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}
@media (min-width: 940px) { .cart-summary { position: sticky; top: 100px; } }
.cart-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--muted);
  padding: 5px 0;
}
.cart-sum-total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px;
  color: var(--text);
  font-size: 0.95rem;
  align-items: baseline;
}
.cart-sum-total .mono { font-size: 1.15rem; color: var(--green); }
.cart-empty { display: grid; gap: 10px; justify-items: start; padding: clamp(30px, 5vw, 56px) 0; }
.mini-cart .cart-row { grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; }
.mini-cart .cart-row-qty, .mini-cart .cart-row-remove { display: none; }
.mini-cart .cart-row-price { text-align: right; }

/* --------------------------------- toast --------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  max-width: calc(100vw - 32px);
  background: #0d1712;
  border: 1px solid rgba(0, 230, 118, 0.42);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.9);
  font-size: 0.86rem;
  color: var(--text);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: none; }
.toast a { color: var(--green); font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }

/* -------------------------------- contact -------------------------------- */
.contact-layout {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }

.faq-group { margin-bottom: clamp(28px, 3.5vw, 44px); }
.faq-group-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

/* -------------------------------- checkout ------------------------------- */
.checkout-layout {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  padding-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 960px) { .checkout-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }

/* -------------------------------- responsive ----------------------------- */
@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .cart-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; position: relative; }
  .cart-row-price { text-align: left; grid-column: 1; grid-row: 2; }
  .cart-row-qty { grid-column: 2; grid-row: 2; justify-self: end; }
  .cart-row-remove { position: absolute; right: 0; top: 12px; }
  .cart-summary { position: static !important; }
  .opt-body { padding: 12px 13px; }
  .hero-facts { gap: 14px 24px; }
  .hero-fact dd { font-size: 0.95rem; }
  .section-head { flex-direction: column; align-items: start; }
  .hero-facts { gap: 16px 26px; }
  .toolbar { align-items: stretch; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* cart row kind label */
.cart-row-kind {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* catalogue toolbar: keep the controls on one line */
.toolbar-search {
  width: 210px;
  flex: 0 0 auto;
  padding: 0.55em 0.8em;
  font-size: 0.82rem;
}
.toolbar-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-left: auto; }
@media (max-width: 700px) {
  .toolbar-search { width: 100%; }
  .toolbar-tools { width: 100%; margin-left: 0; }
}
