/* --- Blog Specific Styles --- */

.blog-header {
    background-color: var(--light-green);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.blog-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.blog-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.products-section {
    padding: 4rem 0;
    min-height: 50vh;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Card Style */
.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: var(--white); /* Ensures background is clean behind contained images */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.product-card .btn {
    width: 100%;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fdfdfd;
    border: 2px dashed #ececec;
    border-radius: 12px;
    color: var(--text-light);
    font-style: italic;
}

/* Category Filters */
.filter-section {
    padding: 2rem 0 1rem;
}

.category-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

.pt-0 {
    padding-top: 0 !important;
}

/* Card Badge */
.card-img-wrapper {
    position: relative;
    width: 100%;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Responsividade de Dispositivos Móveis para o Blog */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr; /* Coluna única forçada para celular */
    }
    .product-img {
        height: 200px; /* Reduz ligeiramente a altura da imagem no mobile para ganhar espaço */
    }
    .filter-section {
        padding: 1rem 0;
    }
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

.atributos-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.atributo-badge {
    background-color: #e8f5e9;
    color: var(--dark-green);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Multi-select Dropdown Improved */
.multi-select-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
    font-family: var(--font-body);
}

.multi-select-btn {
    width: 100%;
    background: var(--white);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 14px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    outline: none;
    transition: all 0.3s ease;
}

.multi-select-btn:hover {
    background: var(--light-green);
}

.multi-select-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    width: 100%;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: left;
    padding: 8px 0;
    flex-direction: column;
}

.multi-select-content.show {
    display: flex; /* Stack the categories properly */
}

.multi-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 400;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.03); /* Subtle separator */
}

.multi-select-item:last-child {
    border-bottom: none;
}

.multi-select-item:hover {
    background-color: var(--light-green);
    color: var(--dark-green);
    font-weight: 500; /* Bolder to highlight */
}

.multi-select-item input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
    flex-shrink: 0;
}
