/*
 * Category PLP Premium V2
 *
 * Responsabilitate:
 * - layout pagină categorie;
 * - hero;
 * - toolbar;
 * - sidebar și filtre;
 * - drawer mobil;
 * - stare goală;
 * - paginare.
 *
 * Cardurile și grid-ul produselor sunt administrate de cards.css.
 */

:root {
    --category-navy: #07182e;
    --category-navy-soft: #102a4f;
    --category-gold: #c59a3d;
    --category-gold-dark: #99701f;
    --category-gold-soft: #f7eedc;
    --category-text: #111827;
    --category-muted: #667085;
    --category-border: #e7eaf0;
    --category-surface: #ffffff;
    --category-background: #f7f8fa;
    --category-danger: #991b1b;
    --category-radius-lg: 24px;
    --category-radius-md: 18px;
    --category-shadow:
        0 18px 46px rgba(7, 24, 46, .075);
}

html.has-category-filter-open,
html.has-category-filter-open body {
    overflow: hidden;
}

.category-page {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 24px 0 64px;
    box-sizing: border-box;
    background:
        linear-gradient(
            180deg,
            #ffffff 0,
            #ffffff 320px,
            var(--category-background) 320px,
            var(--category-background) 100%
        );
    color: var(--category-text);
}

.category-shell {
    width: 100%;
    margin: 0 auto;
    padding: 0 56px;
    box-sizing: border-box;
}

.category-page .breadcrumb,
.category-page .breadcrumbs {
    margin: 0 0 18px;
}

/* =========================================================
   HERO
   ========================================================= */

.category-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 250px;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 88% 5%,
            rgba(197, 154, 61, .34),
            transparent 26%
        ),
        radial-gradient(
            circle at 63% 120%,
            rgba(255, 255, 255, .09),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--category-navy) 0%,
            #0c2342 48%,
            var(--category-navy-soft) 100%
        );
    color: #ffffff;
    box-shadow:
        0 30px 75px rgba(7, 24, 46, .18);
}

.category-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, .025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .025) 1px,
            transparent 1px
        );
    background-size: 36px 36px;
    content: "";
    mask-image:
        linear-gradient(
            90deg,
            #000,
            transparent 78%
        );
}

.category-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    max-width: 850px;
    padding: 44px 48px;
}

.category-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    color: #e8ca89;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.category-hero__eyebrow::before {
    width: 28px;
    height: 1px;
    background: currentColor;
    content: "";
}

.category-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 4.2vw, 58px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.category-hero__summary {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
}

.category-hero__summary strong {
    color: #ffffff;
    font-weight: 800;
}

.category-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .69);
    font-size: 13px;
    font-weight: 700;
}

.category-hero__count {
    color: #f3d998;
    font-weight: 900;
}

.category-hero__separator {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .38);
}

.category-hero__decoration {
    position: relative;
    flex: 0 0 28%;
    min-width: 260px;
}

.category-hero__decoration span {
    position: absolute;
    display: block;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
}

.category-hero__decoration span:nth-child(1) {
    top: 22px;
    right: 56px;
    width: 190px;
    height: 190px;
    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 255, 255, .15),
            transparent 42%
        );
}

.category-hero__decoration span:nth-child(2) {
    right: 6px;
    bottom: -94px;
    width: 240px;
    height: 240px;
    border-color: rgba(197, 154, 61, .29);
}

.category-hero__decoration span:nth-child(3) {
    top: 82px;
    right: 144px;
    width: 86px;
    height: 86px;
    border: 0;
    background:
        linear-gradient(
            135deg,
            rgba(197, 154, 61, .48),
            rgba(197, 154, 61, .08)
        );
    box-shadow:
        0 20px 60px rgba(197, 154, 61, .15);
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.category-toolbar {
    position: relative;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
    padding: 15px 18px;
    border: 1px solid var(--category-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--category-shadow);
}

.category-toolbar__results {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.category-toolbar__results-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--category-gold-soft);
    color: var(--category-gold-dark);
}

