* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    --primary-color: #2e74df;
    --second-color: #b9b1b1e0;
    --tertiary-color: #737373;
    --text-color: #fff;
}

header,
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-bottom: 1px solid var(--tertiary-color);
}

header nav li {
    display: inline;
}

header h1 {
    font-style: italic;
}

header nav li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    margin: 15px;
}

header li a {
    cursor: pointer;
}

header li a:hover {
    color: var(--second-color);
    transition: 0.3s;
}

header .container,
footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

html {
    background-color: #f3f3f3;
}

.container {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
}

#sobre-a-loja {
    margin: 100px auto;
}

#sobre-a-loja h2 {
    font-style: italic;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 15px;
}

#sobre-a-loja p {
    padding-top: 50px;
    margin: 5px;
}

#sobre-a-loja img {
    max-width: 360px;
    margin-right: 25px;
    border-radius: 2px;
}

.container-flex {
    display: flex;
}

#produtos {
    margin: 100px auto;
}

#produtos h2 {
    font-style: italic;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
}

.produtos {
    display: grid;
    grid-template-columns: repeat(4, 23.5%);
    column-gap: 2%;
    row-gap: 5%;
}

.produto img {
    max-width: 100%;
    padding-top: 40px;
    border-radius: 2px;
}

.produto h3 {
    font-weight: bold;
    display: flex;
    font-size: 16px;
    padding-top: 25px;
}

.produto p {
    padding: 10px 0 30px 0;
}

.produto button {
    background-color: var(--primary-color);
    border: none;
    color: var(--text-color);
    width: 100%;
    padding: 6px;
    border-radius: 5px;
    cursor: pointer;
}

.produto button:hover {
    background-color: rgba(59, 187, 59, 0.767);
    transition: 0.3s;
}

footer {
    font-style: italic;
    font-size: 20px;
    border-top: 1px solid var(--tertiary-color);
}

@media screen and (max-width: 764px) {
    .container {
        max-width: 92%;
        display: block;
    }

    header div.container {
        flex-direction: column;
    }

    #sobre-a-loja {
        margin: 30px auto;
        display: block;
    }

    #sobre-a-loja img {
        margin-right: 0;
        max-width: 320px;
    }

    #sobre-a-loja h2 {
        padding: 20px 0 20px 0;
        text-align: center;
    }

    #sobre-a-loja p {
        padding-top: 25px;
    }

    #produtos {
        margin: 30px auto;
        max-width: 92%;
    }

    #produtos h2 {
        text-align: center;
        margin-top: 50px;
    }

    .produtos,
    .produto {
        display: block;
    }

    .produto h3,
    .produto p {
        justify-content: center;
        text-align: center;
    }

    .produto p {
        text-align: center;
        padding-bottom: 20px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 95%;
        display: block;
    }

    #sobre-a-loja img {
        max-width: 100%;
        margin-bottom: 10px;
    }

    #produtos {
        max-width: 95%;
    }

    .produtos {
        display: grid;
        grid-template-columns: repeat(2, 45%);
        column-gap: 5%;
        justify-content: center;
    }

    .produto {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .produto p {
        text-align: center;
        padding: 30px 0;
    }

    .produto button {
        width: 90%;
        margin-top: 10px;
    }
}
