/* ===================================================================
   KiloTango — styles.css
   Shared stylesheet for all pages
   Pure CSS — No frameworks, no preprocessors
   =================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --primary-dark: #0D1B2A;
  --primary-green: #1B4332;
  --accent-brass: #C8973A;
  --accent-electric: #00C2FF;
  --surface-dark: #162032;
  --surface-mid: #1E2D42;
  --light-surface: #F4F6F8;
  --text-dark: #DCE4EE;
  --text-light: #1A2530;
  --muted: #7A8FA6;
  --stock-in: #22C55E;
  --stock-out: #EF4444;
  --stock-low: #F59E0B;
  --ca-gold: #F5A623;
  --border-subtle: rgba(0,194,255,0.12);
  --glass-bg: rgba(22,32,50,0.9);
  --glass-border: rgba(0,194,255,0.12);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--primary-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Utility --- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Typography --- */
.section-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.heading-display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.heading-section {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
}
.mono { font-family: var(--font-mono); }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent-electric);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  border: none;
  transition: box-shadow 200ms, transform 150ms;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--ca-gold);
  color: var(--ca-gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: background 200ms, color 200ms;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: 8px;
}
.card-light {
  background: #fff;
  border: 1px solid #DCE4EE;
  border-radius: 8px;
  transition: transform 150ms, border-color 200ms, box-shadow 200ms;
}

/* --- Stock Badges --- */
.stock-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
}
.stock-in { background: rgba(34,197,94,0.12); color: var(--stock-in); border: 1px solid var(--stock-in); }
.stock-out { background: rgba(239,68,68,0.12); color: var(--stock-out); border: 1px solid var(--stock-out); }
.stock-low { background: rgba(245,158,11,0.12); color: var(--stock-low); border: 1px solid var(--stock-low); }

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,27,42,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 200ms;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1;
}
.nav-logo-text .wordmark .k, .nav-logo-text .wordmark .t { color: var(--accent-brass); }
.nav-logo-text .tagline {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.nav-search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  background: var(--surface-dark);
  border: 1px solid rgba(0,194,255,0.2);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}
.nav-search input:focus {
  border-color: var(--accent-electric);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.12);
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 200ms;
  position: relative;
  padding: 4px 0;
}
.nav-link:hover { color: var(--text-dark); }
.nav-link[aria-current="page"] { color: var(--text-dark); }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-brass);
}
.nav-cta {
  padding: 10px 20px;
  background: var(--accent-electric);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 6px;
  white-space: nowrap;
  transition: box-shadow 200ms;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-electric);
  transition: transform 200ms, opacity 200ms;
}

/* Mobile drawer */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--primary-dark);
  z-index: 201;
  transition: right 300ms ease;
  overflow-y: auto;
  padding: 24px;
}
.nav-drawer.open { right: 0; }
.nav-drawer-overlay.open { display: block; }
.nav-drawer .drawer-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.nav-drawer .drawer-close button {
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}
.nav-drawer .drawer-search {
  margin-bottom: 24px;
}
.nav-drawer .drawer-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--surface-dark);
  border: 1px solid rgba(0,194,255,0.2);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
}
.nav-drawer .drawer-links { display: flex; flex-direction: column; gap: 16px; }
.nav-drawer .drawer-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-drawer .drawer-link:hover { color: var(--text-dark); }
.nav-drawer .drawer-cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding: 14px;
  background: var(--accent-electric);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 8px;
}

@media (max-width: 1023px) {
  .nav-links, .nav-cta-wrap, .nav-search { display: none; }
  .hamburger { display: flex; }
}

/* --- Footer --- */
.site-footer { background: var(--primary-dark); border-top: 1px solid var(--border-subtle); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.footer-brand .wordmark .k, .footer-brand .wordmark .t { color: var(--accent-brass); }
.footer-brand .tagline { font-size: 14px; color: var(--muted); font-weight: 300; margin-bottom: 16px; }
.footer-brand .disclaimer { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.6; }
.footer-col-heading {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 200ms;
}
.footer-col a:hover { color: var(--text-dark); }
.footer-affiliate {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  padding: 24px 0;
  border-top: 1px solid rgba(0,194,255,0.1);
  margin-top: 40px;
  line-height: 1.6;
}
.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 16px;
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* --- Hero Sections --- */
.hero-dark {
  background: var(--primary-dark);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-dark .diagonal-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    var(--accent-electric) 20px,
    var(--accent-electric) 21px
  );
  pointer-events: none;
}

/* --- Homepage Search --- */
.hero-search {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.hero-search input {
  width: 100%;
  height: 56px;
  padding: 0 120px 0 20px;
  background: var(--surface-dark);
  border: 1px solid rgba(0,194,255,0.25);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 16px;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}
.hero-search input:focus {
  border-color: var(--accent-electric);
  box-shadow: 0 0 0 3px rgba(0,194,255,0.12);
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search button {
  position: absolute;
  right: 0;
  top: 0;
  height: 56px;
  padding: 0 24px;
  background: var(--accent-electric);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  border-radius: 0 8px 8px 0;
  border: none;
}

/* --- Caliber Pills --- */
.caliber-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.caliber-pill {
  padding: 6px 14px;
  border: 1px solid rgba(0,194,255,0.2);
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  background: var(--light-surface);
  color: var(--text-light);
  transition: border-color 200ms, color 200ms;
}
.caliber-pill:hover { border-color: var(--accent-electric); color: var(--accent-electric); }

/* --- Stats Bar --- */
.stats-bar { background: var(--surface-dark); padding: 32px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-metric {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 28px;
  color: var(--accent-electric);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  background: var(--border-subtle);
  height: 40px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Caliber Grid (Light) --- */
.section-light { background: var(--light-surface); padding: 64px 0; }
.section-dark { background: var(--surface-dark); padding: 64px 0; }
.section-primary { background: var(--primary-dark); padding: 64px 0; }

.caliber-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.caliber-card {
  background: #fff;
  border: 1px solid #DCE4EE;
  border-radius: 8px;
  padding: 20px;
  transition: transform 150ms, border-color 200ms, box-shadow 200ms;
}
.caliber-card .cal-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-light);
}
.caliber-card .cal-ppr {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.caliber-card .cal-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-electric);
}
@media (max-width: 767px) { .caliber-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .caliber-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- How It Works --- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; position: relative; }
.step-card { text-align: center; position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-brass);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}
.step-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
@media (max-width: 767px) { .steps-row { grid-template-columns: 1fr; } }

/* --- CA Notice --- */
.ca-notice {
  border-top: 3px solid var(--ca-gold);
  padding: 48px 0;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* --- Browse Page Category --- */
.category-section { margin-bottom: 40px; }
.category-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-light);
  padding-left: 16px;
  border-left: 3px solid var(--accent-brass);
  margin-bottom: 20px;
}

