@font-face {
    font-family: font;
    src: url(../Vazir/Vazir-Bold-FD.ttf);
}
html,body{
width: 100%;
height: auto;
float: left;
margin: 0;
padding: 0;   
direction: rtl;
}
body *{
    font-family: font;
}
a{
    text-decoration: none;
}
.m-card-container{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    flex-direction: column;
    /* margin: 1em 3%; */
}
.m-row-title{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2em;
    margin-top: 2em;
}
.m-row-title span{
    color: rgba(128, 128, 128, 0.603);
    font-size: 15px;
    margin-bottom: 7px;
}
.m-row-title h2{
    font-size: 40px;
    margin: 0;
}
.m-card-row{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    border: 1.5px solid rgba(80, 106, 173, 0.09);
    border-radius: 10px;
    /* padding: 0.5em 0; */
}
@media screen and (min-width:1024px){
    .similar-product{
       
        flex-wrap: nowrap;
        
    }
    .similar-product .m-card-ele{
        width:23%;
    }
}
.new-product{
    /* padding: 1.5em; */
}
.m-card-ele{
    /* width: 23%; */
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    flex-direction: column;
    border: 1.5px solid rgba(80, 106, 173, 0.375);
    border-radius: 10px;
    margin: 0.5em 1%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    background-color: white;
    /* justify-content: space-between; */
}
.m-card-img{
    width: 100%;
    height: 36vh;
    float: left;
    /* border-bottom: 1.5px solid rgb(0, 94, 202); */
    overflow: hidden;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    position: relative;
}
.m-card-img a{
    width: 100%;
    height: 100%;
    float: left;
    position: absolute;
    z-index: 1;
}
.m-card-img img{
    width: 100%;
    height: auto;
    float: left;
    transition: 0.3s;
    object-fit: cover;
}
.m-card-ele:hover .m-card-img>img{
    transform: scale(1.1);
    transition: 0.3s;
}
.m-card-des{
    width: 100%;
    height: auto;
    float: left;
    box-sizing: border-box;
    padding: 1em 5%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 10%, rgba(80, 106, 173, 0.375) 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}
