/* Carrousel "Autres produits populaires" — voir templates/product/related-products.php */

.spc-related-products {
  padding-top: 0;
  border-top: 0;
}

.spc-related-products__title {
  margin: 0 0 16px;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #20242a;
  text-align: center;
}

.spc-related-products__wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spc-related-products__track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 4px 0 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.spc-related-products__track::-webkit-scrollbar {
  display: none;
}

.spc-related-products__card {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

.spc-related-products__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.spc-related-products__link:hover {
  border-color: #dce5ef;
  box-shadow: 0 4px 14px rgba(32, 36, 42, .08);
}

.spc-related-products__image {
  display: block;
  margin: 0 0 10px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f7f7;
}

.spc-related-products__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spc-related-products__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #20242a;
}

.spc-related-products__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
}

.spc-related-products__rating-count {
  font-size: 12px;
  color: #6c727a;
}

.spc-related-products__price {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: #c8102e;
}

.spc-related-products__price-from {
  color: #20242a;
}

.spc-related-products__nav.spc-related-products__nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border: 1px solid #eef0f2 !important;
  border-radius: 999px;
  background: #fff !important;
  color: #20242a !important;
  font-weight: 400 !important;
  cursor: pointer;
  transition: background .15s ease;
}

.spc-related-products__nav:hover {
  background: #f7f7f7 !important;
}

.spc-related-products__nav svg {
  width: 18px;
  height: 18px;
}

.spc-related-products__nav:disabled {
  opacity: .35;
  cursor: default;
}

.spc-related-products__nav:disabled:hover {
  background: #fff !important;
}

@media (max-width: 640px) {
  .spc-related-products__title {
    font-size: 19px !important;
  }

  .spc-related-products__card {
    flex-basis: 148px;
  }

  .spc-related-products__wrap {
    gap: 0;
  }
}
