product-cards {
  width: 100%;
  margin: 0 auto;
  position: relative;
  max-width: 1100px;
  padding: 0;
  display: block;

  h2 {
    margin-bottom: 16px !important;
  }
}
.pdp-product-cards__items {
  position: relative;

  &:not(.swiper-initialized) {
    .swiper-wrapper {
      gap: 10px;
    }
  }

  & .pdp-product-cards__arrows {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;

    & .swiper-button-next:after,
    & .swiper-button-prev:after {
      font-size: 12px;
      font-weight: 700;
      color: black;
    }

    & .js-swiper-button-next,
    & .js-swiper-button-prev {
      width: 20px;
      height: 100%;
      border: 1px solid #dbdbdb;
      background-color: #fff9;
      border-radius: 6px;
      font-family: swiper-icons;
      text-transform: none !important;
      font-size: 12px;
      letter-spacing: 0;
      font-variant: initial;
      line-height: 1;
      position: relative;
      top: -30px !important;
      left: 0;
      text-rendering: auto;
      z-index: 1;

      &.loading {
        visibility: hidden;
        opacity: 0;
      }

      &.swiper-button-disabled {
        pointer-events: auto;
      }
    }
  }
}

.pdp-product-cards__item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: fit-content;
  cursor: pointer;

  &:has(input:checked) {
    .pdp-product-cards__item-image {
      outline: 2px solid var(--brand-black);
      outline-offset: -2px;
    }
    .pdp-product-cards__item-badge {
      left: 2px;
    }
  }
}
.pdp-product-cards__item-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--brand-gray-light);
  width: 200px;
  height: 160px;

  @media (max-width: 768px) {
    width: 180px;
    height: 125px;
  }

  @media (max-width: 500px) {
    width: 120px;
    height: 85px;
  }

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center !important;
  }
}
.pdp-product-cards__item-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 200px;

  @media (max-width: 768px) {
    width: 180px;
  }

  @media (max-width: 500px) {
    width: 120px;
  }

  h3 {
    padding: 0;
    margin: 0;
    line-height: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-black);

    @media (max-width: 768px) {
      font-size: 12px;
    }
  }

  p {
    font-size: 14px;
    line-height: 1.2;
    margin-top: 3px;
    color: var(--brand-gray-dark);
    letter-spacing: 0px;
    margin: 0;
    padding: 0;

    @media (max-width: 768px) {
      font-size: 12px;
    }
  }
}
.pdp-product-cards__item-badge {
  position: absolute;
  bottom: 12px;
  left: 0;
  background: linear-gradient(135deg, #dfdfdf 0%, #f3f3f3 100%);
  color: #000;
  font-size: 12px;
  padding: 2px 8px;
  font-weight: 600;
  border-radius: 0 5px 5px 0;
  z-index: 1;

  &.yellow {
    background: linear-gradient(135deg, #fac115 0%, #e9b519 100%);
  }
}
.pdp-product-cards__item-reviews-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;

  svg {
    height: 12px;
    fill: url(#star-gradient);
  }
}
.pdp-product-cards__item-reviews-value {
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}
.pdp-product-cards__item-reviews-count {
  font-size: 12px;
  color: var(--brand-gray-dark);
  opacity: 0.9;
}
