/*
Theme Name: Boitier Electronique
Theme URI: https://boitier-electronique.fr
Description: Theme expert dark pour boitier-electronique.fr - Guide des boitiers electroniques automobile
Version: 1.0
Author: L'equipe Boitier Electronique
Text Domain: boitier-electronique
License: proprietary
*/

/* ===== VARIABLES ===== */
:root {
  --bg-primary: #0C0F14;
  --bg-secondary: #141820;
  --bg-tertiary: #1A1F2B;
  --border: #2A3040;
  --border-light: #353D50;
  --text-primary: #E8ECF4;
  --text-secondary: #8892A6;
  --text-muted: #5A6478;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --accent-glow: rgba(59,130,246,0.15);
  --warning: #F59E0B;
  --success: #10B981;
  --danger: #EF4444;
  --font-main: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ===== FONTS ===== */
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/JetBrainsMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  font-weight: 800;
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.logo-text span { color: var(--accent); }

.header-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.header-nav li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.header-nav li a:hover,
.header-nav li.current-menu-item a,
.header-nav li.current-cat a,
.header-nav li.current-menu-parent a { color: var(--text-primary); }
.header-nav li.current-menu-item a::after,
.header-nav li.current-cat a::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 32px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0E1219 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.circuit-lines {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  opacity: 0.03;
  background-image:
    linear-gradient(0deg, var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  max-width: 1260px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-split {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  flex-wrap: nowrap;
}
.hero-text { flex: 1 1 0%; min-width: 0; }
.hero-illustration {
  flex: 0 0 340px;
  flex-shrink: 0;
}
.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(59,130,246,0.15));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 .highlight { color: var(--accent); }
.hero > .hero-inner > p,
.hero p.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}
.hero-search {
  display: flex;
  max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.hero-search input[type="search"],
.hero-search input[type="text"] {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  outline: none;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button,
.hero-search input[type="submit"] {
  background: var(--accent);
  border: none;
  padding: 14px 22px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s;
}
.hero-search button:hover,
.hero-search input[type="submit"]:hover { background: var(--accent-light); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
}
.stats-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 56px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ===== MAIN ===== */
.site-main {
  max-width: 1260px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* ===== SECTION LABELS ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 6px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  font-family: var(--font-mono);
}
.see-all:hover { gap: 8px; }

/* ===== FEATURED GRID ===== */
.featured-section { margin-bottom: 56px; }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* ===== ARTICLE CARDS ===== */
.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.article-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1A1F2B 0%, #0E1219 100%);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.article-card:hover .card-img img { opacity: 1; }
.card-body { padding: 20px; }

/* Category badges */
.category-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-decoration: none;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}
.badge-bpga, [class*="badge-bpga"] { background: rgba(59,130,246,0.12); color: var(--accent-light); }
.badge-bsi-bsm, [class*="badge-bsi"] { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-uch-ucm, [class*="badge-uch"] { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-diagnostic, [class*="badge-diag"] { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-guides, [class*="badge-guide"] { background: rgba(139,92,246,0.12); color: #A78BFA; }
.badge-codes-defaut-bpga { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-prix-bpga, .badge-prix-tarifs { background: rgba(139,92,246,0.12); color: #A78BFA; }

.card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card-body h3 a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
.card-body h3 a:hover { color: var(--accent); }
.card-body > p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

/* Featured card */
.card-featured {
  grid-row: span 2;
  position: relative;
}
.card-featured .card-img {
  height: 100%;
  min-height: 420px;
}
.card-featured .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(12,15,20,0.95));
  padding: 60px 24px 24px;
}
.card-featured .category-badge { background: var(--accent); color: white; }
.card-featured h3 { font-size: 20px; }
.card-featured h3 a { color: #FFFFFF; }
.card-featured h3 a:hover { color: var(--accent-light); }
.card-featured p { color: rgba(255,255,255,0.6); }
.card-featured .card-meta { color: rgba(255,255,255,0.4); }

/* Placeholder images */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, #1A1F2B 0%, #0E1219 100%);
  position: relative;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid var(--border);
  border-radius: 12px;
  opacity: 0.3;
}

/* ===== SILO SECTIONS ===== */
.silo-section { margin-bottom: 56px; }
.silo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.silo-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.silo-header .silo-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 3px 8px;
  border-radius: 4px;
}
.silo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.silo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.silo-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.silo-card .card-img { height: 120px; }
.silo-card .card-body { padding: 14px; }
.silo-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.silo-card h3 a { color: var(--text-primary); text-decoration: none; }
.silo-card h3 a:hover { color: var(--accent); }
.silo-card p { font-size: 12px; color: var(--text-muted); margin: 0; font-family: var(--font-mono); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #2563EB 100%);
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; }
.cta-banner h3 {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.cta-banner p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.cta-btn {
  background: #FFFFFF;
  color: var(--accent);
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-main);
  white-space: nowrap;
  transition: transform 0.2s;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.cta-btn:hover { transform: scale(1.03); color: var(--accent); }

/* ===== ARTICLE SINGLE ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 32px;
}
.article-header { margin-bottom: 32px; }
.article-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-featured-img {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article body */
.article-body {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}
.article-body p { margin-bottom: 16px; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--accent-light); }
.article-body ul, .article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-body th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-body td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.article-body tr:nth-child(even) td { background: var(--bg-secondary); }
.article-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-tertiary);
  color: var(--warning);
  padding: 2px 6px;
  border-radius: 4px;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--bg-secondary);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}
.article-body strong { color: var(--text-primary); }

/* ===== TOC ===== */
.toc-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.toc-box ul { list-style: none; padding: 0; }
.toc-box li { margin-bottom: 6px; }
.toc-box a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-box a:hover { color: var(--accent); }
.toc-box .toc-h3 { padding-left: 16px; }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-main);
}
.faq-question:hover { background: var(--bg-tertiary); }
.faq-question::after { content: '+'; font-family: var(--font-mono); color: var(--accent); font-size: 18px; }
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 16px 20px;
}

