/* =========================================================
   Header Mobile – yektanet about
   ========================================================= */

/* ---------- نوار بالا ---------- */
.mobile_header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: #fff;
    border-bottom: 4px solid #ffcf00;
}
#mobile-menu-holder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
}
#right-side-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
#right-side-header img {
    display: block;
    width: 90px;
    height: auto;
}

/* ---------- همبرگر ---------- */
.mobile_header .navbar-toggle {
    background: none;
    border: 0;
    padding: 6px;
    margin: 0;
    cursor: pointer;
}
.mobile_header .navbar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    background: #333;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.mobile_header .navbar-toggle.change .bar1 { transform: translateY(6px) rotate(45deg); }
.mobile_header .navbar-toggle.change .bar2 { opacity: 0; }
.mobile_header .navbar-toggle.change .bar3 { transform: translateY(-6px) rotate(-45deg); }

/* ---------- ورود ---------- */
.mobile_header .btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile_header .vip_btn {
    display: inline-block;
    height: 36px;
    line-height: 20px;
    padding: 8px 14px;
    margin: 0;
    min-height: 0;
    border-radius: 6px;
    background: #FED813;
    color: #323232;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    text-decoration: none;
}
.mobile_header .vip_btn:hover { background: #FFB113; color: #000; }

/* ---------- جستجو ---------- */
.mobile_header .search-box-mobile .search-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #EFEFEF;
    color: #585858;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mobile_header .search-box-mobile form {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    align-items: center;
    gap: 8px;
    padding: 0 12px !important;
    margin: 0 !important;
    background: #fff !important;
    border-radius: 0 !important;
}
.mobile_header .search-box-mobile.open form { display: flex; }
.mobile_header .search-field {
    position: relative;
    flex: 1;
}
.mobile_header .search-field input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 44px;
    border: 0;
    border-radius: 6px;
    background: #EFEFEF;
    color: #323232;
    font-size: 14px;
    outline: none;
}
/* خنثی کردن استایل عمومی form button قالب */
.mobile_header .search-field .search-submit,
.mobile_header .search-box-mobile .close-search {
    width: 40px !important;
    height: 40px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    background: transparent !important;
    color: #585858;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mobile_header .search-field .search-submit {
    position: absolute;
    top: 0;
    left: 0;
}
.mobile_header .search-box-mobile .close-search {
    font-size: 26px;
    line-height: 1;
}

/* =========================================================
   منوی کشویی
   ========================================================= */
#mobile_menu {
    display: none;
    position: fixed;
    top: 64px;          /* با JS دقیق تنظیم می‌شود */
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    background: #fff;
    padding: 0 0 40px;
}
#mobile_menu.open { display: block; }
body.yk-menu-open { overflow: hidden; }

#mobile_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#mobile_menu li { list-style: none; margin: 0; }
#mobile_menu li::before { display: none !important; }

#mobile_menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000;
    text-decoration: none;
}
#mobile_menu .mm-text {
    display: inline-flex;
    align-items: center;
    line-height: 1.6 !important;
}

/* سطح ۱ */
#mobile_menu .mobile-nav > li > a {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #e5e5e5;
}

/* سطح ۲: آیکون مربع سبزآبی */
#mobile_menu .mobile-nav > li > .sub-menu {
    display: none;
    padding: 6px 0 10px;
    border-bottom: 1px solid #e5e5e5;
}
#mobile_menu .mobile-nav > li.open > .sub-menu { display: block; }

#mobile_menu .mobile-nav > li > .sub-menu > li > a {
    padding: 10px 16px;
    margin-right: 16px;
    font-size: 15px;
    font-weight: bold;
}
#mobile_menu .mobile-nav > li > .sub-menu > li > a .mm-text::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid #2FBEAA;
    border-radius: 6px;
    flex-shrink: 0;
}

/* سطح ۳ و بعد: باکس خاکستری */
#mobile_menu .sub-menu .sub-menu {
    display: none;
    margin: 4px 44px 8px 16px;
    padding: 6px 0;
    background: #F5F5F9;
    border-radius: 8px;
}
#mobile_menu .sub-menu li.open > .sub-menu { display: block; }

#mobile_menu .sub-menu .sub-menu a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
#mobile_menu .sub-menu .sub-menu a .mm-text::before {
    content: "";
    width: 6px;
    height: 2px;
    margin-left: 8px;
    background: #2FBEAA;
    border-radius: 2px;
    flex-shrink: 0;
}
#mobile_menu .sub-menu .sub-menu .sub-menu {
    margin: 0 14px 4px 0;
    background: transparent;
}

/* فلش باز و بسته */
#mobile_menu .menu-item-has-children > a::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-left: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(-45deg) translateY(-2px);
    transition: transform .2s;
    flex-shrink: 0;
}
#mobile_menu .sub-menu .menu-item-has-children > a::after { border-color: #000; }
#mobile_menu .menu-item-has-children.open > a::after {
    transform: rotate(135deg) translateY(-2px);
}
#mobile_menu .sub-menu a:hover { color: #FFB113; }

/* تلفن پایین منو */
#mobile_menu .mobile-phone {
    display: block;
    margin: 24px 16px 0;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    background: #EFEFEF;
    color: #323232;
    direction: ltr;
}