/**
 * Foxbow - Carousel de produits de la même catégorie
 *
 * Styles pour le carousel de produits dans la page produit
 * Conformément à la charte graphique Foxbow
 */

.foxbow-same-category-carousel {
  background-color: #fff;
  padding: 30px 0;
  margin: 30px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

/* Titre du carousel */
.foxbow-carousel-header {
  text-align: left;
  margin-bottom: 30px;
  margin-left: calc(2rem - 15px);
}

.foxbow-carousel-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  text-transform: none;
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.foxbow-carousel-title::after {
  content: "";
  position: absolute;
  bottom: -1.5px;
  display: block;
  width: 30px;
  height: 1px;
  border-bottom: solid 3px #ec6a33;
  left: 0;
  right: 0;
}

/* Wrapper du carousel */
.foxbow-carousel-wrapper {
  position: relative;
  margin: 0 auto;
  padding: 0 60px;
}

/* Container du carousel */
.foxbow-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Track du carousel */
.foxbow-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

/* Item du carousel - Affiche 4 produits en même temps sur PC */
.foxbow-carousel-item {
  flex: 0 0 calc(25% - 15px);
  min-width: 0;
  max-width: calc(25% - 15px);
}

/* Produit dans le carousel */
.foxbow-carousel-product {
  background-color: #fff;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s ease;
  width: 100%;
}

.foxbow-carousel-product:hover {
  box-shadow: 0 2px 10px rgba(160, 160, 161, 0.25);
}

/* Retirer le margin-bottom des miniatures dans le carousel */
.foxbow-same-category-carousel .thumbnail-container {
  margin-bottom: 0;
}

/* S'assurer que les miniatures prennent toute la largeur */
.foxbow-same-category-carousel .product-miniature {
  width: 100%;
}

.foxbow-same-category-carousel .thumbnail-container,
.foxbow-same-category-carousel .product-thumbnail {
  width: 100%;
}

.foxbow-same-category-carousel .product-thumbnail img {
  width: 100%;
  height: auto;
}

/* Boutons de navigation */
.foxbow-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #71b02c;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 0;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foxbow-carousel-nav:hover {
  background-color: #989292;
}

.foxbow-carousel-prev {
  left: 0;
}

.foxbow-carousel-next {
  right: 0;
}

/* Indicateurs de pagination (dots) */
.foxbow-carousel-dots {
  text-align: center;
  margin-top: 20px;
}

.foxbow-carousel-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e3e3e3;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.foxbow-carousel-dot:hover {
  background-color: #989292;
}

.foxbow-carousel-dot.active {
  background-color: #71b02c;
}

/* Responsive */
@media (max-width: 992px) {
  /* 3 produits sur tablette */
  .foxbow-carousel-item {
    flex: 0 0 calc(33.333% - 13.333px);
    max-width: calc(33.333% - 13.333px);
  }

  .foxbow-carousel-wrapper {
    padding: 0 50px;
  }
}

@media (max-width: 768px) {
  /* 2 produits sur mobile large et tablette */
  .foxbow-carousel-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .foxbow-carousel-wrapper {
    padding: 0 40px;
  }

  .foxbow-carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .foxbow-carousel-title {
    font-size: 1.125rem;
  }
}