/* Zipchat uses its own maximal stacking context. A full-screen filter drawer
   must not leave that floating UI on top of its choices or close control. */
body.xbau-filter-drawer-open #zipchat-shadow-host {
    display: none !important;
}
.catalog-category-view .xbau-category-tree,
.catalog-category-view .xbau-category-tree * {
    box-sizing: border-box;
}
.catalog-category-view .xbau-category-tree__level {
    margin: 0;
    padding: 0;
    list-style: none;
}
.catalog-category-view .xbau-category-tree__level .xbau-category-tree__level {
    margin-left: 20px;
    padding-left: 8px;
    border-left: 2px solid rgba(30, 153, 164, 0.14);
}
.catalog-category-view .xbau-category-tree details[open] > .xbau-category-tree__level {
    margin-top: 8px;
    margin-bottom: 12px;
}
.catalog-category-view .xbau-category-tree__branch {
    /* _catalog-category-base.scss is loaded later and gives every layered
       navigation li a 24px bottom margin.  A category branch is already a
       complete 42px row, so that legacy spacing created the irregular,
       needlessly tall list seen on brand/category pages. */
    margin: 2px 0 !important;
}
.catalog-category-view .xbau-category-tree__summary {
    position: relative;
    min-height: 42px;
    cursor: pointer;
    list-style: none;
}
.catalog-category-view .xbau-category-tree__control {
    display: grid;
    min-height: 42px;
    align-items: center;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 9px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease,
        box-shadow 180ms ease;
}
.catalog-category-view .xbau-category-tree__summary .xbau-category-tree__control {
    padding-right: 36px;
}
.catalog-category-view .xbau-category-tree__checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    align-self: center;
    transform: none;
    cursor: pointer;
    accent-color: #1E99A4;
}
.catalog-category-view .xbau-category-tree__summary::-webkit-details-marker {
    display: none;
}
.catalog-category-view .xbau-category-tree__summary::after {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #4D4D4F;
    border-bottom: 2px solid #4D4D4F;
    content: '';
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
    transition: border-color 180ms ease, transform 180ms ease;
}
.catalog-category-view .xbau-category-tree details[open] > .xbau-category-tree__summary::after {
    transform: translateY(-30%) rotate(225deg);
}
.catalog-category-view .xbau-category-tree__link {
    display: flex;
    min-width: 0;
    min-height: 30px;
    align-items: center;
    padding: 3px 0;
    color: #4D4D4F;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.catalog-category-view .xbau-category-tree__label {
    min-width: 0;
    overflow-wrap: anywhere;
}
/* The later legacy theme styles nested facet links at 600/12px. Keep one
   typeface and weight at every depth; hierarchy changes size, not boldness. */
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content
    .xbau-category-tree :is(.xbau-category-tree__link, .xbau-category-tree__label) {
    font-family: inherit;
    font-weight: 500 !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content
    .xbau-category-tree__level .xbau-category-tree__level .xbau-category-tree__link {
    font-size: 13px !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content
    .xbau-category-tree__label {
    font-size: inherit !important;
}
.catalog-category-view .xbau-category-tree__result-count {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 8px;
    color: #9C9EA1;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.catalog-category-view .xbau-category-tree__control:hover
    .xbau-category-tree__result-count,
.catalog-category-view .xbau-category-tree__branch.is-active
    .xbau-category-tree__result-count {
    color: #1E99A4;
}
.catalog-category-view .xbau-category-tree__selected {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid rgba(30, 153, 164, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fcfc 0%, #edf8f9 100%);
    box-shadow: 0 8px 22px rgba(77, 77, 79, 0.06);
}
.catalog-category-view .xbau-category-tree__selected-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #4D4D4F;
}
.catalog-category-view .xbau-category-tree__selected-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.catalog-category-view .xbau-category-tree__selected-count {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #1E99A4;
    color: #fff;
    font-size: 13px;
    line-height: 1;
}
.catalog-category-view .xbau-category-tree__clear {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 9px;
    color: #1E99A4;
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease;
}
.catalog-category-view .xbau-category-tree__clear:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.10);
    color: #157b84;
    outline: none;
}
.catalog-category-view .xbau-category-tree__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.catalog-category-view .xbau-category-tree__chip {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 7px 6px 12px;
    border: 1px solid #1E99A4;
    border-radius: 999px;
    background: #fff;
    color: #157b84;
    box-shadow: 0 3px 10px rgba(77, 77, 79, 0.06);
    line-height: 1.2;
    transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease,
        transform 180ms ease;
}
.catalog-category-view .xbau-category-tree__chip:is(:hover, :focus-visible) {
    border-color: #157b84;
    background: #fff;
    color: #0f6269;
    box-shadow: 0 5px 14px rgba(30, 153, 164, 0.18);
    outline: none;
    transform: translateY(-1px);
}
.catalog-category-view .xbau-category-tree__chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.catalog-category-view .xbau-category-tree__chip-remove {
    display: inline-grid;
    width: 24px;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(30, 153, 164, 0.12);
    color: #157b84;
    font-size: 18px;
    line-height: 1;
    transition: background-color 180ms ease, color 180ms ease;
}
.catalog-category-view .xbau-category-tree__chip:is(:hover, :focus-visible)
    .xbau-category-tree__chip-remove {
    background: #1E99A4;
    color: #fff;
}
.catalog-category-view .xbau-category-tree__level--0 > .xbau-category-tree__branch > details >
    .xbau-category-tree__summary .xbau-category-tree__link,
.catalog-category-view .xbau-category-tree__level--0 > .xbau-category-tree__branch >
    .xbau-category-tree__control > .xbau-category-tree__link {
    /* Category and Brand are peer filters. Their labels must not change
       typographic weight simply because one uses a custom tree renderer. */
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}
.catalog-category-view .xbau-category-tree__link:hover,
.catalog-category-view .xbau-category-tree__link:focus-visible,
.catalog-category-view .xbau-category-tree__link[aria-current='page'] {
    color: #1E99A4;
}
.catalog-category-view .xbau-category-tree__control:hover {
    background: rgba(30, 153, 164, 0.08);
    border-color: rgba(30, 153, 164, 0.16);
}
.catalog-category-view .xbau-category-tree__control:hover .xbau-category-tree__link {
    color: #1E99A4;
}
.catalog-category-view .xbau-category-tree__branch.is-active > .xbau-category-tree__control,
.catalog-category-view .xbau-category-tree__branch.is-active > details > .xbau-category-tree__summary
    .xbau-category-tree__control {
    border-color: rgba(30, 153, 164, 0.22);
    background: rgba(30, 153, 164, 0.10);
}
.catalog-category-view .xbau-category-tree__summary:is(:hover, :focus-visible)::after {
    border-color: #1E99A4;
}
.catalog-category-view .xbau-category-tree__checkbox:focus-visible {
    outline: 2px solid #1E99A4;
    outline-offset: 3px;
}
.catalog-category-view .xbau-category-tree__checkbox:disabled,
.catalog-category-view .xbau-category-tree__link.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.catalog-category-view .xbau-category-tree__control.is-disabled {
    background: transparent;
    border-color: transparent;
}
.catalog-category-view .xbau-category-tree__link:focus-visible,
.catalog-category-view .xbau-category-tree__summary:focus-visible {
    outline: 2px solid #1E99A4;
    outline-offset: -2px;
}

/* Keep the native ElasticSuite Brand facet visually aligned with the root
   category selector.  The renderer can provide either .filter-search or a
   search-type input depending on the deployed ElasticSuite patch level. */
.catalog-category-view .filter-options-content
    :is(input.filter-search, .field.search input.input-text, input[type='search']) {
    width: 100%;
    height: 44px;
    margin: 4px 0 14px;
    padding: 0 14px;
    border: 1px solid rgba(77, 77, 79, 0.24);
    border-radius: 12px;
    background: #fff;
    color: #4D4D4F;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.catalog-category-view .filter-options-content .field.search {
    margin: 4px 0 14px;
}
.catalog-category-view .filter-options-content .field.search
    :is(input.filter-search, input.input-text, input[type='search']) {
    margin: 0;
}
.catalog-category-view .filter-options-content
    :is(input.filter-search, .field.search input.input-text, input[type='search']):is(:hover, :focus) {
    border-color: #1E99A4;
    box-shadow: 0 0 0 3px rgba(30, 153, 164, 0.12);
    outline: none;
}
.catalog-category-view .filter-options-content
    :is(input.filter-search, .field.search input.input-text, input[type='search']) + .items,
.catalog-category-view .filter-options-content .field.search + .items {
    margin-top: 12px;
}
.catalog-category-view .filter-options-content .items > li {
    margin: 2px 0 4px;
}
.catalog-category-view .filter-options-content .items > li > a {
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    transition: background-color 180ms ease, color 180ms ease;
}
.catalog-category-view .filter-options-content .items > li > a:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.08);
}
.catalog-category-view .filter-options-content .items > li > a input[type='checkbox'] {
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin: 0;
    transform: none;
}
.catalog-category-view .filter-options-content .items > li > a label {
    min-width: 0;
    margin: 0;
    line-height: 1.35;
}
@media (max-width: 767px) {
    .catalog-category-view .xbau-category-tree__summary,
    .catalog-category-view .xbau-category-tree__control {
        min-height: 48px;
    }
    .catalog-category-view .xbau-category-tree__level .xbau-category-tree__level {
        margin-left: 14px;
        padding-left: 6px;
    }
    .catalog-category-view .xbau-category-tree__selected-heading {
        align-items: flex-start;
    }
    .catalog-category-view .xbau-category-tree__chip {
        width: 100%;
        justify-content: space-between;
    }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-category-view .xbau-category-tree__control,
    .catalog-category-view .xbau-category-tree__summary::after,
    .catalog-category-view .xbau-category-tree__clear,
    .catalog-category-view .xbau-category-tree__chip,
    .catalog-category-view .xbau-category-tree__chip-remove {
        transition: none;
    }
    .catalog-category-view .xbau-category-tree__chip:is(:hover, :focus-visible) {
        transform: none;
    }
}

