@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

a {
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    margin-bottom: 0;
    /* Puedes ajustar según sea necesario */
    text-align: left;
}

.contenido {
    display: block;
    margin: 0 auto;
    max-width: 1400px;
    padding: 10px;
    padding-bottom: 92px;
}

.row {
    display: flex;
    justify-content: space-around;
}

/* IMAGEN CENTRAL Y CARRUSEL DE IMAGENES */
.imagen-container {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}


.div-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-central {
    width: 100%;
    border-color: rgb(255 179 179 / 98%);
    border-width: 2px;
    border-style: groove;
}

.img-lupa {
    background-color: rgb(255 179 179 / 98%);
    padding: 14px;
    position: absolute;
    bottom: 0px;
    right: 0px;
    display: flex;
    transition: 0.1s;
}

.img-lupa:hover {
    background-color: rgba(204, 204, 204, 0.608);
    cursor: pointer;
}

.img-lupa img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.modal-imagen {
    width: 100vw;
    height: 100vh;
    position: fixed;
    background-color: #00000079;
    top: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cont-img-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 80%;
    max-height: 90%;
    overflow: hidden;
    height: 100%;
}

.cont-img-modal .img-central {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Mantener la relación de aspecto */
}

.close-modal {
    background-color: rgb(255, 24, 24);
    padding: 10px;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    transition: 0.2s;
}

.close-modal:hover {
    background-color: #ff0000;
    cursor: pointer;
}

.carousel {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.carousel img {
    width: 130px;
    height: 130px;
    display: block;
}

.arrow {
    position: absolute;
    top: 60px;
    padding: 0;
    background: #ffffff;
    border-radius: 50%;
    border: 1px solid rgb(210, 2, 2);
    font-size: 24px;
    line-height: 24px;
    color: #ff0000;
    display: block;
    width: 40px;
    height: 40px;
}

.arrow:focus {
    outline: none;
}

.arrow:hover {
    background: #ff0000;
    cursor: pointer;
    color: #ffffff;
}

.prev {
    left: 7px;
}

.next {
    right: 7px;
}

.gallery {
    width: 390px;
    overflow: hidden;
}

.gallery ul {
    height: 130px;
    width: 9999px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: margin-left 250ms;
    font-size: 0;
}

.gallery li {
    display: inline-block;
}

/* INFORMACION DEL PRODUCTO */
.info-producto {
    padding: 20px;
    width: 50%;
}

.info-producto h1 {
    font-size: 2em;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    font-style: normal;
    line-height: 1;
}

.informacion-pro {
    margin-bottom: 20px;
    font-family: "Poppins", sans-serif;
}

.informacion-pro div {
    width: 100%;
    display: flex;
}

.informacion-pro label {
    width: 150px;
    font-weight: bold;
}

/* FORMULARIO PARA LA COMPRA DEL PRODUCTO */
#formulario-comprar {
    border-color: rgb(255, 0, 0);
    border-width: 3px;
    border-style: dashed;
    border-radius: 10px;
    padding: 6px 25px 25px 25px;
}

.precio-mostrar {
    color: red;
    font-size: 55px;
    font-weight: bold;
    font-family: monospace;
    margin: 10px 25px;
}

.cont-inc-imps {
    margin-bottom: 15px;
}

.text-recargo {
    font-size: 17px;
}

#inc-imps {
    font-family: "Poppins", sans-serif;
    margin-bottom: 10px;
}

.div-añadir-carrito {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.custom-input {
    width: 147px;
    padding: 5px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 27px;
    font-family: monospace;
    outline: none;
    border-top: 2px solid #aa0404;
    border-bottom: 2px solid #aa0404;
    border-left: none;
    border-right: none;
}

.cont-boton-cantidad {
    display: flex;
    height: 40px;
}

.cont-boton-cantidad input[type="number"]::-webkit-inner-spin-button,
.cont-boton-cantidad input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cont-boton-cantidad input[type="number"] {
    appearance: none;
    -moz-appearance: textfield;
}

.cont-boton-cantidad button {
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

.cont-boton-cantidad i {
    font-size: 16px;
}

.cont-boton-cantidad button {
    width: 50px;
    height: 40px;
    background-color: rgb(255, 255, 255);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: red;
    border: 2px solid #aa0404;
}

.btn-incrementar {
    border-radius: 5px 0 0 5px;
}

.btn-decrementar {
    border-radius: 0 5px 5px 0;
}

.div-carrito {
    width: 40%;
    height: 40px;
}

.div-carrito a {
    display: flex;
    width: 100%;
    height: 100%;
    font-size: 17px;
    align-items: center;
    justify-content: space-evenly;
    background-color: #ff0000;
    color: white;
    border-color: #ff0000;
    border-radius: 5px;
    transition: 0.2s;
}

.div-carrito a:hover {
    background-color: #ffffff;
    cursor: pointer;
    color: red;
    border-width: 1px;
    border-color: red;
    border-style: double;
}

.compartir-producto {
    display: flex;
    justify-content: space-evenly;
    height: 60px;
    align-items: center;
}

.compartir-producto li {
    width: 24%;
    font-size: 20px;
    font-family: "Poppins", sans-serif;
}

.compartir-producto a {
    display: flex;
    color: black;
    justify-content: space-evenly;
}

#comp-facebook {
    color: rgb(55, 0, 255);
    font-size: 30px;
}

#comp-instragram {
    background: radial-gradient(circle at 30% 107%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285aeb 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 30px;
}

.cont-detall {
    margin-bottom: 10px;
}

.descripcion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-color: rgb(255, 0, 0);
    border-width: 1px;
    border-style: inset;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 10px 30px
}

