@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&display=swap');

* {
    margin: 0;
    padding: 0
}

body{ 
    background-color: hsl(30, 38%, 92%);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

main{
    background-color: hsl(0, 0%, 100%);
    border-radius: 10px 10px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 10%;
    overflow: hidden
}

.Card_img{ 
    background: url("images/image-product-mobile.jpg");
    background-repeat: no-repeat;
    background-size: 100%;
    padding-bottom: 69%;
}

.informations{
    display: flex;
    flex-direction: column;
    margin: 8.5%;
}

.type, .desc_card, .title_card, .price{ margin-bottom: 4%; }

.title_card{
    color: hsl(212, 21%, 14%);
    line-height: 1;
}

.desc_card{ line-height: 1.5; }

.price{
    display: flex;
    align-items: center;
}

.big_price{
    text-decoration:line-through;
    margin-left: 7%;
}

.actual_price{
    color: hsl(158, 36%, 37%);
    font-size: 2em;
}

.type, .desc_card, .big_price{
    font-size: 0.9em;
    color: hsl(228, 12%, 48%);
}

h1, .actual_price{ font-family: 'Fraunces', sans-serif; }

button img{
    margin-right: 3%;
}


button{
    display: flex;
    justify-content: center;
    background-color: hsl(158, 36%, 37%);
    color: white;
    border-radius: 10px 10px;
    padding-top: 5%;
    padding-bottom: 5%;
    border: none;
    font-weight: bold;
    font-size: 0.9em;
}

button:hover {
    background-color: hsl(158, 25%, 25%);
  }

footer { 
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center
}

footer a { color: hsl(228, 45%, 44%) }

@media screen and (min-width: 426px){
     
    body{ 
        display: flex;
        justify-content: center;
        align-items: center;
    }

    main{
        display: flex;
        flex-direction: row;
        margin-right: 28%;
        margin-left: 28%;
        margin-bottom: 7%;
    }

    .Card_img{
        background: url("images/image-product-desktop.jpg");
        background-repeat: no-repeat;
        background-size: 100%;
        padding-right: 50%;
        padding-bottom: 0;
    }

    .informations{ margin: 6.5%; }

    .type, .desc_card, .title_card, .price{ margin-bottom: 9%; }
}