/**
 * Product Filters Styles
 * Estilos para filtros de produtos WooCommerce
 */

/* Container dos filtros */
.product-filters-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Título dos filtros */
.filter-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #6BC198;
    padding-bottom: 10px;
}

/* Grupos de filtros */
.filter-group {
    margin-bottom: 25px;
}

.filter-group-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkboxes e labels */
.filter-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-checkbox-wrapper:hover {
    background: #f9f9f9;
    padding-left: 5px;
}

.filter-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-checkbox:checked {
    accent-color: #6BC198;
}

.filter-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    flex: 1;
}

.filter-count {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

/* Filtro de preço */
.price-filter-wrapper {
    padding: 15px 0;
}

.price-range-slider {
    width: 100%;
    margin: 20px 0;
}

.price-range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range-inputs input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-range-inputs span {
    color: #999;
}

/* Botões de filtro */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-apply-filters,
.btn-clear-filters {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-filters {
    background: #6BC198;
    color: #fff;
}

.btn-apply-filters:hover {
    background: #5BAE87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 193, 152, 0.3);
}

.btn-clear-filters {
    background: #f5f5f5;
    color: #666;
}

.btn-clear-filters:hover {
    background: #e9e9e9;
}

/* Tags de filtros ativos */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #e7f5f0;
    color: #2a7a5c;
    border-radius: 20px;
    font-size: 13px;
}

.filter-tag-remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
}

.filter-tag-remove:hover {
    opacity: 1;
}

/* Loading state */
.filters-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.filters-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6BC198;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsivo */
@media (max-width: 768px) {
    .product-filters-container {
        padding: 15px;
    }

    .filter-section-title {
        font-size: 16px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .btn-apply-filters,
    .btn-clear-filters {
        width: 100%;
    }
}