/* VELUGI category sidebar. Native filtering and customer-data behaviour retained. */
body.retail-storefront.catalog-category-view .sidebar {
    --vs-sage: var(--velugi-forest-sage, #4f6354);
    --vs-cream: var(--velugi-warm-cream, #f4f1e8);
    --vs-ink: var(--velugi-charcoal, #30352f);
    --vs-accent: var(--velugi-mustard, #c5a13a);
    --vs-line: #d8ddd3;
    --vs-soft: #edf0e9;
    color: var(--vs-ink);
    min-width: 0;
}
body.retail-storefront.catalog-category-view .sidebar .block {
    box-sizing: border-box;
    margin: 0 0 18px;
    border: 1px solid var(--vs-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav {
    padding: 18px 12px 12px;
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav__heading {
    padding: 0 4px 14px;
    border-bottom: 1px solid var(--vs-line);
    margin-bottom: 10px;
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav__eyebrow {
    margin: 0 0 6px;
    color: var(--vs-sage);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    line-height: 1.5;
    text-transform: uppercase;
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav h2 {
    margin: 0;
    color: var(--vs-sage);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.25px;
    line-height: 1.3;
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav li {
    margin: 0 0 4px;
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav li:last-child { margin-bottom: 0; }
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--vs-sage);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav a::after {
    content: '';
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav a:hover {
    background: var(--vs-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav a.is-active {
    background: var(--vs-sage);
    border-color: var(--vs-sage);
    color: var(--vs-cream);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--vs-accent);
}
body.retail-storefront.catalog-category-view .sidebar .filter .filter-title {
    margin: 0;
    padding: 16px;
    border-radius: 13px 13px 0 0;
    background: var(--vs-sage);
    color: var(--vs-cream);
}
body.retail-storefront.catalog-category-view .sidebar .filter .filter-title strong {
    color: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}
body.retail-storefront.catalog-category-view .sidebar .filter .filter-content { padding: 16px 12px 12px; }
body.retail-storefront.catalog-category-view .sidebar .filter-options { margin: 0; }
body.retail-storefront.catalog-category-view .sidebar .filter-options-title {
    margin: 0 4px 9px;
    padding: 0;
    color: var(--vs-sage);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
body.retail-storefront.catalog-category-view .sidebar .filter-options-content { margin: 0 0 16px; padding: 0; }
body.retail-storefront.catalog-category-view .sidebar .filter-options-content:last-child { margin-bottom: 0; }
body.retail-storefront.catalog-category-view .sidebar .filter-options .items { margin: 0; padding: 0; list-style: none; }
body.retail-storefront.catalog-category-view .sidebar .filter-options .item { margin: 0 0 5px; }
body.retail-storefront.catalog-category-view .sidebar .filter-options .item:last-child { margin-bottom: 0; }
body.retail-storefront.catalog-category-view .sidebar .filter-options .item a {
    box-sizing: border-box;
    display: block;
    position: relative;
    min-height: 44px;
    padding: 12px 42px 12px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--vs-cream);
    color: var(--vs-ink);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}
body.retail-storefront.catalog-category-view .sidebar .filter-options .item a:hover {
    border-color: var(--vs-sage);
    background: var(--vs-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.retail-storefront.catalog-category-view .sidebar .filter-options .item a .count {
    box-sizing: border-box;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 24px;
    padding: 2px 5px;
    border-radius: 20px;
    background: #fff;
    color: var(--vs-sage);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
}
body.retail-storefront.catalog-category-view .sidebar .filter-options .count::before,
body.retail-storefront.catalog-category-view .sidebar .filter-options .count::after { content: none; }
body.retail-storefront.catalog-category-view .sidebar .filter-current {
    margin: 0 0 14px;
    padding: 0 4px 12px;
    border-bottom: 1px solid var(--vs-line);
}
body.retail-storefront.catalog-category-view .sidebar .filter-current .filter-label {
    color: var(--vs-sage);
    font-size: 13px;
    font-weight: 600;
}
body.retail-storefront.catalog-category-view .sidebar .filter-current .filter-value { color: var(--vs-ink); font-size: 13px; }
body.retail-storefront.catalog-category-view .sidebar .filter-actions { margin: 0 4px 16px; }
body.retail-storefront.catalog-category-view .sidebar .filter-actions a,
body.retail-storefront.catalog-category-view .sidebar .actions-toolbar .action.clear,
body.retail-storefront.catalog-category-view .sidebar .actions-toolbar .action.details {
    display: inline-block;
    padding-block: 8px;
    color: var(--vs-sage);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.retail-storefront.catalog-category-view .sidebar .block-compare,
body.retail-storefront.catalog-category-view .sidebar .block-wishlist { padding: 16px; background: #fcfbf7; }
body.retail-storefront.catalog-category-view .sidebar .block-compare .block-title,
body.retail-storefront.catalog-category-view .sidebar .block-wishlist .block-title {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--vs-line);
}
body.retail-storefront.catalog-category-view .sidebar .block-compare .block-title::after,
body.retail-storefront.catalog-category-view .sidebar .block-wishlist .block-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--vs-accent);
}
body.retail-storefront.catalog-category-view .sidebar .block-compare .block-title strong,
body.retail-storefront.catalog-category-view .sidebar .block-wishlist .block-title strong {
    color: var(--vs-sage);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}
body.retail-storefront.catalog-category-view .sidebar .block-compare .empty,
body.retail-storefront.catalog-category-view .sidebar .block-wishlist .empty {
    margin: 0;
    color: var(--vs-ink);
    font-size: 13px;
    line-height: 1.65;
}
body.retail-storefront.catalog-category-view .sidebar .block-compare .product-item-link,
body.retail-storefront.catalog-category-view .sidebar .block-wishlist .product-item-link {
    color: var(--vs-sage);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
body.retail-storefront.catalog-category-view .sidebar .block-compare .action.compare {
    background: var(--vs-sage);
    border: 1px solid var(--vs-sage);
    border-radius: 7px;
    color: var(--vs-cream);
    padding: 10px 14px;
}
body.retail-storefront.catalog-category-view .sidebar a:focus-visible,
body.retail-storefront.catalog-category-view .sidebar button:focus-visible {
    outline: 2px solid var(--vs-sage);
    outline-offset: 3px;
}
@media (min-width: 768px) {
    body.retail-storefront.catalog-category-view .sidebar .filter-content > .filter-subtitle {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}
@media (max-width: 767px) {
    body.retail-storefront.catalog-category-view .sidebar .block { border-radius: 12px; margin-bottom: 16px; }
    body.retail-storefront.catalog-category-view .sidebar .filter-content > .filter-subtitle {
        display: block;
        margin: 0 4px 14px;
        color: var(--vs-sage);
        font-size: 14px;
    }
    body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav a { min-height: 46px; }
}
@media (forced-colors: active) {
    body.retail-storefront.catalog-category-view .sidebar .velugi-sidebar-nav a.is-active { outline: 2px solid Highlight; }
}
