/* ObonGlow v2.10.4b — premium prioritized product categories */
.obonglow-filter-section {
    margin: 0 0 28px;
    padding: 0 0 24px;
    border-bottom: 1px solid rgba(0, 0, 0, .09);
}
.obonglow-filter-section .widget-title {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #111;
}
.obonglow-shop-for .widget-title {
    text-transform: uppercase;
    letter-spacing: .02em;
}
.obonglow-filter-list,
.obonglow-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.obonglow-filter-list > li,
.obonglow-category-list > li {
    margin: 0 0 13px;
    padding: 0;
}
.obonglow-filter-list > li:last-child,
.obonglow-category-list > li:last-child { margin-bottom: 0; }

/* SHOP FOR and Brand retain checkbox styling. */
.obonglow-filter-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 24px;
    color: #262626;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: color .18s ease;
}
.obonglow-filter-link:hover,
.obonglow-filter-link:focus-visible,
.obonglow-filter-link--active {
    color: var(--wd-primary-color, #e9468b);
}
.obonglow-filter-checkbox {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid #b8b8b8;
    border-radius: 3px;
    background: #fff;
    transition: border-color .18s ease, background-color .18s ease;
}
.obonglow-filter-link:hover .obonglow-filter-checkbox,
.obonglow-filter-link:focus-visible .obonglow-filter-checkbox,
.obonglow-filter-link--active .obonglow-filter-checkbox {
    border-color: var(--wd-primary-color, #e9468b);
}
.obonglow-filter-link--active .obonglow-filter-checkbox {
    background: var(--wd-primary-color, #e9468b);
}
.obonglow-filter-link--active .obonglow-filter-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Product Categories: WoodMart/Shajgoj-inspired text links, no checkbox. */
.obonglow-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 24px;
    color: #686868;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: color .18s ease;
}
.obonglow-category-list a:hover,
.obonglow-category-list a:focus-visible,
.obonglow-category-list .is-current > a {
    color: var(--wd-primary-color, #e9468b);
}

.obonglow-filter-extra { display: none; }
.is-expanded > .obonglow-filter-extra { display: list-item; }
.obonglow-filter-toggle {
    margin: 15px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--wd-primary-color, #e9468b);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-transform: none;
    cursor: pointer;
}
.obonglow-filter-toggle:hover,
.obonglow-filter-toggle:focus-visible {
    color: #111;
    background: transparent;
    box-shadow: none;
}
.obonglow-brand-search-wrap {
    position: relative;
    margin: 0 0 17px;
}
.obonglow-brand-search {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 42px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #fafafa;
    color: #222;
    font-size: 14px;
    box-shadow: none;
}
.obonglow-brand-search:focus {
    border-color: var(--wd-primary-color, #e9468b);
    background: #fff;
    outline: none;
}
.obonglow-brand-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 1.7px solid #777;
    border-radius: 50%;
    transform: translateY(-56%);
    pointer-events: none;
}
.obonglow-brand-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 1.7px;
    background: #777;
    transform: rotate(45deg);
    transform-origin: left center;
}
.obonglow-brand-empty {
    margin: 10px 0 0;
    color: #777;
    font-size: 14px;
}
@media (max-width: 1024px) {
    .obonglow-filter-section { margin-bottom: 23px; padding-bottom: 20px; }
    .obonglow-filter-link,
    .obonglow-category-list a { min-height: 30px; }
}

/* v2.10.4c — complete category hierarchy, accordion arrows and active toggle */
.obonglow-product-categories .obonglow-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.obonglow-product-categories .obonglow-category-item {
    margin: 0;
    padding: 0;
}
.obonglow-category-row {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding-left: calc(var(--obonglow-category-depth, 0) * 20px);
}
.obonglow-category-link {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    min-height: 30px !important;
    color: #626262 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 400;
    text-decoration: none !important;
}
.obonglow-category-link:hover,
.obonglow-category-link:focus-visible,
.obonglow-category-item.is-current > .obonglow-category-row > .obonglow-category-link,
.obonglow-category-item.is-current-ancestor > .obonglow-category-row > .obonglow-category-link {
    color: var(--wd-primary-color, #e9468b) !important;
}
.obonglow-category-item.is-current > .obonglow-category-row > .obonglow-category-link,
.obonglow-category-item.is-current-ancestor > .obonglow-category-row > .obonglow-category-link {
    font-weight: 600;
}
.obonglow-category-arrow {
    position: relative;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}
.obonglow-category-arrow span::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #8a8a8a;
    border-bottom: 1.5px solid #8a8a8a;
    transform: rotate(45deg);
    transition: transform .18s ease, border-color .18s ease;
}
.obonglow-category-item.is-open > .obonglow-category-row .obonglow-category-arrow span::before {
    top: 12px;
    transform: rotate(225deg);
}
.obonglow-category-item.is-current > .obonglow-category-row .obonglow-category-arrow span::before,
.obonglow-category-item.is-current-ancestor > .obonglow-category-row .obonglow-category-arrow span::before,
.obonglow-category-arrow:hover span::before {
    border-color: var(--wd-primary-color, #e9468b);
}
.obonglow-category-children {
    margin: 0;
    padding: 0;
    list-style: none;
}
.obonglow-category-children[hidden],
.obonglow-category-more[hidden] {
    display: none !important;
}
.obonglow-category-children .obonglow-category-link {
    font-size: 13.5px !important;
}
.obonglow-category-more {
    margin-top: 1px;
}
.obonglow-category-more-toggle {
    display: inline-block;
    margin-top: 14px;
}


/* v2.10.4d — duplicate-safe hierarchy, persistent More and reliable active pink */
.obonglow-product-categories {
    --obonglow-category-active: #e9468b;
}
.obonglow-product-categories .obonglow-category-link:hover,
.obonglow-product-categories .obonglow-category-link:focus-visible,
.obonglow-product-categories .obonglow-category-item.is-current > .obonglow-category-row > .obonglow-category-link,
.obonglow-product-categories .obonglow-category-item.is-current-ancestor > .obonglow-category-row > .obonglow-category-link,
.obonglow-product-categories .obonglow-category-link[aria-current="page"] {
    color: #e9468b !important;
}
.obonglow-product-categories .obonglow-category-item.is-current > .obonglow-category-row > .obonglow-category-link,
.obonglow-product-categories .obonglow-category-item.is-current-ancestor > .obonglow-category-row > .obonglow-category-link,
.obonglow-product-categories .obonglow-category-link[aria-current="page"] {
    font-weight: 600 !important;
}
.obonglow-product-categories .obonglow-category-item.is-current > .obonglow-category-row .obonglow-category-arrow span::before,
.obonglow-product-categories .obonglow-category-item.is-current-ancestor > .obonglow-category-row .obonglow-category-arrow span::before,
.obonglow-product-categories .obonglow-category-arrow:hover span::before {
    border-color: #e9468b !important;
}
.obonglow-category-more-toggle {
    color: #e9468b !important;
}

/* v2.10.4f — Brand search alignment, empty-brand list and persistent More */
.obonglow-brand-filter .obonglow-brand-search-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 17px !important;
}
.obonglow-brand-filter input.obonglow-brand-search[type="search"] {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 14px 8px 44px !important;
    border: 1px solid #dedede !important;
    border-radius: 22px !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #222 !important;
    font-size: 14px !important;
    line-height: 24px !important;
    text-indent: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.obonglow-brand-filter input.obonglow-brand-search[type="search"]::placeholder {
    color: #7a7a7a !important;
    opacity: 1 !important;
}
.obonglow-brand-filter .obonglow-brand-search-icon {
    z-index: 2 !important;
    left: 17px !important;
    top: 50% !important;
    width: 13px !important;
    height: 13px !important;
    transform: translateY(-58%) !important;
}
.obonglow-brand-filter .obonglow-brand-search-icon::after {
    right: -5px !important;
    bottom: -3px !important;
}
.obonglow-brand-filter .obonglow-brand-empty {
    margin: 10px 0 0 !important;
    color: #777 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    text-align: center !important;
}


/* v2.10.4j — selected brand polish retained on the v2.10.4i base */
.obonglow-brand-filter .obonglow-filter-link--active {
    color: var(--obonglow-filter-accent, #e83e8c) !important;
    font-weight: 600;
}
.obonglow-brand-filter .obonglow-filter-link--active .obonglow-filter-checkbox {
    background: var(--obonglow-filter-accent, #e83e8c) !important;
    border-color: var(--obonglow-filter-accent, #e83e8c) !important;
}
.obonglow-brand-filter .obonglow-filter-link--active .obonglow-filter-checkbox::after {
    opacity: 1;
}


/* v2.10.4o — force ObonGlow pink for SHOP FOR active/hover state only. */
.obonglow-shop-for .obonglow-filter-link:hover,
.obonglow-shop-for .obonglow-filter-link:focus-visible,
.obonglow-shop-for .obonglow-filter-link--active {
    color: #e9468b !important;
}
.obonglow-shop-for .obonglow-filter-link:hover .obonglow-filter-checkbox,
.obonglow-shop-for .obonglow-filter-link:focus-visible .obonglow-filter-checkbox,
.obonglow-shop-for .obonglow-filter-link--active .obonglow-filter-checkbox {
    border-color: #e9468b !important;
}
.obonglow-shop-for .obonglow-filter-link--active .obonglow-filter-checkbox {
    background-color: #e9468b !important;
}
.obonglow-shop-for .obonglow-filter-link--active .obonglow-filter-checkbox::after {
    border-color: #fff !important;
}


/* v3.0.7.3 — Active text color only: Product Categories and Brand.
 * Typography, checkbox styling, layout and SHOP FOR remain unchanged. */
.obonglow-product-categories .obonglow-filter-link--active,
.obonglow-brand-filter .obonglow-filter-link--active {
    color: #e9468b !important;
}

/* v3.0.7.4 — Product Categories selected checkbox pink only.
 * Text color from v3.0.7.3 remains; Brand, SHOP FOR, typography and logic stay unchanged. */
.obonglow-product-categories .obonglow-filter-link--active .obonglow-filter-checkbox {
    background-color: #e9468b !important;
    border-color: #e9468b !important;
}
.obonglow-product-categories .obonglow-filter-link--active .obonglow-filter-checkbox::after {
    border-color: #ffffff !important;
    opacity: 1 !important;
}
