/**
 * FuelPartsDB — Unified Stylesheet
 * Extracted and merged from docs/demo-*.html
 * Design system: Inter + Barlow Condensed + JetBrains Mono
 */

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
  /* ── Color Palette ── */
  --primary:       #1a3a5c;
  --primary-dark:  #0f2440;
  --primary-light: #234b73;
  --accent:        #f59e0b;
  --accent-hover:  #d97706;
  --accent-light:  #fbbf24;
  --bg:           #f4f7fb;
  --bg-white:     #ffffff;
  --bg-soft:      #f8fafc;
  /* Demo v4 alignment */
  --bg-alt:       #eef1f6;   /* section-card / faq background */
  --bg-row:       #eef1f6;   /* table odd rows */
  --bg-row-alt:   #e8ebf0;   /* table even rows */
  --text:         #1a1a1a;
  --text-secondary:#475569;
  --text-muted:   #64748b;
  --border:       #d1d9e6;
  --border-strong:#b8c4d4;   /* engine-tag / dlla-tag border */
  --success:      #10b981;
  --danger:       #ef4444;
  --warning:      #f59e0b;
  /* Badge tier colors */
  --badge-primary:     #1a3a5c;
  --badge-oem:         #d97706;
  --badge-aftermarket: #64748b;

  /* Demo v4 color aliases (for compatibility with extracted demo CSS) */
  --color-primary:       #1a3a5c;
  --color-primary-light: #234b73;
  --color-primary-dark:  #0f2440;
  --color-accent:        #f59e0b;
  --color-accent-hover:  #d97706;
  --color-steel:         #94a3b8;
  --color-steel-light:   #cbd5e1;
  --color-bg:            #f5f7fa;
  --color-bg-alt:        #eef1f6;
  --color-bg-row:        #eef1f6;
  --color-bg-row-alt:    #e8ebf0;
  --color-border:        #d1d9e6;
  --color-border-strong:  #b8c4d4;
  --color-text:          #1a1a1a;
  --color-text-secondary:#475569;
  --color-success:       #10b981;
  --color-primary-badge:  #1a3a5c;
  --color-oem-badge:     #d97706;
  --color-aftermarket-badge: #64748b;

  /* ── Spacing ── */
  --radius-sm:   3px;   /* Demo v4 alignment */
  --radius-md:    5px;
  --radius-lg:    8px;
  --radius-pill:  12px;  /* badge pill radius */
  --shadow-sm: 0 1px 3px rgba(26,58,92,0.07);
  --shadow-md: 0 4px 12px rgba(26,58,92,0.10);
  --shadow:    0 18px 44px rgba(15, 36, 64, 0.08);
  --shadow-lg: 0 28px 64px rgba(15, 36, 64, 0.12);

  /* ── Typography ── */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Roboto Slab', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* ── Layout ── */
  --container: 1280px;
  --gap:       20px;
}

/* ============================================================
   2. Reset & Globals
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

/* ============================================================
   3. Header & Footer (shared across all pages)
   ============================================================ */
.site-header {
  background: var(--primary-dark);
  color: white;
  padding: 14px 0;
  position: relative;
  z-index: 100;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

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

.header-branding {
  min-width: 0;
}

.header-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
}

.header-brand-link:hover,
.header-brand-link:focus-visible {
  color: white;
  text-decoration: none;
}

.header-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-brand-title,
.header-logo-text,
.logo {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.header-logo-main {
  color: white;
}

.header-logo-accent,
.logo span,
.logo-accent {
  color: var(--accent);
}

.header-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header-logo-mark img {
  display: block;
  max-height: 46px;
  width: auto;
}

.header-note {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 4px;
  white-space: nowrap;
}

.fpdb-primary-nav {
  margin-left: auto;
}

/* Desktop nav: visible, mobile nav: hidden */
.fpdb-nav-desktop {
  display: block;
}
.fpdb-nav-mobile {
  display: none;
}

.fpdb-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fpdb-nav-list li {
  margin: 0;
  padding: 0;
}

.fpdb-nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* ------- Mega dropdown ------- */
.fpdb-nav-list li.has-dropdown { position: relative; padding-top: 8px; }
.fpdb-caret { margin-left: 4px; font-size: 10px; opacity: 0.8; }
.fpdb-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 36, 64, 0.18);
  list-style: none;
  padding: 8px 0;
  z-index: 100;
  display: none !important;
}
.fpdb-nav-list li.has-dropdown:hover > .fpdb-dropdown,
.fpdb-nav-list li.has-dropdown:focus-within > .fpdb-dropdown {
  display: block !important;
}
.fpdb-dropdown li { margin: 0; }
.fpdb-dropdown a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  min-height: auto;
  padding: 10px 16px !important;
  border-radius: 0 !important;
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 500;
}
.fpdb-dropdown a:hover { background: var(--bg-soft); color: var(--primary) !important; }
.fpdb-dropdown-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 8px;
}
.fpdb-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
  padding: 0;
}
.fpdb-dropdown-cta {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

@media (max-width: 960px) {
  .fpdb-nav-list li.has-dropdown { position: static; }
  .fpdb-dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    background: rgba(255,255,255,0.05);
    margin-top: 0;
    border-radius: 0;
    padding: 0 0 8px 16px;
  }
  .fpdb-dropdown a { color: rgba(255,255,255,0.85) !important; }
  .fpdb-dropdown a:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
  .fpdb-dropdown-count { color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.1); }
}

.fpdb-nav-list a:hover,
.fpdb-nav-list a:focus-visible {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.fpdb-nav-list .current-menu-item > a,
.fpdb-nav-list .current-menu-ancestor > a,
.fpdb-nav-list .current_page_item > a,
.fpdb-nav-list .current_page_ancestor > a {
  background: rgba(245,158,11,0.16);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(245,158,11,0.28);
}

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: inline-block;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.logo-accent { color: var(--accent); }

.footer-tagline {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-icon:hover {
  background: var(--accent);
  color: white;
}

.footer-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  display: inline-block;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   5. Hero (front-page & product detail)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,158,11,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 999px;
  background: rgba(245,158,11,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.search-form {
  max-width: 560px;
  margin: 0 auto 40px;
}

.search-box {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-box input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  background: white;
  color: var(--text);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
  padding: 16px 28px;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.search-box button:hover { background: var(--accent-hover); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================================
   6. Section Heading (shared)
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.7;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   7. Categories (front-page) — SEO 3-column catalog grid
   ============================================================ */
.categories-section {
  padding: 72px 0;
}

/* --- SEO Catalog Grid (replaces cat-buckets) --- */
.seo-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.seo-catalog-col {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}

.seo-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.seo-col-icon {
  font-size: 18px;
  color: var(--accent);
}

.seo-col-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.seo-col-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seo-col-empty {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}

/* Pills — reuse cat-pill visual language for seo-pill */
.seo-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #f6f7f8;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
  min-width: 0;
}
.seo-pill:hover {
  background: var(--bg-white);
  border-color: var(--primary);
  transform: translateY(-1px);
  color: var(--primary);
}
.seo-pill-name { color: var(--primary); }
.seo-pill-count {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.seo-pill-more {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 12px;
  justify-content: center;
}
.seo-pill-more:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Categories (legacy .cat-buckets / .cat-bucket / .cat-pill — kept for sidebar) =====
.cat-buckets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.cat-bucket {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}

.cat-bucket-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-bucket-icon {
  font-size: 18px;
  color: var(--accent);
}

.cat-bucket-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #f6f7f8;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
  min-width: 0;
}

.cat-pill:hover {
  background: var(--bg-white);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.cat-pill-name {
  color: var(--primary);
}

.cat-pill-count {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

/* Sidebar variant: tighter spacing, smaller pills, buckets stacked vertically.
   Pills lose their background + border (parent .sidebar-widget is already a
   bordered card) so the sidebar reads as one flat panel with internal dividers,
   not a card inside a card. */
.cat-buckets--sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: -4px 0;
}
.cat-buckets--sidebar .cat-bucket-title {
  font-size: 11px;
  margin: 0 0 4px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.cat-buckets--sidebar .cat-bucket-icon { font-size: 14px; }
/* ─── Vehicle bucket: compact pill grid with count dot ─── */
.cat-buckets--sidebar .cat-bucket-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cat-buckets--sidebar .cat-pill {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.cat-buckets--sidebar .cat-bucket-grid .cat-pill:last-child { border-bottom: 1px solid #cbd5e1; }
.cat-buckets--sidebar .cat-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.cat-buckets--sidebar .cat-pill-name {
  color: inherit;
  font-weight: 600;
}
.cat-buckets--sidebar .cat-pill-count {
  display: none; /* count shown as badge only for items with count > 1 */
}
.cat-buckets--sidebar .cat-pill[data-count]:not([data-count="1"])::after {
  content: attr(data-count);
  font-size: 9px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 5px;
  margin-left: 5px;
  line-height: 15px;
  vertical-align: middle;
}
.cat-buckets--sidebar .cat-pill:hover::after { background: #fff; color: var(--primary); }

/* ============================================================
   8. Knowledge Section (front-page blog articles)
   ============================================================ */
.knowledge-section {
  padding: 72px 0;
  background: #f6f7f8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.knowledge-main {
  display: grid;
  gap: 18px;
}

.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: border-color 0.2s;
}

.article-card:hover { border-color: var(--primary-light); }

.article-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.article-card-title a { color: inherit; }
.article-card-title a:hover { color: var(--accent); }

.article-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.article-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.article-card-link:hover { color: var(--accent); }

.knowledge-sidebar {
  position: sticky;
  top: 84px;
}

.knowledge-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
}

.knowledge-widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.knowledge-list { list-style: none; padding: 0; margin: 0; }

.knowledge-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.knowledge-list li:last-child { border-bottom: none; padding-bottom: 0; }

.knowledge-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
}

.knowledge-list a:hover { color: var(--primary); }

/* ============================================================
   9. Trust Section (front-page)
   ============================================================ */
.trust-section {
  padding: 72px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(26,58,92,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 18px;
}

.trust-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.trust-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   10. CTA Section (front-page)
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 72px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   11. Breadcrumb
   ============================================================ */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ============================================================
   12. Archive Hero
   ============================================================ */
.archive-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 40px 0 36px;
  margin-bottom: 0;
}

.archive-hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.archive-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.archive-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  line-height: 1.7;
}

.archive-hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.archive-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.archive-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   13. Archive Toolbar
   ============================================================ */
.archive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.archive-count {
  font-size: 14px;
  color: var(--text-muted);
}

.archive-count strong { color: var(--text); }

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-white);
  cursor: pointer;
  outline: none;
}

.sort-select:focus { border-color: var(--primary); }

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.view-btn.active,
.view-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================================
   14. Archive Body & Layout
   ============================================================ */
.archive-body {
  padding: 0 0 72px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

/* ============================================================
   15. Product Grid & Card
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card-image {
  height: 160px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(245,158,11,0.06) 0%, transparent 60%);
}

.product-card-image-placeholder {
  font-size: 48px;
  opacity: 0.35;
}

.product-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(26,58,92,0.08);
  color: var(--primary);
  border: 1px solid rgba(26,58,92,0.12);
}

.product-card-badge.low-stock {
  background: rgba(245,158,11,0.12);
  color: #92400e;
  border-color: rgba(245,158,11,0.25);
}

.product-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--accent); }

.product-card-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-card-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
}

.product-card-specs li {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card-specs li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-card-price {
  font-size: 13px;
  color: var(--text-muted);
}

.product-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card-link:hover { color: var(--accent); }

/* ============================================================
   16. Archive Sidebar
   ============================================================ */
.archive-sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.sidebar-widget:last-child { margin-bottom: 0; }

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}


.sidebar-search {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sidebar-search input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  background: white;
  color: var(--text);
}

.sidebar-search input::placeholder { color: var(--text-muted); }

.sidebar-search button {
  padding: 10px 14px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.2s;
}

.sidebar-search button:hover { background: var(--primary-dark); }

/* ============================================================
   17. Pagination — iOS-style segmented control
   Single pill-shaped capsule holds all page buttons; the current
   page is a "raised" inset segment, others are transparent.
   ============================================================ */
.pagination,
.woocommerce-pagination,
.knowledge-archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto 8px;
  flex-wrap: wrap;
}

/* The single outer capsule that contains every page button */
.pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--bg-soft, #f1f5f9);
  border-radius: 999px;
}

/* Each individual segment inside the capsule */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary, #475569);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Hover — subtle wash on the segment */
.page-numbers:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text, #1a1a1a);
}

