/* ===== ESTILOS ESPECÍFICOS DA PÁGINA DE CATEGORIAS ===== */

/* Breadcrumb */
.breadcrumb-section {
    padding: 2rem 0 1rem;
    background: var(--bg-light);
    margin-top: 76px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Filtros Laterais */
.barra-filtros {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.grupo-filtro {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.grupo-filtro:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.grupo-filtro h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.grupo-filtro h6 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Checkboxes personalizados */
.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input {
    border: 2px solid var(--border-color);
    border-radius: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-check-label {
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Range de preço */
.faixa-preco {
    padding: 0 0.5rem;
}

.faixa-preco .form-range {
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
}

.faixa-preco .form-range::-webkit-slider-thumb {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.faixa-preco .form-range::-moz-range-thumb {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.valores-preco {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Botão limpar filtros */
.limpar-filtros {
    background: var(--text-muted);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.limpar-filtros:hover {
    background: var(--text-dark);
    transform: translateY(-1px);
}

/* Cabeçalho dos produtos */
.cabecalho-produtos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contagem-produtos {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.seletor-ordenacao {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seletor-ordenacao:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Grid de produtos */
.grade-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cartao-produto {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.cartao-produto:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.imagem-produto {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.imagem-produto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cartao-produto:hover .imagem-produto img {
    transform: scale(1.05);
}

.badges-produto {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    border-radius: 12px;
}

.badge-new {
    background: var(--accent-color);
    color: white;
}

.badge-sale {
    background: #dc3545;
    color: white;
}

.badge-eco {
    background: var(--primary-color);
    color: white;
}

.info-produto {
    padding: 1.5rem;
}

.titulo-produto {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.marca-produto {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.preco-produto {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.preco-atual {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.preco-antigo {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.desconto {
    background: #dc3545;
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: auto;
}

.avaliacao-produto {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.estrelas {
    color: #ffc107;
    margin-right: 0.5rem;
}

.contagem-avaliacoes {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.botao-adicionar-carrinho {
    width: 100%;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.botao-adicionar-carrinho:hover {
    background: #157347;
    transform: translateY(-1px);
}

.botao-adicionar-carrinho:active {
    transform: translateY(0);
}

/* Paginação */
.secao-paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.pagination {
    margin: 0;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    border-color: var(--border-color);
    background: transparent;
}

/* Responsividade */
@media (max-width: 992px) {
    .barra-filtros {
        position: static;
        margin-bottom: 2rem;
    }
    
    .cabecalho-produtos {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .grade-produtos {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .grade-produtos {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .imagem-produto {
        height: 200px;
    }
    
    .info-produto {
        padding: 1rem;
    }
    
    .titulo-produto {
        font-size: 1rem;
    }
    
    .preco-atual {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .grade-produtos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .barra-filtros {
        padding: 1.5rem;
    }
    
    .grupo-filtro {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}
