/* ==========================================================================
   Filter pill row (R4)
   ========================================================================== */

/* Body-scoped so the selector reaches the products region across the form/snippet DOM boundary. */
body.is-filter-loading .productListWrapperTemplate,
body.is-filter-loading .productListWrapperTemplate + .banner-component-wrapper,
body.is-filter-loading .resultsProducts {
    opacity: 0.55;
    pointer-events: none;
}

body.is-filter-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(243, 146, 0, 0.2);
    border-top-color: #F39200;
    border-radius: 50%;
    animation: c-filter-loading-spin 700ms linear infinite;
    z-index: 1100;
    pointer-events: none;
}

@keyframes c-filter-loading-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    body.is-filter-loading::after {
        animation: none;
    }
}

.c-listing-count {
    margin: 4px 0 12px;
    color: var(--text-secondary, #767676);
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Mobile-only — desktop pill row already shows active state. */
.c-active-filter-chips {
    display: none;
}

.c-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px 6px 12px;
    background: #fff5e6;
    color: var(--text-primary, #343332);
    border: 1px solid #F39200;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.c-active-chip__x {
    /* Latte uses ✕ U+2715 (heavy), not × U+00D7 — the lighter glyph disappears at this size. */
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    opacity: 0.85;
    padding: 0 2px;
    margin-left: 2px;
}

@media (max-width: 768px) {
    /* :has() not :empty — Latte whitespace defeats :empty. */
    .c-active-filter-chips:has(.c-active-chip) {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        margin: 0 0 12px;
        /* 16px gutter — Search wrapper has 0 horizontal padding. */
        padding: 0 16px 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    /* Category wrapper already provides 16px — avoid double-padding. */
    .categorySectionWrapp .c-active-filter-chips:has(.c-active-chip) {
        padding: 0 0 4px;
    }
    .c-active-filter-chips::-webkit-scrollbar {
        display: none;
    }
}

.c-filter-panel {
    margin: 16px 0 24px;
}

/* Two-row clamp container; .is-overflow set per-pill by JS. */
.c-pill-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.c-pill-row__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    /* Pre-paint clamp + visibility:hidden until JS adds .is-clamped — avoids row-2 flash before shrink loop runs. 40px pill + 8px gap → 88px = 2 rows; 8px buffer for sub-pixel rounding. */
    max-height: 96px;
    overflow: hidden;
    visibility: hidden;
}

.c-pill-row.is-clamped .c-pill-row__items {
    visibility: visible;
}

.c-pill-row.is-clamped .c-pill-row__items,
.c-filter-panel.is-expanded .c-pill-row__items {
    max-height: none;
    overflow: visible;
}

.c-pill-row__items > .is-overflow {
    display: none;
}

/* Explicit inline-flex on expand — `display: revert` would revert <a>/<label> to inline and break the pill flex layout. */
.c-filter-panel.is-expanded .c-pill-row__items > .c-pill.is-overflow,
.c-filter-panel.is-expanded .c-pill-row__items > .c-pill-wrap.is-overflow {
    display: inline-flex;
}

/* Reserve show-all's layout slot up-front (avoids swap on first paint). JS reveals it via .has-overflow. */
.c-pill.c-pill-row__expand {
    visibility: hidden;
    pointer-events: none;
}

.c-pill-row.has-overflow .c-pill.c-pill-row__expand {
    visibility: visible;
    pointer-events: auto;
}

/* No-overflow case: collapse show-all's slot so the row has no phantom trailing gap. */
.c-pill-row.is-clamped:not(.has-overflow) .c-pill.c-pill-row__expand {
    display: none;
}

/* Dropdown wrap — × clear is a sibling, not child (HTML spec forbids interactive content inside <button>). JS marker for closeAllPillPanels()/positionPillPanel(); visuals come from .c-pill. */
.c-pill-wrap {
}

/* ==========================================================================
   Shared pill base
   ========================================================================== */

.c-pill {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid var(--border-primary, #e5e5e5);
    border-radius: 999px;
    color: var(--text-primary, #343332);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    /* 40px desktop (above WCAG 2.2 AA 24px, under AAA 44px); mobile drawer restores 44px. */
    min-height: 40px;
    /* Strip native button chrome for cross-element parity (<a>/<label>/<button>/<div>). */
    font-family: inherit;
    margin: 0;
    appearance: none;
}

/* Direct-element variants carry padding here; dropdown wrap pushes padding into trigger/remove so siblings own the click area. */
.c-pill:not(.c-pill--dropdown) {
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
}

.c-pill--dropdown {
    padding: 0;
}

.c-pill__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    margin: 0;
    line-height: 1.2;
    appearance: none;
    min-height: 40px;
}

.c-pill__trigger:focus {
    outline: none; /* focus ring lives on .c-pill via :has(:focus-visible) below */
}

@media (hover: hover) and (pointer: fine) {
    .c-pill:hover {
        background: rgba(243, 146, 0, 0.08);
        border-color: rgba(243, 146, 0, 0.4);
        color: var(--text-primary, #343332);
        text-decoration: none;
    }
}

/* #C47500 not brand #F39200 — brand orange is ~2.4:1 on white, fails WCAG 2.4.11 (3:1). Rule split: mixing :focus-visible with :has() in one selector list drops the whole rule on browsers without :has(). */
.c-pill:focus-visible {
    outline: 2px solid #C47500;
    outline-offset: 2px;
}

.c-pill--toggle:has(input[type="checkbox"]:focus-visible),
.c-pill--dropdown:has(.c-pill__trigger:focus-visible) {
    outline: 2px solid #C47500;
    outline-offset: 2px;
}

/* Inset box-shadow doubles the 1px border to 2px without changing box metrics (no neighbour shift on toggle). */
.c-pill.is-active {
    background: #fff;
    border-color: #F39200;
    color: var(--text-primary, #343332);
    box-shadow: inset 0 0 0 1px #F39200;
}

@media (hover: hover) and (pointer: fine) {
    .c-pill.is-active:hover {
        background: #FFF5E6;
        border-color: #DC8200;
        box-shadow: inset 0 0 0 1px #DC8200;
    }
}

/* :has() drives the active visual without JS. */
.c-pill--toggle input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.c-pill--toggle:has(input[type="checkbox"]:checked) {
    background: #fff;
    border-color: #F39200;
    color: var(--text-primary, #343332);
    box-shadow: inset 0 0 0 1px #F39200;
}

@media (hover: hover) and (pointer: fine) {
    .c-pill--toggle:has(input[type="checkbox"]:checked):hover {
        background: #FFF5E6;
        border-color: #DC8200;
        box-shadow: inset 0 0 0 1px #DC8200;
    }
}

.c-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 6px;
    background: #e6e6e6;
    color: var(--text-primary, #343332);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.c-pill.is-active .c-pill__count {
    background: rgba(243, 146, 0, 0.18);
    color: #8B4500;
}

/* When active, prefix shrinks + dims so the chosen value reads first. */
.c-pill__label-prefix {
    margin-right: 4px;
}

.c-pill.is-active .c-pill__label-prefix {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #767676);
}

.c-pill__label-value {
    font-size: 14px;
    font-weight: 600;
}

.c-pill__chevron {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
}

/* Never shrinks during label truncation. */
.c-pill__icon {
    flex: 0 0 auto;
}

/* aria-expanded sits on .c-pill__trigger (dropdown) and on .c-pill (show-all button); cover both. */
.c-pill[aria-expanded="true"] .c-pill__chevron,
.c-pill__trigger[aria-expanded="true"] .c-pill__chevron {
    transform: rotate(180deg);
}

/* × clear — hover-only on desktop, hidden on touch; dropdown variant overrides to always-visible below. */
.c-pill__remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F39200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

@media (hover: hover) {
    .c-pill:hover .c-pill__remove,
    .c-pill__remove:focus-visible {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (hover: none) {
    .c-pill__remove {
        display: none;
    }
}

/* Dropdown: tapping the trigger opens the panel, so × is the only clear affordance. */
.c-pill--dropdown .c-pill__remove {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: none) {
    .c-pill--dropdown .c-pill__remove {
        display: inline-flex;
    }
}

@media (hover: hover) and (pointer: fine) {
    a.c-pill__remove:hover {
        background: #DC8200;
        color: #fff;
    }
}

a.c-pill__remove:focus-visible {
    outline: 2px solid #C47500;
    outline-offset: 2px;
}

/* Pulled into the rounded edge so the pill height is constant w/ or w/o thumb. */
.c-pill__thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
    flex: 0 0 auto;
    margin-left: -8px;
}

/* ==========================================================================
   Dropdown panel
   ========================================================================== */

/* position:fixed escapes clipping ancestors (row clamp, mobile drawer overflow). JS writes top/left on open. */
.c-pill-panel {
    position: fixed;
    z-index: 1100;
    min-width: 240px;
    /* Clamp width to viewport — long brand names would push off-screen on phones. */
    max-width: min(360px, calc(100vw - 24px));
    max-height: 360px;
    overflow-y: auto;
    background: #fff;
    color: var(--text-primary, #343332);
    border: 1px solid var(--border-primary, #e5e5e5);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    padding: 8px;
}

.c-pill-panel[hidden] {
    display: none;
}

.c-pill-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.c-pill-panel__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-primary, #343332);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    /* WCAG 2.5.5 — 44x44px minimum touch target. */
    min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
    .c-pill-panel__option:hover {
        background: rgba(243, 146, 0, 0.08);
        color: var(--text-primary, #343332);
        text-decoration: none;
    }
}

.c-pill-panel__option.is-active {
    background: rgba(243, 146, 0, 0.18);
    color: var(--text-primary, #343332);
    font-weight: 600;
}

.c-pill-panel__option-text {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-pill-panel__option-meta {
    color: #898989;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.c-pill-panel__option input[type="radio"] {
    accent-color: #F39200;
    flex: 0 0 auto;
    margin: 0;
}

/* ==========================================================================
   Mobile trigger button + drawer
   ========================================================================== */

.c-filter-controls,
.c-filter-panel-trigger {
    display: none;
}

@media (max-width: 768px) {
    .c-filter-panel {
        display: none;
    }

    .c-filter-controls {
        display: flex;
        align-items: stretch;
        gap: 0;
        flex-wrap: nowrap;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 199;
        margin: 0;
        padding: 0 0 env(safe-area-inset-bottom);
        background: #fff;
        border-top: 1px solid var(--border-primary, #e5e5e5);
    }

    /* Room for the floating bar at the bottom. */
    .categorySectionWrapp,
    .searchWrappSectionMain {
        padding-bottom: 80px;
    }

    body.is-filter-overlay-open .c-filter-controls {
        display: none;
    }

    /* Hoist .c-pill past the snippet wrapper so it becomes the flex child. */
    .c-filter-controls > [id^="snippet-"] {
        display: contents;
    }

    /* Hard 50/50 — `flex: 1 1 0` was unreliable through the `display: contents` snippet wrapper. */
    .c-filter-controls .c-filter-panel-trigger,
    .c-filter-controls .c-pill[data-pill-type="sort"] {
        display: flex;
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 0;
        min-height: 56px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin: 0;
        justify-content: center;
    }

    .c-filter-controls .c-filter-panel-trigger {
        padding: 8px 16px;
    }

    .c-filter-controls .c-pill[data-pill-type="sort"] {
        border-left: 1px solid var(--border-primary, #e5e5e5);
        padding: 0;
    }

    /* width:100% so the whole 50% segment is clickable; min-width:0 at every flex level for ellipsis truncation. */
    .c-filter-controls .c-pill[data-pill-type="sort"] .c-pill__trigger {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        min-height: 56px;
        padding: 8px 16px;
        justify-content: center;
    }

    .c-filter-controls .c-pill[data-pill-type="sort"] .c-pill__label {
        min-width: 0;
        overflow: hidden;
    }

    .c-filter-controls .c-pill[data-pill-type="sort"] .c-pill__label-prefix {
        display: none;
    }

    .c-filter-controls .c-pill[data-pill-type="sort"] .c-pill__label-value {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .c-filter-controls .c-filter-panel-trigger .is-active {
        color: #F39200;
    }

    /* Orange text above is the active signal here; suppress the pill-style border/shadow. */
    .c-filter-controls .c-filter-panel-trigger:has(span.is-active) {
        border: none;
        box-shadow: none;
    }

    .c-filter-panel-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        color: var(--text-primary, #343332);
        border: 1px solid var(--border-primary, #e5e5e5);
        border-radius: 999px;
        padding: 9px 16px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        cursor: pointer;
        min-height: 44px;
    }

    .c-filter-panel-trigger:hover {
        background: #FAFAFA;
        border-color: #D5D5D5;
    }

    .c-filter-panel-trigger:focus-visible {
        outline: 2px solid #C47500;
        outline-offset: 2px;
    }

    .c-filter-panel-trigger:has(span.is-active) {
        border-color: #F39200;
        box-shadow: inset 0 0 0 1px #F39200;
    }

    .c-filter-panel-trigger:has(span.is-active):hover {
        background: #FFF5E6;
        border-color: #DC8200;
        box-shadow: inset 0 0 0 1px #DC8200;
    }

    /* iOS Safari momentum scroll ignores overflow:hidden alone — JS pins body via top + position:fixed. */
    body.is-filter-overlay-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    body.is-filter-overlay-open .c-filter-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 1000;
        margin: 0;
        background: #fff;
        max-height: 100vh;
    }

    body.is-filter-overlay-open .c-filter-panel__mobile-header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
        background: #fff;
        border-bottom: 1px solid var(--border-primary, #e5e5e5);
        font-size: 16px;
        font-weight: 700;
    }

    body.is-filter-overlay-open .c-filter-panel__close-mobile {
        display: inline-flex;
        background: transparent;
        border: 0;
        color: inherit;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        align-items: center;
        justify-content: center;
        line-height: 0;
        /* WCAG 2.5.5: 44×44 minimum touch target. */
        min-width: 44px;
        min-height: 44px;
    }

    /* Drawer is touch-first → restore WCAG 2.5.5 44px (desktop pills are 40px). */
    body.is-filter-overlay-open .c-pill {
        min-height: 44px;
    }
    body.is-filter-overlay-open .c-pill:not(.c-pill--dropdown) {
        padding: 9px 16px;
    }
    body.is-filter-overlay-open .c-pill__trigger {
        min-height: 44px;
        padding: 9px 16px;
    }

    body.is-filter-overlay-open .c-filter-panel__close-mobile:focus-visible {
        outline: 2px solid #C47500;
        outline-offset: 2px;
    }

    /* Grows to pin the footer at the viewport bottom; min-height:0 lets the child scroll. */
    body.is-filter-overlay-open .c-filter-panel__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 0;
    }

    body.is-filter-overlay-open .c-pill-row {
        flex: 0 0 auto;
        overflow-y: visible;
        padding: 0;
        align-content: flex-start;
    }

    /* Drawer: pills wrap freely, no row clamp, no Show-all. */
    body.is-filter-overlay-open .c-pill-row__items {
        max-height: none;
        overflow: visible;
    }

    body.is-filter-overlay-open .c-pill-row__expand {
        display: none !important;
    }

    body.is-filter-overlay-open .c-filter-panel__footer-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border-primary, #e5e5e5);
        background: #fff;
        position: sticky;
        bottom: 0;
        z-index: 2;
    }

    .c-filter-panel__footer-mobile {
        display: none;
    }

    .c-filter-panel__footer-cancel {
        color: var(--text-primary, #343332);
        text-decoration: underline;
        font-size: 14px;
        flex: 0 0 auto;
        padding: 8px 4px;
    }

    /* Hoist clear button to the footer flex; empty wrapper contributes no flex item. */
    .c-filter-panel__footer-clear-wrap {
        display: contents;
    }

    .c-filter-panel__footer-clear {
        background: #f5f5f5;
        color: var(--text-primary, #343332);
        border: 0;
        border-radius: 8px;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        min-height: 44px;
        width: 100%;
    }

    .c-filter-panel__footer-clear:hover {
        background: #ebebeb;
    }

    .c-filter-panel__footer-clear:focus-visible {
        outline: 2px solid #C47500;
        outline-offset: 2px;
    }

    .c-filter-panel__footer-apply {
        background: #F39200;
        color: #fff;
        border: 0;
        border-radius: 8px;
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        flex: 1 1 auto;
        min-height: 44px;
    }

    .c-filter-panel__footer-apply:hover {
        background: #DC8200;
    }

    .c-filter-panel__footer-apply:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
        box-shadow: 0 0 0 4px #F39200;
    }

    /* Drawer: anchor dropdown panel to viewport, not clipping ancestor. */
    body.is-filter-overlay-open .c-pill-panel {
        max-width: calc(100vw - 32px);
    }
}

.c-filter-panel__mobile-header,
.c-filter-panel__close-mobile,
.c-filter-panel__footer-mobile {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Subkategória riadok — oddelená sekcia pod hlavnými filtrami
   ========================================================================== */

.c-pill-subcat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.c-pill-subcat-row__label {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #767676);
}

.c-pill-subcat-row__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-primary, #e5e5e5);
}

/* Subkat pilulky — biele pozadie, odlíšené od filter piluliek len rámčekom */
.c-pill-subcat-row .c-pill--link {
    background: #fff;
    border-color: #d5d5d5;
}

@media (hover: hover) and (pointer: fine) {
    .c-pill-subcat-row .c-pill--link:hover {
        background: rgba(243, 146, 0, 0.08);
        border-color: rgba(243, 146, 0, 0.4);
    }
}

.c-pill-subcat-row .c-pill--link.is-active {
    background: #fff;
    border-color: #F39200;
    box-shadow: inset 0 0 0 1px #F39200;
}

/* Mobile overlay — subkat riadok viditeľný v draweri */
@media (max-width: 768px) {
    .c-pill-subcat-row {
        padding: 12px 16px 0;
        margin-top: 0;
    }
}

body.is-filter-overlay-open .c-pill-subcat-row {
    padding: 12px 0 24px;
    margin-top: 0;
}

/* ==========================================================================
   MOBILE — fixná lišta Filtre/Triediť NAD spodnou navigáciou (≤767px)
   --------------------------------------------------------------------------
   Best practice: na mobile sú dve fixné spodné lišty — globálny bottom nav
   (bottom-nav.css, z-index 400, výška --bottom-nav-h, bottom:0) a filter lišta
   .c-filter-controls. Aby ich bottom nav neprekrýval, filter lištu naskladáme
   PRIAMO NAD neho. Drawer (body.is-filter-overlay-open .c-filter-panel,
   z-index 1000) je fullscreen, prekryje bottom nav sám → netreba riešiť.

   Pozn. breakpointy: bottom nav sa zobrazuje len ≤767px, .c-filter-controls
   ≤768px. Pri 768px (napr. iPad portrait) bottom nav NIE JE → základné pravidlo
   (@media max-width:768px) ponechá lištu na bottom:0. Tu (≤767px) ju posunieme.
   ========================================================================== */
@media (max-width: 767px) {
    .c-filter-controls {
        bottom: calc(var(--bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px));
        padding-bottom: 0;
    }
}