#cart{
    background-color: var(--contrast-color);
    padding-bottom: 1rem;


    & h1{
        padding-top: 2rem;
        margin-left: 10%;
        font-family: Winco;
        font-size: 4rem;
        font-weight: 800;
        color: var(--main-color);
        margin-bottom: 2rem;
    }

    #entries{
        width: 100%;
        min-height: 50vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: var(--main-color);

        & .entry{
            background-color: var(--variant-color);
            height: 12rem;
            display: flex;
            width: 80%;
            justify-content: space-around;
            border-radius: 2rem;
            margin-bottom: 1rem;
            align-self: center;
            align-items: center;
            

            & img{
                border: 1px solid var(--contrast-color);
                border-radius: 2rem;
                background-color: var(--main-color);
                height: 80%;
                aspect-ratio: 1;
                object-fit: contain;
            }

            & .information{
                width: 45%;
                height: 80%;

                & h2{
                    font-family: Winco;
                    font-size: 2rem;
                    font-weight: 800;
                }

                & .price{
                    font-size: 2.5rem;
                } 

                & .description{
                    line-height: 1;
                }
            }

            & .count {
                height: 3rem;
                display: flex;

                & button{
                    height: 100%;
                    width: 3rem;
                    border: none;
                    background-color: unset;
                    font-size: 2rem;
                    cursor: pointer;
                    background-color: var(--main-color);
                }



                & p{
                    height: 100%;
                    font-size: 2rem;
                    width: 4rem;
                    text-align: center;
                    background-color: var(--main-color);
                    border-left: 1px solid var(--contrast-color);
                    border-right: 1px solid var(--contrast-color);
                }
            }

        }
    }


    #total{
        width: 95%;
        margin-left: 2.5%;
        margin-top: 2rem;
        border-top: 1px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: flex;
        justify-content: space-between;
        align-items: center;

        & p{
            padding-top: 2rem;
            margin-left: 7.5%;
            font-family: Winco;
            font-size: 4rem;
            font-weight: 800;
            color: var(--main-color);
            margin-bottom: 2rem;
        }

        & button{
            margin-right: 7.5rem;
            height: 3rem;
            padding: 2rem;
            line-height: 0;
        }
    }
}

@media screen and (max-width: 900px) {
    #cart{
        & h1{
            margin-left: 0;
            text-align: center;
        }
        & #entries {
            & .entry {
                height:fit-content;
                width: 90%;
                flex-direction: column;

                & img {
                    width: 50%;
                    aspect-ratio: 1;
                    object-fit: contain;
                    margin-top: 0.8rem;
                    margin-bottom: 0.5rem;
                }

                & .information {
                    width: 90%;
                }

                & .count {
                    margin-bottom: 0.5rem;
                }

                > button {
                    margin-bottom: 0.5rem;
                }
            }
        }


        
        #total{
            flex-direction: column;
            margin: 0;
            width: 100%;

            & p{
                margin: 0;
                padding: 0;
            }

            & button{
                margin: 0;
                margin-bottom: 5vh;
            }
        }
    }
}