/* --- Listing Page --- */
.filter-bar {
  background: var(--primary-dark);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  position: sticky;
  top: 72px;
  z-index: 50;
  overflow: visible;
}
.filter-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text-dark); }
.sort-select {
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-dark);
  padding: 6px 12px;
  font-size: 14px;
  outline: none;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 0; overflow: visible; position: relative; }
.filter-chip {
  padding: 6px 14px;
  border: 1px solid rgba(0,194,255,0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: all 200ms;
  cursor: pointer;
  background: var(--light-surface);
  color: var(--text-light);
}
.filter-chip.active, .filter-chip:hover {
  background: var(--light-surface);
  border-color: var(--accent-electric);
  color: var(--accent-electric);
}
.ca-strip {
  background: #1E2D42;
  border-left: 4px solid #F5A623;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 13px;
  color: #DCE4EE !important;
  margin: 8px 0;
  line-height: 1.7;
  font-weight: 500;
}
.ca-strip * {
  color: #DCE4EE !important;
}
.ca-strip a {
  color: #F5A623 !important;
  text-decoration: underline;
}
.filter-chip-wrap{position:relative;display:inline-block;}
.chip-dropdown{display:none;position:absolute;top:calc(100% + 8px);left:0;min-width:220px;background:#0D1B2A;border:1px solid rgba(0,194,255,0.25);border-radius:10px;padding:12px 0;z-index:1000;box-shadow:0 8px 32px rgba(0,0,0,0.4);overflow:visible;max-height:none;}
.chip-dropdown.open{display:block;}
.chip-dropdown-label{padding:4px 16px 8px;font-family:'JetBrains Mono',monospace;font-size:10px;color:#C8973A;letter-spacing:0.1em;text-transform:uppercase;}
.chip-dropdown-item{display:flex;align-items:center;gap:10px;padding:8px 16px;font-size:13px;color:#7A8FA6;cursor:pointer;transition:background 150ms,color 150ms;}
.chip-dropdown-item:hover{background:rgba(0,194,255,0.08);color:#DCE4EE;}
.chip-dropdown-item input[type="checkbox"]{accent-color:#00C2FF;width:14px;height:14px;cursor:pointer;flex-shrink:0;}
.chip-dropdown-divider{height:1px;background:rgba(0,194,255,0.1);margin:6px 0;}
.chip-dropdown-footer{padding:8px 16px 4px;display:flex;justify-content:flex-end;}
.chip-dropdown-apply{font-family:'JetBrains Mono',monospace;font-size:11px;color:#00C2FF;background:rgba(0,194,255,0.12);border:1px solid rgba(0,194,255,0.3);border-radius:6px;padding:4px 12px;cursor:pointer;letter-spacing:0.05em;text-transform:uppercase;}
.chip-dropdown-apply:hover{background:rgba(0,194,255,0.22);}
.price-range-inputs{padding:8px 16px 4px;display:flex;flex-direction:column;gap:8px;}
.price-range-inputs input[type="range"]{width:100%;accent-color:#00C2FF;}
.price-range-display{font-family:'JetBrains Mono',monospace;font-size:12px;color:#00C2FF;text-align:center;}


/* Listing layout */
.listing-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
@media (max-width: 1023px) { .listing-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.sidebar { position: sticky; top: 140px; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.sidebar-heading .toggle-icon { color: var(--accent-electric); font-size: 18px; }
.sidebar-group { display: flex; flex-direction: column; gap: 8px; }
.sidebar-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
}
.sidebar-checkbox input[type="checkbox"] {
  accent-color: var(--accent-electric);
  width: 16px;
  height: 16px;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background 200ms;
}
.toggle-switch.active { background: var(--accent-electric); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 200ms;
}
.toggle-switch.active::after { transform: translateX(20px); }
.show-more {
  font-size: 13px;
  color: var(--accent-electric);
  cursor: pointer;
  padding: 4px 0;
}

/* Range slider */
.range-display {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent-electric);
}

/* Listing cards */
.listing-card {
  background: #fff;
  border: 1px solid #DCE4EE;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: transform 150ms, box-shadow 200ms;
}
.listing-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
/* ── Listing Card Image ───────────────────────────────── */
.listing-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: #0D1B2A;
  border: 1px solid #DCE4EE33;
  margin-right: 16px;
}

.listing-brand { font-weight: 700; font-size: 16px; color: var(--text-light); }
.listing-product { font-size: 14px; color: var(--muted); margin-top: 2px; }
.listing-pricing { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.listing-ppr {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  color: var(--accent-brass);
}
.listing-ppr-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}
.listing-total { font-weight: 600; font-size: 18px; color: var(--text-light); }
.listing-qty { font-size: 14px; color: var(--muted); }
.listing-retailer { font-weight: 500; font-size: 14px; color: var(--text-light); }
.listing-stars { color: var(--accent-brass); font-size: 14px; }
.listing-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.listing-badge {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--light-surface);
  color: var(--text-light);
}
.listing-shipping { font-size: 13px; color: var(--muted); }
.listing-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
.listing-verified { font-size: 11px; color: var(--muted); font-style: italic; font-weight: 300; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; }
.page-btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid #DCE4EE;
  transition: all 200ms;
}
.page-btn.active { background: var(--accent-electric); color: var(--primary-dark); border-color: var(--accent-electric); }
.page-btn:hover:not(.active) { border-color: var(--accent-electric); color: var(--accent-electric); }

/* Mobile filters button */
.mobile-filters-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent-electric);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}
@media (max-width: 1023px) {
  .sidebar { display: none; }
  .sidebar.mobile-open { display: block; position: fixed; top: 0; left: 0; width: 300px; height: 100%; background: #fff; z-index: 200; overflow-y: auto; padding: 24px; box-shadow: 4px 0 20px rgba(0,0,0,0.2); }
  .mobile-filters-btn { display: inline-flex; }
}

/* --- Retailer Grid --- */
.retailer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.retailer-card { padding: 24px; }
.retailer-name { font-weight: 700; font-size: 18px; color: var(--text-light); margin-bottom: 8px; }
.retailer-type { display: none !important; }
.affiliate-badge { display: none !important; }
.retailer-desc { font-size: 14px; color: var(--muted); margin: 12px 0; line-height: 1.6; }
.retailer-stats { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.retailer-link { font-weight: 600; font-size: 14px; color: var(--accent-electric); }
@media (max-width: 767px) { .retailer-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .retailer-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- Feed Form --- */
.feed-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--primary-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  transition: border-color 200ms;
}
.form-input:focus { border-color: var(--accent-electric); }
.form-input.error { border-color: var(--stock-out); }
.form-error { font-size: 12px; color: var(--stock-out); margin-top: 4px; display: none; }
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--primary-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  appearance: none;
}
.form-success {
  font-weight: 500;
  font-size: 16px;
  color: var(--stock-in);
  text-align: center;
  padding: 24px;
  display: none;
}

/* --- California Page --- */
.ca-hero { border-left: 4px solid var(--ca-gold); }
.ca-disclaimer {
  border: 1px solid var(--ca-gold);
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.stepper { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.step-item {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border-left: 4px solid var(--accent-electric);
}
.step-item h3 { font-weight: 700; font-size: 18px; color: var(--text-light); margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* FFL cards */
.ffl-card {
  border-left: 3px solid var(--ca-gold);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.ffl-name { font-weight: 700; font-size: 16px; color: var(--text-dark); }
.ffl-address { font-size: 14px; color: var(--muted); margin-top: 4px; }
.ffl-fee { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--accent-brass); margin-top: 8px; }
.ffl-link { font-weight: 600; font-size: 14px; color: var(--ca-gold); margin-top: 8px; display: inline-block; }

/* --- Accordion --- */
.accordion-item { border-bottom: 1px solid #DCE4EE; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-light);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}
.accordion-icon { font-size: 22px; color: var(--accent-electric); font-weight: 400; transition: transform 200ms; }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.accordion-content-inner { padding: 0 0 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }

/* --- About Page --- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text { font-size: 17px; color: var(--text-light); line-height: 1.8; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card {
  border-top: 3px solid var(--accent-electric);
  padding: 20px;
}
.stat-card .stat-val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  color: var(--accent-electric);
}
.stat-card .stat-desc { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* About grid (How We Work) */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.about-card { padding: 28px; }
.about-icon { font-size: 28px; margin-bottom: 12px; }
@media (max-width: 767px) { .about-grid { grid-template-columns: 1fr; } }

/* Accuracy grid (Data Accuracy) */
.accuracy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.accuracy-card { padding: 24px; text-align: center; }
.accuracy-stat {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  color: var(--accent-electric);
  margin-bottom: 4px;
}
.accuracy-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
@media (max-width: 767px) { .accuracy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .accuracy-grid { grid-template-columns: 1fr; } }

/* Disclosure box */
.disclosure-box { border-left: 4px solid var(--accent-brass); }

/* Card dark */
.card-dark {
  background: var(--surface-mid);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

/* FFL locator */
.ffl-search-row { display: flex; gap: 12px; }
.ffl-input {
  flex: 1;
  height: 48px;
  padding: 0 14px;
  background: var(--primary-dark);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
}
.ffl-input:focus { border-color: var(--ca-gold); }
.ffl-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 767px) {
  .about-split { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
.data-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.data-card { padding: 24px; }
.data-card h3 { font-weight: 700; font-size: 18px; color: var(--text-light); margin-bottom: 12px; }
.data-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
@media (max-width: 767px) { .data-cards { grid-template-columns: 1fr; } }

/* --- Reveal Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Infographics must always be visible, even if the reveal JS never fires */
  .kt-infographic { opacity: 1 !important; transform: none !important; }
  .btn-primary:hover { box-shadow: 0 0 14px rgba(0,194,255,0.35); }
  .btn-outline:hover { background: var(--ca-gold); color: var(--primary-dark); }
  .card-light:hover, .caliber-card:hover, .listing-card:hover { transform: translateY(-3px); border-color: var(--accent-electric); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
  .retailer-card:hover { transform: translateY(-3px); border-color: var(--accent-electric); }
}

/* --- Results Summary --- */
.results-summary { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

/* --- Filter pills for retailers --- */
.filter-pills { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }

/* --- Search inputs on browse/retailers --- */
.page-search {
  max-width: 480px;
  margin: 24px auto 0;
  position: relative;
}
.page-search input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--surface-dark);
  border: 1px solid rgba(0,194,255,0.2);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
}
.page-search input:focus { border-color: var(--accent-electric); }

/* FFL search */
.ffl-search {
  max-width: 480px;
  display: flex;
  gap: 8px;
}
.ffl-search input {
  flex: 1;
  height: 48px;
  padding: 0 14px;
  background: var(--primary-dark);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
}
.ffl-search input:focus { border-color: var(--ca-gold); }
.ffl-search button {
  height: 48px;
  padding: 0 20px;
  background: var(--ca-gold);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: var(--muted);
  display: none;
}

/* =====================================================
   Market Intelligence Dashboard
===================================================== */

/* Dashboard grid */
.intel-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 1023px) {
  .intel-grid { grid-template-columns: 1fr; }
}

/* Chart container */
.chart-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.chart-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
}
.chart-period-pills {
  display: flex;
  gap: 6px;
}
.chart-pill {
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 200ms;
}
.chart-pill.active,
.chart-pill:hover {
  background: rgba(0,194,255,0.15);
  border-color: var(--accent-electric);
  color: var(--accent-electric);
}
.chart-canvas-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}
.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Sidebar intel stack */
.intel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sentiment Widget */
.sentiment-widget {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.sentiment-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.sentiment-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.sentiment-light.buy {
  background: radial-gradient(circle, rgba(34,197,94,0.35) 0%, rgba(34,197,94,0.08) 70%);
  color: var(--stock-in);
  border: 2px solid var(--stock-in);
  box-shadow: 0 0 20px rgba(34,197,94,0.25), inset 0 0 12px rgba(34,197,94,0.15);
}
.sentiment-light.hold {
  background: radial-gradient(circle, rgba(245,158,11,0.35) 0%, rgba(245,158,11,0.08) 70%);
  color: var(--stock-low);
  border: 2px solid var(--stock-low);
  box-shadow: 0 0 20px rgba(245,158,11,0.25), inset 0 0 12px rgba(245,158,11,0.15);
}
.sentiment-light.wait {
  background: radial-gradient(circle, rgba(239,68,68,0.35) 0%, rgba(239,68,68,0.08) 70%);
  color: var(--stock-out);
  border: 2px solid var(--stock-out);
  box-shadow: 0 0 20px rgba(239,68,68,0.25), inset 0 0 12px rgba(239,68,68,0.15);
}
.sentiment-light::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.2;
}
.sentiment-detail {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.sentiment-detail strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Heatmap Widget */
.heatmap-widget {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px;
}
.heatmap-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.heatmap-svg-wrap {
  position: relative;
  width: 100%;
}
.heatmap-svg-wrap svg {
  width: 100%;
  height: auto;
}
.heatmap-svg-wrap svg path {
  stroke: rgba(0,194,255,0.15);
  stroke-width: 0.5;
  transition: fill 200ms, stroke 200ms;
  cursor: pointer;
}
.heatmap-svg-wrap svg path:hover {
  stroke: var(--accent-electric);
  stroke-width: 1;
  filter: brightness(1.3);
}
.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.heatmap-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.heatmap-tooltip {
  position: absolute;
  background: var(--primary-dark);
  border: 1px solid var(--accent-electric);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  display: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.heatmap-tooltip.visible { display: block; }

/* KiloTango Pro CTA */
.pro-cta {
  background: linear-gradient(135deg, rgba(200,151,58,0.12) 0%, rgba(200,151,58,0.04) 100%);
  border: 1px solid rgba(200,151,58,0.25);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.pro-cta .pro-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-brass);
  margin-bottom: 8px;
}
.pro-cta h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.pro-cta p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pro-cta .pro-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent-brass);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: box-shadow 200ms;
}
.pro-cta .pro-btn:hover {
  box-shadow: 0 0 14px rgba(200,151,58,0.35);
}


/* =====================================================
   Market Intelligence Dashboard
===================================================== */
.intel-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 1023px) {
  .intel-grid { grid-template-columns: 1fr; }
}
.chart-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px;
  position: relative;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.chart-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
}
.chart-period-pills { display: flex; gap: 6px; }
.chart-pill {
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 200ms;
}
.chart-pill.active,
.chart-pill:hover {
  background: rgba(0,194,255,0.15);
  border-color: var(--accent-electric);
  color: var(--accent-electric);
}
.chart-canvas-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}
.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.intel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sentiment-widget {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.sentiment-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.sentiment-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.sentiment-light.buy {
  background: radial-gradient(circle, rgba(34,197,94,0.35) 0%, rgba(34,197,94,0.08) 70%);
  color: var(--stock-in);
  border: 2px solid var(--stock-in);
  box-shadow: 0 0 20px rgba(34,197,94,0.25), inset 0 0 12px rgba(34,197,94,0.15);
}
.sentiment-light.hold {
  background: radial-gradient(circle, rgba(245,158,11,0.35) 0%, rgba(245,158,11,0.08) 70%);
  color: var(--stock-low);
  border: 2px solid var(--stock-low);
  box-shadow: 0 0 20px rgba(245,158,11,0.25), inset 0 0 12px rgba(245,158,11,0.15);
}
.sentiment-light.wait {
  background: radial-gradient(circle, rgba(239,68,68,0.35) 0%, rgba(239,68,68,0.08) 70%);
  color: var(--stock-out);
  border: 2px solid var(--stock-out);
  box-shadow: 0 0 20px rgba(239,68,68,0.25), inset 0 0 12px rgba(239,68,68,0.15);
}
.sentiment-light::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.2;
}
.sentiment-detail {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.sentiment-detail strong {
  color: var(--text-dark);
  font-weight: 600;
}
.heatmap-widget {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px;
}
.heatmap-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.heatmap-svg-wrap {
  position: relative;
  width: 100%;
}
.heatmap-svg-wrap svg {
  width: 100%;
  height: auto;
}
.heatmap-svg-wrap svg path {
  stroke: rgba(0,194,255,0.15);
  stroke-width: 0.5;
  transition: fill 200ms, stroke 200ms;
  cursor: pointer;
}
.heatmap-svg-wrap svg path:hover {
  stroke: var(--accent-electric);
  stroke-width: 1;
  filter: brightness(1.3);
}
.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.heatmap-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.heatmap-tooltip {
  position: absolute;
  background: var(--primary-dark);
  border: 1px solid var(--accent-electric);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  display: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.heatmap-tooltip.visible { display: block; }
.pro-cta {
  background: linear-gradient(135deg, rgba(200,151,58,0.12) 0%, rgba(200,151,58,0.04) 100%);
  border: 1px solid rgba(200,151,58,0.25);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.pro-cta .pro-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-brass);
  margin-bottom: 8px;
}
.pro-cta h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.pro-cta p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pro-cta .pro-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent-brass);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: box-shadow 200ms;
}
.pro-cta .pro-btn:hover {
  box-shadow: 0 0 14px rgba(200,151,58,0.35);
}

/* Hidden utility */
.hidden { display: none !important; }

/* ===================================================================
   Live catalog cards (rendered by catalog.js from Impact.com / OpticsPlanet)
   Intentionally separate from .listing-card so listing.js does not
   filter/sort these. Visual language matches the brand palette.
   =================================================================== */
.live-catalog-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.live-catalog-status {
  padding: 24px;
  text-align: center;
  border: 1px dashed #cfd6df;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.live-catalog-loading { color: var(--muted); }
.live-catalog-empty { color: var(--muted); }
.live-catalog-error { color: #b00020; border-color: #b00020; }

.live-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.live-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.live-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 27, 42, 0.10);
  border-color: #C8973A;
}
.live-product-card[data-stock="out"] { opacity: 0.72; }

.live-product-imgwrap {
  position: relative;
  background: #f4f6f9;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* No flex centering — the absolutely-positioned img below handles its own
     centering via object-fit:contain. Flex would let the img's intrinsic
     height push the wrapper taller (via the flex item's default min-height:
     auto), breaking aspect-ratio:1/1 for tall portrait product photos. */
}
.live-product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  display: block;
}
.live-product-img--placeholder {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, #e1e6ec 0%, #cfd6df 100%);
  border-radius: 6px;
}
.live-product-imgwrap .stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  letter-spacing: 0.5px;
  z-index: 1;
}

