:root {
  --bg: #16181d;
  --bg-card: #22252c;
  --bg-header: rgba(22,24,29,0.96);
  --bg-input: #2c3038;
  --bg-subtle: #22252c;
  --border: #3a3f48;
  --text: #f1f3f5;
  --text-soft: #c9ced6;
  --text-muted: #9aa1ad;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --cart-brass: #d9a514;
  --cart-brass-hover: #bf900f;
  --price-brass: #f0b90b;
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --success: #22c55e;
  --danger: #f87171;
  --danger-bright: #fca5a5;
  --stock: #7fb069;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.25);
  --font: 'Inter', system-ui, sans-serif;
  --max: 1440px;
  color-scheme: dark;
}

/* Dark / light theme toggle (Kyle 2026-10-26): one per-browser choice,
   stored in localStorage as td-theme, applied by site.js before first
   paint. Dark stays the default; nothing here changes the default look.
   Accent/primary are darkened in light mode so white button text and
   links keep readable contrast on a light background. */
html[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-card: #ffffff;
  --bg-header: rgba(255,255,255,0.96);
  --bg-input: #ffffff;
  --bg-subtle: #efece5;
  --border: #d9d2c2;
  --text: #1c1e22;
  --text-soft: #3d434b;
  --text-muted: #6b7280;
  --accent: #96690a;
  --accent-hover: #7a5508;
  --cart-brass: #c9930d;
  --cart-brass-hover: #d9a514;
  --price-brass: #8a640e;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --success: #15803d;
  --danger: #b91c1c;
  --danger-bright: #b91c1c;
  --stock: #15803d;
  --brass: #8a640e;
  --brass-dark: #7a5508;
  --brass-ink: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.08);
  color-scheme: light;
}

html[data-theme="light"] body::before { background-image: url('../images/logo-official.png'); opacity: 0.10; }

html[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #1c1e22 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.td-theme-toggle { white-space: nowrap; }

/* Print always renders light, whatever the screen theme is, so
   receipts, bound-book pages and forms print black on white. */
@media print {
  html[data-theme="light"], html[data-theme="dark"] {
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-input: #ffffff;
    --bg-subtle: #f3f4f6;
    --border: #cccccc;
    --text: #111111;
    --text-soft: #222222;
    --text-muted: #555555;
    --accent: #96690a;
    --primary: #1d4ed8;
    --success: #15803d;
    --danger: #b91c1c;
    --danger-bright: #b91c1c;
    --price-brass: #8a640e;
    --cart-brass: #c9930d;
    --shadow: none;
  }
  body::before { display: none !important; }
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Logo sits between grey background and page content. Official logo
   (Kyle 2026-11-06), transparent art: white version on the dark theme,
   black version on the light theme (override below). */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 1400px;
  transform: translate(-50%, -50%);
  background: url('../images/logo-official-white.png') center center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

/* Keep all real content above the logo */
.site-header,
main,
.site-footer,
.preview-banner,
.auth-wrap,
.admin-layout,
.product-grid,
.category-grid,
.ffl-statement {
  position: relative;
  z-index: 2;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Admin header brand logo (2026-11-07): official transparent logo —
   white art on the dark theme, black art on the light theme. */
.brand-logo-light { display: none; }
html[data-theme="light"] .brand-logo-light { display: block; }
html[data-theme="light"] .brand-logo-dark { display: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a:hover { text-decoration: none; color: var(--primary); }
/* Giveaways: nav tab, homepage tile, and footer links are hidden by
   default and shown by site.js only while a giveaway is live — so a
   failed fetch or no-JS visit shows nothing giveaway-related. */
.main-nav a[href="giveaways.html"], .main-nav a[href="/giveaways"] { display: none; }
.site-footer a[href="giveaways.html"], .site-footer a[href="/giveaways"] { display: none; }
#cat-giveaways { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); }
/* Brass purchase buttons + prices (Kyle 2026-11-01): Add to Cart
   and the other accent action buttons go brighter brass with dark
   ink — white text on the old amber was ~2.2:1 (washed out); ink
   on brass is ~6:1 and reads premium in both themes. Prices take
   the matching brass so the money and the action read as one
   system. Sale prices are red (see .product-price-sale); --accent elsewhere (hero,
   badges, links) is untouched. */
.btn-accent { background: var(--cart-brass); color: #1c1e22; }
.btn-accent:hover { background: var(--cart-brass-hover); color: #1c1e22; }

.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, transparent 100%);
  position: relative;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #f1f3f5 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 4s ease-in-out infinite;
}
@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 2px 8px rgba(180, 83, 9, 0.25)); }
}
.hero .lead { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 1.75rem; }

.categories { padding: 2.5rem 0; }
.categories h2 { text-align: center; margin-bottom: 1.75rem; font-size: 1.6rem; }
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 240px;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-input);
}
.category-card span {
  background: rgba(255,255,255,0.94);
  color: #111;
  font-weight: 800;
  width: 100%;
  padding: 0.65rem 0.25rem;
  text-align: center;
  font-size: 1.1rem;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--primary);
}

