/* ====================================
   MP Mobile Menu - Premium Styles
   mp_temaayarlar / mp_mobile_menu.css
   ==================================== */

/* -- Mobile Menu Wrapper Panel -- */
#mobile_menu_wrapper {
    display: block !important;
    overflow: hidden;
    position: fixed;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: 320px;
    z-index: 9999;
    margin: 0;
    padding: 0;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0,0,0,0.12);
}

/* Default: slide from left */
#mobile_menu_wrapper {
    left: 0 !important;
    right: auto !important;
    transform: translate(-100%, 0) !important;
}

/* When open */
#mobile_menu_wrapper.box-menu {
    transform: translate(0, 0) !important;
}

/* Slide from right variant */
body.mp-mobile-menu-right #mobile_menu_wrapper {
    left: auto !important;
    right: 0 !important;
    transform: translate(100%, 0) !important;
}
body.mp-mobile-menu-right #mobile_menu_wrapper.box-menu {
    transform: translate(0, 0) !important;
}

/* -- Disable theme's own overlay (we use #mp-mobile-overlay instead) -- */
#menu-icon.open-menu::after {
    display: none !important;
}

/* -- Overlay -- */
#mp-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    cursor: crosshair;
}
#mp-mobile-overlay.active {
    display: block;
}

/* -- Close Button -- */
#mobile_menu_wrapper .menu-close {
    background: var(--color-primary, #1e293b);
    color: #fff;
    height: 50px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.3s;
}
#mobile_menu_wrapper .menu-close:hover {
    background-color: var(--color-primary-dark, #0f172a);
}

/* -- Tab Navigation (Menu / Kategoriler) -- */
#mobile_menu_wrapper .nav-mobile-menu {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    list-style: none;
    margin: 0;
    padding: 0;
}
#mobile_menu_wrapper .nav-mobile-menu li {
    flex: 1;
    text-align: center;
    list-style: none;
}
#mobile_menu_wrapper .nav-mobile-menu li a {
    display: block;
    padding: 12px 8px;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
#mobile_menu_wrapper .nav-mobile-menu li a.active,
#mobile_menu_wrapper .nav-mobile-menu li a:hover {
    color: var(--color-primary, #1e293b);
    border-bottom-color: var(--color-primary, #1e293b);
}

/* -- Mobile Megamenu List Items -- */
#mobile_menu_wrapper #mobile-megamenu ul,
#mobile_menu_wrapper #mobile-megamenu li,
#mobile_menu_wrapper #mobile_vegamenu ul,
#mobile_menu_wrapper #mobile_vegamenu li {
    list-style: none;
    list-style-type: none;
}
#mobile_menu_wrapper #mobile-megamenu .pos-menu-horizontal .menu-content {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}
#mobile_menu_wrapper #mobile-megamenu .pos-menu-horizontal .menu-content .menu-item {
    float: none;
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
#mobile_menu_wrapper #mobile-megamenu .pos-menu-horizontal .menu-content .menu-item > a {
    display: block;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 15px;
    color: #334155;
    text-decoration: none;
    text-align: left;
    transition: color 0.3s ease, background 0.3s ease;
}
#mobile_menu_wrapper #mobile-megamenu .pos-menu-horizontal .menu-content .menu-item > a:hover,
#mobile_menu_wrapper #mobile-megamenu .pos-menu-horizontal .menu-content .menu-item.active > a {
    color: var(--color-primary, #1e293b);
    background: #f8fafc;
}

/* Submenu icon toggle */
#mobile_menu_wrapper .icon-drop-mobile {
    position: absolute;
    right: 15px;
    top: 13px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f6f1f; /* Asma Yaprak Green color */
    transition: color 0.3s;
    width: 24px;
    height: 24px;
}
#mobile_menu_wrapper .icon-drop-mobile:hover {
    color: #385014;
}

#mobile_menu_wrapper .icon-drop-mobile .material-icons {
    font-family: inherit !important;
    font-size: 0 !important; /* Hide literal text 'add' / 'remove' */
    display: inline-block !important;
    position: relative !important;
    width: 14px !important;
    height: 14px !important;
    color: currentColor !important;
}

/* '+' icon lines */
#mobile_menu_wrapper .icon-drop-mobile .material-icons.add::before,
#mobile_menu_wrapper .icon-drop-mobile .material-icons.add::after {
    content: "" !important;
    position: absolute !important;
    background-color: currentColor !important;
}
#mobile_menu_wrapper .icon-drop-mobile .material-icons.add::before {
    top: 6px !important;
    left: 0 !important;
    width: 14px !important;
    height: 2px !important;
}
#mobile_menu_wrapper .icon-drop-mobile .material-icons.add::after {
    top: 0 !important;
    left: 6px !important;
    width: 2px !important;
    height: 14px !important;
}

