/* BRICOLLI - Related Products native horizontal slider */

/* Bloc principal */
.catalog-product-view .block.related {
  clear: both;
  margin-top: 40px;
  margin-bottom: 45px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  overflow: hidden;
}

.catalog-product-view .block.related .block-title,
.catalog-product-view .block.related > .title {
  margin-bottom: 18px;
}

.catalog-product-view .block.related .block-title strong,
.catalog-product-view .block.related > .title strong {
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.catalog-product-view .block.related .block-actions {
  margin-bottom: 18px;
}

/* Important : neutraliser Owl si des classes restent */
.catalog-product-view .block.related .owl-stage,
.catalog-product-view .block.related .owl-stage-outer,
.catalog-product-view .block.related .owl-item {
  display: block !important;
  width: auto !important;
  transform: none !important;
}

.catalog-product-view .block.related .owl-nav,
.catalog-product-view .block.related .owl-dots {
  display: none !important;
}

/* Slider horizontal natif */
.catalog-product-view .block.related .products-grid .product-items,
.catalog-product-view .block.related .products.wrapper .products.list.items,
.catalog-product-view .block.related ol.product-items,
.catalog-product-view .block.related .product-items,
.catalog-product-view .block.related .bricolli-related-native-slider {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 24px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 26px 4px 18px !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

/* Carte produit */
.catalog-product-view .block.related .product-item {
  float: none !important;
  display: block !important;
  flex: 0 0 250px !important;
  width: 250px !important;
  max-width: 250px !important;
  min-width: 250px !important;
  margin: 0 !important;
  padding: 0 !important;
  scroll-snap-align: start !important;
  text-align: center !important;
}

.catalog-product-view .block.related .product-item-info {
  width: 100% !important;
  max-width: 250px !important;
  min-height: 100% !important;
  margin: 0 auto !important;
  background: #fff !important;
  border-radius: 12px !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}

.catalog-product-view .block.related .product-item-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.catalog-product-view .block.related .product-image-container,
.catalog-product-view .block.related .product-image-wrapper {
  max-width: 100% !important;
}

.catalog-product-view .block.related .product-image-photo {
  max-height: 250px !important;
  object-fit: contain !important;
}

.catalog-product-view .block.related .product-item-name,
.catalog-product-view .block.related .product.name {
  min-height: 48px !important;
  margin-top: 12px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

.catalog-product-view .block.related .price-box {
  margin-top: 8px !important;
  text-align: center !important;
}

.catalog-product-view .block.related .price {
  color: #ff1e1e !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

/* Checkbox Magento native */
.catalog-product-view .block.related .field.choice.related {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 7px !important;
  margin-top: 12px !important;
  font-size: 13px !important;
}

.catalog-product-view .block.related input.checkbox.related {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
}

/* Navigation personnalisée */
.catalog-product-view .block.related .bricolli-related-custom-nav {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
  clear: both !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 5 !important;
}

.catalog-product-view .block.related .bricolli-related-custom-nav button {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border: none !important;
  border-radius: 50% !important;
  background: #111 !important;
  color: #ffcc00 !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
}

.catalog-product-view .block.related .bricolli-related-custom-nav button:hover {
  background: #ffb400 !important;
  color: #111 !important;
}

/* Scrollbar */
.catalog-product-view .block.related .product-items::-webkit-scrollbar {
  height: 8px;
}

.catalog-product-view .block.related .product-items::-webkit-scrollbar-thumb {
  background: #ffb400;
  border-radius: 20px;
}

.catalog-product-view .block.related .product-items::-webkit-scrollbar-track {
  background: #f2f2f2;
  border-radius: 20px;
}

@media (max-width: 767px) {
  .catalog-product-view .block.related {
    margin-top: 28px;
  }

  .catalog-product-view .block.related .product-item {
    flex: 0 0 190px !important;
    width: 190px !important;
    max-width: 190px !important;
    min-width: 190px !important;
  }

  .catalog-product-view .block.related .product-item-info {
    max-width: 190px !important;
  }

  .catalog-product-view .block.related .product-image-photo {
    max-height: 200px !important;
  }

  .catalog-product-view .block.related .product-item-name,
  .catalog-product-view .block.related .product.name {
    font-size: 13px !important;
  }
}