.info { padding: 2rem 0 3rem; text-align: center; color: var(--text-muted); }
.ffl-statement {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.ffl-statement strong { color: var(--accent); }

.site-footer {
  margin-top: auto;
  padding: 1.25rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-box {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}
.footer-box a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* Shop / Inventory */
.page-header { padding: 2rem 0 1rem; }
.page-header h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: white;
  color: #111;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-image {
  height: 180px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.product-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; }
.product-title { font-size: 1.05rem; font-weight: 600; margin: 0.25rem 0 0.4rem; }
.product-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; flex: 1; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { color: var(--price-brass); font-weight: 700; font-size: 1.15rem; }
.product-price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-right: 0.4rem;
}
.product-price-sale {
  color: var(--danger);
  font-weight: 800;
  font-size: 1.3rem;
  background: color-mix(in srgb, var(--danger) 13%, transparent);
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
}
/* .sale-badge is still used by the admin product grid (internal only);
   shop.js no longer emits it — shop sale status is footer text now. */
.sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
  text-transform: uppercase;
}
.product-card { position: relative; }
.product-status { font-size: 0.8rem; padding: 0.2rem 0.5rem; border-radius: 4px; background: rgba(34, 197, 94, 0.16); color: var(--success); }
.product-status.sold { background: rgba(220, 38, 38, 0.16); color: var(--danger); }
.product-status.sale { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger-bright); font-weight: 700; }

/* Forms / Login */
.auth-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.auth-card p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-input);
  color: var(--text);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
/* Contrast pins (Kyle, 2026-11-01): an opened <select>'s option list
   was styled NOWHERE in the codebase, so the browser painted it with
   OS colors while the option text kept the theme's text color —
   near-white text on a light popup in dark theme (1.11:1, the
   unreadable invoice picker). Pin every option list to the theme in
   BOTH themes: dark surface gets white text, light mode dark text. */
select option, datalist option { background: var(--bg-input); color: var(--text); }
/* The cart quantity box sits inside the white .cart-line card but had
   no colors of its own — pin it to the theme like every other input. */
