/* ── Reset & Variables ──────────────────────────────────────────────────────── */
:root {
  --bg:          #121212;
  --bg2:         #1a1a1a;
  --bg3:         #222222;
  --card:        #1e1e1e;
  --border:      #303030;
  --gold:        #c9a84c;
  --gold-light:  #e0c06a;
  --red:         #b52a2a;
  --red-light:   #d44545;
  --text:        #efefef;
  --text-muted:  #aaa;
  --text-dim:    #666;
  --white:       #fff;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 4px 24px rgba(0,0,0,.6);
  --transition:  .2s ease;
  --header-h:    72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

/* ── Accessibility 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: -100%; left: 1rem; z-index: 10000;
  padding: .6rem 1.25rem; background: var(--gold); color: var(--bg);
  font-weight: 700; font-size: .9rem; border-radius: var(--radius);
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* Global keyboard focus ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
button { cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ── Age Gate Overlay ───────────────────────────────────────────────────────── */
#age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.age-gate-box {
  background: var(--bg3);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 480px; width: 90%;
  text-align: center;
}
.age-gate-box h2 { font-size: 1.8rem; color: var(--gold); margin-bottom: .5rem; }
.age-gate-box p { color: var(--text-muted); margin-bottom: 1.5rem; }
.age-gate-box .btn-group { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex; align-items: center; gap: 2rem;
}
.site-logo {
  font-size: 1.4rem; font-weight: 800; letter-spacing: .04em;
  color: var(--white); text-transform: uppercase;
  display: flex; align-items: center; gap: .6rem;
  flex-shrink: 0;
}
.site-logo span { color: var(--gold); }
.site-logo img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.main-nav a {
  color: var(--text); font-size: .88rem; font-weight: 500;
  padding: .5rem .85rem; border-radius: var(--radius);
  text-transform: uppercase; letter-spacing: .06em;
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); background: rgba(201,168,76,.08); }

.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: 1rem; }
.cart-btn {
  position: relative; background: var(--gold); color: var(--bg);
  border: none; border-radius: var(--radius);
  padding: .5rem .9rem; font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .04em;
  display: flex; align-items: center; gap: .4rem;
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--gold-light); }
.cart-count {
  background: var(--red); color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
  position: absolute; top: -6px; right: -6px;
}

.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; }

/* ── Mobile nav ─────────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; inset: 0; top: var(--header-h); z-index: 400;
  background: var(--bg2); padding: 2rem 1.5rem;
  flex-direction: column; gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.1rem; color: var(--text); padding: .75rem 0; border-bottom: 1px solid var(--border); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/static/img/hero-bg.jpg');
  background-size: cover; background-position: center;
  opacity: .88;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 4rem 1.5rem;
  max-width: 680px;
}
.hero-eyebrow {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: #f0d580; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 2px; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.1;
  color: var(--white); margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.8);
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub { font-size: 1.1rem; color: #ccc; margin-bottom: 2rem; max-width: 520px; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.lead-time-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,76,.22); border: 1px solid rgba(201,168,76,.6);
  color: #f0d580; border-radius: 4px; padding: .4rem .9rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 1.5rem; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  text-transform: uppercase; border: 2px solid transparent;
  transition: all var(--transition); cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--bg); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: var(--bg); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: var(--red-light); border-color: var(--red-light); }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section Layout ──────────────────────────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.container { max-width: 1280px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: stretch; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--white); }
.section-header p { color: var(--text-muted); margin-top: .5rem; font-size: 1rem; }
.eyebrow {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .5rem; display: block;
}

/* ── Feature Badges ──────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.trust-item svg { color: var(--gold); width: 18px; height: 18px; }

/* ── Product Grid ────────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201,168,76,.12);
}
.product-img-wrap {
  position: relative; aspect-ratio: 1;
  background: var(--bg3); overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-badge {
  position: absolute; top: .6rem; left: .6rem;
  background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .2rem .5rem; border-radius: 3px;
}
.product-badge.ffl { background: var(--gold); color: var(--bg); }
.product-badge.new { background: #2a6b2a; }
.wishlist-btn {
  position: absolute; top: .6rem; right: .6rem;
  background: rgba(0,0,0,.6); border: none; border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem; transition: all var(--transition);
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--red-light); background: rgba(0,0,0,.8); }
.product-info { padding: 1rem; }
.product-category { font-size: .72rem; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.product-name {
  font-size: .95rem; font-weight: 700; color: var(--white);
  margin: .3rem 0 .6rem; line-height: 1.3;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--gold); }
.product-price { display: flex; align-items: center; gap: .6rem; }
.price-main { font-size: 1.15rem; font-weight: 800; color: var(--gold); }
.price-compare { font-size: .85rem; color: var(--text-dim); text-decoration: line-through; }
.product-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.product-actions .btn { flex: 1; font-size: .78rem; padding: .45rem .75rem; }
.ffl-note { font-size: .7rem; color: var(--gold); margin-top: .4rem; }

/* ── Stars ───────────────────────────────────────────────────────────────────── */
.stars { color: var(--gold); font-size: .85rem; letter-spacing: .05em; }