/* Current — raised white pill, the "selected" segment of the iOS control */
.page-numbers.current {
  background: var(--bg-white, #ffffff);
  color: var(--primary, #1a3a5c);
  border: 1px solid var(--border, #d1d9e6);
  cursor: default;
  pointer-events: none;
  font-weight: 700;
}

/* Prev/Next icon buttons — tighter padding, slightly bigger chevron */
.page-numbers.prev,
.page-numbers.next {
  min-width: 52px;
  padding: 0 18px;
  font-size: 22px;
  color: var(--text, #1a1a1a);
}
.page-numbers.prev:hover,
.page-numbers.next:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary, #1a3a5c);
}

/* Edge-of-range prev/next — disabled appearance, no interaction */
.page-numbers.prev[aria-disabled="true"],
.page-numbers.next[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
  color: var(--text-muted, #64748b);
  background: transparent;
}

/* Dots inside the capsule — sit flat, no hover */
.page-numbers.dots {
  min-width: 26px;
  height: 52px;
  padding: 0 8px;
  background: transparent;
  color: var(--text-muted, #64748b);
  pointer-events: none;
  cursor: default;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-size: 20px;
}
.page-numbers.dots:hover {
  background: transparent;
  color: var(--text-muted, #64748b);
}

/* Mobile: shrink the capsule so it still fits 7+ items */
@media (max-width: 480px) {
  .pagination,
  .woocommerce-pagination,
  .knowledge-archive-pagination {
    margin-top: 28px;
  }
  .pagination ul.page-numbers,
  .woocommerce-pagination ul.page-numbers {
    padding: 6px;
    gap: 4px;
  }
  .page-numbers {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-size: 17px;
  }
  .page-numbers.prev,
  .page-numbers.next {
    min-width: 40px;
    padding: 0 14px;
    font-size: 19px;
  }
  .page-numbers.dots {
    min-width: 20px;
    height: 44px;
    font-size: 17px;
  }
}

/* ============================================================
   18. Page Hero & Layout (neutral pages)
   ============================================================ */
.page-hero {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}

.page-hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.page-hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
}

.page-body {
  padding: 56px 20px 72px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.page-layout.no-sidebar {
  grid-template-columns: 1fr;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.article-layout.no-sidebar {
  grid-template-columns: 1fr;
}

.article-sidebar {
  min-height: 1px;
  align-self: start;
  position: sticky;
  top: 84px;
}

.page-main-content,
.article-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-intro .page-section-body {
  padding: 28px;
}

.article-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.article-intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.article-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.article-featured-media {
  margin-top: 0;
}

.article-meta-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.article-tags .page-section-body {
  padding-top: 24px;
}

.article-tags-header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-tags-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.article-tag-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-tag-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(26, 58, 92, 0.03), rgba(26, 58, 92, 0));
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.article-tag-list a:hover {
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 36, 64, 0.08);
}

.article-comments {
  margin-top: 0;
}

.article-comments .page-section-body {
  padding-top: 32px;
}

.article-comments #comments,
.article-comments .comments-area {
  margin: 0;
}

.article-comments .comments-title,
.article-comments .comment-reply-title {
  font-family: var(--font-heading);
  color: var(--primary);
  letter-spacing: -0.02em;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 20px;
}

.article-comments .comment-list {
  margin: 24px 0 0;
  padding-left: 0;
  list-style: none;
}

.article-comments .comment-list > .comment,
.article-comments .comment-list .children > .comment {
  background: linear-gradient(180deg, rgba(26, 58, 92, 0.03), rgba(26, 58, 92, 0));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.article-comments .comment {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.article-comments .comment:first-child {
  border-top: 0;
  padding-top: 0;
}

.article-comments .comment-body {
  position: relative;
}

.article-comments .comment-author {
  color: var(--text);
  font-weight: 600;
}

.article-comments .comment-author .avatar {
  border-radius: 999px;
  margin-right: 12px;
}

.article-comments .comment-metadata,
.article-comments .comment-meta,
.article-comments .logged-in-as,
.article-comments .comment-notes {
  color: var(--text-muted);
  font-size: 14px;
}

.article-comments .comment-content {
  color: var(--text-secondary);
  margin-top: 12px;
}

.article-comments .comment-content > *:last-child {
  margin-bottom: 0;
}

.article-comments .reply {
  margin-top: 14px;
}

.article-comments .comment-reply-link,
.article-comments .comment-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.article-comments .comment-reply-link:hover,
.article-comments .comment-edit-link:hover {
  color: var(--accent);
}

.article-comments .children {
  list-style: none;
  margin: 16px 0 0;
  padding-left: 20px;
  border-left: 2px solid rgba(26, 58, 92, 0.08);
}

.article-comments .comment-respond {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article-comments .comment-form {
  display: grid;
  gap: 16px;
}

.article-comments .comment-form p {
  margin: 0;
}

.article-comments .comment-form-author,
.article-comments .comment-form-email,
.article-comments .comment-form-url {
  display: grid;
  gap: 8px;
}

.article-comments .comment-form label {
  display: inline-block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.article-comments input[type="text"],
.article-comments input[type="email"],
.article-comments input[type="url"],
.article-comments textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.article-comments input[type="text"]:focus,
.article-comments input[type="email"]:focus,
.article-comments input[type="url"]:focus,
.article-comments textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(35, 75, 115, 0.12);
}

.article-comments textarea {
  min-height: 160px;
  resize: vertical;
}

.article-comments .form-submit {
  margin-top: 8px;
}

.article-comments .submit {
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: white;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.article-comments .submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 36, 64, 0.12);
}

.page-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-section-header {
  padding: 24px 28px 18px;
  /* No bottom border — spacing handles separation (Demo v4 alignment) */
}

.page-section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.page-section-body {
  padding: 28px;
}

/* ============================================================
   19. Page Content (Gutenberg/WYSIWYG)
   ============================================================ */
.page-content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.page-content > *:first-child {
  margin-top: 0;
}

.page-content > *:last-child {
  margin-bottom: 0;
}

.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote,
.page-content table,
.page-content pre,
.page-content figure,
.page-content .wp-block-image,
.page-content .wp-block-quote,
.page-content .wp-block-table,
.page-content .wp-block-preformatted,
.page-content .wp-block-code {
  margin-bottom: 20px;
}

.page-content p:last-child { margin-bottom: 0; }
.page-content strong { color: var(--text); }
.page-content em { color: var(--text); }

.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.page-content .wp-block-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--primary);
}

.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 14px;
  line-height: 1.3;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
}

.page-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 10px;
}

.page-content h5,
.page-content h6 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 10px;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content ul ul,
.page-content ul ol,
.page-content ol ul,
.page-content ol ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.page-content a { color: var(--primary); font-weight: 500; }
.page-content a:hover { color: var(--accent); }

.page-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.page-content figure,
.page-content .wp-block-image {
  width: 100%;
}

.page-content figcaption,
.page-content .wp-element-caption,
.page-content .wp-caption-text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
}

.page-content th {
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.page-content blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}

.page-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.page-content pre,
.page-content .wp-block-code,
.page-content .wp-block-preformatted {
  overflow-x: auto;
  padding: 16px 18px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.page-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: #f1f5f9;
  color: var(--primary);
  padding: 1px 5px;
  border-radius: 3px;
}

.page-content pre code,
.page-content .wp-block-code code,
.page-content .wp-block-preformatted code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* ============================================================
   20. FAQ Accordion
   ============================================================ */
.faq-list { display: flex; flex-direction: column; }

/* No item border — margin handles separation (Demo v4 alignment) */
.faq-item {
  margin-bottom: 8px;
}
.faq-item:last-child { margin-bottom: 0; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  font-family: inherit;
  gap: 16px;
}

.faq-q:hover { color: var(--accent); }

.faq-icon {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.open .faq-a { display: block; }

/* ============================================================
   21. Contact Form
   ============================================================ */
.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   Knowledge Archive
   ============================================================ */
.knowledge-archive-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.knowledge-archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  pointer-events: none;
}

.knowledge-archive-hero .container {
  position: relative;
  z-index: 1;
}

.knowledge-archive-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-archive-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #ffffff;
}

.knowledge-archive-sub {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.76);
  margin: 0;
}

.knowledge-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.knowledge-archive-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 600;
}

.knowledge-archive-shell {
  padding: 30px 0 64px;
}

.knowledge-archive-toolbar {
  margin-bottom: 24px;
}

.knowledge-archive-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}

.knowledge-archive-toolbar-copy {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.knowledge-archive-toolbar-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.knowledge-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.knowledge-archive-main {
  min-width: 0;
}

.knowledge-article-list {
  display: grid;
  gap: 18px;
}

.knowledge-article-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.knowledge-article-card-no-image {
  grid-template-columns: minmax(0, 1fr);
}

.knowledge-article-card-thumb {
  display: block;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(26, 58, 92, 0.08), rgba(26, 58, 92, 0.02));
}

.knowledge-article-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.knowledge-article-card-body {
  padding: 24px 26px;
}

.knowledge-article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.knowledge-article-card-meta span {
  position: relative;
}

.knowledge-article-card-meta span + span::before {
  content: '•';
  margin-right: 12px;
  color: rgba(100, 116, 139, 0.8);
}

.knowledge-article-card-title {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.knowledge-article-card-title a {
  color: var(--primary);
}

.knowledge-article-card-title a:hover {
  color: var(--accent);
}

.knowledge-article-card-excerpt {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.knowledge-article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.knowledge-article-card-link:hover {
  color: var(--accent);
}

.knowledge-archive-empty {
  text-align: center;
}

.knowledge-archive-empty .page-section-body {
  padding: 42px 28px;
}

.knowledge-archive-empty-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.knowledge-archive-empty-copy {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.knowledge-archive-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.knowledge-archive-outline {
  color: var(--primary);
  border-color: rgba(26, 58, 92, 0.22);
}

.knowledge-archive-outline:hover {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
}

.knowledge-widget {
  gap: 0;
}

.knowledge-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.knowledge-list-count {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.knowledge-list-compact a {
  display: grid;
  gap: 5px;
}

.knowledge-list-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.knowledge-list-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.knowledge-cta-card .widget-body {
  display: grid;
  gap: 14px;
}

.knowledge-cta-button {
  width: 100%;
}

.knowledge-secondary-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.knowledge-secondary-link:hover {
  color: var(--accent);
}

/* Featured Parts — product card in sidebar */
.knowledge-products-widget .knowledge-list-products li {
  padding: 0;
  border-bottom: none;
}

.knowledge-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.knowledge-products-widget .knowledge-list-products li:last-child .knowledge-product-item {
  border-bottom: none;
  padding-bottom: 0;
}

.knowledge-product-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.knowledge-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.knowledge-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Search Form (single.php sidebar) */
.knowledge-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
}

.knowledge-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--text-primary);
}

.knowledge-search-input::placeholder {
  color: var(--text-muted);
}

.knowledge-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.knowledge-search-btn:hover {
  background: var(--primary-dark);
}

/* Tag Cloud (tag.php sidebar) */
.knowledge-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.2s;
}

