@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color:hsl(30, 38%, 92%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Montserrat", serif;
}


.image {
    width: 300px;
    height: 400px;
}

.myimage {
    background: url(images/image-product-desktop.jpg);
    background-size: cover;
    width: 300px;
    height: 400px;
    border-radius: 10px 0 0 10px;
}

.hero {
    width: 300px;
    height: 400px;
    background-color: white;
    border-radius: 0 10px 10px 0;
    padding: 25px;
}

.hero p {
    opacity: 0.5;
    margin-bottom: 10px;
   
   
}

.hero h1 {
    font-family: "Fraunces", serif;
    font-weight: 700px;
    line-height: 30px;
}

#solar {
    margin: 30px 0;
    font-size: 15px;
}

.price {
    display: flex;
    /* justify-content: space-around; */
    align-items: end;
}

.price h2 {
    font-size: 35px;
    font-family: "Fraunces", serif;
    color: hsl(158, 36%, 37%);
}

.price p {
    text-decoration: line-through;
    font-size: 13px;
    margin-left: 20px;
}

.cart {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    padding: 5px;
    background-color: hsl(158, 42%, 18%);
    color: white;
    border-radius: 10px;
}

.cart img {
    margin-right: 10px;
}

@media (max-width : 486px) {
    body {
        flex-direction: column;
        padding: 30px;
    }
    .image img {
        border-radius: 10px 10px 0 0;
       height: 400px;
    }

    .myimage {
        display: block;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        background: url(images/image-product-mobile.jpg);
        width: 350px;
        height: 300px;
        background-size: cover;
        position: absolute;
        right: 13px;
        top: 0;
    }


    .hero {
        border-radius: 0 0 10px 10px;
        height: 360px;
        width: 350px;
        position: absolute;
        bottom: 30px;
        top:400px;
    }
}