﻿/* ================================================================
   BL-010 Kategorieseite – Fixes
   ================================================================ */

/* ── #1 Kategorie-Hero: Trust-Badges ───────────────────────────── */
.hhk-trust-badges {
    align-self: end;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.hhk-badge {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--hhk-rule-soft);
    border-radius: 999px;
    color: var(--hhk-ink-soft);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .hhk-trust-badges {
        justify-content: flex-start;
    }
}

/* ── #2 Filter-Sidebar: CI-Anpassung ───────────────────────────── */

/* "Kategorien"-Überschrift auf gleiche Gewichtung wie andere Filter-Sektionen */
#content-wrapper.is-item-list #sidepanel_left .box-categories .productlist-filter-headline {
    color: var(--hhk-ink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* CSS-Variablen der NOVA-Primärfarbe innerhalb der Kategoriefilter-Box überschreiben */
#content-wrapper.is-item-list #sidepanel_left .box-categories {
    --primary: var(--hhk-holz-dark);
    --bs-primary: var(--hhk-holz-dark);
    --bs-link-color: var(--hhk-ink);
    --bs-link-hover-color: var(--hhk-holz-dark);
}

/* Alle Kategorie-Links: kein gelber Rand, keine gelbe Unterstreichung */
#content-wrapper.is-item-list #sidepanel_left .box-categories a,
#content-wrapper.is-item-list #sidepanel_left .box-categories .nav-link,
#content-wrapper.is-item-list #sidepanel_left .box-categories .snippets-filter-item {
    border-bottom: none !important;
    color: var(--hhk-ink) !important;
    text-decoration: none !important;
}

/* Aktiver Kategorie-Link: CI-Braun statt Gelb */
#content-wrapper.is-item-list #sidepanel_left .box-categories a.active,
#content-wrapper.is-item-list #sidepanel_left .box-categories .nav-link.active,
#content-wrapper.is-item-list #sidepanel_left .box-categories .snippets-filter-item.active,
#content-wrapper.is-item-list #sidepanel_left .box-categories li.active > a,
#content-wrapper.is-item-list #sidepanel_left .box-categories a[aria-current] {
    color: var(--hhk-holz-dark) !important;
    font-weight: 800;
    text-decoration: underline !important;
    text-decoration-color: var(--hhk-holz-dark) !important;
}

/* Hover/Focus ebenfalls mit CI-Braun */
#content-wrapper.is-item-list #sidepanel_left .box-categories a:hover,
#content-wrapper.is-item-list #sidepanel_left .box-categories a:focus,
#content-wrapper.is-item-list #sidepanel_left .box-categories .snippets-filter-item:hover,
#content-wrapper.is-item-list #sidepanel_left .box-categories .snippets-filter-item:focus {
    color: var(--hhk-holz-dark) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--hhk-holz-dark) !important;
}

/* ── #2b Desktop-Filterboxen: einheitliche Optik (wie Mobile-Sheet) ─ */
/* .btn-filter-box.dropdown-toggle ist in allen boxes/box_filter_*.tpl
   identisch und deckt damit automatisch alle Filtertypen ab. */

#content-wrapper.is-item-list #sidepanel_left #sidebox-categories-124 {
    display: none;
}

#content-wrapper.is-item-list #sidepanel_left .box .btn-filter-box.dropdown-toggle {
    align-items: center;
    border: 0;
    box-shadow: none;
    color: var(--hhk-ink);
    font-size: 14px;
    font-weight: 700;
    outline: none;
    padding: 12px 8px;
}

#content-wrapper.is-item-list #sidepanel_left .box .btn-filter-box.dropdown-toggle:focus,
#content-wrapper.is-item-list #sidepanel_left .box .btn-filter-box.dropdown-toggle:focus-visible {
    border: 0;
    box-shadow: none;
    outline: none;
}

