@media (max-width: 991px) {
    body.mobile-js-menu {
        overflow: hidden !important;
    }

    .off-canvas-wrap.agh-mm-ready {
        top: 0 !important;
        right: 0 !important;
        width: min(100vw, 420px) !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #fff;
        color: #242424;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%) !important;
        transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 160ms ease-out, visibility 240ms ease-out !important;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.16);
        z-index: 100001 !important;
    }

    body.admin-bar .off-canvas-wrap.agh-mm-ready {
        top: 0 !important;
        height: 100dvh !important;
    }

    body.mobile-js-menu .off-canvas-wrap.agh-mm-ready {
        visibility: visible;
        opacity: 1;
        transform: translateX(0) !important;
    }

    .off-canvas-wrap.agh-mm-ready > .close-off-canvas-wrap {
        display: none !important;
    }

    .off-canvas-wrap.agh-mm-ready .off-canvas-inner,
    .off-canvas-wrap.agh-mm-ready .mobile-menu-wrap {
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        font-size: 16px !important;
    }

    .off-canvas-wrap.agh-mm-ready .mweb-mobile-nav {
        display: block;
        width: 100%;
        height: 100%;
        padding: 0 !important;
    }

    .agh-mm-shell {
        --agh-mm-accent: #765512;
        --agh-mm-accent-strong: #5e420d;
        --agh-mm-accent-soft: #f7f0e2;
        --agh-mm-surface: #ffffff;
        --agh-mm-surface-subtle: #fbfaf7;
        --agh-mm-text: #24211b;
        --agh-mm-text-muted: #667085;
        --agh-mm-border: #e8e5df;
        --agh-mm-focus: #9a7422;
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        min-height: 0;
        direction: rtl;
        background: var(--agh-mm-surface);
        color: var(--agh-mm-text);
        isolation: isolate;
    }

    .agh-mm-header {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr) 48px;
        align-items: center;
        min-height: 64px;
        padding: max(4px, env(safe-area-inset-top)) 8px 4px;
        border-bottom: 1px solid var(--agh-mm-border);
        background: var(--agh-mm-surface);
        box-shadow: 0 1px 0 rgba(38, 31, 20, 0.02);
    }

    .agh-mm-title {
        overflow: hidden;
        color: var(--agh-mm-text);
        font-family: var(--mainfont, inherit);
        font-size: 17px;
        font-weight: 700;
        line-height: 1.5;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .agh-mm-back,
    .agh-mm-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0 8px;
        border: 1px solid transparent;
        border-radius: 10px;
        background: transparent;
        color: var(--agh-mm-text) !important;
        font: inherit;
        cursor: pointer;
        touch-action: manipulation;
        transition: color 140ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out;
    }

    .agh-mm-back {
        justify-self: start;
        gap: 4px;
        font-size: 13px;
    }

    .agh-mm-close {
        justify-self: end;
        padding: 0;
    }

    .agh-mm-back[hidden] {
        display: block;
        visibility: hidden;
    }

    .agh-mm-panels {
        position: relative;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        background: var(--agh-mm-surface);
    }

    .agh-mm-panel {
        position: absolute;
        inset: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: var(--agh-mm-surface);
    }

    .agh-mm-panel[hidden] {
        display: none !important;
    }

    .agh-mm-panel.is-enter-forward {
        animation: agh-mm-panel-forward 190ms cubic-bezier(.22, 1, .36, 1) both;
    }

    .agh-mm-panel.is-enter-back {
        animation: agh-mm-panel-back 160ms ease-out both;
    }

    @keyframes agh-mm-panel-forward {
        from {
            opacity: 0;
            transform: translateX(-16px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes agh-mm-panel-back {
        from {
            opacity: 0;
            transform: translateX(14px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .agh-mm-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--agh-mm-border);
        background: var(--agh-mm-surface-subtle);
    }

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

    .agh-mm-search input[type='search'] {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 13px;
        border: 1px solid #d5d0c7;
        border-radius: 10px;
        background: #fff;
        color: var(--agh-mm-text);
        font-family: var(--mainfont, inherit);
        font-size: 14px;
        line-height: 44px;
        outline: none;
    }

    .agh-mm-search button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 72px;
        height: 44px;
        padding: 0 12px;
        border: 0;
        border-radius: 10px;
        background: var(--agh-mm-accent) !important;
        color: #fff !important;
        font-family: var(--mainfont, inherit);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        touch-action: manipulation;
        transition: background-color 140ms ease-out, box-shadow 140ms ease-out;
    }

    .agh-mm-list {
        display: block !important;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
        list-style: none !important;
    }

    .agh-mm-list > li {
        display: block;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        line-height: normal !important;
    }

    .agh-mm-row {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 56px;
        margin: 0 !important;
        padding: 10px 16px !important;
        border: 0;
        border-bottom: 1px solid var(--agh-mm-border);
        border-radius: 0;
        background: var(--agh-mm-surface) !important;
        color: var(--agh-mm-text) !important;
        font-family: var(--mainfont, inherit) !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.7 !important;
        text-align: right;
        text-decoration: none !important;
        cursor: pointer;
        -webkit-text-fill-color: currentColor !important;
        touch-action: manipulation;
        transition: color 140ms ease-out, background-color 140ms ease-out;
    }

    .off-canvas-wrap.agh-mm-ready .agh-mm-row-label {
        min-width: 0;
        color: inherit !important;
        -webkit-text-fill-color: currentColor !important;
        overflow-wrap: anywhere;
    }

    .off-canvas-wrap.agh-mm-ready .agh-mm-row:active {
        background: #eee5d2 !important;
        color: #543b0b !important;
    }

    .off-canvas-wrap.agh-mm-ready .agh-mm-row.is-current {
        background: #fbf7ed !important;
        color: #6b4d0f !important;
        font-weight: 700 !important;
    }

    .agh-mm-row.is-current::before {
        position: absolute;
        top: 14px;
        right: 0;
        bottom: 14px;
        width: 3px;
        border-radius: 3px 0 0 3px;
        background: var(--agh-mm-accent);
        content: '';
    }

    .agh-mm-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: var(--agh-mm-accent-soft);
        color: var(--agh-mm-accent) !important;
        transition: color 140ms ease-out, background-color 140ms ease-out;
    }

    .agh-mm-icon {
        display: block;
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
        color: inherit;
        pointer-events: none;
    }

    .agh-mm-back-icon,
    .agh-mm-close-icon {
        width: 22px;
        height: 22px;
    }

    .agh-mm-search-icon {
        width: 17px;
        height: 17px;
    }

    .agh-mm-view-all {
        background: var(--agh-mm-accent-soft) !important;
        color: #6b4d0f !important;
        font-weight: 700 !important;
    }

    .agh-mm-quick-links {
        position: sticky;
        bottom: 0;
        z-index: 2;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--agh-mm-border);
        background: rgba(251, 250, 247, 0.97);
        box-shadow: 0 -8px 24px rgba(38, 31, 20, 0.06);
    }

    .agh-mm-quick-links a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 64px;
        padding: 8px;
        border: 1px solid var(--agh-mm-border);
        border-radius: 10px;
        background: var(--agh-mm-surface) !important;
        color: #3e382e !important;
        font-family: var(--mainfont, inherit);
        font-size: 12.5px;
        font-weight: 600;
        line-height: 1.5;
        text-align: center;
        text-decoration: none;
        -webkit-text-fill-color: currentColor !important;
        touch-action: manipulation;
        transition: color 140ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out;
    }

    .agh-mm-quick-icon {
        width: 21px;
        height: 21px;
        color: var(--agh-mm-accent);
    }

    .agh-mm-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(13, 18, 28, 0.46);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 180ms ease, visibility 180ms ease;
        z-index: 100000;
    }

    body.mobile-js-menu .agh-mm-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .agh-mm-row:focus-visible,
    .agh-mm-back:focus-visible,
    .agh-mm-close:focus-visible,
    .agh-mm-search input:focus-visible,
    .agh-mm-search button:focus-visible,
    .agh-mm-quick-links a:focus-visible,
    .agh-mm-backdrop:focus-visible {
        outline: 3px solid var(--agh-mm-focus) !important;
        outline-offset: -3px;
    }
}