.category-toolbar__results-icon svg {
    width: 21px;
    height: 21px;
}

.category-toolbar__results div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.category-toolbar__results strong {
    overflow: hidden;
    color: var(--category-text);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-toolbar__results small {
    color: var(--category-muted);
    font-size: 11px;
    font-weight: 650;
}

.category-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-toolbar__label {
    color: var(--category-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.category-toolbar__sort form {
    margin: 0;
}

.category-toolbar__sort select,
.category-toolbar .sort-select,
.category-toolbar select {
    min-width: 190px;
    height: 44px;
    border: 1px solid var(--category-border);
    border-radius: 12px;
    outline: 0;
    background: #ffffff;
    color: var(--category-text);
    padding: 0 40px 0 13px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.category-toolbar__sort select:hover,
.category-toolbar__sort select:focus {
    border-color: rgba(197, 154, 61, .72);
    box-shadow:
        0 0 0 4px rgba(197, 154, 61, .11);
}

.category-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--category-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--category-text);
    padding: 0 15px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.category-filter-toggle svg {
    width: 19px;
    height: 19px;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.category-layout {
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.category-products {
    min-width: 0;
}

.category-products > .product-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}

/* =========================================================
   SIDEBAR ȘI FILTRE
   ========================================================= */

.category-sidebar {
    position: sticky;
    z-index: 7;
    top: 92px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--category-border);
    border-radius: var(--category-radius-lg);
    background: var(--category-surface);
    box-shadow: var(--category-shadow);
}

.category-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 20px 17px;
    border-bottom: 1px solid var(--category-border);
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfbfc
        );
}

.category-sidebar__header > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.category-sidebar__header strong {
    color: var(--category-text);
    font-size: 16px;
    font-weight: 900;
}

.category-sidebar__eyebrow {
    color: var(--category-gold-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.category-sidebar__close {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--category-border);
    border-radius: 11px;
    background: #ffffff;
    color: var(--category-text);
    cursor: pointer;
}

.category-sidebar__close svg {
    width: 20px;
    height: 20px;
}

.category-sidebar__body {
    padding: 18px;
}

/*
 * Neutralizăm containerul exterior al componentei vechi.
 * Grupele interne își păstrează funcționalitatea.
 */
.category-sidebar__body > .filters,
.category-sidebar__body > .filter-box,
.category-sidebar__body > .sidebar-filters {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.category-sidebar__body fieldset,
.category-sidebar__body .filter-group,
.category-sidebar__body .filters-group,
.category-sidebar__body .filter-section {
    min-width: 0;
    margin: 0 0 14px;
    border: 1px solid var(--category-border);
    border-radius: 15px;
    background: #ffffff;
    padding: 15px;
}

.category-sidebar__body fieldset:last-child,
.category-sidebar__body .filter-group:last-child,
.category-sidebar__body .filters-group:last-child,
.category-sidebar__body .filter-section:last-child {
    margin-bottom: 0;
}

.category-sidebar__body legend,
.category-sidebar__body h2,
.category-sidebar__body h3,
.category-sidebar__body h4,
.category-sidebar__body .filter-title {
    margin: 0 0 12px;
    color: var(--category-text);
    font-size: 13px;
    font-weight: 900;
}

.category-sidebar__body label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 9px;
    color: #344054;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    cursor: pointer;
}

.category-sidebar__body label:last-child {
    margin-bottom: 0;
}

.category-sidebar__body input[type="checkbox"],
.category-sidebar__body input[type="radio"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--category-gold-dark);
}

.category-sidebar__body input[type="number"],
.category-sidebar__body input[type="text"],
.category-sidebar__body select {
    width: 100%;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid var(--category-border);
    border-radius: 11px;
    outline: 0;
    background: #ffffff;
    color: var(--category-text);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
}

.category-sidebar__body input:focus,
.category-sidebar__body select:focus {
    border-color: rgba(197, 154, 61, .75);
    box-shadow:
        0 0 0 4px rgba(197, 154, 61, .1);
}

.category-sidebar__body button,
.category-sidebar__body input[type="submit"] {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            var(--category-navy),
            #1c3554
        );
    color: #ffffff;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

/* =========================================================
   STARE GOALĂ
   ========================================================= */

.category-empty-state {
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px dashed #cbd2dc;
    border-radius: var(--category-radius-lg);
    background: #ffffff;
    padding: 40px;
    text-align: center;
}

.category-empty-state__icon {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border-radius: 20px;
    background: var(--category-gold-soft);
    color: var(--category-gold-dark);
}

.category-empty-state__icon svg {
    width: 32px;
    height: 32px;
}

.category-empty-state h2 {
    margin: 20px 0 7px;
    color: var(--category-text);
    font-size: 22px;
    font-weight: 900;
}

.category-empty-state p {
    margin: 0;
    color: var(--category-muted);
    font-size: 14px;
    font-weight: 650;
}

.category-empty-state a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    border-radius: 12px;
    background: var(--category-navy);
    color: #ffffff;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

/* =========================================================
   PAGINARE
   ========================================================= */

.category-products .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 0;
}

