.store-catalog {
    color: #383838;
    font-family: 'Montserrat', Arial, sans-serif;
    scroll-margin-top: 120px;
}
.store-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0 0 16px;
}
.store-catalog-sort {
    display: grid;
    gap: 4px;
    margin: 0 0 0 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
    font-weight: 600;
}
.store-catalog-select { position: relative; }
.store-catalog-select select {
    display: block;
    appearance: none;
    width: 100%;
    min-height: 44px;
    padding: 8px 36px 8px 12px;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    background: #fff;
    color: #383838;
    font-size: 16px;
    font-weight: 400;
}
.store-catalog-select i {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #b71015;
    pointer-events: none;
}
.store-catalog-filter {
    display: block;
    position: static;
    width: auto;
    max-width: none;
    margin: 0 0 16px;
    padding: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: inherit;
}
.store-catalog-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e5e5;
    background: #f5f5f5;
}
.store-catalog-filter-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.store-catalog-total { margin: 4px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.store-catalog-filter-body { padding: 0 14px; }
.store-catalog-reset {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b71015;
    text-decoration: underline;
}
.store-catalog-group + .store-catalog-group { border-top: 1px solid #e5e5e5; }
.store-catalog-group summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.store-catalog-group summary::-webkit-details-marker { display: none; }
.store-catalog-group summary::after { content: '+'; color: #b71015; font-size: 18px; }
.store-catalog-group[open] summary::after { content: '−'; }
.store-catalog-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 12px;
}
.store-catalog-options button {
    min-height: 38px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid #cecece;
    border-radius: 2px;
    background: #fff;
    color: #383838;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.store-catalog-options button:hover:enabled { border-color: #b71015; }
.store-catalog-options button[aria-pressed="true"] {
    border-color: #383838;
    background: #383838;
    color: #fff;
}
.store-catalog-options button:disabled { opacity: .45; cursor: default; }
.store-catalog-feedback { color: #a31117; font-size: 13px; }
.store-catalog-feedback:empty, .store-catalog [hidden] { display: none; }
.store-catalog-empty { padding-top: 12px; }
.store-catalog[aria-busy="true"] .store-catalog-facets { opacity: .62; cursor: progress; }
.store-catalog :focus-visible { outline: 2px solid #b71015; outline-offset: 2px; }
.store-catalog-filter-close,
.store-catalog-filter-open,
.store-catalog-filter-footer { display: none; }

@media (min-width: 992px) {
    .store-catalog {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "heading heading"
            "filters filters"
            "sort paging"
            "feedback feedback"
            "products products"
            "footer footer";
    }
    .store-catalog-heading { grid-area: heading; }
    .store-catalog > .store-catalog-feedback { grid-area: feedback; }
    .store-catalog-toolbar {
        grid-area: sort;
        margin-bottom: 6px;
    }
    .store-catalog-sort { gap: 2px; margin-left: 0; }
    .store-catalog-select select { min-height: 34px; padding-block: 4px; }
    .store-catalog-filter {
        grid-area: filters;
        margin-bottom: 6px;
    }
    .store-catalog-filter-header { min-height: 40px; padding: 0 14px; }
    .store-catalog-reset { min-height: 40px; }
    .store-catalog-results { display: contents; }
    .store-catalog-results > .webshop-grid,
    .store-catalog-results > .alert { grid-area: products; }
    .store-catalog-results > .webshop-lablec { grid-area: footer; }
    .store-catalog-results > .row:first-child {
        grid-area: paging;
        align-self: end;
        margin: 0 0 6px;
    }
    .store-catalog-results > .row:first-child > :first-child { display: none; }
    .store-catalog-results > .row:first-child > :last-child { width: 100%; }

    .store-catalog-filter-header h2,
    .store-catalog-total { display: inline; }
    .store-catalog-total { margin: 0 0 0 12px; }

    .store-catalog-group {
        display: flow-root;
        padding: 3px 0;
    }
    .store-catalog-group summary {
        float: left;
        width: 142px;
        min-height: 32px;
        padding-right: 16px;
    }
    .store-catalog-options {
        min-height: 32px;
        margin-left: 142px;
        padding: 0;
        align-items: center;
    }
    .store-catalog-options button { min-height: 30px; padding-block: 4px; }
}
@media (max-width: 991px) {
    .store-catalog-filter:not([open]) { display: none; }
    .store-catalog-filter-open {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid #383838;
        background: #383838;
        color: #fff;
        font-weight: 600;
    }
    .store-catalog-count {
        min-width: 20px;
        padding: 1px 4px;
        border: 1px solid currentColor;
        border-radius: 10px;
        font-size: 12px;
    }
    .store-catalog-filter[open] {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 3000;
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: none;
        margin: 0;
        border: 0;
        overflow: hidden;
    }
    body.store-catalog-filter-active { overflow: hidden; }
    .store-catalog-filter-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto 44px;
        gap: 8px;
        min-height: 64px;
        padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    }
    .store-catalog-filter-header .store-catalog-reset {
        grid-column: 2;
        padding: 4px 6px;
        font-size: 13px;
        font-weight: 600;
    }
    .store-catalog-filter-header .store-catalog-reset[hidden] {
        display: block;
        visibility: hidden;
    }
    .store-catalog-filter-close {
        grid-column: 3;
        display: grid;
        place-items: center;
        height: 44px;
        border: 1px solid #e5e5e5;
        border-radius: 50%;
        background: #fff;
        color: #de1217;
        font-size: 18px;
    }
    .store-catalog-filter-body {
        flex: 1;
        min-height: 0;
        padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
        overflow: auto;
        overscroll-behavior: contain;
    }
    .store-catalog-options button {
        min-height: 44px;
        border-color: #767676;
        color: #292929;
        font-size: 14px;
        font-weight: 600;
    }
    .store-catalog-options button[aria-pressed="true"] {
        border-color: #b71015;
        background: #b71015;
        color: #fff;
    }
    .store-catalog-options button:disabled {
        opacity: 1;
        border-color: #b1b1b1;
        background: #f5f5f5;
        color: #656565;
    }
    .store-catalog-filter-footer {
        display: block;
        padding: 10px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        border-top: 1px solid #e5e5e5;
    }
    .store-catalog-filter-done { width: 100%; min-height: 48px; }
}
@media (max-width: 430px) {
    .store-catalog-sort { flex: 1 1 150px; }
}