/* '-' icon line */
#mobile_menu_wrapper .icon-drop-mobile .material-icons.remove::before {
    content: "" !important;
    position: absolute !important;
    background-color: currentColor !important;
    top: 6px !important;
    left: 0 !important;
    width: 14px !important;
    height: 2px !important;
}

#mobile_menu_wrapper .icon-drop-mobile .remove {
    display: none !important;
}
#mobile_menu_wrapper .menu-item.open > .icon-drop-mobile .add,
#mobile_menu_wrapper .submenu-item.open > .icon-drop-mobile .add,
#mobile_menu_wrapper .pos-menu-col.open > .icon-drop-mobile .add,
#mobile_menu_wrapper li.open > .icon-drop-mobile .add {
    display: none !important;
}
#mobile_menu_wrapper .menu-item.open > .icon-drop-mobile .remove,
#mobile_menu_wrapper .submenu-item.open > .icon-drop-mobile .remove,
#mobile_menu_wrapper .pos-menu-col.open > .icon-drop-mobile .remove,
#mobile_menu_wrapper li.open > .icon-drop-mobile .remove {
    display: inline-block !important;
}

/* Reset left padding/margin on all nested lists inside mobile submenus to fix excess indentation */
#mobile_menu_wrapper .pos-sub-menu ul,
#mobile_menu_wrapper .pos-sub-menu li,
#mobile_menu_wrapper .column_dropdown ul,
#mobile_menu_wrapper .column_dropdown li,
#mobile_menu_wrapper .category-sub-menu ul,
#mobile_menu_wrapper .category-sub-menu li {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Reset margins/paddings for bootstrap row and columns inside mobile menu to align text perfectly */
#mobile_menu_wrapper .pos-sub-menu .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
#mobile_menu_wrapper .pos-sub-menu .pos-menu-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Submenu dropdown */
#mobile_menu_wrapper .pos-sub-menu,
#mobile_menu_wrapper .column_dropdown,
#mobile_menu_wrapper .category-sub-menu {
    display: none;
    padding-left: 15px !important; /* Controlled subtle indentation */
    background: #f8fafc;
}
#mobile_menu_wrapper .menu-item.open > .pos-sub-menu,
#mobile_menu_wrapper .open > .column_dropdown,
#mobile_menu_wrapper .open > .category-sub-menu {
    display: block;
}

/* Sub-level links */
#mobile_menu_wrapper .pos-sub-menu a,
#mobile_menu_wrapper .ul-column li a,
#mobile_menu_wrapper .category-sub-menu li a {
    display: block;
    padding: 10px 15px !important; /* Reduced right padding for a cleaner compact look */
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}
#mobile_menu_wrapper .pos-sub-menu a:hover,
#mobile_menu_wrapper .ul-column li a:hover,
#mobile_menu_wrapper .category-sub-menu li a:hover {
    color: var(--color-primary, #1e293b);
}

/* Column title in sub */
#mobile_menu_wrapper .column_title {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

/* Vegamenu mobile items */
#mobile_menu_wrapper #mobile_vegamenu .mobile-menu ul {
    margin: 0;
    padding: 0;
}
#mobile_menu_wrapper #mobile_vegamenu .mobile-menu ul li {
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
#mobile_menu_wrapper #mobile_vegamenu .mobile-menu ul li a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    text-align: left;
}
#mobile_menu_wrapper #mobile_vegamenu .mobile-menu ul li a:hover {
    color: var(--color-primary, #1e293b);
    background: #f8fafc;
}

/* Extra hooks area */
#mobile_menu_wrapper .currency-selector img,
#mobile_menu_wrapper .language-selector img {
    vertical-align: middle;
    margin-right: 5px;
}
#mobile_menu_wrapper .currency-selector button,
#mobile_menu_wrapper .language-selector button {
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    text-align: left;
    display: block;
    color: #334155;
    font-size: 14px;
    padding: 12px 20px;
    cursor: pointer;
}

/* Hidden on mobile */
#mobile_menu_wrapper .hidden-mobile {
    display: none !important;
}

/* Hamburger Icon */
#menu-icon {
    cursor: pointer;
    font-size: 24px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    color: #1e293b;
    transition: color 0.3s;
}
#menu-icon:hover {
    color: var(--color-primary, #1e293b);
}