.category-products .pagination a,
.category-products .pagination span,
.category-products .page-link {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid var(--category-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--category-text);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.category-products .pagination a:hover,
.category-products .page-link:hover {
    border-color: rgba(197, 154, 61, .65);
    background: var(--category-gold-soft);
    color: var(--category-gold-dark);
}

.category-products .pagination .active,
.category-products .pagination [aria-current="page"],
.category-products .page-link.is-active {
    border-color: var(--category-navy);
    background: var(--category-navy);
    color: #ffffff;
}

/* =========================================================
   OVERLAY
   ========================================================= */

.category-filter-overlay {
    position: fixed;
    z-index: 998;
    inset: 0;
    display: block;
    visibility: hidden;
    border: 0;
    background: rgba(7, 24, 46, .52);
    padding: 0;
    opacity: 0;
    cursor: pointer;
    backdrop-filter: blur(3px);
    transition:
        opacity .25s ease,
        visibility .25s ease;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1440px) {
    .category-shell {
        padding-right: 34px;
        padding-left: 34px;
    }

    .category-products > .product-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 1180px) {
    .category-products > .product-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .category-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1024px) {
    .category-page {
        padding-top: 18px;
    }

    .category-shell {
        padding-right: 22px;
        padding-left: 22px;
    }

    .category-layout {
        display: block;
    }

    .category-filter-toggle {
        display: inline-flex;
    }

    .category-sidebar {
        position: fixed;
        z-index: 999;
        top: 0;
        right: auto;
        bottom: 0;
        left: 0;
        width: min(390px, calc(100vw - 36px));
        max-width: none;
        overflow-y: auto;
        border: 0;
        border-radius: 0 24px 24px 0;
        box-shadow:
            24px 0 70px rgba(7, 24, 46, .25);
        transform: translateX(-105%);
        transition: transform .28s ease;
    }

    .category-sidebar__header {
        position: sticky;
        z-index: 2;
        top: 0;
        padding: 18px;
    }

    .category-sidebar__close {
        display: inline-grid;
        place-items: center;
    }

    .category-page.is-filter-open .category-sidebar {
        transform: translateX(0);
    }

    .category-page.is-filter-open .category-filter-overlay {
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 760px) {
    .category-shell {
        padding-right: 14px;
        padding-left: 14px;
    }

    .category-hero {
        min-height: auto;
        border-radius: 22px;
    }

    .category-hero__content {
        padding: 30px 24px;
    }

    .category-hero__decoration {
        position: absolute;
        z-index: 1;
        inset: 0 0 0 auto;
        width: 45%;
        min-width: 0;
        opacity: .55;
        pointer-events: none;
    }

    .category-hero h1 {
        max-width: 90%;
        font-size: clamp(32px, 9vw, 44px);
    }

    .category-hero__summary {
        max-width: 88%;
        font-size: 14px;
    }

    .category-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
        padding: 14px;
        border-radius: 17px;
    }

    .category-toolbar__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    }

    .category-filter-toggle {
        width: 100%;
    }

    .category-toolbar__sort {
        min-width: 0;
    }

    .category-toolbar__label {
        display: none;
    }

    .category-toolbar__sort form,
    .category-toolbar__sort select,
    .category-toolbar .sort-select,
    .category-toolbar select {
        width: 100%;
        min-width: 0;
    }

    .category-products > .product-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
        gap: 10px !important;
    }
}

