.bg-mm-nav {
    position: relative;
    width: 100%;
}

.bg-mm-toggle {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.bg-mm-toggle-line {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    background: #ED8B21;
    border-radius: 999px;
    transform: translateX(-50%);
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.bg-mm-toggle-line:nth-child(1) { top: 13px; }
.bg-mm-toggle-line:nth-child(2) { top: 19px; }
.bg-mm-toggle-line:nth-child(3) { top: 25px; }

.bg-mm-nav.bg-mm-nav--open .bg-mm-toggle-line:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}
.bg-mm-nav.bg-mm-nav--open .bg-mm-toggle-line:nth-child(2) { opacity: 0; }
.bg-mm-nav.bg-mm-nav--open .bg-mm-toggle-line:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

.bg-mm-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.bg-mm-item {
    position: relative;
}

.bg-mm-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    text-decoration: none;
    color: #000 !important;
    position: relative;
    font-weight: 400;
    transition: 0.4s ease all;
}


.bg-mm-link-label {
    white-space: nowrap;
}

.bg-mm-link::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: var(--e-global-color-4e8ab42);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.bg-mm-item--current > .bg-mm-link::before,
.bg-mm-item:hover > .bg-mm-link::before,
.bg-mm-item:focus-within > .bg-mm-link::before {
    opacity: 1;
    transform: scaleX(1);
}


.bg-mm-item--current > .bg-mm-link,
.bg-mm-item:hover > .bg-mm-link,
.bg-mm-item:focus-within > .bg-mm-link {
    font-weight: 700;
}


.bg-mm-item--mega > .bg-mm-link::after,
.bg-mm-item--dropdown > .bg-mm-link::after {
    content: "";
    display: inline-block;
    margin-inline-start: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
}

.bg-mm-panel {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 999;
}

.bg-mm-item--mega:hover > .bg-mm-panel,
.bg-mm-item--mega:focus-within > .bg-mm-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bg-mm-panel-inner {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 260px);
    gap: 24px;
    padding: 24px 32px;
    background: #EDEAE6;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: calc(100vw - 40px);
}

.bg-mm-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bg-mm-col-item + .bg-mm-col-item {
    margin-top: 6px;
}

.bg-mm-col-item a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.bg-mm-col-item a:hover,
.bg-mm-col-item a:focus {
    text-decoration: underline;
}

.bg-mm-item--dropdown > .bg-mm-dropdown {
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 900;
}

.bg-mm-item--dropdown:hover > .bg-mm-dropdown,
.bg-mm-item--dropdown:focus-within > .bg-mm-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bg-mm-dropdown-item {
    position: relative;
}

.bg-mm-dropdown-item > a {
    display: block;
    padding: 6px 18px;
    text-decoration: none;
    white-space: nowrap;
}

.bg-mm-dropdown-item > a:hover,
.bg-mm-dropdown-item > a:focus {
    background: rgba(0, 0, 0, 0.04);
}

.bg-mm-dropdown-item--has-children > .bg-mm-dropdown-sub {
    position: absolute;
    top: 0;
    inset-inline-start: 100%;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.bg-mm-dropdown-item--has-children:hover > .bg-mm-dropdown-sub,
.bg-mm-dropdown-item--has-children:focus-within > .bg-mm-dropdown-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bg-mm-overlay,
.bg-mm-drawer {
    display: none;
}

@media (min-width: 1025px) {
    .bg-mm-overlay {
        display: none !important;
    }

    .bg-mm-drawer {
        display: block !important;
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        width: auto;
        height: auto;
        overflow: visible;
    }

    .bg-mm-drawer-head {
        display: none !important;
    }

    .bg-mm-menu {
        display: flex;
        flex-direction: row;
        gap: 24px;
        padding: 0;
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 1024px) {
    .bg-mm-toggle {
        display: inline-flex;
        z-index: 3;
    }

    .bg-mm-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 3;
    }

    .bg-mm-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .bg-mm-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        height: 100dvh;
        width: min(86vw, 360px);
        background: #ffffff;
        box-shadow: 0 18px 60px rgba(0,0,0,0.18);
        transform: translate3d(100%,0,0);
        transition: transform 0.25s ease;
        z-index: 4;
        overflow: hidden;
    }

    .bg-mm-nav.bg-mm-nav--open .bg-mm-drawer {
        transform: translate3d(0,0,0);
    }

    .bg-mm-nav.bg-mm-nav--open .bg-mm-toggle {
        visibility: hidden;
        pointer-events: none;
    }

    .bg-mm-drawer-head {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 16px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .bg-mm-drawer-title {
        font-weight: 700;
    }

    .bg-mm-drawer-close {
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent !important;
        box-shadow: none !important;
        cursor: pointer;
        position: relative;
        color: #111;
        -webkit-appearance: none;
        appearance: none;
    }

    .bg-mm-drawer-close::before,
    .bg-mm-drawer-close::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 22px;
        height: 2px;
        background: currentColor;
    }

    .bg-mm-drawer-close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .bg-mm-drawer-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .bg-mm-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px 16px 18px;
        margin: 0;
        list-style: none;
        overflow-y: auto;
        height: calc(100dvh - 70px);
        -webkit-overflow-scrolling: touch;
    }

    .bg-mm-menu a,
    .bg-mm-link-label {
        color: #111;
        opacity: 1;
        visibility: visible;
    }

    .bg-mm-item {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        padding: 0;
    }

    .bg-mm-link {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
    }

    .bg-mm-item--mega > .bg-mm-link::after,
    .bg-mm-item--dropdown > .bg-mm-link::after {
        transform: translateY(2px) rotate(0deg);
        transition: transform 0.2s ease;
    }

    .bg-mm-item--open > .bg-mm-link::after {
        transform: translateY(2px) rotate(180deg);
    }

    .bg-mm-panel {
        position: static;
        inset-inline-start: auto;
        top: auto;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .bg-mm-item--mega.bg-mm-item--open > .bg-mm-panel {
        max-height: 2000px;
    }

    .bg-mm-panel-inner {
        display: block;
        width: 100%;
        max-width: none;
        padding: 10px 12px 14px;
        background: #EDEAE6;
        border-radius: 12px;
        box-shadow: none;
    }

    .bg-mm-col {
        padding: 0 0 10px;
    }

    .bg-mm-col-list {
        padding: 0;
    }

    .bg-mm-col-item a {
        display: block;
        padding: 10px 0;
    }

    .bg-mm-item--dropdown > .bg-mm-dropdown {
        position: static;
        min-width: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        padding: 0;
        background: transparent;
    }

    .bg-mm-item--dropdown.bg-mm-item--open > .bg-mm-dropdown {
        max-height: 2000px;
    }

    .bg-mm-dropdown-item > a {
        padding: 12px 0;
        white-space: normal;
    }

    .bg-mm-dropdown-item--has-children > .bg-mm-dropdown-sub {
        position: static;
        min-width: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        padding: 0 0 0 12px;
        background: transparent;
    }

    .bg-mm-dropdown-item--has-children.bg-mm-item--open > .bg-mm-dropdown-sub {
        max-height: 2000px;
    }

    .bg-mm-dropdown-item--has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bg-mm-dropdown-item--has-children > a::after {
        content: "";
        display: inline-block;
        margin-inline-start: 6px;
        border: 4px solid transparent;
        border-top-color: currentColor;
        transform: translateY(2px);
    }
}