/* Randlinien-Chevron statt Bootstrap-FA-Pfeil (\f078) */
#content-wrapper.is-item-list #sidepanel_left .box .btn-filter-box.dropdown-toggle::after {
    border: solid var(--hhk-ink-soft);
    border-width: 0 2px 2px 0;
    content: "" !important;
    display: inline-block;
    flex-shrink: 0;
    height: 7px;
    margin-left: 8px;
    transform: rotate(45deg);
    transition: transform .2s ease;
    width: 7px;
}

#content-wrapper.is-item-list #sidepanel_left .box .btn-filter-box.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

/* Optionszeilen: identisch zu #hhk-filter-sheet .filter-item */
#content-wrapper.is-item-list #sidepanel_left .filter-item {
    border-radius: 8px;
    color: var(--hhk-ink);
    display: block;
    font-size: 14px;
    padding: 8px;
    text-decoration: none;
}

#content-wrapper.is-item-list #sidepanel_left .filter-item .box-link-wrapper {
    align-items: center;
    display: flex;
    gap: 10px;
}

#content-wrapper.is-item-list #sidepanel_left .snippets-filter-item-icon-right {
    color: var(--hhk-rule);
    flex-shrink: 0;
    font-size: 15px;
}

#content-wrapper.is-item-list #sidepanel_left .filter-item.active {
    color: var(--hhk-holz-dark);
    font-weight: 800;
}

#content-wrapper.is-item-list #sidepanel_left .filter-item.active .snippets-filter-item-icon-right {
    color: var(--hhk-holz-dark);
}

/* Trefferanzahl-Badge: Pille statt eckigem Bootstrap-Outline-Badge */
#content-wrapper.is-item-list #sidepanel_left .filter-item .badge {
    background: var(--hhk-creme-2);
    border-color: transparent;
    border-radius: 999px;
    color: var(--hhk-ink-soft);
    font-weight: 700;
    margin-left: auto;
}

/* ── #2c Desktop-Preisspanne: CI-Anpassung (wie Mobile-Sheet) ─ */
#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-inputs {
    justify-content: space-between;
    margin-bottom: 22px;
}

#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-inputs .input-group-text {
    background: #fff;
    border: 1.5px solid var(--hhk-rule-soft);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: var(--hhk-ink-soft);
    font-weight: 700;
    height: 44px;
}

#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-input {
    border: 1.5px solid var(--hhk-rule-soft);
    border-radius: 10px 0 0 10px;
    color: var(--hhk-ink);
    font-weight: 700;
    height: 44px;
    min-width: 0;
}

#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-input:hover,
#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-input:focus {
    border-color: var(--hhk-holz-dark);
    box-shadow: none;
    outline: none;
}

#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-slide.noUi-target {
    background: var(--hhk-rule-soft);
    border: 0;
    box-shadow: none;
    height: 6px;
}

#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-slide .noUi-connect {
    background: var(--hhk-holz);
}

#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-slide .noUi-handle {
    background: #fff;
    border: 2px solid var(--hhk-holz-dark);
    border-radius: 999px;
    box-shadow: 0 2px 7px rgba(43, 33, 26, .2);
    cursor: grab;
}

#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-slide .noUi-handle::before,
#content-wrapper.is-item-list #sidepanel_left .box-filter-price .price-range-slide .noUi-handle::after {
    display: none;
}

/* ── #3 Ribbon: kein Overflow in benachbartes Produkt beim Hover ─ */
.productbox.productbox-hover:hover .productbox-image .productbox-ribbon.ribbon,
.productbox.productbox-hover:focus .productbox-image .productbox-ribbon.ribbon,
.productbox.productbox-hover.focus .productbox-image .productbox-ribbon.ribbon {
    left: auto;
    top: 1rem;
}

