.pjm-shortcode-breadcrumbs {
  margin: 0 0 35px;
}

.pjm-shortcode-breadcrumbs .woocommerce-breadcrumb {
  font-weight: 700;
}

.pjm-shortcode-breadcrumbs .woocommerce-breadcrumb a,
.pjm-shortcode-breadcrumbs .woocommerce-breadcrumb .pjm-breadcrumb-sep {
  font-weight: 400;
}

.pjm-brand-archive-page {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pjm-products-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 0;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e7edf4;
}

.pjm-products-toolbar__spacer {
  display: none;
}

.pjm-products-toolbar__sort {
  min-width: 0;
}

.pjm-products-sort {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 6px;
  margin: 0;
  width: 100% !important;
  max-width: 100% !important;
}

.pjm-products-sort__label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: #64748b;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.pjm-products-sort__field {
  position: relative;
  width: 100%;
}

.pjm-products-sort__field::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #334155;
  border-bottom: 1.5px solid #334155;
  transform: translateY(-58%) rotate(45deg);
  pointer-events: none;
  opacity: 0.92;
}

.pjm-products-sort__select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 0;
  width: 100% !important;
  max-width: 100%;
  flex: 1 1 auto;
  height: 52px;
  padding: 0 48px 0 16px;
  border: 1px solid #d5dbe3;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pjm-products-sort__select::-ms-expand {
  display: none;
}

.pjm-products-sort__select:hover {
  border-color: #bec8d4;
  background-color: #fefefe;
}

.pjm-products-sort__select:focus {
  outline: none;
}

.pjm-products-sort__select:focus-visible {
  border-color: #1f2937;
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.14);
}

.pjm-products-sort__button {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c4cdd8;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pjm-products-sort__button:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.pjm-products-results.is-loading {
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 640px) {
  .pjm-brand-archive-page {
    padding: 10px;
  }

  .pjm-products-toolbar {
    margin: 0 0 14px;
    padding-bottom: 12px;
  }

  .pjm-products-sort {
    gap: 5px;
  }
}

@media (min-width: 768px) {
  .pjm-products-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(176px, 188px);
    column-gap: 20px;
    margin: 0 0 18px;
    padding-bottom: 14px;
  }

  .pjm-products-toolbar__spacer {
    display: block;
    min-height: 1px;
  }

  .pjm-products-sort {
    align-items: flex-end !important;
    gap: 7px;
  }

  .pjm-products-sort__field {
    max-width: 188px;
  }

  .pjm-products-sort__select {
    height: 50px;
    padding-left: 15px;
    padding-right: 46px;
  }
}

.pjm-product-grid {
  --pjm-card-radius: 10px;
  --pjm-grid-cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--pjm-grid-cols), minmax(0, 1fr));
  gap: 14px 12px;
  margin: 0;
  padding: 0;
}

.pjm-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--pjm-card-radius);
  overflow: visible;
  min-height: 100%;
  padding: 4px 4px 0;
  box-shadow: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.pjm-product-card--mobile-only-extra {
  display: none;
}

.pjm-product-card:hover,
.pjm-product-card:focus-within {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
  overflow: visible;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.pjm-product-card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pjm-product-card__link-overlay:focus-visible {
  outline: 2px solid #1f2937;
  outline-offset: -2px;
}

.pjm-product-card__image-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 0;
  border-radius: var(--pjm-card-radius) var(--pjm-card-radius) 0 0;
  overflow: hidden;
  width: 100%;
}

.pjm-product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.pjm-product-card__image-wrap > img,
.pjm-product-card__image-wrap > picture > img,
.pjm-product-card__image-wrap img.attachment-woocommerce_thumbnail,
.pjm-product-card__image-wrap img.size-woocommerce_thumbnail,
.pjm-product-card__image-wrap img.wp-post-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  border-top-left-radius: var(--pjm-card-radius) !important;
  border-top-right-radius: var(--pjm-card-radius) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.pjm-product-card__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: var(--pjm-card-radius) var(--pjm-card-radius) 0 0 !important;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.24s ease;
}

.pjm-product-grid .pjm-product-card .pjm-product-card__image-wrap .pjm-product-card__image,
.pjm-product-carousel .pjm-product-card .pjm-product-card__image-wrap .pjm-product-card__image {
  border-top-left-radius: var(--pjm-card-radius) !important;
  border-top-right-radius: var(--pjm-card-radius) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  clip-path: inset(0 round var(--pjm-card-radius) var(--pjm-card-radius) 0 0);
}