.knowledge-tag-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.knowledge-tag-item-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.knowledge-list-empty {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

/* Author Card (author.php sidebar) */
.knowledge-author-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.knowledge-author-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.knowledge-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.knowledge-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.knowledge-author-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  word-break: break-word;
}

.knowledge-author-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.knowledge-author-bio {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.knowledge-author-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.knowledge-author-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .knowledge-archive-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-archive-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  .knowledge-archive-hero {
    padding: 44px 0 38px;
  }

  .knowledge-archive-toolbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .knowledge-article-card {
    grid-template-columns: 1fr;
  }

  .knowledge-article-card-thumb {
    min-height: 220px;
  }

  .knowledge-article-card-body {
    padding: 22px 20px;
  }

  .knowledge-archive-empty-actions {
    flex-direction: column;
  }

  .knowledge-archive-empty-actions .btn {
    width: 100%;
  }
}

.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 84px;
}

.page-sidebar > .widget,
.page-sidebar > .widget_block,
.widget-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.page-sidebar > .widget:empty,
.page-sidebar > .widget_block:empty {
  display: none;
}

.page-sidebar .wp-block-group {
  margin: 0;
}

.page-sidebar .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-sidebar .wp-block-group__inner-container > * {
  margin-top: 0;
  margin-bottom: 0;
}

.page-sidebar .fpdb-sidebar-title,
.page-sidebar .widget-title,
.page-sidebar .widget > .widget-title,
.page-sidebar .widget > .wp-block-heading,
.page-sidebar .widget_block .wp-block-heading {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.widget-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.widget-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.widget-links,
.page-sidebar .wp-block-latest-posts,
.page-sidebar .wp-block-archives-list,
.page-sidebar .wp-block-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-links li,
.page-sidebar .wp-block-latest-posts li,
.page-sidebar .wp-block-archives-list li,
.page-sidebar .wp-block-categories-list li {
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: 0;
}

.widget-links li:last-child,
.page-sidebar .wp-block-latest-posts li:last-child,
.page-sidebar .wp-block-archives-list li:last-child,
.page-sidebar .wp-block-categories-list li:last-child { border-bottom: none; }

.widget-links a,
.page-sidebar .wp-block-latest-posts li a,
.page-sidebar .wp-block-archives-list li a,
.page-sidebar .wp-block-categories-list li a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.widget-links a:hover,
.page-sidebar .wp-block-latest-posts li a:hover,
.page-sidebar .wp-block-archives-list li a:hover,
.page-sidebar .wp-block-categories-list li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.page-sidebar .wp-block-latest-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sidebar .wp-block-latest-comments li {
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.page-sidebar .wp-block-latest-comments li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.page-sidebar .wp-block-search {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
}

.page-sidebar .wp-block-search__inside-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.page-sidebar .wp-block-search__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.page-sidebar .wp-block-search__input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--text);
}

.page-sidebar .wp-block-search__input::placeholder {
  color: var(--text-muted);
}

.page-sidebar .wp-block-search__button {
  padding: 10px 14px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.page-sidebar .wp-block-search__button:hover {
  background: var(--primary-dark);
}

.quick-nav-link {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.quick-nav-link:last-child { margin-bottom: 0; }
.quick-nav-link:hover {
  background: var(--bg-white);
  border-color: var(--primary);
}

/* ============================================================
   23. 404 Error Page
   ============================================================ */
.page-main {
  flex: 1;
  padding: 56px 20px 72px;
}

.content-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) 300px;
  gap: 32px;
  align-items: start;
}

.error-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.error-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 36px 36px 30px;
  position: relative;
  overflow: hidden;
}

.error-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.12) 0%, transparent 50%);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.error-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.error-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.error-card-body {
  padding: 32px 36px 36px;
}

.error-search {
  margin-bottom: 28px;
}

.error-search-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.error-search-box {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.error-search-box:focus-within {
  border-color: var(--primary);
}

.error-search-box input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--text);
}

.error-search-box button {
  padding: 12px 18px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.error-search-box button:hover { background: var(--primary-dark); }

.quick-links {
  margin-bottom: 24px;
}

.quick-links-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.quick-links-list li {
  border-bottom: 1px solid var(--border);
}

.quick-links-list li:nth-last-child(-n+2) { border-bottom: none; }

.quick-links-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, transform 0.2s;
}

.quick-links-list a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.popular-section {
  margin-top: 8px;
}

.popular-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-list li {
  border-bottom: 1px solid var(--border);
}

.popular-list li:last-child { border-bottom: none; }

.popular-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.popular-list a:hover { color: var(--primary); }

.popular-list .sku {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(26,58,92,0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.error-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 84px;
}

/* ============================================================
   24. SKU Product Detail Page
   ============================================================ */

/* Product hero */
.fpdb-sku-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.fpdb-sku-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.65;
}

.fpdb-sku-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.fpdb-sku-hero-sku {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
}

.fpdb-sku-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(245,158,11,0.3);
}

.fpdb-sku-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
  max-width: 900px;
}

.fpdb-sku-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 800px;
  margin: 0 0 24px;
}

.fpdb-sku-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.fpdb-sku-hero-meta-item {
  display: flex;
  flex-direction: column;
}

.fpdb-sku-hero-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}

.fpdb-sku-hero-meta-value {
  font-size: 15px;
  font-weight: 600;
}

.fpdb-sku-hero-meta-value code {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

/* ============================================================
   SKU Product Hero — Demo v4 alignment
   ============================================================ */
.product-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}

.product-hero .container { position: relative; z-index: 1; }

.hero-sku-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 10px;
}

.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.hero-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.hero-meta-value code {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.82rem;
}

/* ============================================================
   Section Header / Section Title — Demo v4 alignment
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.2px;
}

/* ============================================================
   Injector Tiers — 3-tier grouping (Demo v4)
   ============================================================ */
.injector-tiers { display: flex; flex-direction: column; gap: 10px; }

.injector-tier-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,58,92,0.06);
}

.injector-tier-label {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
}

.tier-primary .injector-tier-label { background: var(--badge-primary); }
.tier-oem .injector-tier-label     { background: var(--badge-oem); }
.tier-aftermarket .injector-tier-label { background: var(--badge-aftermarket); }
/* v3.2.2 (2026-06-18) — 4th tier for the OE nozzle code (DLLA/DSLA/G3S) */
.tier-dlla .injector-tier-label    { background: var(--warning); }

.injector-tier-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-alt);
}

.injector-code-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 2px;
}

.tier-primary .injector-code-pill {
  background: rgba(26,58,92,0.08);
  color: var(--primary);
}

.tier-oem .injector-code-pill {
  background: rgba(217,119,6,0.1);
  color: #92400e;
}

.tier-aftermarket .injector-code-pill {
  background: rgba(71,85,105,0.1);
  color: #475569;
}

/* v3.2.2 (2026-06-18) — dlla (OE nozzle code) pill: monospace to
   signal it's a stamped-body code, not a product label. */
.tier-dlla .injector-code-pill {
  background: rgba(245,158,11,0.1);
  color: #92400e;
  font-family: var(--font-mono);
}

/* ============================================================
   DLLA Tags — sister nozzle pills (Demo v4)
   ============================================================ */
.dlla-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dlla-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text);
  font-weight: 500;
}

.fpdb-sku-warning {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-top: 20px;
  text-align: left;
  max-width: 800px;
  color: #92400e;
}

.fpdb-sku-warning strong { color: #92400e; }

.fpdb-sku-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.fpdb-sku-quick-verify {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
  margin-top: 20px;
  position: relative;
  z-index: 1;
  padding: 28px;
}

.fpdb-sku-quick-verify-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.fpdb-sku-quick-verify-header h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
  color: var(--primary);
  margin: 0;
}

.fpdb-sku-quick-verify-header p {
  max-width: 500px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.fpdb-sku-quick-verify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.fpdb-sku-quick-verify-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.fpdb-sku-quick-verify-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.fpdb-sku-quick-verify-value {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.5;
}

.fpdb-sku-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

.fpdb-sku-main,
.fpdb-sku-sidebar {
  min-width: 0;
}

.fpdb-sku-main > .fpdb-sku-section + .fpdb-sku-section,
.fpdb-sku-sidebar > .fpdb-sku-sidebar-card + .fpdb-sku-sidebar-card,
.fpdb-sku-sidebar > .fpdb-sku-sidebar-card + .fpdb-sku-cta {
  margin-top: 24px;
}

.fpdb-sku-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  /* No border — box-shadow handles separation (Demo v4 alignment) */
  box-shadow: var(--shadow-sm);
}

.fpdb-sku-section {
  padding: 28px;
}

.fpdb-sku-section-secondary {
  background: #fbfcfe;
  border-style: dashed;
}

.fpdb-sku-section h2,
.fpdb-sku-sidebar-card h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fpdb-sku-sidebar-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.fpdb-sku-sidebar-card h2 {
  font-size: 16px;
  margin-bottom: 14px;
}

.fpdb-sku-icon {
  width: 22px;
  height: 22px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-hover);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.fpdb-sku-section-intro,
.fpdb-sku-sidebar-copy {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 16px;
}

.fpdb-sku-section .overview-text,
.fpdb-sku-section .page-content,
.fpdb-sku-section .callout-data {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.fpdb-sku-section .overview-text p:last-child,
.fpdb-sku-section .page-content p:last-child,
.fpdb-sku-section .callout-data p:last-child {
  margin-bottom: 0;
}

.fpdb-sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.fpdb-sku-table th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  text-align: left;
}

.fpdb-sku-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.fpdb-sku-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.fpdb-sku-table tbody tr:nth-child(odd)  { background: var(--bg-row); }
.fpdb-sku-table tbody tr:nth-child(even) { background: var(--bg-row-alt); }
.fpdb-sku-table tbody tr:hover td { background: rgba(245,158,11,0.04); }

.fpdb-sku-table td {
  padding: 9px 16px;
  /* No row border — alternating bg handles visual separation (Demo v4 alignment) */
  vertical-align: top;
}

.fpdb-sku-table td:first-child {
  font-weight: 600;
  color: var(--text);
}

.fpdb-sku-table td:last-child { color: var(--text-secondary); }

.fpdb-sku-table tr:last-child td { border-bottom: none; }

.fpdb-sku-code {
  font-family: var(--font-mono);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--primary);
  word-break: break-word;
}

.fpdb-sku-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.fpdb-sku-detail-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}

.fpdb-sku-detail-item .fpdb-sku-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.fpdb-sku-detail-item .fpdb-sku-value {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.cross-tag {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.cross-tag.cross-alt {
  background: #fef3c7;
  color: #92400e;
}

.ref-type {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quality-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  justify-content: center;
}

.fpdb-sku-fitment-note {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  background: #fffbeb;
  border-left: 4px solid var(--accent);
}

.fpdb-sku-fitment-note-title {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}

.fpdb-sku-fitment-note ul {
  margin: 0;
  padding-left: 18px;
  color: #78350f;
}

.fpdb-sku-fitment-note li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.fpdb-sku-fitment-note li:last-child {
  margin-bottom: 0;
}

.fpdb-sku-support-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.fpdb-sku-support-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px 16px;
}

.fpdb-sku-support-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.fpdb-sku-support-value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.star-full {
  width: 20px;
  height: 20px;
  background: var(--success);
  border-radius: 50%;
}

.star-half {
  width: 20px;
  height: 20px;
  background: linear-gradient(90deg, var(--success) 50%, #d1d5db 50%);
  border-radius: 50%;
}

.star-empty {
  width: 20px;
  height: 20px;
  background: #d1d5db;
  border-radius: 50%;
}

.fpdb-sku-product-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.spec-row,
.quality-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.spec-row:last-child,
.quality-check-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-row:first-of-type,
.quality-check-row:first-of-type {
  padding-top: 0;
}

.fpdb-sku-sidebar-hint,
.fpdb-sku-quality-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.6;
}

.fpdb-sku-compat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fpdb-sku-compat-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.fpdb-sku-sidebar-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.fpdb-sku-sidebar-link:hover {
  color: var(--accent-hover);
}

/* No item border — margin handles separation (Demo v4 alignment) */
.fpdb-sku-faq-item {
  margin-bottom: 8px;
}

.fpdb-sku-faq-item:last-child {
  margin-bottom: 0;
}

.fpdb-sku-faq-q {
  background: transparent;
  color: var(--text);
  padding: 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: color 0.2s;
  width: 100%;
  border: none;
  text-align: left;
}

.fpdb-sku-faq-q:hover { color: var(--primary); }
.fpdb-sku-faq-q::after { content: '+'; font-size: 20px; font-weight: 300; line-height: 1; color: var(--primary); }
.fpdb-sku-faq-item.open .fpdb-sku-faq-q::after { transform: rotate(45deg); }

.fpdb-sku-faq-a {
  padding: 10px 0 0 30px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  background: transparent;
  display: none;
  border-top: none;
}

.fpdb-sku-faq-item.open .fpdb-sku-faq-a { display: block; }

/* ============================================================
   Gallery Grid — Demo v4 alignment
   ============================================================ */
.fpdb-sku-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fpdb-sku-gallery-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  aspect-ratio: 1;
}