/* ── #4 Sort-Leiste: Sortierung + Anzahl + Seite in einer Zeile ── */
@media (min-width: 768px) {
    /* Sort-Dropdown nicht mehr auf voller Breite */
    #content-wrapper.is-item-list .productlist-page-nav .displayoptions {
        flex: 0 0 auto;
        max-width: none;
        width: auto;
    }

    /* Pagination-Col nicht mehr auf voller Breite */
    #content-wrapper.is-item-list .productlist-page-nav .productlist-pagination {
        flex: 0 0 auto;
        max-width: none;
        width: auto;
    }
}

/* ── #5 Produktkarte: Preis und Warenkorb-Aktion ────────────────── */
.productbox-buy-row {
    align-items: center;
    border-top: 1px solid var(--hhk-rule-soft);
    display: flex;
    gap: var(--hhk-space-sm);
    justify-content: space-between;
    margin-left: 14px;
    margin-top: 10px;
    margin-right: 14px;
    padding-bottom: 14px;
    padding-top: 10px;
}

.productbox-buy-row .price_wrapper {
    border-top: 0;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.productbox-buy-row .footnote-reference {
    display: none;
}

.productbox-add-to-cart {
    flex: 0 0 auto;
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    #product-list.layout-gallery {
        margin-left: var(--hhk-page-gutter-mobile);
        margin-right: var(--hhk-page-gutter-mobile);
    }

    .productbox-buy-row {
        align-items: stretch;
        flex-direction: column;
    }

    .productbox-buy-row .price_wrapper {
        text-align: center;
    }

    .productbox-add-to-cart {
        font-size: 11px;
        padding-left: 4px;
        padding-right: 4px;
        width: 100%;
    }
}

/* ── #6 SEO-Text unterhalb der Produktliste ─────────────────────── */
.hhk-cat-seo {
    border-top: 1px dashed var(--hhk-rule-soft);
    box-sizing: border-box;
    margin-top: 36px;
    padding: clamp(28px, 4vw, 44px) var(--hhk-page-gutter) clamp(36px, 5vw, 60px);
}

.hhk-cat-seo-inner {
    max-width: 760px;
}

.hhk-cat-seo-inner h2 {
    font-size: clamp(19px, 2.2vw, 26px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hhk-cat-seo-inner h3 {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    margin-top: 22px;
}

.hhk-cat-seo-inner p {
    color: var(--hhk-ink-soft);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 10px;
}

.hhk-cat-seo-inner ul,
.hhk-cat-seo-inner ol {
    color: var(--hhk-ink-soft);
    font-size: 15px;
    line-height: 1.65;
    padding-left: 20px;
}

/* ── #7 Filter-Sheet: Trigger-Button ────────────────────────── */
.hhk-filter-sheet-btn {
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--hhk-rule-soft);
    border-radius: 999px;
    color: var(--hhk-ink);
    cursor: pointer;
    display: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    line-height: 1;
    padding: 10px 18px;
    transition: background-color .18s ease, border-color .18s ease;
    white-space: nowrap;
}

.hhk-filter-sheet-btn--active {
    background: var(--hhk-ink);
    border-color: var(--hhk-ink);
    color: var(--hhk-paper);
}

.hhk-filter-badge {
    align-items: center;
    background: var(--hhk-holz-dark);
    border-radius: 999px;
    color: var(--hhk-paper);
    display: none;
    font-size: 11px;
    font-weight: 900;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 5px;
}

.hhk-filter-badge:not(:empty) {
    display: inline-flex;
}

@media (max-width: 991.98px) {
    .hhk-filter-sheet-btn {
        display: inline-flex;
    }

    /* Sidebar auf Mobile/Tablet ausblenden - Filter werden im Sheet gerendert */
    #content-wrapper.is-item-list #sidepanel_left {
        display: none !important;
    }

    #content-wrapper.is-item-list .productlist-page-nav .displayoptions {
        flex: 0 0 auto;
        width: auto;
    }

    .hhk-cat-seo {
        padding-left: var(--hhk-page-gutter-mobile);
        padding-right: var(--hhk-page-gutter-mobile);
    }

    .hhk-category-hero.hhk-hero-placed {
        margin-bottom: 20px;
        margin-left: 0;
        margin-right: 0;
        width: auto;
    }
}

