/* ==========================================================================
   CHINABRIDGE — Design System
   Sovereign by design. A hardware wallet brand.
   ========================================================================== */

/* -------- Reset -------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }

/* -------- Tokens -------- */
:root {
  /* Palette */
  --bg: #0A0E1A;
  --bg-elev: #131826;
  --bg-card: #171D2E;
  --border: #1F2638;
  --border-strong: #2A3148;
  --text: #F5F7FA;
  --text-muted: #8892A6;
  --text-dim: #5C6578;
  --gold: #D4A855;
  --gold-bright: #E8C274;
  --gold-dim: #9B7B3D;
  --accent: #6AA6FF;
  --success: #4ADE80;
  --danger: #F87171;
  --warning: #FBBF24;

  /* Gradients */
  --grad-hero: radial-gradient(ellipse at top, #1A2240 0%, #0A0E1A 60%);
  --grad-gold: linear-gradient(135deg, #E8C274 0%, #D4A855 50%, #9B7B3D 100%);
  --grad-card: linear-gradient(180deg, #171D2E 0%, #0F1320 100%);
  --grad-metal: linear-gradient(135deg, #3A4358 0%, #1A1F2E 50%, #2A3048 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 40px rgba(212,168,85,0.25);

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Type */
  --font-display: 'Playfair Display', 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 420ms;
}

/* -------- Typography -------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); }
h3 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--text-muted); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 60ch; }
.mono { font-family: var(--font-mono); }
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container-narrow { max-width: var(--container-narrow); }
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.grid { display: grid; gap: var(--space-5); }
.flex { display: flex; gap: var(--space-4); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* -------- Navigation -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav__link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.nav__cart:hover { color: var(--gold); border-color: var(--gold-dim); }
.nav__cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
}
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  color: var(--text);
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; align-items: center; justify-content: center; }
  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-elev);
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
    gap: var(--space-4);
  }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-gold);
  color: #1A1308;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border);
}
.btn--dark:hover { border-color: var(--gold-dim); }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-10);
  background: var(--grad-hero);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(212,168,85,0.08) 0, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(106,166,255,0.05) 0, transparent 45%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero h1 { margin: var(--space-4) 0; }
.hero__actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
.hero__trust {
  margin-top: var(--space-7);
  display: flex; gap: var(--space-6); flex-wrap: wrap;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.hero__trust-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 0.875rem; color: var(--text-muted);
}
.hero__trust-item svg { color: var(--gold); }

/* -------- Card -------- */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: all var(--dur) var(--ease);
}
.card--hover:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* -------- Product card -------- */
.product-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse at center, #1E2538 0%, #0A0E1A 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.product-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(212,168,85,0.15), transparent 60%);
  pointer-events: none;
}
.product-card__badge {
  position: absolute; top: var(--space-4); left: var(--space-4);
  padding: 4px 10px;
  background: rgba(212,168,85,0.12);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-card__body { padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.product-card__tag { font-size: 0.75rem; color: var(--gold); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.product-card__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.product-card__desc { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: var(--space-3); }
.product-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.product-card__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.product-card__price-from { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* -------- Feature grid -------- */
.feature {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(212,168,85,0.15), rgba(212,168,85,0.05));
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.feature__title { color: var(--text); font-size: 1.125rem; font-weight: 600; }
.feature__desc { font-size: 0.9375rem; color: var(--text-muted); }

/* -------- Spec list -------- */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.specs__row {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.specs__row:nth-child(odd) { padding-right: var(--space-6); border-right: 1px solid var(--border); }
.specs__row:nth-child(even) { padding-left: var(--space-6); }
.specs__key { color: var(--text-muted); }
.specs__val { color: var(--text); font-weight: 500; text-align: right; }
@media (max-width: 720px) {
  .specs { grid-template-columns: 1fr; }
  .specs__row:nth-child(odd) { padding-right: 0; border-right: none; }
  .specs__row:nth-child(even) { padding-left: 0; }
}

/* -------- Badge / trust row -------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-row__item {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  text-align: center;
}
.trust-row__num { font-family: var(--font-display); font-size: 2.25rem; color: var(--gold); line-height: 1; }
.trust-row__label { font-size: 0.8125rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* -------- Form -------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.field__label--req::after { content: ' *'; color: var(--gold); }
.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--dur) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,85,0.12);
}
.input::placeholder { color: var(--text-dim); }
.textarea { min-height: 120px; resize: vertical; }
.field__hint { font-size: 0.8125rem; color: var(--text-dim); }

/* Radio/checkbox card */
.option-card {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.option-card:hover { border-color: var(--gold-dim); }
.option-card input { accent-color: var(--gold); width: 18px; height: 18px; }
.option-card--active { border-color: var(--gold); background: rgba(212,168,85,0.05); }

/* -------- Tables -------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.table th { color: var(--text-muted); font-weight: 500; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* -------- Footer -------- */
.footer {
  background: #070A13;
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0 var(--space-5);
  color: var(--text-muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-3); max-width: 320px; }
.footer__tag { font-size: 0.875rem; line-height: 1.6; }
.footer__address {
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: var(--space-3);
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: var(--space-4);
}
.footer__social a {
  color: var(--text-dim);
  transition: color 200ms ease;
}
.footer__social a:hover { color: var(--gold); }
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.footer__list { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__list a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--dur); }
.footer__list a:hover { color: var(--gold); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4);
  padding-top: var(--space-5);
  font-size: 0.8125rem; color: var(--text-dim);
}
.footer__legal-row { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer__legal-row a:hover { color: var(--gold); }

/* Risk banner inside footer */
.risk-banner {
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: rgba(251,191,36,0.04);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.risk-banner strong { color: var(--warning); }

/* -------- Cookie banner -------- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4); left: var(--space-4); right: var(--space-4);
  max-width: 520px;
  margin-left: auto;
  z-index: 200;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  transform: translateY(200%);
  transition: transform var(--dur-slow) var(--ease);
}
.cookie-banner--show { transform: translateY(0); }
.cookie-banner__title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: var(--space-2); }
.cookie-banner__body { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-4); line-height: 1.6; }
.cookie-banner__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.cookie-banner__actions .btn { flex: 1; min-width: 120px; }

.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 300;
  align-items: center; justify-content: center;
  padding: var(--space-4);
}
.cookie-modal--open { display: flex; }
.cookie-modal__body {
  width: 100%; max-width: 560px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  max-height: 86vh; overflow-y: auto;
}
.cookie-cat {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.cookie-cat__info h4 { margin-bottom: 4px; }
.cookie-cat__info p { font-size: 0.8125rem; }
.switch { position: relative; width: 44px; height: 24px; background: var(--border-strong); border-radius: var(--r-full); cursor: pointer; flex-shrink: 0; transition: background var(--dur); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--text); border-radius: var(--r-full); transition: transform var(--dur) var(--ease); }
.switch--on { background: var(--gold); }
.switch--on::after { transform: translateX(20px); background: var(--bg); }
.switch--locked { opacity: 0.5; cursor: not-allowed; }

/* -------- Breadcrumb -------- */
.breadcrumb {
  display: flex; gap: var(--space-2); align-items: center;
  font-size: 0.8125rem; color: var(--text-muted);
  padding: var(--space-5) 0;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: var(--text-dim); }

/* -------- Prose (legal pages) -------- */
.prose { max-width: 760px; color: var(--text-muted); line-height: 1.75; }
.prose h1 { margin-bottom: var(--space-4); }
.prose h2 { margin-top: var(--space-7); margin-bottom: var(--space-4); font-size: 1.75rem; }
.prose h3 { margin-top: var(--space-5); margin-bottom: var(--space-3); font-size: 1.25rem; color: var(--text); font-family: var(--font-body); font-weight: 600; }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-4); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose ul li { list-style: disc; color: var(--text-muted); margin-bottom: var(--space-2); }
.prose ol li { list-style: decimal; color: var(--text-muted); margin-bottom: var(--space-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; margin: var(--space-5) 0; border-collapse: collapse; font-size: 0.9375rem; }
.prose table th, .prose table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border); }
.prose table th { color: var(--text); background: var(--bg-elev); }

/* -------- Utilities -------- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); } .mt-8 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.hidden { display: none !important; }

/* Anim */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp var(--dur-slow) var(--ease) both; }

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

/* Grid layouts reusable */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* Product media holder with tilt */
.product-render {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(212,168,85,0.15));
}

/* Section divider */
.divider { height: 1px; background: var(--border); margin: var(--space-7) 0; }

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-elev);
}
.chip--gold { border-color: var(--gold-dim); color: var(--gold); background: rgba(212,168,85,0.06); }
.chip--success { border-color: rgba(74,222,128,0.3); color: var(--success); background: rgba(74,222,128,0.06); }

/* Accordion */
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-5) 0; text-align: left;
  font-size: 1.0625rem; font-weight: 500; color: var(--text);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__icon { color: var(--gold); transition: transform var(--dur) var(--ease); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease); }
