.rnb-product-slider {
  width: 100%;
}

.rnb-product-slider__header {
  margin-bottom: 24px;
}

.rnb-product-slider__title {
  margin: 0;
  font-size: clamp(2rem, 1.8rem + 0.8vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rnb-product-slider__viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
}

.rnb-product-slider__viewport.is-dragging {
  cursor: grabbing;
}

.rnb-product-slider__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
  transition: transform 320ms ease;
  will-change: transform;
  user-select: none;
}

.rnb-product-card {
  position: relative;
  flex: 0 0 calc(33.333% - 13.333px);
  min-width: calc(33.333% - 13.333px);
  max-width: calc(33.333% - 13.333px);
}

.rnb-product-card__image-link {
  position: relative;
  display: block;
  background: #f5f5f5;
  text-decoration: none;
  overflow: hidden;
}

.rnb-product-card__image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
}

.rnb-product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition:
    opacity 300ms ease,
    transform 450ms ease;
}

.rnb-product-card__image--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.rnb-product-card.has-hover-image:hover .rnb-product-card__image--hover,
.rnb-product-card.has-hover-image:focus-within .rnb-product-card__image--hover {
  opacity: 1;
}

.rnb-product-card.has-hover-image:hover .rnb-product-card__image--main,
.rnb-product-card.has-hover-image:focus-within .rnb-product-card__image--main {
  opacity: 0;
}

.rnb-product-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #111;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* YITH Wishlist minimal */

.rnb-product-card__wishlist {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.rnb-product-card__wishlist .yith-wcwl-add-to-wishlist {
  margin: 0;
}

.rnb-product-card__wishlist .yith-wcwl-add-button,
.rnb-product-card__wishlist .yith-wcwl-wishlistaddedbrowse,
.rnb-product-card__wishlist .yith-wcwl-wishlistexistsbrowse {
  margin: 0;
}

.rnb-product-card__wishlist a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rnb-product-card__variations {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 12px;
  min-height: 0;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: auto;
}

.rnb-product-card__variation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0;
  background: #f5f5f5;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.rnb-product-card__variation-pill:hover,
.rnb-product-card__variation-pill.is-active {
  border-color: rgba(17, 17, 17, 0.45);
}

.rnb-product-card__variation-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rnb-product-card__content {
  padding-top: 16px;
}

.rnb-product-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rnb-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.rnb-product-card__title a:hover {
  opacity: 0.72;
}

.rnb-product-card__excerpt {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.72);
  overflow: hidden;
  display: block;
}

/* Sterne immer gleiche Höhe */
.rnb-product-card__rating {
  margin-bottom: 10px;
  min-height: 18px;
  display: flex;
  align-items: center;
}

.rnb-product-card__rating .star-rating {
  float: none;
  margin: 0;
  font-size: 13px;
}

.rnb-product-card__rating .star-rating:before {
  color: rgba(17, 17, 17, 0.25);
}

.rnb-product-card__rating .star-rating span {
  color: #111;
}

.rnb-product-card__price {
  font-size: 18px;
  line-height: 1.3;
  color: #111;
  font-weight: 600;
}

.rnb-product-card__price,
.rnb-product-card__price span,
.rnb-product-card__price bdi,
.rnb-product-card__price .amount,
.rnb-product-card__price .woocommerce-Price-amount,
.rnb-product-card__price .woocommerce-Price-currencySymbol {
  color: #111;
  letter-spacing: inherit;
  font-weight: 600;
  font-size: 18px;
}

.rnb-product-card__price small {
  font-size: 12px;
  opacity: 0.4;
}

.rnb-product-card__price del {
  font-size: 18px;
  opacity: 0.5;
  text-decoration: line-through;
  color: #ec003f;
}

.rnb-product-card__price del,
.rnb-product-card__price del bdi,
.rnb-product-card__price del .amount,
.rnb-product-card__price del .woocommerce-Price-amount,
.rnb-product-card__price del .woocommerce-Price-currencySymbol {
  color: #ec003f;
  font-size: 18px;
}

.rnb-product-card__price del span {
  font-size: 12px;
  color: #ec003f;
}

.rnb-product-card__price ins {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.rnb-product-card__price ins,
.rnb-product-card__price ins span,
.rnb-product-card__price ins bdi,
.rnb-product-card__price ins .amount,
.rnb-product-card__price ins .woocommerce-Price-amount,
.rnb-product-card__price ins .woocommerce-Price-currencySymbol {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.rnb-product-card__actions {
  margin-top: 14px;
}

.rnb-product-card__add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #111;
  background: #111;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rnb-product-card__add-to-cart:hover {
  opacity: 0.88;
}

.rnb-product-slider__footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.rnb-product-slider__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.rnb-product-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  padding: 0;
}

.rnb-product-slider__arrow:hover {
  opacity: 0.65;
}

.rnb-product-slider__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.rnb-product-slider__arrow-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.rnb-product-slider__progress {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  max-width: 100%;
  height: 2px;
  background: rgba(17, 17, 17, 0.18);
  overflow: hidden;
}

.rnb-product-slider__progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: #111;
  transform-origin: left center;
  transition:
    width 320ms ease,
    transform 320ms ease;
}

@media (max-width: 1199px) {
  .rnb-product-card {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 767px) {
  .rnb-product-slider__track {
    gap: 16px;
  }

  .rnb-product-card {
    flex: 0 0 84%;
    min-width: 84%;
    max-width: 84%;
  }

  .rnb-product-card__title {
    font-size: 18px;
  }

  .rnb-product-card__excerpt {
    font-size: 14px;
  }

  .rnb-product-slider__footer {
    gap: 16px;
    margin-top: 20px;
  }

  .rnb-product-slider__progress {
    flex: 0 0 180px;
    width: 180px;
  }

  .rnb-product-card__variations {
    gap: 10px;
    margin: 14px 0 12px;
  }

  .rnb-product-card__variation-pill {
    width: 64px;
    height: 64px;
  }
}
