/* Kılınç Gümüş — SoChic Mobil Menü 1.0.10
 * SoChic görsel diline yaklaştırılmış mobil drawer stilleri.
 */
.kilinc-custom-wrapper {
    padding: 20px;
    background: #fff;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 80px;
}
.km-header {
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
    padding: 0 0 16px 0;
}
.km-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.km-welcome {
    font-family: 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
}
.km-menu-close {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
.km-menu-close:hover,
.km-menu-close:focus {
    background: transparent;
    color: #000;
    outline: none;
}
.km-buttons {
    display: flex;
    gap: 10px;
    margin-top: 0;
    align-items: stretch;
}
.km-btn {
    flex: 1 1 0;
    min-height: 44px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background 0.2s;
}
.km-btn:hover { background: #e9e9e9; }
.km-list { list-style: none; padding: 0; margin: 0; }
.km-item { border-bottom: 1px solid #f4f4f4; }
.km-list > .km-item:last-child { border-bottom: 0; }
.km-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
    width: 100%;
}
.km-main-link { display: flex; align-items: center; pointer-events: none; min-width: 0; }
.km-img { width: 52px; height: 52px; object-fit: contain; margin-right: 16px; }
.km-name { font-size: 15px; font-weight: 500; color: #000; line-height: 1.35; }
.km-icon { font-size: 20px; color: #222; font-weight: 300; line-height: 1; }
.km-sub-menu {
    display: none;
    padding: 12px 0 16px;
    margin: 0;
    background: transparent;
    border-top: 1px solid #f0f0f0;
}
.km-sub-item {
    list-style: none;
    margin: 0;
    border-top: 0;
}
.km-sub-item + .km-sub-item { margin-top: 8px; }
.km-sub-item:last-child .km-sub-link { border-bottom: 0; }
.km-sub-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    text-align: left;
    text-decoration: none;
    color: #111;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    padding: 14px 18px 14px 22px;
    background: transparent;
    border-bottom: 1px solid #f3f3f3;
}
.km-header .km-buttons,
.km-footer-divider + .km-buttons {
    width: 100%;
}
.km-footer-divider + .km-buttons {
    margin-top: 12px;
}
.km-sub-link .km-arrow { margin-left: auto; }
.km-arrow {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 18px;
    font-weight: 400;
    color: #111;
    line-height: 1;
}
.km-view-all { font-weight: 600; }
.km-footer-divider {
    margin-top: 0;
    border-top: 1px solid #f1f1f1;
    padding-top: 12px;
}

@media (max-width: 849px) {
    .mfp-wrap:has(.sidebar-menu .kilinc-custom-wrapper) .mfp-container { padding: 0 !important; }
    .mfp-wrap:has(.sidebar-menu .kilinc-custom-wrapper) .mfp-content {
        width: 100% !important;
        max-width: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
    .mfp-wrap:has(.sidebar-menu .kilinc-custom-wrapper) .mfp-close {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        min-width: 1px !important;
        min-height: 1px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
    .sidebar-menu:has(.kilinc-custom-wrapper) {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }
    .sidebar-menu .kilinc-custom-wrapper {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 100%;
        overflow: visible;
        padding: calc(18px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    }
    .sidebar-menu .kilinc-custom-wrapper .km-trigger {
        box-sizing: border-box;
        min-height: 68px;
        padding: 10px 0;
        gap: 12px;
    }
    .sidebar-menu .kilinc-custom-wrapper .km-main-link {
        min-width: 0;
        flex: 1;
        display: flex;
        align-items: center;
    }
    .sidebar-menu .kilinc-custom-wrapper .km-img {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        object-fit: contain;
        margin-right: 14px;
    }
    .sidebar-menu .kilinc-custom-wrapper .km-name { white-space: normal; overflow-wrap: anywhere; }
    .sidebar-menu .kilinc-custom-wrapper .km-icon {
        flex: 0 0 20px;
        width: 20px;
        text-align: center;
        font-size: 20px;
        line-height: 1;
        color: #111;
    }
    .sidebar-menu .kilinc-custom-wrapper .km-icon::before,
    .sidebar-menu .kilinc-custom-wrapper .km-icon::after { content: none !important; }
    .sidebar-menu .kilinc-custom-wrapper .km-direct-arrow {
        position: relative;
        display: block;
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        margin-left: auto;
    }
    .sidebar-menu .kilinc-custom-wrapper .km-direct-arrow::before {
        content: "" !important;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 7px;
        height: 7px;
        border-top: 1.8px solid #000;
        border-right: 1.8px solid #000;
        transform: translate(-65%, -50%) rotate(45deg);
        box-sizing: border-box;
    }
    .sidebar-menu .kilinc-custom-wrapper .km-sub-menu,
    .sidebar-menu .kilinc-custom-wrapper .km-sub-item { list-style: none !important; }
    .sidebar-menu .kilinc-custom-wrapper .km-sub-item::marker { content: "" !important; }
    .sidebar-menu .kilinc-custom-wrapper .km-sub-item + .km-sub-item { margin-top: 8px; }
    .sidebar-menu .kilinc-custom-wrapper .km-sub-item:last-child .km-sub-link { border-bottom: 0; }
    .sidebar-menu .kilinc-custom-wrapper .km-sub-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        padding: 14px 18px 14px 22px;
        text-align: left !important;
        white-space: normal;
        background: transparent;
        border-bottom: 1px solid #f3f3f3;
        line-height: 1.45;
    }
    .sidebar-menu .kilinc-custom-wrapper .km-sub-link .km-arrow { margin-left: auto; }
    .sidebar-menu .kilinc-custom-wrapper .km-arrow {
        flex-shrink: 0;
        font-size: 17px;
        color: #111;
        font-weight: 400;
    }
    .sidebar-menu .kilinc-custom-wrapper .km-sub-menu[aria-hidden="true"] { display: none !important; }
    .sidebar-menu .kilinc-custom-wrapper .km-sub-menu[aria-hidden="false"] { display: block !important; }
    .sidebar-menu .kilinc-custom-wrapper .km-trigger:focus-visible,
    .sidebar-menu .kilinc-custom-wrapper a:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
}
