/**
 * Category page redesign (Mehrwegbecher Hyvä Redesign, "Kategorie" boards).
 * Loaded on catalog_category_view only; uses the tokens from header-footer.css.
 * Restyles the existing Hyvä / Amasty markup - no new behaviour.
 */

.catalog-category-view {
    --cat-text: #082b59;
    --cat-copy: #3a4b5e;
    --cat-soft: #f3f6f9;
    --cat-soft-line: #e6ecf2;
    --cat-pill: #e7eef6;
    --cat-head: DDIN, "Helvetica Neue", Arial, sans-serif;
    --cat-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    --cat-i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --cat-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    --cat-i-filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E");
    --cat-i-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
    --cat-i-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M14 4l6 6-9 9H5v-6z'/%3E%3C/svg%3E");
}

.srg-cat-wrap {
    box-sizing: border-box;
    max-width: var(--srg-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Head band: breadcrumbs, title, description ---------- */
.srg-cat-head {
    background: var(--cat-soft);
    border-bottom: 1px solid var(--cat-soft-line);
}
.srg-cat-head__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 28px;
}
.srg-cat-head .breadcrumbs { background: transparent; box-shadow: none; }
.srg-cat-head .breadcrumbs .container { max-width: none; margin: 0; padding: 0; }
.srg-cat-head .breadcrumbs .items { padding: 0; font-size: 14px; color: var(--srg-muted); }
.srg-cat-head .breadcrumbs a { color: var(--srg-muted); text-decoration: underline; text-underline-offset: 2px; }
.srg-cat-head .breadcrumbs a[aria-current="page"] { color: var(--cat-text); font-weight: 600; text-decoration: none; }
.srg-cat-head .breadcrumbs .separator { color: var(--srg-muted); }
.srg-cat-head .page-title-wrapper,
.srg-cat-head .container { max-width: none; margin: 0; padding: 0; }
.srg-cat-head .page-title {
    margin: 0;
    font: 700 40px/1.1 var(--cat-head);
    letter-spacing: -.01em;
    color: var(--cat-text);
}
.srg-cat-head .category-view { display: flex; flex-direction: column; gap: 12px; }
.srg-cat-head .category-image:empty { display: none; }
.srg-cat-head .category-description { max-width: 760px; font: 400 17px/1.5 var(--cat-body); color: var(--cat-copy); }
.srg-cat-head .category-description [data-content-type="row"],
.srg-cat-head .category-description .row-full-width-inner { margin: 0 !important; padding: 0 !important; }
.srg-cat-head .category-description p { margin: 0; text-align: left !important; }

/* ---------- Columns ---------- */
body.catalog-category-view { background: #fff; }
.catalog-category-view #maincontent {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--srg-max);
    margin: 0 auto;
    padding: 28px 32px 40px;
    font-family: var(--cat-body);
    color: var(--cat-text);
}
.catalog-category-view .columns { max-width: none; margin: 0; padding: 0; }
@media (min-width: 768px) {
    .catalog-category-view .columns {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }
    .catalog-category-view .columns > .sidebar-main { grid-column: 1; grid-row: 1 / span 3; width: auto; max-width: none; padding: 0; }
    .catalog-category-view .columns > .column.main { grid-column: 2; width: auto; max-width: none; padding: 0; }
}
@media (min-width: 1024px) {
    .catalog-category-view .columns { grid-template-columns: 280px minmax(0, 1fr); }
}

/* ---------- Filters (desktop sidebar) ---------- */
.catalog-category-view .sidebar-main [role="region"] { position: relative; margin: 0; }
.catalog-category-view #filters-heading .block-title > span:first-child {
    font: 700 18px/1.3 var(--cat-head);
    text-transform: none;
    letter-spacing: 0;
    color: var(--cat-text);
}
.srg-filter-reset {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: 14px;
    color: var(--srg-navy);
}
.catalog-category-view .filter-content { padding-top: 8px; }
.catalog-category-view .filter-option,
.catalog-category-view .filter-current {
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--srg-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.catalog-category-view .filter-options-title { padding: 14px 0 6px; }
.catalog-category-view .filter-options-title h3 { font: 700 16px/1.4 var(--cat-body); color: var(--cat-text); }
.catalog-category-view .filter-options-title > span:last-child { padding: 0; border: 0; color: var(--srg-muted); }
.catalog-category-view .filter-options-title > span:last-child svg { width: 18px; height: 18px; }
.catalog-category-view .filter-options-content,
.catalog-category-view .filter-current > div { padding: 0 0 14px; border: 0; }

/* Active filters (Amasty state block): chips with the existing remove link */
.catalog-category-view .am-filter-current { padding: 12px 0 14px; border-top: 1px solid var(--srg-line); }
.catalog-category-view .am-filter-current .filter-current-subtitle { display: none; }
.catalog-category-view .am-filter-current .items { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.catalog-category-view .am-filter-current .am-shopby-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 0 34px 0 12px;
    border-radius: 16px;
    background: var(--cat-pill);
    font-size: 14px;
    color: var(--cat-text);
}
.catalog-category-view .am-filter-current .filter-label::after { content: ":"; }
.catalog-category-view .am-filter-current .filter-value { font-weight: 600; }
.catalog-category-view .am-filter-current .amshopby-button.-remove {
    position: absolute;
    inset: 0;
    border-radius: 16px;
}
.catalog-category-view .am-filter-current .amshopby-button.-remove::after {
    content: ""; position: absolute; top: 50%; right: 10px; width: 16px; height: 16px; margin-top: -8px; background: var(--srg-navy);
    -webkit-mask: var(--cat-i-close) center / contain no-repeat; mask: var(--cat-i-close) center / contain no-repeat;
}
.catalog-category-view .am-filter-current .amshopby-button.-remove:hover { box-shadow: inset 0 0 0 1.5px var(--srg-navy); }

/* The Amasty price slider needs RequireJS, which Hyvä does not load: the group renders empty, so it is hidden. */
.catalog-category-view .filter-option:has(.am-filter-items-price) { display: none; }

/* Option lists (e.g. Füllmenge) */
.catalog-category-view .filter-options-content ol.items { margin: 0; padding: 0; list-style: none; }
.catalog-category-view .filter-options-content .item > a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    font-size: 15px;
    color: var(--cat-text);
    text-decoration: none;
}
.catalog-category-view .filter-options-content .item > a:hover .label { text-decoration: underline; }
.catalog-category-view .filter-options-content .item input { width: 18px; height: 18px; margin: 0; accent-color: var(--srg-navy); pointer-events: none; }
.catalog-category-view .filter-options-content .item .count { color: var(--srg-muted); font-size: 13px; }
.catalog-category-view .filter-options-content .item .count::before { content: "("; }
.catalog-category-view .filter-options-content .item .count::after { content: ")"; }
.catalog-category-view .filter-options-content .item .amshopby-choice { display: none; }

