
.best-sellers {
  padding: 0;
  margin-top: 48px;
}

.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;
  background: #fff;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border-radius: 12px;
  border: 1px solid #eaeaea;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

/*------------------------- Aqui se cambia el tamaño de la imagen de las cards -----------------------*/

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

.product-image img {
  max-width: 100%;
  height: 120px;
  object-fit: contain;
}
/*-------------------------------------------------------------------------*/
.product-title {
  margin: 12px 0 0;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  display:-webkit-box;
  -webkit-line-clamp:2;      /* cantidad de líneas */
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.product-rating {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.product-rating span:first-child {
  text-decoration: line-through;
}

.star {
  color: #f5a623;
}

.product-price {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #2563EB;
}

.product-price span:last-child {
  font-size: 12px;
  color: #01e226;
  background: #ddffd3;
  padding: 4px 6px;
  border-radius: 4px;
}

.product-card > span {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.add-cart {
  width: 100%;
  background: #2563EB;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
}

/*-----------------------------------------------------------------------------------------------------------------------------------*/
/* 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 .prev {
  border-radius: 6px 0 0 6px;
}

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

/* BOTONES DEL SLIDER */
.slider-btn {
  border: none;
  cursor: pointer;
  font-size: 18px;
  background: #fff;
  background: #2563EB;
  display: none;
  padding: 4px 10px;
  color: #fff;
}

/* SOLO DESKTOP */
@media (min-width: 1025px) {
  .slider-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: 16px;
  color: #333;
  border-bottom: 2px solid #1e6fff;
  padding-bottom: 12px;
  font-weight: 700;
}

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

.view-all {
  font-size: 16px;
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 12px;
}

.view-all:hover {
  color: #000;
}

.best-sellers .view-all{
  padding-bottom: 0;
  margin-right: 6px;
}


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

  .section-title {
      font-size: 14px;
      padding-bottom: 8px;
      font-weight: normal;
  }
  
  .view-all {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 8px;
  }

  .best-sellers .view-all{
    padding-bottom: 8px;
    margin-right: 0px;
  }
  

  /*------------------------------------------*/
  .best-sellers {
    margin-top: 16px;
    margin-top: 32px; /* o incluso 12px */
  }

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

  .view-all {
    padding-bottom: 6px;
  }
}






