/* 
 * Carosello Prodotti Correlati - FORZA 6 prodotti in RIGA su desktop
 * CSS ULTRA-AGGRESSIVO per sovrascrivere tutto
 */

/* RESET TOTALE - FORZA tutto */
#category-products2.owl-carousel,
#category-products2 {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#category-products2.owl-carousel .owl-stage-outer,
#category-products2 .owl-stage-outer {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#category-products2.owl-carousel .owl-stage,
#category-products2 .owl-stage {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  transform: none !important;
  -webkit-transform: none !important;
  box-sizing: border-box !important;
}

/* RESET ITEM - FORZA dimensioni fisse */
#category-products2.owl-carousel .owl-item,
#category-products2 .owl-item {
  min-width: 0 !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  float: left !important;
  display: block !important;
  position: relative !important;
}

/* Mobile: 3 prodotti */
@media (min-width: 480px) {
  #category-products2.owl-carousel .owl-item,
  #category-products2 .owl-item {
    width: 33.333333% !important;
    max-width: 33.333333% !important;
    flex: 0 0 33.333333% !important;
  }
}

/* Tablet: 2 prodotti */
@media (min-width: 768px) {
  #category-products2.owl-carousel .owl-item,
  #category-products2 .owl-item {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
}

/* Desktop piccolo: 3 prodotti */
@media (min-width: 992px) {
  #category-products2.owl-carousel .owl-item,
  #category-products2 .owl-item {
    width: 33.333333% !important;
    max-width: 33.333333% !important;
    flex: 0 0 33.333333% !important;
  }
}

/* Desktop: 6 prodotti in RIGA - FORZA ASSOLUTA */
@media (min-width: 1200px) {
  #category-products2.owl-carousel,
  #category-products2 {
    overflow: visible !important;
  }
  
  #category-products2.owl-carousel .owl-stage-outer,
  #category-products2 .owl-stage-outer {
    overflow: visible !important;
  }
  
  #category-products2.owl-carousel .owl-stage,
  #category-products2 .owl-stage {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
  }
  
  #category-products2.owl-carousel .owl-item,
  #category-products2 .owl-item {
    width: 16.666667% !important;
    max-width: 16.666667% !important;
    min-width: 0 !important;
    flex: 0 0 16.666667% !important;
    float: left !important;
    display: block !important;
    position: relative !important;
  }
  
  /* Forza anche l'ultimo item ad avere la stessa larghezza */
  #category-products2.owl-carousel .owl-item:last-child,
  #category-products2 .owl-item:last-child {
    width: 16.666667% !important;
    max-width: 16.666667% !important;
    flex: 0 0 16.666667% !important;
  }
}

/* FORZA dimensioni prodotti */
#category-products2 .product-miniature,
#category-products2 article {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#category-products2 .product-miniature img,
#category-products2 article img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Frecce di navigazione - STILE E VISIBILITÀ */
#category-products2.owl-carousel .owl-nav,
#category-products2 .owl-nav {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

#category-products2.owl-carousel .owl-nav > *,
#category-products2 .owl-nav > * {
  pointer-events: auto !important;
}

#category-products2.owl-carousel .owl-nav .owl-prev,
#category-products2 .owl-nav .owl-prev {
  position: absolute !important;
  left: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  -webkit-transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid #333 !important;
  border-radius: 50% !important;
  width: 45px !important;
  height: 45px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #333 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  z-index: 20 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#category-products2.owl-carousel .owl-nav .owl-prev:hover,
#category-products2 .owl-nav .owl-prev:hover {
  background: #333 !important;
  color: #fff !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

#category-products2.owl-carousel .owl-nav .owl-next,
#category-products2 .owl-nav .owl-next {
  position: absolute !important;
  right: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  -webkit-transform: translateY(-50%) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid #333 !important;
  border-radius: 50% !important;
  width: 45px !important;
  height: 45px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #333 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  z-index: 20 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#category-products2.owl-carousel .owl-nav .owl-next:hover,
#category-products2 .owl-nav .owl-next:hover {
  background: #333 !important;
  color: #fff !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

#category-products2.owl-carousel .owl-nav .owl-prev.disabled,
#category-products2 .owl-nav .owl-prev.disabled,
#category-products2.owl-carousel .owl-nav .owl-next.disabled,
#category-products2 .owl-nav .owl-next.disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

/* Su desktop grande, posiziona le frecce più all'interno e più grandi */
@media (min-width: 1200px) {
  #category-products2.owl-carousel .owl-nav .owl-prev,
  #category-products2 .owl-nav .owl-prev {
    left: 20px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 28px !important;
  }
  
  #category-products2.owl-carousel .owl-nav .owl-next,
  #category-products2 .owl-nav .owl-next {
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 28px !important;
  }
}