/**
 * AWA izole mobil menü — yalnızca #awp-mnav-toggle ve .awp-mnav-* altında kurallar.
 * Tema navigation / mm-drillslide / modern-mobile-* ile çakışmaz.
 */

#awp-mnav-toggle.awp-mnav-toggle {
    color: inherit;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    flex-shrink: 0;
}

#awp-mnav-toggle.awp-mnav-toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.awp-mnav-toggle__bars {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    border-radius: 1px;
}

.awp-mnav-toggle__close {
    display: none;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
    color: currentColor;
}

body.mobile-menu-opened #awp-mnav-toggle.awp-mnav-toggle .awp-mnav-toggle__bars {
    display: none;
}

body.mobile-menu-opened #awp-mnav-toggle.awp-mnav-toggle .awp-mnav-toggle__close {
    display: block;
}

.mobile-menu-opened #header-mobile-navigation .awp-mnav-host {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.mobile-menu-opened #header-mobile-navigation .awp-mnav-root {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-menu-opened #header-mobile-navigation .awp-mnav-stage {
    position: relative;
    flex: 1 1 0%;
    min-height: min(72vh, 780px);
    width: 100%;
    overflow: hidden;
    background: #fff;
    isolation: isolate;
}

.awp-mnav-sheet {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.awp-mnav-sheet.awp-mnav-sheet--active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.awp-mnav-sheethead {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 3;
}

.awp-mnav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.awp-mnav-back:hover {
    background: #e5e7eb;
}

.awp-mnav-sheethead__title {
    font-size: 17px;
    font-weight: 600;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.awp-mnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.awp-mnav-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f3f4f6;
}

.awp-mnav-link {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    box-sizing: border-box;
}

.awp-mnav-link:active {
    background: #f3f4f6;
}

.awp-mnav-branch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    margin: 0;
    border: 0;
    background: #fff;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.awp-mnav-branch:active {
    background: #f3f4f6;
}

.awp-mnav-branch__chev {
    font-size: 22px;
    color: #9ca3af;
    flex-shrink: 0;
    padding-left: 12px;
}

.awp-mnav-empty {
    padding: 20px 16px;
    font-size: 16px;
    color: #6b7280;
}

#awp-mnav-root-sheet.awp-mnav-sheet {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#awp-mnav-root-sheet.awp-mnav-sheet:not(.awp-mnav-sheet--active) {
    transform: translateX(-28%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Mobil header: logo ortada tıklanabilir (menü/sepet üstte kalsın) */
@media (max-width: 991.98px) {
    #awp-mnav-toggle.awp-mnav-toggle {
        position: relative;
        z-index: 5;
    }

    .header-mobile .header-mobile__tools {
        position: relative;
        z-index: 5;
    }

    .header-mobile .container.d-flex .logo,
    .header-mobile > .container.d-flex .logo {
        z-index: 4;
    }

    .header-mobile .logo a {
        cursor: pointer;
        pointer-events: auto;
    }

    .header-mobile .logo a img {
        pointer-events: auto;
    }
}
