body{
    background-color: #f1f1f1;
}

/* ------ CONTENEDORES PRINCIPALES ------ */
.cart--main-container{
    width: 80%;
    box-sizing: border-box;
    margin: 30px auto;
    display: flex;
    gap: 50px;
}

.cart-container{
    box-sizing: border-box;
    flex: 1;
    padding: 12px;
}

.info-buy-container{
    box-sizing: border-box;
    width: 30%;
    padding: 12px;
}

.cart--title{
    margin: 0;
    margin-bottom: 16px;
    color: #056124;
    font-size: 1.8rem;
}

.products-container{
    background-color: #fff;
    padding: 16px;
    border-radius: 8px;
}
/* ---------------------------- */


/* ---------- PRODUCT LIST ----------- */
.product-item{
    box-sizing: border-box;
    display: flex;
    border-top: 1px solid #e0e0e0;
    justify-content: space-between;
    padding: 12px;
    align-items: center;
}

.product--item-container-main{
    flex: 2;
}

.product--item-container{
    text-align: center;
    flex: 1;
}

.product-item--info{
    margin: 0;
    color: #303030;
    font-size: 1rem;
}

.product-item--count-container{
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.less-button, .plus-button{
    border-radius: 8px;
    border: none;
    background-color: #056124;
    color: #fff;
    font-size: 1.25rem;
    padding: 0px 8px;
    transition: background-color .3s ease;
}

.less-button:hover, .plus-button:hover{
    cursor: pointer;
    background-color: #20ac25;
}

/* ----------------------------------- */


/* ------- ORDER CONTAINER ------- */
.order-summary-container{
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;

    & .order-container{
        display: flex;
        justify-content: space-between;
        margin-bottom: 16px;
        color: #303030;
        font-size: 1rem;
        font-weight: bold;

        & .order--product-count{
            display: flex;
            gap: 2px;
        }

        & .order--p{
            margin: 0;
        }
    }

    & .order--button{
        box-sizing: border-box;
        background-color: #056124;
        width: 100%;
        border-radius: 20px;
        padding: 8px;
        border: none;
        cursor: pointer;
        color: #fff;
        transition: background-color .3s ease;
        font-weight: bold;
        padding: 10px 25px;
        font-size: 1rem;
    }

    & .order--button:hover{
        background-color: #20ac25;
    }
}
/* ------------------------------- */


/* ESTILOS PARA CONTENEDOR SIN PRODUCTOS */
.empty-shopping-cart{
    background-color: #fff;
    box-sizing: border-box;
    width: 80%;
    margin: 50px auto;
    padding: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 6px #0005;
}

.empty--container{
    box-sizing: border-box;
    width: 500px;
    margin: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;

    & button{
        background-color: #054126;
        box-sizing: border-box;
        width: 80%;
        border: none;
        border-radius: 20px;   
        transition: background-color .3s ease;     

        & a{
            color: #fff;
            display: block;
            box-sizing: border-box;
            width: 100%;
            height: 100%;
            padding: 12px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1rem;
        }
    }

    & button:hover{
        background-color: #20ac25;
        transition: background-color .3s ease;
    }
}

.empty--info-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;

    & img{
        width: 80px;
    }

    & h2{
        font-size: 2rem;
        color: #054126;
        margin: 0;
        font-weight: bold;
    }
}
/* ------------------------------------- */


/* STYLES BY JS */
.hidden{
    display: none;
}
/* ------------ */


/* ------- MEDIA QUERIES ------- */
@media (max-width: 1000px){
    .cart--main-container{
        width: 97%;
    }

    .info-buy-container{
        width: 35%;
    }
}

@media (max-width: 768px){
    .footer{
        display: none;
    }

    .cart--main-container{
        width: 100%;
        margin-bottom: 120px;
    }

    .info-buy-container{
        width: 100%;
        position: fixed;
        bottom: 0;
        border-radius: 8px 8px 0 0;
        padding: 0;
        box-shadow: 3px 0 6px #0005;

        & .buy-container--title{
            display: none;
        }
    }

    
    /* --- Estilos para carrito vacío --- */
    .empty-shopping-cart{
        width: 90%;
    }
    /* ---------------------------------- */
}

@media (max-width: 600px){
    .empty--container{
        width: 100%;
    }
}
/* ------------------------------ */