/* Native WooCommerce category widget only. No layout, query or widget settings overrides. */
#sidebar-shop .widget_product_categories {
    --emalog-category-yellow: #f5cd24;
    padding: 0;
    border: 1px solid #d9dadd;
    background: #fff;
    box-shadow: 0 2px 7px rgb(0 0 0 / 4%);
    color: #202326;
}
#sidebar-shop .widget_product_categories .widget-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: -1px -1px 0;
    padding: 15px 14px;
    border: 0;
    background: var(--emalog-category-yellow);
    color: #171a1c;
    font: 700 15px/1.35 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .1px;
}
#sidebar-shop .widget_product_categories .widget-title::before {
    content: '';
    display: block;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23171a1c' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='m2 8 11-6 11 6-11 6L2 8Zm0 5 11 6 11-6M2 18l11 6 11-6'/%3E%3C/svg%3E");
}
#sidebar-shop .widget_product_categories .widget-title::after { content: none; }
#sidebar-shop .widget_product_categories ul.product-categories,
#sidebar-shop .widget_product_categories ul.children {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
}
#sidebar-shop .widget_product_categories ul.product-categories li {
    position: relative;
    display: block;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: 400 13px/20px Arial, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
}
#sidebar-shop .widget_product_categories ul.product-categories li::before,
#sidebar-shop .widget_product_categories ul.product-categories li::after { content: none; }
#sidebar-shop .widget_product_categories ul.product-categories > li + li { border-top: 1px solid #e5e6e8; }
#sidebar-shop .widget_product_categories ul.product-categories li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    min-height: 47px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: #626262;
    text-decoration: none;
    font: inherit;
    box-sizing: border-box;
    transition: background-color .15s ease, color .15s ease;
}
#sidebar-shop .widget_product_categories .emalog-category-icon { flex: 0 0 24px; width: 24px; height: 26px; }
#sidebar-shop .widget_product_categories .emalog-category-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#sidebar-shop .widget_product_categories li > a:hover { background: #fff8d9; color: #826700; }
#sidebar-shop .widget_product_categories li > a:focus-visible { outline: 2px solid #242424; outline-offset: -3px; background: #fff3b7; z-index: 1; }
#sidebar-shop .widget_product_categories li.emalog-has-children > a::after {
    content: '';
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-left: auto;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(-45deg);
}
#sidebar-shop .widget_product_categories li.current-cat > a,
#sidebar-shop .widget_product_categories li.current-cat-parent > a { background: #fff2b3; font-weight: 600; color: #626262; }
#sidebar-shop .widget_product_categories ul.product-categories > li.current-cat > a,
#sidebar-shop .widget_product_categories ul.product-categories > li.current-cat-parent > a { box-shadow: inset 4px 0 var(--emalog-category-yellow); }
#sidebar-shop .widget_product_categories li.emalog-has-children:has(> ul.children) > a::after { transform: rotate(45deg); }
#sidebar-shop .widget_product_categories ul.children { position: relative; padding: 5px 0 9px 20px; background: #fffcf0; }
#sidebar-shop .widget_product_categories ul.children::before { content: ''; position: absolute; top: 12px; bottom: 23px; left: 22px; border-left: 1px solid #eadc9e; }
#sidebar-shop .widget_product_categories ul.children > li::before { content: ''; position: absolute; left: 0; top: 20px; width: 5px; height: 5px; background: var(--emalog-category-yellow); z-index: 1; }
#sidebar-shop .widget_product_categories ul.children li > a { min-height: 42px; padding: 8px 12px 8px 15px; gap: 8px; font-size: 13px; }
#sidebar-shop .widget_product_categories ul.children .emalog-category-icon { width: 21px; height: 23px; flex-basis: 21px; }
#sidebar-shop .widget_product_categories .count { font: 400 12px/1.4 Arial, sans-serif; padding: 0 14px 6px; display: block; color: #666; }
@media (prefers-reduced-motion: reduce) {
    #sidebar-shop .widget_product_categories ul.product-categories li > a { transition: none; }
}
