/* S&R's Cards, Comics and Coins Oh-My! — "Digital Vault of Discovery" */
:root {
  --bg: #0c0906;
  --bg2: #141009;
  --card: #1a140b;
  --gold: #e8b93c;
  --gold-deep: #a87f24;
  --orange: #e07b2e;
  --orange-deep: #b25a1a;
  --orange-bright: #ff8c2e;
  --blue: #3a86ff;
  --blue-deep: #1d5fd1;
  --blue-light: #6ea8ff;
  --cream: #f3e9d2;
  --muted: #b3a077;
  --line: #3a2f18;
  --purple: #8a5cc0;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .display {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  line-height: 1.25;
}
a { color: var(--blue-light); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: rgba(12, 9, 6, .96);
  border-bottom: 2px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--gold); object-fit: cover;
}
.brand-name { font-family: Georgia, serif; font-size: 1.15rem; color: var(--gold); }
.brand-name small { display: block; font-size: .68rem; color: var(--muted); font-family: system-ui, sans-serif; letter-spacing: 2px; }
nav.main-nav { margin-left: auto; }
nav.main-nav ul { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--cream); text-decoration: none; font-size: .92rem;
  padding: 8px 12px; border-radius: 8px;
}
nav.main-nav a:hover, nav.main-nav a.active { background: #241b0d; color: var(--gold); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 2px solid var(--gold);
  color: var(--gold); border-radius: 8px; font-size: 1.3rem; padding: 4px 12px; cursor: pointer;
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--line); }
.hero img.banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: relative;
  background: linear-gradient(180deg, rgba(12,9,6,.15) 0%, rgba(12,9,6,.55) 55%, rgba(12,9,6,.94) 100%);
  display: flex; align-items: flex-end;
  min-height: clamp(260px, 44vw, 480px);
}
.hero-text { max-width: 1100px; margin: 0 auto; padding: 30px 20px 40px; width: 100%; }
.hero-text .kicker { color: var(--gold); letter-spacing: 3px; font-size: .8rem; text-transform: uppercase; }
.hero-text h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); margin: 6px 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero-text p.tagline { font-size: 1.15rem; color: var(--cream); max-width: 640px; }
.cta-row { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn {
  display: inline-block; background: linear-gradient(135deg, var(--gold), var(--orange), var(--orange-deep)); color: #221806;
  font-weight: 700; padding: 12px 24px; border-radius: 10px;
  text-decoration: none; border: 2px solid var(--orange-deep);
}
.btn:hover { background: linear-gradient(135deg, #f5cd5e, #ef8f3d); }
.btn.ghost { background: transparent; color: var(--orange-bright); border-color: var(--orange); }
.btn.ghost:hover { background: rgba(224,123,46,.18); color: #fff; border-color: var(--orange-bright); }
.btn.ghost.blue { color: var(--blue-light); border-color: var(--blue); }
.btn.ghost.blue:hover { background: rgba(58,134,255,.16); color: #fff; border-color: var(--blue-light); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.7rem; }
.section-head .more { font-size: .9rem; white-space: nowrap; }
.lede { color: var(--muted); max-width: 720px; margin-bottom: 24px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; text-decoration: none; color: var(--cream);
  transition: transform .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--orange-bright); box-shadow: 0 4px 18px rgba(255,140,46,.35), 0 0 0 1px var(--blue); }
.cat-card .emoji { font-size: 2rem; }
.cat-card h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.cat-card p { font-size: .82rem; color: var(--muted); }

/* Product grid + empty states */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.product-card .ph {
  aspect-ratio: 4/3; background: #241b0d; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem; overflow: hidden;
}
.product-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .info { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 1rem; color: var(--cream); font-family: system-ui, sans-serif; }
.product-card .price { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.badge {
  display: inline-block; font-size: .72rem; background: #2a2110; color: var(--gold);
  border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; width: fit-content;
}
.empty-state {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: var(--muted);
}
.empty-state .big { font-size: 2.4rem; margin-bottom: 8px; }
.empty-state h3 { color: var(--gold); margin-bottom: 6px; }

/* Filters */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.filters input[type="search"], .filters select {
  background: var(--bg); color: var(--cream); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font-size: .95rem;
}
.filters input[type="search"] { flex: 1 1 200px; }
.filters label { font-size: .8rem; color: var(--muted); align-self: center; }

/* Search promo */
.search-promo {
  background: linear-gradient(135deg, #1c1408, #241a06);
  border: 1px solid var(--gold-deep); border-radius: var(--radius);
  padding: 40px 28px; text-align: center;
}
.search-promo h2 { margin-bottom: 8px; }
.search-promo p { color: var(--muted); max-width: 640px; margin: 0 auto 18px; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: Georgia, serif; font-size: 2.2rem; color: var(--gold-deep);
  display: block; margin-bottom: 6px;
}

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.form-card label { display: block; font-size: .85rem; color: var(--muted); margin: 14px 0 4px; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; background: var(--bg); color: var(--cream);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font-size: 1rem;
}
.todo-note {
  background: #2a1a08; border: 1px dashed var(--gold-deep); border-radius: 8px;
  padding: 10px 14px; font-size: .85rem; color: var(--gold); margin: 14px 0;
}

/* Footer */
footer.site-footer { border-top: 2px solid var(--line); background: var(--bg2); padding: 40px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-bottom: 24px; }
.footer-grid h4 { color: var(--gold); font-size: .95rem; margin-bottom: 10px; font-family: Georgia, serif; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--gold); }
.fineprint { color: #6e6046; font-size: .8rem; text-align: center; border-top: 1px solid var(--line); padding-top: 18px; }

/* Page hero (interior pages) */
.page-hero { background: var(--bg2); border-bottom: 2px solid var(--line); padding: 48px 0 36px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: var(--muted); max-width: 720px; margin-top: 8px; }

@media (max-width: 760px) {
  nav.main-nav { display: none; width: 100%; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 10px 0; }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  section.block { padding: 40px 0; }
  .hero-text { padding: 24px 16px 28px; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-text p.tagline { font-size: 1rem; }
  .cta-row { gap: 10px; }
  .cta-row .btn { padding: 10px 16px; font-size: .92rem; }
}

/* Quick Grade Check */
.grader-box { background: rgba(255,255,255,.03); border: 1px solid rgba(212,175,55,.25); border-radius: 12px; padding: 24px; max-width: 640px; margin: 0 auto; }
.grade-q { margin-bottom: 20px; }
.grade-q h3 { color: var(--gold); margin-bottom: 8px; font-size: 1.05rem; }
.grade-q label { display: block; padding: 8px 12px; margin: 6px 0; background: rgba(255,255,255,.04); border-radius: 8px; cursor: pointer; font-size: .95rem; }
.grade-q label:hover { background: rgba(212,175,55,.12); }
.grade-q input { margin-right: 10px; accent-color: var(--gold); }
.grade-result { margin-top: 20px; padding: 20px; border: 1px solid var(--gold); border-radius: 10px; background: rgba(212,175,55,.08); text-align: center; }
.grade-result h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 8px; }

/* Certificate of Authenticity */
.cert-sample { max-width: 560px; margin: 0 auto; padding: 12px; background: linear-gradient(135deg, #2a2118, #1a140d); border: 2px solid var(--gold); border-radius: 6px; }
.cert-inner { border: 1px solid rgba(212,175,55,.5); border-radius: 4px; padding: 28px 24px; text-align: center; background: rgba(0,0,0,.25); }
.cert-head { font-size: .8rem; letter-spacing: 2px; color: var(--gold); margin-bottom: 12px; }
.cert-head span { display: block; font-size: .65rem; letter-spacing: 4px; }
.cert-title { font-family: Georgia, serif; font-size: 1.6rem; color: #f5e6c4; margin-bottom: 16px; }
.cert-body p { font-size: .92rem; margin-bottom: 12px; }
.cert-table { margin: 0 auto 14px; font-size: .88rem; text-align: left; border-collapse: collapse; }
.cert-table td { padding: 4px 14px; border-bottom: 1px dotted rgba(212,175,55,.3); }
.cert-table td:first-child { color: var(--muted); }
.cert-fine { font-size: .78rem; color: var(--muted); }
.cert-sign { margin-top: 18px; font-family: Georgia, serif; font-style: italic; color: var(--gold); font-size: 1.1rem; }
