:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #eef2f5;
  --text: #151922;
  --muted: #657180;
  --line: #dce2e8;
  --accent: #c83d32;
  --accent-dark: #9f2f27;
  --ok: #20795b;
  --used: #725b25;
  --shadow: 0 14px 40px rgba(21, 25, 34, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #303744;
  font-size: 14px;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--surface-soft);
  outline: 0;
}

.hero {
  padding: 72px 0 36px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f7f9 74%),
    var(--bg);
}

.hero-inner {
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 52px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 18px;
}

.search-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid #cfd7df;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 18px 45px rgba(200, 61, 50, 0.14);
}

.search-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--muted);
  left: -6px;
  bottom: -4px;
  transform: rotate(45deg);
  border-radius: 2px;
}

#searchInput {
  width: 100%;
  min-width: 0;
  height: 64px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

#searchInput::placeholder {
  color: #8b95a1;
}

.suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  max-height: 360px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: right;
}

.suggestions.is-open {
  display: block;
}

.suggestion {
  width: 100%;
  display: block;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: right;
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover,
.suggestion.is-active {
  background: #f7ebe9;
}

.suggestion-title {
  display: block;
  font-weight: 700;
  line-height: 1.5;
}

.suggestion-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

mark {
  padding: 0 2px;
  background: #ffe2dd;
  color: inherit;
  border-radius: 4px;
}

.hero-stats {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.hero-stats span {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.category-strip,
.products-section {
  padding: 42px 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.products-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.clear-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #303744;
  cursor: pointer;
}

.chip:hover,
.clear-button:hover {
  border-color: #b9c2cd;
}

.chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.clear-button {
  flex: 0 0 auto;
  border-radius: 6px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(21, 25, 34, 0.05);
}

.part-visual {
  height: 94px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2d333d 0%, #3d4654 100%);
}

.part-visual::before,
.part-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.part-visual::before {
  width: 88px;
  height: 88px;
  inset-inline-end: 18px;
  top: 18px;
  border: 12px solid rgba(255, 255, 255, 0.18);
}

.part-visual::after {
  width: 120px;
  height: 12px;
  inset-inline-start: 22px;
  bottom: 22px;
  background: rgba(255, 255, 255, 0.28);
}

.part-visual.body {
  background: linear-gradient(135deg, #3b3f45 0%, #8c3d34 100%);
}

.part-visual.engine {
  background: linear-gradient(135deg, #2c332f 0%, #557b61 100%);
}

.part-visual.electrical {
  background: linear-gradient(135deg, #252d3a 0%, #b98d35 100%);
}

.part-visual.gearbox {
  background: linear-gradient(135deg, #282d35 0%, #6b5c8b 100%);
}

.part-visual.suspension {
  background: linear-gradient(135deg, #263238 0%, #607d8b 100%);
}

.part-visual.cooling {
  background: linear-gradient(135deg, #263238 0%, #43848a 100%);
}

.card-body {
  padding: 14px;
}

.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.product-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.new {
  color: var(--ok);
  background: #e6f4ee;
}

.badge.used {
  color: var(--used);
  background: #f5eddc;
}

.price {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.spec-list {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed #e4e8ed;
  padding-bottom: 4px;
}

.spec-list dt,
.spec-list dd {
  margin: 0;
}

.spec-list dd {
  color: #303744;
  text-align: left;
  direction: ltr;
}

.spec-list dd[dir="rtl"] {
  direction: rtl;
}

.card-description {
  min-height: 42px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.card-action {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
  cursor: pointer;
}

.card-action:hover {
  background: #303744;
}

.empty-state {
  padding: 28px;
  background: var(--surface);
  border: 1px dashed #bec8d3;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.footer-inner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner a {
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 920px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 15px;
  }

  .search-box {
    min-height: 58px;
    padding: 0 14px;
  }

  #searchInput {
    height: 58px;
    font-size: 15px;
  }

  .products-heading,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

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