.pjm-product-card:hover .pjm-product-card__image,
.pjm-product-card:focus-within .pjm-product-card__image {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0 !important;
  clip-path: inset(0 round 0);
  object-fit: cover;
  transform: scale(1.03);
}

.pjm-product-card:hover .pjm-product-card__image-wrap > img,
.pjm-product-card:hover .pjm-product-card__image-wrap > picture > img,
.pjm-product-card:hover .pjm-product-card__image-wrap img.attachment-woocommerce_thumbnail,
.pjm-product-card:hover .pjm-product-card__image-wrap img.size-woocommerce_thumbnail,
.pjm-product-card:hover .pjm-product-card__image-wrap img.wp-post-image,
.pjm-product-card:focus-within .pjm-product-card__image-wrap > img,
.pjm-product-card:focus-within .pjm-product-card__image-wrap > picture > img,
.pjm-product-card:focus-within .pjm-product-card__image-wrap img.attachment-woocommerce_thumbnail,
.pjm-product-card:focus-within .pjm-product-card__image-wrap img.size-woocommerce_thumbnail,
.pjm-product-card:focus-within .pjm-product-card__image-wrap img.wp-post-image {
  border-radius: 0 !important;
}

.pjm-product-card:hover .pjm-product-card__image-wrap,
.pjm-product-card:focus-within .pjm-product-card__image-wrap {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--pjm-card-radius) var(--pjm-card-radius) 0 0;
  border-bottom: 0;
}

.pjm-product-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 2px 4px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.pjm-product-card:hover .pjm-product-card__body,
.pjm-product-card:focus-within .pjm-product-card__body {
  gap: 8px;
}

.pjm-product-card__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #4b5563;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 4px 8px;
}

.pjm-product-card__badge--floating {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.pjm-product-card__badge--stock-alert {
  border-color: rgba(180, 83, 9, 0.35);
  color: #92400e;
  background: rgba(180, 83, 9, 0.09);
}

.pjm-product-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.01em;
  min-height: 2.76em;
  max-width: 36ch;
}

.pjm-product-grid .pjm-product-card .pjm-product-card__title-link,
.pjm-product-grid .pjm-product-card .pjm-product-card__title-link:link,
.pjm-product-grid .pjm-product-card .pjm-product-card__title-link:visited,
.pjm-product-carousel .pjm-product-card .pjm-product-card__title-link,
.pjm-product-carousel .pjm-product-card .pjm-product-card__title-link:link,
.pjm-product-carousel .pjm-product-card .pjm-product-card__title-link:visited {
  position: relative;
  z-index: 3;
  color: #111827 !important;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.pjm-product-card__title-link:hover,
.pjm-product-card__title-link:focus {
  color: #0f172a !important;
}

.pjm-product-card__title-link:visited:hover,
.pjm-product-card__title-link:visited:focus {
  color: #0f172a !important;
}

.pjm-product-card:hover .pjm-product-card__title-link,
.pjm-product-card:focus-within .pjm-product-card__title-link {
  color: #0f172a !important;
}

.pjm-product-card__specs {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
  min-height: 1.4em;
  max-width: 34ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

.pjm-product-card__price {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  color: #111827;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  min-width: 0;
  transform: translateX(0);
  transition: transform 0.22s ease;
}

.pjm-product-card__purchase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  width: min(100%, 210px);
  max-width: none;
  margin-top: 2px;
  padding-top: 0;
  padding-bottom: 16px;
  margin-bottom: 0;
  overflow: visible;
}

.pjm-product-card__purchase::before {
  content: "";
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
}

.pjm-product-card__price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  color: inherit;
  margin: 0;
  line-height: 1.1;
}

.pjm-product-card__price-main del {
  font-size: 13px;
  opacity: 0.6;
}

.pjm-product-card__price-main ins {
  text-decoration: none;
}

.pjm-product-card__price-ex-vat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  font-size: 0.62em;
  font-weight: 500;
  line-height: 1.2;
  color: #4b5563;
  white-space: nowrap;
}