.live-product-body {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
  gap: 8px;
  flex: 1;
}
.live-product-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #C8973A;
}
.live-product-name {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A2E;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 3);
}
.live-product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.live-product-price {
  font-weight: 700;
  font-size: 18px;
  color: #0D1B2A;
}
.live-product-orig {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}
.live-product-discount {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #C8973A;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.live-product-cta {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  font-size: 13px;
  padding: 10px 12px;
}
.live-product-source {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.live-catalog-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
}
.live-catalog-pager button {
  background: #0D1B2A;
  color: #DCE4EE;
  border: 1px solid #0D1B2A;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.live-catalog-pager button:hover { background: #C8973A; border-color: #C8973A; }
.live-catalog-pageinfo { color: var(--muted); }

@media (max-width: 600px) {
  .live-product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .live-product-name { font-size: 13px; }
  .live-product-price { font-size: 16px; }
}

/* ============================================================
   Listing page: sidebar layout (facets) + main results
   ============================================================ */
.kt-listing-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.kt-listing-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  padding: 16px 14px;
  font-size: 13px;
}
.kt-listing-main { min-width: 0; }

.kt-facets-mobile-toggle {
  display: none;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #0D1B2A;
  color: #DCE4EE;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   v2 Faceted Sidebar — Collapsible Progressive Disclosure
   Top 3 facets expanded by default (Bullet Type, Quantity, Price),
   rest collapsed behind a clearly clickable chevron toggle.
   ============================================================ */

.kt-facets-loading {
  color: var(--muted);
  font-size: 12px;
  padding: 8px 0;
}

.kt-sidebar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2px;
}
.kt-sidebar-head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #7A8FA6;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.kt-clear-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: #C8973A;
  cursor: pointer;
}
.kt-clear-link:hover { text-decoration: underline; }
.kt-result-count {
  font-size: 11px;
  color: #7A8FA6;
  margin-bottom: 12px;
}

