* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.container {
    display: grid;
    grid-template-areas:
        "navbar navbar"
        "sidebar content"
        "footer footer";
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

.navbar {
    grid-area: navbar;
    background-color: #729e2e;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.navbar {
    grid-area: navbar;
    background-color: #729e2e;
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar h1 {
    margin: 0;
    font-size: 2rem;
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem; 
    padding: 0;
    margin: 1rem 0 0 0; 
}

.navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.navigation a:hover {
    background-color: rgba(255, 255, 255, 0.2); 
    color: #fff; 
    border-radius: 4px;
}

/* Barra Lateral */
.sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    padding: 1rem;
}

.sidebar h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem; 
    transition: background-color 0.3s; 
    border-radius: 4px; 
}

.sidebar li:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar .numero {
    color: grey;
}

.content {
    grid-area: content;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    align-items: start;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
}

.product-card h3,
.product-card p {
    margin: 0.5rem;
    text-align: center;
    height: 2.4rem;
}

.product-card p {
    font-weight: bold;
}

.product-card button {
    background-color: #729e2e;
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0 0 8px 8px;
    font-size: 1rem;
    margin-top: auto;
}

.product-card button:hover {
    background-color: #5d8025;
}

.footer {
    grid-area: footer;
    background-color: #729e2e;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        grid-template-areas:
            "navbar"
            "sidebar"
            "content"
            "footer";
        grid-template-columns: 1fr;
    }

    .sidebar {
        place-items: center center;
    }
}