/* ==========================================================
   BT – Woo Single Product Recommendations
   Version: 1.0
   Stand: 2026-11-26

   Zweck:
   - Horizontale Produktempfehlungen auf Single-Seiten.
   - Vier Spalten Desktop, zwei Spalten Mobile.
   - Eigenständig gegenüber Archiv-Empfehlungen.

   Performance:
   - CSS-only.
   - Keine externen Ressourcen.
   - Content-Visibility für Below-the-Fold-Inhalte.
   ========================================================== */


/* ==========================================================
   START – CONTAINER
   ========================================================== */

.bt-single-recommendations {
  position: relative;
  box-sizing: border-box;

  width: min(100% - 40px, 1425px);

  margin: 110px auto 45px;
  padding: 24px;

  border: 1px solid var(--bt-border-06);
  border-radius: 10px;

  background: #fff;

  content-visibility: auto;
  contain-intrinsic-size: auto 550px;
}

/* END – CONTAINER */



/* ==========================================================
   START – TYPOGRAFIE
   ========================================================== */

.bt-single-recommendations__title {
  margin: 0 0 22px;

  color: #e42c8c;

  font-size: clamp(2.2rem, 4vw, 4.6rem);
  font-weight: 600;
  line-height: 1.3;
}

.bt-single-recommendations__subtitle {
  margin: 0 0 24px;
  padding-bottom: 18px;

  border-bottom: 1px solid var(--bt-border-06);

  color: #666;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

/* END – TYPOGRAFIE */



/* ==========================================================
   START – PRODUKTGRID
   ========================================================== */

.bt-single-recommendations__list {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 70px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.bt-single-recommendations__item {
  position: relative;

  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 0;
}


/* Dezente vertikale Trenner */

@media (min-width: 1121px) {

  .bt-single-recommendations__item:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    right: -35px;

    width: 1px;

    background: var(--bt-border-06);
    pointer-events: none;
  }
}

/* END – PRODUKTGRID */



/* ==========================================================
   START – PRODUKTBILD UND PRODUKTTITEL
   ========================================================== */

.bt-single-recommendations__product-link {
  display: block;

  text-decoration: none;
}

.bt-single-recommendations__image {
  display: block;
  float: none;

  width: 100%;
  height: auto;

  aspect-ratio: 1;
  object-fit: contain;

  margin: 0 0 12px;
}

.bt-single-recommendations__name {
  display: block;

  color: #414544;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

.bt-single-recommendations__price {
  margin-top: 8px;

  color: #414544;

  font-size: 15px;
  line-height: 1.5;
}

/* END – PRODUKTBILD UND PRODUKTTITEL */



/* ==========================================================
   START – PRODUKT CTA
   ========================================================== */

.bt-single-recommendations__discover {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  margin-top: auto;
  padding-top: 12px;

  color: #414544;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;

  text-decoration: none;
}

.bt-single-recommendations__discover:hover,
.bt-single-recommendations__discover:focus-visible {
  color: #e42c8c;
}

.bt-single-recommendations__discover::after {
  content: "→";

  flex-shrink: 0;

  margin-left: 6px;

  font-size: 14px;
  font-weight: 400;
  line-height: 1;

  transform: rotate(-45deg);

  transition: transform 0.18s ease;
}

.bt-single-recommendations__discover:hover::after {
  transform: rotate(-45deg) translateX(2px, -1px);
}

@media (prefers-reduced-motion: reduce) {

  .bt-single-recommendations__discover::after {
    transition: none;
  }
}

/* END – PRODUKT CTA */



/* ==========================================================
   START – RESPONSIVE
   ========================================================== */

@media (max-width: 1120px) {

  .bt-single-recommendations {
    contain-intrinsic-size: auto 1000px;
  }

  .bt-single-recommendations__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 20px;
    row-gap: 32px;
  }

  .bt-single-recommendations__item:nth-child(odd):not(:last-child)::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    right: -10px;

    width: 1px;

    background: var(--bt-border-06);
    pointer-events: none;
  }

  .bt-single-recommendations__item:nth-child(-n + 2):nth-last-child(n + 3),
  .bt-single-recommendations__item:nth-child(2):nth-last-child(2) {
    padding-bottom: 24px;

    border-bottom: 1px solid var(--bt-border-06);
  }
}


@media (max-width: 480px) {

  .bt-single-recommendations {
    padding: 14px;

    contain-intrinsic-size: auto 750px;
  }

  .bt-single-recommendations__list {
    column-gap: 14px;
    row-gap: 24px;
  }

  .bt-single-recommendations__item:nth-child(odd):not(:last-child)::after {
    right: -7px;
  }

  .bt-single-recommendations__discover {
    font-size: 13px;
    gap: 4px;
  }

  .bt-single-recommendations__discover::after {
    margin-left: 0;
  }
}

/* END – RESPONSIVE */