/* Colour swatches: round, with the option label below */
.catalog-category-view .swatch-layered .swatch-attribute-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 4px;
}
.catalog-category-view .swatch-layered .am-swatch-link {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    line-height: 1.2;
    color: var(--srg-muted);
    text-align: center;
    hyphens: auto;
    overflow-wrap: break-word;
    text-decoration: none;
}
.catalog-category-view .swatch-layered .am-swatch-link::after { content: attr(aria-label); max-width: 100%; }
@media (min-width: 768px) and (max-width: 1023px) {
    .catalog-category-view .swatch-layered .swatch-attribute-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.catalog-category-view .swatch-layered .swatch-option {
    box-sizing: border-box;
    width: 36px !important;
    height: 36px !important;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1.5px solid #9aabbb;
    border-radius: 50%;
    background-color: #eef3f8;
    background-image: repeating-linear-gradient(135deg, rgba(0, 54, 111, .08) 0 4px, transparent 4px 8px);
    font-size: 0;
}
.catalog-category-view .swatch-layered .swatch-option.color { background-image: none; }
/* Colours without a swatch colour in the admin: design colour by name (striped when unknown) */
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="transparent"] .swatch-option:not(.color) { background: #dceaf5; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="glasklar"] .swatch-option:not(.color) { background: #e8f1f8; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="gefrostet"] .swatch-option:not(.color) { background: #eef2f5; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="gelb"] .swatch-option:not(.color) { background: #f2c230; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="rot"] .swatch-option:not(.color) { background: #d23b2f; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="grün"] .swatch-option:not(.color) { background: #2e9e4f; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="orange"] .swatch-option:not(.color) { background: #ee7a1f; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="blau"] .swatch-option:not(.color) { background: #2667c9; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="schwarz"] .swatch-option:not(.color) { background: #1d2329; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="weiss"] .swatch-option:not(.color) { background: #ffffff; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="grau"] .swatch-option:not(.color) { background: #9aa5b1; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="silber"] .swatch-option:not(.color) { background: #c3cad1; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="gold"] .swatch-option:not(.color) { background: #c9a23a; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="rosa"] .swatch-option:not(.color) { background: #f2a7c0; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="violett"] .swatch-option:not(.color) { background: #7b4fa0; }
.catalog-category-view .swatch-layered .am-swatch-link[aria-label="braun"] .swatch-option:not(.color) { background: #7a4b2a; }
.catalog-category-view .swatch-layered .am-swatch-link:hover .swatch-option { border-color: var(--srg-navy); }
.catalog-category-view .swatch-layered .swatch-option.selected,
.catalog-category-view .swatch-layered .am-swatch-link.-is-active .swatch-option,
.catalog-category-view .swatch-layered .am-swatch-link.amshopby-link-selected .swatch-option {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--srg-navy);
}
.catalog-category-view .swatch-layered input.-hidden { display: none; }

/* ---------- Print teaser ---------- */
.srg-print-teaser {
    display: flex;
    gap: 12px;
    border-radius: 12px;
    background: var(--cat-pill);
    color: var(--cat-text);
    text-decoration: none;
}
.srg-print-teaser:hover { color: var(--cat-text); }
.srg-print-teaser__text { display: flex; flex-direction: column; gap: 8px; }
.srg-print-teaser__title { font: 700 16px/1.3 var(--cat-head); }
.srg-print-teaser__copy { font-size: 14px; line-height: 1.45; color: var(--cat-copy); }
.srg-print-teaser__more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--srg-navy); }
.srg-print-teaser__more::after {
    content: ""; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: var(--cat-i-arrow) center / contain no-repeat; mask: var(--cat-i-arrow) center / contain no-repeat;
}
.srg-print-teaser:hover .srg-print-teaser__more { text-decoration: underline; }
.srg-print-teaser--sidebar { margin-top: 8px; padding: 16px; }
.srg-print-teaser--sidebar .srg-print-teaser__icon { display: none; }
.srg-print-teaser--list { display: none; }

