.rs-mobile-nav { display: none; }
@media (max-width: 767px) {
    body.rs-mobile-nav-enabled {
        --rs-mobile-nav-height: calc(68px + env(safe-area-inset-bottom, 0px));
        padding-bottom: var(--rs-mobile-nav-height);
    }
    .rs-mobile-nav-enabled .rs-mobile-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 2100;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: var(--rs-mobile-nav-height);
        padding: 4px max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
        background: var(--store-surface, #fff);
        color: var(--store-muted, #55647b);
        border-top: 1px solid var(--store-line, #dce4ee);
        box-shadow: 0 -6px 24px rgb(0 0 0 / .08);
    }
    .rs-mobile-nav .rs-mobile-nav__item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        min-height: 48px;
        padding: 4px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: inherit;
        font: inherit;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.25;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .rs-mobile-nav__item svg {
        display: block;
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .rs-mobile-nav__item[aria-current="page"],
    .rs-mobile-nav__item[aria-expanded="true"] {
        color: var(--store-accent, #00a3ff);
        background: color-mix(in srgb, var(--store-accent, #00a3ff) 10%, transparent);
    }
    .rs-mobile-nav__item:focus-visible {
        outline: 2px solid var(--store-focus, #0085d1);
        outline-offset: -2px;
    }
    .rs-mobile-nav__icon { position: relative; }
    .rs-mobile-nav__count {
        position: absolute;
        top: -6px;
        left: 16px;
        min-width: 17px;
        padding: 2px 4px;
        border-radius: 999px;
        color: #fff;
        background: #0085d1;
        font-size: 10px;
        line-height: 13px;
        text-align: center;
    }
    .rs-mobile-nav__count[hidden] { display: none; }
    .rs-mobile-nav-enabled .site-header .header-actions > a[href="/sepet"],
    .rs-mobile-nav-enabled .site-header .header-actions > a[href="/hesap/giris"],
    .rs-mobile-nav-enabled .site-header .header-actions > a[href="/hesap/kayit"],
    .rs-mobile-nav-enabled .site-header .header-actions > .js-avatar-btn,
    .rs-mobile-nav-enabled .nav-rail > .bar,
    .rs-mobile-nav-enabled .nav-rail > .container > .bar { display: none !important; }
    .rs-mobile-nav-enabled .site-header .js-avatar-menu {
        position: fixed;
        top: auto !important;
        right: 12px;
        bottom: calc(var(--rs-mobile-nav-height) + 10px);
        width: min(320px, calc(100vw - 24px));
        max-height: calc(100dvh - var(--rs-mobile-nav-height) - 36px);
        overflow-y: auto;
        background: var(--store-surface, #fff);
        color: var(--store-ink, #172033);
        border-color: var(--store-line, #dce4ee);
        z-index: 3001;
    }
    .rs-mobile-nav-enabled .site-header .js-avatar-menu:not(.hidden) { display: block !important; }
    .rs-mobile-nav-enabled .nav-rail > #megaPanel.mega-panel {
        position: fixed;
        top: 12px !important;
        bottom: calc(var(--rs-mobile-nav-height) + 10px);
        left: 8px;
        right: 8px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 18px;
        z-index: 2000;
        margin: 0 !important;
    }
    .rs-mobile-nav-enabled #megaPanel > .container { padding: 0; }
    .rs-mobile-nav-enabled #megaPanel .mega-content { display: block; grid-template-columns: none; }
    .rs-mobile-nav-enabled #megaPanel .mm-header {
        position: sticky;
        top: 0;
        z-index: 2;
    }
    .rs-mobile-nav-enabled .rs-mobile-shortcuts { padding: 10px 14px; border-bottom: 1px solid var(--store-line, #dce4ee); }
    .rs-mobile-nav-enabled .chat-fab-stack {
        bottom: calc(var(--rs-mobile-nav-height) + 16px);
    }
    .rs-mobile-nav-enabled #backToTop {
        bottom: calc(var(--rs-mobile-nav-height) + 86px);
    }
    .rs-mobile-nav-enabled #cmpBar { bottom: var(--rs-mobile-nav-height); }
    .rs-mobile-nav-enabled #cmpModal { z-index: 3100; }
    .rs-mobile-nav-enabled .cart-snack {
        bottom: calc(var(--rs-mobile-nav-height) + 16px) !important;
    }
}
@media (max-width: 767px) {
    body.rs-mobile-nav-enabled .site-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.rs-mobile-nav-enabled .nav-rail {
        z-index: 2000;
    }

        body.rs-mobile-nav-enabled .nav-rail > #megaPanel.mega-panel {
            top: calc(var(--header-h, 0px) + 8px) !important;
        }
}