
.wrappermasvendidos {
  max-width: 70%;
  width: 100%;
  position: relative;
}

/* Controles carousel left and rigth */
.wrappermasvendidos i {
  height: 50px;
  width: 50px;
  background: #fff ; 
  text-align: center;
  line-height: 50px;
  border-radius: 50%; 
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 1.25rem;
  transform: translateY(-50%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);

}

.wrappermasvendidos i:hover{
  background-color:  #122D80;
  color: white;
}

.wrappermasvendidos i:first-child {
  left: -70px;
}

.wrappermasvendidos i:last-child {
  right:-70px ;
}


.wrappermasvendidos .carouselmasvendidos{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100%/4) - 12px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: 0;
}

.carouselmasvendidos::-webkit-scrollbar{
  display: none;
}

.carouselmasvendidos :where(.card, .img){
  display: flex;
  align-items: center;
  justify-content: center;

}

.carouselmasvendidos.no-transition{
  scroll-behavior: auto;
}

.carouselmasvendidos.dragging{
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.carouselmasvendidos.dragging .card{
  cursor: grab;
  user-select: none;
}

/* Tarjeta general*/ 
.carouselmasvendidos .card{
  scroll-snap-align: start;
  height: 100%;
  list-style: none;
  background: #fff; /*color de fonde  de la atrjeta*/
  border-radius: 8px;
  display: flex;
  cursor: pointer;
  padding-bottom: 15px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 0; /*borde de la caja*/

}


/* Vista Rapida */
.card footer{
  width: 0;
  height: 7%;
  border-radius: 10%;
  text-align: center;
  /* position: absolute; */
  top: 252px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #777 !important;
  opacity: .5 !important;
  border-radius: 0px 0px 30px 30px ;
  box-shadow: 0px 0px 10px #777373;
  h2{
    color: white;
    font-size: 1rem !important;
    font-weight: 600 !important;
  }
}

.card:hover footer{
  width: 98%;
}

.card h3{
  font-weight: 800;
  font-size: 1.3rem;
  margin: 30px 0 5px;
}

.card span{
  color: #6a6d78;
  font-size: 1.31rem;
}

.card .card-footer .logos{
  width: 30px;
}

/* BOTON CAGREGAR CARITO DE COMPRAS */
.btn_carrito2{
  color: #122D80;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: bold;
}
.btn_carrito2:hover{  background-color: #122D80 !important; }


/* LABEL DE PRECIO DE PRODUCTO */
.carouselmasvendidos .card .label_precio{
  color: #122D80 !important;
  margin-top: 15px;
  font-size: 18px;
  font-weight: 900;
}

.carouselmasvendidos .card h2{
  font-size: 24px;
  margin-bottom: 30px;
  margin-top: 10px;
  font-weight: 900;
  .title_masvendidos{
    align-self: center;
    justify-self: center;
  }
}


.nombre-producto {
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;      
  text-overflow: ellipsis; 
  max-height: 3em;         
  line-height: 1.5em;      
}


@media screen and (max-width: 900px){

  .wrappermasvendidos .carouselmasvendidos{
    grid-auto-columns: calc((100%/2) - 9px);
  }

  .card footer{
    top: 325px;
  }

}

@media screen and (max-width: 700px ){
  .card footer{
    top: 325px;
  }
}

@media screen and (max-width: 600px){

  .wrappermasvendidos .carouselmasvendidos{
    grid-auto-columns: 100%;
  }

  .wrappermasvendidos i:first-child {
    left:  -3rem ;  /*control Izquierdo*/
    z-index: 2;
  }
  
  .wrappermasvendidos i:last-child {
    right: -3rem ; /*control derecho*/
  }

  .card footer{
    top: 406px;
  }


}