/* پنهان کردن زیردسته‌ها به صورت پیش‌فرض */
.wc-cat-tree ul {
    display: none;
    margin-right: 15px; /* کمی تورفتگی */
    margin-top: 5px;
}

/* نمایش زیردسته‌های والدِ دارای کلاس 'active' */
.wc-cat-tree .has-children.active > ul {
    display: block;
}

/* استایل‌دهی به دکمه Toggle */
.wc-cat-tree .cat-item.has-children {
    position: relative;
}

.wc-cat-tree .cat-toggle-btn {
    position: absolute;
    left: 0; /* در حالت RTL این سمت چپ است */
    top: 0;
    width: 30px;
    height: 100%;
    cursor: pointer;
    font-size: 16px;
    line-height: 38px;
    text-align: center;
    color: #999;
}

.wc-cat-tree .cat-toggle-btn:before {
    content: '\23F7'; 
    transition: transform 0.3s ease; 
    transform: rotate(0deg); 
}

/* رفع مشکل لینک در کنار دکمه Toggle */
.wc-cat-tree .cat-link {
    display: block;
    padding-left: 30px; /* ایجاد فضای کافی برای دکمه toggle */
}
.cat-image img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  margin-left: 10px;
}