/* Kategória attribútumszűrők: desktop oldalsáv, mobilon drawer.
   Bootstrap 3.3.5 — nincs offcanvas komponens, ezért saját, egyszerű drawer. */

.attr-category-form {
    margin: 0;
}

/* --- Oldalsáv (>= 992px) --- */

.attr-filter-sidebar {
    margin-top: 6px;
}

.attr-filter-panel {
    border: 1px solid #e3e8ee;
    border-radius: 3px;
    background: #ffffff;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
}

.attr-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.attr-filter-title {
    font-weight: bold;
    font-size: 15px;
    color: #BB0000;
    text-transform: uppercase;
}

/* A bezáró gomb csak a mobil drawerben látszik. */
.attr-filter-close {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #888888;
    padding: 0 4px;
}

/* --- Aktív szűrőcímkék --- */

.attr-filter-active {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e3e8ee;
}

.attr-filter-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    background: #BB0000;
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attr-filter-tag:hover,
.attr-filter-tag:focus {
    background: #8F0000;
    color: #ffffff;
    text-decoration: none;
}

.attr-filter-tag-x {
    margin-left: 6px;
    font-weight: bold;
}

.attr-filter-clear {
    font-size: 12px;
    color: #666666;
    text-decoration: underline;
    white-space: nowrap;
}

/* --- Facetek --- */

/* A panel függőleges flex: így a facetták sorrendje CSS-ből állítható. Sorrend: a szabály-alapú
   "Kialakítás" (lead), utána a Gyártó, az Ár, a "Készleten", a többi, végül a Tulajdonságok csoport. */
.attr-filter-panel {
    display: flex;
    flex-direction: column;
}

.attr-filter-panel > .attr-filter-head { order: -10; }
.attr-filter-panel > .attr-filter-active { order: -9; }
.attr-filter-panel > .attr-facet-lead { order: -8; }
.attr-filter-panel > .attr-facet-manufacturer { order: -7; }
.attr-filter-panel > .attr-facet-price { order: -6; }
.attr-filter-panel > .attr-facet-stock { order: -5; }
.attr-filter-panel > .attr-facet-group-title { order: 5; }
.attr-filter-panel > .attr-facet-in-group { order: 6; }
.attr-filter-panel > .attr-filter-actions { order: 10; }

.attr-facet {
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
}

.attr-facet-in-group:last-of-type {
    border-bottom: none;
}

.attr-facet-title {
    font-weight: bold;
    color: #333333;
    margin-bottom: 5px;
}

/* Összecsukható facetta: a cím kapcsoló, jobb szélén nyíl; csukva a tartalom rejtve. */
.attr-js .attr-facet-collapse {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 18px;
}

.attr-js .attr-facet-collapse::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -6px;
    border-right: 2px solid #888888;
    border-bottom: 2px solid #888888;
    transform: rotate(45deg);
    transition: transform .15s;
}

.attr-js .attr-facet-collapse[aria-expanded="false"]::after {
    transform: rotate(-45deg);
    margin-top: -3px;
}

.attr-js .attr-facet-collapsed > .attr-facet-body,
.attr-js .attr-facet-in-group.attr-facet-collapsed {
    display: none;
}

.attr-js .attr-facet-collapsed .attr-facet-title {
    margin-bottom: 0;
}

/* Kijelölt opció: halvány kék háttér a teljes soron (arukereso-minta), a szöveg kékkel. */
.attr-option {
    border-radius: 3px;
    margin: 0 -6px;
    padding-left: 6px;
    padding-right: 6px;
}

.attr-option-selected > .attr-option,
.attr-option:has(input:checked) {
    background: #F8E3E3;
}

.attr-option-selected .attr-option-label,
.attr-option:has(input:checked) .attr-option-label {
    color: #BB0000;
    font-weight: 600;
}

/* Aktív szűrésű facetta címe: kék pötty, hogy csukva is látsszon. */
.attr-facet-active > .attr-facet-title::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #BB0000;
    margin-right: 6px;
    vertical-align: middle;
}

/* Letiltott (találat nélküli) opció: a helyén marad, elszürkítve, nem kattintható. */
.attr-option-disabled .attr-option {
    opacity: .45;
    cursor: default;
}

.attr-option-disabled .attr-option input {
    cursor: default;
}

.attr-facet-options {
    list-style: none;
    /* A görgethető lista (overflow) levágná a kijelölt opció 3 px-es oldalsó túlnyúlását,
       ezért a lista saját dobozát 3 px-szel kihúzzuk mindkét oldalra, és ugyanennyi belső margót ad. */
    margin: 0 -3px;
    padding: 0 3px;
    max-height: 220px;
    overflow-y: auto;
}

