/* ================================================
   WooCommerce Categories Sidebar Widget – Styles
   ================================================ */

.woo-cat-widget-wrap {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    font-family: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ── Title ── */
.woo-cat-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.3;
}

/* ── List ── */
.woo-cat-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woo-cat-widget-list li {
    margin: 0;
    padding: 0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.woo-cat-widget-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    color: #444444;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.woo-cat-widget-list li a:hover {
    color: #2271b1;
    text-decoration: none;
}

.woo-cat-widget-list li:hover {
    background-color: #f7f9ff;
}

/* ── Active state ── */
.woo-cat-widget-list li.active {
    background-color: #f0f4ff;
}

.woo-cat-widget-list li.active > a {
    color: #2271b1;
    font-weight: 600;
}

/* ── "All Products" special styling ── */
.woo-cat-widget-list li.woo-cat-all {
    margin-bottom: 6px;
}

.woo-cat-widget-list li.woo-cat-all.active {
    background-color: #f0f4ff;
}

.woo-cat-widget-list li.woo-cat-all.active > a {
    color: #2271b1;
    font-weight: 600;
}

/* ── Count badge ── */
.woo-cat-widget-list .woo-cat-count {
    font-size: 12px;
    color: #999999;
    background: #f4f4f4;
    border-radius: 50px;
    padding: 1px 7px;
    line-height: 1.6;
    min-width: 24px;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.woo-cat-widget-list li.active .woo-cat-count,
.woo-cat-widget-list li:hover .woo-cat-count {
    background: #dce8ff;
    color: #2271b1;
}

/* ── RTL support ── */
[dir="rtl"] .woo-cat-widget-list li a,
.rtl .woo-cat-widget-list li a {
    flex-direction: row-reverse;
}
