/* Related products — port of section-related-products.css */

.related-products {
  display: block;
  margin-top: 3.6rem;
  margin-bottom: 3.6rem;
  padding-block: 0;
  background: transparent;
  border-top: 0;
  color: #1f221f;
}

.related-products .product-slider__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.4rem;
  margin-bottom: 2.6rem;
}

.related-products__head {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.related-products__kicker {
  display: block;
  margin-bottom: -0.8rem;
  color: #8a8f86;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.related-products__heading {
  max-width: 76rem;
  margin: 0;
  color: #1f221f;
  font-size: clamp(3.4rem, 7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.related-products__text {
  max-width: 62rem;
  margin: 0;
  color: #6e6b63;
  font-size: 1.7rem;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.related-products__configure-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  color: #0a7a4f;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.18s ease, transform 0.18s ease;
}

.related-products__configure-link::after {
  content: "→";
}

.related-products__configure-link:hover {
  color: #086a44;
  transform: translateX(2px);
}

.related-products .product-slider__controls {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.related-products .product-slider__btn {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  border: 0.1rem solid #e3ded3;
  background: rgba(255, 253, 249, 0.72);
  color: #1f221f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.related-products .product-slider__btn:hover:not(:disabled) {
  background: #26382b;
  color: #fff;
  border-color: #26382b;
}

.related-products .product-slider__btn:disabled,
.related-products .product-slider__btn.is-disabled {
  opacity: 0.45;
  color: #6e6b63;
  background: rgba(241, 238, 232, 0.9);
  border-color: #e3ded3;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.related-products .product-slider__viewport {
  margin: 0 -0.4rem;
  padding: 0.8rem 0.4rem 0.4rem;
}

.related-products .product-slider__track {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.6rem 0.4rem 3.2rem;
}

.related-products .product-slider__track::-webkit-scrollbar {
  display: none;
}

.related-products .product-slider__slide {
  flex: 0 0 min(32rem, calc(100vw - 6.4rem));
  scroll-snap-align: start;
  min-width: 0;
}

.related-products .product-card {
  background: #fffdf9;
  border: 0.1rem solid #e3ded3;
  border-radius: 3rem;
  overflow: hidden;
  box-shadow: 0 1.2rem 3.2rem rgba(38, 56, 43, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(#fff, #000);
}

.related-products .product-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 2.4rem 6rem rgba(38, 56, 43, 0.12);
}

.related-products .product-image {
  height: 26rem;
  position: relative;
  background: #fffbea;
  overflow: hidden;
  border-radius: 3rem 3rem 0 0;
}

.related-products .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-products .product-badge {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.2rem 0.7rem 0.9rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 0.1rem solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(1.4rem) saturate(1.1);
  -webkit-backdrop-filter: blur(1.4rem) saturate(1.1);
  box-shadow: 0 0.4rem 1.4rem rgba(35, 38, 34, 0.08);
}

.related-products .product-badge__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.related-products .product-badge--beliebt {
  background: linear-gradient(135deg, rgba(243, 230, 200, 0.82), rgba(226, 207, 160, 0.78));
  color: #5c4e2e;
  border-color: rgba(255, 255, 255, 0.4);
}

.related-products .product-badge--beliebt .product-badge__mark {
  background: rgba(255, 255, 255, 0.4);
  color: #7a6538;
}

.related-products .product-badge--premium {
  background: rgba(255, 253, 249, 0.72);
  color: #394237;
  border-color: rgba(57, 66, 55, 0.1);
}

.related-products .product-badge--premium .product-badge__mark {
  background: rgba(57, 66, 55, 0.12);
  color: #394237;
}

.related-products .product-badge--neu {
  background: linear-gradient(135deg, rgba(232, 240, 234, 0.82), rgba(212, 227, 216, 0.78));
  color: #2f4a38;
  border-color: rgba(255, 255, 255, 0.45);
}

.related-products .product-badge--neu .product-badge__mark {
  background: rgba(255, 255, 255, 0.45);
  color: #4a6b57;
}

.related-products .product-badge--bestseller,
.related-products .product-badge--empfohlen {
  background: rgba(57, 66, 55, 0.78);
  color: #fffdf9;
  border-color: rgba(255, 255, 255, 0.25);
}

.related-products .product-discount-badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 5.2rem;
  min-height: 5.2rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #c96a52, #a84838);
  color: #fffdf9;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: center;
  border: 0.2rem solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0.8rem 2.2rem rgba(168, 72, 56, 0.35);
}

.related-products .product-discount-badge__label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
}

.related-products .product-discount-badge__value {
  font-size: 1.3rem;
  font-weight: 800;
}

.related-products .product-card--on-sale {
  border-color: rgba(201, 106, 82, 0.22);
}

.related-products .product-info {
  padding: 2.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border-radius: 0 0 3rem 3rem;
}

.related-products .product-category {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.related-products .product-category a,
.related-products .product-category span {
  color: #8c7a55;
  text-decoration: none;
  transition: color 0.18s ease;
}

.related-products .product-category a:hover {
  color: #394237;
}

.related-products .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 6.2rem;
  font-size: clamp(1.8rem, 4.2vw, 2.4rem);
  letter-spacing: -0.05em;
  margin: 0.4rem 0 0;
  font-weight: 800;
  line-height: 1.2;
}

.related-products .product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.related-products .product-title a:hover {
  color: #394237;
}

.related-products .product-description {
  color: #6e6b63;
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2rem;
}

.related-products .product-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.related-products .product-meta span {
  background: #f1eee8;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #6e6b63;
}

.related-products .product-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.4rem;
  margin-top: auto;
  padding-top: 2rem;
  width: 100%;
}

.related-products .product-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  width: 100%;
}

.related-products .product-pricing__was-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.related-products .product-pricing__compare {
  font-size: 1.4rem;
  font-weight: 600;
  color: #8c7a55;
  text-decoration: line-through;
}

.related-products .product-pricing__save {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(201, 106, 82, 0.1);
  color: #8f3d30;
  font-size: 1rem;
  font-weight: 800;
}

.related-products .product-pricing__now-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.related-products .price-label {
  color: #6e6b63;
  font-size: 1.2rem;
  font-weight: 700;
}

.related-products .product-pricing__sale {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  letter-spacing: -0.06em;
  color: #1f221f;
  line-height: 1;
  font-weight: 800;
}

.related-products .product-card--on-sale .product-pricing__sale {
  color: #a84838;
}

.related-products .product-cart-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: #394237;
  color: #fff;
  padding: 1.3rem 1.8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 1.4rem 3rem rgba(57, 66, 55, 0.2);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.related-products .product-cart-btn:hover {
  filter: brightness(1.08);
}

@media (min-width: 760px) and (max-width: 1050px) {
  .related-products .product-slider__slide {
    flex: 0 0 calc((100% - 1.8rem) / 2);
  }
}

@media (min-width: 1051px) {
  .related-products .product-slider__slide {
    flex: 0 0 calc((100% - 3.6rem) / 3);
  }
}

@media (max-width: 759px) {
  .related-products .product-slider__head {
    flex-direction: column;
    align-items: stretch;
  }

  .related-products .product-slider__controls {
    justify-content: flex-end;
  }
}

@media screen and (max-width: 749px) {
  .related-products {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  .related-products__heading {
    font-size: clamp(2.8rem, 8vw, 3.6rem);
  }
}