.fpdb-sku-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.fpdb-sku-gallery-thumb:hover img { transform: scale(1.05); }

.q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: var(--bg-white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.fpdb-sku-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-white);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(15, 36, 64, 0.4);
}

.fpdb-sku-cta-title {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--bg-white);
}

.fpdb-sku-cta p {
  opacity: 0.82;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.fpdb-sku-cta-hint {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.72;
  line-height: 1.6;
}

.fpdb-sku-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-white);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fpdb-sku-cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ============================================================
   25. Responsive
   ============================================================ */

/* Desktop: hide the mobile toggle by default (nav is always visible) */
.fpdb-nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  /* ----- Header layout: logo left, hamburger right ----- */
  .site-header {
    padding: 12px 0;
  }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .header-brand-link {
    gap: 10px;
    font-size: 18px;
  }

  .header-note {
    white-space: normal;
  }

  /* ----- Hamburger button (visible on mobile) -----
     44x44 touch target, 24px icon, clear 3 white bars. */
  .fpdb-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    cursor: pointer;
    gap: 5px;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    flex-shrink: 0;
  }

  .fpdb-nav-toggle:hover,
  .fpdb-nav-toggle:focus-visible {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
    outline: none;
  }

  .fpdb-nav-toggle:active {
    transform: scale(0.95);
  }

  .fpdb-nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    transform-origin: center;
  }

  /* Hamburger → X transform when open */
  body.fpdb-nav-open .fpdb-nav-toggle {
    background: var(--accent);
    border-color: var(--accent);
  }

  body.fpdb-nav-open .fpdb-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.fpdb-nav-open .fpdb-nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  body.fpdb-nav-open .fpdb-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

.fpdb-nav-desktop {
    display: none !important;
  }

  .fpdb-nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(10, 25, 47, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 24px 24px 32px;
    margin: 0;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.fpdb-nav-open .fpdb-nav-mobile {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }

  .fpdb-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
  }

  .fpdb-nav-close:hover,
  .fpdb-nav-close:focus-visible {
    background: rgba(255,255,255,0.2);
    transform: scale(1.08);
    outline: none;
  }

  .fpdb-nav-close:active {
    transform: scale(0.95);
  }

  .fpdb-nav-mobile .fpdb-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-top: 60px;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .fpdb-nav-mobile .fpdb-nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .fpdb-nav-mobile .fpdb-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    letter-spacing: -0.01em;
  }

  .fpdb-nav-mobile .fpdb-nav-list a::after {
    content: '\203A';
    font-size: 22px;
    color: rgba(255,255,255,0.3);
    font-weight: 400;
    transition: color 0.15s, transform 0.15s;
  }

  .fpdb-nav-mobile .fpdb-nav-list a:hover,
  .fpdb-nav-mobile .fpdb-nav-list a:focus-visible {
    background: transparent;
    color: var(--accent-light);
  }

  .fpdb-nav-mobile .fpdb-nav-list a:hover::after,
  .fpdb-nav-mobile .fpdb-nav-list a:focus-visible::after {
    color: var(--accent);
    transform: translateX(4px);
  }

  .fpdb-nav-mobile .fpdb-nav-list li:last-child a {
    margin-top: 20px;
    background: var(--accent);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 700;
    justify-content: center;
  }

  .fpdb-nav-mobile .fpdb-nav-list li:last-child a::after {
    display: none;
  }

  .fpdb-nav-mobile .fpdb-nav-list li:last-child a:hover,
  .fpdb-nav-mobile .fpdb-nav-list li:last-child a:focus-visible {
    background: var(--accent-dark, #d97706);
    color: #ffffff;
  }

  body.fpdb-nav-open {
    overflow: hidden;
  }

  .knowledge-grid,
  .archive-layout,
  .page-layout,
  .article-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .fpdb-sku-hero {
    padding: 44px 20px 48px;
  }

  .fpdb-sku-hero-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fpdb-sku-hero-copy {
    align-items: flex-start;
  }

  .fpdb-sku-tagline,
  .fpdb-sku-warning {
    max-width: none;
  }

  .fpdb-sku-quick-verify {
    margin-top: 24px;
    padding: 22px 20px;
  }

  .fpdb-sku-quick-verify-header {
    flex-direction: column;
    gap: 12px;
  }

  .fpdb-sku-quick-verify-header h2 {
    font-size: 24px;
  }

  .knowledge-sidebar,
  .archive-sidebar,
  .page-sidebar,
  .error-sidebar {
    position: static;
  }

  .article-sidebar {
    margin-top: 8px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .cat-buckets {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fpdb-sku-cards {
    grid-template-columns: 1fr;
  }

  .fpdb-sku-section,
  .fpdb-sku-sidebar-card,
  .fpdb-sku-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col:first-child {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .hero-stats { gap: 28px; }

  .quick-links-list {
    grid-template-columns: 1fr;
  }

  .quick-links-list li:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .quick-links-list li:last-child {
    border-bottom: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .fpdb-sku-support-list {
    grid-template-columns: 1fr;
  }

  .fpdb-sku-faq-a {
    padding-left: 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .container, .content-wrap, .fpdb-sku-container {
    padding: 0 16px;
  }

  .fpdb-sku-hero {
    padding: 40px 16px 44px;
  }

  .fpdb-sku-badge {
    margin-bottom: 14px;
  }

  .fpdb-sku-hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .fpdb-sku-hero-btn {
    width: 100%;
  }

  .fpdb-sku-hero-aside-card {
    padding: 20px;
  }

  .hero { padding: 48px 0 52px; }
  .hero-stats { gap: 20px; }
  .cat-bucket-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .page-section-body { padding: 20px; }
  .page-section-header { padding: 20px 20px 14px; }
  .error-card-header,
  .error-card-body { padding-left: 20px; padding-right: 20px; }
  .page-main { padding: 36px 16px 52px; }

  .archive-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== DEMO V4 SIDEBAR CARD (industrial deep-blue style) ===== */
.sidebar-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(26,58,92,0.07);
}
.sidebar-card-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card-header svg { width: 14px; height: 14px; color: var(--accent); }
.sidebar-card-body { padding: 16px; }

.quick-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(26,58,92,0.08);
  font-size: 0.82rem;
}
.quick-spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.quick-spec-row:first-child { padding-top: 0; }
.quick-spec-label { color: var(--text-secondary); font-weight: 500; flex-shrink: 0; }
.quick-spec-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

/* Sidebar specs table */
.sidebar-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.sidebar-specs-table tr {
  border-bottom: 1px solid rgba(26,58,92,0.08);
}
.sidebar-specs-table tr:last-child {
  border-bottom: none;
}
.sidebar-specs-label {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  width: 40%;
  vertical-align: top;
}
.sidebar-specs-value {
  padding: 8px 16px 8px 8px;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.quality-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.quality-row:first-child { padding-top: 0; }
.quality-row:last-child { padding-bottom: 0; }
.quality-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.quality-dot.green { background: #10b981; }
.quality-dot.yellow { background: #f59e0b; }
.quality-label { font-size: 0.78rem; color: var(--text-secondary); flex: 1; }
.quality-value { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.quality-overall {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(26,58,92,0.08);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.quality-overall strong { font-size: 1.1rem; color: #10b981; }

.sidebar-actions { display: flex; flex-direction: column; gap: 10px; }
.sidebar-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.sidebar-cta-btn:hover { background: var(--accent-hover); }
.sidebar-cta-btn svg { width: 16px; height: 16px; }
.sidebar-tip {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
}
.sidebar-tip strong { color: #92400e; }

.sidebar-dlla-section { margin-top: 12px; }
.sidebar-dlla-section:first-child { margin-top: 0; }
.sidebar-dlla-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.sidebar-dlla-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sidebar-dlla-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  background: var(--bg-alt);
  border: 1px solid rgba(26,58,92,0.15);
  border-radius: 2px;
  color: var(--text-secondary);
}

.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.related-item {
  background: var(--bg-row);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
  display: block;
}
.related-item:hover { background: #e8edf4; }
.related-sku { font-family: var(--font-mono); font-size: 0.72rem; color: var(--primary); font-weight: 600; margin-bottom: 3px; }
.related-desc { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.4; }

/* ===== DEMO V4 PRODUCT PAGE (imported from demo-v4-refined.html) ===== */

/* Page body */
.page-body { padding: 40px 0 72px; }

/* Section styling */
.section { margin-bottom: 40px; }
.section:last-child { margin-bottom: 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.2px;
}
.section-title-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(245,158,11,0.1);
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid rgba(245,158,11,0.2);
}

/* Section card */
.section-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(26,58,92,0.07), 0 1px 2px rgba(26,58,92,0.04);
}

/* Callout box */
.callout-box {
  background: #fffbeb;
  border-left: 4px solid var(--color-accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}
.callout-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: #92400e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.callout-title svg { width: 16px; height: 16px; flex-shrink: 0; }
.callout-box p { font-size: 0.82rem; color: #78350f; line-height: 1.65; }
.callout-box strong { font-weight: 700; }

/* E-E-A-T Attribution — auto-injected by fp_overview */
.fp-attribution {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e9f0;
    font-size: 0.78rem;
    color: #94a3b8;
    font-style: italic;
    line-height: 1.5;
}

/* Product description text */
.product-desc-text { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.8; }
.product-desc-text strong { color: var(--color-text); }

/* fp_install — clean bullet list */
.product-desc-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-desc-text ul li {
  padding: 10px 16px;
  background: #f8f9fb;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.product-desc-text ul li strong {
  color: var(--color-primary);
  font-weight: 600;
}
.product-desc-text ul li p { margin: 0; }

/* fp_howto — minimal step guide */
.howto-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: howto-step;
}
.howto-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f2f5;
  align-items: flex-start;
}
.howto-step:last-child { border-bottom: none; }
.howto-step-num-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-family: var(--font-mono);
}
.howto-step-body { flex: 1; min-width: 0; }
.howto-step-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}
.howto-step-body p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}
.howto-tools {
  margin-top: 20px;
  padding: 12px 16px;
  background: #f0f4ff;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--color-primary);
  border: 1px solid rgba(37,99,235,0.12);
}
.howto-tools strong { font-weight: 700; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.data-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.data-table tbody tr:nth-child(odd) { background: var(--color-bg-row); }
.data-table tbody tr:nth-child(even) { background: var(--color-bg-row-alt); }
.data-table tbody tr:hover td { background: rgba(245,158,11,0.04); }
.data-table td {
  padding: 9px 16px;
  vertical-align: top;
}
.data-table td:first-child { font-weight: 600; color: var(--color-text); }
.data-table td:last-child { color: var(--color-text-secondary); }
.spec-label { font-weight: 600; color: var(--color-text); white-space: normal; word-break: break-word; }
.spec-value { color: var(--color-text-secondary); font-family: var(--font-mono); font-size: 0.82rem; }
.spec-value.sku { color: var(--color-primary); font-weight: 500; }
.spec-value code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #eef1f6;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--color-primary);
  word-break: break-all;
}
.spec-value a { color: var(--color-primary-badge); }
.spec-value a:hover { text-decoration: underline; }
/* D-3.8 (2026-07-15): engine-family link in [fp_specs] table. Pill-style
   to draw attention vs. plain text values; arrow hint signals it's a link. */
.fpdb-engine-link {
    display: inline-block;
    padding: 2px 10px;
    background: #fef3c7;
    color: #92400e !important;
    border-radius: var(--radius-pill, 9999px);
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s, transform .1s;
}
.fpdb-engine-link:hover {
    background: #fde68a;
    transform: translateX(1px);
    text-decoration: none !important;
}
.data-table .badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 0.68rem; font-weight: 600; }
.badge-euro { background: #dcfce7; color: #166534; }
.badge-denso { background: #dbeafe; color: #1e40af; }
.badge-truck { background: #dcfce7; color: #166534; }
.badge-bus { background: #dbeafe; color: #1e40af; }
.badge-engine { background: #fef3c7; color: #92400e; }

/* Engine codes */
.engine-codes { display: flex; flex-wrap: wrap; gap: 5px; }
.engine-code-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-strong);
  border-radius: 2px;
  color: var(--color-text);
}

/* Injector tiers (3-tier) */
.injector-tiers { display: flex; flex-direction: column; gap: 10px; }
.injector-tier-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,58,92,0.06);
}
.injector-tier-label {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
}
.tier-primary .injector-tier-label { background: var(--color-primary-badge); }
.tier-oem .injector-tier-label { background: var(--color-oem-badge); }
.tier-aftermarket .injector-tier-label { background: var(--color-aftermarket-badge); }
/* v3.2.2 (2026-06-18) — 4th tier for the OE nozzle code (DLLA/DSLA/G3S) */
.tier-dlla .injector-tier-label { background: var(--accent); }
.injector-tier-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-bg-alt);
}
.injector-code-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 2px;
}
.tier-primary .injector-code-pill {
  background: rgba(26,58,92,0.08);
  color: #1a3a5c;
}
.tier-oem .injector-code-pill {
  background: rgba(217,119,6,0.1);
  color: #92400e;
}
.tier-aftermarket .injector-code-pill {
  background: rgba(71,85,105,0.1);
  color: #475569;
}

/* v3.2.2 (2026-06-18) — dlla (OE nozzle code) pill: monospace */
.tier-dlla .injector-code-pill {
  background: rgba(245,158,11,0.1);
  color: #92400e;
  font-family: var(--font-mono);
}

/* DLLA tags */
.dlla-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dlla-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  background: var(--color-bg-alt);
  border-radius: 2px;
  color: var(--color-text);
  font-weight: 500;
}

/* FAQ accordion */
.faq-list { border-radius: var(--radius-md); overflow: hidden; }
.faq-item { margin-bottom: 6px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--color-bg-alt);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background 0.15s;
  gap: 12px;
}
.faq-question:hover { background: var(--color-bg-alt); }
.faq-question.active { background: var(--color-primary); color: #fff; }
.faq-question.active .faq-icon { transform: rotate(180deg); color: var(--color-accent); }
.faq-q-prefix {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 1px;
}
.faq-question.active .faq-q-prefix { background: var(--color-accent); color: var(--color-primary); }
.faq-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--color-steel);
  margin-top: 3px;
}
.faq-answer {
  display: none;
  padding: 0 18px 14px 18px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  background: var(--color-bg);
}
.faq-answer.open { display: block; }
.faq-answer p { margin: 0; }
.faq-answer p + p { margin-top: 8px; }