/* ── #7b Bottom Sheet ────────────────────────────────────────── */
.hhk-filter-sheet {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1050;
}

.hhk-filter-sheet[hidden] {
    display: none;
}

.hhk-filter-sheet-backdrop {
    background: rgba(43, 33, 26, .55);
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity .28s ease;
}

.hhk-filter-sheet--open .hhk-filter-sheet-backdrop {
    opacity: 1;
}

.hhk-filter-sheet-panel {
    background: var(--hhk-paper);
    border-radius: 20px 20px 0 0;
    bottom: 0;
    box-shadow: 0 -8px 32px -12px rgba(43, 33, 26, .3);
    display: flex;
    flex-direction: column;
    left: 0;
    max-height: 90vh;
    position: absolute;
    right: 0;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.32, .72, 0, 1);
}

.hhk-filter-sheet--open .hhk-filter-sheet-panel {
    transform: translateY(0);
}

.hhk-filter-sheet-header {
    align-items: center;
    border-bottom: 1px solid var(--hhk-rule-soft);
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    padding: 16px 20px;
}

.hhk-filter-sheet-title {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .02em;
}

.hhk-filter-sheet-close {
    align-items: center;
    background: none;
    border: 1.5px solid var(--hhk-rule-soft);
    border-radius: 999px;
    color: var(--hhk-ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    height: 34px;
    justify-content: center;
    padding: 0;
    transition: background-color .15s ease, border-color .15s ease;
    width: 34px;
}

.hhk-filter-sheet-close:hover {
    background: var(--hhk-creme);
    border-color: var(--hhk-rule);
}

.hhk-filter-sheet-body {
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 20px 8px;
}

.hhk-sheet-section-label {
    color: var(--hhk-ink);
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: normal;
    padding: 14px 28px 8px 8px;
    text-transform: none;
}

.hhk-sheet-sort-select-wrap {
    position: relative;
}

.hhk-sheet-sort-select {
    appearance: none;
    background: #fff;
    border: 1.5px solid var(--hhk-rule-soft);
    border-radius: 10px;
    color: var(--hhk-ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    height: 44px;
    padding: 0 40px 0 14px;
    width: 100%;
}

.hhk-sheet-sort-select:hover,
.hhk-sheet-sort-select:focus {
    border-color: var(--hhk-holz-dark);
    outline: none;
}

.hhk-sheet-sort-select-icon {
    color: var(--hhk-ink-soft);
    font-size: 12px;
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.hhk-sheet-divider {
    border-color: var(--hhk-rule-soft);
    margin: 4px 0;
}

.hhk-sheet-filter-section {
    padding-bottom: 0;
}

#hhk-filter-sheet .snippets-filter-mobile-heading,
#hhk-filter-sheet .snippets-filter-mobile-sorting {
    display: none;
}

#hhk-sheet-filter-body .productlist-filter-wrapper {
    padding: 0;
}

#hhk-filter-sheet .productlist-filter-accordion {
    border: 0 !important;
    list-style: none;
    margin: 0;
    padding: 0;
}

#hhk-filter-sheet .snippets-filter-mobile-item + .snippets-filter-mobile-item {
    border-top: 1px solid var(--hhk-rule-soft);
}

#hhk-filter-sheet .snippets-filter-mobile-item,
#hhk-filter-sheet .box-filter-characteristics {
    margin: 0;
    padding: 0;
    position: relative;
}

#hhk-filter-sheet .snippets-filter-mobile-item > a,
#hhk-filter-sheet .box-filter-characteristics > .btn-filter-box {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--hhk-ink);
    display: flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    justify-content: space-between;
    letter-spacing: normal;
    line-height: 1.3;
    margin: 0;
    min-height: 48px;
    padding: 14px 28px 14px 8px;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    width: 100%;
}

