:root {
  --blue-900: #0a3a63;
  --blue-800: #0d4d82;
  --blue-700: #0f5f9e;
  --blue-600: #1477c4;
  --blue-100: #e6f1fa;
  --gray-900: #1f2937;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --accent: #e0801a;
  --accent-dark: #c06a10;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.5;
}
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--blue-900);
  color: var(--white);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--white);
}
.logo:hover { text-decoration: none; }
.logo__badge {
  background: var(--white);
  color: var(--blue-900);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  border-radius: 6px;
  padding: 6px 8px;
  line-height: 1;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo__text strong { font-size: 16px; letter-spacing: .3px; }
.logo__text span { font-size: 11px; color: var(--blue-100); text-transform: uppercase; letter-spacing: 1px; }

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--blue-100);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a.is-active {
  background: rgba(255,255,255,.12);
  color: var(--white);
  text-decoration: none;
}

.search-box { margin-left: auto; position: relative; width: 320px; max-width: 40vw; }
.search-box form { display: flex; }
.search-box input[type=search] {
  flex: 1;
  border: none;
  border-radius: 6px 0 0 6px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
}
.search-box button {
  border: none;
  background: var(--accent);
  color: var(--white);
  padding: 0 14px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 14px;
}
.search-box button:hover { background: var(--accent-dark); }

.search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-top: 6px;
  overflow: hidden;
  z-index: 40;
  display: none;
}
.search-suggest.is-open { display: block; }
.search-suggest a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--gray-900);
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
}
.search-suggest a:hover { background: var(--gray-50); text-decoration: none; }
.search-suggest img { width: 34px; height: 34px; object-fit: contain; background: var(--gray-100); border-radius: 4px; }
.search-suggest .article { font-weight: 700; color: var(--blue-700); }

/* mobile nav toggle */
.nav-toggle { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--gray-500);
  padding: 12px 0;
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs span[aria-current] { color: var(--gray-900); }
.breadcrumbs .sep { margin: 0 6px; }

/* ---------- Hero / vehicle selector ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 40px 0 48px;
}
.hero h1 { font-size: 26px; margin: 0 0 6px; }
.hero p { color: var(--blue-100); margin: 0 0 22px; font-size: 15px; }

.vehicle-picker {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.vehicle-picker .field { flex: 1; min-width: 180px; }
.vehicle-picker label { display: block; font-size: 12px; color: var(--gray-500); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.vehicle-picker select {
  width: 100%;
  padding: 10px 10px;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  font-size: 14px;
  color: var(--gray-900);
  background: var(--white);
}
.vehicle-picker button {
  border: none;
  background: var(--accent);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.vehicle-picker button:disabled { opacity: .5; cursor: not-allowed; }
.vehicle-picker button:not(:disabled):hover { background: var(--accent-dark); }

/* ---------- Category tiles ---------- */
.section-title { font-size: 19px; margin: 34px 0 14px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.tile {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  transition: box-shadow .15s, transform .15s;
}
.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.tile__title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.tile__count { font-size: 13px; color: var(--gray-500); }

/* ---------- Lists (makes / models) ---------- */
.crumb-title { font-size: 22px; margin: 6px 0 18px; }
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}
.chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--gray-900);
}
.chip:hover { border-color: var(--blue-600); text-decoration: none; background: var(--blue-100); }
.chip small { display: block; color: var(--gray-500); font-size: 12px; margin-top: 2px; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--gray-900);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.product-card__img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: 6px;
  overflow: hidden;
}
.product-card__img img { max-height: 100%; }
.product-card__article { font-weight: 700; color: var(--blue-700); font-size: 14px; }
.product-card__name { font-size: 13px; color: var(--gray-700); }
.product-card__meta { font-size: 12px; color: var(--gray-500); margin-top: auto; }

/* ---------- Layout: sidebar + content ---------- */
.layout-with-sidebar { display: flex; gap: 26px; align-items: flex-start; }
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
}
.sidebar h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-500); margin: 0 0 10px; }
.sidebar li { margin-bottom: 6px; }
.sidebar a { font-size: 13px; }
.sidebar a.is-active { font-weight: 700; color: var(--gray-900); }
.content { flex: 1; min-width: 0; }

/* ---------- Product page ---------- */
.product-header { display: flex; gap: 26px; margin-bottom: 28px; flex-wrap: wrap; }
.product-header__img {
  width: 280px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 220px;
}
.product-header__info { flex: 1; min-width: 260px; }
.product-header__info h1 { font-size: 22px; margin: 0 0 10px; }
.badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 0 6px 6px 0;
}
.badge--accent { background: #fdf0de; color: var(--accent-dark); }
.price-box { margin-top: 14px; padding: 12px 14px; background: var(--gray-100); border-radius: 6px; font-size: 14px; color: var(--gray-700); }

.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.panel h2 { font-size: 16px; margin: 0 0 14px; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th, table.data-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--gray-100); }
table.data-table th { color: var(--gray-500); font-weight: 600; background: var(--gray-50); }
table.data-table tr:hover td { background: var(--gray-50); }

.number-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.number-pills span { background: var(--gray-100); border-radius: 4px; padding: 3px 8px; font-size: 12.5px; font-family: "SFMono-Regular", Consolas, monospace; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 20px; }
.pagination nav > div { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  margin-top: 50px;
  padding: 30px 0;
  font-size: 13px;
}
.site-footer a { color: var(--gray-300); }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }

/* ---------- Utility ---------- */
.empty-state { padding: 40px 0; text-align: center; color: var(--gray-500); }
.text-muted { color: var(--gray-500); }
.mt-0 { margin-top: 0; }

@media (max-width: 780px) {
  .main-nav { display: none; }
  .search-box { width: auto; max-width: none; flex: 1; margin-left: 0; }
  .layout-with-sidebar { flex-direction: column; }
  .sidebar { width: 100%; }
  .product-header { flex-direction: column; }
  .product-header__img { width: 100%; }
}