/* Responsive overrides for new demo v4 elements */
@media (max-width: 768px) {
  .injector-tier-row { grid-template-columns: 100px 1fr; }
  .page-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  /* Single-product responsive polish */
  .fpdb-sku-hero { padding: 28px 0 24px; }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); letter-spacing: -0.02em; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-meta-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-meta-item { padding: 10px 12px; }
  .hero-meta-label { font-size: 0.65rem; }
  .hero-meta-value { font-size: 0.85rem; }
  .section { margin: 0 0 24px; }
  .section-card { padding: 18px; border-radius: 10px; }
  .section-title { font-size: 1.15rem; }
  .section-title-num { font-size: 0.7rem; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .faq-question { padding: 14px 16px; font-size: 0.9rem; }
  .faq-answer { padding: 0 16px 14px; font-size: 0.88rem; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-card { margin-bottom: 16px; }
  .breadcrumb { font-size: 0.78rem; padding: 8px 0; }
}
@media (max-width: 480px) {
  .injector-tier-row { grid-template-columns: 1fr; }
  .injector-tier-label { padding: 6px 14px; }

  /* Aggressive mobile */
  .hero-meta-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.6rem; }
  .hero-badges { gap: 6px; }
  .hero-badge { font-size: 0.65rem; padding: 3px 10px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-title-num { margin-bottom: 2px; }
  .howto-step { gap: 12px; padding: 14px 0; }
  .howto-tools { font-size: 0.8rem; }
}

/* =============================================================================
   fpdb-related (v3.2.4, 2026-06-19) — Sister SKU card grid
   Outer wrapper uses .section + .section-card (standard layout defined above)
   ============================================================================= */
.fpdb-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.fpdb-related-grid:last-child { margin-bottom: 0; }
.fpdb-related-group {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fpdb-related-group:first-child { margin-top: 0; }
.fpdb-related-card {
  display: block;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.fpdb-related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}
.fpdb-related-card.fpdb-rel-incompatible {
  border-left: 4px solid #92400e;
}
.fpdb-related-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.fpdb-related-link:hover { text-decoration: none !important; }
.fpdb-related-sku {
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
  word-break: break-all;
}
.fpdb-related-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 3px;
  line-height: 1.35;
}
.fpdb-related-note {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.fpdb-related-pending {
  display: block;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  color: inherit;
}
@media (max-width: 640px) {
  .fpdb-related-grid { grid-template-columns: 1fr; }
}

.featured-skus-section {
  padding: 56px 0;
  background: var(--bg);
}

/* ─── Popular SKUs grid: 3 columns, slightly wider cards ─── */
.pop-sku-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}
.pop-sku-grid .f-card {
  padding: 18px 18px 14px !important;
}
.pop-sku-grid .f-title {
  font-size: 0.95rem !important;
  margin-bottom: 8px !important;
}
.pop-sku-grid .f-meta {
  font-size: 0.72rem !important;
}

/* ============================================================
   7b. Featured Engine Platforms (front-page)
   ============================================================ */
.featured-engines-section {
  padding: 56px 0;
  background: var(--bg-alt, #eef1f6);
}

.engine-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.engine-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  text-decoration: none;
  color: var(--primary);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
}
.engine-platform-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--primary);
}
.epc-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.epc-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   7c. Popular P-Codes (front-page)
   ============================================================ */
.pcodes-section {
  padding: 56px 0;
  background: var(--bg);
}

.pcodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 28px;
}

.pcode-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.pcode-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.pcode-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pcode-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.pcode-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.pcode-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.pcode-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}
.pcode-card:hover .pcode-link {
  color: var(--accent-hover);
}

.section-cta {
  text-align: center;
}

/* ============================================================
   7d. Section Heading shared styles (section-kicker / section-title)
   ============================================================ */
