/* Remove padding for subcategories */
.kt-inside-inner-col .wc-block-product-categories-list--depth-1,
.kt-inside-inner-col .wc-block-product-categories-list--depth-2,
.kt-inside-inner-col .wc-block-product-categories-list--depth-3 {
    display: none; /* Hide subcategories by default */
    padding-left: 0; /* Remove left padding */
}

/* Ensure higher specificity to override default list styles */
.kt-inside-inner-col .wc-block-product-categories-list-item {
    list-style: none; /* Remove bullets */
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.2;
}

/* Remove underline from links */
.kt-inside-inner-col .wc-block-product-categories-list-item > a {
    text-decoration: none;
}

/* Hover effect for category items */
.kt-inside-inner-col .wc-block-product-categories-list-item:hover > a {
    color: var(--global-palette-highlight-alt); /* Use theme highlight color */
    text-decoration: none; /* Remove underline on hover */
}

/* Show subcategories when parent is active */
.kt-inside-inner-col .wc-block-product-categories-list-item.active > .wc-block-product-categories-list--depth-1,
.kt-inside-inner-col .wc-block-product-categories-list-item.active > .wc-block-product-categories-list--depth-2,
.kt-inside-inner-col .wc-block-product-categories-list-item.active > .wc-block-product-categories-list--depth-3 {
    display: block;
}

/* Styling for active parent category */
.kt-inside-inner-col .wc-block-product-categories-list-item.active > a {
    font-weight: bold;
    color: var(--global-palette-highlight-alt); /* Use theme highlight color */
    text-decoration: none; /* Remove underline on active */
}

/* Position toggle button for subcategories */
.kt-inside-inner-col .toggle-subcategories {
    position: absolute;
    left: -20px;
    top: 0;
    cursor: pointer;
    user-select: none;
}