.attr-facet-options li {
    margin: 0;
    padding: 0;
}

.attr-option {
    display: flex;
    align-items: center;
    gap: 6px;
    /* A kijelölt opció kék háttere 3 px-szel túlnyúlik a jelölőnégyzeten és a számlálón (negatív margó + azonos padding). */
    margin: 0 -3px;
    padding: 2px 3px;
    font-weight: normal;
    cursor: pointer;
    min-height: 26px; /* mobilon is jól célozható */
}

.attr-option input {
    margin: 0;
    flex: 0 0 auto;
}

.attr-option-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.attr-option-count {
    flex: 0 0 auto;
    color: #888888;
    font-size: 12px;
}

.attr-option-count::before {
    content: '(';
}

.attr-option-count::after {
    content: ')';
}

/* Színminta */
.attr-swatch {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #c8ced6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.attr-swatch-none {
    display: none; /* színkód nélkül a szöveg a jelölés */
}

.attr-option input:checked ~ .attr-swatch {
    outline: 2px solid #BB0000;
    outline-offset: 1px;
}

/* Tartomány */
.attr-range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.attr-range-input {
    width: 0;
    flex: 1 1 0;
    min-width: 56px;
    padding: 4px 6px;
    height: 30px;
}

.attr-range-sep,
.attr-range-unit {
    flex: 0 0 auto;
    color: #666666;
}

.attr-range-slider {
    position: relative;
    height: 26px;
    margin-top: 8px;
}

/* Két egymásra tett natív csúszka: csak a fogantyúk fogadják az eseményt. */
.attr-range-slider-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    height: 26px;
}

.attr-range-slider-input::-webkit-slider-runnable-track {
    height: 4px;
    background: #d9dee5;
    border-radius: 2px;
}

.attr-range-slider-input::-moz-range-track {
    height: 4px;
    background: #d9dee5;
    border-radius: 2px;
}

/* Csak az első csúszka rajzol sávot; a fölé kerülő második sávja átlátszó,
   különben a vonal belelóg az alsó fogantyúba. */
.attr-range-slider-input + .attr-range-slider-input::-webkit-slider-runnable-track {
    background: transparent;
}

.attr-range-slider-input + .attr-range-slider-input::-moz-range-track {
    background: transparent;
}

.attr-range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border-radius: 50%;
    background: #BB0000;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #BB0000;
    cursor: pointer;
}

.attr-range-slider-input::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #BB0000;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #BB0000;
    cursor: pointer;
}

.attr-range-bounds {
    display: flex;
    justify-content: space-between;
    color: #888888;
    font-size: 11px;
    margin-top: 2px;
}

/* JS-sel az inputok azonnal frissítenek, a gomb felesleges. */
.attr-filter-actions {
    margin-top: 10px;
    text-align: right;
}

.attr-js .attr-filter-actions {
    display: none;
}

/* --- "Tulajdonságok" csoport (a boolean facetek a panel végén) --- */

.attr-facet-group-title {
    font-weight: bold;
    color: #333333;
    margin: 0 0 5px;
    padding-top: 8px;
}


/* A csoporton belüli pipák sűrűbben állnak: nincs külön facet-keret és cím. */
.attr-facet-in-group {
    padding: 0;
    border-bottom: none;
}

/* --- Sávok (ár és kvantilis numerikus sávok) --- */

/* Az 5 sáv mindig kifér — ne kapjon görgetősávot. */
.attr-facet-bands {
    max-height: none;
    overflow: visible;
}

/* A hosszú listák hosszát a "több mutatása" szabályozza, nem a belső görgetés:
   kinyitva nőjön a lista, ne egy 220px-es görgetődoboz legyen az oldalsávban. */
.attr-js .attr-facet-collapsible {
    max-height: none;
    overflow: visible;
}

/* --- Lenyitható szakaszok: "több mutatása", "Összes gyártó", "Egyedi értékek" --- */

/* Link-kinézetű, de gomb: JS nélkül nem látszik, mert ott minden nyitva van. */
.attr-toggle {
    display: none;
    background: none;
    border: none;
    padding: 2px 0;
    margin: 2px 0 0;
    color: #BB0000;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.attr-js .attr-toggle {
    display: inline-block;
}

.attr-toggle:hover,
.attr-toggle:focus {
    color: #8F0000;
}

