
.catalog-filter-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,165px),1fr)); gap: 8px; margin-top: 9px; }
.catalog-filter-groups section { min-width:0; padding: 8px; border: 1px solid #e4e9d8; border-radius: 7px; background: #fafbf7; }
.catalog-filter-groups h3 { margin: 0 0 6px; padding: 6px 8px; border-radius: 6px; background: #e7edda; color: #364524; font-size: 14px; font-weight: 700; }
.catalog-filter-groups fieldset { margin: 5px 0 0; min-width: 0; }
.catalog-filter-groups legend { padding:0; font-size:12px; font-weight:700; }
.catalog-filter-groups label { box-sizing:border-box; display:flex; float:none; width:100%; align-items:center; gap:5px; margin:0; padding:3px 1px; color:#425126; font-size:12px; cursor:pointer; }
.catalog-filter-groups label small { margin-left:auto; }
.catalog-filter-groups input { margin:0; accent-color:#425126; }
.catalog-filter-actions { display:flex; gap:8px; margin-top:9px; align-items:center; }
.catalog-filter-actions button { padding:6px 9px; border:1px solid #425126; border-radius:5px; background:#425126; color:#fff; font-weight:700; cursor:pointer; }
.catalog-applied-filters,.product-filter-badges { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin:0 0 12px; color:#425126; font-size:12px; }
.catalog-applied-filters a,.product-filter-badges a { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:5px; background:#e7edda; color:#425126; }
.product-filter-badges a::before { content:''; width:16px; height:16px; background:url('/images/catalog-category-icons.png') -96px 0 / 240px 16px no-repeat; }
.catalog-applied-filters a:hover,.product-filter-badges a:hover { background:#dce7ca; }

.catalog-filter-groups { margin-top: 0; gap: 10px; }
.catalog-filter-groups section { padding: 10px; border-radius: 9px; }
.catalog-filter-groups fieldset { border: 0; border-top: 1px solid #e1e8d5; padding: 6px 0 2px; margin-top: 9px; }
.catalog-filter-groups legend { padding-right: 5px; }
.catalog-filter-groups label[hidden], .catalog-filter-actions:empty { display: none; }
.catalog-filter-groups label:hover { background:#edf2e4; border-radius: 4px; }
.catalog-filter-range { padding: 0 1px 3px; }
.catalog-range-caption { display:flex; flex-wrap:wrap; justify-content:space-between; gap: 3px 6px; font-size: 11px; font-weight: 600; }
.catalog-range-track { position: relative; height: 27px; margin: 0; }
.catalog-range-track::before { content:''; position:absolute; inset: 11px 8px auto; height: 5px; border-radius: 8px; background: linear-gradient(to right,#dce5ce var(--range-start),#70854b var(--range-start),#70854b var(--range-end),#dce5ce var(--range-end)); }
.catalog-range-track input { appearance:none; -webkit-appearance:none; position:absolute; inset:0; width:100%; height:27px; padding:0; border:0; background:transparent; pointer-events:none; }
.catalog-range-track .catalog-range-min { z-index: 1; }
.catalog-range-track .catalog-range-max { z-index: 2; }
.catalog-range-track input::-webkit-slider-thumb { -webkit-appearance:none; width:17px; height:17px; border:2px solid #536637; border-radius:50%; background:#fff; cursor:grab; pointer-events:auto; }
.catalog-range-track input::-moz-range-thumb { box-sizing:border-box; width:17px; height:17px; border:2px solid #536637; border-radius:50%; background:#fff; cursor:grab; pointer-events:auto; }
.catalog-range-overlap .catalog-range-min { transform:translateY(-8px); }
.catalog-range-overlap .catalog-range-max { transform:translateY(8px); }
.catalog-range-track input:focus-visible { outline:2px solid #536637; outline-offset:2px; border-radius:5px; }

.catalog-filter-trigger {
    position:relative; display:inline-grid; place-items:center; flex:0 0 36px;
    min-width:36px; min-height:34px; padding:0; border:1px solid #d6dfc2;
    border-radius:7px; background:#edf2e4; color:#425126; cursor:pointer;
}
.catalog-filter-trigger:hover, .catalog-filter-close:hover { background:#dce7ca; }
.catalog-filter-indicator { position:absolute; top:4px; right:4px; width:6px; height:6px; border-radius:50%; background:#61752a; }
html:has(.catalog-filters[open]) { overflow:hidden; }
.catalog-filters {
    position:fixed; box-sizing:border-box; inset:0; margin:auto; padding:0;
    width:min(940px, calc(100% - 24px)); max-width:none; max-height:min(86dvh, 780px);
    overflow:hidden; border:1px solid #d6dfc2; border-radius:16px;
    background:#fff; color:#425126; font-size:14px; box-shadow:0 18px 56px #19221155;
}
.catalog-filters::backdrop { background:#1b2318aa; backdrop-filter:blur(4px); }
.catalog-filters[open] { animation:catalog-filter-dialog-in .22s ease-out both; }
@keyframes catalog-filter-dialog-in {
    from { opacity:0; transform:translateY(10px) scale(.99); }
    to { opacity:1; transform:none; }
}
.catalog-filters form { display:flex; flex-direction:column; max-height:min(85dvh, 778px); margin:0; }
.catalog-filter-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid #e1e8d5; }
.catalog-filter-heading h2 { margin:0; color:inherit; font-size:21px; }
.catalog-filter-close { display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #d6dfc2; border-radius:50%; background:#edf2e4; color:#425126; font:22px/1 sans-serif; cursor:pointer; }
.catalog-filters .catalog-filter-groups { min-height:0; overflow:auto; overscroll-behavior:contain; align-items:start; padding:12px 16px; }
.catalog-filters .catalog-filter-actions { justify-content:flex-end; margin:0; padding:10px 16px; border-top:1px solid #e1e8d5; }
.catalog-filters .catalog-filter-actions button { min-height:40px; padding:7px 15px; }
.catalog-filters .catalog-filter-actions .catalog-filter-clear { border-color:#d6dfc2; background:#edf2e4; color:#425126; }
@media (max-width:560px) {
    .catalog-filters .catalog-filter-groups { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-filters[open] { animation:none; }
}


.catalog-stock-badge strong { font-weight: inherit; }
:is(.product-catalog[data-view], .product-detail) .catalog-stock-badge {
    display:inline-flex; align-items:center; gap:5px; margin-top:5px; padding:3px 6px;
    border-radius:6px; background:#edf2e4; color:#3e512a; font-weight:600;
}
:is(.product-catalog[data-view], .product-detail) .catalog-stock-badge strong {
    font-weight:700; font-variant-numeric:tabular-nums;
}
:is(.product-catalog[data-view], .product-detail) .catalog-e2-badge {
    display:inline-flex; align-items:center; padding:3px 6px; border-radius:6px;
    background:#ffedd9; color:#843c19; font-weight:600;
}

#content a.catalog-stock-phone { color:inherit; white-space:nowrap; text-decoration:underline; text-underline-offset:2px; }

.catalog-filters .catalog-filter-groups { grid-template-columns:minmax(0,1fr); gap:9px; }
.catalog-filter-section--catalog { grid-column:1 / -1; }
@media (min-width:621px) {
    .catalog-filters .catalog-filter-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.catalog-filter-section {
    min-width:0; border:1px solid #dce3cb; border-radius:8px; background:#fafbf7;
}
.catalog-filter-section > summary,
.catalog-filter-options > summary {
    display:flex; align-items:center; gap:7px; cursor:pointer; list-style:none; color:#364524;
}
.catalog-filter-section > summary::-webkit-details-marker,
.catalog-filter-options > summary::-webkit-details-marker { display:none; }
.catalog-filter-section > summary {
    min-height:38px; padding:7px 10px; border-radius:7px; background:#e7edda; font-weight:700;
}
.catalog-filter-section > summary::after,
.catalog-filter-options > summary::after {
    content:''; flex:0 0 6px; height:6px; margin:0 2px 3px auto;
    border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg);
}
.catalog-filter-section[open] > summary::after,
.catalog-filter-options[open] > summary::after { transform:translateY(3px) rotate(225deg); }
.catalog-filter-section > summary small { padding:1px 5px; border-radius:5px; background:#fff; font-size:11px; }
.catalog-filter-section-fields {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));
    gap:0 10px; padding:0 10px 9px;
}
.catalog-filter-options { border:1px solid #dce3cb; border-radius:6px; background:#fff; }
.catalog-filter-options > summary { min-height:31px; padding:4px 7px; font-size:12px; }
.catalog-filter-options > summary span { color:#536637; font-size:11px; }
.catalog-filter-options-list { max-height:172px; overflow:auto; padding:3px 6px; border-top:1px solid #e1e8d5; }

@media (prefers-reduced-motion: no-preference) {
    :is(.catalog-filter-section, .catalog-filter-options) > summary::after { transition:transform .23s ease; }
    @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
        :is(.catalog-filter-section, .catalog-filter-options)::details-content {
            interpolate-size:allow-keywords; height:0; opacity:0; overflow:clip;
            transition:height .25s ease, opacity .22s ease, content-visibility .25s allow-discrete;
        }
        :is(.catalog-filter-section, .catalog-filter-options)[open]::details-content { height:auto; opacity:1; }
    }
    @supports not ((interpolate-size: allow-keywords) and selector(details::details-content)) {
        .catalog-filter-section[open] > .catalog-filter-section-fields,
        .catalog-filter-options[open] > .catalog-filter-options-list { animation:catalog-filter-section-in .22s ease-out; }
        @keyframes catalog-filter-section-in {
            from { opacity:0; transform:translateY(-4px); }
            to { opacity:1; transform:none; }
        }
    }
}


@media (min-width:621px) {
    .catalog-filters .catalog-filter-groups.filter-groups-packed {
        grid-auto-flow:row dense; grid-auto-rows:3px; row-gap:0;
    }
    .filter-groups-packed > .catalog-filter-section {
        grid-row-end:span var(--filter-section-rows, 1);
    }
    .filter-groups-packed > :nth-child(odd of .catalog-filter-section:not(.catalog-filter-section--catalog)) { grid-column:1; }
    .filter-groups-packed > :nth-child(even of .catalog-filter-section:not(.catalog-filter-section--catalog)) { grid-column:2; }
}