#hhk-filter-sheet .snippets-filter-mobile-item > a:hover,
#hhk-filter-sheet .snippets-filter-mobile-item > a:focus,
#hhk-filter-sheet .box-filter-characteristics > .btn-filter-box:hover,
#hhk-filter-sheet .box-filter-characteristics > .btn-filter-box:focus {
    background: var(--hhk-creme);
    color: var(--hhk-ink);
    text-decoration: none;
}

#hhk-filter-sheet .snippets-filter-mobile-item > a::after,
#hhk-filter-sheet .box-filter-characteristics > .btn-filter-box::after {
    display: none;
}

#hhk-filter-sheet .snippets-filter-mobile-item::after,
#hhk-filter-sheet .box-filter-characteristics::after {
    border: solid var(--hhk-ink-soft);
    border-width: 0 2px 2px 0;
    content: "";
    display: inline-block;
    height: 7px;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 9px;
    top: 24px;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
    width: 7px;
}

#hhk-filter-sheet .snippets-filter-mobile-item.hhk-filter-expanded::after,
#hhk-filter-sheet .box-filter-characteristics.hhk-filter-expanded::after {
    transform: translateY(-30%) rotate(-135deg);
}

#hhk-filter-sheet .snippets-filter-mobile-item-collapse {
    margin: 0;
    padding: 2px 8px 16px;
}

#hhk-filter-sheet .box-filter-characteristics {
    border-top: 1px solid var(--hhk-rule-soft);
    margin: 0;
}

#hhk-filter-sheet .box-filter-characteristics > .collapse,
#hhk-filter-sheet .box-filter-characteristics > .collapsing {
    padding: 2px 8px 16px;
}

#hhk-filter-sheet .box-filter-characteristics .box-filter-hr {
    display: none;
}

#hhk-filter-sheet .filter-item {
    border-radius: 8px;
    color: var(--hhk-ink);
    display: block;
    font-size: 14px;
    padding: 8px;
    text-decoration: none;
}

#hhk-filter-sheet .filter-item:hover,
#hhk-filter-sheet .filter-item:focus {
    background: var(--hhk-creme);
    color: var(--hhk-ink);
    text-decoration: none;
}

#hhk-filter-sheet .filter-item .box-link-wrapper {
    align-items: center;
    display: flex;
    gap: 10px;
}

#hhk-filter-sheet .snippets-filter-item-icon-right {
    color: var(--hhk-rule);
    flex-shrink: 0;
    font-size: 15px;
}

#hhk-filter-sheet .filter-item.active,
#hhk-filter-sheet .js-filter-item.active {
    color: var(--hhk-holz-dark);
    font-weight: 800;
}

#hhk-filter-sheet .filter-item.active .snippets-filter-item-icon-right,
#hhk-filter-sheet .js-filter-item.active .snippets-filter-item-icon-right {
    color: var(--hhk-holz-dark);
}

#hhk-filter-sheet .filter-item .badge {
    background: var(--hhk-creme-2);
    border-color: transparent;
    border-radius: 999px;
    color: var(--hhk-ink-soft);
    font-weight: 700;
    margin-left: auto;
}

#hhk-filter-sheet .filter-search-wrapper {
    margin-bottom: 8px;
    padding-top: 0;
}

#hhk-filter-sheet .filter-search-wrapper .filter-search,
#hhk-filter-sheet .filter-search-wrapper .input-group-text {
    background: #fff;
    border-color: var(--hhk-rule-soft);
    border-width: 1.5px;
    height: 44px;
}

#hhk-filter-sheet .filter-search-wrapper .filter-search {
    border-radius: 0 10px 10px 0;
    color: var(--hhk-ink);
    font-size: 14px;
}