.m-card-category{
    color: white;
    margin-left: 1em;
    font-size: 14px;
    border-radius: 100px;
    padding: 3px 15px;
    background-color: rgb(188 107 224);
}
/* .m-card-category:hover{
    color: rgb(0, 94, 202);
} */
.m-add-card{
    width: 82%;
    float: left;
    position: absolute;
    bottom: -30%;
    /* border: 1.5px solid #C9E0D4; */
    border-radius: 100px;
    background-color: rgb(62 61 147);
    color: white;
    padding: 0.8em 0;
    transition: 0.4s;
    z-index: 2;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 1px 1px 9px gray;
    border: none;
    direction: rtl;
}
.m-add-card:hover{
    background-color: rgb(188 107 225);
    box-shadow: 0 0 5px 0 #a5b8ae;
    transition: 0.4s;
}
.m-card-ele:hover .m-add-card{
    bottom: 5%;
    transition: 0.4s;
}
.m-card-rate{
    width: fit-content;
    height: auto;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.m-card-rate li{
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.1em;
}
.m-card-rate i{
    color: gold;
    text-shadow: 0 0 3px #0000007d;
    font-size: 15px;
}
.m-card-rate .fa-star{
    position: absolute;
    z-index: 1;
    opacity: 0;
}
.m-card-title{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    font-size: 15px;
    margin: 0;
    margin: 1em 0;
}
.m-card-title a{
    width: 100%;
    height: auto;
    text-align: center;
    /* text-overflow: ellipsis;
    text-wrap: nowrap;
    overflow: hidden; */
    color: black;
    line-height: 26px;
}
.m-card-title a:hover{
    color: rgb(0, 94, 202);
}
.m-card-price{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5em;
    direction: rtl;
    flex-direction: column;
}
.m-first-price{
    margin-left: 7px;
    font-size: 13px;
    text-decoration: line-through;
    color: rgb(85, 85, 85);
}
.m-final-price{
    color: rgb(0, 94, 202);
    font-size: 20px;
}
.m-show-more{
    width: 100%;
    height: auto;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
}
.m-show-more a{
    width: fit-content;
    padding: 1em 4em;
    color: white;
    border-radius: 100px;
    margin: 2em 0;
    /* border: 1.5px solid rgb(0, 94, 202); */
    box-sizing: border-box;
    transition: 0.4s;
        background: linear-gradient(-90deg, rgb(62 61 147) 0%, rgb(150 141 243) 70%);
    box-shadow: 1px 1px 9px gray;
}
/* .m-show-more a:hover{
    color: rgb(0, 94, 202);
    background-color: rgb(231, 243, 255);
    transition: 0.4s;
} */
.m-discount-icon{
    float: left;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}
.m-last-container{
    transform: translateY(10em);     
    opacity: 0;
}
.m-bestsellers{
    transform: translateX(15em);     
    opacity: 0;
}
.m-discount{
    transform: translateX(-15em);     
    opacity: 0;
}
.m-card-info{
    width: 100%;
    float: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* flex-direction: row-reverse; */
}
.m-card-info span{
    font-size: 14px;
    color: rgb(188 107 224);
}
.m-cart-gallery{
    width: 100%;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
    /* flex-direction: row-reverse; */
}
.m-cart-gallery-res{
    display: none;
}
.m-gallery-ele{
    width: 45px;
    height: 45px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid rgb(80 106 173 / 38%);
    display: flex;
    margin-left: 0.5em;
    box-sizing: border-box;
    background-color: white;
}
.m-gallery-ele:last-child{
    margin-left: 0;
}
.m-gallery-ele img{
    width: 100%;
    float: left;
    object-fit: cover;
}
@media only screen and (max-width:1100px){
    .m-card-ele {
        width: 31.3%;
    }
    .m-add-card {
        width: 90%;
        bottom: 5%;
        font-size: 13px;
        background: rgb(62 61 147);
        padding: 0.9em 0;

    }
}
@media only screen and (max-width:800px){
    .m-card-ele {
        width: 48%;
    }
    .m-show-more{
        width: 100%;
    }
}
@media only screen and (max-width:650px){
    .m-add-card{
        font-size: 11px;
    }
    .off-box {
        font-size: 18px;
    }
    .m-show-more a{
        font-size: 14px;
        padding: 0.8em 5em;
    }
    .m-add-card {
        width: 75%;

    }

}
@media only screen and (max-width:550px){
    .m-card-ele {
        width: 100%;
        
    }
    .m-card-des{
        padding-top: 0.7em;
    }
    .m-card-img{
        height: auto;
    }
    .m-card-img img{
        height: 100%;
    }
    .m-card-info {
        flex-direction: row;
    }
    .m-add-card{
        display: none;
    }
    .m-card-category{
        margin: 0;
        margin-bottom: 0.5em;
    }
    .m-card-title,.m-card-des>span {
        font-size: 13px;
    }
    .m-final-price {
        font-size: 16px !important;
    }
    .m-card-rate i,.m-card-category {
        font-size: 10px;
    }
    .m-gallery-ele {
        width: 30px;
        height: 30px;
    }
    .m-card-price {
        flex-direction: column;
        padding: 0.5em;
        border-top: 1.5px solid rgba(80, 106, 173, 0.375) ;
    }
    .off-box {
        font-size: 13px;
    }
    .lord-icon{
            width: 30px;
            height: 30px;
    }
    .m-card-row {
        padding: 0.5em 0.5em;
    }
    .m-card-des {
        padding-bottom: 0;
    }
    .m-card-title {
        margin: 0.5em 0;
    }
    .m-cart-gallery-desk{
        display: none;
    }
    .m-cart-gallery-res{
        display: block;
        position: absolute;
        bottom: -0%;
        z-index: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 5px;
        box-sizing: border-box;
        padding: 0 10px;
    }
    .m-cart-gallery-res a{
        position: relative;
        width: 50px;
    }
}