/* ===== PRODUCT CARD INLINE ===== */
.product-card-inline {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.product-card-inline .product-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.product-card-inline .product-specs-mini {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}
.product-card-inline .badge-stock {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.product-card-inline .in-stock { background: rgba(16,185,129,0.12); color: var(--success); }
.product-card-inline .out-stock { background: rgba(239,68,68,0.12); color: var(--danger); }
.product-card-inline .product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.product-card-inline .product-cta-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.btn-product {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-main);
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-product:hover { background: var(--accent-light); color: white; }

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 84px; }
.sidebar-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-widget h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.sidebar-widget p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget li {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget li:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-widget a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-widget a:hover { color: var(--accent); }
.cta-widget {
  background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, var(--bg-secondary) 100%);
  border-color: rgba(59,130,246,0.2);
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-light); color: white; }

/* ===== ARCHIVE ===== */
.archive-layout {
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 32px;
}
.archive-header { margin-bottom: 32px; }
.archive-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.archive-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 100%;
}
.archive-desc-top {
  max-width: 800px;
  margin-bottom: 8px;
}
.archive-desc-top p { margin-bottom: 12px; }
.archive-desc-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.archive-desc-bottom h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}
.archive-desc-bottom h2:first-child { margin-top: 0; }
.archive-desc-bottom p { margin-bottom: 12px; }
.archive-desc-bottom strong { color: var(--text-primary); }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}
.pagination a {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .current {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; color: var(--border-light); }

/* ===== 404 ===== */
.error-404 {
  text-align: center;
  padding: 80px 32px;
  max-width: 1260px;
  margin: 0 auto;
}
.error-404 h1 {
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}
.error-404 p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== SEARCH ===== */
.search-layout {
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 32px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 32px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: 1260px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.cookie-inner {
  max-width: 1260px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.cookie-inner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}
.cookie-inner a {
  color: var(--accent-light);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn-refuse {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
@media (max-width: 640px) {
  .cookie-inner { flex-direction: column; text-align: center; }
  .cookie-actions { justify-content: center; }
}

/* ===== PAGE TEMPLATE ===== */
.page-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px;
}
.page-layout h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.page-layout .entry-content {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}
.page-layout .entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}
.page-layout .entry-content p { margin-bottom: 16px; }
.page-layout .entry-content a { color: var(--accent); }

/* ===== SUBCATEGORY NAV ===== */
.subcat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.subcat-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-mono);
  font-size: 12px;
}
.subcat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.subcat-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ===== CATALOG SECTION ===== */
.catalog-section {
  margin-bottom: 48px;
}
.catalog-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.catalog-section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.catalog-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: 4px;
}
.catalog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ===== PRODUCT CARD (catalog grid) ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: block;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.product-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1A1F2B 0%, #0E1219 100%);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.product-card:hover .product-card-img img { opacity: 1; }
.stock-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
}
.product-card-body {
  padding: 16px 20px 20px;
}
.product-card-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.p-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.p-badge-ref {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}
.p-badge-stock {
  background: rgba(16,185,129,0.12);
  color: var(--success);
}
.p-badge-out {
  background: rgba(239,68,68,0.12);
  color: var(--danger);
}
.product-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
}
.product-card-compat {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.product-card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ===== SINGLE PRODUCT HERO ===== */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.product-hero-img {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #1A1F2B 0%, #0E1219 100%);
}
.product-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}
.product-hero-img .img-placeholder {
  min-height: 280px;
}
.product-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.product-price-big {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}
.product-price-big span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.product-specs-table {
  margin-bottom: 24px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-row .spec-label {
  color: var(--text-muted);
}
.spec-row .spec-value {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
}
.btn-product-big {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.btn-product-big:hover {
  background: var(--accent-light);
  color: white;
}

/* Product compat section */
.product-compat-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.product-compat-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.compat-brand-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s;
}
.compat-brand-card:hover {
  border-color: var(--accent);
}
.compat-brand-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.compat-brand-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-illustration { flex: 0 0 280px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .silo-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .article-card.card-featured { grid-row: span 1; }
  .article-card.card-featured .card-img { height: 180px; min-height: 180px; }
  .article-card.card-featured .card-body { position: relative; background: none; padding: 20px; }
  .article-card.card-featured h3 a { color: var(--text-primary); }
  .article-card.card-featured p { color: var(--text-muted); }
  .article-card.card-featured .card-meta { color: var(--text-muted); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; }
  .stats-inner { gap: 32px; }
  .product-card-inline { flex-direction: column; text-align: center; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .header-nav { display: none; }
  .header-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 12px;
  }
  .menu-toggle { display: block; }
  .hero { padding: 48px 20px 56px; }
  .hero-split { flex-direction: column; gap: 32px; }
  .hero-illustration { max-width: 280px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .featured-grid { grid-template-columns: 1fr; }
  .silo-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; gap: 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-main { padding: 32px 16px; }
  .article-layout { padding: 24px 16px; gap: 24px; }
  .article-header h1 { font-size: 24px; }
  .article-body h2 { font-size: 20px; }
  .article-body h3 { font-size: 16px; }
  .cta-banner { padding: 28px 20px; }
  .cta-banner h3 { font-size: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .archive-layout { padding: 24px 16px; }
  .page-layout { padding: 32px 16px; }

  /* Table card layout on mobile */
  .article-body table,
  .article-body thead,
  .article-body tbody,
  .article-body tr,
  .article-body th,
  .article-body td { display: block; width: 100%; }
  .article-body thead { display: none; }
  .article-body tbody tr {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 16px;
  }
  .article-body td {
    padding: 6px 0;
    border: none;
    font-size: 13px;
  }
  .article-body td:before {
    content: attr(data-label);
    font-weight: 700;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent);
    margin-bottom: 2px;
    font-family: var(--font-mono);
  }
  .article-body td:first-child {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 2px solid var(--accent) !important;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .stats-inner { flex-direction: column; gap: 16px; }
  .silo-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .silo-header h2 { font-size: 17px; }
}
