.best-seller-section {
  /*  background-color: #FAFAFA;*/
  background-color: #f7f7f7;
  padding-bottom: 6%;
  position: relative;
}

.best-seller-head {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 18px
}

.best-seller-select-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.best-seller-titre {
  text-align: end;
  font-size: 3rem;
  font-weight: 700;
}

.best-seller-select {
  padding-bottom: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  border-bottom: 1.5px solid #bcbcbc;
}

.category-item-container {
  display: grid;
  /* grid-template-columns: 1fr 1fr 1fr 1fr; */
  grid-template-columns: 1fr 3fr;
  height: 600px;
  gap: 18px
}

.category-pres {
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px;
  gap: 64px;
  height: 100%;
  background-position: center;
  /* width: 40%; */
}

.best-seller-cta {
  border: 1px solid white;
  color: white;
  padding: 10px 30px;
  width: fit-content;
  text-align: center;
  border-radius: 54px;
  margin-top: 24px;
  font-size: 2rem;
  width: 250px;
}

.best-seller-cta a {
  font-weight: 700;
  text-decoration: none;
  color: white;
  font-size: 2.5rem;
}

.category-description {
  width: 60%;
  color: white;
  font-weight: 700;
}


/*Hide/show category */
.category-item-container {
  display: none;
}

.category-item-container.active {
  display: grid;
}

.best-seller-item {
  cursor: pointer;
  text-transform: uppercase;
}

.best-seller-item.active {
  /* Add your active state styling here */
  font-weight: bold;
  color: red;
}

.best-seller-item {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.best-seller-item.active-category {
  font-weight: bold;
  color: #000;
  font-size: 1.2rem
    /* Adjust to your preferred active color */
}

.best-seller-item.active-category::after {
  content: '';
  position: absolute;
  bottom: -27px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 6px;
  background-color: #000;
  /* Adjust to your preferred underline color */
}

.best-seller-product .swiper-wrapper {
  height: 97% !important;
  width: 90%;
}

/*End*/


/*Produits*/
.best-seller-product {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  gap: 20px;
}

.best-seller-product .product {
  width: calc((100% - 40px) / 3) !important;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.best-seller-product .category>div {
  border: 1px solid rgb(182, 181, 181);
  color: rgb(182, 181, 181);
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.75em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.best-seller-product .category>a:hover {
  color: #fff;
  background-color: #000;
}

.best-seller-product .product-infos {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 30px;
}

.best-seller-product .desc {
  font-size: 14px;
  color: grey;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
}

.best-seller-product .title {
  font-size: 1rem;
}

.best-seller-product .price span {
  font-size: 1.2rem;
}

.best-seller-product .img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.best-seller-product .img-container img {
  width: 65%;
  height: auto;
  object-fit: contain;
}

.best-seller-product .see-product {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  background-color: #2BA6F0;
  border-radius: 50px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.best-seller-product .see-product:hover {
  background-color: #006bac;
}

.best-seller-product .withPromo {
  color: #BABABA;
  text-decoration: line-through;
}

.product-infos .category {

  margin-bottom: 5px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.blocArrowBest img {
  width: 100%;
  height: auto;
}

.blocBestSeller {
  display: flex;
  align-items: center;
  gap: 11px;
}

.swiper-button-next.bestseller,
.swiper-button-prev.bestseller {
  top: 83% !important;
}

.swiper-button-prev.bestseller {
  right: unset !important;
  left: 241px !important;
}

.swiper-button-next.bestseller {
  left: 290px !important;
}

.custom-arrow-left.bestseller {
  width: 40px !important;
  height: 40px !important;
  background-image: url('../img/svg/arrow_right_white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(-180deg);
}

.custom-arrow-left.bestseller:hover {
  width: 40px !important;
  height: 40px !important;
  background-image: url('../img/svg/arrow_right_white_opaque.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(-180deg);

}

.custom-arrow-right.bestseller {
  width: 40px !important;
  height: 40px !important;
  background-image: url('../img/svg/arrow_right_white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transform: initial;
}

.custom-arrow-right.bestseller:hover {
  width: 40px !important;
  height: 40px !important;
  background-image: url('../img/svg/arrow_right_white_opaque.svg');
  background-size: contain;
  background-repeat: no-repeat;

}


@media (max-width:767px) {
  .best-seller-head {
    grid-template-columns: 1fr;
    margin-bottom: 15px;
  }

  .best-seller-select {
    padding: 24px;
    padding-top: 0;
  }

  .best-seller-titre {
    text-align: center;
    font-size: 48px;
    margin: 20px auto;
  }

  .swiper-button-next.bestseller,
  .swiper-button-prev.bestseller {
    top: 98% !important;
  }

  .category-item-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .best-seller-cta {
    padding: 15px 20px;
    margin: 24px auto 45px;
  }

  .best-seller-cta a {
    font-size: 40px;
    text-wrap: nowrap;
  }

  .best-seller-product .product {
    width: calc((100% - 40px) / 1) !important;
  }

  .category-pres {
    gap: 0;
  }

  .category-description {
    width: 100%;
  }
}

@media (max-width:1600px) {
  .best-seller-titre {
    font-size: 2rem;
  }

  .best-seller-item {
    font-size: 12px;
  }

  .best-seller-item.active-category {
    font-size: 14px;
  }

  .best-seller-cta {
    font-size: 2rem;
  }
}