/* ******************************************************** */
/* Estilos para el modal de detalles de productos */
/* ******************************************************** */

/* Gestos globales */
#productoModal{
    z-index: 998 !important;
}
#modalImagen-producto{
    transition:  transform 0.2s ease;
    transform: scale(1);
}
#modalImagen-producto.fade-out{
    transform: scale(1.03);
}
#modalImagen-producto.fade-in{
    transform: scale(0.97);
}

/* Scroll del modal */
.modal-dialog-scrollable .modal-content {
  /* Para navegadores basados en Chromium (Chrome, Edge, Opera) */
  scrollbar-gutter: stable;
}

.modal-dialog-scrollable .modal-content::-webkit-scrollbar {
  width: 8px; /* opcional: personalizar */
}

.modal-dialog-scrollable .modal-content::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.modal-dialog-scrollable .modal-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ahora si, el div padre del modal que es popup */
.popup{
    max-height: 40vmax !important;
    width: 92%;
    margin: 0;
    padding: 1rem;
    background-color: rgb(242, 242, 242);
    display: flex;
    flex-direction: row;
    position: relative;
    overflow-y: auto !important;
}
.carrusel-interno{
    width: 10%;
    height: 4.6rem;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 1.5vmax;
    padding: 0.1rem;
    margin-top: 0.7rem;
    margin-right: 26rem;
    gap: 0.4rem;
    border-radius: 0.2rem;
}
.div-dinamico{
    width: 60%;
    height: 100%;
    border: 1px solid gray;
    border-radius: 2px;
    cursor: pointer;
}
.div-dinamico img{
    margin: 0;
    padding: 2%;
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.cerrar{
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.575);
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.69);
    font-weight: bold;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.foto-popup{
    width: 40%;
    height: 50%;
    max-height: auto;
    margin-left: 7vmax;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}
.foto-popup img{
    width: 90%;
    margin-left: 1vmax;
    object-fit: contain;
    margin-top: 0.8rem;
    border-radius: .5rem;
    max-height: 400px;
    cursor: zoom-in !important;
}
.lupa{
    position: absolute;
    width: 12rem;
    height: 12rem;
    border: 2px solid #cccccc22;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    border-radius: 50%;
    pointer-events: none;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 300%;
    display: none;
    z-index: 999;
}
.sub-contenido{
    display: flex;
    flex-direction: column;
    width: 30vmax;
    height: auto;
    padding: 1rem;
}
.modal-header-producto{
    height: auto;
    width: 100%;
    border-bottom: 2px solid #e0e0e0;
}
.modal-header-producto h5{
    margin: 0;
    font-size: 2.8rem;
    font-family: "Jost", serif;
    font-weight: 520;
}
.modal-header-producto p{
    font-weight: normal;
    font-size: 1.1rem;
    font-family: "roboto", serif;
}

.modal-cantidad{
    width: 80%;
    height: auto;
}
.modal-cantidad span{
    font-size: .8rem;
    font-family: "cambria", serif;
}
.botones-modal {
  border: 1px solid gray;
  border-radius: 1.5rem;
  text-align: center;
  width: 6rem;
  height: 2.5rem;
  margin: 0;
}
.botones-modal button {
  border: 1px solid transparent;
  padding: 0.20rem 0.20rem;
  cursor: pointer;
  border-radius: 4px;
  margin: 0rem 0.4rem 0rem 0.4rem;
}
.checkout-modal{
  background-color: rgb(211, 165, 213);
  height: 3rem;
  width: 95%;
  border-radius: 1.5rem;
  border: transparent;
  color: black;
  margin: 0;
  padding: 1rem;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: bold;
}
.checkout-modal:hover {
  background-color: rgba(208, 136, 211, 0.971);
}
.talla{
  display: flex;
  flex-direction: column;
}
.talla .stock{
    color: gray;
    font-size: 0.5rem;
    font-family: "roboto", serif;
}
.talla .talla-actual{
    font-family: "roboto", serif;
    font-size: 0.8rem;
}
.tallas-botones{
    display: flex;
}
.tallas-botones button{
    margin-left: 0.5rem;
    border-radius: 1.5rem;
    border: 1px solid gray;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: "roboto", serif;
    padding: 0.20rem 0.90rem 0.20rem 0.90rem;
}
.tallas-botones button.activo {
  background-color: #333;
  color: white;
}

.tallas-botones button.sin-stock {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}
.descripcion{
  width: 100%;
  font-size: 1.1rem;
  padding-bottom: 1.5rem;
}
.descripcion span{
    display: block;
    margin-left: 1.1rem;
    font-size: 1rem;
}
.descripcion p{
    display: inline-block;
}
.detalles, .entrega, .descripcion{
  position: relative;
}
.detalles::after,
.entrega::after,
.descripcion::after{
    content: "";
    display: block;
    width: 94%;
    height: 1.5px;
    background-color: #e0e0e0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
/* *-*-*-*-*-* Responsive o Adaptable *-*-*-*-*-*-* */
@media (max-width: 768px) {
.popup{
    max-height: 70vmax !important;
    width: 100% !important;
    padding: 0 !important;
}
/* padre de carrusel */
.carrusel-interno{
    width: 12%;
    height: 15rem !important;
    margin-right: 0;
    top: 0.5vmax;
    left: 1.5vmax;
    padding: 0.1rem;
    margin-top: 0.5rem;
    gap: 0.1rem;
}
/* ahora si, div de carrusel e imagen */
.div-dinamico{
    width: 35px;
    height: 50px;
    margin: 0 !important;
}
.div-dinamico img{
    object-fit:fill;
    padding: 0.3rem 0rem 0.3rem 0rem;
}
/* boton cerrar */
.cerrar{
    border: none;
    right: 0.5rem;
    top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.324);
}
/* contenedor de la foto principal */
.foto-popup{
    width: 140px !important;
    height: 240px;
    margin-top: 0.1rem;
    padding: 0.5rem;
}
.foto-popup img{
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: contain;
}
/* div padre derecho que contiene la info del producto */
.sub-contenido{
    width: 19vmax;
    height: auto;
    padding: .4rem;
}
/* nombre del producto */
.modal-header-producto h5{
    margin-top: 1rem;
    font-size: 1.6rem;
}
/* precio del producto */
.modal-header-producto p{
    font-size: .9rem;
    margin: 0.4em 0 0.5rem 0 !important;
}
/* div da los botones de cantidad y botones */
.modal-cantidad{
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}
.botones-modal{
    height: 34px !important;
    margin: 0rem 0rem 0rem 1.7rem !important;
    padding: 0.18rem 0.5rem !important;
}
.botones-modal button{
    padding: 0 !important;
    margin: 0 !important;
}
/* div padre del bot¨Žn de pago */
.sumar-cesta{
    width: 100%;
    margin-top: 0.8rem !important;
    padding: 0 !important;
}
/* boton de pago */
.checkout-modal{
    height: 3rem;
    width: 96%;
    padding: 0.5rem;
    font-size: 0.65rem;
    margin: 0 !important;
}
/* tallas debajo del bot¨Žn de pago */
.talla .stock{
    margin-top: 0.1rem !important;
}
.talla .talla-actual{
    margin-top: 0.1rem !important;
}
.tallas-botones button{
    margin-top: 0 !important;
}
/* div padre de descripci¨Žn del producto */
.descripcion{
    height: auto;
    padding-bottom: 1rem !important;
}
.detalles, .entrega, .descripcion{
    margin-top: 0.5rem;
}
.detalles, .entrega, .descripcion span, li{
    font-size: .9rem;
}
}