.cart{
    /*background-color: blueviolet;/**/
    min-height: 80vh;
    width: 80%;
    display: flex;
    flex-direction: row;
    margin: 30px auto;
    color: var(--text-white);
}

.cartProducts{
    margin: 0 auto;
    border-radius: 25px;
    background-color: var(--products-background);
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    height: min-content;
}

.emptyCartMessage{
    width: 100%;
    text-align: center;
    font-size: 1.5em;
    color: var(--titles-white);
    margin-top: 20px;
}

.cartProduct{
    width: 90%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--products-border-hover);
    border-radius: 25px;
}

.cartProductImage{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 20px;
}

.sideToSide{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.cartProductDetails{
    /*border: red dotted 2px;/**/
    width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 20px;
}

.cartProductName{
    font-size: 1.2em;
    font-weight: bold;
    color: var(--titles-white);
}

.cartProductActions{
    display: flex;
    flex-direction: row;
    margin: auto;
}

.cartProductID{
    font-size: 15px;
    width: 75px;
    margin-right: auto;
    margin-right: 70px;
}

.cartProductPrice{
    /*border: red dotted 2px;/**/
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin: auto;
    margin-right: 20px;
    min-width: 100px;
}

.cartAddOrRemoveUnit{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    /*background-color: var(--button-background);*/
    cursor: pointer;
    margin-left: auto;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.cartAddOrRemoveUnit>*{
    /*border: red dotted 1px;/**/
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--button-background);
} 

.cartAddOrRemoveUnit>*:hover{
    background-color: var(--button-background-hover);
}

.cartAddButton{
    border-radius: 0 15px 15px 0;
}

.cartRemoveButton{
    border-radius: 15px 0 0 15px;
}

.removeFromCartButton{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--button-background);
    border-radius: 15px;
    cursor: pointer;
    margin: auto;
    transition: all 0.3s ease;
}

.removeFromCartButton img{
    width: 25px;
    height: 25px;
    filter: var(--navbar-buttons);
}

.removeFromCartButton:hover{
    background-color: var(--button-background-hover);
    color: var(--button-text-hover);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.cartSummary{
    margin: 0 auto;
    border-radius: 25px;
    background-color: var(--products-background);
    width: 38%;
    display: flex;
    height: min-content;
    flex-direction: column;
    align-items: center;
}

.cartTitle{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--products-border-hover);
}

.cartTitleItem{
    font-size: 1.5em;
    font-weight: bold;
    color: var(--titles-white);
}

.cartSummaryItems{
    margin-top: auto;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-weight: bold;
}

.cartSummaryItemsSide{
    width: 100%;
    display: flex;
}

.cartSummaryPrice{
    margin-right: auto;
    font-size: 25px;
}

.cartSummaryShipping{
    font-size: 20px;
    text-align: right;
}

.cartPromocodeLabel{
    font-size: 16px;
    color: var(--text-white);
    margin: auto;
    margin-right: 10px;
    white-space: nowrap;
}

.cartPromocode{
    width: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
}

.cartPromocodeInput{
    width: 100%;
    padding: 5px 10px;
    border-radius: 15px;
    border: solid 2px var(--button-border);
    background-color: var(--button-background);
    color: var(--button-text);
    font-size: 16px;
    text-align: center;
}

.cartCheckoutButton{
    border: solid 2px var(--button-border);
    width: 100%;
    padding: 10px 0px;
    background-color: var(--button-background);
    color: var(--button-text);
    font-weight: bold;
    font-size: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cartCheckoutButton:hover{
    background-color: var(--button-background-hover);
    color: var(--button-text-hover);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .cart{
        flex-direction: column;
        width: 90%;
    }

    .cartProducts, .cartSummary{
        width: 100%;
    }

    .cartProduct{
        flex-direction: row;
        text-align: left;
    }

    .cartProductDetails{
        width: 100%;
        text-align: left;
    }

    .cartProductPrice, .cartProductID{
        margin-right: 0;
    }

    .cartProducts{
        margin-bottom: 10px;
    }

    .sideToSide{
        flex-direction: column;
        align-items: center;
    }

    .cartProductActions{
        flex-direction: row;
        margin: auto;
        flex-wrap: wrap;
    }

    .cartProductImage{
        margin-top: 0%;
        margin-bottom: auto;
    }

    .cartProductPrice{
        margin-bottom: 5px;
        width: 100%;
    }

    .cartAddOrRemoveUnit{
        display: flex;
    }

    .cartAddOrRemoveUnit>*{
        display: flex;
        min-width: 50px;
        margin: 5px;
        border-radius: 15px;
    }

    .cartAddButton{
        margin: 5px;
    }

    .cartSummary{
        height: fit-content;
    }

    .cartSummaryItemsSide{
        flex-direction: column;
    }

    .cartSummaryShipping{
        text-align: left;
    }
}