/* NGB product filters — left side drawer.
   Follows the pattern already in use on maruska: one trigger at every
   breakpoint, a full-height panel sliding in from the left, dimmed page behind.
   Palette: navy #002145, gold #ECB62E, Montserrat. */

.ngb-filters {
    --f-navy: #002145;
    --f-gold: #ECB62E;
    --f-line: #DDE4EE;
    --f-muted: #63738C;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    margin: 0 0 1.25rem;
}

/* ---------- trigger ---------- */
.ngb-filters__open {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--f-navy) !important;
    background: #fff !important;
    color: var(--f-navy) !important;
    box-shadow: none !important;
    font: 600 14px/1 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
/* Navy only while hovered or while the drawer is open. :focus is deliberately
   excluded: focus returns to this button on close, so including it left the
   button stuck navy afterwards. */
.ngb-filters__open:hover,
.ngb-filters__open[aria-expanded="true"] {
    background: var(--f-navy) !important;
    border-color: var(--f-navy) !important;
    color: #fff !important;
    box-shadow: none !important;
}
.ngb-filters__open:focus:not(:focus-visible) { outline: none; }
.ngb-filters__open svg { width: 15px; height: 15px; fill: currentColor; }
.ngb-filters__open:focus-visible { outline: 2px solid var(--f-gold); outline-offset: 2px; }

.ngb-filters__badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    background: var(--f-gold);
    color: var(--f-navy);
    font-size: 11px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---------- overlay ---------- */
.ngb-filters__overlay {
    position: fixed;
    inset: 0;
    z-index: 100048;
    background: rgba(0, 33, 69, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.ngb-filters.is-open .ngb-filters__overlay { opacity: 1; visibility: visible; }

/* ---------- the drawer ---------- */
.ngb-filters__panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100049;
    display: flex;
    flex-direction: column;
    width: 30vw;
    min-width: 340px;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: 4px 0 28px rgba(0, 33, 69, 0.18);
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    overscroll-behavior: contain;
}
.ngb-filters.is-open .ngb-filters__panel { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .ngb-filters__panel, .ngb-filters__overlay { transition: none; }
}

.ngb-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid var(--f-line);
    color: var(--f-navy);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
}
.ngb-filters__close {
    border: 0;
    background: none;
    color: var(--f-muted);
    font-size: 30px;
    line-height: 1;
    padding: 0 0.15rem;
    cursor: pointer;
}
.ngb-filters__close:hover { color: var(--f-navy); }

.ngb-filters__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.25rem 1.4rem 0.6rem;
}