.section-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading, "Barlow Condensed", sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}
.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.section-title::before { right: calc(100% + 16px); }
.section-title::after { left: calc(100% + 16px); }
.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Layout F: Pure Text Compact Cards ─── */
.featured-skus-grid.layout-f {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.featured-skus-grid.layout-f .f-card {
  background: var(--bg-white, #fff);
  border: 1.5px solid var(--border-light, #e2e8f0);
  border-radius: 8px;
  padding: 14px 14px 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  box-shadow: 0 1px 3px rgba(21, 101, 192, 0.04);
  display: flex;
  flex-direction: column;
}

.featured-skus-grid.layout-f .f-card:hover {
  border-color: var(--primary, #1565c0);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.09);
  transform: translateY(-1px);
}

.featured-skus-grid.layout-f .f-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.featured-skus-grid.layout-f .f-sku {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary, #1565c0);
  letter-spacing: 0.05em;
}

.featured-skus-grid.layout-f .f-title {
  font-family: var(--font-heading, "Barlow Condensed", sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.25;
  margin-bottom: 8px;
}

.featured-skus-grid.layout-f .f-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.featured-skus-grid.layout-f .f-chip {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 6px;
  background: var(--bg-alt, #f1f5f9);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 3px;
  color: var(--text-muted, #475569);
  font-family: var(--font-mono, ui-monospace, monospace);
}

.featured-skus-grid.layout-f .f-chip.blue {
  background: #dbeafe;
  color: var(--primary, #1565c0);
  border-color: #93c5fd;
}

.featured-skus-grid.layout-f .f-divider {
  height: 1px;
  background: var(--bg-alt, #f1f5f9);
  margin: 10px 0;
}

.featured-skus-grid.layout-f .f-meta {
  font-size: 0.68rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
}

.featured-skus-grid.layout-f .f-meta strong {
  color: var(--text, #0f172a);
  font-weight: 600;
}

/* Future image upgrade */
.featured-skus-grid.layout-f .f-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f8fc;
  border-radius: 6px 6px 0 0;
  margin: -14px -14px 12px;
  width: calc(100% + 28px);
}
.featured-skus-grid.layout-f .f-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.featured-skus-grid.layout-f .f-card:hover .f-card-img img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .featured-skus-grid.layout-f { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .featured-skus-grid.layout-f { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .featured-skus-grid.layout-f { grid-template-columns: 1fr; }
}

/* ============================================================
   26. Quick Quote Floating Button
   ============================================================ */
.quick-quote-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px 13px 15px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(26, 58, 92, 0.35);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.quick-quote-float:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 28px rgba(26, 58, 92, 0.45);
  transform: translateY(-2px);
  color: white;
}

@media (max-width: 640px) {
  .quick-quote-float {
    bottom: 20px;
    right: 16px;
    padding: 12px 16px 12px 14px;
    font-size: 13px;
  }
}

/* ============================================================
   27. About Us Page
   ============================================================ */
.about-us-hero {
  padding: 48px 0 0;
}

/* ============================================================
   Sidebar Featured SKUs
   ============================================================ */

.sidebar-featured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-featured-item {
  border-bottom: 1px solid var(--border);
}

.sidebar-featured-item:last-child {
  border-bottom: none;
}

.sidebar-featured-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.sidebar-featured-link:hover {
  opacity: 0.75;
}

.sidebar-featured-img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-soft);
}

.sidebar-featured-img img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.sidebar-featured-text {
  flex: 1;
  min-width: 0;
}

.sidebar-featured-sku {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.sidebar-featured-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-featured-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-featured-all {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  transition: opacity 0.15s;
}

.sidebar-featured-all:hover {
  opacity: 0.75;
}

.knowledge-products-widget {
  padding-bottom: 8px;
}

/* ============================================================
   20. Brand Index Page
   ============================================================ */
.letter-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.letter-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.letter-filter a:hover { background: var(--primary); color: #fff; }
.letter-filter a.is-active { background: var(--primary); color: #fff; }

.vehicle-cta-link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease;
}
.vehicle-cta-link:hover { background: var(--primary-dark); color: #fff; }

.brand-index-summary {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.brand-index-summary strong {
  color: var(--primary);
}

.brand-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.brand-index-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.brand-index-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.brand-index-logo {
  height: 48px;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 18px;
}
.brand-index-logo-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.brand-index-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.brand-index-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================================
   21. Vehicle Index Page
   ============================================================ */
.vehicle-index-empty,
.brand-index-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.vehicle-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.vehicle-brand-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.vehicle-brand-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.vehicle-brand-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.vehicle-brand-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.vehicle-model-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  flex: 1;
}

.vehicle-model-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.vehicle-model-item:last-child {
  border-bottom: none;
}

.vehicle-model-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  gap: 12px;
}
.vehicle-model-link:hover .vehicle-model-name {
  color: var(--primary);
}

.vehicle-model-name {
  flex: 1;
  transition: color 0.15s ease;
}

.vehicle-model-years {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.vehicle-model-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.vehicle-engine {
  font-size: 11px;
}
.vehicle-sku-count {
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  white-space: nowrap;
}

.vehicle-show-more {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s ease;
}
.vehicle-show-more:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   22. Facet Layout (sidebar + main content)
   Used by /by-vehicle/ and taxonomy-fpdb_vehicle.php archive.
   ============================================================ */
.facet-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.facet-main { min-width: 0; }

.letter-filter {
  grid-column: 1 / -1;
}

.facet-sidebar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  grid-column: 1;
  grid-row: 2;
}
.facet-main { grid-column: 2; grid-row: 2; }
.facet-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}
.facet-group {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.facet-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.facet-group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.facet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.facet-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.facet-pills a:hover { background: var(--primary); color: #fff; }
.facet-pills a.is-active { background: var(--primary); color: #fff; }
.facet-brand-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.facet-brand-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
}
.facet-brand-list li:last-child { border-bottom: 0; }
.facet-brand-list a { color: var(--text); flex: 1; }
.facet-brand-list a:hover { color: var(--primary); }
.facet-count { color: var(--text-muted); font-size: 11px; font-family: var(--font-mono); }
.facet-link-cta {
  display: inline-block;
  padding: 8px 12px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  width: 100%;
}
.facet-link-cta:hover { background: var(--primary-dark); }

.vehicle-model-more {
  background: var(--bg-soft);
}
.vehicle-model-more .vehicle-model-link {
  color: var(--primary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .facet-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .facet-sidebar {
    position: static;
    max-height: none;
    grid-column: 1;
    grid-row: auto;
  }
  .facet-main { grid-column: 1; grid-row: auto; }
}
@media (max-width: 768px) {
  .brand-index-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .vehicle-index-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .brand-index-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   23. By Vehicle — Engine Family Index (template-by-vehicle.php)
   Page-specific styles. All colors via theme vars.
   ============================================================ */

.fpdb-byv-search {
  display: flex;
  gap: 8px;
}
.fpdb-byv-search input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-white);
  outline: none;
}
.fpdb-byv-search input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.12);
}
.fpdb-byv-search button {
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.fpdb-byv-search button:hover { background: var(--primary-dark); }

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 18px;
}
.quick-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-right: 4px;
}
.quick-chip {
  padding: 5px 11px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.quick-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --- Cluster card grid --- */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.cluster-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.cluster-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cluster-hdr {
  padding: 14px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cluster-badge {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.cluster-card:hover .cluster-badge { background: var(--primary-dark); }
.cluster-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.cluster-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.cluster-body {
  padding: 14px 16px;
  flex: 1;
}
.cl-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.cl-sku {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.cl-sku-item {
  padding: 3px 9px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.cl-sku-item:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.cl-sku-more {
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.cl-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cl-engine-chip {
  padding: 3px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}
/* D-3c: Engine family chip as link → routes to /diesel-injector/{slug}/ landing */
a.cl-engine-chip-link,
.cl-engine-chip-link {
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
a.cl-engine-chip-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
/* D-3c: SKU table Engine Family cell as link */
.sku-engine-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.sku-engine-link:hover {
  text-decoration: underline;
}
.cluster-ftr {
  padding: 10px 16px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  text-align: right;
}
.cluster-ftr a {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* Expand/Collapse toggle */
.cluster-toggle {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cluster-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.toggle-icon {
  transition: transform 0.2s ease;
}

/* Expanded state */
.cluster-card.is-expanded {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cluster-expand {
  padding: 14px 16px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.cl-vehicles-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cl-vehicles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cl-vehicle-chip {
  padding: 4px 10px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cl-vehicle-more {
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.cl-view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.cl-view-link:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}

/* --- SKU table --- */
.sku-table-wrap {
  overflow-x: auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.sku-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
}
.sku-table th {
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  white-space: nowrap;
}
.sku-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.sku-table tr:last-child td { border-bottom: none; }
.sku-table tbody tr:hover td { background: var(--bg-soft); }
.sku-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
}
.sku-engines {
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 220px;
}
.sku-veh {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 320px;
}
.sku-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.sku-link:hover { color: var(--accent); }

/* --- Vehicle pill grid --- */
.vehicle-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vehicle-pill {
  padding: 5px 11px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.vehicle-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* --- Knowledge card grid --- */
.know-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.know-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.know-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.know-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.know-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* --- Archive hero em + meta --- */
.archive-hero-title em {
  font-style: normal;
  color: var(--primary);
}

@media (max-width: 768px) {
  .fpdb-byv-search { flex-direction: column; }
  .cluster-grid { grid-template-columns: 1fr; }
  .know-grid { grid-template-columns: 1fr; }
  .sku-table th, .sku-table td { padding: 8px 10px; font-size: 12px; }
  .sku-engines, .sku-veh { max-width: 200px; }
}

/* ================================================================
   24. Search-First Hero (by-vehicle page)
   ================================================================ */
.search-hero {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.search-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37,99,235,0.18) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245,158,11,0.12) 0, transparent 50%);
  pointer-events: none;
}
.search-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.search-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 12px;
}
.search-hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.search-hero-title .accent { color: var(--accent); }
.search-hero-sub {
  font-size: 15px;
  color: #CBD5E1;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Search box */
.search-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 18px;
  gap: 12px;
}
.search-box-icon { color: #9CA3AF; flex-shrink: 0; }
.search-box-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  padding: 16px 0;
  background: transparent;
  color: var(--text);
}
.search-box-input::placeholder { color: #9CA3AF; }
.search-box-btn {
  padding: 12px 24px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-box-btn:hover { background: var(--primary-dark); }

/* Suggestion chips */
.search-suggestions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.search-suggestions-label {
  font-size: 12px;
  color: #94A3B8;
  margin-right: 4px;
}
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 12px;
  color: #E2E8F0;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-mono);
}
.search-chip:hover {
  background: rgba(37,99,235,0.25);
  border-color: rgba(37,99,235,0.6);
  color: #fff;
}
.search-chip .arrow { font-size: 14px; color: #94A3B8; }

/* Stats bar */
.search-stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.search-stat-item { text-align: center; }
.search-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.search-stat-label {
  font-size: 11px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* Jump to engine pillbar */
.letter-pillbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 32px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.pillbar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  align-self: center;
  margin-right: 6px;
}
.pillbar-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.pillbar-all:not(.is-active) {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.pillbar-all:hover { background: var(--primary); color: #fff; }

@media (max-width: 768px) {
  .search-hero { padding: 36px 0 48px; }
  .search-hero-title { font-size: 28px; }
  .search-stats-bar { gap: 20px; }
  .search-box { flex-direction: column; padding: 12px; }
  .search-box-btn { width: 100%; padding: 14px; }
  .letter-pillbar { gap: 6px; }
}

/* --- Region groups for vehicle grid --- */
.region-group {
  margin-bottom: 40px;
}
.region-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.region-icon {
  font-size: 20px;
}
.region-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.region-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .region-header { flex-wrap: wrap; }
  .region-count { margin-left: 0; width: 100%; margin-top: 4px; }
}
/* ============================================================
   D-3g: Related engine families (engine-related grid + card)
   ============================================================ */
.engine-related {
  background: var(--bg);
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
}
.engine-related .section-sub {
  margin-bottom: 24px;
  color: var(--text-secondary);
}
.engine-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.engine-related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.engine-related-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.engine-related-card .er-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.engine-related-card .er-meta {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .engine-related-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ==================================================================
   ENGINE-FAMILY / DEMO LANDING — appended 2026-07-02
   Provides styling for template-engine-family.php + template-by-vehicle.php
   so /diesel-injector/{slug}/ renders with the same look as demo-D-landing-*.html.
   Scoped to body classes already emitted by those templates where possible.
   ================================================================== */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2847;
  --primary-light: #e8eef4;
  --accent: #c47d0e;
  --success: #15803d;
  --error: #b91c1c;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #d1d5db;
  --bg-white: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-soft: #f3f4f6;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-alt); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 15px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 13px; color: var(--text-secondary); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--text-muted); }


/* ================================================================
   QUICK SPECS BAR
   ================================================================ */
.specs-bar {
  background: var(--primary);
  color: #fff;
  padding: 0;
}
.specs-bar-inner { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0; }
.specs-bar-inner::-webkit-scrollbar { display: none; }
.spec-item { flex-shrink: 0; padding: 16px 22px; border-right: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.spec-item:last-child { border-right: none; }
.spec-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.5); }
.spec-value { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: #93c5fd; }

/* ================================================================
   MAIN LAYOUT — 2-col
   ================================================================ */
.page-body { padding: 32px 0 60px; }
.page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; } }

/* ================================================================
   SECTION CARDS
   ================================================================ */
.section { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.section-hdr { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--bg-alt); }
.section-icon { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.section-title { font-size: 14px; font-weight: 700; color: var(--text); }
.section-body { padding: 18px 20px; }

/* ================================================================
   FITMENT TABLE
   ================================================================ */
.fitment-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fitment-table th { padding: 9px 12px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.fitment-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.fitment-table tr:last-child td { border-bottom: none; }
.fitment-table tbody tr:hover td { background: var(--bg-soft); }
.fitment-vehicle { font-weight: 600; font-size: 13px; }
.fitment-engine { font-family: var(--font-mono); font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 2px 7px; border-radius: var(--radius-sm); }
.fitment-years { font-size: 12px; color: var(--text-secondary); }
.fitment-check { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; background: #dcfce7; color: #15803d; border-radius: 999px; font-size: 11px; font-weight: 700; }
.fitment-link { font-size: 12px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* ================================================================
   DIAGNOSTIC — P-code grid
   ================================================================ */
.pcode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pcode-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; cursor: pointer; transition: all 0.15s; }
.pcode-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }
.pcode-val { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--error); }
.pcode-desc { font-size: 11px; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }

/* ================================================================
   INSTALLATION STEPS
   ================================================================ */
.step-list { list-style: none; counter-reset: steps; }
.step-item { display: flex; gap: 16px; margin-bottom: 20px; position: relative; }
.step-item:last-child { margin-bottom: 0; }
.step-num { flex-shrink: 0; width: 30px; height: 30px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 2px; }
.step-content { flex: 1; }
.step-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.step-body { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.step-body code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-soft); padding: 1px 5px; border-radius: 3px; color: var(--primary); }
.step-body strong { color: var(--text); }
.step-tool { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-secondary); background: var(--bg-soft); padding: 3px 8px; border-radius: var(--radius-sm); margin-top: 5px; }
.step-tool svg { width: 11px; height: 11px; }

/* ================================================================
   SPECS TABLE
   ================================================================ */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-row { background: var(--bg-white); padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spec-row:nth-child(even) { background: var(--bg-soft); }
.spec-key { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.spec-val { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {}
.product-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.product-card-hdr { padding: 16px; background: linear-gradient(135deg, #0f172a, #1e3a5f); color: #fff; }
.product-sku { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: #fbbf24; margin-bottom: 4px; }
.product-brand { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.product-card-body { padding: 16px; }
.product-attrs { list-style: none; margin-bottom: 16px; }
.product-attrs li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.product-attrs li:last-child { border-bottom: none; }
.product-attrs .attr-key { color: var(--text-secondary); }
.product-attrs .attr-val { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text); }
.product-attrs .attr-val.nozzle { color: var(--primary); }
.product-attrs .attr-val.valve { color: var(--accent); }
.product-cta { display: flex; flex-direction: column; gap: 8px; }
.btn-inquiry { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; border-radius: var(--radius); font-size: 14px; font-weight: 700; border: none; cursor: pointer; width: 100%; transition: all 0.15s; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb855; text-decoration: none; }
.btn-email { background: var(--primary); color: #fff; }
.btn-email:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: var(--radius); font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: var(--bg-white); color: var(--text); cursor: pointer; width: 100%; transition: all 0.15s; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.related-section { margin-top: 16px; }
.related-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.related-list { list-style: none; }
.related-item { margin-bottom: 8px; }
.related-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.12s; font-size: 13px; }
.related-link:hover { border-color: var(--primary); background: var(--primary-light); text-decoration: none; }
.related-link svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.related-badge { margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--primary); }
.faq-q .q-badge { flex-shrink: 0; width: 26px; height: 26px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; font-family: var(--font-mono); }
details[open] .q-badge { background: var(--primary); color: #fff; }
.faq-icon { margin-left: auto; font-size: 18px; color: var(--text-muted); font-weight: 300; transition: transform 0.2s; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 0 14px 36px; font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.faq-a p { margin-bottom: 8px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-soft); padding: 1px 5px; border-radius: 3px; color: var(--primary); }

/* ================================================================
   NOTICE
   ================================================================ */
.notice { display: flex; gap: 10px; padding: 12px 14px; background: #fefce8; border: 1px solid #fde047; border-radius: var(--radius); margin-bottom: 14px; font-size: 13px; color: #854d0e; line-height: 1.5; }
.notice svg { flex-shrink: 0; width: 16px; height: 16px; color: #ca8a04; margin-top: 1px; }

/* ================================================================
   VEHICLE PILLS — compact
   ================================================================ */
.vehicle-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.vehicle-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--text); transition: all 0.12s; }
.vehicle-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }

/* ================================================================
   SISTER SKUs
   ================================================================ */
.sister-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sister-table th { padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.sister-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.sister-table tr:last-child td { border-bottom: none; }
.sister-sku { font-family: var(--font-mono); font-weight: 700; color: var(--primary); }
.sister-note { font-size: 12px; color: var(--text-secondary); }
.sister-diff { font-size: 11px; color: var(--text-muted); font-style: italic; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .engine-stats { gap: 16px; }
  .specs-bar-inner { gap: 0; }
  .spec-item { min-width: 110px; padding: 14px 16px; }
  .fitment-table { font-size: 12px; }
  .pcode-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .page-grid { gap: 20px; }
}
/* ==================================================================
   ENGINE-FAMILY / DEMO LANDING — appended 2026-07-02
   Provides styling for template-engine-family.php + template-by-vehicle.php
   so /diesel-injector/{slug}/ renders with the same look as demo-D-landing-*.html.
   Scoped to body classes already emitted by those templates where possible.
   Color tokens (--primary, --accent, etc.) are inherited from the existing :root
   block in this same file, so demo CSS picks them up via var() lookups.
   ================================================================== */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2847;
  --primary-light: #e8eef4;
  --accent: #c47d0e;
  --success: #15803d;
  --error: #b91c1c;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #d1d5db;
  --bg-white: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-soft: #f3f4f6;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-alt); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 15px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 13px; color: var(--text-secondary); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--text-muted); }

/* ================================================================
   QUICK SPECS BAR
   ================================================================ */
.specs-bar {
  background: var(--primary);
  color: #fff;
  padding: 0;
}
.specs-bar-inner { display: flex; overflow-x: auto; scrollbar-width: none; gap: 0; }
.specs-bar-inner::-webkit-scrollbar { display: none; }
.spec-item { flex-shrink: 0; padding: 16px 22px; border-right: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.spec-item:last-child { border-right: none; }
.spec-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.5); }
.spec-value { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: #93c5fd; }

/* ================================================================
   MAIN LAYOUT — 2-col
   ================================================================ */
.page-body { padding: 32px 0 60px; }
.page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; } }

/* ================================================================
   SECTION CARDS
   ================================================================ */
.section { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.section-hdr { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--bg-alt); }
.section-icon { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.section-title { font-size: 14px; font-weight: 700; color: var(--text); }
.section-body { padding: 18px 20px; }

/* ================================================================
   FITMENT TABLE
   ================================================================ */
.fitment-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fitment-table th { padding: 9px 12px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.fitment-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.fitment-table tr:last-child td { border-bottom: none; }
.fitment-table tbody tr:hover td { background: var(--bg-soft); }
.fitment-vehicle { font-weight: 600; font-size: 13px; }
.fitment-engine { font-family: var(--font-mono); font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 2px 7px; border-radius: var(--radius-sm); }
.fitment-years { font-size: 12px; color: var(--text-secondary); }
.fitment-check { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; background: #dcfce7; color: #15803d; border-radius: 999px; font-size: 11px; font-weight: 700; }
.fitment-link { font-size: 12px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* ================================================================
   DIAGNOSTIC — P-code grid
   ================================================================ */
.pcode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pcode-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; cursor: pointer; transition: all 0.15s; }
.pcode-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }
.pcode-val { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--error); }
.pcode-desc { font-size: 11px; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }

/* ================================================================
   INSTALLATION STEPS
   ================================================================ */
.step-list { list-style: none; counter-reset: steps; }
.step-item { display: flex; gap: 16px; margin-bottom: 20px; position: relative; }
.step-item:last-child { margin-bottom: 0; }
.step-num { flex-shrink: 0; width: 30px; height: 30px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 2px; }
.step-content { flex: 1; }
.step-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.step-body { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.step-body code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-soft); padding: 1px 5px; border-radius: 3px; color: var(--primary); }
.step-body strong { color: var(--text); }
.step-tool { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-secondary); background: var(--bg-soft); padding: 3px 8px; border-radius: var(--radius-sm); margin-top: 5px; }
.step-tool svg { width: 11px; height: 11px; }

/* ================================================================
   SPECS TABLE
   ================================================================ */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-row { background: var(--bg-white); padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spec-row:nth-child(even) { background: var(--bg-soft); }
.spec-key { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.spec-val { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {}
.product-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.product-card-hdr { padding: 16px; background: linear-gradient(135deg, #0f172a, #1e3a5f); color: #fff; }
.product-sku { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: #fbbf24; margin-bottom: 4px; }
.product-brand { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.product-card-body { padding: 16px; }
.product-attrs { list-style: none; margin-bottom: 16px; }
.product-attrs li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.product-attrs li:last-child { border-bottom: none; }
.product-attrs .attr-key { color: var(--text-secondary); }
.product-attrs .attr-val { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text); }
.product-attrs .attr-val.nozzle { color: var(--primary); }
.product-attrs .attr-val.valve { color: var(--accent); }
.product-cta { display: flex; flex-direction: column; gap: 8px; }
.btn-inquiry { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; border-radius: var(--radius); font-size: 14px; font-weight: 700; border: none; cursor: pointer; width: 100%; transition: all 0.15s; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb855; text-decoration: none; }
.btn-email { background: var(--primary); color: #fff; }
.btn-email:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: var(--radius); font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: var(--bg-white); color: var(--text); cursor: pointer; width: 100%; transition: all 0.15s; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.related-section { margin-top: 16px; }
.related-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.related-list { list-style: none; }
.related-item { margin-bottom: 8px; }
.related-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.12s; font-size: 13px; }
.related-link:hover { border-color: var(--primary); background: var(--primary-light); text-decoration: none; }
.related-link svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.related-badge { margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--primary); }
.faq-q .q-badge { flex-shrink: 0; width: 26px; height: 26px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; font-family: var(--font-mono); }
details[open] .q-badge { background: var(--primary); color: #fff; }
.faq-icon { margin-left: auto; font-size: 18px; color: var(--text-muted); font-weight: 300; transition: transform 0.2s; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 0 14px 36px; font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.faq-a p { margin-bottom: 8px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-soft); padding: 1px 5px; border-radius: 3px; color: var(--primary); }

/* ================================================================
   NOTICE
   ================================================================ */
.notice { display: flex; gap: 10px; padding: 12px 14px; background: #fefce8; border: 1px solid #fde047; border-radius: var(--radius); margin-bottom: 14px; font-size: 13px; color: #854d0e; line-height: 1.5; }
.notice svg { flex-shrink: 0; width: 16px; height: 16px; color: #ca8a04; margin-top: 1px; }

/* ================================================================
   VEHICLE PILLS — compact
   ================================================================ */
.vehicle-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.vehicle-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--text); transition: all 0.12s; }
.vehicle-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }

/* ================================================================
   SISTER SKUs
   ================================================================ */
.sister-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sister-table th { padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.sister-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.sister-table tr:last-child td { border-bottom: none; }
.sister-sku { font-family: var(--font-mono); font-weight: 700; color: var(--primary); }
.sister-note { font-size: 12px; color: var(--text-secondary); }
.sister-diff { font-size: 11px; color: var(--text-muted); font-style: italic; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .engine-stats { gap: 16px; }
  .specs-bar-inner { gap: 0; }
  .spec-item { min-width: 110px; padding: 14px 16px; }
  .fitment-table { font-size: 12px; }
  .pcode-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .page-grid { gap: 20px; }
}

/* ================================================================
   v3 REDESIGN — BY-VEHICLE (schema-5-minimal)
   ================================================================ */

/* Brand letter anchor bar */
.brand-letter {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.brand-letter:first-child { margin-top: 0; }

/* Brand row — wraps brand pills */
.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

/* Brand pill — links to /vehicle/{slug}/ */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  white-space: nowrap;
}
.brand-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  text-decoration: none;
}
.brand-pill strong {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Engine family list — compact 2-col grid */
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
@media (max-width: 640px) {
  .list-grid { grid-template-columns: 1fr; }
}

/* Engine family list item */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.12s, box-shadow 0.12s;
  gap: 8px;
}
.list-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(29,78,216,0.08);
  text-decoration: none;
  color: var(--text);
}
.list-item-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.list-item-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.list-item:hover .list-item-count {
  background: var(--primary-light);
  color: var(--primary);
}

/* Compact SKU row in cluster card (v3) */
.cl-sku-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.cl-sku-item {
  padding: 3px 9px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-block;
  transition: background 0.12s, color 0.12s;
}
.cl-sku-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Vehicle list in cluster card (v3) */
.cl-veh {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  min-height: 24px;
}
.cl-veh-item {
  display: inline-flex;
  padding: 3px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-veh-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ================================================================
   BRIDGE-v3: BRAND COLLAPSIBLE + VEHICLE ROWS + ENGINE GRID
   ================================================================ */

/* Brand collapsible container */
.brand-section {
  margin-bottom: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-white);
}

/* Clickable brand header row */
.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}
.brand-header:hover { background: var(--primary-light); }
.brand-header.open { background: var(--primary-light); border-bottom: 1.5px solid var(--primary); }

/* Brand icon — single letter in a box */
.brand-icon {
  width: 30px;
  height: 30px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.brand-header.open .brand-icon { background: var(--primary); color: #fff; }

/* Brand name */
.brand-name { font-size: 14px; font-weight: 800; color: var(--text); }

/* Brand meta: "X SKUs · Y vehicles" */
.brand-meta { font-size: 11px; color: var(--text-muted); margin-left: auto; padding-right: 4px; white-space: nowrap; }

/* Chevron */
.brand-chevron { margin-left: auto; color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.brand-header.open .brand-chevron { transform: rotate(180deg); }

/* Collapsible body */
.brand-body { display: none; border-top: 1px solid var(--border); }
.brand-body.open { display: block; }

/* Vehicle row inside brand body */
.vehicle-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  gap: 12px;
}
.vehicle-row:last-child { border-bottom: none; }
.vehicle-row:hover { background: var(--primary-light); }

.vehicle-info { flex: 1; min-width: 0; }
.vehicle-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vehicle-eng { font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* SKU pills in vehicle row */
.vehicle-sku-list { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; padding-left: 16px; flex-shrink: 0; }
.sku-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s;
}
.sku-pill:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.sku-num { font-family: var(--font-mono); font-weight: 700; color: var(--text); }
.sku-valve { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.sku-pill:hover .sku-valve { color: var(--primary); }

/* Engine family grid */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

/* Engine card */
.engine-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.engine-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(29,78,216,0.1);
  text-decoration: none;
  color: inherit;
}

.engine-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.engine-card-name { font-size: 13px; font-weight: 800; color: var(--text); line-height: 1.3; }
.engine-badge { font-size: 10px; font-weight: 700; font-family: var(--font-mono); color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }

.engine-card-models { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }

/* SKU row inside engine card */
.engine-sku-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}
.engine-sku-row:last-child { margin-bottom: 0; }
.sku-link { font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--text); text-decoration: none; }
.sku-link:hover { color: var(--primary); }
.sku-link-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.sku-valve-badge { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); background: var(--bg-white); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); white-space: nowrap; }

/* ================================================================
   P-CODE LIST — list style with critical / normal rows (D-3 v3)
   ================================================================ */
.pcode-list { display: flex; flex-direction: column; gap: 0; }
.pcode-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.pcode-row:last-child { border-bottom: none; }
.pcode-row:hover { background: var(--primary-light); }
.pcode-row.critical { background: #fee2e2; }
.pcode-row.critical:hover { background: #fecaca; }
.pcode-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--text-secondary, #374151);
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
  text-align: center;
}
.pcode-row.critical .pcode-tag { background: var(--error, #dc2626); }
.pcode-body { flex: 1; min-width: 0; }
.pcode-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pcode-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.pcode-tip {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 4px 8px;
  background: var(--bg-soft, #f3f4f6);
  border-radius: var(--radius-sm);
  display: inline-block;
}
.pcode-row.critical .pcode-tip { background: #fff; color: #7f1d1d; }

/* ================================================================
   INSTALL STEPS — numbered 6-step style with torque badge (D-3 v3)
   ================================================================ */
.install-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 24px;
  height: 24px;
  background: var(--primary, #2563eb);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-body { flex: 1; min-width: 0; }
.step-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.step-desc strong { color: var(--text); }
.step-torque {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #2563eb);
  background: var(--primary-light, #dbeafe);
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}
.step-warn {
  font-size: 11px;
  color: var(--error, #dc2626);
  background: #fee2e2;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
  font-weight: 600;
}

/* ================================================================
   CTA BAR — bottom of page, full-width (D-3 v3)
   ================================================================ */
.cta-bar-section {
  background: var(--primary-light, #dbeafe);
  border: 1.5px solid var(--primary, #2563eb);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 22px auto;
  max-width: var(--container, 1100px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-bar-inner { flex: 1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: 100%; }
.cta-bar-text { flex: 1; min-width: 200px; }
.cta-bar-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.cta-bar-sub { font-size: 12px; color: var(--text-muted); }
.cta-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-bar-actions .btn-primary,
.cta-bar-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius, 6px);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.12s;
}
.cta-bar-actions .btn-primary { background: var(--primary, #2563eb); color: #fff; }
.cta-bar-actions .btn-primary:hover { background: var(--primary-dark, #1d4ed8); color: #fff; text-decoration: none; }
.cta-bar-actions .btn-outline { background: #fff; color: var(--primary, #2563eb); border: 1.5px solid var(--primary, #2563eb); }
.cta-bar-actions .btn-outline:hover { background: var(--primary-light, #dbeafe); text-decoration: none; }

@media (max-width: 768px) {
  .cta-bar-section { flex-direction: column; align-items: flex-start; }
  .pcode-tag { min-width: 70px; font-size: 11px; }
  .step-num { width: 22px; height: 22px; font-size: 10px; }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .vehicle-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vehicle-sku-list { margin-left: 0; padding-left: 0; }
  .engine-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   D-3 (2026-07-14): DEMO ALIGNMENT — diesel-injector-m47n.html
   These rules align engine-family page visuals with the demo design
   (white-bg, compact, 12-14px base). They override the earlier
   dark-technical .engine-hero gradient rules. Class names unchanged
   so the PHP template doesn't need rewriting — only this stylesheet
   is touched.
   ================================================================ */

/* Container match — demo uses 1100px max-width for engine-family pages */
.engine-hero,
.engine-quick-specs,
.engine-fitment,
.engine-all-skus,
.engine-pcodes,
.engine-installation,
.engine-faq,
.engine-related,
.engine-sidebar-cta,
.cta-bar-section { max-width: none; padding-left: 0; padding-right: 0; }
.engine-hero .container,
.engine-quick-specs .container,
.engine-fitment .container,
.engine-all-skus .container,
.engine-pcodes .container,
.engine-installation .container,
.engine-faq .container,
.engine-related .container,
.engine-sidebar-cta .container,
.cta-bar-section .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* HERO — D-3 (2026-07-14): unified with .product-hero style (dark gradient,
   shared with the WooCommerce single-product page). The class on the
   <section> is now `product-hero`, so the existing stylesheet block at
   line ~3196 in this file (`.product-hero`, `.hero-sku-tag`, `.hero-badge`,
   `.hero-title`, `.hero-subtitle`, `.hero-meta-grid`, `.hero-meta-item`)
   takes over. We keep `.engine-hero-cta` here for the inline button row
   inside the dark hero (white border + transparent fill works on dark bg). */
.engine-hero-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.engine-hero-cta .btn {
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--radius, 6px);
  text-decoration: none;
}
.engine-hero-cta .btn-primary {
  background: var(--accent, #f59e0b);
  color: #fff;
  border: 0;
}
.engine-hero-cta .btn-primary:hover {
  background: var(--accent-hover, #d97706);
  color: #fff;
  text-decoration: none;
}
.engine-hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.engine-hero-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

/* SECTION — compact (demo: padding 22px) */
.engine-fitment,
.engine-all-skus,
.engine-pcodes,
.engine-installation,
.engine-faq,
.engine-related,
.engine-sidebar-cta {
  background: var(--bg-white, #fff);
  padding: 22px 0;
  border: 0;
}
.engine-fitment + .engine-all-skus,
.engine-fitment + .engine-pcodes,
.engine-all-skus + .engine-pcodes,
.engine-pcodes + .engine-installation,
.engine-installation + .engine-faq,
.engine-faq + .engine-related { border-top: 1px solid var(--border, #E5E7EB); }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text, #111827);
}
.section-sub {
  font-size: 11px;
  color: var(--text-4, #9CA3AF);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

/* VEHICLE FITMENT TABLE — compact 12px */
.engine-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--r2, 10px);
}
.engine-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--bg-white, #fff);
}
.engine-table th {
  padding: 9px 14px;
  background: var(--bg-2, #F3F4F6);
  border-bottom: 2px solid var(--border, #E5E7EB);
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-4, #9CA3AF);
  white-space: nowrap;
}
.engine-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #E5E7EB);
  vertical-align: middle;
}
.engine-table tr:last-child td { border-bottom: 0; }
.engine-table tr:hover td { background: var(--p-100, #EFF6FF); }

/* P-CODE LIST — already correctly named in demo */
.pcode-list { display: flex; flex-direction: column; gap: 0; }
.pcode-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #E5E7EB);
  transition: background .1s;
}
.pcode-row:last-child { border-bottom: 0; }
.pcode-row:hover { background: var(--p-100, #EFF6FF); }
.pcode-row.critical { background: var(--r-50, #FEE2E2); }
.pcode-row.critical:hover { background: #FECACA; }
.pcode-tag {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--text-2, #374151);
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
  text-align: center;
}
.pcode-row.critical .pcode-tag { background: var(--r, #DC2626); }
.pcode-body { flex: 1; min-width: 0; }
.pcode-title { font-size: 13px; font-weight: 700; color: var(--text, #111827); margin-bottom: 4px; }
.pcode-desc { font-size: 12px; color: var(--text-2, #374151); line-height: 1.5; }
.pcode-tip {
  font-size: 11px;
  color: var(--text-3, #6B7280);
  margin-top: 4px;
  padding: 4px 8px;
  background: var(--bg-2, #F3F4F6);
  border-radius: var(--r-sz, 6px);
  display: inline-block;
}
.engine-pcode-note {
  font-size: 12px;
  color: var(--text-3, #6B7280);
  margin: 14px 0 0;
  padding: 10px 12px;
  background: var(--bg-2, #F3F4F6);
  border-left: 3px solid var(--p, #1D4ED8);
  border-radius: var(--r-sz, 6px);
}

/* INSTALL STEPS — demo .install-steps */
.install-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #E5E7EB);
}
.step:last-child { border-bottom: 0; }
.step-num {
  width: 24px;
  height: 24px;
  background: var(--p, #1D4ED8);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-body { flex: 1; }
.step-title { font-size: 13px; font-weight: 700; color: var(--text, #111827); margin-bottom: 3px; }
.step-desc { font-size: 12px; color: var(--text-3, #6B7280); line-height: 1.5; }
.step-torque {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--p, #1D4ED8);
  background: var(--p-50, #DBEAFE);
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}
.step-warn {
  font-size: 11px;
  color: var(--r, #DC2626);
  background: var(--r-50, #FEE2E2);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
  font-weight: 600;
}

/* CTA BAR — demo uses inline flex */
.cta-bar-section {
  background: var(--p-100, #EFF6FF);
  border: 1.5px solid var(--p, #1D4ED8);
  border-radius: var(--r2, 10px);
  padding: 16px 20px;
  margin: 22px auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-bar-text { flex: 1; min-width: 200px; }
.cta-bar-title { font-size: 14px; font-weight: 800; color: var(--text, #111827); margin-bottom: 2px; }
.cta-bar-sub { font-size: 12px; color: var(--text-3, #6B7280); }
.cta-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-bar-actions .btn-primary,
.cta-bar-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r2, 10px);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .12s;
}
.cta-bar-actions .btn-primary {
  background: var(--p, #1D4ED8);
  color: #fff;
  border: 0;
}
.cta-bar-actions .btn-primary:hover { background: var(--p-dark, #1E3A8A); }
.cta-bar-actions .btn-outline {
  background: #fff;
  color: var(--p, #1D4ED8);
  border: 1.5px solid var(--p, #1D4ED8);
}
.cta-bar-actions .btn-outline:hover { background: var(--p-50, #DBEAFE); }

/* Mobile demo rule */
@media (max-width: 768px) {
  .engine-hero-title { font-size: 20px; }
  .engine-spec-card { min-width: 78px; padding: 8px 12px; }
  .engine-table { font-size: 11px; }
  .cta-bar-section { flex-direction: column; align-items: flex-start; }
  .pcode-tag { min-width: 70px; font-size: 11px; }
  .step-num { width: 22px; height: 22px; font-size: 10px; }
}

/* D-3 (2026-07-14): site-footer keeps the theme's own dark grid styling on
   ALL pages (including engine-family). Demo's compact single-line footer
   only existed in the demo HTML, not as a site-wide spec. Do NOT override
   .site-footer background/color/layout here — that would break
   /, /by-vehicle/, /knowledge/, etc. */

/* ================================================================
   RESPONSIVE — front-page SEO sections (2026-07-15)
   ================================================================ */
@media (max-width: 900px) {
  .seo-catalog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pcodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-section {
    padding: 48px 0;
  }
  .seo-catalog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .seo-catalog-col {
    padding: 18px 20px;
  }
  .engine-platforms-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .pcodes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .featured-engines-section,
  .pcodes-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .engine-platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
