@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,500;1,100;1,200&display=swap');
:root {
    --prin-color: rgb(244, 250, 255);
  }

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.todo{
    height: 100%;
    background: #000428;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, hsla(40, 9%, 7%, 0.99), hsla(234, 100%, 8%, 0.99)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, hsla(224, 97%, 14%, 0.7), hsla(240, 100%, 3%, 0.774)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    display: grid;
    grid-template-columns: 4fr 1fr;
}

.h_mobile{
    display: none;
}

main{
    height: 100%-1.5rem;
    width: 100%-1.5rem;
    background-color: var(--prin-color);
    position: relative;
    margin: 1.5rem 0 1.5rem 1.5rem;
    border-radius: 1.1rem;
    padding: 2rem;
}

main h2{
    color: rgb(7, 4, 46);
    font-size: 1.7rem;
    margin-bottom: 2rem;
    margin-bottom: 50px;
    text-align: center;
}

#caja_prods{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.un_pro{
    color: #fff;  
}

.text_pro{
    width: 65%;
    background: #000428;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, hsla(40, 9%, 7%, 0.99), hsla(234, 100%, 8%, 0.99)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, hsla(224, 97%, 14%, 0.7), hsla(240, 100%, 3%, 0.774)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    padding: 0.6rem;
    border-radius: 1rem;
    margin: -1rem auto 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.text_pro h3, p{
    font-size: 1rem;
    font-weight: 400;
}

.text_pro button{
    border: 0;
    background-color: #fff;
    color: #000428;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 1rem;
    cursor: pointer;
    border: 2px solid var(--prin-color);
    transition: background-color 0.2s, color 0.2s;
}

.text_pro button:hover{
    background: #000428;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, hsla(40, 9%, 7%, 0.99), hsla(234, 100%, 8%, 0.99)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, hsla(224, 97%, 14%, 0.7), hsla(240, 100%, 3%, 0.774)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: #fff;
}

aside{
    padding: 2rem;
    padding-left: 0;
    color: var(--prin-color);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

aside .logo{
    font-weight: 400;
    font-size: 1.8rem;
    padding: 1rem;
}


aside nav ul{
    list-style:none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

aside button{
    background-color: transparent;
    color: var(--prin-color);
    border: 0;
    font-size: 1rem;
    font-weight: 500;
    text-transform: capitalize;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    padding: 0.9rem;
    border-radius: 0 1rem 1rem 0;
    position: relative;
    width: 100%;
}

.active{
    background-color: var(--prin-color);
    font-weight: 700;
    color: #000428;
}

.active::before{
    content: '';
    position: absolute;
    width: 1rem;
    height: 2rem;
    bottom: 100%;
    left: 0;
    background-color: transparent;
    border-bottom-left-radius: 0.6rem;
    box-shadow: 0 1rem 0 var(--prin-color);
}

.active::after{
    content: '';
    position: absolute;
    width: 1rem;
    height: 2rem;
    top: 100%;
    left: 0;
    background-color: transparent;
    border-top-left-radius: 0.6rem;
    box-shadow: 0 -1rem 0 var(--prin-color);
}


.bi-hand-index::before {
    transform: rotateZ(90deg);
}

nav a{
    background-color: transparent;
    margin-top: 20px;
    padding-top: 3px;
    color: var(--prin-color);
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    font-size: 1rem;
    text-transform: capitalize;
    text-decoration: none;
}

.numerito{
    background-color: var(--prin-color);
    color: #000428;
    padding: 0.15rem 0.25rem;
    border-radius: 0.25rem;
}

.f_text{
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 200;
    
}

.link-f{
    color: white;
    text-decoration: none;
}

/*Carrito*/


.carrito_active{
    background-color: var(--prin-color);
    color: #000428;
    font-weight: 700;
    width: 100%;
    border-radius: 0 1rem 1rem 0;
    position: relative;
}

.carrito_active::before{
    content: '';
    position: absolute;
    width: 1rem;
    height: 2rem;
    bottom: 100%;
    left: 0;
    background-color: transparent;
    border-bottom-left-radius: 0.6rem;
    box-shadow: 0 1rem 0 var(--prin-color);
}

.carrito_active::after{
    content: '';
    position: absolute;
    width: 1rem;
    height: 2rem;
    top: 100%;
    left: 0;
    background-color: transparent;
    border-top-left-radius: 0.6rem;
    box-shadow: 0 -1rem 0 var(--prin-color);
}

.car_vacio, .car_comprado{
    font-size: 1.2rem;
}

.car_prods{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.car_pro{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0.5rem;
    padding-right: 1rem;
    border-radius: 1rem;
}

.car_img{
    width: 5rem;
    border-radius: 1rem;
}

.tit_car_pro, .cant_car_pro, .pre_car_pro, .subt_car_pro{
    width: 15rem;
}

.car_pro small{
    font-size: 0.75rem;
}

.elim_car_pro{
    border: 0;
    background-color: transparent;
    color: red;
    cursor: pointer;
}

.car_acciones{
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}


.car_acc_izq{
    display: flex;
}

.car_acc_vaciar{
    border: 0;
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    color: #000428;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.car_acc_der{
    display: flex;
}

.car_acc_total{
    display: flex;
    background-color: white;
    padding: 1rem;
    border-radius: 1rem 0 0 1rem;
    color: #000428;
    text-transform: uppercase;
    gap: 1rem;
}

.car_acc_comprar{
    border: 0;
    background: #000428;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, hsla(40, 9%, 7%, 0.99), hsla(234, 100%, 8%, 0.99)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, hsla(224, 97%, 14%, 0.7), hsla(240, 100%, 3%, 0.774)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    padding: 1rem;
    border-radius: 0 1rem 1rem 0;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
}

.disabled{
    display: none;
}

.close-menu {
    display: none;
}

@media screen and (max-width: 1369px) {
    .car_pro{
        width: 100%;
        font-size: 0.5rem;
        padding: 0.3rem;
        padding-right: 0.5rem;
        border-radius: 0.5rem;
    }

    .car_img{
        width: 3.5rem;
    }
    
    .car_pro p, h3{
        font-size: 0.7rem;
    }
    
    .tit_car_pro, .cant_car_pro, .pre_car_pro, .subt_car_pro{
        width: 4rem;
    }

    .car_pro small{
        font-size: 0.6rem;
    }
    
    /* Acciones */

    .car_acciones{        
        font-size: 0.9rem;
    }

    .car_acc_izq{
        width: 22%;
        height: auto;
    }
    
    .car_acc_vaciar{
        padding: 0.3rem;
        border-radius: 0.6rem;
        font-size: 0.7rem;
        font-weight: 700;
    }
    
    .car_acc_der{
        width: 70%;
    }
    
    .car_acc_total{
        width: 35%;
        display: flex;
        flex-direction: column;
        padding: 0.3rem;
        border-radius: 0.6rem 0 0 0.6rem;
        gap: 0.5rem;
    }

    .car_acc_total p{
        font-size: 0.7rem;
        font-weight: 700;
    }
    
    .car_acc_comprar{
        width: 65%;
        padding: 0.3rem;
        border-radius: 0 0.6rem 0.6rem 0;
        font-size: 0.8rem
    } ;
    
}

@media screen and (max-width: 850px) {
    
    #caja_prods{
        grid-template-columns: 1fr 1fr 1fr;
    }

    .car_pro{
        width: 100%;
        font-size: 0.5rem;
        padding: 0.3rem;
        padding-right: 0.5rem;
        border-radius: 0.5rem;
    }

    .car_img{
        width: 3.5rem;
    }
    
    .car_pro p, h3{
        font-size: 0.7rem;
    }
    
    .tit_car_pro, .cant_car_pro, .pre_car_pro, .subt_car_pro{
        width: 4rem;
    }

    .car_pro small{
        font-size: 0.6rem;
    }
    
    /* Acciones */

    .car_acciones{        
        font-size: 0.9rem;
    }

    .car_acc_izq{
        width: 22%;
        height: auto;
    }
    
    .car_acc_vaciar{
        padding: 0.3rem;
        border-radius: 0.6rem;
        font-size: 0.7rem;
        font-weight: 700;
    }
    
    .car_acc_der{
        width: 70%;
    }
    
    .car_acc_total{
        width: 35%;
        display: flex;
        flex-direction: column;
        padding: 0.3rem;
        border-radius: 0.6rem 0 0 0.6rem;
        gap: 0.5rem;
    }

    .car_acc_total p{
        font-size: 0.7rem;
        font-weight: 700;
    }
    
    .car_acc_comprar{
        width: 65%;
        padding: 0.3rem;
        border-radius: 0 0.6rem 0.6rem 0;
        font-size: 0.8rem
    } ;
}

@media screen and (max-width: 675px) {
    
    #caja_prods{
        grid-template-columns: 1fr 1fr;
    }

    .car_pro{
        width: 100%;
        font-size: 0.5rem;
        padding: 0.3rem;
        padding-right: 0.5rem;
        border-radius: 0.5rem;
    }

    .car_img{
        width: 3.5rem;
    }
    
    .car_pro p, h3{
        font-size: 0.7rem;
    }
    
    .tit_car_pro, .cant_car_pro, .pre_car_pro, .subt_car_pro{
        width: 4rem;
    }

    .car_pro small{
        font-size: 0.6rem;
    }
    
    /* Acciones */

    .car_acciones{        
        font-size: 0.9rem;
    }

    .car_acc_izq{
        width: 20%;
        height: auto;
    }
    
    .car_acc_vaciar{
        padding: 0.3rem;
        border: 1px solid rgb(226, 239, 252);
        border-radius: 0.6rem;
        font-size: 0.7rem;
        font-weight: 700;
    }
    
    .car_acc_der{
        width: 70%;
    }
    
    .car_acc_total{
        width: 35%;
        display: flex;
        flex-direction: column;
        padding: 0.3rem;
        border-radius: 0.6rem 0 0 0.6rem;
        gap: 0.5rem;
    }

    .car_acc_total p{
        font-size: 0.7rem;
        font-weight: 700;
    }
    
    .car_acc_comprar{
        width: 65%;
        padding: 0.3rem;
        border-radius: 0 0.6rem 0.6rem 0;
        font-size: 0.8rem
    } ;
}

@media screen and (max-width: 650px) {
    .todo{
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    aside {
        position: fixed;
        z-index: 9;
        background: #000428;  /* fallback for old browsers */
        background: -webkit-linear-gradient(to bottom, hsla(40, 9%, 7%, 0.99), hsla(234, 100%, 8%, 0.99)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg);  /* Chrome 10-25, Safari 5.1-6 */
        background: linear-gradient(to bottom, hsla(224, 97%, 14%, 0.7), hsla(240, 100%, 3%, 0.774)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        right: 0;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .75);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: 0.2s;   
    }

    .aside-visible {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .active::before,
    .active::after {
        display: none;
    }

    .carrito_active::before,
    .carrito_active::after{
        display: none;
    }

    main{
        position: relative;
        margin: 5.5rem 0.75rem 1rem 0.75rem;
        padding: 2rem 0.5rem 2rem 0.5rem;
    }

    #caja_prods{
        grid-template-columns: 1fr 1fr;
    }

    .un_pro img{
        display: block;
        width: 85%;
        margin: auto;
        border-radius: 1rem;
    }

    .h_mobile{
        background: #000428;  /* fallback for old browsers */
        background: -webkit-linear-gradient(to bottom, hsla(40, 9%, 7%, 0.99), hsla(234, 100%, 8%, 0.99)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg);  /* Chrome 10-25, Safari 5.1-6 */
        background: linear-gradient(to bottom, hsla(224, 97%, 14%, 0.7), hsla(240, 100%, 3%, 0.774)), url(../img/pngtree-white-festive-seamless-pattern-image_263333.jpg); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        width: 100%;
        height: 4.5rem;
        padding: 1rem;
        position: fixed;
        z-index: 3;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .h_mobile .logo {
        color: #fff;
        font-size: 1.6rem;
    }

    .open-menu, .close-menu {
        background-color: transparent;
        color: var(--prin-color);
        border: 0;
        font-size: 2rem;
        cursor: pointer;
    }

    .close-menu {
        width: 4rem;
        display: block;
        position: absolute;
        top: 0.2rem;
        left: 15.6rem;
    }
    
    /* Carrito */
    
    .car_vacio, .car_comprado{
        font-size: 1rem;
    }

    .car_prods{
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .car_pro{
        width: 100%;
        font-size: 0.5rem;
        padding: 0.3rem;
        padding-right: 0.5rem;
        border-radius: 0.5rem;
    }

    .car_img{
        width: 3.5rem;
    }
    
    .car_pro p, h3{
        font-size: 0.7rem;
    }
    
    .tit_car_pro, .cant_car_pro, .pre_car_pro, .subt_car_pro{
        width: 4rem;
    }

    .car_pro small{
        font-size: 0.6rem;
    }
    
    /* Acciones */

    .car_acciones{        
        font-size: 0.9rem;
    }

    .car_acc_izq{
        width: 20%;
        height: auto;
    }
    
    .car_acc_vaciar{
        padding: 0.3rem;
        border: 1px solid rgb(226, 239, 252);
        border-radius: 0.6rem;
        font-size: 0.7rem;
        font-weight: 700;
    }
    
    .car_acc_der{
        width: 70%;
    }
    
    .car_acc_total{
        width: 40%;
        display: flex;
        flex-direction: column;
        padding: 0.3rem;
        border-radius: 0.6rem 0 0 0.6rem;
        gap: 0.5rem;
    }

    .car_acc_total p{
        font-size: 0.8rem;
        font-weight: 700;
    }
    
    .car_acc_comprar{
        width: 60%;
        padding: 0.3rem;
        border-radius: 0 0.6rem 0.6rem 0;
        font-size: 0.8rem
    } ;

}

@media screen and (max-width: 400px) {
    #caja_prods{
        grid-template-columns: 1fr;
    }
}
