/**
* Theme Name: Furnob Child
* Description: This is a child theme of Furnob, generated by Merlin WP.
* Author: <a href="http://themeforest.net/user/KlbTheme">KlbTheme (Sinan ISIK)</a>
* Template: furnob
* Version: 1.4.3
*/
/* 针对AJAX筛选的动态分类高亮样式 */
.woocommerce .widget_product_categories li.current-cat > a,
.woocommerce .widget_product_categories li.active-filter > a {
    color: #ff0000 !important; /* 红色字体 */
    font-weight: 700 !important;
    background-color: #fff5f5 !important; /* 浅红色背景 */
    border-left: 3px solid #ff0000 !important;
}
/* 可选：为父级分类添加不同样式 */
.woocommerce .widget_product_categories li.current-cat-parent > a {
    color: #cc0000 !important;
    font-weight: 600 !important;
}
// 1. 打印当前的筛选ID
console.log('当前URL参数:', new URLSearchParams(window.location.search).get('filter_cat'));

// 2. 打印侧边栏所有分类项的HTML结构
console.log('侧边栏分类项数量:', $('.widget_product_categories li').length);
$('.widget_product_categories li').each(function(i) {
    console.log('项 '+i+':', this.outerHTML);
});

// 3. 尝试手动运行高亮函数（代码已提供）
manuallyHighlightCategory();