/* Csak JS mellett rejtjük el a többletet: enélkül a teljes lista submitolható. */
.attr-js .attr-facet-collapsible[data-open="0"] .attr-option-hidden {
    display: none;
}

.attr-js .attr-manufacturer-rest[data-open="0"] .attr-manufacturer-rest-list,
.attr-js .attr-custom-range[data-open="0"] .attr-custom-range-body {
    display: none;
}

/* Sávok nélküli tartomány (régi slider/minmax nézet): nincs lenyitás, nincs gomb. */
.attr-custom-range-plain > .attr-custom-range-body {
    display: block;
}

.attr-custom-range-body {
    margin-top: 4px;
}

/* --- Aktív szűrők a lista fölött (a toolbar mellett) --- */

.attr-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 6px 0 10px;
}

/* --- Töltés közben --- */

.attr-loading #content {
    opacity: .5;
    pointer-events: none;
    transition: opacity .15s;
}

/* --- Mobil toggle gomb: csak drawer módban látszik --- */

.attr-filter-toggle {
    display: none;
    margin: 6px 0 10px;
}

.attr-filter-toggle .badge {
    background: #ffffff;
    color: #BB0000;
    margin-left: 6px;
}

/* --- Nincs találat a szűrésre --- */

.attr-no-result {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin: 30px 0;
    min-height: 200px;
}

.attr-no-result a {
    display: inline-block;
    margin-top: 10px;
    font-weight: normal;
    text-decoration: underline;
}

/* --- Kiválasztott szűrők a terméklista fölött, középen --- */

.attr-filter-active-top {
    justify-content: flex-start;
    border-bottom: none;
    margin: 4px 0 12px;
    padding-bottom: 0;
}


/* --- Terméklista eszköztár: "Megjelenítés" és "Rendezés" legördülők --- */

/* A találatszám a bal, az eszköztár a jobb szélre. A téma clearfix ::before/::after pszeudo-elemei a
   flex-sorban névtelen elemként foglalnának helyet a két szélen (beljebb tolva mindkettőt) — kikapcsolva. */
.attr-category-form #content .woocommerce-before-loop {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 6px;
    padding: 0;
    width: auto;
}

.attr-category-form #content .woocommerce-before-loop::before,
.attr-category-form #content .woocommerce-before-loop::after {
    display: none !important;
    content: none !important;
}

/* A téma a találatszám-bekezdésnek és az eszköztárnak külön margót/lebegtetést ad —
   a flex-sorban egy vonalba kerülnek, ezért ezeket nullázzuk. */
.attr-category-form .woocommerce-before-loop .woocommerce-result-count,
.attr-category-form .woocommerce-before-loop .woocommerce-ordering {
    margin: 0;
    padding: 0;
    float: none;
    line-height: 32px;
    position: static;
    top: auto;
}

.attr-category-form .woocommerce-before-loop .woocommerce-ordering table {
    margin: 0;
    vertical-align: middle;
}

.attr-category-form .woocommerce-ordering {
    padding: 0;
    margin: 0;
    float: none;
}

/* A téma távoli nyila (a sor jobb szélén) nem kell: minden select saját nyilat kap. */
.attr-category-form .woocommerce-before-loop .woocommerce-ordering:after,
.attr-category-form .woocommerce-before-loop .woocommerce-ordering::after {
    display: none;
    content: none;
}

.attr-category-form .woocommerce-ordering table,
.attr-category-form .woocommerce-ordering tr {
    border: none;
    margin: 0;
}

.attr-category-form .woocommerce-ordering td {
    padding: 0 0 0 14px;
    border: none;
    white-space: nowrap;
    font-size: 13px;
    color: #666666;
    vertical-align: middle;
}

.attr-category-form .woocommerce-ordering td:first-child {
    padding-left: 0;
}

.attr-category-form .woocommerce-ordering select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 32px;
    margin: 0 0 0 4px;
    padding: 4px 30px 4px 10px;
    border: 1px solid #c8ced6;
    border-radius: 4px;
    background: #ffffff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: #333333;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: none;
}

.attr-category-form .woocommerce-ordering select:hover,
.attr-category-form .woocommerce-ordering select:focus {
    border-color: #BB0000;
    outline: none;
}

.attr-category-form .woocommerce-ordering select::-ms-expand {
    display: none;
}

/* --- Drawer (< 992px) --- */

