/* ==========================================================================
   jamesdiecast.com — Design System
   Concept: parts-catalog meets collector card. Not a storefront template —
   a reference binder for 1:64 die-cast, built around the collector number
   badge (the same role the printed number plays on a real blister card).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink:        #1B2430;
  --ink-soft:   #3C4859;
  --paper:      #ECE7DC;
  --paper-raised:#F6F3EA;
  --line:       #C9C2AE;

  --orange:     #E85D0C;
  --orange-ink: #7A2F06;
  --blueprint:  #2B4C7E;
  --blueprint-soft: #DCE5F0;

  --th-silver:  #8B8B82;
  --th-silver-bg:#E4E2DA;
  --sth-gold:   #A6791E;
  --sth-gold-bg:#F3E6BE;

  --radius: 3px;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blueprint); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, .snipcart-add-item:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--ink);
  color: var(--paper-raised);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 20px;
}
.breadcrumb a { color: var(--paper-raised); text-decoration-color: rgba(236,231,220,0.4); }

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
}
h1 { font-size: 32px; margin: 28px 0 6px; }
h2 {
  font-size: 20px;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ink);
  display: inline-block;
}
h3 { font-size: 16px; margin: 20px 0 6px; }

.intro { font-size: 17px; color: var(--ink-soft); max-width: 62ch; }
.notes { font-size: 14px; color: var(--ink-soft); background: var(--paper-raised); border-left: 3px solid var(--line); padding: 10px 14px; }

/* ---------- Collector Badge (signature element) ---------- */
.collector-badge {
  --badge-size: 84px;
  width: var(--badge-size);
  height: var(--badge-size);
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper-raised);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.collector-badge .num {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.collector-badge .num.long { font-size: 15px; }
.collector-badge .num.longer { font-size: 12px; }
.collector-badge .tag {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 2px;
}
.collector-badge.th   { border-color: var(--th-silver); background: var(--th-silver-bg); }
.collector-badge.sth  { border-color: var(--sth-gold);  background: var(--sth-gold-bg); }

.page-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.page-header h1 { margin: 0; }
.page-header .meta-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Badges (inline tags) ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius);
  margin: 2px 4px 2px 0;
}
.badge-unverified {
  display: block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 10px 14px;
  margin: 16px 0;
  border-radius: var(--radius);
}
.tag-chase { background: var(--sth-gold-bg); color: var(--orange-ink); border: 1px solid var(--sth-gold); }
.tag-new   { background: var(--blueprint-soft); color: var(--blueprint); border: 1px solid var(--blueprint); }
.tag-unverified { background: var(--orange); color: #fff; }

/* ---------- Buy box ---------- */
.buy-box {
  background: var(--ink);
  color: var(--paper-raised);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.buy-box .price {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
}
.buy-box-reference { background: var(--paper-raised); color: var(--ink-soft); border: 1px dashed var(--line); }
.buy-btn, .snipcart-add-item {
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}
.buy-btn:hover, .snipcart-add-item:hover { background: var(--orange-ink); }

/* ---------- Specs table ---------- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
  margin: 12px 0 24px;
}
.specs-table tr { border-bottom: 1px solid var(--line); }
.specs-table th, .specs-table td { text-align: left; padding: 9px 10px; }
.specs-table th {
  width: 40%;
  color: var(--ink-soft);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.specs-table td { font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq-item h3 { margin: 0 0 6px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; }
.faq-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Related / checklist ---------- */
.related ul, .checklist { list-style: none; padding: 0; margin: 0; }
.related li {
  border-bottom: 1px dotted var(--line);
  padding: 8px 0;
}
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.checklist li {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.checklist li:has(.tag-chase) { border-left-color: var(--sth-gold); }
.checklist li:has(.tag-new) { border-left-color: var(--blueprint); }
.checklist li:has(.tag-unverified) { border-left-color: var(--orange); }
.checklist li a { font-family: var(--font-body); font-weight: 500; }

/* ---------- Product images (front/back) ---------- */
.product-images {
  display: flex;
  gap: 14px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.product-images figure {
  margin: 0;
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  flex: 1 1 220px;
  max-width: 280px;
}
.product-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.product-images figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Stats strip (homepage) ---------- */
.stats-strip {
  display: flex;
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin: 20px 0 8px;
  overflow: hidden;
}
.stats-strip .stat {
  flex: 1;
  padding: 16px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stats-strip .stat:last-child { border-right: none; }
.stats-strip .stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--orange-ink);
}
.stats-strip .stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (max-width: 600px) {
  .stats-strip { flex-wrap: wrap; }
  .stats-strip .stat { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
}

/* ---------- Line cards (homepage / hot-wheels hub) ---------- */
.line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 40px;
}
.line-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper-raised);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease, background 0.12s ease;
}
.line-card:hover { background: var(--orange); color: #fff; border-color: var(--orange-ink); transform: translateY(-2px); }
.line-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
}
.line-card-count {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.75;
}

/* ---------- Footer ---------- */
footer {
  border-top: 3px solid var(--ink);
  margin-top: 48px;
  padding: 20px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  h1 { font-size: 24px; }
  .page-header { flex-wrap: wrap; }
  .checklist { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