#hhk-filter-sheet .filter-search-wrapper .input-group-text {
    border-radius: 10px 0 0 10px;
    color: var(--hhk-ink-soft);
}

#hhk-filter-sheet .filter-search-wrapper .filter-search:focus {
    border-color: var(--hhk-holz-dark);
    box-shadow: none;
}

#hhk-filter-sheet .snippets-filter-show-all {
    padding-top: 4px;
    text-align: left;
}

#hhk-filter-sheet .snippets-filter-show-all .btn {
    color: var(--hhk-holz-dark);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 8px;
    text-decoration: none;
}

#hhk-filter-sheet .price-range-inputs {
    justify-content: space-between;
    margin-bottom: 22px;
}

#hhk-filter-sheet .price-range-inputs .input-group-text {
    background: #fff;
    border: 1.5px solid var(--hhk-rule-soft);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    color: var(--hhk-ink-soft);
    font-weight: 700;
    height: 44px;
}

#hhk-filter-sheet .price-range-input {
    border: 1.5px solid var(--hhk-rule-soft);
    border-radius: 10px 0 0 10px;
    color: var(--hhk-ink);
    font-weight: 700;
    height: 44px;
    min-width: 0;
}

#hhk-filter-sheet .price-range-input:hover,
#hhk-filter-sheet .price-range-input:focus {
    border-color: var(--hhk-holz-dark);
    box-shadow: none;
    outline: none;
}

#hhk-filter-sheet .price-range-slide.noUi-target {
    background: var(--hhk-rule-soft);
    border: 0;
    box-shadow: none;
    height: 6px;
}

#hhk-filter-sheet .price-range-slide .noUi-connect {
    background: var(--hhk-holz);
}

#hhk-filter-sheet .price-range-slide .noUi-handle {
    background: #fff;
    border: 2px solid var(--hhk-holz-dark);
    border-radius: 999px;
    box-shadow: 0 2px 7px rgba(43, 33, 26, .2);
    cursor: grab;
}

#hhk-filter-sheet .price-range-slide .noUi-handle::before,
#hhk-filter-sheet .price-range-slide .noUi-handle::after {
    display: none;
}

#hhk-filter-sheet .productlist-applied-filter {
    margin: 8px 0;
}

#hhk-filter-sheet .productlist-applied-filter-top:empty,
#hhk-filter-sheet .productlist-applied-filter:empty {
    display: none;
}

#hhk-filter-sheet .productlist-filter-footer {
    background: var(--hhk-paper);
    border-top: 1px solid var(--hhk-rule-soft);
    bottom: 0;
    margin: 8px -20px 0;
    padding: 14px 20px;
    padding-bottom: max(14px, calc(14px + env(safe-area-inset-bottom, 0px)));
    position: sticky;
    z-index: 2;
}

#hhk-filter-sheet .productlist-filter-footer .form-row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    margin-left: 0;
    margin-bottom: 0;
    margin-right: 0;
    width: 100%;
}

#hhk-filter-sheet .productlist-filter-footer .form-row > .col {
    flex: none;
    max-width: none;
    min-width: 0;
    padding: 0;
    width: auto;
}

#hhk-filter-sheet #hhk-filter-sheet-cancel,
#hhk-filter-sheet #submitMobileFilters {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    margin: 0;
    min-width: 0;
    width: 100%;
}

#hhk-filter-sheet #submitMobileFilters {
    font-weight: 800;
}

body.hhk-sheet-open {
    overflow: hidden;
}

/* ── #8 Kategorie-Subline ────────────────────────────────────────── */
.hhk-cat-subline {
    color: var(--hhk-ink-soft);
    font-size: 16px;
    line-height: 1.55;
    margin: 12px 0 0;
    max-width: 54ch;
}

/* ── #9 Hero-Repositionierung: volle Breite in #content ─────────── */
.hhk-category-hero.hhk-hero-placed {
    margin-bottom: 24px;
}

