/* Category Collapse Styling */
.product-categories li {
    position: relative;
}

.product-categories .category-toggle {
    position: absolute;
    left: -24px;
    top: -2px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 10;
    text-align: center;
}

.product-categories .category-toggle i {
    font-size: 26px;
    display: block;
    line-height: 22px;
    color: #444;
    transition: transform 0.2s ease;
    transform-origin: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotate arrow down when expanded */
.product-categories .category-toggle i {
    transform: rotate(-90deg);
}

.product-categories .category-toggle.active i {
    transform: rotate(0deg);
}

/* Current category styling */
.product-categories li.current-cat > a,
.product-categories li.current-cat-parent > a {
    font-weight: bold;
}

/* Improved spacing for hierarchical categories */
.product-categories .children {
    padding-left: 15px;
    margin-top: 5px;
}

/* Add animation for expanding/collapsing */
.product-categories .children {
    transition: all 0.3s ease;
}

/* Ensure proper position when product counts are present */
.product-categories .count {
    margin-left: 4px;
    color: #888;
}

body .shop_sidebar .widget ul .children {
  margin: 10px 0 10px 0px;
}