.cart-qty input { background: var(--bg-input); color: var(--text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}
.age-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 68px); }
@media (max-width: 768px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-sidebar {
  background: white;
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  color: #111;
}
.admin-sidebar a, .admin-sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.8rem;
  border: none;
  background: none;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  cursor: pointer;
  font-weight: 700;
  color: #111;
}
.admin-sidebar a:hover, .admin-sidebar button:hover, .admin-sidebar .active {
  background: var(--bg);
  color: var(--primary);
}
.admin-main { padding: 1.5rem 2rem; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 0; gap: 0.75rem; }
  .main-nav { width: 100%; justify-content: center; gap: 0.65rem; flex-wrap: wrap; }
  .main-nav a { font-size: 0.9rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 2.5rem 0 1.5rem; }
  .category-card { width: 46%; height: 150px; }
  .product-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .form-grid { grid-template-columns: 1fr; }
  .auth-card { margin: 1rem; }
  .ffl-statement { font-size: 0.9rem; padding: 1rem; }
  .container { padding: 0 1rem; }
  body::before { width: 420px; height: 420px; opacity: 0.35; }
  .footer-box { font-size: 0.85rem; padding: 0.6rem 1rem; }
}
.mobile-view .header-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 0; gap: 0.75rem; }
.mobile-view .main-nav { width: 100%; justify-content: center; gap: 0.65rem; flex-wrap: wrap; }
.mobile-view .main-nav a { font-size: 0.9rem; }
.mobile-view .hero h1 { font-size: 2.1rem; }
.mobile-view .hero { padding: 2.5rem 0 1.5rem; }
.mobile-view .category-card { width: 46%; height: 150px; }
.mobile-view .product-grid { grid-template-columns: 1fr; }
.mobile-view .container { padding: 0 1rem; }
.mobile-view body::before { width: 420px; height: 420px; opacity: 0.35; }

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; }
  .btn { padding: 0.65rem 1rem; }
}
.payment-btn { width: 100%; padding: 0.85rem; font-size: 1rem; }
.preview-banner {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(245, 158, 11, 0.45);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 800px) {
  .detail-layout { grid-template-columns: 1fr; }
}
.detail-main {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.detail-main img { width: 100%; height: 420px; object-fit: contain; background: var(--bg-input); cursor: zoom-in; }
.detail-main img:hover { opacity: 0.97; }

/* Fullscreen photo lightbox (product page: tap the main photo for a closer look). */
.td-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 10, 12, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
  touch-action: pan-y;
}
.td-lightbox.open { opacity: 1; pointer-events: auto; }
.td-lightbox img {
  max-width: 94vw; max-height: 88vh; object-fit: contain;
  border-radius: 6px; user-select: none; -webkit-user-select: none;
}
.td-lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0;
}
.td-lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.td-lb-close { top: 14px; right: 14px; }
.td-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.td-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.td-lb-count {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.85); font-size: 0.9rem; letter-spacing: 0.05em;
}
@media (max-width: 600px) {
  .td-lb-prev { left: 4px; } .td-lb-next { right: 4px; }
  .td-lb-btn { width: 40px; height: 40px; }
}
.thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.thumb {
  width: 72px; height: 72px; border: 2px solid transparent; border-radius: 8px;
  padding: 0; background: white; cursor: pointer; overflow: hidden;
}
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info {
  background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  color: #111;
}
.detail-info h1 { font-size: 1.7rem; margin: 0.25rem 0 0.5rem; color: #111; }
.detail-info .product-category { color: #6b7280; }
.detail-info .spec-table td { color: #111; }
.detail-info .spec-table th { color: #4b5563; }
.detail-info .btn-outline { color: #111; border-color: #d1d5db; }
.detail-info .btn-outline:hover { background: #f3f4f6; }
/* The detail card is white in BOTH themes, so themed-variable colors
   injected by product.js flip near-white in dark theme and vanish on
   the card (measured 1.11-2.77:1). Pin the card's price/note colors
   to fixed on-white values, mirroring the overrides above. */
.detail-info .product-price { color: #8a640e; }
.detail-info .product-price-sale { color: #b91c1c; }
.detail-info .product-price-old { color: #6b7280; }
.detail-info .on-white-note { color: #4b5563; }
.detail-info .on-white-note strong { color: #111; }
/* Same bypass family, caught on re-audit: the stock-status badge used
   the flipping var(--success)/var(--danger)/var(--brass) (2.2:1 on
   the white card in dark theme), and the size/qty controls had no
   color pin of their own inside the card. */
.detail-info .product-status { color: #15803d; }
.detail-info .product-status.sold { color: #b91c1c; }
.detail-info .product-status.sale { color: #b91c1c; }
.detail-info .product-status.orderable { color: #b45309; }
.detail-info select, .detail-info input { background: var(--bg-input); color: var(--text); }
.photo-picks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.photo-pick { position: relative; width: 84px; text-align: center; font-size: 0.75rem; }
.photo-pick img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; }
.photo-pick input { margin-top: 0.25rem; }

/* ---- Search, cart, trust, newsletter (injected by site.js) ---- */
.td-search { display: flex; align-items: center; }
.td-search input[type="search"] {
  border: 1px solid var(--border); border-radius: 8px 0 0 8px;
  padding: 0.45rem 0.7rem; font-size: 0.9rem; width: 11rem;
  background: var(--bg-input); color: var(--text);
}
.td-search input[type="search"]::placeholder { color: var(--text-muted); }
.td-search button {
  border: 1px solid var(--border); border-left: none; border-radius: 0 8px 8px 0;
  padding: 0.45rem 0.7rem; font-size: 1rem; cursor: pointer; background: var(--bg); color: var(--text);
}
.td-cart-link { position: relative; font-size: 1.25rem; text-decoration: none; }
.td-cart-count {
  position: absolute; top: -0.55rem; right: -0.7rem;
  background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700;
  min-width: 1.15rem; height: 1.15rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 0.25rem;
}
.td-trust { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.td-trust-badges { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1rem; }
.td-newsletter { max-width: 26rem; margin: 0 auto 1rem; text-align: center; }
.td-newsletter label { display: block; margin-bottom: 0.5rem; font-size: 0.95rem; }
.td-newsletter-row { display: flex; gap: 0.5rem; }
.td-newsletter-row input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem 0.75rem; font-size: 0.95rem; background: var(--bg-input); color: var(--text); }
.td-newsletter-msg { font-size: 0.9rem; margin-top: 0.5rem; }
.td-socials { text-align: center; font-size: 0.9rem; }
.td-socials a { margin: 0 0.35rem; }

/* ---- Skeleton loading placeholders ---- */
.td-skeleton {
  background: linear-gradient(90deg, #2c3038 25%, #3a3f48 50%, #2c3038 75%);
  background-size: 200% 100%; animation: td-shimmer 1.2s infinite;
  border-radius: 8px; color: transparent !important;
}
html[data-theme="light"] .td-skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
}
@keyframes td-shimmer { to { background-position: -200% 0; } }
.skeleton-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.skeleton-card .td-skeleton { border-radius: 0; }

/* ---- Cart page ---- */
.cart-line { display: flex; gap: 1rem; align-items: center; background: white; border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem; margin-bottom: 0.75rem; color: #111; }
.cart-line a { color: #1d4ed8; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--bg-input); flex-shrink: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info strong { display: block; }
.cart-qty { display: flex; align-items: center; gap: 0.5rem; }
.cart-qty button { width: 1.9rem; height: 1.9rem; border: 1px solid var(--border); border-radius: 6px; background: white; cursor: pointer; font-size: 1rem; }
.cart-qty input { width: 3rem; text-align: center; border: 1px solid var(--border); border-radius: 6px; padding: 0.3rem; }
.cart-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.85rem; text-decoration: underline; padding: 0; }
.cart-summary { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; margin-top: 1rem; color: #111; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.cart-summary .row.total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--border); padding-top: 0.6rem; margin-top: 0.6rem; }

@media (max-width: 640px) {
  .td-search input[type="search"] { width: 7.5rem; }
  .cart-line { flex-wrap: wrap; }
}

/* ---- Product spec table ---- */
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0 0.25rem; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--text-muted); font-weight: 600; width: 38%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ============ Phase 7: brass-and-charcoal redesign =====================
   Approved homepage design folded in (utility bar, wordmark header with
   the search bar in real markup, category strip, hero, mosaic, spec
   cards, cart drawer) + special-order badges + checkout fulfillment +
   the Sell page. New classes are td-/home-/sell- prefixed so the rest
   of the site keeps its existing look. */
:root {
  --brass: #d29a26;
  --brass-dark: #b07f14;
  --brass-ink: #131313;
  --font-display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  --font-alt: 'Barlow', 'Inter', system-ui, sans-serif;
}

/* ---- Utility bar ---- */
.td-util { background: #08090b; color: #cfccc4; font-size: 0.85rem; }
.td-util-in { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding-top: 0.45rem; padding-bottom: 0.45rem; flex-wrap: wrap; }
.td-util strong { color: #f3f1ec; }
.td-util a { color: #e8c56a; font-weight: 600; }
.td-util-r { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ---- Header (search lives in the markup on every page) ---- */
.td-h-main { display: flex; align-items: center; gap: 1.25rem; padding-top: 0.8rem; padding-bottom: 0.8rem; flex-wrap: wrap; }
.td-wordmark { text-decoration: none; line-height: 0.95; flex: none; display: flex; flex-direction: column; }
.td-wordmark:hover { text-decoration: none; }
.td-wm-top { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.td-wm-top em { font-style: normal; color: var(--brass); }
.td-wm-sub { font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-muted); }
.td-searchbar { flex: 1; min-width: 180px; }
.td-searchbar input[type="search"] { flex: 1; width: auto; min-width: 0; padding: 0.6rem 0.8rem; font-size: 1rem; }
.td-searchbar button { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); font-weight: 700; padding: 0.6rem 1.1rem; }
.td-searchbar button:hover { background: var(--brass-dark); }
.td-h-actions { display: flex; gap: 0.6rem; align-items: center; flex: none; margin-left: auto; }
.td-h-btn { display: flex; align-items: center; gap: 0.45rem; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 0.55rem 0.9rem; font-weight: 600; text-decoration: none; position: relative; font-size: 1rem; }
.td-h-btn:hover { text-decoration: none; border-color: var(--brass); color: var(--text); }
.td-h-btn .td-cart-count { position: static; }
.td-cats { border-top: 1px solid var(--border); display: block; }
.td-cats-in { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; align-items: center; }
.td-cats-in::-webkit-scrollbar { display: none; }
.td-cats a { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: 0.06em; font-size: 1.02rem; padding: 0.6rem 0.8rem; white-space: nowrap; border-bottom: 3px solid transparent; color: var(--text); }
.td-cats a:hover { color: var(--brass); border-bottom-color: var(--brass); text-decoration: none; }
.td-cats a.td-sale-link { color: var(--danger); }
@media (max-width: 768px) {
  .td-h-main { gap: 0.75rem; }
  .td-searchbar { order: 3; flex: 1 1 100%; }
  .td-wm-top { font-size: 1.45rem; }
  .td-wm-sub { font-size: 0.56rem; letter-spacing: 0.22em; }
  .td-h-lbl { display: none; }
  .td-util-r .td-util-hide { display: none; }
  /* Phone widths: the header actions row (cart + sign-in + the
     injected theme toggle) is wider than the space beside the
     wordmark — left alone it pushed ~78px off the right edge and
     widened the whole page. Cap it at the container width and let
     its buttons wrap inside the header instead. */
  .td-h-actions { max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }
}

/* ---- Homepage ---- */
body[data-page="home"] { font-family: var(--font-alt); }
.home-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.home-display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.home-hero { background: #08090b; color: #f3f1ec; overflow: hidden; }
.home-hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; align-items: stretch; max-width: 1240px; margin: 0 auto; }
.home-hero-copy { padding: 56px 36px 48px 20px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.home-hero-copy .home-flag { align-self: flex-start; border: 1px solid #3a3d44; color: #e8c56a; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.home-hero-copy h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.6rem, 5.2vw, 4.3rem); line-height: 0.98; font-weight: 700; margin: 0; }
.home-hero-copy h1 em { font-style: normal; color: var(--brass); }
.home-hero-copy p { color: #c9c6bd; font-size: 1.13rem; margin: 0; max-width: 46ch; }
.home-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.home-btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 8px; padding: 13px 22px; border: 1px solid transparent; font-size: 1rem; }
.home-btn:hover { text-decoration: none; }
.home-btn-brass { background: var(--brass); color: var(--brass-ink); }
.home-btn-brass:hover { background: var(--brass-dark); color: var(--brass-ink); }
.home-btn-ghost { background: transparent; color: #f3f1ec; border-color: #4a4d55; }
.home-hero-img { min-height: 340px; }
.home-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Giveaway hero takeover (2026-11-02): site.js wraps the hero in
   .home-hero-link and adds .home-hero-gw while a giveaway is live.
   The copy keeps the hero's dark backing (#08090b) with light bold
   text; a dark scrim blends the prize photo's edge into it. */
.home-hero-link { display: block; text-decoration: none; color: inherit; }
.home-hero-link:hover { text-decoration: none; color: inherit; }
.home-hero-gw .home-hero-img { position: relative; }
.home-hero-gw .home-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,11,0.55) 0%, rgba(8,9,11,0) 38%); pointer-events: none; }
.home-hero-gw .home-hero-copy h1 { text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.home-hero-gw .home-hero-copy p { color: #e8e5dc; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
.home-trust { border-bottom: 1px solid var(--border); background: var(--bg-card); }
.home-trust-in { display: flex; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.home-trust-in > div { flex: 1 1 200px; padding: 14px 16px; display: flex; gap: 10px; align-items: baseline; border-left: 1px solid var(--border); }
.home-trust-in > div:first-child { border-left: none; }
.home-trust b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.02rem; }
.home-trust span { color: var(--text-muted); font-size: 0.9rem; }
.home-trust .tick { color: var(--brass); font-weight: 700; }
.home-section { padding: 52px 0 8px; }
.home-sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.home-sec-head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1; margin: 0; }
.home-sec-head p { color: var(--text-muted); margin: 6px 0 0; max-width: 62ch; }
.home-sec-head a.more { font-weight: 700; color: var(--brass); text-decoration: none; white-space: nowrap; }
.home-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 172px; gap: 12px; }
.home-tile { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: #22252c; background-size: cover; background-position: center; display: block; }
.home-tile:hover { text-decoration: none; color: #fff; }
.home-tile .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,6,8,0.88) 0%, rgba(5,6,8,0.25) 46%, rgba(5,6,8,0) 70%); }
.home-tile .lbl { position: absolute; left: 16px; right: 16px; bottom: 13px; }
.home-tile .lbl b { font-family: var(--font-display); text-transform: uppercase; font-size: 1.55rem; font-weight: 700; letter-spacing: 0.03em; display: block; line-height: 1; }
.home-tile .lbl span { font-size: 0.88rem; color: #d8d5cc; }
.home-tile .go { position: absolute; top: 12px; right: 12px; background: rgba(10,10,12,0.55); border: 1px solid rgba(255,255,255,0.35); width: 30px; height: 30px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.home-tile.t-wide { grid-column: span 2; }
.home-tile.t-tall { grid-row: span 2; }
/* Giveaways tile shows the official logo (transparent white art) on the
   tile's charcoal background: a fixed 100px-tall brand mark parked at the
   top right, clear of the tile's bottom-left label and the top-right
   arrow chip at any tile size. The same declarations are inlined on the
   element in index.html so the placement cannot be lost to a stale
   stylesheet (2026-11-07). */
#cat-giveaways { background-size: auto 100px; background-repeat: no-repeat; background-position: right 52px top 10px; }
.home-tile .lbl-sale { background: rgba(185,28,28,0.92); padding: 0 6px; border-radius: 4px; }
.home-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.home-chip { border: 1px solid var(--border); background: var(--bg-card); color: var(--text); border-radius: 99px; padding: 8px 16px; font-weight: 600; cursor: pointer; font: inherit; }
.home-chip.on { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.home-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.home-card .ph { aspect-ratio: 4/3; background: var(--bg-input); overflow: hidden; position: relative; display: block; color: var(--text-muted); }
.home-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* No badges on product photos: badge information lives in the card
   body text (.avail lines), because photo badges blocked the gun. */
.home-card .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.home-card .brand { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.home-card h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.15; margin: 0; }
.home-card h3 a { color: var(--text); text-decoration: none; }
.home-card h3 a:hover { color: var(--brass); }
.home-card .specs { font-size: 0.86rem; color: var(--text-muted); }
.home-card .avail { font-size: 0.86rem; color: var(--text-muted); }
.home-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.home-price { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--price-brass); }
.home-was { color: var(--text-muted); text-decoration: line-through; font-size: 0.95rem; }
.home-price.sale { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); padding: 0.08rem 0.5rem; border-radius: 999px; }
.home-add { margin-top: 8px; background: var(--cart-brass); color: #1c1e22; border: none; border-radius: 8px; padding: 11px; font-weight: 700; width: 100%; cursor: pointer; font: inherit; }
.home-add:hover { background: var(--cart-brass-hover); color: #1c1e22; }
.home-add:disabled { opacity: 0.55; cursor: default; }
.home-card .avail.sale { color: var(--danger-bright); font-weight: 700; }
.home-sizes { display: none; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.home-sizes.open { display: flex; }
.home-sizes span { width: 100%; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.home-sizes button { border: 1px solid var(--border); background: var(--bg-input); color: var(--text); border-radius: 6px; padding: 6px 10px; font-weight: 600; cursor: pointer; font: inherit; }
.home-empty { grid-column: 1/-1; text-align: center; color: var(--text-muted); padding: 34px 0; }
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.home-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.home-step .n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--brass); line-height: 1; }
.home-step h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; margin: 8px 0 6px; }
.home-step p { color: var(--text-muted); margin: 0; }
.home-wbg { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 26px; align-items: start; }
.home-wbg-copy p { color: var(--text-muted); margin-top: 0; }
.home-wbg-copy ul, .home-acct-copy ul { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.home-wbg-copy li, .home-acct-copy li { display: flex; gap: 10px; }
.home-wbg-copy .tick, .home-acct-copy .tick { color: var(--brass); font-weight: 700; }
.td-rule { border: 1px solid var(--brass); border-radius: 8px; padding: 12px 14px; background: var(--bg-input); }
.td-rule b { color: var(--brass); }
.home-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.home-panel .p-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-input); flex-wrap: wrap; }
.home-panel .p-head b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.1rem; }
.home-panel .p-head span { color: var(--text-muted); font-size: 0.88rem; }
.home-pitch-bd { padding: 18px; display: grid; gap: 12px; }
.home-pitch-bd p { color: var(--text-muted); margin: 0; }
.home-acct { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 26px; align-items: start; }
.home-acct-copy p { color: var(--text-muted); }
.home-tabs { display: flex; border-bottom: 1px solid var(--border); }
.home-tabs button { flex: 1; background: none; border: none; color: var(--text-muted); font-weight: 700; padding: 12px; border-bottom: 3px solid transparent; cursor: pointer; font: inherit; }
.home-tabs button.on { color: var(--text); border-bottom-color: var(--brass); }
.home-tabpane { padding: 16px 18px; display: none; }
.home-tabpane.on { display: block; }
.home-saved-note { font-size: 0.9rem; color: var(--text-muted); background: var(--bg-input); border: 1px dashed var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.home-line-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.home-line-item:last-child { border-bottom: none; }
.home-line-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; flex: none; background: var(--bg-input); }
.home-line-item .li-mid { flex: 1; min-width: 0; }
.home-line-item .li-mid b { display: block; }
.home-line-item .li-mid span { color: var(--text-muted); font-size: 0.86rem; }
.home-line-item .rm { background: none; border: none; color: var(--danger); font-weight: 600; font-size: 0.85rem; padding: 0; cursor: pointer; font: inherit; }
.home-order { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.home-order .o-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.9rem; }
.home-order .o-head b { font-size: 1rem; }
.home-status { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--bg-input); color: var(--stock); border: 1px solid var(--border); }
.home-order ul { margin: 8px 0; padding-left: 18px; color: var(--text-muted); font-size: 0.93rem; }
.home-order .o-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-reorder { background: none; border: 1px solid var(--brass); color: var(--brass); border-radius: 7px; padding: 7px 14px; font-weight: 700; cursor: pointer; font: inherit; text-decoration: none; display: inline-block; }
.home-visit { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.home-visit img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; display: block; }
.home-visit .v-bd { padding: 26px; }
.home-visit h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.7rem; margin: 0 0 8px; }
.home-visit p { color: var(--text-muted); margin: 0 0 10px; }
.home-visit a.tel { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--brass); text-decoration: none; }
.home-news { margin: 52px 0 0; background: #08090b; color: #f3f1ec; border-radius: 12px; padding: 34px; }
.home-news h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; margin: 0; }
.home-news p { color: #c9c6bd; max-width: 56ch; }
.home-news form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.home-news input { flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 8px; border: 1px solid #3a3d44; background: #15171b; color: #f3f1ec; font: inherit; }
.home-news .news-msg { width: 100%; font-size: 0.92rem; margin: 4px 0 0; }
.td-footer { text-align: left; }
.td-f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding: 10px 0 20px; text-align: left; }
.td-f-grid h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; font-size: 1.05rem; color: var(--text); }
.td-f-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.td-f-grid a { text-decoration: none; color: var(--text-muted); font-weight: 500; }
.td-f-grid a:hover { color: var(--brass); }
.td-f-grid p { color: var(--text-muted); margin: 0; font-weight: 500; }
@media (max-width: 1020px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .home-mosaic { grid-template-columns: repeat(2, 1fr); }
  .home-hero-in { grid-template-columns: 1fr; }
  .home-hero-img { min-height: 230px; order: -1; }
  .home-hero-copy { padding: 30px 20px 38px; }
  .td-f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .home-steps, .home-acct, .home-visit, .home-wbg { grid-template-columns: 1fr; }
  .home-trust-in > div { flex: 1 1 150px; }
  .home-news { padding: 24px; }
  .home-line-item { flex-wrap: wrap; }
}

/* ---- Special orders (shop / product / cart) ---- */
.product-status.orderable { background: rgba(210, 154, 38, 0.16); color: var(--brass); }
.orderable-note { font-size: 0.85rem; color: var(--brass); font-weight: 600; }

/* ---- Checkout fulfillment toggle ---- */
.co-fulfill { display: flex; gap: 8px; margin-bottom: 1rem; }
.co-fulfill button { flex: 1; border: 1px solid var(--border); background: var(--bg-input); color: var(--text); border-radius: 8px; padding: 0.7rem; font-weight: 700; cursor: pointer; font: inherit; }
.co-fulfill button.on { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.co-fulfill-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }

/* ---- Sell page ---- */
.sell-wrap { max-width: 840px; }
.sell-rule { margin-bottom: 18px; font-size: 1.03rem; padding: 14px 16px; }

/* Two-up form rows (sell form, checkout additions). */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
@media(max-width:640px){.form-row{grid-template-columns:1fr;}}

/* FFL finder (homepage, checkout, account). */
.ffl-finder { max-width: 720px; }
.ffl-blurb { color: var(--text-muted); margin: 0 0 12px; }
.ffl-form { display: flex; gap: 8px; margin-bottom: 12px; }
.ffl-zip { flex: 1; max-width: 200px; border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 0.75rem; background: var(--bg-input); color: var(--text); font: inherit; }
.ffl-results { display: grid; gap: 10px; }
.ffl-group-label { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 6px 0 0; }
.ffl-card { border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem 1rem; background: var(--bg-card); }
.ffl-name { font-weight: 700; }
.ffl-addr, .ffl-phone { color: var(--text-muted); font-size: 0.9rem; margin-top: 2px; }
.ffl-card .btn { margin-top: 8px; }
.ffl-status { color: var(--text-muted); }
.ffl-error { color: var(--danger); }
/* Checkout ZIP warning: its inline amber is 3.54:1 on the dark page
   background; brighten it in dark theme only (light theme keeps the
   deeper amber, which is 5.9:1 on white). */
html[data-theme="dark"] #zip-warn { color: #f59e0b !important; }

/* Giveaway banner (homepage, only while a giveaway is live — site.js
   fills and unhides it). Dark band with white text in both themes. */
.giveaway-banner {
  background: linear-gradient(90deg, #7c2d12, #b45309);
  color: #fff; text-align: center;
  padding: 0.9rem 1rem; font-size: 1.05rem;
}
.giveaway-banner a { color: #fff; font-weight: 700; text-decoration: underline; }
.ffl-saved { border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem 1rem; background: var(--bg-card); margin-bottom: 12px; }
