:root {
    --verde-primario: #1d4d18;
    --verde-sucesso: #28a745;
    --bg-light: #f8f9fa;
}

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

body { 
    background-color: var(--bg-light); 
    overflow-x: hidden; /* Evita rolagem lateral indesejada */
}

/* HERO E BUSCA */
.hero {
    background: linear-gradient(135deg, #0a2108 0%, var(--verde-primario) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.main-logo { 
    max-width: 100%; 
    height: auto; 
    width: 250px; 
    margin-bottom: 20px; 
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.search-container form {
    display: flex;
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 8px;
    border-radius: 8px;
}

.search-container input {
    flex: 1;
    border: none;
    padding: 15px;
    outline: none;
    font-size: 1rem;
    width: 100%;
}

.search-container button {
    background: var(--verde-sucesso);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-stats { 
    margin-top: 20px; 
    font-size: 0.85rem; 
    opacity: 0.8; 
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* GRID DE CARDS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas no desktop */
    gap: 20px;
    max-width: 1300px;
    margin: -40px auto 50px; /* Sobe um pouco para cima do hero */
    padding: 0 20px;
    align-items: stretch;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 4px solid var(--verde-primario);
    display: flex;
    flex-direction: column;
    min-height: 450px; /* Ajustado para não ficar excessivo */
}

.card h3 { color: var(--verde-primario); font-size: 1rem; margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.card ul { list-style: none; flex-grow: 1; }

.card ul li a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 5px;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
}

.card ul li a:hover { background-color: #f8f8f8; }

.ca-pill {
    background: #eee;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--verde-primario);
    min-width: 60px;
    text-align: center;
}

.ca-info { display: flex; flex-direction: column; flex: 1; margin-left: 12px; }
.ca-main { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.85rem; }
.ca-sub { font-size: 0.7rem; color: #888; margin-top: 2px; }

/* SEÇÃO FABRICANTES */
.fabricantes-section {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.fabricantes-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-link {
    text-decoration: none;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #555;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.badge-link:hover {
    background: var(--verde-primario);
    color: white;
    border-color: var(--verde-primario);
}

/* FOOTER */
footer { text-align: center; padding: 40px 20px; color: #888; font-size: 0.8rem; }

/* =============================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ============================================= */

/* TABLETS */
@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas */
        margin-top: 20px;
    }
}

/* CELULARES */
@media (max-width: 768px) {
    .hero { padding: 40px 15px; }
    
    .main-logo { width: 180px; }
    
    .tagline { font-size: 1rem; }

    /* Busca vira coluna no celular */
    .search-container form {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 10px;
    }

    .search-container input {
        border-radius: 8px;
        text-align: center;
    }

    .search-container button {
        padding: 15px;
        width: 100%;
        border-radius: 8px;
    }

    .info-grid {
        grid-template-columns: 1fr; /* 1 coluna apenas */
        margin-top: 20px;
    }

    .card { min-height: auto; } /* No celular os cards podem ser menores */

    .hero-stats { flex-direction: column; gap: 8px; }
    
    .fabricantes-badges { justify-content: center; }
}