.vehicle-fitment-module,
#vehicle-fitment-page {
  --vf-text: #1f2933;
  --vf-muted: #6b7280;
  --vf-line: #e5e7eb;
  --vf-soft: #f6f8fb;
  --vf-soft-2: #eef2f6;
  --vf-accent: #d71920;
  --vf-accent-dark: #b81218;
  --vf-accent-shadow: rgba(215, 25, 32, 0.14);
  --vf-radius: 8px;
}

#vehicle-fitment-page > h1,
.vehicle-fitment-module > h1,
.vehicle-fitment__title {
  margin: 0 0 18px;
  color: var(--vf-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.vehicle-fitment {
  margin: 0 0 42px;
  color: var(--vf-text);
}

.vehicle-fitment__form,
.vehicle-fitment__summary,
.vehicle-fitment__results {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.vehicle-fitment__form {
  padding: 24px;
  border-top: 4px solid var(--vf-accent);
}

.vehicle-fitment__summary,
.vehicle-fitment__results {
  padding: 22px 24px;
  margin-top: 18px;
}

.vehicle-fitment__results {
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.vehicle-fitment h2,
.vehicle-fitment__section-title {
  margin: 0 0 18px;
  color: var(--vf-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.vehicle-fitment__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 14px;
}

.vehicle-fitment__grid label {
  display: block;
  min-width: 0;
  margin: 0;
}

.vehicle-fitment__grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--vf-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.vehicle-fitment__grid select {
  width: 100%;
  height: 44px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #d7dce2;
  border-radius: 6px;
  background-color: #fff;
  color: var(--vf-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.vehicle-fitment__grid select:focus {
  border-color: var(--vf-accent);
  box-shadow: 0 0 0 3px var(--vf-accent-shadow);
}

.vehicle-fitment__grid select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
}

.vehicle-fitment__summary {
  background: var(--vf-soft);
}

.vehicle-fitment__summary h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.vehicle-fitment__summary-text {
  color: var(--vf-text);
  font-size: 15px;
  font-weight: 600;
}

.vehicle-fitment__result-list {
  display: grid;
  gap: 18px;
}

.vehicle-fitment__item {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(340px, 1.22fr);
  gap: 24px;
  min-height: 420px;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  padding: 24px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.vehicle-fitment__params {
  align-self: stretch;
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-radius);
  background: var(--vf-soft);
}

.vehicle-fitment__params > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--vf-line);
  font-size: 15px;
  line-height: 1.35;
}

.vehicle-fitment__params > div:last-child {
  border-bottom: 0;
}

.vehicle-fitment__params strong {
  color: var(--vf-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.vehicle-fitment__params span {
  min-width: 0;
  color: var(--vf-text);
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.vehicle-fitment__product {
  min-width: 0;
}

.vehicle-fitment__product-card {
  display: flex;
  min-height: 372px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18px;
  border: 1px solid var(--vf-soft-2);
  border-radius: var(--vf-radius);
  background: #fff;
  text-align: center;
}

.vehicle-fitment__product-media {
  display: flex;
  width: 100%;
  min-height: 205px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 6px;
  background: #fff;
}

.vehicle-fitment__product-media img {
  max-width: 300px;
  max-height: 205px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.vehicle-fitment__product-title {
  max-width: 460px;
  min-height: 46px;
  margin: 0 auto 16px;
  color: var(--vf-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.vehicle-fitment__product-footer {
  width: 100%;
  margin-top: auto;
}

.vehicle-fitment__price {
  min-height: 30px;
  margin-bottom: 16px;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.vehicle-fitment__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vehicle-fitment__actions .btn {
  min-width: 126px;
  min-height: 40px;
  border-radius: 6px;
  font-weight: 700;
}

.vehicle-fitment__actions .btn-primary {
  border-color: var(--vf-accent);
  background: var(--vf-accent);
}

.vehicle-fitment__actions .btn-primary:hover,
.vehicle-fitment__actions .btn-primary:focus {
  border-color: var(--vf-accent-dark);
  background: var(--vf-accent-dark);
}

.vehicle-fitment__actions .btn-default {
  border-color: #d1d5db;
  background: #fff;
  color: var(--vf-text);
}

.vehicle-fitment__missing {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: var(--vf-radius);
  background: var(--vf-soft);
  color: var(--vf-muted);
  padding: 18px;
  text-align: center;
}

.vehicle-fitment-seo__description {
  max-width: 860px;
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.vehicle-fitment-seo__generation {
  margin: 0 0 24px;
  color: #374151;
}

.vehicle-fitment-seo__text {
  max-width: 980px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--vf-accent, #d71920);
  background: #f8fafc;
  color: #4b5563;
  line-height: 1.6;
}

.vehicle-fitment-seo__text p {
  margin: 0 0 8px;
}

.vehicle-fitment-seo__text p:last-child {
  margin-bottom: 0;
}

.vehicle-fitment-seo__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.vehicle-fitment-seo__product {
  display: flex;
  min-width: 0;
}

.vehicle-fitment-seo__card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 490px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.vehicle-fitment-seo__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.vehicle-fitment-seo__badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--vf-accent, #d71920);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.vehicle-fitment-seo__image {
  display: flex;
  height: 220px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding-top: 20px;
}

.vehicle-fitment-seo__image a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.vehicle-fitment-seo__image img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.vehicle-fitment-seo__name {
  min-height: 68px;
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
}

.vehicle-fitment-seo__name a {
  color: #172033;
  font-weight: 700;
}

.vehicle-fitment-seo__specs {
  min-height: 84px;
  margin: 0;
  color: #4b5563;
  font-size: 13px;
}

.vehicle-fitment-seo__specs > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}

.vehicle-fitment-seo__specs dt,
.vehicle-fitment-seo__specs dd {
  margin: 0;
}

.vehicle-fitment-seo__specs dt {
  color: #6b7280;
  font-weight: 500;
}

.vehicle-fitment-seo__specs dd {
  color: #172033;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.vehicle-fitment-seo__footer {
  margin-top: auto;
  padding-top: 16px;
}

.vehicle-fitment-seo__price {
  min-height: 30px;
  margin-bottom: 14px;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.vehicle-fitment-seo__actions {
  display: flex;
  gap: 8px;
}

.vehicle-fitment-seo__actions .btn {
  flex: 1 1 0;
  min-height: 40px;
  border-radius: 5px;
  font-weight: 700;
}

@media (max-width: 1199px) {
  .vehicle-fitment-seo__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .vehicle-fitment__grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 991px) {
  .vehicle-fitment__grid,
  .vehicle-fitment__item {
    grid-template-columns: 1fr;
  }

  .vehicle-fitment__item {
    min-height: 0;
    padding: 18px;
  }

  .vehicle-fitment__product-card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  #vehicle-fitment-page > h1,
  .vehicle-fitment-module > h1,
  .vehicle-fitment__title {
    font-size: 24px;
  }

  .vehicle-fitment__form,
  .vehicle-fitment__summary,
  .vehicle-fitment__results {
    padding: 18px;
  }

  .vehicle-fitment__grid {
    grid-template-columns: 1fr;
  }

  .vehicle-fitment__params > div {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 0;
  }

  .vehicle-fitment__params span {
    text-align: left;
  }

  .vehicle-fitment__product-media {
    min-height: 170px;
  }

  .vehicle-fitment__product-media img {
    max-height: 170px;
  }

  .vehicle-fitment__actions .btn {
    width: 100%;
  }

  .vehicle-fitment-seo__products {
    grid-template-columns: 1fr;
  }

  .vehicle-fitment-seo__card {
    min-height: 0;
  }

  .vehicle-fitment-seo__image {
    height: 180px;
  }

  .vehicle-fitment-seo__image img {
    max-height: 165px;
  }

  .vehicle-fitment-seo__actions {
    flex-direction: column;
  }
}

.vehicle-fitment-seo__sizes,
.vehicle-fitment-seo__related-years,
.vehicle-fitment-seo__faq,
.vehicle-fitment-seo__related-models,
.vehicle-fitment-seo__popular-makes {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
}

.vehicle-fitment-seo__sizes h2,
.vehicle-fitment-seo__related-years h2,
.vehicle-fitment-seo__faq h2,
.vehicle-fitment-seo__related-models h2,
.vehicle-fitment-seo__popular-makes h2 {
  margin-top: 0;
  font-size: 22px;
}

.vehicle-fitment-seo__sizes ul {
  margin: 12px 0;
  padding-left: 20px;
}

.vehicle-fitment-seo__related-years ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.vehicle-fitment-seo__related-models ul,
.vehicle-fitment-seo__popular-makes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.vehicle-fitment-seo__related-models a,
.vehicle-fitment-seo__popular-makes a {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #d7dfe5;
  border-radius: 4px;
}

.vehicle-fitment-seo__faq-item {
  border-top: 1px solid #e5e5e5;
}

.vehicle-fitment-seo__faq-item:last-child {
  border-bottom: 1px solid #e5e5e5;
}

.vehicle-fitment-seo__faq-item summary {
  position: relative;
  padding: 13px 30px 13px 0;
  cursor: pointer;
  font-weight: 700;
}

.vehicle-fitment-seo__faq-item summary::after {
  position: absolute;
  right: 4px;
  content: '+';
  font-size: 20px;
  line-height: 20px;
}

.vehicle-fitment-seo__faq-item[open] summary::after {
  content: '-';
}

.vehicle-fitment-seo__faq-item > div {
  padding: 0 0 14px;
}

.vehicle-fitment-seo__related-years a,
.vehicle-fitment-seo__related-years .active {
  display: inline-block;
  min-width: 48px;
  padding: 7px 10px;
  border: 1px solid #d7dfe5;
  border-radius: 4px;
  text-align: center;
}

.vehicle-fitment-seo__related-years .active {
  border-color: var(--vehicle-fitment-accent, #d71920);
  background: var(--vehicle-fitment-accent, #d71920);
  color: #fff;
  font-weight: 700;
}
