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

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
  --primary:       #1a3a5c;
  --primary-dark:  #0f2440;
  --primary-light: #234b73;
  --accent:        #f59e0b;
  --accent-hover:  #d97706;
  --accent-light:  #fbbf24;
  --bg:           #f4f7fb;
  --bg-white:      #ffffff;
  --bg-soft:      #f8fafc;
  --text:          #1a1a1a;
  --text-secondary:#475569;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --shadow:    0 18px 44px rgba(15, 36, 64, 0.08);
  --shadow-lg: 0 28px 64px rgba(15, 36, 64, 0.12);
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Roboto Slab', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --container: 1200px;
  --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;
}

.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;
}

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

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

.header-note {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
}

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

.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;
}

.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: 28px 0;
  font-size: 13px;
}

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

.footer-inner strong { color: white; }
.footer-inner a { color: rgba(255,255,255,0.7); }
.footer-inner a:hover { color: var(--accent); }

/* ============================================================
   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)
   ============================================================ */
.categories-section {
  padding: 72px 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.cat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

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

.cat-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.cat-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.cat-count {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(26,58,92,0.08);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}

.cat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.cat-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-card:hover .cat-link { gap: 10px; }

/* ============================================================
   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);
}

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

.cat-tree li { border-bottom: 1px solid var(--border); }
.cat-tree li:last-child { border-bottom: none; }

.cat-tree a {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.cat-tree a:hover { color: var(--primary); }

.cat-tree .count {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(26,58,92,0.07);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: 4px;
}

.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
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.page-numbers:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================================
   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: 40px 0 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) 272px;
  gap: 32px;
  align-items: start;
}

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

.article-sidebar {
  min-height: 1px;
  align-self: start;
}

.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;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 58, 92, 0.04), rgba(26, 58, 92, 0));
}

.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; }

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

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

.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; }

/* ============================================================
   22. Page Sidebar
   ============================================================ */
.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: var(--primary);
  color: white;
  padding: 60px 20px;
  text-align: center;
  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");
}

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

.fpdb-sku-badge {
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

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

.fpdb-sku-number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin: 16px 0;
}

.fpdb-sku-tagline {
  font-size: 18px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 24px;
}

.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: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #92400e;
}

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

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

.fpdb-sku-cards {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 32px;
}

.fpdb-sku-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

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

.fpdb-sku-card h2 .fpdb-sku-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.fpdb-sku-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tables */
.fpdb-sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fpdb-sku-table th {
  background: var(--primary);
  color: var(--bg-white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fpdb-sku-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.fpdb-sku-table tr:last-child td { border-bottom: none; }
.fpdb-sku-table tr:hover td { background: var(--bg-soft); }

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

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

.fpdb-sku-detail-item {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  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 references */
.cross-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin: 2px;
}

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

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

.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%;
}

/* SKU FAQ */
.fpdb-sku-faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.fpdb-sku-faq-q {
  background: var(--primary);
  color: var(--bg-white);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.fpdb-sku-faq-q:hover { background: #2a4a6c; }
.fpdb-sku-faq-q::after { content: '+'; font-size: 20px; font-weight: 300; }
.fpdb-sku-faq-item.open .fpdb-sku-faq-q::after { transform: rotate(45deg); }

.fpdb-sku-faq-a {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  background: var(--bg-white);
  display: none;
  border-top: 1px solid var(--border);
}

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

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

/* SKU CTA */
.fpdb-sku-cta {
  background: var(--primary);
  color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}

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

.fpdb-sku-cta p {
  opacity: 0.85;
  font-size: 14px;
  margin-bottom: 16px;
}

.fpdb-sku-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fpdb-sku-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

/* ============================================================
   25. Responsive
   ============================================================ */
@media (max-width: 900px) {
  .knowledge-grid,
  .archive-layout,
  .page-layout,
  .article-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .footer-inner {
    flex-direction: column;
    text-align: 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;
  }

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

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

  .hero { padding: 48px 0 52px; }
  .hero-stats { gap: 20px; }
  .cat-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;
  }
}
