/* Produits apparentés — fiche produit Beloccasion (isolé) */
.bo-related {
  margin: 2.5rem 0 1.5rem;
  clear: both;
}
.bo-related-title {
  margin: 0 0 1.15rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f1f20;
  letter-spacing: -0.02em;
}
.bo-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bo-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 31, 32, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 8px 24px rgba(14, 85, 88, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.bo-related-card:hover,
.bo-related-card:focus {
  transform: translateY(-3px);
  border-color: rgba(27, 140, 143, 0.4);
  box-shadow: 0 16px 40px rgba(14, 85, 88, 0.12);
  color: inherit !important;
  text-decoration: none !important;
}
/* Cadre image : remplit tout le haut de la carte, sans bande blanche */
.bo-related-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f4f4;
  line-height: 0;
  font-size: 0;
}
.bo-related-media img,
.bo-related-card .bo-related-media img,
#product .bo-related-media img,
.page-product-box .bo-related-media img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  transition: transform 0.35s ease;
}
.bo-related-card:hover .bo-related-media img {
  transform: scale(1.04);
}
.bo-related-card .discount,
.bo-related-media .discount,
#product .bo-related-media .discount,
.page-product-box .bo-related-media .discount {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  z-index: 3;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto !important;
  min-width: 42px;
  height: 42px !important;
  padding: 0 6px !important;
  margin: 0 !important;
  background: #EB5A25 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  text-align: center;
  white-space: nowrap;
}
.bo-related-body {
  display: block;
  padding: 0.9rem 0.95rem 1.05rem;
  background: #fff;
  flex: 1;
}
.bo-related-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f1f20;
  margin: 0 0 0.55rem;
  line-height: 1.35;
  min-height: 2.85em;
}
.bo-related-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.65rem;
}
.bo-related-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1b8c8f;
  line-height: 1.2;
}
.bo-related-old {
  font-size: 1rem;
  color: #EB5A25;
  text-decoration: line-through;
  font-weight: 600;
  line-height: 1.2;
}

/* Produits recommandés — colonne droite fiche produit (même cadre) */
#product .bo-recommended,
.bo-recommended {
  padding-left: 8px;
  line-height: normal;
}
.bo-recommended-title {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f1f20;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.bo-recommended-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.bo-recommended .bo-related-card {
  border-radius: 12px;
}
.bo-recommended .bo-related-media {
  aspect-ratio: 1 / 1;
}
.bo-recommended .bo-related-body {
  padding: 0.7rem 0.75rem 0.85rem;
}
.bo-recommended .bo-related-name {
  font-size: 1.02rem;
  min-height: 0;
  margin-bottom: 0.45rem;
  -webkit-line-clamp: 2;
}
.bo-recommended .bo-related-prices {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}
.bo-recommended .bo-related-price {
  font-size: 1.32rem;
}
.bo-recommended .bo-related-old {
  font-size: 0.95rem;
}
.bo-recommended .bo-related-card .discount,
.bo-recommended .bo-related-media .discount {
  top: 6px !important;
  left: 6px !important;
  min-width: 36px;
  height: 36px !important;
  font-size: 10px !important;
}

@media (max-width: 991px) {
  .bo-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .bo-related {
    margin: 1.75rem 0 1rem;
    padding: 0 4px;
  }
  .bo-related-title {
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
  }
  .bo-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .bo-related-body {
    padding: 0.75rem 0.8rem 0.9rem;
  }
  .bo-related-name {
    font-size: 1.02rem;
    min-height: 2.7em;
  }
  .bo-related-price {
    font-size: 1.35rem;
  }
  .bo-related-old {
    font-size: 0.92rem;
  }
  .bo-related-card .discount,
  .bo-related-media .discount {
    min-width: 38px;
    height: 38px !important;
    font-size: 10px !important;
  }
}
