/* Vehicle model/category/product-list layout isolated from global styles.css. */
/* Vehicle subpage cards only. Do not use these rules for homepage brand tiles, EBC or PowerStop. */
main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-category-nav,
main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-generation-nav,
main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-list.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-generation-nav a {
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-generation-nav strong {
  font-size: 0.95rem;
  line-height: 1.22;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-generation-nav span {
  font-size: 0.76rem;
  line-height: 1.2;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-category-card {
  grid-template-columns: 1fr;
  align-content: start;
  min-width: 0;
  min-height: 190px;
  padding: 16px;
  gap: 12px;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-category-card .product-preview-thumb {
  height: 118px;
  min-height: 118px;
  aspect-ratio: auto;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-category-card .product-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-category-card strong,
main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-list strong {
  font-size: 1.32rem;
  line-height: 1.18;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-category-card em,
main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-list em,
main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-copy > span:not(.product-preview-price) {
  font-size: 0.94rem;
  line-height: 1.34;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-list.compact li {
  min-width: 0;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-link.has-thumb {
  grid-template-rows: 260px auto;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-thumb {
  height: 260px;
  min-height: 260px;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .category-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .category-path span,
main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .category-path a {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(10, 25, 41, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(10, 25, 41, 0.04);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal;
}

main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .category-path a:hover {
  border-color: rgba(177, 0, 13, 0.4);
  color: var(--brand-red);
}

@media (max-width: 1180px) {
  main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-category-nav,
  main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-generation-nav,
  main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-list.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-category-nav,
  main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-generation-nav,
  main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-category-nav,
  main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-generation-nav,
  main.jgc-page:not(.powerstop-page):not(.ebc-index-page):not(:has(.powerstop-finder-section)) .jgc-product-group .product-preview-list.compact {
    grid-template-columns: 1fr;
  }
}