/* ── Category Pills ──────────────────────────────────────────────────────────── */
.category-pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.category-pill {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 999px;
  padding: .35rem 1rem; font-size: .82rem; color: var(--text-muted);
  transition: all var(--transition);
}
.category-pill:hover, .category-pill.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ── Shop Filters Sidebar ────────────────────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.filters-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .75rem; }
.filter-option { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .88rem; }
.filter-option input[type=checkbox] { accent-color: var(--gold); }
.price-range { display: flex; gap: .5rem; align-items: center; }
.price-range input { width: 80px; }

/* ── Product Detail ──────────────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.product-gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg3); aspect-ratio: 1; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 70px; height: 70px; border-radius: var(--radius);
  border: 2px solid var(--border); overflow: hidden; cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.product-detail-price { font-size: 2rem; color: var(--gold); font-weight: 800; margin: 1rem 0; }
.product-detail-price .compare { font-size: 1.1rem; color: var(--text-dim); text-decoration: line-through; margin-left: .5rem; }
.variant-selector { margin: 1rem 0; }
.variant-selector label { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: .5rem; }
.variant-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.variant-btn {
  padding: .4rem .9rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg3); color: var(--text); font-size: .85rem; cursor: pointer;
  transition: all var(--transition);
}
.variant-btn:hover, .variant-btn.selected { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.08); }
.stock-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; margin-bottom: 1rem; }
.stock-badge.in-stock { color: #4caf50; }
.stock-badge.low-stock { color: #ff9800; }
.stock-badge.out-stock { color: var(--red); }
.qty-selector { display: flex; align-items: center; gap: .5rem; margin: 1rem 0; }
.qty-selector button { background: var(--bg3); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: var(--radius); font-size: 1.1rem; }
.qty-selector input { width: 50px; text-align: center; background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); height: 36px; }
.specs-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .88rem; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: .6rem .5rem; }
.specs-table td:first-child { color: var(--text-muted); width: 40%; }

/* ── FFL Notice ──────────────────────────────────────────────────────────────── */
.ffl-notice {
  background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius); padding: 1rem; margin: 1rem 0; font-size: .88rem;
}
.ffl-notice strong { color: var(--gold); }

/* ── State Restriction Banner ────────────────────────────────────────────────── */
.restriction-banner {
  background: rgba(181,42,42,.12); border: 1px solid rgba(181,42,42,.35);
  border-radius: var(--radius); padding: 1rem; margin: 1rem 0; font-size: .88rem;
  color: var(--red-light);
}