@media (max-width: 420px) {
    .category-page {
        padding-bottom: 42px;
    }

    .category-shell {
        padding-right: 10px;
        padding-left: 10px;
    }

    .category-page .breadcrumb,
    .category-page .breadcrumbs {
        margin-bottom: 12px;
    }

    .category-hero {
        border-radius: 18px;
    }

    .category-hero__content {
        padding: 26px 18px;
    }

    .category-hero__eyebrow {
        font-size: 10px;
    }

    .category-hero h1 {
        font-size: 31px;
    }

    .category-hero__summary {
        max-width: 100%;
        margin-top: 13px;
        font-size: 13px;
    }

    .category-hero__meta {
        gap: 9px;
        margin-top: 18px;
        font-size: 11px;
    }

    .category-toolbar {
        margin-bottom: 14px;
    }

    .category-toolbar__results-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .category-toolbar__results small {
        display: none;
    }

    .category-toolbar__actions {
        gap: 8px;
    }

    .category-filter-toggle,
    .category-toolbar__sort select,
    .category-toolbar .sort-select,
    .category-toolbar select {
        min-height: 42px;
        height: 42px;
        font-size: 12px;
    }

    .category-products > .product-grid {
        gap: 8px !important;
    }
}


/* =========================================================
   FILTER UX PREMIUM V3
   ========================================================= */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    margin: -1px !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.category-filter-toggle {
    position: relative;
}

.category-filter-toggle__count {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: var(--category-gold);
    color: #ffffff;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 950;
}

/* Filtre active */

.category-active-filters {
    display: grid;
    gap: 13px;
    margin: -7px 0 22px;
    border: 1px solid #eadfc7;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #fffdf8,
            #fff9ec
        );
    padding: 15px 17px;
}

.category-active-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.category-active-filters__header > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.category-active-filters__header strong {
    color: var(--category-text);
    font-size: 13px;
    font-weight: 950;
}

.category-active-filters__header span {
    color: var(--category-muted);
    font-size: 12px;
    font-weight: 700;
}

.category-active-filters__reset {
    color: var(--category-gold-dark);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.category-active-filters__reset:hover {
    text-decoration: underline;
}

.category-active-filters__chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.category-filter-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 9px;
    border: 1px solid #e5d5b5;
    border-radius: 999px;
    background: #ffffff;
    color: var(--category-text);
    padding: 0 8px 0 12px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease;
}

