@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --clr-white: #ececec;
    --clr-gray: #e2e2e2;
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

h1, h2, h3, h4, h5, h6, p, a, input, textarea, ul {
    margin: 0;
    padding: 0;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    
}


.wrapper {
    display: grid;
    grid-template-columns: 1fr 4fr;
    background-color: #212529;
}

aside {
    padding: 2rem;
    padding-right: 0;
    color: var(--clr-white);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    font-weight: 400;
    font-size: 1.3rem;
}
.logopng {
    width: 90%;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.boton-menu {
    background-color: transparent;
    border: 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    padding: 1rem;
    font-size: .85rem;
    width: 100%;
}

.boton-menu.active {
    background-color: #212529;
    color: white;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    position: relative;
}

.boton-menu.active::before {
    content: '';
    position: absolute;
    width: 1rem;
    height: 2rem;
    bottom: 100%;
    right: 0;
    background-color: transparent;
    border-bottom-right-radius: .5rem;
    box-shadow: 0 1rem 0 #212529;
}

.boton-menu.active::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 2rem;
    top: 100%;
    right: 0;
    background-color: transparent;
    border-top-right-radius: .5rem;
    box-shadow: 0 -1rem 0 #212529;
}

.boton-menu > i.bi-hand-index-thumb-fill,
.boton-menu > i.bi-hand-index-thumb {
    transform: rotateZ(90deg);
}

.boton-carrito {
    margin-top: 2rem;
}

.numerito {
    background-color: var(--clr-white);
    color: #212529;
    padding: .15rem .25rem;
    border-radius: .25rem;
}

.boton-carrito.active .numerito {
    background-color: var(--clr-main);
    color: var(--clr-white);
}


.boton-carrito-card {
    color:rgb(255, 255, 255);
    float: right;
    margin-left: 80%;
    cursor: pointer;
    z-index: 5;
    font-size: 23px;
    width: 9%;
}
.bi bi-cart-fill{
    float: right;
    cursor: pointer;
}
.logocheck {
float: right;
margin-top: -12%;
z-index: -1;
padding: 10px 10px;
width: 10px;
color: aqua;
margin-left: 49%;

}
.texto-footer {
    color: white;
    font-size: .85rem;
    text-align: center;
}

.icon-social{
    margin-top: 0%;
    font-size: 21px;
    cursor: pointer;
    z-index: 5;
    color: white;
    align-items: center;
    text-align: center;
    padding: 10px 10px 10px 10px;
    height: 33px;
    display: grid;
    grid-template: repeat(4, 1fr) / repeat(4, 1fr);
    column-gap: 23px; 
    align-content: center;
}

.bi-geo-alt-fill {
    border-radius: 10px;
    padding: 5px 5px;
    
    
} 
.bi-geo-alt-fill:hover {
    background-color: #00d084;
    color: white;
}
.bi-facebook{
    border-radius: 10px;
    padding: 5px 5px;
}
.bi-facebook:hover {
    background-color: #00d084;
    color: white;
}
.bi-instagram{
    border-radius: 10px;
    padding: 5px 5px;
}
.bi-instagram:hover {
    background-color: #00d084;
    color: white;
}
.bi-tiktok{
    border-radius: 10px;
    padding: 5px 5px;
}
.bi-tiktok:hover{
    background-color: #00d084;
    color: white;
}
.check-redes {
    margin: auto;
    padding: 0px 7px 0px 0px;
    color: white;
    }



main {
    background-color: #212529;
    margin: 1rem;
    margin-left: 0;
    border-radius: 1rem;
    padding: 3rem;
}

.titulo-principal {
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}
.title-h1 {
    font-family: arial;
    letter-spacing: 4px;
    color: white;
    font-size: 16px;

}

.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.producto-imagen {
    max-width: 1000px;
    text-align: center;
    position: relative;
    float: left;
    width: 14%;
}

.producto-detalles {
    background-color: #212529;
    color:white;
    padding: .8rem;
    border-bottom-right-radius: 1rem;
    margin-top: -4%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    text-align: center;
}
select{
position: relative;
padding: 10px 10px 10px 10px;
margin-left: 5%;
margin-bottom: 1%;
width: 90%;
text-align: center;

color: white;

cursor: pointer;
text-decoration: none;
font-size: 18px;
overflow: hidden;
transition: 0.5s;

background-color: #00d084;
border: none;
border-top-left-radius: 1rem;
border-bottom-right-radius: 1rem;
    
}
.producto-en-carrito {
    margin-bottom: 10%;
    margin-top: 5%;
}
.producto-info {
    color:white;
    text-align: center;
    margin-left: 20%;
    align-items: center;
}

.producto-titulo {
    font-size: 1rem;
    width: 80%;
    font-size: 18px;
    margin-left: 10%;
    color: white;
    float: inline-start;
    margin-top: -5%;
}
.producto-precio {
margin-top: 0%;
font-size: 18px;
margin-left: 0%;
color: white;



}
.producto-precio-inicial {
    margin-left: 0%;
    font-size: 14px;
    width: 100%;
    color: #00d084;
}
.logo-garantia {
    padding: 0px 0px 0px 0px;

}
.logo-garantia-img {
    width: 100px;
    float: right;
    margin-right: 1%;
    margin-top: -33%;
}

.producto-agregar {
    position: relative;
    padding: 5px 5px;
    margin: 0 18px;
    width: 90%;
    color: white;
    background-color:#fcb900;
    border:none;
    text-decoration-style: none;
    letter-spacing: 2px;
    font-size: 20px;
    overflow: hidden;
    transition: 0.5s;
    cursor: pointer;
    border-radius: 10px;
}


