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

/* || RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    display: block;
    width: 100%;
    height: auto;

}

button {
    font: inherit;
    background-color: inherit;
    width: 100%;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    margin-right: 30px;
}

/* VARIABLES */
:root {
    --BODY-BGCOLOR: hsl(30, 38%, 92%);
    --MAIN-BGCOLOR: hsl(0, 0%, 100%);
    --FCOLOR: hsl(228, 12%, 48%);
    --HCOLOR: hsl(212, 21%, 14%);
    --PCOLOR: hsl(158, 36%, 37%);
}

/* GENERAL STYLES */
html {
    background-color: var(--BODY-BGCOLOR);
}

body {
    font-family: 'Fraunces', serif;
    padding: 1em;
    margin: 90px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 5px -5px #f5f5f5;
    background-color: var(--BODY-BGCOLOR);
}

/* MAIN */
.header__img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.main {
    background-color: var(--MAIN-BGCOLOR);
    padding: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}


.header__p {
    margin-top: 1em;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--FCOLOR);
}

.header__h1 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 25px;
    color: var(--HCOLOR);
}

.article__p {
    margin-bottom: 2em;
    font-size: 0.74rem;
    color: var(--FCOLOR);
    font-family: 'Montserrat', sans-serif;
    line-height: 20px;
}

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

.price__p1 {
    font-size: 1.7rem;
    margin-right: 15px;
    color: var(--PCOLOR);
}

.price__p2 {
    font-size: 0.8rem;
    color: var(--FCOLOR);
    text-decoration: line-through;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--PCOLOR);
    margin-top: 1em;
    margin-bottom: 0.5em;
    border-radius: 5px;
    padding: 1em;
}

.button img {
    width: 15px;
    height: 16px;
    margin-left: 70px;
}

.button:hover {
    background-color: hsl(158, 88%, 10%);
}

button {
    margin-right: 50px;
    font-weight: bold;
}


@media screen and (min-width: 576px) {
    body {
        width: 500px;
        margin: 100px auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    picture img {
        width: fit-content;
    }

    .main {
        background-color: var(--MAIN-BGCOLOR);
        padding: 20px;
        height: 400px;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        border-bottom-left-radius: 0;
    }

    .header__img {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        height: 400px;
    }

    .break::before {
        content: "\a";
        white-space: pre;
    }

    .price {
        margin-bottom: 2em;
    }

    .button {
        margin-top: 0.5em;
        margin-bottom: 0.5em;
        border-radius: 5px;
        padding: 0.7em;
    }

    .button img {
        width: 15px;
        height: 16px;
        margin-left: 35px;
    }

    button {
        margin-right: 20px;
        font-weight: bold;
    }

    .article__p {
        font-size: 0.65rem;
    }
}

.footer {
    background-color: var(--MAIN-BGCOLOR);
    position: fixed;
    bottom: 0;
    color: hsl(228, 45%, 44%);
    font-size: 11px;
    text-align: center;
    padding: 1rem;
    width: 100%;
    box-shadow: 2px 2px 5px #000;
}