.pjm-product-card__price-ex-vat-label,
.pjm-product-card__price-ex-vat-value {
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .pjm-product-card:hover .pjm-product-card__price,
  .pjm-product-card:focus-within .pjm-product-card__price {
    color: #0f172a;
    transform: translateX(-10px);
  }
}

.pjm-product-card__actions {
  position: static;
  z-index: 3;
  width: 40px;
  flex: 0 0 40px;
  max-width: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  pointer-events: none;
  overflow: visible;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.pjm-product-card:hover .pjm-product-card__actions,
.pjm-product-card:focus-within .pjm-product-card__actions {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  overflow: visible;
}

.pjm-product-card__icon-btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: var(--pjm-card-radius);
  color: #69727D !important;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pjm-product-card:hover .pjm-product-card__icon-btn,
.pjm-product-card:focus-within .pjm-product-card__icon-btn {
  width: 40px;
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--pjm-card-radius);
  color: #4b5563 !important;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pjm-product-card__icon-btn:link,
.pjm-product-card__icon-btn:visited {
  color: #69727D !important;
}

.pjm-product-card:hover .pjm-product-card__icon-btn:link,
.pjm-product-card:hover .pjm-product-card__icon-btn:visited,
.pjm-product-card:focus-within .pjm-product-card__icon-btn:link,
.pjm-product-card:focus-within .pjm-product-card__icon-btn:visited {
  color: #4b5563 !important;
}

.pjm-product-card__icon {
  display: block;
  width: 19px;
  height: 19px;
  color: currentColor;
  user-select: none;
}

.pjm-product-card__icon--svg {
  overflow: visible;
  flex: 0 0 auto;
}

.pjm-product-card__icon-btn:hover,
.pjm-product-card__icon-btn:focus {
  border-color: rgba(17, 24, 39, 0.34);
  color: #69727D !important;
  background: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.pjm-product-card:hover .pjm-product-card__icon-btn:hover,
.pjm-product-card:hover .pjm-product-card__icon-btn:focus,
.pjm-product-card:focus-within .pjm-product-card__icon-btn:hover,
.pjm-product-card:focus-within .pjm-product-card__icon-btn:focus {
  border-color: rgba(15, 23, 42, 0.35);
  color: #0f172a !important;
  background: #f9fafb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.pjm-product-card__icon-btn:focus-visible {
  outline: 2px solid #1f2937;
  outline-offset: 2px;
}

.pjm-product-card__icon-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.pjm-archive-toast-root {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.pjm-archive-toast {
  min-width: 240px;
  max-width: min(92vw, 380px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pjm-archive-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pjm-archive-toast.is-success {
  background: rgba(15, 23, 42, 0.94);
}

.pjm-archive-toast.is-error {
  background: rgba(127, 29, 29, 0.95);
}

.pjm-term-grid,
.pjm-vcat-grid,
.pjm-vehicle-grid,
.pjm-part-grid,
.pjm-part-children-grid {
  --pjm-grid-cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--pjm-grid-cols), minmax(0, 1fr));
}

.pjm-term-grid {
  gap: 16px;
}

.pjm-vcat-grid {
  --pjm-vcat-cols: 3;
  grid-template-columns: repeat(var(--pjm-grid-cols, var(--pjm-vcat-cols)), minmax(0, 1fr));
  gap: 16px;
}

.pjm-vehicle-grid,
.pjm-part-grid {
  gap: 12px;
}

.pjm-part-children-grid {
  gap: 16px;
}

.pjm-part-grid-wrap,
.pjm-vehicle-grid-wrap {
  display: flow-root;
  width: 100%;
  clear: both;
}

.pjm-vehicle-facets-wrap,
.pjm-vehicle-children-wrap,
.pjm-part-children-wrap {
  display: flow-root;
  width: 100%;
  clear: both;
}

.pjm-part-grid-wrap .pjm-part-grid,
.pjm-vehicle-grid-wrap .pjm-vehicle-grid {
  float: none !important;
  width: 100%;
}

.pjm-vehicle-facets-wrap .pjm-term-grid,
.pjm-vehicle-children-wrap .pjm-vcat-grid,
.pjm-part-children-wrap .pjm-part-children-grid {
  float: none !important;
  width: 100%;
}

.pjm-part-grid-wrap .pjm-part-grid {
  display: grid !important;
  position: relative !important;
  inset: auto !important;
  max-width: 100%;
  min-width: 0;
}

.pjm-part-grid-wrap .pjm-part-grid > .pjm-part-card {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  height: auto;
}

/* Keep part cards in normal document flow so mobile menu content cannot overlap them. */
.pjm-part-grid-wrap .pjm-part-card a {
  position: relative !important;
  inset: auto !important;
  display: block;
}

.pjm-part-grid-wrap .pjm-part-card img {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Keep overlay cards in normal flow for mobile/off-canvas menu contexts. */
.pjm-vehicle-facets-wrap .pjm-term-card--overlay a,
.pjm-vehicle-children-wrap .pjm-vcat-card a,
.pjm-part-children-wrap .pjm-part-children-card a {
  position: relative !important;
  inset: auto !important;
  display: block;
}

.pjm-vehicle-facets-wrap .pjm-term-card--overlay img,
.pjm-vehicle-children-wrap .pjm-vcat-card img,
.pjm-part-children-wrap .pjm-part-children-card img {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@supports not (aspect-ratio: 1 / 1) {
  .pjm-part-grid-wrap .pjm-part-card {
    overflow: hidden;
  }

  .pjm-part-grid-wrap .pjm-part-card::before {
    content: "";
    display: block;
    padding-top: 100%;
  }

  .pjm-part-grid-wrap .pjm-part-card > a {
    position: absolute !important;
    inset: 0 !important;
  }

  .pjm-part-grid-wrap .pjm-part-card > a > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100%;
    height: 100%;
  }

  .pjm-vehicle-facets-wrap .pjm-term-card--overlay,
  .pjm-vehicle-children-wrap .pjm-vcat-card,
  .pjm-part-children-wrap .pjm-part-children-card {
    overflow: hidden;
  }

  .pjm-vehicle-facets-wrap .pjm-term-card--overlay::before,
  .pjm-vehicle-children-wrap .pjm-vcat-card::before,
  .pjm-part-children-wrap .pjm-part-children-card::before {
    content: "";
    display: block;
    padding-top: 100%;
  }

  .pjm-vehicle-facets-wrap .pjm-term-card--overlay > a,
  .pjm-vehicle-children-wrap .pjm-vcat-card > a,
  .pjm-part-children-wrap .pjm-part-children-card > a {
    position: absolute !important;
    inset: 0 !important;
  }

  .pjm-vehicle-facets-wrap .pjm-term-card--overlay > a > img,
  .pjm-vehicle-children-wrap .pjm-vcat-card > a > img,
  .pjm-part-children-wrap .pjm-part-children-card > a > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100%;
    height: 100%;
  }
}

.pjm-products-pagination-wrap {
  margin-top: 34px;
}

.pjm-pagination {
  --pjm-pagination-bg: #ffffff;
  --pjm-pagination-border: rgba(15, 23, 42, 0.14);
  --pjm-pagination-border-strong: rgba(15, 23, 42, 0.24);
  --pjm-pagination-text: #0f172a;
  --pjm-pagination-muted: #64748b;
  --pjm-pagination-current-bg: #0f172a;
  --pjm-pagination-current-text: #ffffff;
  --pjm-pagination-focus: #1f2937;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pjm-pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pjm-pagination__list-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pjm-pagination__item {
  min-width: 44px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--pjm-pagination-border);
  background: var(--pjm-pagination-bg);
  color: var(--pjm-pagination-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pjm-pagination__item-label {
  line-height: 1;
}

.pjm-pagination__item:hover,
.pjm-pagination__item:focus {
  border-color: var(--pjm-pagination-border-strong);
  color: var(--pjm-pagination-text);
  background: #f8fafc;
  text-decoration: none;
  transform: translateY(-1px);
}

.pjm-pagination__item:focus-visible {
  outline: 2px solid var(--pjm-pagination-focus);
  outline-offset: 2px;
}

.pjm-pagination__item--current,
.pjm-pagination__item--current:hover,
.pjm-pagination__item--current:focus {
  border-color: var(--pjm-pagination-current-bg);
  background: var(--pjm-pagination-current-bg);
  color: var(--pjm-pagination-current-text);
  transform: none;
}

.pjm-pagination__item--dots,
.pjm-pagination__item--dots:hover,
.pjm-pagination__item--dots:focus {
  min-width: 44px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--pjm-pagination-muted);
  transform: none;
  cursor: default;
}

.pjm-pagination__item--prev,
.pjm-pagination__item--next {
  padding-inline: 16px;
}

.pjm-term-card--overlay,
.pjm-vcat-card,
.pjm-vehicle-card,
.pjm-part-card,
.pjm-part-children-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.pjm-term-card--overlay,
.pjm-vcat-card,
.pjm-part-card,
.pjm-part-children-card {
  aspect-ratio: 1 / 1;
}

.pjm-vehicle-card {
  border: none;
}

.pjm-term-card--overlay a,
.pjm-vcat-card a,
.pjm-part-card a,
.pjm-part-children-card a {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
}

.pjm-vehicle-card a {
  display: block;
  position: relative;
  text-decoration: none;
}

.pjm-term-card--overlay img,
.pjm-vcat-card img,
.pjm-part-card img,
.pjm-part-children-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pjm-vehicle-card img {
  width: 100%;
  height: var(--pjm-vehicle-height, 160px);
  object-fit: cover;
  display: block;
}

.pjm-term-name,
.pjm-vcat-name,
.pjm-vehicle-name,
.pjm-part-name,
.pjm-part-children-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.pjm-term-grid--basic .pjm-term-card--basic {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 16px;
}

.pjm-term-grid--basic .pjm-term-card--basic a {
  display: block;
  position: static;
  text-decoration: none;
}

.pjm-term-grid--basic .pjm-term-card--basic img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 8px;
}

.pjm-term-grid--basic .pjm-term-name {
  position: static;
  padding: 0;
  color: inherit;
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
  background: transparent;
}

.pjm-term-grid--empty {
  margin: 0;
}

.pjm-az {
  --pjm-az-cols: 4;
  --pjm-az-mobile-cols: 1;
  --pjm-az-text-color: #fff;
  column-count: var(--pjm-az-cols);
  column-gap: 28px;
}

.pjm-az-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 16px;
  padding: 0 0 2px;
}

.pjm-az-letter {
  color: var(--pjm-az-text-color);
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 8px;
  padding-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  width: 50%;
  border-bottom: 1px solid currentColor;
}

.pjm-az-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pjm-az-list li {
  margin: 0 0 6px;
  line-height: 1.2;
}

.pjm-az-list a {
  color: var(--pjm-az-text-color);
  text-decoration: none;
  transition: color 0.18s ease;
  font-weight: 500;
}

.pjm-az-list a:hover,
.pjm-az-list a:focus {
  color: var(--pjm-az-text-color);
  opacity: 0.82;
}

@media (max-width: 1279px) {
  .pjm-product-grid {
    gap: 12px 10px;
  }

  .pjm-products-pagination-wrap {
    margin-top: 30px;
  }

  .pjm-pagination__list {
    gap: 8px;
  }
}

@media (max-width: 1023px) {
  .pjm-product-grid {
    gap: 10px;
  }

  .pjm-term-grid,
  .pjm-vcat-grid,
  .pjm-vehicle-grid,
  .pjm-part-grid,
  .pjm-part-children-grid {
    grid-template-columns: repeat(var(--pjm-mobile-grid-cols, min(2, var(--pjm-grid-cols))), minmax(0, 1fr));
  }

  .pjm-az {
    column-count: 1;
    column-gap: 0;
    display: grid;
    grid-template-columns: repeat(var(--pjm-az-mobile-cols, 2), minmax(0, 1fr));
    gap: 16px 16px;
  }

  .pjm-az-group {
    margin: 0;
    padding: 0;
  }

  .pjm-az-letter {
    width: 100%;
  }

  .pjm-products-pagination-wrap {
    margin-top: 26px;
  }

  .pjm-pagination__item {
    min-width: 42px;
    min-height: 42px;
    padding: 0 13px;
  }

  .pjm-pagination__item--prev,
  .pjm-pagination__item--next {
    padding-inline: 14px;
  }
}

@media (max-width: 640px) {
  .pjm-product-card--mobile-only-extra {
    display: flex;
  }

  .pjm-product-grid,
  .pjm-term-grid,
  .pjm-vcat-grid,
  .pjm-vehicle-grid,
  .pjm-part-grid,
  .pjm-part-children-grid {
    grid-template-columns: repeat(var(--pjm-mobile-grid-cols, 1), minmax(0, 1fr));
  }

  .pjm-product-card__title {
    font-size: 15px;
  }

  .pjm-product-card__price {
    font-size: 18px;
  }

  .pjm-product-card__body {
    padding: 10px 4px 4px;
    gap: 10px;
    height: auto;
    min-height: 0;
  }

  .pjm-product-card__image-wrap {
    padding: 0;
    aspect-ratio: 4 / 3;
  }

  .pjm-product-card__actions {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    width: 40px;
    min-height: 40px;
    margin-top: 2px;
    overflow: visible;
  }

  .pjm-product-card:hover .pjm-product-card__actions,
  .pjm-product-card:focus-within .pjm-product-card__actions {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    margin-top: 2px;
  }

  .pjm-product-card__purchase {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    gap: 10px;
    padding-bottom: 22px;
  }

  .pjm-product-card__purchase::before {
    content: none;
  }

  .pjm-product-card__price {
    line-height: 1.2;
  }

  .pjm-product-card__price,
  .pjm-product-card:hover .pjm-product-card__price,
  .pjm-product-card:focus-within .pjm-product-card__price {
    transform: none;
    transition: none;
  }

  .pjm-az {
    --pjm-az-cols: var(--pjm-az-mobile-cols, 1);
    grid-template-columns: repeat(var(--pjm-az-mobile-cols, 1), minmax(0, 1fr));
  }

  .pjm-products-pagination-wrap {
    margin-top: 22px;
  }

  .pjm-pagination__list {
    gap: 6px;
  }

  .pjm-pagination__item {
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .pjm-pagination__item--prev,
  .pjm-pagination__item--next {
    min-width: 46px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pjm-product-card,
  .pjm-product-card__image,
  .pjm-product-card__actions,
  .pjm-product-card__icon-btn,
  .pjm-pagination__item {
    transition: none;
  }
}

.pjm-product-grid--cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.pjm-product-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pjm-product-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pjm-product-grid--cols-4,
.pjm-product-grid--cols-5,
.pjm-product-grid--cols-6 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 1680px) {
  .pjm-product-grid--cols-5,
  .pjm-product-grid--cols-6 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

  .pjm-product-grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pjm-product-grid--cols-3,
  .pjm-product-grid--cols-4,
  .pjm-product-grid--cols-5,
  .pjm-product-grid--cols-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .pjm-product-grid--cols-2,
  .pjm-product-grid--cols-3,
  .pjm-product-grid--cols-4,
  .pjm-product-grid--cols-5,
  .pjm-product-grid--cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
.pjm-product-grid--cols-1,
.pjm-product-grid--cols-2,
.pjm-product-grid--cols-3,
.pjm-product-grid--cols-4,
.pjm-product-grid--cols-5,
.pjm-product-grid--cols-6 {
    grid-template-columns: repeat(var(--pjm-mobile-product-columns, 1), minmax(0, 1fr)) !important;
  }
}

.pjm-product-carousel {
  --pjm-carousel-gap: 12px;
  --pjm-carousel-visible: 4;
  --pjm-carousel-visible-effective: var(--pjm-carousel-visible);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.pjm-product-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pjm-product-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.pjm-product-carousel__track {
  display: grid;
  grid-auto-flow: column;
  gap: var(--pjm-carousel-gap);
  grid-auto-columns: calc((100% - (var(--pjm-carousel-gap) * (var(--pjm-carousel-visible-effective) - 1))) / var(--pjm-carousel-visible-effective));
}

.pjm-product-carousel__slide {
  min-width: 0;
  scroll-snap-align: start;
}

.pjm-product-carousel__slide .pjm-product-card {
  height: 100%;
}

.pjm-product-carousel__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pjm-product-carousel__nav:hover,
.pjm-product-carousel__nav:focus-visible {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.32);
}

.pjm-product-carousel__nav[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 1279px) {
  .pjm-product-carousel {
    --pjm-carousel-visible-effective: min(var(--pjm-carousel-visible), 3);
  }
}

@media (max-width: 1023px) {
  .pjm-product-carousel {
    --pjm-carousel-visible-effective: min(var(--pjm-carousel-visible), 2);
  }
}

@media (max-width: 640px) {
  .pjm-product-carousel {
    --pjm-carousel-visible-effective: 1;
    gap: 8px;
  }

  .pjm-product-carousel__nav {
    width: 32px;
    height: 32px;
  }
}
