﻿
/* ============================================
   Folding Category Sidebar
   ============================================ */
.xuri-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.xuri-cat-list li {
    position: relative;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}
.xuri-cat-list li a {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.xuri-cat-list li a:hover {
    background: #fff5f0;
    color: #e6552a;
}
.xuri-cat-list li.current-cat > a {
    background: #e6552a;
    color: #fff;
    font-weight: 600;
}
.xuri-cat-list li.current-cat > a:hover {
    background: #d44a1f;
    color: #fff;
}

/* Toggle button */
.xuri-cat-toggle {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}
.xuri-cat-toggle::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #999;
    transition: transform 0.25s ease;
}
.xuri-cat-toggle:hover::after {
    border-top-color: #e6552a;
}
.xuri-cat-list li.expanded > .xuri-cat-toggle::after {
    transform: rotate(180deg);
}
.xuri-cat-list li.current-cat > .xuri-cat-toggle::after {
    border-top-color: #fff;
}

/* Subcategories hidden by default */
.xuri-sub-cat {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
}
.xuri-sub-cat li {
    border-bottom: 1px solid #f5f5f5;
}
.xuri-sub-cat li a {
    padding-left: 24px;
    font-size: 13px;
    color: #555;
}
.xuri-sub-cat li a:hover {
    background: #fff5f0;
    color: #e6552a;
}
.xuri-sub-cat li.current-cat a {
    background: #fff0e8;
    color: #e6552a;
    font-weight: 600;
}