/* ---------- Toolbar ---------- */
.catalog-category-view #amasty-shopby-product-list > section { padding: 0; }
.catalog-category-view .toolbar-products:has(.srg-toolbar-count) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.srg-toolbar-count { margin: 0; font-size: 15px; color: var(--srg-muted); }
.srg-toolbar-count strong { color: var(--cat-text); }
/* Mobile bar (filter button + combined sort select, toolbar.phtml): only a wrapper on desktop, count stays first */
.catalog-category-view .srg-toolbar-bar { display: contents; }
.catalog-category-view .srg-toolbar-filter,
.catalog-category-view .srg-toolbar-sort { display: none; }
.catalog-category-view .toolbar-products .srg-toolbar-count { order: -1; }
/* Grid / list switch is not part of the design */
.catalog-category-view .toolbar-products .modes { display: none; }
.catalog-category-view .toolbar-sorter { gap: 8px; margin-left: auto; }
.catalog-category-view .toolbar-sorter label { margin: 0; }
.catalog-category-view .toolbar-products .form-select,
.catalog-category-view .toolbar-products select {
    height: 44px;
    padding: 0 36px 0 12px;
    border: 1.5px solid var(--srg-field);
    border-radius: 8px;
    font: 400 15px var(--cat-body);
    color: var(--cat-text);
    background-color: #fff;
}
.catalog-category-view .sorter-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--srg-field);
    border-radius: 8px;
    color: var(--srg-navy);
    background: #fff;
}
.catalog-category-view .sorter-action svg { width: 20px; height: 20px; }

/* Bottom toolbar: amount, pager, limiter */
.catalog-category-view .toolbar-products:not(:has(.srg-toolbar-count)) { margin-top: 12px; font-size: 14px; color: var(--srg-muted); }
.catalog-category-view .toolbar-amount { color: var(--srg-muted); }
.catalog-category-view .pages { gap: 8px; }
.catalog-category-view .pages ol { gap: 8px; }
.catalog-category-view .pages .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 6px;
    border: 1.5px solid var(--srg-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    font: 600 15px var(--cat-body);
    color: var(--cat-text);
}
.catalog-category-view .pages .btn:hover { border-color: var(--srg-navy); }
.catalog-category-view .pages .btn[aria-current="page"] { border-color: var(--srg-navy); background: var(--srg-navy); color: #fff; font-weight: 700; }
.catalog-category-view .pages .btn[aria-disabled="true"] { opacity: .4; }

/* ---------- Product grid (card styles: product-card.css) ---------- */
.catalog-category-view .products-grid > .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 0 20px;
}