/* In stock pinned toggle — outside any collapsible group */
.kt-toggle-row {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #f6f8fb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #0D1B2A;
  margin-bottom: 10px;
  border: 1px solid #eef0f3;
}
.kt-toggle-row input { margin-right: 10px; accent-color: #C8973A; cursor: pointer; }
.kt-toggle-row .cnt {
  margin-left: auto;
  color: #7A8FA6;
  font-weight: 400;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Collapsible facet group */
.kt-group { padding: 2px 0; }
.kt-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin: 0 -10px;
  user-select: none;
  border-radius: 6px;
  transition: background 0.12s;
  font-family: inherit;
  text-align: left;
}
.kt-group-head:hover { background: #FBF6EC; }
.kt-group-head h4 {
  margin: 0;
  font-size: 13px;
  color: #0D1B2A;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}
.kt-selcount {
  background: #C8973A;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Prominent chevron toggle button */
.kt-chev {
  width: 26px;
  height: 26px;
  background: #f6f8fb;
  border: 1.5px solid #d6dde6;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  flex-shrink: 0;
  transition: all 0.15s;
}
.kt-chev svg { width: 13px; height: 13px; transition: transform 0.2s ease; }
.kt-group-head:hover .kt-chev {
  background: #fff;
  border-color: #C8973A;
  color: #C8973A;
}
.kt-group.open .kt-chev {
  background: #C8973A;
  border-color: #C8973A;
  color: #fff;
}
.kt-group.open .kt-chev svg { transform: rotate(180deg); }
.kt-group.open .kt-group-head:hover .kt-chev { background: #A87C2D; border-color: #A87C2D; }

/* Group body — hidden when collapsed */
.kt-group-body {
  display: none;
  padding: 4px 0 8px;
}
.kt-group.open .kt-group-body { display: block; }

/* Standard checkbox option row */
.kt-opt {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 4px 5px 0;
  font-size: 13px;
  color: #2c3e50;
  cursor: pointer;
  border-radius: 4px;
}
.kt-opt:hover { color: #0D1B2A; }
.kt-opt input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #C8973A;
  cursor: pointer;
}
.kt-opt .lbl { line-height: 1.3; }
.kt-opt input[type="checkbox"]:checked ~ .lbl { font-weight: 600; color: #0D1B2A; }
.kt-opt .cnt {
  font-size: 11px;
  color: #7A8FA6;
  font-variant-numeric: tabular-nums;
}
.kt-empty {
  font-size: 12px;
  color: #9aa5b3;
  font-style: italic;
  padding: 4px 0;
}

/* "Show more" link */
.kt-more {
  background: none;
  border: 0;
  padding: 6px 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: #C8973A;
  cursor: pointer;
  text-align: left;
}
.kt-more:hover { text-decoration: underline; }

/* Brand search-within-facet */
.kt-brand-search {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #d6dde6;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 8px;
  font-family: inherit;
  color: #0D1B2A;
}
.kt-brand-search:focus {
  outline: none;
  border-color: #C8973A;
  box-shadow: 0 0 0 2px rgba(200,151,58,0.15);
}

/* Use Type — compact icon chips */
.kt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}
.kt-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f6f8fb;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 8px 6px;
  min-width: 62px;
  cursor: pointer;
  transition: all 0.12s;
  font-family: inherit;
}
.kt-chip:hover { background: #FBF6EC; }
.kt-chip.sel {
  background: #fff;
  border-color: #C8973A;
  box-shadow: 0 1px 3px rgba(200,151,58,0.18);
}
.kt-chip .ic {
  color: #0D1B2A;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}
.kt-chip .ic svg { width: 22px; height: 22px; }
.kt-chip.sel .ic { color: #C8973A; }
.kt-chip .nm {
  font-size: 10px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  line-height: 1.15;
}
.kt-chip.sel .nm { color: #C8973A; }
.kt-chip .ct {
  font-size: 9px;
  color: #9aa5b3;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Active Filter Pills (above grid)
   ============================================================ */
.kt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}
.kt-pill {
  background: #FBF6EC;
  color: #8B6824;
  padding: 4px 8px 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #E8D9B3;
}
.kt-pill .x {
  background: rgba(200,151,58,0.18);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  color: #8B6824;
}
.kt-pill .x:hover { background: rgba(200,151,58,0.35); }

/* ============================================================
   Toolbar above grid (count + sort)
   ============================================================ */
.kt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  gap: 12px;
  flex-wrap: wrap;
}
.kt-toolbar-count {
  color: #7A8FA6;
}
.kt-toolbar-count strong {
  color: #0D1B2A;
  font-weight: 700;
}
.kt-sort {
  background: #f6f8fb;
  border: 1px solid #d6dde6;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 12px;
  color: #0D1B2A;
  font-family: inherit;
  cursor: pointer;
}
.kt-sort:focus { outline: none; border-color: #C8973A; }

/* ============================================================
   Cross-retailer "Also at" panel under each card
   ============================================================ */
.kt-alts {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #d5dbe2;
}
.kt-alts-head {
  font-size: 10px;
  color: #7A8FA6;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.kt-alt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  margin-bottom: 3px;
  background: #f6f8fb;
  border-radius: 4px;
  font-size: 12px;
  color: #2c3e50;
  text-decoration: none;
  transition: background 0.15s;
}
.kt-alt-row:hover { background: #ecf0f5; color: #C8973A; }
.kt-alt-name { font-weight: 500; }
.kt-alt-price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================================================
   Per-card shipping info note
   ============================================================ */
.kt-shipnote {
  font-size: 11px;
  color: #5a6c7d;
  line-height: 1.35;
  margin: 4px 0 10px;
  padding: 6px 8px;
  background: #f6f8fb;
  border-left: 2px solid #C8973A;
  border-radius: 2px;
}

/* ============================================================
   Mobile responsiveness — collapse sidebar to drawer
   ============================================================ */
@media (max-width: 840px) {
  .kt-listing-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .kt-facets-mobile-toggle { display: block; }
  .kt-listing-sidebar {
    display: none;
    position: static;
    max-height: none;
    margin-bottom: 18px;
  }
  .kt-listing-sidebar.kt-facets-open { display: block; }
}

/* ============================================================
   Partner banner — subtle brass-framed clickable card.
   Provides affordance ("this rectangle is clickable") without
   screaming "ad placement" (which triggers banner blindness).
   ============================================================ */
.kt-partner-banner {
  display: inline-block;
  border: 1px solid #C8973A;
  border-radius: 6px;
  padding: 4px;
  background: #0D1B2A;
  line-height: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  max-width: 100%;
}
.kt-partner-banner:hover {
  box-shadow: 0 4px 16px rgba(200, 151, 58, 0.3);
  transform: translateY(-1px);
}
.kt-partner-banner img {
  display: block;
  width: 100%;
  max-width: 728px;       /* cap at leaderboard width — banner stays prominent but proportionate */
  height: auto;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .kt-partner-banner { padding: 3px; }
  .kt-partner-banner img { width: 100%; }
}

/* ============================================================
   State-laws page — interactive US map + detail panel
   ============================================================ */

/* Visually-hidden helper for screen-reader-only labels */
.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;
}

/* Color legend at the top of the map */
.kt-state-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 24px;
}
.kt-tier-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.kt-tier-badge.kt-tier-0 { background:#EAF3DE; color:#173404; }
.kt-tier-badge.kt-tier-1 { background:#FAEEDA; color:#412402; }
.kt-tier-badge.kt-tier-2 { background:#FAECE7; color:#4A1B0C; }
.kt-tier-badge.kt-tier-3 { background:#FCEBEB; color:#501313; }

/* Search input above the map */
.kt-state-search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.kt-state-search-wrap input {
  width: 100%;
  max-width: 360px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #d5dbe2;
  border-radius: 6px;
  background: #fff;
}
.kt-state-search-wrap input:focus {
  outline: 0;
  border-color: #C8973A;
  box-shadow: 0 0 0 3px rgba(200,151,58,0.18);
}

/* Map container */
.kt-us-map-host {
  max-width: 960px;
  margin: 0 auto 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  min-height: 320px;
  position: relative;
}
.kt-map-loading,
.kt-map-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A8FA6;
  font-size: 14px;
}

/* SVG state paths */
.kt-state-path {
  cursor: pointer;
  stroke: #fff;
  stroke-width: 0.5;
  transition: filter 0.15s, opacity 0.15s;
  outline: 0;
}
.kt-state-path.kt-tier-0 { fill: #C0DD97; }
.kt-state-path.kt-tier-1 { fill: #FAC775; }
.kt-state-path.kt-tier-2 { fill: #F0997B; }
.kt-state-path.kt-tier-3 { fill: #F09595; }
.kt-state-path:hover { filter: brightness(1.15); }
.kt-state-path:focus { stroke: #0D1B2A; stroke-width: 2; }
.kt-state-path.kt-state-selected {
  stroke: #0D1B2A;
  stroke-width: 2.5;
}
.kt-state-mesh {
  fill: none;
  stroke: #fff;
  stroke-width: 0.8;
  pointer-events: none;
}

/* Detail panel below the map */
.kt-state-detail {
  max-width: 780px;
  margin: 0 auto 24px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  min-height: 120px;
}
.kt-state-detail-empty {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #7A8FA6;
}
.kt-state-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.kt-state-detail-title {
  margin: 0 0 6px;
  font-size: 22px;
  color: #1A2530;
  font-weight: 700;
}
.kt-state-detail-cta {
  font-size: 13px;
  padding: 8px 14px;
  white-space: nowrap;
}
.kt-state-detail-summary {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

/* Mobile / a11y fallback — full state list */
.kt-state-list-toggle {
  max-width: 780px;
  margin: 0 auto 24px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
}
.kt-state-list-toggle summary {
  font-size: 13px;
  font-weight: 600;
  color: #0D1B2A;
  cursor: pointer;
  padding: 4px 0;
}
.kt-state-list {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
}
.kt-state-list-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  color: #1A2530;
}
.kt-state-list-btn:hover { background: #f6f8fb; }
.kt-tier-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.kt-tier-dot.kt-tier-0 { background: #97C459; }
.kt-tier-dot.kt-tier-1 { background: #EF9F27; }
.kt-tier-dot.kt-tier-2 { background: #D85A30; }
.kt-tier-dot.kt-tier-3 { background: #E24B4A; }

/* FFL CTA panel */
.kt-ffl-cta {
  max-width: 780px;
  margin: 32px auto 0;
  padding: 24px 26px;
  background: #0D1B2A;
  border-radius: 10px;
  text-align: center;
}
.kt-ffl-cta--light {
  background: #f6f8fb;
  border: 1px solid #e6e8ec;
}
.kt-ffl-cta--light h3 { color: #1A2530 !important; }
.kt-ffl-cta--light p { color: #5a6c7d !important; }

/* Mobile responsiveness */
@media (max-width: 600px) {
  .kt-state-detail { padding: 18px 18px; }
  .kt-state-detail-head { flex-direction: column; }
  .kt-state-detail-cta { width: 100%; text-align: center; }
}

/* ============================================================
   State template page (state-template.html)
   ============================================================ */
.kt-st-rule-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kt-st-rule {
  padding: 18px 20px;
  background: #f6f8fb;
  border-left: 3px solid #C8973A;
  border-radius: 4px;
}
.kt-st-rule h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #1A2530;
  font-weight: 700;
}
.kt-st-rule p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

/* ============================================================
   FFL dealer locator — embedded search + Leaflet map
   ============================================================ */
.kt-ffl-locator {
  max-width: 980px;
  margin: 32px auto 0;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
}
.kt-ffl-locator-head { margin-bottom: 16px; }

.kt-ffl-form { margin: 0 0 16px; }
.kt-ffl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.kt-ffl-field { display: flex; flex-direction: column; }
.kt-ffl-field label {
  font-size: 12px;
  font-weight: 600;
  color: #1A2530;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.kt-ffl-field input,
.kt-ffl-field select {
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #d5dbe2;
  border-radius: 6px;
  background: #fff;
}
.kt-ffl-field input:focus,
.kt-ffl-field select:focus {
  outline: 0;
  border-color: #C8973A;
  box-shadow: 0 0 0 3px rgba(200, 151, 58, 0.2);
}
.kt-ffl-submit {
  white-space: nowrap;
  padding: 10px 18px !important;
  font-size: 14px !important;
}

.kt-ffl-status { min-height: 8px; }
.kt-ffl-loading { color: #5a6c7d; font-size: 14px; padding: 8px 0; }
.kt-ffl-error   { color: #b00020; font-size: 14px; padding: 8px 0; }
.kt-ffl-empty   { color: #5a6c7d; font-size: 14px; padding: 8px 0; }

.kt-ffl-results-wrap { margin-top: 8px; }
.kt-ffl-meta {
  font-size: 13px;
  color: #5a6c7d;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 14px;
}
.kt-ffl-meta-count strong { color: #1A2530; }
.kt-ffl-meta-cap { color: #7A8FA6; }

.kt-ffl-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.kt-ffl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}
.kt-ffl-card {
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.kt-ffl-card:hover {
  border-color: #C8973A;
  transform: translateY(-1px);
}
.kt-ffl-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.kt-ffl-card-name {
  font-weight: 700;
  font-size: 14px;
  color: #1A2530;
}
.kt-ffl-card-dist {
  font-size: 12px;
  font-weight: 600;
  color: #C8973A;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.kt-ffl-card-addr {
  font-size: 13px;
  line-height: 1.5;
  color: #5a6c7d;
  margin-bottom: 6px;
}
.kt-ffl-card-phone {
  font-size: 13px;
  margin-bottom: 6px;
}
.kt-ffl-card-phone a {
  color: #1A2530;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.kt-ffl-card-phone a:hover { color: #C8973A; }
.kt-ffl-card-dirlink {
  font-size: 12px;
  color: #C8973A;
  text-decoration: none;
}
.kt-ffl-card-dirlink:hover { text-decoration: underline; }

.kt-ffl-map {
  min-height: 540px;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f8fb;
}
.kt-ffl-map-error {
  padding: 24px;
  color: #5a6c7d;
  font-size: 13px;
  text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .kt-ffl-form-row { grid-template-columns: 1fr; gap: 10px; }
  .kt-ffl-submit { width: 100%; }
  .kt-ffl-layout { grid-template-columns: 1fr; }
  .kt-ffl-list { max-height: 400px; }
  .kt-ffl-map { min-height: 320px; }
  .kt-ffl-locator { padding: 18px 16px; }
}

/* ============================================================
   STATE LAW PAGES — Expanded content components (2026 SEO build)
   ============================================================ */
.kt-law-wrap { max-width: 980px; margin: 0 auto; }

/* --- Quick Answer box (featured-snippet target) --- */
.kt-quick-answer {
  background: linear-gradient(135deg, #0D1B2A 0%, #1E2D42 100%);
  border: 1px solid rgba(200,151,58,0.35);
  border-left: 5px solid #F5A623;
  border-radius: 12px;
  padding: 28px 30px;
  max-width: 980px;
  margin: 0 auto;
}
.kt-quick-answer h2 {
  font-family: var(--font-display);
  font-size: 26px; line-height: 1.1;
  color: #F5A623; letter-spacing: 0.02em;
  margin: 0 0 4px; text-transform: uppercase;
}
.kt-qa-sub { font-size: 13px; color: #7A8FA6; margin: 0 0 20px; }
.kt-qa-grid { display: grid; gap: 0; }
.kt-qa-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 0; border-top: 1px solid rgba(0,194,255,0.10);
}
.kt-qa-row:first-child { border-top: none; }
.kt-qa-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 104px; padding: 7px 12px; border-radius: 20px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; text-align: center;
}
.kt-badge-yes  { background: rgba(34,197,94,0.16);  color: #34D173; border: 1px solid rgba(34,197,94,0.45); }
.kt-badge-no   { background: rgba(239,68,68,0.16);  color: #F87171; border: 1px solid rgba(239,68,68,0.45); }
.kt-badge-warn { background: rgba(245,166,35,0.16); color: #F5A623; border: 1px solid rgba(245,166,35,0.5); }
.kt-qa-text { font-size: 15px; color: #DCE4EE; line-height: 1.55; padding-top: 3px; }
.kt-qa-text strong { color: #fff; }

/* --- Inline SVG infographic --- */
.kt-infographic { max-width: 720px; margin: 30px auto 0; }
.kt-infographic svg { width: 100%; height: auto; display: block; }

/* --- Expanded law content body --- */
.kt-law-body { max-width: 820px; margin: 0 auto; }
.kt-law-body > h2 {
  font-family: var(--font-display); font-size: 30px; line-height: 1.15;
  color: #1A2530; margin: 0 0 14px; letter-spacing: 0.01em;
}
.kt-law-body h3 { font-size: 18px; color: #1A2530; margin: 24px 0 6px; font-weight: 700; }
.kt-law-body p { font-size: 16px; color: #374151; line-height: 1.75; margin: 0 0 16px; }
.kt-law-body ul { margin: 0 0 16px; padding-left: 0; }
.kt-law-body li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 16px; color: #374151; line-height: 1.7;
}
.kt-law-body li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; background: #C8973A; border-radius: 2px; transform: rotate(45deg);
}
.kt-law-divider { height: 1px; background: #e6e8ec; margin: 40px 0; }
.kt-callout { background: #FBF6EC; border-left: 4px solid #C8973A; border-radius: 8px; padding: 16px 20px; margin: 0 0 22px; }
.kt-callout p { margin: 0; font-size: 15px; color: #6b5523; line-height: 1.65; }
.kt-callout strong { color: #4d3d18; }

/* --- Related states / internal linking --- */
.kt-related { max-width: 820px; margin: 0 auto; }
.kt-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; margin-top: 14px; }
.kt-related-grid a {
  display: block; padding: 12px 14px; background: #fff;
  border: 1px solid #d6dde6; border-radius: 8px;
  color: #0D1B2A; font-weight: 600; font-size: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.kt-related-grid a:hover { border-color: #C8973A; transform: translateY(-1px); }
.kt-related-back { display: inline-block; margin-top: 18px; font-size: 14px; color: #C8973A; font-weight: 600; }

@media (max-width: 600px) {
  .kt-quick-answer { padding: 22px 18px; }
  .kt-qa-row { flex-direction: column; gap: 8px; }
  .kt-qa-badge { min-width: 0; }
  .kt-law-body > h2 { font-size: 25px; }
}

/* ============================================================
   Price-Drop Alert Signup (homepage section + listing bar)
   FIX 7 — Netlify Forms
   ============================================================ */
.kt-signup {
  background: linear-gradient(135deg, #0D1B2A 0%, #162032 100%);
  border-top: 1px solid rgba(200,151,58,0.25);
  border-bottom: 1px solid rgba(200,151,58,0.25);
  padding: 56px 0;
}
.kt-signup-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.kt-signup-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--text-dark);
  margin-bottom: 10px;
}
.kt-signup-inner h2 .accent { color: var(--accent-brass); }
.kt-signup-inner p.kt-signup-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.kt-signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}
.kt-signup-form input[type="email"],
.kt-signup-form select {
  flex: 1 1 220px;
  min-width: 0;
  background: #fff;
  border: 1px solid #d6dde6;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: #0D1B2A;
  min-height: 50px;
}
.kt-signup-form select { flex: 0 1 200px; cursor: pointer; }
.kt-signup-form input[type="email"]:focus,
.kt-signup-form select:focus { outline: none; border-color: var(--accent-brass); box-shadow: 0 0 0 3px rgba(200,151,58,0.2); }
.kt-signup-form button {
  flex: 0 0 auto;
  background: var(--accent-brass);
  color: #0D1B2A;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 15px;
  border-radius: 8px;
  padding: 14px 28px;
  min-height: 50px;
  transition: background 0.15s, transform 0.15s;
}
.kt-signup-form button:hover { background: #d9a747; transform: translateY(-1px); }
.kt-signup-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.kt-signup-hp { position: absolute; left: -5000px; }
.kt-signup-success {
  display: none;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 8px;
  color: #22C55E;
  padding: 14px 18px;
  font-size: 15px;
  margin-top: 16px;
}
@media (max-width: 600px) {
  .kt-signup-form input[type="email"],
  .kt-signup-form select,
  .kt-signup-form button { flex: 1 1 100%; }
}

/* Compact inline signup bar on listing pages */
.kt-signup-bar {
  background: #0D1B2A;
  border: 1px solid rgba(200,151,58,0.3);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.kt-signup-bar-copy { flex: 1 1 280px; }
.kt-signup-bar-copy strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 18px;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}
.kt-signup-bar-copy span { font-size: 13px; color: var(--muted); }
.kt-signup-bar form { display: flex; gap: 10px; flex: 1 1 320px; flex-wrap: wrap; }
.kt-signup-bar input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  background: #fff;
  border: 1px solid #d6dde6;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #0D1B2A;
  min-height: 46px;
}
.kt-signup-bar input[type="email"]:focus { outline: none; border-color: var(--accent-brass); }
.kt-signup-bar button {
  flex: 0 0 auto;
  background: var(--accent-brass);
  color: #0D1B2A;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 22px;
  min-height: 46px;
}
.kt-signup-bar button:hover { background: #d9a747; }
@media (max-width: 540px) {
  .kt-signup-bar button { flex: 1 1 100%; }
}

/* ============================================================
   How It Works — SVG icon steps (FIX 10)
   ============================================================ */
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,194,255,0.08);
  border: 1px solid rgba(0,194,255,0.25);
  margin-bottom: 18px;
}
.step-icon svg { width: 34px; height: 34px; stroke: var(--accent-electric); fill: none; }
.step-card .step-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent-brass);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ============================================================
   Trust signals (FIX 9)
   ============================================================ */
.kt-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #1B7F4B;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 4px;
  padding: 2px 6px;
}
.kt-verified svg { width: 11px; height: 11px; display: block; }
.live-product-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.live-product-source-row .live-product-source {
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  text-transform: none;
  font-size: 11px;
}

/* Trust bar (homepage strip) + Why Trust section */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-item svg { width: 26px; height: 26px; stroke: var(--accent-brass); fill: none; flex: 0 0 auto; margin-top: 2px; }
.trust-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  margin: 0 0 3px;
}
.trust-item p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.trust-item.on-light h4 { color: var(--text-light); }
@media (max-width: 900px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-bar { grid-template-columns: 1fr; } }

/* Last-updated indicator (homepage) */
.kt-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 28px;
}
.kt-last-updated .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--stock-in);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: kt-pulse 2s infinite;
}
@keyframes kt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ============================================================
   Mobile filter/sort UX (FIX 8)
   ============================================================ */
@media (max-width: 840px) {
  /* Larger, touch-friendly "Show Filters" trigger */
  .kt-facets-mobile-toggle {
    min-height: 50px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  /* Sort row stacks full-width with big tap targets; no overflow */
  .kt-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }
  .kt-toolbar .kt-sort {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    padding: 12px 14px;
  }
  .kt-toolbar-count { text-align: center; }
}
@media (max-width: 600px) {
  .filter-bar { top: 60px; }
  .filter-bar-inner { gap: 6px; }
  .filter-bar-inner h1 { font-size: 15px !important; }
  /* Open facet drawer scrolls instead of pushing the whole page */
  .kt-listing-sidebar.kt-facets-open {
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* ===================================================================
   KT-MEDIUM-2026 — Last-updated + Social share bar (state law pages)
   =================================================================== */
.kt-share-section { padding: 8px 0 24px; }
.kt-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid rgba(13,27,42,0.10);
  border-left: 4px solid var(--accent-brass);
  border-radius: 8px;
}
.kt-last-updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #5a6c7d;
}
.kt-last-updated time { color: #1A2530; font-weight: 500; }
.kt-share-actions { display: flex; align-items: center; gap: 8px; }
.kt-share-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 2px;
}
.kt-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--primary-dark);
  background: #EEF1F5;
  border: 1px solid rgba(13,27,42,0.12);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.kt-share-btn svg { width: 15px; height: 15px; flex: none; }
.kt-share-btn:hover { transform: translateY(-1px); border-color: var(--accent-brass); }
.kt-share-x:hover { background: #0D1B2A; color: #fff; }
.kt-share-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.kt-share-copy:hover { background: var(--accent-brass); color: #fff; border-color: var(--accent-brass); }
.kt-share-copy.copied { background: var(--stock-in); color: #06230f; border-color: var(--stock-in); }
@media (max-width: 560px) {
  .kt-share-bar { flex-direction: column; align-items: flex-start; }
  .kt-share-btn span { display: none; }
  .kt-share-label { display: none; }
  .kt-share-btn { padding: 8px 11px; }
}

/* ===================================================================
   KT-MEDIUM-2026 — 404 page
   =================================================================== */
.kt-404 {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(0,194,255,0.06), transparent 70%),
    var(--primary-dark);
}
.kt-404-inner { max-width: 680px; margin: 0 auto; padding: 0 1rem; }
.kt-404-code {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 150px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--accent-brass);
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(200,151,58,0.25);
}
.kt-404-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-electric);
  margin-bottom: 18px;
}
.kt-404-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  color: var(--text-dark);
  margin-bottom: 14px;
}
.kt-404-msg {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
}
.kt-404-search {
  display: flex;
  max-width: 440px;
  margin: 0 auto 28px;
  background: var(--surface-mid);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}
.kt-404-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
}
.kt-404-search input::placeholder { color: #5A6C7D; }
.kt-404-search button {
  border: 0;
  background: var(--accent-brass);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 0 20px;
  cursor: pointer;
  transition: filter .15s ease;
}
.kt-404-search button:hover { filter: brightness(1.08); }
.kt-404-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.kt-404-links a {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  transition: border-color .15s ease, transform .15s ease, color .15s ease;
}
.kt-404-links a:hover { border-color: var(--accent-brass); color: var(--accent-brass); transform: translateY(-1px); }