@media (max-width: 991px) {
    /* A téma (css/core.css) 991 px alatt minden .btn-t blokká, 600 px alatt teljes szélességűvé tesz —
       a szűrő gomb maradjon kompakt, balra igazítva, a többi elemtől elkülönítve. */
    body .attr-filter-toggle {
        display: inline-flex !important;
        align-items: center;
        width: auto !important;
        max-width: none !important;
        margin: 6px 0 12px !important;
        padding: 7px 14px;
        gap: 6px;
    }

    .attr-filter-toggle::before {
        content: '';
        width: 14px;
        height: 12px;
        background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' viewBox='0 0 14 12'%3E%3Cpath d='M0 1h14M2 6h10M4 11h6' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
    }

    .attr-filter-sidebar {
        margin-top: 0;
    }

    .attr-filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85%;
        max-width: 360px;
        z-index: 100001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: none;
        border-radius: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, .3);
        transform: translateX(-105%);
        transition: transform .2s ease-out;
        padding-bottom: 60px;
    }

    .attr-drawer-open .attr-filter-panel {
        transform: translateX(0);
    }

    .attr-filter-close {
        display: block;
    }

    .attr-facet-options {
        max-height: none;
    }

    .attr-option {
        min-height: 36px;
    }

    .attr-toggle {
        padding: 8px 0;
        font-size: 13px;
    }

    /* JS-sel is legyen elérhető „Kész" gomb a drawer alján. */
    .attr-js .attr-filter-actions {
        display: block;
        position: sticky;
        bottom: 0;
        background: #ffffff;
        padding: 10px 0;
        border-top: 1px solid #e3e8ee;
    }

    .attr-drawer-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 100000;
    }

    .attr-drawer-open .attr-drawer-backdrop {
        display: block;
    }

    .attr-drawer-open {
        overflow: hidden;
    }
}

/* --- Eszköztár (attr-toolbar): találatszám | lapméret-szegmens + rendezés-menü --- */

.attr-toolbar,
.attr-category-form #content .attr-toolbar {
    background: #F7F9FB;
    border: 1px solid #ECEFF3;
    padding: 8px 14px; /* a #content .woocommerce-before-loop padding:0 szabályánál erősebb kell legyen */
    margin: 0 0 14px !important;
}

.attr-toolbar .attr-toolbar-count {
    font-size: 14px;
    color: #4B5563;
    font-weight: 400;
    line-height: 32px !important;
}

.attr-toolbar .attr-toolbar-count strong {
    color: #0A0A0A;
    font-weight: 700;
    font-size: 16px;
}

.attr-toolbar .attr-toolbar-page {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #D5DBE3;
    color: #6B7280;
    font-size: 13px;
}

.attr-toolbar .attr-toolbar-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.attr-toolbar .attr-toolbar-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    position: relative;
}

.attr-toolbar .attr-toolbar-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6B7280;
    white-space: nowrap;
}

/* Lapméret: szegmentált gombok */
.attr-toolbar .attr-segment {
    display: inline-flex;
    border: 1px solid #C8CED6;
    background: #ffffff;
    overflow: hidden;
}

.attr-toolbar .attr-segment-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-left: 1px solid #C8CED6;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 400;
    height: 30px;
    min-width: 40px;
    padding: 0 10px;
    margin: 0;
    line-height: 30px;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.attr-toolbar .attr-segment-btn:first-child {
    border-left: 0;
}

.attr-toolbar .attr-segment-btn:hover {
    background: #FBEFEF;
}

.attr-toolbar .attr-segment-btn.active {
    background: #BB0000;
    color: #ffffff;
    font-weight: 700;
    cursor: default;
}

.attr-toolbar .attr-segment-btn:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(187, 0, 0, .25);
}

/* Rendezés: gomb + lenyíló lista */
.attr-toolbar .attr-sort-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 10px 0 10px;
    border: 1px solid #C8CED6;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 400;
    line-height: 30px;
    cursor: pointer;
    min-width: 190px;
    text-align: left;
    transition: border-color .15s;
}

.attr-toolbar .attr-sort-btn:hover,
.attr-toolbar .attr-sort-open .attr-sort-btn {
    border-color: #BB0000;
}

.attr-toolbar .attr-sort-btn:focus {
    outline: none;
}

.attr-toolbar .attr-sort-current {
    flex: 1 1 auto;
    white-space: nowrap;
}

.attr-toolbar .attr-sort-icon {
    width: 14px;
    height: 12px;
    flex: 0 0 auto;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12' viewBox='0 0 14 12'%3E%3Cpath d='M0 1.5h14M0 6h9M0 10.5h5' stroke='%23BB0000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center;
}

.attr-toolbar .attr-sort-caret {
    width: 10px;
    height: 6px;
    flex: 0 0 auto;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
    transition: transform .15s;
}