.accordion__panel-inner { padding-bottom: var(--space-5); color: var(--text-muted); font-size: 0.9375rem; }

/* Page hero (non-home pages) */
.page-hero {
  padding: var(--space-8) 0 var(--space-6);
  background: var(--grad-hero);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom, rgba(212,168,85,0.05), transparent 60%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); }

/* Cart / checkout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 960px) { .checkout-grid { grid-template-columns: 1fr; } }

.step-row {
  display: flex; gap: var(--space-3); align-items: center;
  margin-bottom: var(--space-6);
}
.step {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.step--active { color: var(--gold); border-color: var(--gold-dim); background: rgba(212,168,85,0.06); }
.step--done { color: var(--success); border-color: rgba(74,222,128,0.25); }
.step__num {
  width: 22px; height: 22px;
  border-radius: var(--r-full);
  background: var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.step--active .step__num { background: var(--gold); color: var(--bg); }
.step--done .step__num { background: var(--success); color: var(--bg); }

.order-row {
  display: flex; gap: var(--space-4); padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.order-row__img {
  width: 80px; height: 80px;
  border-radius: var(--r-md);
  background: var(--grad-metal);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.order-row__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.order-row__name { font-weight: 600; color: var(--text); }
.order-row__meta { font-size: 0.8125rem; color: var(--text-muted); }
.order-row__price { font-family: var(--font-display); color: var(--gold); }

.order-total {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  margin-top: var(--space-4);
}
.order-total__row { display: flex; justify-content: space-between; font-size: 0.9375rem; color: var(--text-muted); }
.order-total__row--grand { font-size: 1.25rem; padding-top: var(--space-3); border-top: 1px solid var(--border); color: var(--text); }
.order-total__row--grand strong { font-family: var(--font-display); font-weight: 500; color: var(--gold); font-size: 1.5rem; }

.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  overflow: hidden;
}
.qty-stepper button {
  width: 32px; height: 32px;
  color: var(--text-muted);
  transition: color var(--dur);
}
.qty-stepper button:hover { color: var(--gold); }
.qty-stepper input {
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 600;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
