/* Shared catalog filters: quiet surfaces, clear hierarchy, generous controls. */
.shop-mobile-toolbar { display: none; }
.shop-layout .shop-filters-panel.shop-filters-modern {
    --filter-ink: var(--text-main, #163c32);
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: calc(100dvh - 140px);
    background: #fff;
    border: 1px solid var(--border, #dae5df);
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(18, 56, 43, .05);
    overflow: hidden;
}
body.brand-food .shop-layout .shop-filters-panel.shop-filters-modern { padding: 0; margin: 0; }
.shop-layout .shop-filters-panel.shop-filters-modern .filter-header {
    flex-shrink: 0;
    padding: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border, #dae5df);
    gap: 12px;
}
.shop-layout .shop-filters-panel.shop-filters-modern .filter-header h2 {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.4px;
    color: var(--filter-ink);
}
.shop-layout .shop-filters-modern .link-button {
    border: 0;
    border-radius: 8px;
    padding: 8px;
    background: transparent;
    color: var(--primary, #006653);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.shop-filter-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; }
.shop-layout .shop-filters-panel.shop-filters-modern .filters-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
.shop-layout .shop-filters-panel.shop-filters-modern .filter-item { padding: 0; margin: 0; border: 0; display: flex; flex-direction: column; gap: 9px; }
.shop-layout .shop-filters-panel.shop-filters-modern .filter-item:first-child { padding-top: 16px; }
.shop-layout .shop-filters-panel.shop-filters-modern label { color: var(--filter-ink); font-size: 13px; font-weight: 650; margin: 0; }
.shop-layout .shop-filters-panel.shop-filters-modern :is(.filter-input, .filter-select), .shop-mobile-toolbar input {
    width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px;
    border: 1px solid var(--border, #dae5df); border-radius: 12px;
    background: #f8faf9; color: var(--filter-ink, #163c32);
    font: inherit; font-size: 16px; box-shadow: none;
}
.shop-layout .shop-filters-panel.shop-filters-modern :is(input, select, button):focus-visible,
.shop-mobile-toolbar :is(input, button):focus-visible { outline: 3px solid var(--primary, #006653); outline-offset: 3px; }
.shop-layout .shop-filters-panel.shop-filters-modern .category-filter-tree {
    padding: 0; margin: 0; border: 0; border-radius: 0; background: none;
    max-height: none; overflow: visible;
}
.shop-filters-panel .category-filter-tree ul { list-style: none; padding: 0; margin: 0; }
.shop-layout .shop-filters-panel.shop-filters-modern .category-label {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 44px; padding: 10px 12px; margin: 3px 0;
    border: 0; border-radius: 10px; background: transparent;
    text-align: left; font: inherit; font-size: 14px; line-height: 1.4;
    color: var(--filter-ink); cursor: pointer; overflow-wrap: anywhere;
}
.shop-layout .shop-filters-panel.shop-filters-modern .category-label:is(:hover, .active) {
    background: var(--primary-soft, #e9f3ed); color: var(--primary, #006653);
}
.shop-layout .shop-filters-panel.shop-filters-modern .category-label.active { font-weight: 700; box-shadow: inset 3px 0 var(--primary, #006653); }
.shop-layout .shop-filters-modern .category-label[aria-expanded]::after { transform: none; content: '+'; font-size: 18px; margin-left: 10px; }
.shop-layout .shop-filters-modern .category-label[aria-expanded='true']::after { content: '−'; }
.shop-filters-panel .category-children { display: none; margin-left: 12px; padding-left: 8px; border-left: 1px solid var(--border, #dae5df); }
.shop-filters-panel li.open > .category-children { display: block; }
.shop-layout .shop-filters-panel.shop-filters-modern .filter-footer {
    flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    padding: 16px 20px; border-top: 1px solid var(--border, #dae5df);
    background: #fff; font-size: 13px; color: var(--text-muted, #60736a);
}
.shop-filter-apply { display: none; }
@media (max-width: 900px) {
    .shop-mobile-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
    .shop-mobile-toolbar input { flex: 1; width: 0; background: #fff; }
    .shop-mobile-toolbar .mobile-filter-toggle {
        position: static; display: inline-flex; flex-shrink: 0; align-items: center;
        justify-content: center; gap: 7px; width: auto; height: 46px; min-height: 46px;
        padding: 0 14px; margin: 0; border: 1px solid var(--border, #dae5df);
        border-radius: 12px; color: var(--primary, #006653); background: #fff;
        box-shadow: none; font: inherit; font-size: 14px; font-weight: 700; z-index: auto;
    }
    .shop-mobile-toolbar .mobile-filter-toggle svg { width: 20px; height: 20px; fill: none; }
    .shop-layout .mobile-filter-backdrop { position: fixed; inset: 0; z-index: 1200; background: rgba(12, 35, 28, .45); backdrop-filter: blur(3px); }
    .shop-layout .mobile-filter-backdrop.open { display: block; }
    .shop-layout .shop-filters-panel.shop-filters-modern, body.brand-food .shop-layout .shop-filters-panel.shop-filters-modern {
        display: none; position: fixed; top: auto; left: 0; right: 0; bottom: 0;
        width: 100%; height: auto; max-height: 90vh; max-height: 90dvh;
        border-radius: 24px 24px 0 0; border: 0; transform: none;
        z-index: 1210; margin: 0; box-shadow: 0 -12px 48px rgba(0, 0, 0, .12);
    }
    .shop-layout .shop-filters-panel.shop-filters-modern.open { display: flex; }
    body.brand-food .shop-layout .shop-filters-panel.shop-filters-modern.open { display: flex; }
    .shop-layout .shop-filters-panel.shop-filters-modern .filter-header { padding: 18px 20px; }
    .shop-layout .shop-filters-panel.shop-filters-modern .mobile-filter-close { min-width: 44px; min-height: 44px; border: 0; background: #f0f5f2; }
    .shop-layout .shop-filters-panel.shop-filters-modern .filter-footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .shop-filter-apply { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--primary, #006653); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
    body.filter-drawer-open { overflow: hidden; }
    .shop-layout .shop-main { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .shop-layout .shop-filters-panel.shop-filters-modern { transition: none; } }

.shop-layout .shop-filters-modern .category-label:not([aria-expanded])::after { content: none; }