.attr-toolbar .attr-sort-open .attr-sort-caret {
    transform: rotate(180deg);
}

.attr-toolbar .attr-sort-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 50;
    min-width: 100%;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #C8CED6;
    box-shadow: 0 6px 22px rgba(187, 0, 0, .12);
}

.attr-toolbar .attr-sort-open .attr-sort-menu {
    display: block;
}

.attr-toolbar .attr-sort-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.4;
}

.attr-toolbar .attr-sort-menu a {
    display: block;
    padding: 8px 14px;
    line-height: 1.4;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
}

.attr-toolbar .attr-sort-menu a:hover {
    background: #FBEFEF;
    color: #BB0000;
}

.attr-toolbar .attr-sort-menu li.active a {
    color: #BB0000;
    font-weight: 700;
    background: #F8E3E3;
}

/* Gyártó select (oldalsáv nélküli oldalakon) — a meglévő select-stílust örökli */
.attr-toolbar .attr-toolbar-manufacturer select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 32px;
    margin: 0;
    padding: 4px 30px 4px 10px;
    border: 1px solid #c8ced6;
    background: #ffffff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: #333333;
    font-size: 13px;
    max-width: 180px;
}

/* --- Eszköztár keskeny képernyőn: találatszám külön sorban, vezérlők egymás alatt --- */

@media (max-width: 600px) {
    .attr-category-form #content .attr-toolbar {
        display: block !important;
        padding: 8px 10px 10px;
    }

    .attr-toolbar .attr-toolbar-count {
        line-height: 1.5 !important;
        margin: 0 0 8px !important;
        padding-bottom: 8px;
        border-bottom: 1px solid #E5E9EF;
    }

    .attr-toolbar .attr-toolbar-controls {
        gap: 8px 0;
    }

    .attr-toolbar .attr-toolbar-field {
        width: 100%;
        justify-content: space-between;
    }

    .attr-toolbar .attr-toolbar-field .attr-toolbar-label {
        flex: 0 0 auto;
    }

    .attr-toolbar .attr-sort-btn,
    .attr-toolbar .attr-toolbar-manufacturer select {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .attr-toolbar .attr-sort-btn {
        max-width: 75%;
    }

    .attr-toolbar .attr-sort-menu {
        left: auto;
        right: 0;
        min-width: 75%;
    }
}

/* --- Mobil fejléc szűrő-ikon: a kereső/user ikonok mintájára, a kosár és a logó közé --- */

.nav-wrap .attr-filter-toggle-header {
    display: none;
}

@media (max-width: 991px) {
    /* Csak akkor látszik, ha a tartalmi "Szűrők" gomb a fejléc alá görgetett (JS: .is-visible). */
    .nav-wrap .container > .attr-filter-toggle-header,
    body .nav-wrap .container > .attr-filter-toggle-header {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%) scale(.85);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
        position: absolute;
        right: 145px;
        top: 50%;
        transform: translateY(-50%);
        width: 27px !important;
        height: 27px;
        margin: 0 !important;
        padding: 5px !important;
        border: none;
        border-radius: 4px;
        background: #BB0000;
        color: #ffffff;
        font-size: 16px;
        line-height: 17px;
        text-align: center;
        outline: none;
        max-width: none !important;
        gap: 0;
    }

    /* Az általános .attr-filter-toggle SVG-pszeudója helyett itt a FontAwesome szűrő-ikon (fa-filter) kell. */
    .nav-wrap .container > .attr-filter-toggle-header::before {
        content: "\f0b0";
        font-family: FontAwesome;
        width: auto;
        height: auto;
        background: none;
    }

    .nav-wrap .container > .attr-filter-toggle-header .attr-header-badge {
        position: absolute;
        top: -7px;
        right: -7px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 8px;
        background: #ffffff;
        color: #BB0000;
        border: 1px solid #BB0000;
        font-family: 'PT Sans', Arial, sans-serif;
        font-size: 10px;
        font-weight: 700;
        line-height: 14px;
        text-align: center;
    }

    .nav-wrap .container > .attr-filter-toggle-header.is-empty .attr-header-badge {
        display: none;
    }

    body .nav-wrap .container > .attr-filter-toggle-header.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) scale(1);
        transition: opacity .18s ease, transform .18s ease, visibility 0s;
    }
}

/* Nagyon keskeny kijelzőn (a logó és a kosár közé már nem fér) marad a tartalmi "Szűrők" gomb. */
@media (max-width: 345px) {
    body .nav-wrap .container > .attr-filter-toggle-header {
        display: none !important;
    }
}
