/*  VSG Custom – dock sklepu 1.16.5 | wspólny CSS telefon + tablet <= 1024 px  */

.vsg-mobile-shop-ui {
    display: none;
}

@media (max-width: 1024px) {

    /* Telefon i tablet nie rezerwują już miejsca na desktopowy pionowy rail kategorii. */
    body.vsg-mobile-shop-dock-enabled.vsg-categories-nav-rail-context-shop,
    body.vsg-mobile-shop-dock-enabled.vsg-categories-nav-rail-context-product {
        --vsg-shop-category-rail-width: 0px !important;
        padding-left: 0 !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program--shop,
    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program--product {
        display: none !important;
    }

    /* Na telefonie i tablecie akcje przeniesione do dolnego docka znikają z headera. */
    body.vsg-mobile-shop-dock-enabled #vsg-site-header .hb-search-zone,
    body.vsg-mobile-shop-dock-enabled #vsg-site-header .hb-account,
    body.vsg-mobile-shop-dock-enabled #vsg-site-header .hb-cart,
    body.vsg-mobile-shop-dock-enabled #vsg-site-header .hb-actions > .hb-divider:not(.hb-divider--language) {
        display: none !important;
    }

    body.vsg-mobile-shop-dock-enabled #vsg-site-header .hb-actions {
        margin-left: auto;
    }

    /* Filtry nie są już osobną kolumną sklepu. JS przenosi ten sam panel do popupu. */
    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete__sidebar {
        display: none !important;
    }

    .vsg-mobile-shop-ui,
    .vsg-mobile-shop-ui *,
    .vsg-mobile-shop-ui *::before,
    .vsg-mobile-shop-ui *::after {
        box-sizing: border-box;
    }

    .vsg-mobile-shop-ui {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        pointer-events: none;
        font-family: var(--vsg-font-family, "Montserrat", Arial, sans-serif);
        --vsg-mobile-keyboard-inset: 0px;
    }

    .vsg-mobile-shop-ui.is-open {
        pointer-events: auto;
    }

    .vsg-mobile-shop-ui.is-open .vsg-mobile-shop-ui__backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    /* Dolna baza – kapsuła + centralny okrąg kategorii. */

    .vsg-mobile-shop-dock__action:hover,
    .vsg-mobile-shop-dock__action:focus-visible,
    .vsg-mobile-shop-dock__action.is-active {
        background: rgba(255,255,255,.10) !important;
        color: #fff !important;
    }

    .vsg-mobile-shop-dock__action:active {
        transform: scale(.95);
    }

    .vsg-mobile-shop-dock__icon svg,
    .vsg-mobile-tile__icon svg {
        display: block;
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .vsg-mobile-shop-dock__label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        color: currentColor;
        font-size: 9px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: .01em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vsg-mobile-shop-dock__cart-badge.is-empty {
        display: none;
    }

    /* Popupy są osadzone tuż nad strefą kciuka. */
    .vsg-mobile-popup {
        position: absolute;
        right: 10px;
        bottom: calc(92px + var(--vsg-mobile-dock-safe-bottom));
        z-index: 3;
        display: flex;
        flex-direction: column;
        width: min(360px, calc(100vw - 28px));
        max-height: min(68dvh, 620px);
        overflow: hidden;
        border: 1px solid rgba(7,26,61,.12);
        border-radius: 22px;
        background: #fff;
        color: var(--vsg-mobile-dock-text);
        box-shadow: 0 20px 46px rgba(3,13,32,.30);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 16px, 0) scale(.98);
        transform-origin: right bottom;
        transition: opacity .18s ease, transform .2s ease, visibility 0s linear .2s;
    }

    .vsg-mobile-popup.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scale(1);
        transition-delay: 0s;
    }

    .vsg-mobile-popup__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 64px;
        padding: 12px 12px 12px 16px;
        border-bottom: 1px solid #e7edf4;
        background: #fff;
    }

    .vsg-mobile-popup__head > div {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .vsg-mobile-popup__head strong {
        overflow: hidden;
        color: var(--vsg-mobile-dock-navy);
        font-size: 17px;
        font-weight: 850;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vsg-mobile-popup__eyebrow {
        color: var(--vsg-mobile-dock-muted);
        font-size: 9px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: .10em;
        text-transform: uppercase;
    }

    .vsg-mobile-popup__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        min-width: 38px;
        height: 38px;
        margin: 0;
        padding: 0 0 2px;
        border: 1px solid #dbe4ee !important;
        border-radius: 50% !important;
        background: #f7f9fc !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: none !important;
        font: 400 25px/1 Arial, sans-serif;
        cursor: pointer;
    }

    .vsg-mobile-popup__body,
    .vsg-mobile-category-stage,
    .vsg-mobile-filter-stage,
    .vsg-mobile-account-list {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        scrollbar-width: thin;
    }

    .vsg-mobile-category-stage,
    .vsg-mobile-filter-stage,
    .vsg-mobile-account-list {
        padding: 10px;
    }

    .vsg-mobile-tile-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .vsg-mobile-tile {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 18px;
        align-items: center;
        gap: 11px;
        width: 100%;
        min-height: 58px;
        margin: 0;
        padding: 7px 10px 7px 8px;
        border: 1px solid #e2e9f1 !important;
        border-radius: 15px !important;
        background: #fff !important;
        color: var(--vsg-mobile-dock-text) !important;
        box-shadow: 0 3px 10px rgba(7,26,61,.045) !important;
        text-align: left;
        text-decoration: none !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: border-color .14s ease, background-color .14s ease, transform .14s ease, box-shadow .14s ease;
    }

    .vsg-mobile-tile:active {
        transform: scale(.985);
    }

    .vsg-mobile-tile__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        overflow: hidden;
        border-radius: 13px;
        background: var(--vsg-mobile-dock-navy);
        color: #fff;
    }

    .vsg-mobile-tile__icon > .vsg-categories-nav-icon,
    .vsg-mobile-tile__icon > span,
    .vsg-mobile-tile__icon > img,
    .vsg-mobile-tile__icon .vsg-categories-nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        max-width: 24px;
        max-height: 24px;
        margin: 0;
    }

    .vsg-mobile-tile__icon img,
    .vsg-mobile-tile__icon .vsg-term-icon,
    .vsg-mobile-tile__icon .vsg-category-icon,
    .vsg-mobile-tile__icon svg {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

    .vsg-mobile-tile__label {
        min-width: 0;
        color: inherit;
        font-size: 13px;
        font-weight: 750;
        line-height: 1.25;
    }

    .vsg-mobile-tile__meta {
        display: block;
        margin-top: 3px;
        color: var(--vsg-mobile-dock-muted);
        font-size: 10px;
        font-weight: 600;
    }

    .vsg-mobile-tile__arrow {
        justify-self: end;
        color: #8796aa;
        font: 400 25px/1 Arial, sans-serif;
    }

    .vsg-mobile-stage-back {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 42px;
        margin: 0 0 9px;
        padding: 0 10px;
        border: 0 !important;
        border-radius: 12px !important;
        background: #f1f5fa !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: none !important;
        font: 750 11px/1.2 var(--vsg-font-family, "Montserrat", Arial, sans-serif);
        cursor: pointer;
    }

    /* Wyszukiwarka w popupie – ten sam endpoint i JS co w nagłówku. */
    .vsg-mobile-search-host {
        padding: 12px;
        overflow: visible;
    }

    .vsg-mobile-search-host .hb-search {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .vsg-mobile-search-host .hb-search form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 7px;
        width: 100%;
    }

    .vsg-mobile-search-host .hb-search__field {
        min-width: 0;
    }

    .vsg-mobile-search-host .hb-input {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        border-radius: 14px !important;
    }

    .vsg-mobile-search-host .hb-search form > button[type="submit"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        min-width: 48px;
        height: 48px;
        padding: 0 !important;
        border-radius: 14px !important;
        background: var(--vsg-mobile-dock-orange) !important;
    }

    .vsg-mobile-search-host .hb-search__submit-label {
        display: none;
    }

    .vsg-mobile-search-host .hb-search__submit-icon,
    .vsg-mobile-search-host .hb-search__submit-icon svg {
        display: block;
        width: 21px;
        height: 21px;
    }

    .vsg-mobile-search-host .hb-search-results {
        position: static !important;
        width: 100% !important;
        max-height: min(48dvh, 430px);
        margin-top: 8px;
        overflow-y: auto;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    /* Filtry: pierwszy ekran to kafle grup, drugi – tylko wybrana grupa. */

    .vsg-mobile-filter-stage--detail {
        padding-bottom: 84px;
        background: transparent !important;
    }

    /* Nie nadpisuj natywnego [hidden]: ekran szczegółu ma istnieć dopiero po wyborze grupy. */
    .vsg-mobile-filter-stage--detail:not([hidden]) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .vsg-mobile-filter-stage--detail[hidden],
    .vsg-mobile-filter-actions[hidden] {
        display: none !important;
    }

    .vsg-mobile-filter-host {
        width: 100%;
        min-width: 0;
        overflow: hidden;
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(3,13,31,.12);
    }

    .vsg-mobile-filter-host > .vsg-filter-panel-wrap-v2 {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .vsg-mobile-filter-host .vsg-filter-panel-v2 {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .vsg-mobile-filter-host .vsg-filter-panel-head-v2,
    .vsg-mobile-filter-host .vsg-filter-clear-v2--bottom {
        display: none !important;
    }

    .vsg-mobile-filter-host[data-mobile-filter-group] .vsg-filter-box-v2,
    .vsg-mobile-filter-host[data-mobile-filter-group] .vsg-filter-attrs-area-v2 {
        display: none !important;
    }

    .vsg-mobile-filter-host[data-mobile-filter-group="brand"] .vsg-filter-box-v2[data-vsg-filter-box-v2="brand"],
    .vsg-mobile-filter-host[data-mobile-filter-group="price"] .vsg-filter-box-v2[data-vsg-filter-box-v2="price"],
    .vsg-mobile-filter-host[data-mobile-filter-group="stock"] .vsg-filter-box-v2[data-vsg-filter-box-v2="stock"],
    .vsg-mobile-filter-host[data-mobile-filter-group="flags"] .vsg-filter-box-v2[data-vsg-filter-box-v2="flags"] {
        display: block !important;
    }

    .vsg-mobile-filter-host[data-mobile-filter-group^="attr-"] .vsg-filter-attrs-area-v2 {
        display: block !important;
    }

    .vsg-mobile-filter-host[data-mobile-filter-group^="attr-"] .vsg-filter-attrs-area-v2 .vsg-filter-box-v2 {
        display: none !important;
    }

    .vsg-mobile-filter-host[data-mobile-filter-group="attr-pa_rozmiar"] .vsg-filter-box-v2[data-vsg-filter-box-v2="attr-pa_rozmiar"] {
        display: block !important;
    }

    /* Pozostałe dynamiczne atrybuty są odsłaniane przez klasę ustawianą JS. */
    .vsg-mobile-filter-host .vsg-filter-box-v2.is-vsg-mobile-filter-selected,
    .vsg-mobile-filter-host[data-mobile-filter-group] .vsg-filter-attrs-area-v2 .vsg-filter-box-v2.is-vsg-mobile-filter-selected {
        display: block !important;
        border-bottom: 0 !important;
    }

    .vsg-mobile-filter-host .vsg-filter-box-v2.is-vsg-mobile-filter-selected > .vsg-filter-heading-v2 {
        pointer-events: none;
    }

    .vsg-mobile-filter-host .vsg-filter-box-v2.is-vsg-mobile-filter-selected > .vsg-filter-heading-v2 .vsg-filter-heading-arrows-v2 {
        display: none !important;
    }

    .vsg-mobile-filter-host .vsg-filter-box-v2.is-vsg-mobile-filter-selected .vsg-filter-body-v2 {
        display: block !important;
    }

    .vsg-mobile-filter-actions {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 5;
        padding: 10px;
        border-top: 0;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .vsg-mobile-filter-apply:hover,
    .vsg-mobile-filter-apply:focus-visible {
        background: var(--vsg-mobile-dock-accent-hover) !important;
        outline: 0 !important;
    }

    .vsg-mobile-filter-apply:active {
        transform: scale(.99);
    }

    /* Konto: kafle wyrównane do prawej krawędzi popupu. */
    .vsg-mobile-account-list {
        align-content: start;
    }

    .vsg-mobile-tile--account {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        min-height: 54px;
        justify-self: end;
    }

    .vsg-mobile-tile--account .vsg-mobile-tile__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #f1f5fa;
        color: var(--vsg-mobile-dock-navy);
    }

    .vsg-mobile-tile--account .vsg-mobile-tile__icon svg {
        width: 20px;
        height: 20px;
    }

    body.vsg-mobile-shop-dock-enabled.vsg-mobile-popup-lock {
        overflow: hidden !important;
    }

    @media (max-width: 390px) {

        .vsg-mobile-shop-dock {
            width: calc(100vw - 12px);
            padding-inline: 5px;
        }

        .vsg-mobile-shop-dock__label {
            font-size: 8.5px;
        }

        .vsg-mobile-popup {
            right: 6px;
            width: calc(100vw - 18px);
        }

        .vsg-mobile-popup--search {
            left: 6px;
            right: auto;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .vsg-mobile-shop-ui__backdrop,
        .vsg-mobile-popup,
        .vsg-mobile-shop-dock__action,
        .vsg-mobile-tile {
            transition: none !important;
        }
    }

    /* Header po usunięciu search/cart/account nie utrzymuje desktopowej wysokości. */
    body.vsg-mobile-shop-dock-enabled #vsg-site-header .hb-topbar {
        min-height: 82px !important;
    }

    body.vsg-mobile-shop-dock-enabled #vsg-site-header .hb-wrap {
        min-width: 0;
        width: 100% !important;
        min-height: 82px !important;
        grid-template-columns: minmax(110px, 1fr) auto !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 10px 14px !important;
    }

    body.vsg-mobile-shop-dock-enabled #vsg-site-header .hb-logo__image {
        max-width: 138px !important;
        max-height: 42px !important;
    }

    body.vsg-mobile-shop-dock-enabled.vsg-custom-native-header #vsg-site-header.vsg-site-header,
    body.vsg-mobile-shop-dock-enabled.vsg-custom-native-header #vsg-site-header .hb-topbar,
    body.vsg-mobile-shop-dock-enabled.vsg-custom-native-header #vsg-site-header .hb-menu-bar {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    body.vsg-mobile-shop-dock-enabled #vsg-site-header .hb-menu-bar__inner,
    body.vsg-mobile-shop-dock-enabled #vsg-site-header .bm-wrapper,
    body.vsg-mobile-shop-dock-enabled #vsg-site-header .bm-inner {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero .vsg-shop-breadcrumbs {
        margin-bottom: 12px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__primary {
        padding-bottom: 16px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__controls {
        margin-top: 12px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__filters {
        padding-top: 10px !important;
        padding-bottom: 12px !important;
    }

    /* Mniejsza, spokojniejsza strefa kciuka. */
    body.vsg-mobile-shop-dock-enabled {
        padding-bottom: calc(92px + var(--vsg-mobile-dock-safe-bottom)) !important;
    }

    .vsg-mobile-shop-dock {
        position: fixed;
        left: 50%;
        z-index: 4;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        margin: 0;
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 999px;
        background: linear-gradient(180deg, #0b2859 0%, var(--vsg-mobile-dock-navy) 100%);
        box-shadow: 0 16px 38px rgba(3, 13, 32, .30), 0 3px 12px rgba(3, 13, 32, .22);
        transform: translate3d(-50%, 0, 0);
        -webkit-transform: translate3d(-50%, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
        pointer-events: auto;
        isolation: isolate;
        /* Przy otwartej klawiaturze JS podaje faktycznie zasłoniętą część viewportu. */
        bottom: calc(10px + var(--vsg-mobile-dock-safe-bottom) + var(--vsg-mobile-keyboard-inset, 0px));
        width: min(365px, calc(100vw - 20px));
        height: var(--vsg-mobile-dock-height);
        padding: 5px 7px 4px;
    }

    .vsg-mobile-shop-dock::before {
        content: "";
        position: absolute;
        left: 50%;
        z-index: -1;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 50%;
        background: var(--vsg-mobile-dock-navy);
        box-shadow: 0 -8px 22px rgba(3,13,32,.12);
        transform: translateX(-50%);
        top: -23px;
        width: 72px;
        height: 72px;
    }

    .vsg-mobile-shop-dock__action {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        width: 100%;
        margin: 0;
        border: 0 !important;
        border-radius: 28px !important;
        background: transparent !important;
        color: rgba(255,255,255,.88) !important;
        box-shadow: none !important;
        text-decoration: none !important;
        outline: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background-color .15s ease, color .15s ease, transform .15s ease;
        gap: 2px;
        height: 50px;
        padding: 3px 2px;
    }

    .vsg-mobile-shop-dock__action--primary:hover,
    .vsg-mobile-shop-dock__action--primary:focus-visible,
    .vsg-mobile-shop-dock__action--primary.is-active {
        background: var(--vsg-mobile-dock-accent-hover) !important;
    }

    .vsg-mobile-shop-dock__primary-ring {
        position: absolute;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 50%;
        pointer-events: none;
        inset: -6px;
    }

    .vsg-mobile-shop-dock__icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 24px;
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .vsg-mobile-shop-dock__action--primary .vsg-mobile-shop-dock__icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .vsg-mobile-shop-dock__label,
    .vsg-mobile-shop-dock__action--primary .vsg-mobile-shop-dock__label {
        font-size: 8.3px;
    }

    /* Niebieski akcent zastępuje pomarańcz tylko w nowym UI mobilnym. */
    .vsg-mobile-tile:hover,
    .vsg-mobile-tile:focus-visible {
        outline: 0;
        box-shadow: 0 5px 14px rgba(7,26,61,.08) !important;
        border-color: rgba(22,114,212,.48) !important;
        background: #f8fbff !important;
    }

    .vsg-mobile-tile.is-active {
        border-color: var(--vsg-mobile-dock-accent) !important;
        background: var(--vsg-mobile-dock-accent-soft) !important;
        box-shadow: 0 5px 16px rgba(22,114,212,.13) !important;
    }

    .vsg-mobile-search-host .hb-search form > button[type="submit"],
    .vsg-mobile-filter-apply {
        background: var(--vsg-mobile-dock-accent) !important;
    }

    .vsg-mobile-filter-apply {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 0 18px;
        border: 0 !important;
        border-radius: 14px !important;
        background: var(--vsg-mobile-dock-accent) !important;
        color: #fff !important;
        font: 850 13px/1 var(--vsg-font-family, "Montserrat", Arial, sans-serif);
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(22,114,212,.20) !important;
    }

    .vsg-mobile-stage-back > span:first-child {
        font-size: 18px;
        color: var(--vsg-mobile-dock-accent) !important;
    }

    /* Kategorie / filtry / konto: bez dużej białej ramy, nagłówka i X. */

    .vsg-mobile-popup--categories > .vsg-mobile-popup__head,
    .vsg-mobile-popup--filters > .vsg-mobile-popup__head,
    .vsg-mobile-popup--account > .vsg-mobile-popup__head {
        display: none !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-category-stage::-webkit-scrollbar,
    .vsg-mobile-popup--filters .vsg-mobile-filter-stage[data-vsg-mobile-filter-stage="groups"]::-webkit-scrollbar,
    .vsg-mobile-popup--account .vsg-mobile-account-list::-webkit-scrollbar {
        display: none;
    }

    .vsg-mobile-popup--categories .vsg-mobile-tile-list,
    .vsg-mobile-popup--filters .vsg-mobile-tile-list,
    .vsg-mobile-popup--account .vsg-mobile-tile-list {
        gap: 7px;
        justify-items: stretch;
    }

    /* Naturalny kierunek LTR: ikona po lewej, treść pośrodku, strzałka po prawej. */

    .vsg-mobile-popup--categories .vsg-mobile-tile__icon,
    .vsg-mobile-popup--filters .vsg-mobile-tile__icon,
    .vsg-mobile-popup--account .vsg-mobile-tile__icon {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        width: 38px;
        height: 38px;
    }

    .vsg-mobile-popup--categories .vsg-mobile-tile__copy,
    .vsg-mobile-popup--filters .vsg-mobile-tile__copy {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        justify-self: stretch;
        text-align: left;
    }

    .vsg-mobile-popup--account .vsg-mobile-tile__label {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        text-align: left;
    }

    .vsg-mobile-popup--categories .vsg-mobile-tile__arrow,
    .vsg-mobile-popup--filters .vsg-mobile-tile__arrow,
    .vsg-mobile-popup--account .vsg-mobile-tile__arrow {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        transform: none;
        color: #7d8da3;
        font-size: 22px;
    }

    .vsg-mobile-popup--categories .vsg-mobile-tile__label,
    .vsg-mobile-popup--filters .vsg-mobile-tile__label,
    .vsg-mobile-popup--account .vsg-mobile-tile__label {
        font-size: 12.5px;
        font-weight: 750;
        line-height: 1.2;
    }

    /* Bez opisów typu „Pokaż podkategorie”, „Wybierz opcje”. */
    .vsg-mobile-popup--categories .vsg-mobile-tile__meta,
    .vsg-mobile-popup--filters .vsg-mobile-tile__meta,
    .vsg-mobile-popup--account .vsg-mobile-tile__meta {
        display: none !important;
    }

    /* Kategorie zachowują czytelny kafelek ikony, ale z niebieskim akcentem aktywnym. */

    .vsg-mobile-popup--categories .vsg-mobile-tile.is-active .vsg-mobile-tile__icon {
        background: var(--vsg-mobile-dock-accent);
    }

    .vsg-mobile-popup--categories .vsg-mobile-tile__icon img,
    .vsg-mobile-popup--categories .vsg-mobile-tile__icon .vsg-term-icon,
    .vsg-mobile-popup--categories .vsg-mobile-tile__icon .vsg-category-icon,
    .vsg-mobile-popup--categories .vsg-mobile-tile__icon svg {
        width: 21px !important;
        height: 21px !important;
        max-width: 21px !important;
        max-height: 21px !important;
    }

    /* Filtry i konto: ciemne ikony bez osobnego tła. */
    .vsg-mobile-popup--filters .vsg-mobile-tile__icon,
    .vsg-mobile-popup--account .vsg-mobile-tile__icon,
    .vsg-mobile-popup--account .vsg-mobile-tile--account .vsg-mobile-tile__icon {
        overflow: visible;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: none !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-tile__icon > .vsg-filter-heading-icon-wrap-v2,
    .vsg-mobile-popup--filters .vsg-mobile-tile__icon .vsg-filter-heading-icon-wrap-v2 {
        width: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        height: 24px !important;
        flex-basis: 24px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: none !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-tile__icon img,
    .vsg-mobile-popup--filters .vsg-mobile-tile__icon .vsg-filter-media-icon-v2,
    .vsg-mobile-popup--filters .vsg-mobile-tile__icon svg,
    .vsg-mobile-popup--account .vsg-mobile-tile__icon svg {
        width: 21px !important;
        height: 21px !important;
        max-width: 21px !important;
        max-height: 21px !important;
        filter: none !important;
        color: var(--vsg-mobile-dock-navy) !important;
        stroke: currentColor !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active .vsg-mobile-tile__icon,
    .vsg-mobile-popup--account .vsg-mobile-tile.is-active .vsg-mobile-tile__icon {
        color: var(--vsg-mobile-dock-accent) !important;
    }

    /* Powrót jest małym elementem funkcjonalnym, a nie kolejnym nagłówkiem popupu. */
    .vsg-mobile-popup--categories .vsg-mobile-stage-back {
        width: fit-content;
        min-height: 36px;
        margin: 0 0 7px auto;
        padding: 0 10px;
        border: 1px solid rgba(7,26,61,.10) !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,.96) !important;
        box-shadow: 0 4px 12px rgba(7,26,61,.10) !important;
        font-size: 10px;
    }

    /* Drugi krok filtrów pozostaje wyraźnym oknem z opcjami i CTA Filtruj. */

    .vsg-mobile-popup--filters .vsg-mobile-filter-apply {
        min-height: 44px;
        border-radius: 4px !important;
        background: var(--vsg-mobile-dock-accent) !important;
    }

    /* Wyszukiwarka pozostaje klasycznym popupem, tylko jest ciaśniejsza. */

    .vsg-mobile-popup--search .vsg-mobile-popup__close {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    /* Overlay 1:1 z pełnoekranowym zoomem Product Window. */
    .vsg-mobile-shop-ui__backdrop {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, visibility 0s linear .18s;
        -webkit-tap-highlight-color: transparent;
        background: var(--vsg-mobile-overlay) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    /* Centralna kategoria bez dekoracyjnego garbu/ringu – prosty przycisk. */
    .vsg-mobile-shop-dock::before,
    .vsg-mobile-shop-dock__primary-ring {
        display: none !important;
        content: none !important;
    }

    /*
     * Kategorie / filtry / konto zajmują całą dostępną wysokość viewportu
     * pomiędzy safe-area u góry a strefą docka. Dolna krawędź listy kończy
     * się wyraźnie NAD centralnym przyciskiem kategorii.
     */
    .vsg-mobile-popup--categories,
    .vsg-mobile-popup--filters,
    .vsg-mobile-popup--account {
        right: 12px;
        width: min(306px, calc(100vw - 62px));
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        top: calc(var(--vsg-mobile-popup-top-gap) + env(safe-area-inset-top, 0px)) !important;
        bottom: calc(var(--vsg-mobile-popup-dock-clearance) + var(--vsg-mobile-dock-safe-bottom)) !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }


    /* WordPress admin bar na telefonie zajmuje 46 px u góry viewportu. */

    .vsg-mobile-popup--categories,
    .vsg-mobile-popup--account {
        right: 12px !important;
        width: min(306px, calc(100vw - 54px)) !important;
    }

    .vsg-mobile-popup--filters {
        max-height: min(72dvh, 620px);
        right: 12px !important;
        width: min(330px, calc(100vw - 24px)) !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-category-stage,
    .vsg-mobile-popup--filters .vsg-mobile-filter-stage[data-vsg-mobile-filter-stage="groups"],
    .vsg-mobile-popup--account .vsg-mobile-account-list {
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
        max-height: none !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-actions {
        right: 0;
        bottom: 0;
        left: 0;
        padding: 9px 10px 10px;
        border-top: 0 !important;
        background: rgba(255,255,255,.97);
        border-radius: 0 !important;
    }

    /* Kafelki mocniej odcinają się od produktu w tle, ale zostają lekkie. */

    .vsg-mobile-popup--categories .vsg-mobile-tile:hover,
    .vsg-mobile-popup--categories .vsg-mobile-tile:focus-visible,
    .vsg-mobile-popup--filters .vsg-mobile-tile:hover,
    .vsg-mobile-popup--filters .vsg-mobile-tile:focus-visible,
    .vsg-mobile-popup--account .vsg-mobile-tile:hover,
    .vsg-mobile-popup--account .vsg-mobile-tile:focus-visible {
        box-shadow:
            0 13px 28px rgba(3, 13, 31, .20),
            0 3px 7px rgba(3, 13, 31, .12) !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-tile__icon {
        background: var(--vsg-mobile-dock-navy);
        color: #fff;
        border-radius: var(--vsg-mobile-tile-radius) !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-stage-back {
        border-radius: var(--vsg-mobile-tile-radius) !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-apply {
        border-radius: 4px !important;
        background: var(--vsg-mobile-dock-accent) !important;
    }

    /* Aktywna grupa filtrów – granatowy stan jak w standardowym panelu VSG. */

    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active .vsg-mobile-tile__label,
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active .vsg-mobile-tile__arrow,
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active .vsg-mobile-tile__icon,
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active .vsg-filter-heading-icon-wrap-v2 {
        color: #fff !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active .vsg-mobile-tile__icon img,
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active .vsg-mobile-tile__icon .vsg-filter-media-icon-v2 {
        filter: brightness(0) invert(1) !important;
    }

    /* Również konkretne zaznaczone opcje w drugim kroku są ciemne. */

    /*
     * Wyszukiwarka: tylko pole na środku ekranu. Brak nagłówka, dużego
     * kontenera i X; zamknięcie nadal działa po tapnięciu w ciemne tło.
     */
    .vsg-mobile-popup--search {
        top: auto !important;
        right: auto !important;
        bottom: calc(var(--vsg-mobile-popup-dock-clearance) + var(--vsg-mobile-dock-safe-bottom) - 8px + var(--vsg-mobile-keyboard-inset, 0px)) !important;
        left: 50% !important;
        width: min(430px, calc(100vw - 28px)) !important;
        max-height: none !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: translate3d(-50%, 12px, 0) scale(.985) !important;
        transform-origin: center bottom !important;
    }

    .vsg-mobile-popup--search.is-open {
        transform: translate3d(-50%, 0, 0) scale(1) !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-popup__head {
        min-height: 56px;
        padding: 10px 10px 10px 14px;
        display: none !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host {
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search form {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 54px !important;
        gap: 0 !important;
        width: 100% !important;
        height: 54px !important;
        overflow: hidden !important;
        border: 1px solid rgba(255,255,255,.36) !important;
        border-radius: var(--vsg-mobile-tile-radius) !important;
        background: #fff !important;
        box-shadow: 0 18px 42px rgba(0, 0, 0, .30) !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search__field {
        min-width: 0 !important;
        background: #fff !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host input.hb-input,
    .vsg-mobile-popup--search .vsg-mobile-search-host input.hb-input:focus,
    .vsg-mobile-popup--search .vsg-mobile-search-host input.hb-input:not(:placeholder-shown) {
        width: 100% !important;
        height: 54px !important;
        padding: 0 42px 0 16px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: none !important;
        font-size: 14px !important;
        line-height: 54px !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host input.hb-input::placeholder {
        color: #748399 !important;
        opacity: 1 !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search form > button[type="submit"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-left: 1px solid #e4eaf1 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: none !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search form > button[type="submit"]:hover,
    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search form > button[type="submit"]:focus-visible {
        background: #f2f6fb !important;
        color: var(--vsg-mobile-dock-accent) !important;
        outline: 0 !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search__clear {
        position: absolute !important;
        top: 50% !important;
        right: 7px !important;
        z-index: 3 !important;
        display: inline-grid !important;
        place-items: center !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        margin: 0 !important;
        padding: 0 0 1px !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        color: #6c7b90 !important;
        box-shadow: none !important;
        font: 400 19px/1 Arial, sans-serif !important;
        transform: translateY(-50%) !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search__clear[hidden],
    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search.is-loading .hb-search__clear {
        display: none !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search-results {
        position: absolute !important;
        top: auto !important;
        right: 0 !important;
        bottom: calc(100% + 8px) !important;
        left: 0 !important;
        width: 100% !important;
        max-height: min(46dvh, 380px) !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch;
        border: 1px solid rgba(255,255,255,.30) !important;
        border-radius: var(--vsg-mobile-tile-radius) !important;
        background: #fff !important;
        box-shadow: 0 -14px 36px rgba(0,0,0,.24) !important;
        transform-origin: center bottom !important;
    }

    .vsg-mobile-popup--search .hb-search-group__title {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
    }

    /* Back to top: mały, prosty kwadrat w prawym górnym rogu telefonu. */


    body.admin-bar.vsg-mobile-shop-dock-enabled .vsg-footer-scroll-top,
    body.admin-bar.vsg-mobile-shop-dock-enabled #scrollTopBtn {
        top: calc(58px + env(safe-area-inset-top, 0px)) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-footer-scroll-top:hover,
    body.vsg-mobile-shop-dock-enabled .vsg-footer-scroll-top:focus-visible,
    body.vsg-mobile-shop-dock-enabled #scrollTopBtn:hover,
    body.vsg-mobile-shop-dock-enabled #scrollTopBtn:focus-visible {
        border-color: rgba(255,255,255,.40) !important;
        background: var(--vsg-mobile-dock-accent) !important;
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(3,13,31,.28) !important;
        transform: translateY(-1px) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-footer-scroll-top svg,
    body.vsg-mobile-shop-dock-enabled #scrollTopBtn .scrollTopArrow {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
    }

    body.vsg-mobile-shop-dock-enabled #scrollTopBtn {
        font-size: 0 !important;
        letter-spacing: 0 !important;
    }
    :root {
        --vsg-mobile-dock-navy: #071a3d;
        --vsg-mobile-dock-navy-2: #0b2859;
        --vsg-mobile-dock-orange: #ff6a00;
        --vsg-mobile-dock-border: #dce5f0;
        --vsg-mobile-dock-text: #10284f;
        --vsg-mobile-dock-muted: #6f7f96;
        --vsg-mobile-dock-safe-bottom: env(safe-area-inset-bottom, 0px);
        --vsg-mobile-dock-accent: #1672d4;
        --vsg-mobile-dock-accent-hover: #0f63be;
        --vsg-mobile-dock-accent-soft: #eef6ff;
        --vsg-mobile-dock-height: 62px;
        --vsg-mobile-popup-top-gap: 12px;
        --vsg-mobile-tile-radius: 4px;
        --vsg-mobile-overlay: rgba(3, 13, 31, .82);
        --vsg-mobile-popup-dock-clearance: 98px;
    }

    /* Wewnętrzne warstwy listy produktów nie dokładają własnego guttera.
       Full-bleed hero jest definiowany wyłącznie w mobile-layout.css. */
    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete__main,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete__products,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete .vsg1200-wrap,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete .vsg1200-grid {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    /*
     * 2. Popupy startują tuż nad dockiem. Nie są już rozciągnięte od góry,
     * ale długie listy mogą wykorzystać całą dostępną wysokość i przewijać się.
     */
    .vsg-mobile-popup--categories,
    .vsg-mobile-popup--filters,
    .vsg-mobile-popup--account,
    body.admin-bar .vsg-mobile-popup--categories,
    body.admin-bar .vsg-mobile-popup--filters,
    body.admin-bar .vsg-mobile-popup--account {
        top: auto !important;
        bottom: calc(var(--vsg-mobile-popup-dock-clearance) + var(--vsg-mobile-dock-safe-bottom)) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100dvh - var(--vsg-mobile-popup-dock-clearance) - 18px - env(safe-area-inset-top, 0px) - var(--vsg-mobile-dock-safe-bottom)) !important;
        align-self: end !important;
    }

    body.admin-bar .vsg-mobile-popup--categories,
    body.admin-bar .vsg-mobile-popup--filters,
    body.admin-bar .vsg-mobile-popup--account {
        top: calc(58px + env(safe-area-inset-top, 0px)) !important;
        max-height: calc(100dvh - var(--vsg-mobile-popup-dock-clearance) - 64px - env(safe-area-inset-top, 0px) - var(--vsg-mobile-dock-safe-bottom)) !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-category-stage,
    .vsg-mobile-popup--filters .vsg-mobile-filter-stage,
    .vsg-mobile-popup--account .vsg-mobile-account-list {
        padding: 0;
        background: transparent;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch;
        flex: 0 1 auto !important;
        height: auto !important;
        max-height: inherit !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-stage--detail {
        overflow-y: auto;
        border: 1px solid rgba(7,26,61,.10);
        background: #fff;
        box-shadow: 0 16px 38px rgba(3,13,32,.24);
        padding: 10px 10px 72px !important;
        border-radius: var(--vsg-mobile-tile-radius) !important;
        height: auto !important;
        max-height: inherit !important;
    }

    /*
     * 3/4. Kliknięcie kategorii otwiera drugi krok jak boczny drawer.
     * Bez nagłówka/paska „Kategorie”; zostaje tylko mały przycisk powrotu.
     */

    .vsg-mobile-popup--categories [data-vsg-mobile-category-stage="children"] .vsg-mobile-stage-back > span:first-child {
        color: var(--vsg-mobile-dock-navy) !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .vsg-mobile-popup--categories [data-vsg-mobile-category-stage="children"] .vsg-mobile-stage-back > span:last-child {
        display: none !important;
    }

    @keyframes vsg-mobile-category-drawer-in {
        from {
            opacity: 0;
            transform: translate3d(28px, 0, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    /* 3. Poprawiona ikona lupy w minimalistycznym popupie wyszukiwania. */
    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search__submit-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 22px !important;
        height: 22px !important;
        color: var(--vsg-mobile-dock-navy) !important;
        line-height: 0 !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search__submit-icon svg {
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        overflow: visible !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.9 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search__submit-icon svg circle,
    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search__submit-icon svg path {
        fill: none !important;
        stroke: currentColor !important;
    }

    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search form > button[type="submit"]::before,
    .vsg-mobile-popup--search .vsg-mobile-search-host .hb-search form > button[type="submit"]::after {
        display: none !important;
        content: none !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete__main,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete__products,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete .vsg1200-grid {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    /* Przywrócenie bazowego 2 px paddingu samego wrapa kart. */
    body.vsg-mobile-shop-dock-enabled .vsg-shop-complete .vsg1200-wrap {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: var(--vsg-space-1) !important;
        padding-left: var(--vsg-space-1) !important;
    }

    /* „Wszystkie filtry” jest osobnym, małym przyciskiem nad kartą opcji. */
    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: flex-start !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 9px !important;
        border: 0 !important;
        border-radius: 4px !important;
        background: #fff !important;
        color: var(--vsg-mobile-dock-accent) !important;
        box-shadow: 0 5px 14px rgba(3,13,31,.12) !important;
        font: 800 10px/1 var(--vsg-font-family, "Montserrat", Arial, sans-serif) !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back]:hover,
    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back]:focus-visible {
        border: 0 !important;
        background: #f5f9ff !important;
        color: var(--vsg-mobile-dock-accent-hover) !important;
        box-shadow: 0 6px 16px rgba(22,114,212,.16) !important;
        text-decoration: none !important;
        outline: 0 !important;
    }

    /* 4. Ikona centralnej kategorii dokładnie jak bm-catalog-btn: hamburger. */

    /* 5. Podkategorie są bocznym panelem jak standardowy nav-panels, bez raila. */
    .vsg-mobile-popup--categories,
    .vsg-mobile-popup--categories.is-open {
        transform: none !important;
    }

    body.admin-bar .vsg-mobile-popup--categories [data-vsg-mobile-category-stage="children"]:not([hidden]) {
        max-height: calc(100dvh - var(--vsg-mobile-popup-dock-clearance) - 64px - env(safe-area-inset-top, 0px) - var(--vsg-mobile-dock-safe-bottom)) !important;
    }

    .vsg-mobile-popup--categories [data-vsg-mobile-category-stage="children"] .vsg-mobile-stage-back {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        border: 1px solid rgba(255,255,255,.72) !important;
        border-radius: var(--vsg-mobile-tile-radius) !important;
        background: rgba(255,255,255,.97) !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: 0 8px 18px rgba(3,13,31,.17) !important;
        justify-content: center !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 3 !important;
        margin: 0 0 8px auto !important;
    }

    .vsg-mobile-subcategory-drawer,
    .vsg-mobile-subcategory-panel,
    .vsg-mobile-subcategory-panel .vsg-categories-nav-submenu {
        width: 100% !important;
        min-width: 0 !important;
    }

    .vsg-mobile-subcategory-panel {
        padding: 0 !important;
        background: #fff !important;
    }

    .vsg-mobile-subcategory-panel .vsg-categories-nav-heading {
        min-height: 44px !important;
        margin: 0 0 4px !important;
        padding: 8px 12px !important;
        border-radius: var(--vsg-mobile-tile-radius) !important;
        background: var(--vsg-color-soft-blue, #eef6ff) !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: 0 5px 14px rgba(3,13,31,.08) !important;
    }

    .vsg-mobile-subcategory-panel .vsg-categories-nav-branch {
        min-height: 46px !important;
        padding: 0 11px !important;
        border-radius: var(--vsg-mobile-tile-radius) !important;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(3,13,31,.07) !important;
    }

    .vsg-mobile-subcategory-panel .vsg-categories-nav-branch + .vsg-categories-nav-branch {
        margin-top: 4px !important;
    }

    .vsg-mobile-subcategory-panel .vsg-categories-nav-branch.is-active {
        border-color: var(--vsg-mobile-dock-accent) !important;
        background: var(--vsg-mobile-dock-accent-soft) !important;
        color: var(--vsg-mobile-dock-accent-hover) !important;
    }

    @keyframes vsg-mobile-category-side-panel-in {
        from {
            opacity: 0;
            transform: translate3d(100%, 0, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    /* 5. Aktywne filtry: wyraźna biała ramka na ciemnym overlayu. */
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active,
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active:hover,
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active:focus-visible,
    .vsg-mobile-filter-host .vsg-filter-check-v2:has(input:checked) {
        border: 2px solid #fff !important;
    }
    /* 2. Centralna kategoria i licznik koszyka — większe, czytelniejsze. */
    .vsg-mobile-shop-dock__action--primary {
        justify-self: center;
        border: 4px solid var(--vsg-mobile-dock-navy) !important;
        border-radius: 50% !important;
        color: #fff !important;
        background: var(--vsg-mobile-dock-accent) !important;
        box-shadow: 0 7px 18px rgba(3, 13, 31, .26) !important;
        width: 70px !important;
        height: 70px !important;
        margin-top: -28px !important;
        border-width: 3px !important;
    }

    .vsg-mobile-shop-dock__cart-badge {
        position: absolute;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--vsg-mobile-dock-navy);
        border-radius: 999px;
        color: #fff;
        border-color: var(--vsg-mobile-dock-navy);
        background: var(--vsg-mobile-dock-accent);
        top: -8px !important;
        right: -10px !important;
        min-width: 20px !important;
        height: 20px !important;
        padding: 0 5px !important;
        border-width: 2px !important;
        font-size: 9.5px !important;
        font-weight: 900 !important;
        line-height: 16px !important;
        box-shadow: 0 3px 8px rgba(3, 13, 31, .28) !important;
    }

    /* 3. Hero: ciemne tło na cały viewport, ale treść zachowuje swój gutter. */

    /* 4. Podkategorie: właściwy panel boczny wysuwany z LEWEJ strony okna. */
    .vsg-mobile-popup--categories [data-vsg-mobile-category-stage="children"]:not([hidden]) {
        position: fixed !important;
        bottom: calc(var(--vsg-mobile-popup-dock-clearance) + var(--vsg-mobile-dock-safe-bottom)) !important;
        width: min(330px, calc(100vw - 42px)) !important;
        max-height: calc(100dvh - var(--vsg-mobile-popup-dock-clearance) - 18px - env(safe-area-inset-top, 0px) - var(--vsg-mobile-dock-safe-bottom)) !important;
        margin: 0 !important;
        padding: 8px 8px 10px 10px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        border: 1px solid rgba(7, 26, 61, .12) !important;
        background: #fff !important;
        -webkit-overflow-scrolling: touch;
        right: auto !important;
        left: 0 !important;
        border-right: 1px solid rgba(7, 26, 61, .12) !important;
        border-left: 0 !important;
        border-radius: 0 var(--vsg-mobile-tile-radius) var(--vsg-mobile-tile-radius) 0 !important;
        box-shadow: 14px 0 34px rgba(3, 13, 31, .24) !important;
        animation: vsg-mobile-category-side-panel-in-left .22s cubic-bezier(.2,.75,.25,1) both !important;
        transform-origin: left center !important;
    }

    @keyframes vsg-mobile-category-side-panel-in-left {
        from {
            opacity: 0;
            transform: translate3d(-100%, 0, 0);
        }
        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    /* 6. Back to top — mocniejszy kontrast i grubsza strzałka. */
    body.vsg-mobile-shop-dock-enabled .vsg-footer-scroll-top,
    body.vsg-mobile-shop-dock-enabled #scrollTopBtn {
        top: calc(12px + env(safe-area-inset-top, 0px)) !important;
        right: 12px !important;
        bottom: auto !important;
        z-index: 9999 !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: var(--vsg-mobile-tile-radius) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        border: 2px solid rgba(255,255,255,.72) !important;
        background: #0b2859 !important;
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(3,13,31,.34), 0 0 0 1px rgba(11,40,89,.20) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-footer-scroll-top svg {
        width: 24px !important;
        height: 24px !important;
        stroke: #fff !important;
        stroke-width: 2.8 !important;
        filter: drop-shadow(0 1px 1px rgba(3,13,31,.35));
    }

    body.vsg-mobile-shop-dock-enabled .vsg-footer-scroll-top svg path {
        fill: none !important;
        stroke: #fff !important;
        stroke-width: 2.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    body.vsg-mobile-shop-dock-enabled #scrollTopBtn .scrollTopArrow {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important;
        background: transparent !important;
        width: 24px !important;
        height: 24px !important;
        color: #fff !important;
        font-size: 22px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        text-shadow: 0 1px 1px rgba(3,13,31,.35) !important;
    }
    /* Gdy otwarty jest drugi poziom, prawy popup bazowy znika wizualnie;
       pozostaje wyłącznie lewostronny panel podkategorii. */
    .vsg-mobile-popup--categories.is-subcategory-open {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        pointer-events: none !important;
    }

    .vsg-mobile-popup--categories.is-subcategory-open [data-vsg-mobile-category-stage="children"]:not([hidden]) {
        pointer-events: auto !important;
    }
    /* Centralna ikona kategorii: bez podpisu, większa i idealnie wyśrodkowana w okręgu. */
    .vsg-mobile-shop-dock__action--primary {
        gap: 0 !important;
        padding: 0 !important;
    }

    .vsg-mobile-shop-dock__icon--catalog,
    .vsg-mobile-shop-dock__action--primary .vsg-mobile-shop-dock__icon--catalog {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        color: currentColor !important;
        font-size: 32px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        text-rendering: geometricPrecision;
        -webkit-font-smoothing: antialiased;
        transform: translate(-50%, -50%) !important;
    }
    body.vsg-mobile-shop-dock-enabled .vsg-account-sidebar {
        display: none !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-account-shell,
    body.vsg-mobile-shop-dock-enabled .vsg-account-shell.is-subpage,
    body.vsg-mobile-shop-dock-enabled .vsg-account--lista-zyczen .vsg-account-shell.is-subpage {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-account-main,
    body.vsg-mobile-shop-dock-enabled .vsg-account-right {
        grid-column: 1 !important;
        min-width: 0 !important;
    }

    .vsg-mobile-account-dock .vsg-mobile-shop-dock__action--primary .vsg-mobile-shop-dock__icon {
        width: 23px !important;
        height: 23px !important;
        flex: 0 0 23px !important;
    }

    .vsg-mobile-account-dock .vsg-mobile-shop-dock__action--primary .vsg-mobile-shop-dock__label {
        transform: translateY(-1px) !important;
    }

    .vsg-mobile-account-dock .vsg-mobile-shop-dock__action.is-active {
        background: rgba(255,255,255,.13) !important;
        color: #fff !important;
    }

    .vsg-mobile-popup--account-page {
        right: 10px !important;
        bottom: calc(92px + var(--vsg-mobile-dock-safe-bottom)) !important;
        width: min(320px, calc(100vw - 28px)) !important;
    }
    /* Aktywna grupa filtra zachowuje standardowy granatowy stan, bez białej ramki. */
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active,
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active:hover,
    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active:focus-visible {
        border-color: var(--vsg-mobile-dock-navy) !important;
        border: 1px solid var(--vsg-mobile-dock-navy) !important;
        background: var(--vsg-mobile-dock-navy) !important;
        color: #fff !important;
        box-shadow: 0 12px 26px rgba(3, 13, 31, .28), 0 3px 7px rgba(3, 13, 31, .16) !important;
    }

    /* Zaznaczone opcje kopiują dokładnie logikę aktywnego stanu z normalnego
       panelu shop.css: miękki niebieski gradient + niebieski checkbox/tekst. */
    .vsg-mobile-filter-host .vsg-filter-check-v2:has(input:checked) {
        border: 0 !important;
        border-radius: var(--vsg-radius-panel, 4px) !important;
        background: linear-gradient(
            90deg,
            color-mix(in srgb, var(--e-global-color-secondary, var(--vsg-color-blue)) 11%, transparent) 0%,
            color-mix(in srgb, var(--e-global-color-secondary, var(--vsg-color-blue)) 3.5%, transparent) 100%
        ) !important;
        color: var(--vsg-filter-accent, var(--vsg-mobile-dock-accent)) !important;
        box-shadow: none !important;
    }

    .vsg-mobile-filter-host .vsg-filter-check-v2 input:checked + .vsg-filter-option-label-v2,
    .vsg-mobile-filter-host .vsg-filter-check-v2 input:checked + .vsg-filter-option-label-v2 .vsg-filter-option-name-v2 {
        color: var(--vsg-filter-accent, var(--vsg-mobile-dock-accent)) !important;
    }

    .vsg-mobile-filter-host .vsg-filter-check-v2 input:checked + .vsg-filter-option-label-v2 .vsg-filter-option-count-v2,
    .vsg-mobile-filter-host .vsg-filter-check-v2:has(input:checked) .vsg-filter-attr-count-v2 {
        border-color: var(--e-global-color-secondary, var(--vsg-color-blue)) !important;
        background: var(--e-global-color-secondary, var(--vsg-color-blue)) !important;
        color: #fff !important;
    }

    /* Czytelny hover/focus dla kategorii, filtrów i konta. */
    .vsg-mobile-popup--categories .vsg-mobile-tile,
    .vsg-mobile-popup--filters .vsg-mobile-tile,
    .vsg-mobile-popup--account .vsg-mobile-tile {
        grid-template-columns: 38px minmax(0, 1fr) 18px;
        gap: 8px;
        min-height: 52px;
        padding: 6px 10px 6px 8px;
        background: rgba(255,255,255,.97) !important;
        text-align: left;
        border-radius: var(--vsg-mobile-tile-radius) !important;
        box-shadow:
            0 10px 24px rgba(3, 13, 31, .17),
            0 2px 5px rgba(3, 13, 31, .10) !important;
        transition: transform .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-tile:focus-visible,
    .vsg-mobile-popup--filters .vsg-mobile-tile:focus-visible,
    .vsg-mobile-popup--account .vsg-mobile-tile:focus-visible {
        border-color: var(--vsg-mobile-dock-accent) !important;
        background: #eef6ff !important;
        outline: 0 !important;
        transform: translateX(3px) !important;
        box-shadow: 0 14px 30px rgba(3,13,31,.22), 0 3px 8px rgba(3,13,31,.12) !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-tile:active,
    .vsg-mobile-popup--filters .vsg-mobile-tile:active,
    .vsg-mobile-popup--account .vsg-mobile-tile:active {
        transform: translateX(1px) scale(.99) !important;
    }

    /* Oryginalny drawer kategorii otwierany z docka pozostaje tym samym
       komponentem categories.php/categories.js, ale na telefonie nie pokazuje
       ciemnego raila ikon. Panel zajmuje pełną wysokość viewportu i leży pod
       dolnym dockiem, dzięki czemu dock pozostaje zawsze dostępny dla kciuka. */
    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program--shop.vsg-mobile-native-category-drawer.is-open,
    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program--product.vsg-mobile-native-category-drawer.is-open,
    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program--overlay.vsg-mobile-native-category-drawer.is-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        z-index: 9999 !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-categories.vsg-categories--shop-drawer {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: minmax(190px, 42%) minmax(0, 1fr) !important;
        inset: 0 auto 0 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Mobile drawer: po wyborze podkategorii poziomu 2 panel listy musi
       faktycznie się schować, a katalog kolejnego poziomu przejąć całą
       wysokość. Wcześniejszy wymuszony display:block pozostawiał biały pas. */
    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed {
        grid-template-rows: minmax(0, 1fr) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-nav-panels {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-categories-nav {
        display: contents !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-categories-nav-rail {
        display: none !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-categories.vsg-categories--shop-drawer.is-nav-expanded .vsg-categories-nav-panels {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-bottom: 1px solid var(--vsg-color-border, #dbe4ee) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-categories.vsg-categories--shop-drawer.is-nav-expanded .vsg-categories-catalog {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: calc(92px + var(--vsg-mobile-dock-safe-bottom)) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog {
        padding-bottom: calc(92px + var(--vsg-mobile-dock-safe-bottom)) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open .vsg-shop-categories-drawer__backdrop {
        z-index: 0 !important;
    }

    /* Shop mobile: skompresowany head, bez utraty czytelności. */
    body.vsg-mobile-shop-dock-enabled .vsg-shop-page > .vsg-shop-hero {
        margin-bottom: 10px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero__inner {
        padding-top: 14px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero .vsg-shop-breadcrumbs {
        min-height: 24px !important;
        margin-bottom: 7px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero .vsg-shop-breadcrumbs__items {
        min-height: 24px !important;
        gap: 4px !important;
        font-size: 10px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero .vsg-shop-breadcrumbs__home {
        flex-basis: 24px !important;
        width: 24px !important;
        height: 24px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero .vsg-shop-breadcrumbs__home svg {
        width: 13px !important;
        height: 13px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__primary {
        gap: 0 !important;
        padding-bottom: 9px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__title {
        font-size: clamp(25px, 7.6vw, 32px) !important;
        line-height: 1 !important;
        letter-spacing: -.035em !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__count--desktop {
        display: none !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__controls {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: end !important;
        column-gap: clamp(10px, 4.5vw, 30px) !important;
        row-gap: 6px !important;
        margin-top: 8px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__sort,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__sort select {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__sort select {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 30px 0 10px !important;
        background-position: right 9px center !important;
        background-size: 12px 12px !important;
        font-size: 10px !important;
        line-height: 32px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__view {
        grid-template-columns: repeat(3, 30px) !important;
        gap: 4px !important;
        width: auto !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__view-label {
        display: none !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-view-btn {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-view-btn svg,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-view-btn .vsg-shop-view-media-icon {
        width: 15px !important;
        height: 15px !important;
    }

    /* Aktywne filtry dopasowują się do treści zamiast rozciągać się na całą szerokość. */
    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__filters {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 6px 10px !important;
        padding: 7px 0 8px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__filters-label {
        display: none !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-active-filters {
        grid-column: 1 / -1 !important;
        justify-self: start !important;
        width: max-content !important;
        max-width: 100% !important;
        gap: 5px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-active-chip {
        width: auto !important;
        max-width: min(100%, 310px) !important;
        min-height: 28px !important;
        justify-content: flex-start !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-active-chip__text {
        padding-left: 8px !important;
        font-size: 10px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-active-chip button {
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
        font-size: 16px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-clear-filters {
        grid-column: 1 !important;
        justify-self: start !important;
        min-height: 26px !important;
        font-size: 10px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__count--mobile {
        display: inline-flex !important;
        grid-column: 2 !important;
        justify-self: end !important;
        align-items: baseline !important;
        gap: 4px !important;
        margin: 0 !important;
        color: rgba(255,255,255,.68) !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__count--mobile strong {
        color: var(--vsg-mobile-dock-accent) !important;
        font-size: 11px !important;
    }

    /* Rabat ilościowy na telefonie: szerokość i pozycja liczone względem karty i viewportu. */
    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount {
        max-width: 100% !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount-toggle {
        max-width: 100% !important;
        min-height: 32px !important;
        height: 32px !important;
        padding-inline: 8px !important;
        gap: 4px !important;
        font-size: 10px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount-panel,
    body.vsg-mobile-shop-dock-enabled .vsg1200-wrap[data-vsg-view] .vsg1200-card .vsg1200-qty-discount-panel {
        position: fixed !important;
        left: var(--vsg-qty-mobile-left, 12px) !important;
        right: auto !important;
        top: var(--vsg-qty-mobile-top, 50vh) !important;
        bottom: auto !important;
        width: var(--vsg-qty-mobile-width, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 24px) !important;
        overflow: visible !important;
        transform: translateY(6px) !important;
        transform-origin: center center !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-card.vsg-qty-open {
        transform: none !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount.is-open .vsg1200-qty-discount-panel,
    body.vsg-mobile-shop-dock-enabled .vsg1200-card.vsg-qty-open .vsg1200-qty-discount-panel,
    body.vsg-mobile-shop-dock-enabled .vsg1200-wrap[data-vsg-view] .vsg1200-card.vsg-qty-open .vsg1200-qty-discount.is-open .vsg1200-qty-discount-panel {
        left: var(--vsg-qty-mobile-left, 12px) !important;
        right: auto !important;
        top: var(--vsg-qty-mobile-top, 50vh) !important;
        bottom: auto !important;
        transform: translateY(0) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount-panel::after,
    body.vsg-mobile-shop-dock-enabled .vsg1200-wrap[data-vsg-view] .vsg1200-card .vsg1200-qty-discount-panel::after {
        left: var(--vsg-qty-mobile-arrow-x, 50%) !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount-panel[data-vsg-mobile-placement="below"]::after {
        top: -9px !important;
        bottom: auto !important;
        border-top: 0 !important;
        border-right: 9px solid transparent !important;
        border-bottom: 9px solid var(--vsg-color-white) !important;
        border-left: 9px solid transparent !important;
        filter: drop-shadow(0 -2px 2px rgba(7,26,61,.08)) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount-panel .vsg1200-qty-discount-table {
        font-size: 10px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount-panel .vsg1200-qty-discount-table th {
        height: 36px !important;
        padding: 0 7px !important;
        font-size: 10px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount-panel .vsg1200-qty-discount-table td {
        padding-right: 7px !important;
        padding-left: 7px !important;
        font-size: 10px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg1200-qty-discount-panel .vsg1200-qty-discount-percent {
        min-width: 0 !important;
        padding: 4px 6px !important;
        font-size: 9px !important;
    }

    /* VSG 1.66.77 — mobile: kompaktowy heading, niebieskie akcenty i popupy liczone od viewportu. */
    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__heading {
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }

    /* Około 80% poprzedniego rozmiaru nagłówka na telefonie. */
    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__title {
        font-size: clamp(20px, 6.1vw, 26px) !important;
    }

    /* W obrębie hero tools pomarańczowy akcent jest na mobile zastąpiony niebieskim. */
    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools {
        --vsg-color-orange: var(--vsg-mobile-dock-accent) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__sort select:hover,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-hero-tools__sort select:focus {
        box-shadow: 0 0 0 3px rgba(22, 114, 212, .12) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-view-btn.is-active,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-view-btn.is-active:hover,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-view-btn.is-active:focus-visible,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-view-btn[aria-pressed="true"] {
        border-color: var(--vsg-mobile-dock-accent) !important;
        background: var(--vsg-mobile-dock-accent) !important;
        box-shadow: 0 0 0 3px rgba(22, 114, 212, .16) !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-shop-clear-filters:hover,
    body.vsg-mobile-shop-dock-enabled .vsg-shop-clear-filters:focus-visible {
        color: var(--vsg-mobile-dock-accent-hover) !important;
    }

    /* Kategorie / filtry / konto są pozycjonowane bezpośrednio względem viewportu,
       a nie względem szerokości dokumentu lub kontenera strony. */
    .vsg-mobile-popup--categories,
    .vsg-mobile-popup--filters,
    .vsg-mobile-popup--account,
    body.admin-bar .vsg-mobile-popup--categories,
    body.admin-bar .vsg-mobile-popup--filters,
    body.admin-bar .vsg-mobile-popup--account {
        position: fixed !important;
        right: max(12px, env(safe-area-inset-right, 0px)) !important;
        left: auto !important;
        max-width: calc(100dvw - 24px) !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .vsg-mobile-popup--categories,
    .vsg-mobile-popup--account,
    body.admin-bar .vsg-mobile-popup--categories,
    body.admin-bar .vsg-mobile-popup--account {
        width: min(306px, calc(100dvw - 24px)) !important;
    }

    .vsg-mobile-popup--filters,
    body.admin-bar .vsg-mobile-popup--filters {
        width: min(330px, calc(100dvw - 24px)) !important;
    }

    /* Product Window: czwarty przycisk docka otwiera nawigację produktu.
       Popup korzysta z tej samej geometrii kafelków co panel Konta. */
    .vsg-mobile-popup--navigation .vsg-mobile-tile.is-disabled,
    .vsg-mobile-popup--navigation .vsg-mobile-tile:disabled {
        opacity: .72 !important;
        cursor: default !important;
        transform: none !important;
        background: #edf1f5 !important;
        border-color: #d7dee7 !important;
        color: #7a8798 !important;
        box-shadow: none !important;
    }

    .vsg-mobile-popup--navigation .vsg-mobile-tile.is-disabled .vsg-mobile-tile__icon,
    .vsg-mobile-popup--navigation .vsg-mobile-tile.is-disabled .vsg-mobile-tile__arrow,
    .vsg-mobile-popup--navigation .vsg-mobile-tile:disabled .vsg-mobile-tile__icon,
    .vsg-mobile-popup--navigation .vsg-mobile-tile:disabled .vsg-mobile-tile__arrow {
        color: #8f9aa8 !important;
        opacity: .72 !important;
    }

    .vsg-mobile-popup--navigation .vsg-mobile-tile.is-active {
        border-color: var(--vsg-mobile-dock-accent) !important;
        background: var(--vsg-mobile-dock-accent-soft, #eef6ff) !important;
        color: var(--vsg-mobile-dock-navy) !important;
    }

    /* Nawigacja Product Window: bez ikon – etykieta dostaje całą szerokość. */
    .vsg-mobile-popup--navigation .vsg-mobile-tile {
        grid-template-columns: minmax(0, 1fr) 18px !important;
        gap: 9px !important;
        min-height: 48px !important;
        padding: 7px 11px 7px 13px !important;
    }

    .vsg-mobile-popup--navigation .vsg-mobile-tile__icon {
        display: none !important;
    }

    /* Product Window: dolny dock pozostaje samodzielnym panelem nawigacyjnym.
       Oryginalny mobilny pasek cena + Dodaj do koszyka jest wyłączony, aby
       nie zasłaniał treści ani nie konkurował z dockiem podczas przewijania. */
    body.vsg-mobile-shop-dock-product .product_window-mobile-bar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* VSG 1.67.0 — drill-down kategorii w zasięgu kciuka.
       Po wyborze kategorii jej kafel zjeżdża na dół popupu, a wszystkie
       podkategorie pozostają nad nim. Dopiero kliknięcie podkategorii
       otwiera natywny drawer z kolejnym poziomem katalogu. */
    .vsg-mobile-popup--categories.is-subcategory-open {
        overflow: hidden !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        pointer-events: auto !important;
    }

    .vsg-mobile-popup--categories [data-vsg-mobile-category-stage="children"]:not([hidden]) {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: inherit !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        animation: none !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .vsg-mobile-popup--categories [data-vsg-mobile-category-stage="children"] .vsg-mobile-stage-back {
        display: none !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-subcategory-drawer {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: min(54dvh, 520px) !important;
        padding: 0 0 7px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-subcategory-panel,
    .vsg-mobile-popup--categories .vsg-mobile-subcategory-panel .vsg-categories-nav-submenu {
        display: grid !important;
        gap: 7px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-subcategory-panel .vsg-categories-nav-branch {
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 1px solid rgba(7, 26, 61, .10) !important;
        border-radius: 4px !important;
        background: rgba(255,255,255,.98) !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: 0 8px 20px rgba(3,13,31,.13) !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-subcategory-panel .vsg-categories-nav-branch:hover,
    .vsg-mobile-popup--categories .vsg-mobile-subcategory-panel .vsg-categories-nav-branch:focus-visible {
        border-color: var(--vsg-mobile-dock-accent) !important;
        background: #f2f7ff !important;
        color: var(--vsg-mobile-dock-accent-hover) !important;
        transform: translateX(-2px) !important;
        outline: 0 !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-subcategory-panel .vsg-categories-nav-branch.is-active {
        border-color: rgba(22,114,212,.42) !important;
        background: var(--vsg-mobile-dock-accent-soft) !important;
        color: var(--vsg-mobile-dock-accent-hover) !important;
    }

    .vsg-mobile-subcategory-empty {
        padding: 12px !important;
        border-radius: 4px !important;
        background: rgba(255,255,255,.94) !important;
        color: var(--vsg-mobile-dock-muted) !important;
        font-size: 11px !important;
        font-weight: 650 !important;
        text-align: center !important;
        box-shadow: 0 6px 16px rgba(3,13,31,.10) !important;
    }

    .vsg-mobile-category-selected {
        position: relative !important;
        z-index: 3 !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        padding-top: 2px !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-category-selected .vsg-mobile-tile.is-selected {
        border-color: var(--vsg-mobile-dock-navy) !important;
        background: var(--vsg-mobile-dock-navy) !important;
        color: #fff !important;
        box-shadow: 0 12px 28px rgba(3,13,31,.28) !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-category-selected .vsg-mobile-tile.is-selected .vsg-mobile-tile__label,
    .vsg-mobile-popup--categories .vsg-mobile-category-selected .vsg-mobile-tile.is-selected .vsg-mobile-tile__arrow {
        color: #fff !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-category-selected .vsg-mobile-tile.is-selected .vsg-mobile-tile__icon {
        background: var(--vsg-mobile-dock-accent) !important;
        color: #fff !important;
    }

    .vsg-mobile-popup--categories .vsg-mobile-category-selected .vsg-mobile-tile.is-selected .vsg-mobile-tile__arrow {
        transform: rotate(-90deg) !important;
        transform-origin: center !important;
        font-size: 22px !important;
    }

    /* Mobile/tablet: nagłówek aktywnej podkategorii działa jako powrót do
       popupu kategorii. Chevron jest po lewej i nie ma osobnego kontenera. */
    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open
    .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog-header {
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open
    .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog-header > h2 {
        display: none !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open
    .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog-nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 7px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        height: auto !important;
        min-height: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--vsg-color-text, var(--vsg-mobile-dock-navy)) !important;
        box-shadow: none !important;
        cursor: pointer !important;
        text-align: left !important;
        font-family: var(--vsg-font-family, "Montserrat", Arial, sans-serif) !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open
    .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog-nav-toggle svg {
        display: block !important;
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
        color: var(--vsg-mobile-dock-accent) !important;
        transform: rotate(-90deg) !important;
        transform-origin: center !important;
        overflow: visible !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open
    .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog-nav-toggle svg path {
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open
    .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog-nav-toggle span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open
    .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog-nav-toggle:hover,
    body.vsg-mobile-shop-dock-enabled .vsg-categories-nav-rail-program.vsg-mobile-native-category-drawer.is-open
    .vsg-categories.vsg-categories--shop-drawer.is-nav-collapsed .vsg-categories-catalog-nav-toggle:focus-visible {
        color: var(--vsg-mobile-dock-accent) !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: 0 !important;
    }


    /* VSG 1.67.3 — uporządkowany detal filtra: wszystko do lewej, bez białej belki CTA. */
    .vsg-mobile-popup--filters .vsg-mobile-filter-stage--detail:not([hidden]) {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        align-self: flex-start !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 28px !important;
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: none !important;
        font-family: var(--vsg-font-family, "Montserrat", Arial, sans-serif) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        text-align: left !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back] > span {
        display: inline !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        color: inherit !important;
        font: inherit !important;
        text-align: left !important;
    }

    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back]:hover,
    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back]:focus-visible {
        background: transparent !important;
        color: var(--vsg-mobile-dock-accent) !important;
        box-shadow: none !important;
        outline: 0 !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-host,
    .vsg-mobile-popup--filters .vsg-mobile-filter-host .vsg-filter-panel-v2,
    .vsg-mobile-popup--filters .vsg-mobile-filter-host .vsg-filter-box-v2,
    .vsg-mobile-popup--filters .vsg-mobile-filter-host .vsg-filter-heading-v2,
    .vsg-mobile-popup--filters .vsg-mobile-filter-host .vsg-filter-body-v2,
    .vsg-mobile-popup--filters .vsg-mobile-filter-host label {
        text-align: left !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-actions {
        padding: 8px 0 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-apply {
        margin: 0 !important;
        border-radius: 0 0 4px 4px !important;
        background: var(--vsg-mobile-dock-accent) !important;
        box-shadow: none !important;
    }

    /* VSG 1.67.5 — CTA Filtruj jest integralną dolną częścią karty wybranego filtra. */
    .vsg-mobile-popup--filters .vsg-mobile-filter-stage--detail:not([hidden]) {
        gap: 0 !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-stage--detail:not([hidden]) > [data-vsg-mobile-filter-back] {
        margin-bottom: 7px !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-host {
        border-radius: 4px 4px 0 0 !important;
        box-shadow: 0 8px 22px rgba(3,13,31,.12) !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-actions {
        position: static !important;
        inset: auto !important;
        z-index: auto !important;
        display: block;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 0 4px 4px !important;
        background: transparent !important;
        box-shadow: 0 8px 22px rgba(3,13,31,.12) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: hidden;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-actions[hidden] {
        display: none !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-apply {
        width: 100% !important;
        min-height: 44px !important;
        border-radius: 0 0 4px 4px !important;
        box-shadow: none !important;
    }

    /* VSG 1.67.7 — detal filtra: bez białej belki nad nagłówkiem;
       nagłówek staje się granatowy wyłącznie wtedy, gdy filtr ma aktywną wartość. */
    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back],
    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back]:hover,
    .vsg-mobile-popup--filters [data-vsg-mobile-filter-back]:focus-visible {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--vsg-mobile-dock-accent) !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-host {
        background: transparent !important;
        overflow: visible !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-host .vsg-filter-panel-v2 {
        background: transparent !important;
        overflow: visible !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-host .vsg-filter-box-v2.is-vsg-mobile-filter-selected {
        overflow: hidden !important;
        border-radius: 4px 4px 0 0 !important;
        background: #fff !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-host
    .vsg-filter-box-v2.is-vsg-mobile-filter-selected > .vsg-filter-heading-v2 {
        border-radius: 4px 4px 0 0 !important;
        background: #fff !important;
        color: var(--vsg-mobile-dock-navy) !important;
        box-shadow: inset 0 -1px 0 var(--vsg-color-border, #dfe6ef) !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-host
    .vsg-filter-box-v2.is-vsg-mobile-filter-selected.is-filter-active-v2 > .vsg-filter-heading-v2,
    .vsg-mobile-popup--filters .vsg-mobile-filter-host
    .vsg-filter-box-v2.is-vsg-mobile-filter-selected:has(input[type="checkbox"]:checked) > .vsg-filter-heading-v2 {
        background: var(--vsg-mobile-dock-navy) !important;
        color: #fff !important;
        box-shadow: inset 0 -1px 0 rgba(255,255,255,.18) !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-filter-host
    .vsg-filter-box-v2.is-vsg-mobile-filter-selected.is-filter-active-v2 > .vsg-filter-heading-v2 .vsg-filter-heading-icon-wrap-v2,
    .vsg-mobile-popup--filters .vsg-mobile-filter-host
    .vsg-filter-box-v2.is-vsg-mobile-filter-selected.is-filter-active-v2 > .vsg-filter-heading-v2 .vsg-filter-heading-text-v2,
    .vsg-mobile-popup--filters .vsg-mobile-filter-host
    .vsg-filter-box-v2.is-vsg-mobile-filter-selected:has(input[type="checkbox"]:checked) > .vsg-filter-heading-v2 .vsg-filter-heading-icon-wrap-v2,
    .vsg-mobile-popup--filters .vsg-mobile-filter-host
    .vsg-filter-box-v2.is-vsg-mobile-filter-selected:has(input[type="checkbox"]:checked) > .vsg-filter-heading-v2 .vsg-filter-heading-text-v2 {
        color: #fff !important;
    }


}

@media (max-width: 390px) {
    .vsg-mobile-shop-dock {
        width: calc(100vw - 16px);
        padding-inline: 5px;
    }

    .vsg-mobile-popup--categories,
    .vsg-mobile-popup--account {
        right: 8px;
        width: min(296px, calc(100vw - 48px));
    }

    .vsg-mobile-popup--filters {
        right: 8px;
        width: calc(100vw - 16px);
    }
}

@media (hover: hover) and (pointer: fine) and (max-width: 1024px) {
    .vsg-mobile-popup--categories .vsg-mobile-tile:hover,
    .vsg-mobile-popup--filters .vsg-mobile-tile:hover,
    .vsg-mobile-popup--account .vsg-mobile-tile:hover {
        border-color: var(--vsg-mobile-dock-accent) !important;
        background: #eef6ff !important;
        transform: translateX(3px) !important;
        box-shadow: 0 14px 30px rgba(3,13,31,.22), 0 3px 8px rgba(3,13,31,.12) !important;
    }

    .vsg-mobile-popup--filters .vsg-mobile-tile.is-active:hover {
        border-color: var(--vsg-mobile-dock-navy) !important;
        background: var(--vsg-mobile-dock-navy) !important;
        color: #fff !important;
    }

    /* VSG 1.67.5 — nawigacja produktu ma dwie kolumny: tekst i strzałkę. */
    .vsg-mobile-popup--navigation .vsg-mobile-navigation-list .vsg-mobile-tile {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 18px !important;
        align-items: center !important;
        gap: 9px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 7px 11px 7px 13px !important;
        overflow: hidden !important;
    }
    .vsg-mobile-popup--navigation .vsg-mobile-navigation-list .vsg-mobile-tile__icon {
        display: none !important;
    }
    .vsg-mobile-popup--navigation .vsg-mobile-navigation-list .vsg-mobile-tile__label {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        min-width: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-align: right !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .vsg-mobile-popup--navigation .vsg-mobile-navigation-list .vsg-mobile-tile__arrow {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        width: 18px !important;
        margin: 0 !important;
        color: currentColor !important;
        transform: none !important;
    }
    body.vsg-mobile-shop-dock-enabled .vsg-footer-scroll-top,
    body.vsg-mobile-shop-dock-enabled #scrollTopBtn {
        z-index: 9998 !important;
    }

    .vsg-mobile-popup--navigation .vsg-mobile-navigation-list .vsg-mobile-tile__label {
        justify-self: stretch !important;
        text-align: left !important;
    }
}
