.cart {
    text-align: center;
    margin-top: 5%;
}

.cart h2 {
    color: rgb(22, 22, 22);
    font-size: 16px;
    font-weight: 200;
}

.cart h4 {
    margin-top: 1%;
    color: rgb(129, 126, 126);
    font-weight: 100;
    font-size: 12px;
}

.items {
    display: grid;
    width: 100%;
    height: 27vh;
    align-items: center;
    grid-template-rows: 1fr;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr 1fr 1fr;
}

.items :nth-child(3) {
    grid-column: 3 / 4;
    justify-items: flex-end;
}

.items article {
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: rgb(116, 113, 113);
    font-weight: 500;
    width: fit-content;
}

#item-image {
    height: 50%;
    width: 50%;
    overflow: hidden;
}

.items label {
    width: fit-content;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: rgb(116, 113, 113);
    font-weight: 500;
}

.items select {
    width: fit-content;
    border: none;
    background-color: white;
    height: 10%;
}

#delete-item {
    font-size: 20px;
}

.checkout {
    display: grid;
    align-items: center;
    width: 95%;
    grid-template-columns: 5fr 1fr 1fr 1fr;
}

.checkout :nth-child(1) {
    grid-column: 2 / 3;
}

.checkout h2 {
    color: rgb(44, 44, 44);
    font-size: 14px;
}

.checkout a {
    color: black;
    display: inline-block;
    box-sizing: border-box;
    border: 2px solid #000;
    background-color: #FFF;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    padding: 8px 44px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0;
    outline: none;
}

@media (min-width: 1500px) {
    .items {
        width: 60vw;
        margin: auto
    }

    .checkout {
        width: 52vw;
        margin: auto;
    }
}

@media (max-width: 500px) {

    .items {
        display: grid;
        grid-template-columns: 3fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 4fr 4fr;
    }

    .items :nth-child(2) {
        grid-column: 2 / 5;
    }

    .items :nth-child(3) {
        grid-column: 2 / 3;
    }

    .items :nth-child(4) {
        grid-column: 3 / 4;
    }

    .checkout a {
        position: fixed;
        bottom: 0;
        background-color: #172c50;
        color: white;
        border: none;
        height: 7%;
        padding-top: 4%;
    }

    #item-image {
        height: 70%;
        width: 100%;
        margin: 0;
        object-fit: contain;
    }

    .checkout :nth-child(2) {
        margin-left: 40px;
    }

    #delete-item {
        grid-column: 6;
        grid-row: 1;
        font-size: 10px;
    }

}