@font-face {
    font-family: "engFont-reg";
    src: url("/public/fonts/Varela-Regular.ttf");
}


@font-face {
    font-family: "engFont-bold";
    src: url("/public/fonts/SourceSansPro-Bold.ttf");
}

@font-face {
    font-family: "araFont";
    src: url("/public/fonts/static/MarkaziText-Regular.ttf");
}

*{
    box-sizing:border-box;
}

html{
    font-size: 11px;
    font-family: "engFont-reg";
}

body{
    color:#373d3a;
    min-height:100vh;
    margin:0;
    padding:0;
    background-image:url("/public/img/body-background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-size: 1.5rem;
}
span{
    display:inline-block;
}

h1{
    font-size: 3rem;
}

p{
    font-size: 2rem;
}


/* rows*/
.row-soap{
    margin-bottom: 15vh;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;


}

.col-soap{
    flex: 1 1;
    /* width: 45%; */
    /* min-height: 20vh; */
}

.col-soap + .col-soap{
    margin-left: 5vw;
}

/* cards */

.card-soap{
    background-color: #FFF;
    height: 100%;
    padding: 0;
    box-shadow: 1vh 1vw 2vw #68796e;
    display:flex;

}

.card-soap:hover{
    box-shadow: 1.5vh 1.5vw 3vh #68796e;
}

.card-soap-image{
    width: 50%;

}

.card-soap-image img{
    width: 100%;
    min-height:100%;
    max-height: 100%;
}

.card-soap-details{
    text-align: center;
    padding-bottom:80px;
    width: 50%;
    position:relative;
}

.product-title{
    margin: 3vh auto;
}

.card-soap-details h1,p{
    font-family: "araFont";
}

.item-description{
    margin: 2vh 1.5vw;
    max-height: 45%;
    overflow:auto;

}

.price-div{
    position:absolute;
    bottom: 50px;
    font-size: 1.8rem;
    width:100%;
    text-align: center;
    line-height: 5vh;
}

.item-price{
    font-weight: bold;
}

.price-currency-label{
    font-size: 1.6rem;
    color:#626262;
}

.add-to-cart-button{
    width: 100%;
    background-color: #b1beb4;
    /* margin-top: 50%;
    margin-left: 12%; */
    color: #f7f8f8;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 2;
    /* border-radius: 10px; */
    text-align: center;
    position:absolute;
    bottom:0px;
}

.add-to-cart-button:hover{
    background-color: #7f8881;
    cursor: pointer;
}


@media(max-width: 1500px){
    h1{
        font-size: 2.5rem;
        margin-top: 1vh;
        margin-bottom: 1vh ;
    }

    .card-soap{
        display: block;
    }

    .card-soap-image{
        width: 100%;
        height: 50%;
    }

    .card-soap-details{
        width: 100%;
        min-height: 50%;
        max-height: 50%;
    }

    .price{
        line-height: 4vh;
    }


}

@media(max-height: 600px){
    html{
        font-size: 12px;
    }

    .add-to-cart-button{
        line-height: 2;
    }

    .price{
        bottom: 25%;
    }

    .card-soap{
        width:100%;
        margin-top: 12vh;
    }

    .item-description{
        margin-top: 5vh;
    }

    .footer{
        padding-bottom: 3vh;
    }
}

@media(max-width: 600px){


    html{
        font-size:10px;
    }

    body{
        background-image: url(/public/img/body-background-vertical.jpg);
        background-size: cover;
    }

    header{
        height: 10vh;
    }

    main{
        padding-top:0;
    }

    .row-soap{
        display: block;
        margin-top: 0;
        margin-bottom: 0;
    }

    .col-soap{
        width: 80%;
        margin: auto;
    }

    .card-soap{
        margin-top: 8vh;
    }

    .col-soap + .col-soap{
        margin: auto;
    }

    .card-soap-image{
        width: auto;
        height: auto;
    }

    .card-soap-details{
        padding-bottom:80px;
    }

    .product-title, .item-description{
        padding: 0 1vw;
    }
    .item-description{
        margin-top: 2vh;
    }

    .price-div{
        bottom: 40px;
    }

}

@media(max-width: 400px){

    .product-title{
        margin-bottom: 1vh;
    }

    .item-description{
        max-height: 80px;
    }
}