/* ── Cart ────────────────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem; display: flex; gap: 1rem; align-items: center;
}
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; color: var(--white); }
.cart-item-price { color: var(--gold); font-weight: 700; }
.cart-item-remove { background: none; border: none; color: var(--text-dim); font-size: 1.2rem; }
.cart-item-remove:hover { color: var(--red); }
.cart-summary {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); align-self: start;
}
.cart-summary h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .5rem; }
.summary-row.total { font-weight: 800; font-size: 1.1rem; color: var(--white); border-top: 1px solid var(--border); margin-top: .75rem; padding-top: .75rem; }

/* ── Checkout ────────────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }
.checkout-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.checkout-section h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.form-control {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); padding: .65rem .9rem;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--text-dim); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { font-size: .78rem; color: var(--red-light); margin-top: .3rem; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.form-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; }
.form-check input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }

/* ── Cards / Panels ──────────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.card-header { border-bottom: 1px solid var(--border); margin-bottom: 1rem; padding-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.card-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); }

/* ── Build Configurator ──────────────────────────────────────────────────────── */
.build-config { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.config-step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.config-step h3 { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.step-number { background: var(--gold); color: var(--bg); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; flex-shrink: 0; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.option-card {
  background: var(--bg3); border: 2px solid var(--border); border-radius: var(--radius);
  padding: .75rem; text-align: center; cursor: pointer; transition: all var(--transition);
}
.option-card:hover { border-color: rgba(201,168,76,.4); }
.option-card.selected { border-color: var(--gold); background: rgba(201,168,76,.06); }
.option-card img { width: 60px; height: 60px; object-fit: contain; margin: 0 auto .5rem; }
.option-card span { font-size: .82rem; color: var(--text); display: block; }
.option-card .opt-price { font-size: .75rem; color: var(--gold); margin-top: .25rem; }
.build-summary-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.build-summary-line { display: flex; justify-content: space-between; font-size: .88rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.build-total { font-size: 1.25rem; font-weight: 800; color: var(--gold); display: flex; justify-content: space-between; margin-top: .75rem; }

/* ── Build Stage Tracker ─────────────────────────────────────────────────────── */
.stage-tracker { display: flex; gap: 0; margin: 2rem 0; overflow-x: auto; }
.stage-step {
  flex: 1; min-width: 100px; text-align: center; padding: .75rem .5rem;
  border-bottom: 3px solid var(--border); font-size: .75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; position: relative;
}
.stage-step.done { border-color: var(--gold); color: var(--gold); }
.stage-step.current { border-color: var(--gold-light); color: var(--white); font-weight: 700; }

/* ── Tables ──────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { background: var(--bg3); color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table a { color: var(--gold); }

/* ── Status Badges ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 4px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.badge-green { background: rgba(76,175,80,.15); color: #4caf50; border: 1px solid rgba(76,175,80,.25); }
.badge-gold { background: rgba(201,168,76,.15); color: var(--gold); border: 1px solid rgba(201,168,76,.25); }
.badge-red { background: rgba(181,42,42,.15); color: var(--red-light); border: 1px solid rgba(181,42,42,.25); }
.badge-gray { background: rgba(136,136,136,.12); color: var(--text-muted); border: 1px solid var(--border); }
.badge-blue { background: rgba(66,133,244,.12); color: #6ab3f8; border: 1px solid rgba(66,133,244,.2); }

/* ── Admin Sidebar ───────────────────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 1.5rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-logo { padding: 0 1.25rem 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.admin-logo span { font-size: 1rem; font-weight: 800; color: var(--white); text-transform: uppercase; }
.admin-logo small { color: var(--gold); font-size: .7rem; display: block; }
.admin-nav a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem 1.25rem; color: var(--text-muted); font-size: .88rem;
  transition: all var(--transition); border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--text); background: rgba(255,255,255,.04); border-left-color: var(--gold);
}
.admin-nav .nav-section {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim); padding: 1rem 1.25rem .25rem;
}
.admin-main { padding: 2rem; background: var(--bg); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .25rem; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.stat-sub { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }
.stat-card.gold { border-color: rgba(201,168,76,.3); }
.stat-card.gold .stat-value { color: var(--gold); }

/* ── Blog / Events ───────────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--transition), border-color var(--transition); }
.post-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.post-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg3); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-img img { transform: scale(1.05); }
.post-body { padding: 1.25rem; }
.post-date { font-size: .75rem; color: var(--text-muted); margin-bottom: .4rem; }
.post-title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; line-height: 1.3; }
.post-title a { color: inherit; }
.post-title a:hover { color: var(--gold); }
.post-excerpt { font-size: .88rem; color: var(--text-muted); }

/* ── Stats Bar ───────────────────────────────────────────────────────────────── */
.stats-bar { background: var(--gold); padding: 2.5rem 1.5rem; }
.stats-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--bg); line-height: 1; }
.stat-desc { font-size: .82rem; font-weight: 700; color: rgba(0,0,0,.6); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 4rem 1.5rem 2rem; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: .88rem; margin-top: .75rem; }
.footer-socials { display: flex; gap: .75rem; margin-top: 1rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: .88rem; margin-bottom: .4rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1280px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-muted); gap: 1rem; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--gold); }