/* ---------- groups + chips ---------- */
.ngb-filters__group { border: 0; margin: 0 0 1.35rem; padding: 0; }
.ngb-filters__group legend {
    padding: 0 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--f-muted);
}
.ngb-filters__chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.ngb-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--f-line);
    background: #fff;
    color: var(--f-navy);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
    user-select: none;
}
.ngb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ngb-chip b {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--f-muted);
    font-variant-numeric: tabular-nums;
}
.ngb-chip:hover { border-color: #9FB0C7; }
.ngb-chip.is-on { border-color: var(--f-navy); background: var(--f-navy); color: #fff; }
.ngb-chip.is-on b { color: var(--f-gold); }
/* focus-visible, not focus-within: a programmatic focus must not look chosen */
.ngb-chip:has(input:focus-visible) { outline: 2px solid var(--f-gold); outline-offset: 2px; }

/* x appears once chosen; clicking the chip (the x included) clears it */
.ngb-chip__x {
    display: none;
    font-style: normal;
    font-size: 1.05rem;
    line-height: 0.7;
    opacity: 0.75;
}
.ngb-chip.is-on .ngb-chip__x { display: inline; }
.ngb-chip.is-on:hover .ngb-chip__x { opacity: 1; }

/* ---------- footer ---------- */
.ngb-filters__foot {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 0 0 auto;
    padding: 1rem 1.4rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--f-line);
}
.ngb-filters__clear {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--f-line);
    background: #fff;
    color: var(--f-navy);
    font: 600 14px/1 'Montserrat', sans-serif;
    white-space: nowrap;
    cursor: pointer;
}
.ngb-filters__clear:hover:not(:disabled) { border-color: var(--f-navy); background: #F4F6F9; }
.ngb-filters__clear:disabled { opacity: 0.4; cursor: default; }
.ngb-filters__apply {
    flex: 1 1 auto;
    padding: 0.85rem 1rem;
    border: 0;
    background: var(--f-navy);
    color: #fff;
    font: 600 15px/1 'Montserrat', sans-serif;
    cursor: pointer;
}
.ngb-filters__apply:hover { background: #013467; }

body.ngb-filters-open { overflow: hidden; }

/* ---------- mobile: full-width drawer ---------- */
@media (max-width: 767px) {
    .ngb-filters__panel { width: 100vw; min-width: 0; max-width: none; }
    /* sticky: the trigger floats at the bottom of the screen, so filtering never
       means scrolling back up through a long list */
    .ngb-filters__open {
        position: fixed;
        left: 50%;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        z-index: 60;
        width: auto;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        background: var(--f-navy) !important;
        border-color: var(--f-navy) !important;
        color: #fff !important;
        box-shadow: 0 8px 22px rgba(0, 33, 69, .3) !important;
    }
    .ngb-filters__open svg { fill: currentColor; }
    body.ngb-filters-open .ngb-filters__open { visibility: hidden; }
    body:has(.ngb-filters) { padding-bottom: 4.75rem; }
    .ngb-chip { padding: 0.58rem 0.85rem; font-size: 0.9rem; }
}

/* ---------- bar: trigger, result count, active filters ---------- */
.ngb-filters__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}
.ngb-filters__count {
    font: 500 0.9rem/1.2 'Montserrat', sans-serif;
    color: var(--f-muted);
    font-variant-numeric: tabular-nums;
}
.ngb-filters__active {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ngb-filters__active > li { margin: 0; }
.ngb-active {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.6rem 0.4rem 0.8rem;
    background: var(--f-navy);
    border: 1px solid var(--f-navy);
    color: #fff;
    font: 600 0.82rem/1.2 'Montserrat', sans-serif;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ngb-active i { font-style: normal; font-size: 1.05rem; line-height: 1; opacity: .8; }
.ngb-active:hover,
.ngb-active:focus-visible { background: var(--f-gold); border-color: var(--f-gold); color: var(--f-navy); }
.ngb-filters__reset {
    font: 600 0.84rem/1.2 'Montserrat', sans-serif;
    color: var(--f-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- [ngb_subcats] pills ---------- */
.ngb-subcats {
    width: 100%;
    margin: 0 0 1.25rem;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}
.ngb-subcats__list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ngb-subcats__list > li { margin: 0; }
.ngb-subcats__pill {
    display: inline-block;
    padding: 0.55rem 1rem;
    background: #fff;
    border: 1px solid #C9D4E2;
    color: #002145;
    font: 500 0.88rem/1.2 'Montserrat', sans-serif;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.ngb-subcats__pill:hover,
.ngb-subcats__pill:focus-visible { border-color: #002145; }
.ngb-subcats__pill.is-active { background: #002145; border-color: #002145; color: #fff; font-weight: 600; }

/* ---------- [ngb_archive_help] ---------- */
.ngb-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    width: 100%;
    margin: 3rem 0 1rem;
    padding: 2.25rem clamp(1.25rem, 4vw, 3rem);
    background: #002145;
    color: #fff;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}
.ngb-help__title {
    margin: 0;
    font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}
.ngb-help__text {
    margin: 0.5rem 0 0;
    max-width: 52ch;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .85);
}
.ngb-help__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ngb-help__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.5rem;
    border: 2px solid transparent;
    font: 700 0.85rem/1 'Montserrat', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.ngb-help__btn svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.ngb-help__btn--primary { background: #ECB62E; border-color: #ECB62E; color: #002145; }
.ngb-help__btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.ngb-help__btn:hover,
.ngb-help__btn:focus-visible { background: #fff; border-color: #fff; color: #002145; }

/* ---------- phones: sideways pills, 2-column cards ---------- */
@media (max-width: 767px) {
    .ngb-subcats__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -3vw;
        padding: 0 3vw 0.25rem;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
                mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .ngb-subcats__list::-webkit-scrollbar { display: none; }
    .ngb-subcats__list > li { flex: 0 0 auto; scroll-snap-align: start; }

    .ngb-help { margin-top: 2rem; }
    .ngb-help__actions,
    .ngb-help__btn { width: 100%; justify-content: center; }

}

/* phones: align the listing with the header — the header keeps the logo 5% from
   the left and the same 5% on the right, so the product grid, count and
   help block use the same edges instead of running edge to edge */
@media (max-width: 767px) {
    .elementor-6328 .elementor-element-e9adfa0,
    .elementor-6905 .elementor-element-07cee94 {
        padding-left: 5vw !important;
        padding-right: 5vw !important;
    }
}