.producto-agregar:hover{
    background: #cf2e2e;
    color: white;
    transition-delay: 0.5s;
    

}
.producto-agregar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid #00d084;
    border-left: 2px solid #00d084;
    transition: 0.5s;
    transition-delay: 0s;  
}
.producto-agregar:hover:before {
    width: 100%;
    height: 100%;
}
.producto-agregar:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #00d084;
    border-right: 2px solid #00d084;
    transition: 0.5s;
    transition-delay: 0s;  
}
.producto-agregar:hover:after {
    width: 100%;
    height: 100%;
}


/** CARRITO **/

.contenedor-carrito {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.carrito-vacio,
.carrito-comprado {
    color: white;
}

.carrito-productos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.carrito-producto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #212529;
    color: white;
    padding: .5rem;
    padding-right: 1.5rem;
    border-radius: 1rem;
}

.carrito-producto-imagen {
    width: 4rem;
    border-radius: 1rem;
}

.carrito-producto small {
    font-size: .75rem;
}

.carrito-producto-eliminar {
    border: 0;
    background-color: transparent;
    color: var(--clr-red); 
    cursor: pointer;
}

.carrito-acciones {
    display: flex;
    justify-content: space-between;
}

.carrito-acciones-vaciar {
    border: 0;
    background-color: var(--clr-gray);
    padding: 1rem;
    border-radius: 1rem;
    color: #000000;
    text-transform: uppercase;
    cursor: pointer;
}
.carrito-acciones-solicitar {
    border: 0;
    background-color: #5477f5;
    padding: 1rem;
    border-radius: 1rem;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
}
.swal2-actions:not(.swal2-loading) .swal2-styled:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}
.swal2-styled.swal2-confirm {
    background-color: #000000;
}
.elemento {
    background-color:black;
}

.carrito-acciones-derecha {
    display: flex;
}

.carrito-acciones-total {
    display: flex;
    background-color: var(--clr-gray);
    padding: 1rem;
    color: #000000;
    text-transform: uppercase;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    gap: 1rem;
}

.carrito-acciones-comprar {
    border: 0;
    background-color:#cf2e2e;
    padding: 1rem;
    color: var(--clr-white);
    text-transform: uppercase;
    cursor: pointer;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}


.header-mobile {
    display: none;
}

.close-menu {
    display: none;
}

.disabled {
    display: none;
}
.logo-treecel {
    width: 50%;
    margin-left: 20%;
    margin-top: 20%;
}

.container-form {
    color: white;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    width:100%;
}
.container-form label {
    float: left;
    width: 80%;
    padding: 10px 10px 10px 10px;
}
.container-form input {
    float: left;
    padding: 10px 10px 10px 10px;
    width: 40%;
    border-radius: 5px;
    border: none;
}
.container-form button {
    float: left;
    padding: 5px 5px 5px 5px;
    width: 10%;
    margin-top: 5%;
    margin-left: -25%;
    background-color: #00d084;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border: none;
}
.container-form button:hover {
    background-color: #fcb900;
    transition: ease 0.5s;
}

/*** MEDIA QUERIES ***/

@media screen and (max-width: 1080px) {
    .contenedor-productos {
        grid-template: repeat(3, 1fr) / repeat(3, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .contenedor-productos {
        grid-template: repeat(2, 1fr) / repeat(2, 1fr);
    }
    
}

@media screen and (max-width: 600px) {

    .wrapper {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    .logopng{
        width: 0%;
    }

    aside {
        position: fixed;
        z-index: 9;
        background-color: #212529;
        left: 0;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .75);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: .2s;
    }

    .aside-visible {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .boton-menu.active::before,
    .boton-menu.active::after {
        display: none;
    }

    main {
        margin: 0.8rem;
        margin-top: 0;
        padding: 0.6rem;
    }
    .contenedor-productos {
        grid-template-columns: 1fr;
    }
    .header-mobile {
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 100%;

        
        background-color: #212529;

    }
    .header-mobile .logo {
        color: white;
        background-color:transparent;
        text-align: center;
        border-radius: 20px;
        width: 86%;
        
        padding: 10px 10px;
    }
    
    .icon-social {
        float: right;
        float: inline-start;
        font-size: 20px;
    }

    .open-menu, .close-menu {
        background-color: transparent;
        color: white;
        border: 0;
        font-size: 2rem;
        cursor: pointer;
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    .producto-imagen {
        width: 26%;
    }
    .producto-titulo {
        font-size: 1rem;
        width:70%;
        font-size: 14px;
        margin-left: 10%;
        color: white;
        float: inline-start;
        margin-top: -5%;
        margin-bottom: 1%;
    }
    .producto-precio {
        margin-top: 0%;
        font-size: 18px;
        margin-left: 0%;
        margin-bottom: 1%;
        color: white;
        }
    .producto-precio-inicial {
        margin-left: 0%;
        margin-bottom: 1%;
        font-size: 14px;
        width: 100%;
        color: white;
    }


    .carrito-producto {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: .5rem;
    }

    .carrito-producto-subtotal {
        display: none;
    }

    .carrito-acciones {
        flex-wrap: wrap;
        row-gap: 1rem;
    }
    .container-form label {
        float: left;
        width: 90%;
        padding: 10px 10px 10px 10px;
    }
    .container-form input {
        float: left;
        padding: 10px 10px 10px 10px;
        width: 100%;
    }
    .container-form button {
        float: left;
        padding: 5px 5px 5px 5px;
        width: 30%;
        margin-top: 5%;
        margin-left: 0%;
        background-color: #00d084;
        border-radius: 10px;
        color: white;
        font-size: 16px;
        cursor: pointer;
        border: none;
    }
    

}

@media screen and (max-width: 400px) {
    .contenedor-productos {
        grid-template-columns: 1fr;
    }
}