/* ---------- Guide text band ---------- */
.srg-cat-seo { background: var(--cat-soft); }
.srg-cat-seo .srg-cat-wrap { padding-top: 48px; padding-bottom: 48px; }
.category-cms-wrap { max-width: 860px; font: 400 16px/1.6 var(--cat-body); color: var(--cat-copy); }
.srg-cat-seo .category-cms { margin: 0; }
.srg-cat-seo .category-cms h2,
.srg-cat-seo .category-cms h3,
.srg-cat-seo .category-cms h4 {
    margin: 24px 0 8px;
    font-family: var(--cat-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--cat-text);
    text-align: left !important;
}
.srg-cat-seo .category-cms h2 { font-size: 26px; }
.srg-cat-seo .category-cms h3 { font-size: 20px; }
.srg-cat-seo .category-cms h4 { font-size: 18px; }
.srg-cat-seo .category-cms > :first-child { margin-top: 0; }
.srg-cat-seo .category-cms h2:empty { display: none; }
.srg-cat-seo .category-cms p { margin: 0 0 12px; }
.srg-cat-seo .category-cms ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.srg-cat-seo .category-cms a { color: var(--srg-navy); }
.category-cms-wrap:not(.is-open) .category-cms {
    max-height: 240px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
}
.category-cms-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    font: 600 16px var(--cat-body);
    color: var(--srg-navy);
    cursor: pointer;
}
.category-cms-toggle::after {
    content: ""; width: 18px; height: 18px; background: currentColor; transition: transform .15s;
    -webkit-mask: var(--cat-i-chev) center / contain no-repeat; mask: var(--cat-i-chev) center / contain no-repeat;
}
.category-cms-wrap.is-open .category-cms-toggle::after { transform: rotate(180deg); }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
    .srg-cat-head .page-title { font-size: 34px; }
    .catalog-category-view .products-grid > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .srg-cat-wrap { padding: 0 16px; }
    .srg-cat-head { background: #fff; border-bottom: 0; }
    .srg-cat-head__inner { gap: 6px; padding-top: 10px; padding-bottom: 0; }
    .srg-cat-head .page-title { font-size: 30px; }
    .srg-cat-head .category-description { font-size: 15px; }

    /* Breadcrumbs collapse to a back link to the parent category */
    .srg-cat-head .breadcrumbs .items li { display: none; }
    .srg-cat-head .breadcrumbs .items li:nth-last-child(2) { display: flex; }
    .srg-cat-head .breadcrumbs .items li:nth-last-child(2) .separator { display: none; }
    .srg-cat-head .breadcrumbs .items li:nth-last-child(2) a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
    .srg-cat-head .breadcrumbs .items li:nth-last-child(2) a::before { content: "‹"; margin-right: 6px; font-size: 18px; line-height: 1; }

    .catalog-category-view #maincontent { padding: 12px 16px 32px; }
    .catalog-category-view .columns { display: flex; flex-direction: column; }

    /* Filter block becomes a button that opens a bottom sheet */
    .catalog-category-view .sidebar-main [role="region"] { margin: 0 0 12px; padding: 0; border: 0; background: transparent; }
    .catalog-category-view #filters-heading .block-title {
        justify-content: center;
        gap: 8px;
        height: 44px;
        border: 1.5px solid var(--srg-navy);
        border-radius: 10px;
        background: #fff;
        color: var(--srg-navy);
    }
    .catalog-category-view #filters-heading .block-title::before {
        content: ""; width: 20px; height: 20px; background: currentColor;
        -webkit-mask: var(--cat-i-filter) center / contain no-repeat; mask: var(--cat-i-filter) center / contain no-repeat;
    }
    .catalog-category-view #filters-heading .block-title > span:first-child { font: 600 15px var(--cat-body); color: var(--srg-navy); }
    /* Visually hidden only: Hyvä detects mobile by this icon not being display:none */
    .catalog-category-view #filters-heading .block-title > span:last-child {
        position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0;
    }
    .srg-filter-reset { display: none; }

    .catalog-category-view .sidebar-main [role="region"]:has(#filters-content[data-open="true"]) {
        position: fixed;
        inset: 0;
        z-index: 60;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        margin: 0;
        background: rgba(7, 20, 40, .45);
    }
    [role="region"]:has(#filters-content[data-open="true"]) #filters-heading { margin: 0; padding: 12px 16px 0; border-radius: 16px 16px 0 0; background: #fff; }
    [role="region"]:has(#filters-content[data-open="true"]) #filters-heading .block-title {
        justify-content: space-between;
        height: 52px;
        border: 0;
        border-bottom: 1px solid var(--cat-soft-line);
        border-radius: 0;
    }
    [role="region"]:has(#filters-content[data-open="true"]) #filters-heading .block-title::before { display: none; }
    [role="region"]:has(#filters-content[data-open="true"]) #filters-heading .block-title > span:first-child { font: 700 20px var(--cat-head); color: var(--cat-text); }
    [role="region"]:has(#filters-content[data-open="true"]) #filters-heading .block-title::after {
        content: ""; width: 24px; height: 24px; background: var(--cat-text);
        -webkit-mask: var(--cat-i-close) center / contain no-repeat; mask: var(--cat-i-close) center / contain no-repeat;
    }
    .catalog-category-view #filters-content[data-open="true"] {
        max-height: 75vh;
        overflow-y: auto;
        padding: 4px 16px 24px;
        background: #fff;
    }
    .catalog-category-view #filters-content[data-open="true"] .filter-option { border-top: 0; border-bottom: 1px solid var(--srg-line); }
    .srg-print-teaser--sidebar { display: none; }

    /* Toolbar: one sticky row (Filter | Sort) under the sticky header, product count below it.
       The toolbar box is dissolved so the row sticks within the whole product list section. */
    .catalog-category-view .toolbar-products:has(.srg-toolbar-bar) { display: contents; }
    .catalog-category-view .srg-toolbar-bar {
        position: sticky;
        top: var(--srg-header-h, 0px);
        z-index: 20; /* below the header (30) and the filter sheet (60) */
        display: flex;
        gap: 8px;
        align-items: center;
        margin: 0 -16px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--cat-soft-line);
        background: #fff;
    }
    .catalog-category-view .srg-toolbar-filter {
        display: flex;
        flex: 1 1 50%; /* equal halves */
        min-width: 0;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 44px;
        padding: 0 12px;
        border: 1.5px solid var(--srg-navy);
        border-radius: 10px;
        background: #fff;
        font: 600 15px var(--cat-body);
        color: var(--srg-navy);
    }
    .catalog-category-view .srg-toolbar-filter::before {
        content: ""; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor;
        -webkit-mask: var(--cat-i-filter) center / contain no-repeat; mask: var(--cat-i-filter) center / contain no-repeat;
    }
    .catalog-category-view .srg-toolbar-sort { display: flex; flex: 1 1 50%; min-width: 0; margin: 0; }
    .catalog-category-view .toolbar-products .srg-toolbar-sort__select {
        width: 100%;
        min-width: 0;
        border-radius: 10px;
        text-overflow: ellipsis;
    }
    .catalog-category-view .srg-toolbar-bar .modes,
    .catalog-category-view .srg-toolbar-bar .toolbar-sorter { display: none; }
    /* No layered navigation on this category: the sort select takes the full row */
    .catalog-category-view:not(:has(#filters-content)) .srg-toolbar-filter { display: none; }
    /* The sidebar filter button is replaced by the toolbar one; the block only shows as the open sheet */
    .catalog-category-view:has(.srg-toolbar-filter) .sidebar-main [role="region"]:not(:has(#filters-content[data-open="true"])) { display: none; }
    .catalog-category-view:has(#filters-content[data-open="true"]) { overflow: hidden; }
    .catalog-category-view .toolbar-products:has(.srg-toolbar-count) { margin-bottom: 12px; }
    .srg-toolbar-count { font-size: 14px; }
    .catalog-category-view .srg-toolbar-bar ~ .srg-toolbar-count { margin: 10px 0 12px; }

    /* Two-column compact cards */
    .catalog-category-view .products-grid > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

    .srg-print-teaser--list { display: flex; align-items: center; margin-top: 8px; padding: 16px; }
    .srg-print-teaser--list .srg-print-teaser__icon {
        position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--srg-navy);
    }
    .srg-print-teaser--list .srg-print-teaser__icon::after {
        content: ""; position: absolute; inset: 12px; background: #fff;
        -webkit-mask: var(--cat-i-pen) center / contain no-repeat; mask: var(--cat-i-pen) center / contain no-repeat;
    }
    .srg-print-teaser--list .srg-print-teaser__text { gap: 2px; }
    .srg-print-teaser--list .srg-print-teaser__copy { font-size: 13px; }
    .srg-print-teaser--list .srg-print-teaser__more { display: none; }

    .srg-cat-seo { background: #fff; }
    .srg-cat-seo .srg-cat-wrap { padding-top: 28px; padding-bottom: 8px; }
    .srg-cat-seo .category-cms h2 { font-size: 20px; }
    .category-cms-wrap { font-size: 15px; }
}
