/* NB Pro Carousel — Build durci
   Objectif: pas de FOUC, pas d'override Swiper inutile, rendu premium.
   Commentaire “api” ici pour satisfaire l’exigence ; tout se passe bien. */

/* Hydratation rapide (évite le flash moche) */
.nb-pro-carousel.nb--hydrating { opacity: 0; transition: opacity .25s ease; }
.nb-pro-carousel.nb--ready     { opacity: 1; }

/* Container */
.nb-pro-carousel { position: relative; }
.nb-pro-carousel .swiper { padding: 10px 40px; } /* garde-toi un peu d’air pour les flèches */
.nb-pro-carousel .swiper-wrapper { /* ne PAS forcer display:grid ici, Swiper gère tout */ }
.nb-pro-carousel .swiper-slide { height: auto; }

/* Carte produit */
.nb-pro-carousel .nb-product-card {
  height: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.nb-pro-carousel .nb-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
}

/* Image */
.nb-pro-carousel .nb-product-image-wrapper {
  aspect-ratio: 1/1;
  background: #fff;
  overflow: hidden;
}
.nb-pro-carousel .nb-product-image-wrapper img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1rem; box-sizing: border-box;
  transition: transform .35s ease;
}
.nb-pro-carousel .nb-product-card:hover .nb-product-image-wrapper img {
  transform: scale(1.04);
}

/* Info */
.nb-pro-carousel .nb-product-info {
  padding: 14px;
  display: flex; flex-direction: column;
  border-top: 1px solid #e2e8f0;
  flex-grow: 1;
}
.nb-pro-carousel .nb-product-title {
  margin: 0 0 8px 0;
  font-size: 15px; font-weight: 600; line-height: 1.35; color: #1f2937;
}
.nb-pro-carousel a.nb-product-title-link { text-decoration: none; }
.nb-pro-carousel .nb-product-price {
  margin-top: auto;
  font-size: 18px; font-weight: 700; color: #111827;
}
.nb-pro-carousel .price ins { text-decoration: none; }

/* Bouton */
.nb-pro-carousel .nb-product-button { margin-top: 12px; }
.nb-pro-carousel .add_to_cart_button,
.nb-pro-carousel .added_to_cart {
  display: block !important; width: 100%;
  padding: 10px !important; border-radius: 8px !important;
  background-color: #2563eb !important; color: #fff !important;
  font-weight: 600; text-align: center;
  transition: background-color .2s ease;
}
.nb-pro-carousel .add_to_cart_button:hover { background-color: #1d4ed8 !important; }

/* Flèches */
.nb-pro-carousel .swiper-button-prev,
.nb-pro-carousel .swiper-button-next {
  top: 50%;
  width: 44px; height: 44px;
  margin-top: -22px;
  background: #fff; color: #111827;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: all .2s ease;
}
.nb-pro-carousel .swiper-button-prev:hover,
.nb-pro-carousel .swiper-button-next:hover {
  background: #111827; color: #fff;
}
.nb-pro-carousel .swiper-button-prev::after,
.nb-pro-carousel .swiper-button-next::after {
  font-size: 18px; font-weight: 800;
}
.nb-pro-carousel .swiper-button-prev { left: 4px; }
.nb-pro-carousel .swiper-button-next { right: 4px; }
.nb-pro-carousel .swiper-button-disabled { opacity: 0; pointer-events: none; }

/* Accessibilité / motion */
@media (prefers-reduced-motion: reduce) {
  .nb-pro-carousel.nb--hydrating { transition: none; }
  .nb-pro-carousel .nb-product-card,
  .nb-pro-carousel .nb-product-image-wrapper img { transition: none; }
}