/* ── Newsletter ──────────────────────────────────────────────────────────────── */
.newsletter-section { background: var(--bg3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.newsletter-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter-form { display: flex; gap: .5rem; margin-top: 1.25rem; }
.newsletter-form input { flex: 1; }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; border: 1px solid transparent; }
.alert-success { background: rgba(76,175,80,.1); border-color: rgba(76,175,80,.3); color: #81c784; }
.alert-error { background: rgba(181,42,42,.1); border-color: rgba(181,42,42,.3); color: #e57373; }
.alert-info { background: rgba(201,168,76,.08); border-color: rgba(201,168,76,.25); color: var(--gold); }

/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text-dim); }

/* ── Page Hero (inner pages) ─────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; }
.page-hero h1 { font-size: 2rem; font-weight: 800; color: var(--white); }
.page-hero p { color: var(--text-muted); margin-top: .5rem; }

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg3); color: var(--text-muted); font-size: .88rem;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* ── Testimonials ────────────────────────────────────────────────────────────── */
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.testimonial-text { font-size: 1rem; color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg3); }
.testimonial-name { font-weight: 700; color: var(--white); font-size: .9rem; }
.testimonial-role { font-size: .78rem; color: var(--text-muted); }

/* ── Toast Notifications ─────────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1.2rem; font-size: .88rem; color: var(--text); box-shadow: var(--shadow); min-width: 260px; animation: slideIn .2s ease; }
.toast.success { border-color: rgba(76,175,80,.4); }
.toast.error { border-color: rgba(181,42,42,.4); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Scroll to top ───────────────────────────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 100;
  background: var(--gold); color: var(--bg); border: none; border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.2rem; display: none;
  align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: opacity var(--transition);
}
#scroll-top.visible { display: flex; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .build-config { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav, .nav-actions { display: none; }
  .hamburger { display: flex; }

  /* Spacing */
  .section { padding: 3rem 1rem; }
  .section-sm { padding: 2rem 1rem; }
  .section-header { margin-bottom: 1.75rem; }
  .section-header h2 { font-size: 1.6rem; }
  .page-hero { padding: 2rem 1rem; }

  /* Hero */
  .hero { min-height: 65vh; }
  .hero-content { padding: 2rem 1rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Grids */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  /* Newsletter */
  .newsletter-form { flex-direction: column; }
  .newsletter-form .form-control { width: 100%; }
  .newsletter-form .btn { width: 100%; justify-content: center; }

  /* Typography */
  .hero h1 { font-size: 2.2rem; }
  .page-hero h1 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .section { padding: 2.5rem 1rem; }
  .section-header h2 { font-size: 1.35rem; }

  /* Hero tighter on phones */
  .hero { min-height: 55vh; }
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: .95rem; }

  /* Single column everything */
  .product-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }

  /* Buttons full-width in product detail */
  .product-detail-info .btn { width: 100%; justify-content: center; }

  /* Reduce footer bottom clutter */
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .footer-legal { justify-content: center; }
}