.category-filter-chip b {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 999px;
    background: var(--category-gold-soft);
    color: var(--category-gold-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.category-filter-chip:hover {
    border-color: var(--category-gold);
    background: var(--category-gold-soft);
    color: var(--category-gold-dark);
}

/* Rezumat sidebar */

.category-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    border: 1px solid #eadfc7;
    border-radius: 13px;
    background: var(--category-gold-soft);
    padding: 11px 12px;
}

.category-filter-summary span {
    color: var(--category-gold-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.category-filter-summary strong {
    color: var(--category-text);
    font-size: 12px;
    font-weight: 950;
}

/* Checkbox-uri */

.category-sidebar__body .filter-check {
    position: relative;
    display: grid;
    min-height: 35px;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin: 0;
    border-radius: 9px;
    padding: 4px 6px;
    transition:
        background .16s ease,
        color .16s ease;
}

.category-sidebar__body .filter-check:hover {
    background: #f8fafc;
}

.category-sidebar__body .filter-check input:checked + span {
    color: var(--category-gold-dark);
    font-weight: 900;
}

.category-sidebar__body .filter-check small {
    display: inline-flex;
    min-width: 25px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f0f2f5;
    color: var(--category-muted);
    padding: 0 6px;
    font-size: 10px;
    font-weight: 850;
}

/* Preț */

.filter-price-row {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 9px;
}

.category-sidebar__body .filter-price-row > label {
    display: grid;
    gap: 6px;
    margin: 0;
    cursor: default;
}

.filter-price-row > label > span {
    color: var(--category-muted);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.filter-price-input {
    position: relative;
}

.category-sidebar__body .filter-price-input input {
    padding-right: 43px;
}

.filter-price-input small {
    position: absolute;
    top: 50%;
    right: 10px;
    color: var(--category-muted);
    font-size: 9px;
    font-weight: 900;
    pointer-events: none;
    transform: translateY(-50%);
}

.filter-price-range {
    margin-top: 9px;
    color: var(--category-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
}

.filter-price-range strong {
    display: block;
    margin-top: 2px;
    color: var(--category-text);
    font-size: 11px;
    font-weight: 900;
}

/* Branduri */

.filter-group__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.category-sidebar__body .filter-group__heading strong {
    margin: 0;
}

.filter-group__heading > span {
    display: inline-flex;
    min-width: 25px;
    height: 23px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--category-gold-soft);
    color: var(--category-gold-dark);
    padding: 0 7px;
    font-size: 10px;
    font-weight: 950;
}

.category-sidebar__body .filter-brand-search {
    position: relative;
    display: block;
    margin: 0 0 10px;
}

.filter-brand-search svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 11px;
    width: 17px;
    height: 17px;
    color: #98a2b3;
    pointer-events: none;
    transform: translateY(-50%);
}

.category-sidebar__body .filter-brand-search input {
    height: 40px;
    padding-right: 11px;
    padding-left: 36px;
}

.filter-brand-list {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.filter-brand-list::-webkit-scrollbar {
    width: 6px;
}

.filter-brand-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

.filter-brand-empty {
    border-radius: 10px;
    background: #f8fafc;
    color: var(--category-muted);
    padding: 12px;
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}

/* Acțiuni */

.category-sidebar__body .filter-actions {
    position: sticky;
    z-index: 3;
    bottom: -18px;
    display: grid;
    gap: 9px;
    margin: 16px -18px -18px;
    border-top: 1px solid var(--category-border);
    background: rgba(255, 255, 255, .97);
    padding: 14px 18px 18px;
    backdrop-filter: blur(12px);
}

.category-sidebar__body .filter-actions button {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow:
        0 10px 24px rgba(7, 24, 46, .15);
}

.category-sidebar__body .filter-actions button strong {
    display: inline-flex;
    min-width: 25px;
    height: 22px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    padding: 0 6px;
    font-size: 10px;
}

.category-sidebar__body .filter-actions > a {
    color: var(--category-muted);
    font-size: 11px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.category-sidebar__body .filter-actions > a:hover {
    color: var(--category-gold-dark);
    text-decoration: underline;
}

@media (max-width: 760px) {
    .category-active-filters {
        margin-top: -5px;
        margin-bottom: 14px;
        padding: 13px;
    }

    .category-active-filters__header {
        align-items: flex-start;
    }

    .category-active-filters__header > div {
        display: grid;
        gap: 2px;
    }

    .category-filter-chip {
        max-width: 100%;
    }

    .category-filter-chip span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .category-active-filters__header {
        display: grid;
    }

    .category-active-filters__reset {
        width: fit-content;
    }

    .category-active-filters__chips {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .category-filter-chip {
        justify-content: space-between;
    }
}