/* NOVA-Standard-Kategorie-Header (Fallback-CSS, bevor JS lädt) */
#content-wrapper.is-item-list #content > *[data-hhk-hidden] {
    display: none !important;
}

/* ── #10 Sort-Bar: keine Umbrüche ab 576 px ─────────────────────── */
@media (min-width: 576px) {
    #content-wrapper.is-item-list .productlist-page-nav-header-m {
        flex-wrap: nowrap;
    }

    #content-wrapper.is-item-list .productlist-page-nav-header-m .productlist-item-info {
        align-items: center;
        align-self: center;
        display: flex;
        flex: 0 0 auto;
        margin-right: auto;
        order: 1;
    }

    #content-wrapper.is-item-list .productlist-page-nav-header-m .productlist-pagination {
        flex: 0 0 auto;
        order: 2;
    }

    #content-wrapper.is-item-list .productlist-page-nav-header-m .displayoptions {
        flex: 0 0 auto;
        order: 3;
    }
}

/* ── Desktop: Sheet + Trigger immer ausgeblendet ─────────────── */
@media (min-width: 1025px) {
    .hhk-filter-sheet-btn {
        display: none !important;
    }

    .hhk-filter-sheet {
        display: none !important;
    }
}

/* ── #11 Breadcrumb: doppelten »Startseite«-Eintrag ausblenden ───── */
/* NOVA rendert .breadcrumb-arrow als zusätzlichen ersten Eintrag */
.breadcrumb-item.breadcrumb-arrow {
    display: none;
}

/* ── #12 Breadcrumb: CI-Typografie ──────────────────────────────── */
.breadcrumb {
    background: none;
    font-size: 13px;
    margin-bottom: 0;
    padding: var(--hhk-breadcrumb-y) 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--hhk-rule);
}

.breadcrumb-item a,
.breadcrumb-item .breadcrumb-link {
    color: var(--hhk-ink-soft);
    text-decoration: none;
}

.breadcrumb-item a:hover,
.breadcrumb-item .breadcrumb-link:hover {
    color: var(--hhk-burgrot);
    text-decoration: none;
}

.breadcrumb-item.last.active a,
.breadcrumb-item.last.active .breadcrumb-link {
    color: var(--hhk-ink);
    font-weight: 700;
    pointer-events: none;
    text-decoration: none;
}

/* ── #13 Produktgitter: Bootstrap .row-Margins entfernen ─────────── */
/* Bootstrap setzt margin: 0 -15px auf .row – das erzeugt horizontalen Überlauf */
#product-list.layout-gallery {
    margin-left: 0;
    margin-right: 0;
}

/* Innere .row in Produktkarte zurücksetzen */
#product-list.layout-gallery .productbox-inner > .row {
    margin-left: 0;
    margin-right: 0;
}

/* ── #14 Produktbild und Ribbon ─────────────────────────────────── */
.productbox-image.square-image {
    background: #fff;
    border-bottom: 1px solid var(--hhk-rule-soft);
}

.productbox-image.square-image .inner img,
#product-list.layout-gallery .productbox-image.square-image .inner img {
    height: 100%;
    left: 0;
    object-fit: contain;
    top: 0;
    transform: none;
    width: 100%;
}

.productbox-ribbon-slot {
    margin: 12px 14px 0;
}

.productbox-ribbon-slot:empty {
    display: none;
}

.productbox-ribbon-slot .ribbon.productbox-ribbon {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--hhk-holz-dark);
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    left: auto;
    margin: 0 0 2px;
    padding: 0;
    position: static;
    top: auto;
}

.productbox-ribbon-slot + .productbox-title,
#product-list.layout-gallery .productbox-ribbon-slot + .productbox-title {
    margin-top: 2px;
}

.productbox-ribbon-slot .ribbon.productbox-ribbon::before,
.productbox-ribbon-slot .ribbon.productbox-ribbon::after {
    display: none;
}