@media (max-width: 991px) and (hover: hover) and (pointer: fine) {
    .off-canvas-wrap.agh-mm-ready .agh-mm-row:hover {
        background: var(--agh-mm-accent-soft) !important;
        color: #5e420d !important;
        -webkit-text-fill-color: currentColor !important;
    }

    .off-canvas-wrap.agh-mm-ready .agh-mm-row:hover .agh-mm-row-label {
        color: inherit !important;
        -webkit-text-fill-color: currentColor !important;
    }

    .off-canvas-wrap.agh-mm-ready .agh-mm-row:hover .agh-mm-arrow {
        background: var(--agh-mm-accent) !important;
        color: #fff !important;
    }

    .off-canvas-wrap.agh-mm-ready .agh-mm-back:hover,
    .off-canvas-wrap.agh-mm-ready .agh-mm-close:hover {
        border-color: #e3d8c3;
        background: var(--agh-mm-accent-soft) !important;
        color: #5e420d !important;
    }

    .off-canvas-wrap.agh-mm-ready .agh-mm-search button:hover {
        background: var(--agh-mm-accent-strong) !important;
        color: #fff !important;
    }

    .off-canvas-wrap.agh-mm-ready .agh-mm-quick-links a:hover {
        border-color: #d8c7a5;
        background: var(--agh-mm-accent-soft) !important;
        color: #5e420d !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .off-canvas-wrap.agh-mm-ready,
    .agh-mm-panel,
    .agh-mm-backdrop {
        animation: none !important;
        transition: none !important;
    }
}