.descripcion table {
    width: 100%;
}

.atri-titulo {
    font-weight: bold;
    font-size: 18px;
    width: 40%;
}

.atri-contenido {
    color: #898989;
}

.titulo-caracteristica {
    font-weight: bold;
    font-size: 21px;
    width: 40%;
}

@media screen and (max-width: 1010px) {
    .div-añadir-carrito {
        flex-direction: column;
    }

    .cont-boton-cantidad {
        margin-bottom: 10px;
    }

    .div-carrito {
        width: 258px;
    }

    .precio-mostrar {
        font-size: 33px;
    }

    .text-recargo {
        font-size: 14px;
    }

    .info-producto h1 {
        font-size: 1.7rem;
    }
}

@media screen and (max-width: 690px) {
    .row {
        flex-direction: column;
        align-items: center;
    }

    .imagen-container {
        width: 80%;
    }

    .info-producto {
        width: 80%;
    }

    .div-añadir-carrito {
        flex-direction: row;
    }

    .cont-boton-cantidad {
        margin-bottom: 0px;
    }
}

@media screen and (max-width: 590px) {
    .div-añadir-carrito {
        flex-direction: column;
    }

    .cont-boton-cantidad {
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 375px) {
    .precio-mostrar {
        font-size: 25px;
    }

    .custom-input {
        width: 70px;
    }

    .div-carrito {
        width: 180px;
    }
}

@media screen and (max-width: 320px) {
    .precio-mostrar {
        font-size: 22px;
    }
}

.carrito__boton__sidebar {
    width: 100%;
    background: transparent;
    border: 2px solid #aa0404;
    outline: none;
    border-radius: 4px;
    height: 100%;
}

/* INICIO CSS SILEBAR */
#background-silebar-carrito {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.63);
    display: none;
    z-index: 15;
}

#contenedor-silebar-carrito {
    position: fixed;
    top: 0;
    display: none;
    display: flex;
    background-color: white;
    width: 330px;
    height: 100%;
    transition: right 0.5s ease;
    /* Ajuste de la transición */
}

#silebar-categorias-carrito {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#silebar-categorias-carrito hr {
    width: 100%;
    height: 1px;
    background-color: red;
}

.close-silebar-carrito {
    display: flex;
    justify-content: flex-end;
    background-color: #f7f7f7;
    border-top: 5px solid rgb(234, 34, 34);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close-silebar-carrito label {
    display: flex;
    padding: 12px 17px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.close-silebar-carrito label:hover {
    background-color: rgb(239, 239, 239);
}

.close-silebar-carrito label img {
    width: 25px;
}

/* Estilos para la parte de las categorias */
#silebar-categorias-carrito ul {
    display: flex;
    padding: 20px;
    list-style: none;
    flex-direction: column;
    height: calc(100vh - 82px);
    overflow-y: auto;
}

#silebar-categorias-carrito li {
    padding: 17px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border-radius: 5px;
    font-size: 20px;
    color: #4c4c4c;
    border-left: 5px solid rgba(243, 243, 243, 0);
}

.simnbolo {
    width: 12px;
}

#silebar-categorias-carrito li:hover {
    background-color: #f7f7f7;
    border-left: 5px solid red;
    color: black;
}

.listaItems span {
    text-transform: uppercase;
}

li:hover .simbolo {
    color: red;
    font-weight: bold;
}

/* estilos para las subcategorias */
#silebar-subcategoria-carrito {
    display: block;
}

.comprar_productos_carrito {
    width: 90%;
    background-color: #eb2929;
    color: #ffffff;
    font-weight: 800;
    border-radius: 7px;
    margin: 1rem;
    padding: 0.55rem;
    border: none;
    outline: none;
}

.boton-eliminar-carrito {
    background: transparent;
    border: none;
    outline: none;
    background-color: #ff4747;
    padding: 0.45rem;
    border-radius: 5px;
    width: 45px;
    height: auto;
}

.contenido_productos-pago {
    margin: 1rem;
}

.cantidad_productos_contenido {
    background-color: #85c1e9;
    padding: 0.85rem;
    border-radius: 7px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.cantidad_productos_contenido .cantidad_producto--span {
    font-weight: bold;
}

.total_pagar_productos {
    font-weight: 500;
}

.total_pagar-span {
    color: #ff4747;
}