* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    font-family: Montserrat, sans-serif;
    color: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f3f3f4;
}

header .container,
section .container {
    display: flex; 
    align-items: center;
    justify-content: space-between;
} 

section .container {
    padding-top: 24px;
}

section {
    scroll-margin-top: 50px;
}

#produtos {
    padding-top: 48px;
}

header {
    position: sticky;
    top: 0; 
    left: 0;
    z-index: 1; 
    padding: 5px;
    margin-bottom: 24px;
    background-color: #19212b;
    color: #f3f3f4;
}

header img {
    height: 40px;
    margin-left: 5px;
    margin-bottom: 2px;
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(99%) sepia(10%) saturate(500%) hue-rotate(190deg) contrast(90%) brightness(93%);
}

header h1 {
    font-size: 2em;
    color: #f3f3f4;
    margin-inline-end: auto;
    margin-left: 12px;
}

header nav li {
    display: inline;
    margin-left: 14px;
    font-size: 1.3em;
}

header nav li a {
    color: #f3f3f4;
    text-decoration: none; 
}

header {
    position: sticky; 
    top: 0; 
    left: 0; 
    z-index: 1; 
}

.colunas {
    display: flex; 
    justify-content: space-between ;
}

section h2 {
    margin-bottom: 24px;
    font-size: 1.3em;
    text-align: left;
}

h2 {
    color: #19212b;
    padding-bottom: 12px;
}

section .sobre {
    padding-bottom: 48px;
}

#sobre img {
    max-width: 400px; 
    margin-right: 24px; 
}

.container h2 {
    border-bottom: 2px solid #19212b;
}

.lista-livros {
    display: grid;
    grid-template-columns: repeat(4, 23.5%);
    column-gap: 2%; 
    row-gap: 10%;
    margin-top: 24px;
} 

.lista-livros li {
    list-style: none;
    margin-bottom: 24px;
    max-width: 100%;   
    margin-left: auto;
    margin-right: auto; 
    display: flex;
    flex-direction: column; /* se tiver imagem + título + botão */
    align-items: center;
}

.lista-livros li p {
    font-size: 1em;
}

.lista-livros img {
    max-width: 100%; 
}

.lista-livros li h3 {
    margin: 16px 0px 0px; 
    height: 30px;
}

button {
    display: block; 
    max-width: 100%;   
    width: 80%;
    margin: 12px 0;
    padding: 6px;
    font-size: 0.9em;
    border: 2px solid #19212b;
    border-radius: 15px;
    background-color: #19212b;
    color: #f3f3f4;
    cursor: pointer; 
}

button:hover {
    background-color: #f3f3f4;
    color: #19212b;
}

footer {
    padding: 240px;
}

@media screen and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    header .container,
    section .container {
        align-items: center;
        text-align: center;
    }

    section .container {
        flex-direction: column;
    }

    header {
        padding: 12px;
    }

    header h1 {
        margin-left: 12px;
    }

    .sobre {
        text-align: left;
    }

    #sobre img {
        margin: 0 auto 48px;
        max-width: 80%;
    }

    .lista-livros {
        display: grid;
        grid-template-columns: repeat(2,48%);
        column-gap: 4%;
        row-gap: 1%;
    }

    .lista-livros img {
        padding-top: 48px;
        max-width: 80%;
    }
}

@media screen and (max-width: 768px) {
    header nav ul {
        padding: 12px 0;
        display: block;
        justify-content: center;  
        align-items: center;  
        text-align: right;  
        gap: 20px;              
        margin: 0;
        font-size: 0.9em;
    }
        
    header {
        padding: 4px;
    }

    header h1 {
        font-size: 1.4em;
        text-align: left;
    }

    #sobre img {
        max-width: 90%;
    }

    section .sobre {
        padding: 12px;
    }

    .lista-livros {
        grid-template-columns: 100%;
    }

    .lista-livros li {
        max-width: 100%;
    }

    .lista-livros img {
        max-width: 80%;
        padding-top: 12px;
    }

    .lista-livros button {
        max-width: 80%;
        justify-self: center;
    }
}

@media screen and (orientation:landscape) and (max-width: 768px) {
    .lista-livros img {
        max-width: 70%;
    }

    .lista-livros button {
        max-width: 70%;
    }
}