@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --cor-primaria: #c0392b;
    /* vermelho intenso */
    --cor-secundaria: #7b241c;
    /* vermelho mais escuro */
    --cor-fundo: #f9f5f5;
    /* quase branco com tom suave */
    --cor-texto: #2c2c2c;
    --espacamento: 1rem;
    --radius: 0.75rem;
    --max-width: 1100px;
}

html {
    /* clamp deixa o rem responsivo sem perder o controle*/
    font-size: clamp(15px, 1.1vw + 0.2rem, 18px);
    /* valor mínimo, valor desejado, valor máximo*/
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    margin: 0;
    padding: 0;
}

header {
    background: var(--cor-secundaria);
    color: white;
    padding: var(--espacamento);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: var(--espacamento) 0 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--cor-primaria);
}

main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 var(--espacamento);
}

h2 {
    font-size: 1.6rem;
    color: var(--cor-secundaria);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

#produtos ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

#produtos li {
    flex: 1 1 260px;
    max-width: 280px;
    display: flex;
}

#produtos article {
    background: white;
    padding: var(--espacamento);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}


#produtos article:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#produtos h3 {
    margin-top: 0;
    color: var(--cor-primaria);
    font-size: 1.3rem;
    text-align: center;
}

#produtos data {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cor-secundaria);
}

#produtos p {
    text-align: center;
}

#produtos figure {
    margin: auto 0 0;
    text-align: center;
}

#produtos img {
    max-width: 100%;
    border-radius: var(--radius);
}

#produtos figcaption {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #666;
}

footer {
    background: var(--cor-secundaria);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

footer a {
    color: var(--cor-primaria);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    header {
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    #produtos ul {
        flex-direction: column;
        align-items: center;
    }

    #produtos li {
        max-width: 100%;
    }
}