/* WooCommerce Category Tree View */
.wct-wrap {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

/* Reset list styles */
.wct-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wct-leaf a {
font-weight:bold !important;
margin:30px 0 !important;
}

.wct-toggle {
padding: 3px 4px 3px 4px !important;
}

.wct-children {
    padding-left: 20px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    max-height: 2000px;
    opacity: 1;
}

.wct-children.wct-collapsed {
    max-height: 0;
    opacity: 0;
}

/* Each list item – link first, toggle on the right */
.wct-tree > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 2px 0;
}

/* Toggle button – pushed to right */
.wct-toggle {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.15s ease;
    order: 2;
    margin-left: 4px;
}

.wct-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.wct-toggle:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

/* Child-level toggles at 50% opacity */
.wct-children .wct-toggle {
    opacity: 0.5;
}

.wct-children .wct-toggle:hover {
    opacity: 0.8;
}

/* Arrow indicator */
.wct-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.wct-toggle[aria-expanded="true"] .wct-arrow {
    transform: rotate(90deg);
}

/* Spacer removed – no longer needed since toggle is on right */
.wct-spacer {
    display: none;
}

/* Category link – appears first (order 1) */
.wct-link {
    display: inline-block;
    padding: 1px 6px;
    text-decoration: none;
    color: inherit;
    border-radius: 3px;
    transition: background 0.15s ease, color 0.15s ease;
    order: 1;
}

.wct-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #2271b1;
    text-decoration: none;
}

/* Bold parent category links (items that have children) */
.wct-has-children > .wct-link {
    font-weight: 700;
}

/* Product count badge */
.wct-count {
    color: #888;
    font-size: 0.85em;
    margin-left: 2px;
}

/* Children list takes full width */
.wct-tree > li > .wct-children {
    flex-basis: 100%;
    order: 3;
}