/* Unified Xbau layered-navigation system for category and search result pages. */
:is(.catalog-category-view, .catalogsearch-result-index) .block.filter {
    color: #4D4D4F;
}
:is(.catalog-category-view, .catalogsearch-result-index) .block.filter .filter-content {
    border: 1px solid rgba(156, 158, 161, 0.22);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(77, 77, 79, 0.055);
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current {
    gap: 8px;
    padding: 14px 14px 4px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current .items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current .items > .item {
    position: relative;
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 36px 6px 11px;
    border: 1px solid rgba(30, 153, 164, 0.28);
    border-radius: 999px;
    background: #f7fcfc;
    color: #4D4D4F;
    line-height: 1.25;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current .action.remove {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    transform: translateY(-50%);
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current .action.remove:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.13);
    outline: 2px solid transparent;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-actions {
    display: flex;
    justify-content: flex-end;
    padding: 4px 14px 12px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .block-actions .action.clear {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 9px;
    color: #1E99A4;
    font-size: 13px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .block-actions .action.clear:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.09);
    color: #157b84;
    outline: none;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options {
    padding: 0 12px 10px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item {
    border-bottom: 1px solid rgba(156, 158, 161, 0.20);
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item:last-child {
    border-bottom: 0;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title,
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-title {
    box-sizing: border-box;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    align-items: center;
    margin: 0;
    padding: 0 12px !important;
    /* The legacy theme adds a top rule to every title.  The outer filter
       frame already owns the first edge and each item owns its separator. */
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    color: #4D4D4F;
    /* The legacy theme declares a later 12px rule for collapsed facets. Keep
       typography invariant so opening a facet never looks like a resize. */
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    transition: color 160ms ease;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-content,
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-content {
    /* Prevent the legacy content bottom rule from doubling the item
       separator and from drawing a stray line inside the last Price block. */
    border: 0 !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title:is(:hover, :focus-visible),
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-title {
    background: transparent;
    color: #1E99A4;
    outline: none;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title:focus-visible {
    box-shadow: inset 3px 0 0 #1E99A4;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-content {
    padding: 4px 8px 12px;
    border-bottom: 0;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content > .items {
    margin: 0;
    padding-right: 0;
    overflow: visible;
    overscroll-behavior: contain;
    scrollbar-color: rgba(30, 153, 164, 0.55) transparent;
    scrollbar-width: thin;
}
/* ElasticSuite already progressively reveals long attribute lists with its
   Show more action. A second nested scrollbar is redundant and makes the
   sidebar feel trapped, so let the page/drawer own scrolling for that case. */
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content:has(.actions .action:is(.show-more, .show-less)) .items {
    max-height: none;
    padding-right: 0;
    overflow: visible;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content .actions .action:is(.show-more, .show-less) {
    box-sizing: border-box;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    margin: 8px 0 2px 8px;
    padding: 7px 11px;
    border: 1px solid rgba(30, 153, 164, 0.28);
    border-radius: 9px;
    background: rgba(30, 153, 164, 0.07);
    color: #1E99A4;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content .actions .action:is(.show-more, .show-less):is(:hover, :focus-visible) {
    border-color: #1E99A4;
    background: rgba(30, 153, 164, 0.13);
    color: #157b84;
    text-decoration: none;
    outline: none;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content .actions .action:is(.show-more, .show-less):focus-visible {
    box-shadow: 0 0 0 3px rgba(30, 153, 164, 0.20);
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content > .items:has(> li:nth-child(13)) {
    max-height: min(48vh, 430px);
    padding-right: 4px;
    overflow-y: auto;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content > .items::-webkit-scrollbar,
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree::-webkit-scrollbar {
    width: 6px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content > .items::-webkit-scrollbar-thumb,
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(30, 153, 164, 0.48);
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li {
    margin: 2px 0 !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a {
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 6px 9px;
    border-radius: 10px;
    color: #4D4D4F;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.075);
    color: #1E99A4;
    outline: none;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a .count {
    margin-left: auto;
    padding-left: 8px;
    color: #9C9EA1;
    font-size: 12px;
    font-weight: 500;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a:is(:hover, :focus-visible) .count {
    color: #1E99A4;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content .items > li > a input[type='checkbox'] {
    position: static !important;
    display: block !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid rgba(77, 77, 79, 0.42) !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    clip: auto !important;
    clip-path: none !important;
    cursor: pointer;
    transform: none !important;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content .items > li > a input[type='checkbox']:checked {
    border-color: #1E99A4 !important;
    background-color: #1E99A4 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3.5 8 3 3 6-7'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content .items > li > a input[type='checkbox']:checked::before {
    display: none !important;
    content: none !important;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content .items > li > a:is(:hover, :focus-visible)
    input[type='checkbox']:not(:checked) {
    /* Brand and attribute rows use the same whole-row affordance as Category:
       moving across either the label or its checkbox highlights both controls
       without changing geometry or implying a checked state. */
    border-color: #1E99A4 !important;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content .items > li > a input[type='checkbox']:not(:checked):is(:hover, :focus-visible) {
    border-color: #1E99A4 !important;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-content .items > li > a input[type='checkbox']:focus-visible {
    outline: 2px solid rgba(30, 153, 164, 0.42);
    outline-offset: 2px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a label {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree {
    padding-right: 0;
    overflow: visible;
    overscroll-behavior: contain;
    scrollbar-color: rgba(30, 153, 164, 0.55) transparent;
    scrollbar-width: thin;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-category-tree:has(.xbau-category-tree__branch:nth-child(13)) {
    max-height: min(58vh, 560px);
    padding-right: 4px;
    overflow-y: auto;
}

/* Native ElasticSuite category fallback. It must remain a first-class filter,
   not a link-only degraded state: the whole row and a visible checkbox both
   trigger the same instant AJAX URL. */
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter,
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter * {
    box-sizing: border-box;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter__items {
    margin: 0;
    padding: 2px 0;
    list-style: none;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-native-category-filter__items:has(> li:nth-child(13)) {
    max-height: min(48vh, 430px);
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(30, 153, 164, 0.55) transparent;
    scrollbar-width: thin;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter__item {
    margin: 2px 0 !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter__control {
    display: grid;
    min-height: 42px;
    align-items: center;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    transition: background-color 160ms ease, border-color 160ms ease;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-native-category-filter__control:hover {
    border-color: transparent;
    background: rgba(30, 153, 164, 0.075);
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-native-category-filter__control:hover
    :is(.xbau-native-category-filter__link, .xbau-native-category-filter__count) {
    color: #1E99A4;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-native-category-filter__control:hover
    .xbau-category-tree__checkbox:not(:checked),
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-category-tree__control:hover
    .xbau-category-tree__checkbox:not(:checked) {
    border-color: #1E99A4 !important;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-native-category-filter__item.is-active .xbau-native-category-filter__control {
    border-color: rgba(30, 153, 164, 0.18);
    background: rgba(30, 153, 164, 0.075);
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-native-category-filter__item.is-active
    :is(.xbau-native-category-filter__link, .xbau-native-category-filter__count) {
    color: #1E99A4;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter__link {
    display: grid;
    min-width: 0;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    color: #4D4D4F;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-native-category-filter__link:is(:hover, :focus-visible, [aria-current='true']) {
    color: #1E99A4;
    outline: none;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter__label {
    min-width: 0;
    overflow-wrap: anywhere;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter__count {
    color: #9C9EA1;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* The base theme hides layered-navigation checkboxes. Reset every hiding
   mechanism explicitly so both curated and native category paths present the
   same familiar control. */
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree__checkbox {
    position: static !important;
    display: block !important;
    width: 20px !important;
    min-width: 20px;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid rgba(77, 77, 79, 0.42) !important;
    border-radius: 5px;
    background: #fff;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    appearance: none;
    -webkit-appearance: none;
    clip: auto !important;
    clip-path: none !important;
    cursor: pointer;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree__checkbox:checked {
    border-color: #1E99A4 !important;
    background-color: #1E99A4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3.5 8 3 3 6-7'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
}
/* style.css also draws its icon-font checkmark in ::before.  This filter
   control owns a single SVG checkmark, so suppress the global second glyph;
   otherwise the two marks visibly collide, especially at browser zoom. */
:is(.catalog-category-view, .catalogsearch-result-index)
    .xbau-category-tree__checkbox:checked::before {
    display: none !important;
    content: none !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree__checkbox:hover {
    border-color: #1E99A4 !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree__checkbox:focus-visible {
    outline: 2px solid rgba(30, 153, 164, 0.42);
    outline-offset: 2px;
}

/* Price and attribute sections share the same compact vertical rhythm. */
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] .filter-options-content {
    padding-top: 10px;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] .smile-es-range-slider {
    color: #4D4D4F;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price']
    :is([data-role='from-label'], [data-role='to-label'], [data-role='message-box']) {
    color: #4D4D4F;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] .range-price-label {
    margin-bottom: 10px;
    color: #4D4D4F;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] [data-role='slider-bar'] {
    position: relative;
    height: 6px;
    margin: 10px 10px 0;
    border: 0;
    border-radius: 999px;
    background: #D8D9DA;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] [data-role='slider-bar'] .ui-slider-range {
    border-radius: 999px;
    background: #1E99A4;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] .actions-toolbar {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 0 10px;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] [data-role='message-box'] {
    min-width: 0;
    justify-self: start;
    margin: 0;
    text-align: left;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] .actions-primary {
    justify-self: end;
    margin-left: auto;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] :is(button, a.action.primary.small) {
    min-height: 40px;
    padding: 0 18px !important;
    border: 1px solid #1E99A4;
    border-radius: 10px !important;
    background: #1E99A4;
    box-shadow: none;
    color: #fff;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    transition: background-color 160ms ease, border-color 160ms ease;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price']
    :is(button, a.action.primary.small):is(:hover, :focus-visible) {
    border-color: #157B84;
    background: #157B84;
    color: #fff;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price']
    :is(button, a.action.primary.small):focus-visible {
    outline: 2px solid rgba(30, 153, 164, 0.36);
    outline-offset: 2px;
}
:is(.catalog-category-view, .catalogsearch-result-index)
    .filter-options-item[data-filter-code='price'] .smile-es-range-slider .ui-slider-handle {
    top: 50% !important;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin-top: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1E99A4;
    box-shadow: 0 0 0 1px rgba(30, 153, 164, 0.28);
    transform: translateY(-50%) !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .category-list-view.is-updating {
    /* Keep the existing cards/empty-state geometry and text rendering while
       the replacement loads. Busy feedback must not resize or fade content. */
    cursor: progress;
    pointer-events: none;
}
:is(.catalog-category-view, .catalogsearch-result-index) #layered-filter-block.is-updating {
    /* Do not fade text on every checkbox request: subpixel antialiasing during
       opacity compositing made the font look heavier/larger, then shrink. */
    pointer-events: none;
}
.xbau-filter-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .mobile-toggle-filters {
    width: 100%;
    min-height: 50px;
    gap: 10px;
    border-color: rgba(30, 153, 164, 0.32);
    background: #fff;
    box-shadow: 0 5px 16px rgba(77, 77, 79, 0.055);
    color: #4D4D4F;
}
:is(.catalog-category-view, .catalogsearch-result-index) .mobile-toggle-filters:is(:hover, :focus-visible) {
    border-color: #1E99A4;
    background: #f7fcfc;
    outline: none;
}
.xbau-filter-toggle__count,
.xbau-filter-panel__count {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #1E99A4;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.xbau-filter-toggle__count {
    margin-left: auto;
}
.xbau-filter-panel__count {
    margin-left: 8px;
}

@media (max-width: 767px) {
    body.xbau-filter-drawer-open {
        overflow: hidden;
        overscroll-behavior: none;
    }
    /* Header and catalogue live in separate stacking contexts. Raising the
       panel's z-index cannot lift it above the header-owned fixed bottom bar.
       Hide that unrelated navigation while the modal filter task is open. */
    body.xbau-filter-drawer-open .page-header .bottom-links-wrapper {
        display: none !important;
    }
    /* The same header stacking context also contains the sticky logo/search
       bar. Preserve page geometry, but remove all header painting and hit
       targets while the modal owns the viewport (including its close button). */
    body.xbau-filter-drawer-open .page-header,
    body.xbau-filter-drawer-open .page-header * {
        visibility: hidden !important;
        pointer-events: none !important;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .filter-toggle-content-container.filter-content-active {
        inset: 0;
        z-index: 10000;
        padding: 0 !important;
        overflow: hidden !important;
        background: #fff;
    }
    /* A desktop page can be resized or rotated into mobile after the drawer
       was initialized.  Keep its panel out of normal page flow until the
       semantic toggle explicitly opens it. */
    :is(.catalog-category-view, .catalogsearch-result-index)
        .filter-toggle-content-container:not(.filter-content-active) .block-content.filter-content {
        display: none !important;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .filter-toggle-content-container.filter-content-active .block-content.filter-content {
        box-sizing: border-box !important;
        position: fixed;
        inset: 0;
        /* The storefront header owns z-index: 10.  The wrapper is static, so
           its z-index cannot lift this fixed panel or its close control. */
        z-index: 10000 !important;
        display: block !important;
        width: 100vw !important;
        max-width: none !important;
        padding: 0 16px 28px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .filter-toggle-content-container.filter-content-active .mobile-menu-default-title {
        box-sizing: border-box;
        position: sticky;
        top: 0;
        z-index: 3;
        display: flex !important;
        min-height: 68px;
        align-items: center;
        margin: 0 -16px 12px !important;
        padding: max(8px, env(safe-area-inset-top)) 16px 8px;
        border-bottom: 1px solid rgba(156, 158, 161, 0.22);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .mobile-menu-default-title .close-filters {
        display: inline-grid;
        position: static !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        place-items: center;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(156, 158, 161, 0.24);
        border-radius: 12px;
        background: #fff;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .mobile-menu-default-title .close-filters:is(:hover, :focus-visible) {
        border-color: #1E99A4;
        background: #f7fcfc;
        outline: none;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .mobile-menu-default-title .title {
        height: auto !important;
        margin-left: 12px;
        color: #4D4D4F;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25 !important;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-current {
        padding-right: 0;
        padding-left: 0;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-actions {
        position: sticky;
        top: 68px;
        z-index: 2;
        margin: 0 -16px 8px;
        padding: 8px 16px;
        border-bottom: 1px solid rgba(156, 158, 161, 0.16);
        background: #fff;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options {
        padding-right: 0;
        padding-left: 0;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content > .items,
    :is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree,
    :is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter__items,
    :is(.catalog-category-view, .catalogsearch-result-index)
        .filter-options-content > .items:has(> li:nth-child(13)),
    :is(.catalog-category-view, .catalogsearch-result-index)
        .xbau-category-tree:has(.xbau-category-tree__branch:nth-child(13)),
    :is(.catalog-category-view, .catalogsearch-result-index)
        .xbau-native-category-filter__items:has(> li:nth-child(13)) {
        max-height: none;
        overflow: visible;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title,
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-title {
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        font-size: 15px !important;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .filter-options-content .actions .action:is(.show-more, .show-less) {
        min-height: 44px;
        margin-left: 6px;
        padding: 10px 12px;
        font-size: 14px;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a {
        min-height: 48px;
        font-size: 14px;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .xbau-native-category-filter__control {
        min-height: 48px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    :is(.catalog-category-view, .catalogsearch-result-index) .block.filter .filter-content {
        border-radius: 14px;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options {
        padding-right: 8px;
        padding-left: 8px;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title,
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-title {
        padding-right: 9px !important;
        padding-left: 9px !important;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree__level .xbau-category-tree__level {
        margin-left: 12px;
        padding-left: 5px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    /* Legacy tablet CSS leaves .columns as a block while retaining a 25%
       left margin on the product column. Explicit tracks keep the later DOM
       sidebar beside the products instead of below the complete product list. */
    :is(.catalog-category-view, .catalogsearch-result-index).page-layout-2columns-left .columns {
        display: grid;
        grid-template-columns: minmax(210px, 28%) minmax(0, 1fr);
        column-gap: 20px;
        align-items: start;
    }
    :is(.catalog-category-view, .catalogsearch-result-index).page-layout-2columns-left
        .columns > :is(.sidebar-main, .column.main) {
        width: auto !important;
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none;
        grid-row: 4;
    }
    :is(.catalog-category-view, .catalogsearch-result-index).page-layout-2columns-left
        .columns > .sidebar-main { grid-column: 1; }
    :is(.catalog-category-view, .catalogsearch-result-index).page-layout-2columns-left
        .columns > .column.main { grid-column: 2; }

    /* Native breadcrumbs/banner/hero are siblings of both product columns.
       Explicit column row 1 would put them AFTER the entire product list.
       Empty header rows collapse naturally on search pages without banners. */
    :is(.catalog-category-view, .catalogsearch-result-index).page-layout-2columns-left
        .columns > :is(.breadcrumbs, .xbau-brand-banner-slot, .xbau-category-hero) {
        grid-column: 1 / -1;
        min-width: 0;
    }
    :is(.catalog-category-view, .catalogsearch-result-index).page-layout-2columns-left
        .columns > .breadcrumbs { grid-row: 1; }
    :is(.catalog-category-view, .catalogsearch-result-index).page-layout-2columns-left
        .columns > .xbau-brand-banner-slot { grid-row: 2; }
    :is(.catalog-category-view, .catalogsearch-result-index).page-layout-2columns-left
        .columns > .xbau-category-hero { grid-row: 3; }
}
