.cart-btn {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

#cart {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    margin:0 10px 0 0;
}
#cart1 {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    margin:0  0 10px 0;
}

.cart-quantity {
    width: 20px;
    height: 20px;
    color: white;
    background-color: #EF4056;
    position: absolute;
    margin: 10px 43px 0 0;
    right: 0;
    border: solid 2px #EF4056;
    border-radius: 10px;
    font-weight: bolder;
    text-align: center;
    padding-bottom: 20px;
    font-size: 14px;
}

.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 1em
}

.card {
    /*width: 15rem;*/
    margin: 1em;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: none;
    display: inline-block!important;
}

.card:hover .add-to-cart {
    transform: translateX(0);
}
button{
    border: none!important;
    background-color: transparent!important;
}

/*.product-image {*/
/*    margin-bottom: 1em*/
/*}*/

.add-to-cart {
    /*    background-color: black;*/
    /*    color: white;*/
    /*    position: absolute;*/
    /*    right: 0;*/
    /*    top: 65%;*/
    /*    padding: .5em 1em;*/
    /*    transform: translateX(300px);*/
    /*    transition: .5s ease;*/
    /*    outline: none;*/
    /*    border: none;*/
    cursor: pointer;
    /*    font-weight: bolder;*/
    /*    font-size: 1.2rem*/
}
.add-to-cart:after {
    font-family: "Font Awesome 5 Free";
    content: "\f291";
    color: white;
    font-size: 20px;
    padding: 5px;
    border-radius: 10px;
    float: left;
    margin: 0 10px 10px;
    background-color: #EF4056;
    font-weight: bold;
}
/*.product-price {*/
/*    padding-top: 1em;*/
/*    font-weight: bold;*/
/*    font-size: 1.5rem;*/
/*}*/

.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 25;
    transform: translateX(-200%);
    transition: .5s ease-out;
}
.cart-modal-overlay1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 2;
    transform: translateX(-500%);
    transition: .5s ease-out;
}

.cart-modal {
    height: 100vh;
    width: 30%;
    background-color: rgb(50,50,50);
    float: left;
    overflow: scroll;
    overflow-x: hidden;
    position: relative;
}

#close-btn {
    font-size: 1.5rem;
    float: right;
    margin: .5em 1em 0 0;
    color: white;
    cursor: pointer;
}
#close-btn1 {
    font-size: 1.5rem;
    float: right;
    margin: .5em 1em 0 0;
    color: white;
    cursor: pointer;
}

.cart-is-empty {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1em;
    display: none;

}

.total {
    display: flex;
    align-items: baseline;
    width: 100%;
    margin: 2em 0 2em 0;
    position: absolute;
    bottom: 180px;
    /*border-bottom: 1px solid lightgray;*/
}
.total1 {
    display: flex;
    align-items: baseline;
    width: 100%;
    margin: 2em 0 2em 0;
    position: absolute;
    bottom: 180px;
    /*border-bottom: 1px solid lightgray;*/
}

.cart-total {
    color: white;
    font-size: 24px;
    position: absolute;
    right: 25px;
    /*border-bottom: 1px solid lightgray;*/
}
.cart-total1 {
    color: white;
    font-size: 24px;
    position: absolute;
    right: 25px;
    /*border-bottom: 1px solid lightgray;*/
}

.total-price {
    color: white;
    font-size: 24px;
    display: block;
    position: absolute;
    left: 25px;
    /*border-bottom: 1px solid lightgray;*/
}
.total-price1 {
    color: white;
    font-size: 24px;
    display: block;
    position: absolute;
    left: 25px;
    /*border-bottom: 1px solid lightgray;*/
}

.cart {
    width: 90%;
    display: block;
    margin: auto;
    font-size: 1rem;
    font-weight: bolder;
    background-color: #f14f63;
    color: white;
    padding: 1em 2em;
    border-radius: 10px;
    outline: none;
    border: none;
    cursor: pointer;
    text-align: center;
    /*margin: 2em 0 1em 0;*/
    position:absolute;
    bottom:90px;
    transition: 0.4s;
    right: 15px;
}
.cart:hover{
    font-size: 1.1rem;
}
.checkout {
    width: 90%;
    display: block;
    margin: auto;
    font-size: 1rem;
    font-weight: bolder;
    background-color: #b4b4b2;
    color: black;
    padding: 1em 2em;
    border-radius: 10px;
    outline: none;
    border: none;
    cursor: pointer;
    text-align: center;
    /*margin: 2em 0 1em 0;*/
    position:absolute;
    bottom:20px;
    transition: 0.4s;
    right: 15px;

}
.checkout:hover{
    font-size: 1.1rem;
    color: white;
}

.product-rows {
    margin-top: 3em;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.product-row {
    display: flex;
    align-items: center;
}

.cart-image {
    width: 7rem;
    margin: 1em;
    border-radius: 10px;
}

.cart-price {
    color: white;
    font-size: 14px;
    font-weight: bolder;
}
.product-rows1 {
    margin-top: 3em;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.product-row1 {
    display: flex;
    align-items: center;
}

.cart-image1 {
    width: 7rem;
    margin: 1em;
    border-radius: 10px;
}

.cart-price1{
    color: white;
    font-size: 14px;
    font-weight: bolder;
}

.product-quantity {
    width: 3rem;
    font-size: 1rem;
    margin-left: 10px;
    margin-right: 15px;
    border-radius: 5px;
    text-align: center;
}
.product-quantity1 {
    width: 3rem;
    font-size: 1rem;
    margin-left: 10px;
    margin-right: 15px;
    border-radius: 5px;
    text-align: center;
}

.remove-btn {
    padding: 1em 2em;
    background-color: red;
    color: red;
    outline: none;
    border: none;
    cursor: pointer;
    margin-left: 3rem;
    font-weight: bolder;
    font-size: 1rem;
}

.remove-btn:active {
    transform: translateY(5px);
}

@media (max-width: 1000px){
    .cart-modal {
        width: 100vw;
    }

    .product-row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2em;
    }

    .remove-btn {
        margin: 0
    }

    .product-quantity {
        margin: .5em 0 .5em 0
    }
}
@media (max-width: 576px){
    .cart-modal {
        width: 100vw;
    }

    .product-row {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2em;
    }

    .remove-btn {
        margin: 0
    }

    .product-quantity {
        margin: .5em 0 .5em 0
    }

}