
/*---------------------------------------------------------------------------------------------------------------
 Slider de prodductos recomendados
---------------------------------------------------------------------------------------------------------------*/
.best-sellers {
  padding: 2rem;
  margin-top: 48px;
  margin-top: 0;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.best-sellers-container {
  width: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  padding: 0;
  scrollbar-width: none; /* Firefox */
}

.best-sellers-container::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}

.product-card {
  flex: 0 0 auto;
  width: 200px;
  width: 220px;
  background: #fff;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start; 
  border-radius: 8px;
  border: 1px solid #eaeaea;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 7px 15px rgba(0,0,0,.12);
  border: 1px solid #E30613;
}

.fav-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #50be4c;
  background-color: #a3be4c;
  border: none;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.product-image {
  background: #f4f4f4;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image img {
  max-width: 100%;
  height: 120px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.product-title {
  font-weight: 400;
  color: #333;
  color: #585858;
  font-size:16px;
  line-height: 20px;
  margin:10px 0 8px;
  margin: 8px 0;
  display:-webkit-box;
  -webkit-line-clamp:2;      /* cantidad de líneas */
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0px 0;
  font-size: 20px;
  font-weight: 700;
  color: #E30613;
}

.product-price span:last-child {
  font-weight: normal;
  font-size: 14px;
  color: #000;
  color: #9ca3af;
  color: #838383;
}


.product-card > span {
  font-size: 12px;
  color: #fff;
  color: #000;
  margin-top: 8px;
  background: #ff0800;
  background: #FEE600;
  display: flex;
  border-radius: 6px;
  padding: 2px 0;
  justify-content: center;
  align-items: center;
}

.add-cart {
  width: 100%;
  color: #9ca3af;
  color: #fff;
  border: none;
  padding: 8px 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #9ca3af;
  border: none;
  background: #E30613;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

/*------------------------------------------------------------------*/
/* CONTENEDOR DEL TÍTULO + ACCIONES */
.best-sellers .section-header {
  display: flex;
  align-items: center;
}

/* TÍTULO A LA IZQUIERDA */
.best-sellers .section-title {
  margin-right: auto; /* 🔑 empuja el bloque derecho */
}

/* BLOQUE: "Ver más" + botones */
.best-sellers .section-header > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.best-sellers .section-header > div .sliderProducts-btn .prev {
  border-radius: 6px 0 0 6px;
}

.best-sellers .section-header > div .sliderProducts-btn .next {
  border-radius: 0 6px 6px 0;
}

/* BOTONES DEL SLIDER */
.sliderProducts-btn {
  border: none;
  cursor: pointer;
  font-size: 18px;
  background: #fff;
  background: #2563EB;
  background: #E30613;
  display: none;
  padding: 4px 10px;
  margin-bottom: 2px;
  border-radius: 1000px;
  color: #fff;
}

/* SOLO DESKTOP */
@media (min-width: 1025px) {
  .sliderProducts-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/*------------------------------------------------------------------*/
/* RESPONSIVE PRODUCT CARD */
/* Tablet */
@media (max-width: 1024px) {
  .product-card {
    width: 260px;
  }
}   

/* Mobile */
@media (max-width: 640px) {
  .product-card {
    width: 75%;
    max-width: 200px;
  }
}

/*------------------------------------------------------------------*/
.best-sellers-container::-webkit-scrollbar {
  height: 6px;   
}

.best-sellers-container::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 10px;
}

.best-sellers-container::-webkit-scrollbar-thumb {
  background: #c7cbd1;
  border-radius: 10px;
}

.best-sellers-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.best-sellers-container {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

@media (min-width: 1024px) {
  .best-sellers-container::-webkit-scrollbar {
    height: 6px;
  }
}

/*------------------------------------------------------------------*/
.section-header {
  margin: 0px auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
}

.section-title {
    font-size: 22px;
    color: #333;
    border-bottom: 2px solid #E30613;
    border-bottom: none;
    padding-bottom: 12px;
    padding-bottom: 10px;
    font-weight: 700;
}

.section-title a {
  color: #1e6fff;
  color: #E30613;
  text-decoration: none;
 
}

@media (max-width: 640px) {
  /*Aqui vemos si hay que cambiar el margin*/
  .section-header {
    margin: 32px auto 12px;
    margin: 0 auto 8px;
  }

  .section-title {
      font-size: 16px;
      font-size: 16px;
      padding-bottom: 8px;
      font-weight: bold;
  }
  
  /*------------------------------------------*/
  .best-sellers {
    padding: 1rem;
    margin-top: 24px; /* o incluso 12px */
    margin-top: 16px;
  }

  .section-title {
    padding-bottom: 6px;
  }

  .product-price {
    line-height: 26px;
  }
}

