
.cart-container {
    max-width: 1200px;
    margin: 70px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #18232f;
    overflow: hidden;
}

.cart-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 70px;
    border-bottom: 1px solid #959595;

}


#top-section-paynow {

    margin-top: 20px;
    align-self: center;
}

.cart-container .cart-top-section h2 {
    text-align: center;
    font-family: 'Gilroy-Bold', sans-serif;
    color: #fff;

}

.cart-content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.cart-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: max-content;
    padding: 20px 0px;
    background-color: transparent;
    color: #FFFFFF;
    margin-left: 50%;
}

#pay-now {
    margin-top: 20px;
    align-self: flex-end;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#cart-delivery {
    padding-bottom: 15px;
    border-bottom: 1px solid #959595;

}
.cart-full-payment {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: 'Gilroy-Bold', sans-serif;
    font-size: 1.2em;
    color: #FFFFFF;
    margin-top: 20px;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 50px;
    padding: 15px 20px;
    background-color: #68AAA5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #218838;
}

#cart-list {
    flex: 1;
    list-style-type: none;
    padding: 0;
    margin-left: 20px;
}

#cart-list li {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    padding-top: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #ddd;
}


.cart-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.cart-item img {
    width: 256px;
    height: 157px;
    object-fit: cover;
    border-radius: 15px;
}

.cart-item-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.cart-item-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


.cart-item-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    flex-grow: 1;
}

.cart-item-details .item-name {
    font-size: 18px;
    font-family: 'Gilroy-Bold', sans-serif;
    color: #FFFFFF;
}

.cart-item-details .item-desc {
    margin-top: 0.5rem;
}

.cart-item-price , .cart-item-quantity {
    font-family: 'Gilroy-Bold', sans-serif;
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.cart-item-price .old-price {
    text-decoration: line-through;
    color: #888;
}


.cart-item .remove-item {
    position: absolute;
    right: 10px;
    bottom: 45px;
    color: white;
    cursor: pointer;
}



.cart-item-quantity {
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
}

.cart-item-quantity button {
    background-color: transparent;
    color: white;
    border: none;
    padding: 0 5px;
    cursor: pointer;
}

.cart-item-quantity input {
    width: 25px;
    background-color: transparent ;
    color:white;
    text-align: center;
    border: none;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-start;
}


.clear-cart {
    background-color: lightgray;
    color: black;
}

.clear-cart:hover {
    background-color: darkgray;
}

.remove-item {
    cursor: pointer;
    color: white;
    text-decoration: underline;

}

.remove-item:hover {
    text-decoration: underline;
}


.item-vat{
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

#back-to-shopping {
    display: none;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    color: #68AAA5;
    text-decoration: underline;
    cursor: pointer;
}

#back-to-shopping:hover {
    color: #218838;
}



@media (max-width: 1024px){
    .cart-item-details {
    }



    .cart-item img {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .cart-container {

        padding: 0px;
        border: none;
        border-radius: 0px;
    }
    .cart-content {
        flex-direction: column;
    }

    .cart-footer {
        margin-bottom: 20px;
        flex: 0 0 165px;

    }

    #cart-list {
        margin-left: 0;
    }

    #cart-list li {
        padding-top: 20px;
        padding-bottom: 20px;

    }
    .cart-item-content {
        flex-direction: column;
    }

    .cart-item img {
        width: 139px;
        height: 150px;
        object-fit: cover;
    }

    .cart-item-details, .cart-item-quantity, .cart-item-price {
        margin-bottom: 0;
    }


    .cart-item-details {
        flex: 2;
        font-size:12px;
        margin-left: 10px;
    }

    .cart-item-details .item-desc {
        margin-top: 0px;
    }

    .cart-item-info {
        margin-left: 10px;
        width: auto;

    }

    .cart-item-price, .cart-item-quantity {
        flex: none;
        width: 50%;
    }

    .cart-item-price {
        order: 1;
        margin-top: 20px;
        align-items: flex-start;
        justify-content: center;

    }

    .cart-item-price .item-price, .cart-item-details .item-name{
        font-size:17px;

    }


    .cart-item-quantity {
        order: 2;
        margin-top: 20px;

        text-align: right;
        justify-content: flex-end;
    }

    .cart-item-quantity input {
        width: 26px;
    }

    .cart-item .remove-item {
        position: absolute;
        right: 0px;
        top: 24px;
        color: white;
        cursor: pointer;
        font-size:12px;
    }

    .cart-footer {
        margin-left: 30%;
    }
}


@media (max-width: 539px) {
    .cart-item-price .item-price{
        font-size:12px;
    }
    .cart-item-quantity button {
        padding: 0 2px;
    }

    .cart-item-details {
        width: auto;
    }

    .cart-footer {
        margin-left: 10%;
    }
}