/* ── #15 btn-outline-secondary: CI-Farben ───────────────────────── */
/* Trifft Sort-Button und Seiten-Dropdown-Button */
/* #content-wrapper.is-item-list als ID-Scope: macht die Regel unabhängig
   von der Ladereihenfolge der async (preload+onload) geladenen Stylesheets,
   sonst Wettlauf gegen Bootstraps gleich-spezifische .show/:active-Regel */
#content-wrapper.is-item-list .btn.btn-outline-secondary {
    background-color: #fff;
    border-color: var(--hhk-rule-soft);
    color: var(--hhk-ink);
}

#content-wrapper.is-item-list .btn.btn-outline-secondary:hover,
#content-wrapper.is-item-list .btn.btn-outline-secondary:focus {
    background-color: var(--hhk-paper-warm);
    border-color: var(--hhk-rule);
    color: var(--hhk-ink);
    box-shadow: none;
}

#content-wrapper.is-item-list .show > .btn.btn-outline-secondary,
#content-wrapper.is-item-list .btn.btn-outline-secondary[aria-expanded="true"] {
    background-color: var(--hhk-creme);
    border-color: var(--hhk-rule);
    color: var(--hhk-ink);
    box-shadow: none;
}

/* ── #16 Pagination: CI-Farben statt Bootstrap-Blau ─────────────── */
.pagination {
    gap: 3px;
}

.pagination .page-item .page-link {
    align-items: center;
    background-color: #fff;
    border-color: var(--hhk-rule-soft);
    border-radius: 8px !important;
    color: var(--hhk-ink);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    min-width: 36px;
    padding: 0 10px;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.pagination .page-item .page-link:hover,
.pagination .page-item .page-link:focus {
    background-color: var(--hhk-paper-warm);
    border-color: var(--hhk-rule);
    color: var(--hhk-ink);
    z-index: 1;
}

.pagination .page-item.active .page-link {
    background-color: var(--hhk-ink);
    border-color: var(--hhk-ink);
    color: var(--hhk-paper);
}

.pagination .page-item.disabled .page-link {
    background-color: var(--hhk-paper-warm);
    border-color: var(--hhk-rule-soft);
    color: var(--hhk-rule);
    pointer-events: none;
}

/* Seiten-Dropdown-Menü (NOVA: zeigt Seiten als Dropdown statt direkte Links) */
.navbar-pagination .dropdown-menu {
    border: 1px solid var(--hhk-rule-soft);
    border-radius: 8px;
    box-shadow: 0 8px 24px -12px rgba(43, 33, 26, .3);
    min-width: 130px;
    overflow: hidden;
    padding: 4px;
}

.navbar-pagination .dropdown-menu .dropdown-item {
    border-radius: 6px;
    color: var(--hhk-ink);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 10px;
}

.navbar-pagination .dropdown-menu .dropdown-item:hover,
.navbar-pagination .dropdown-menu .dropdown-item:focus {
    background-color: var(--hhk-creme);
    color: var(--hhk-ink);
}

.navbar-pagination .dropdown-menu .dropdown-item.active,
.navbar-pagination .dropdown-menu .page-item.active {
    background-color: var(--hhk-creme);
    box-shadow: inset 3px 0 0 var(--hhk-gold);
}

#content-wrapper.is-item-list .navbar-pagination .dropdown-menu .page-item .page-link {
    background: transparent;
    border: 0;
    border-radius: 0 !important;
    color: inherit;
    display: block;
    font-size: 13px;
    font-weight: 700;
    height: auto;
    min-width: 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

#content-wrapper.is-item-list .navbar-pagination .dropdown-menu .page-item .page-link:hover,
#content-wrapper.is-item-list .navbar-pagination .dropdown-menu .page-item .page-link:focus {
    background: transparent;
    border: 0;
    color: inherit;
}
