@font-face {
font-family: 'iranyekan';
src: url('../fonts/iranyekanr.woff2') format('woff2');
font-weight: normal;
font-style: normal;
font-feature-settings: "ss02";
font-display: swap;

}

@font-face {
font-family: 'iranyekan';
src: url('../fonts/iranyekanb.woff2') format('woff2');
font-weight: bold;
font-style: normal;
font-feature-settings: "ss02";
font-display: swap;

}
/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;
    direction: rtl;
    background: #fff;
}


/* =========================================
   CONTAINER
========================================= */

.header .container {
    width: 100%;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 35px;
    box-sizing: border-box;
}


/* =========================================
   TOP HEADER
========================================= */

.top-header {
    width: 100%;
    height: 59px;
    background: #202125;
    color: #fff;
}

.top-header-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* سمت راست */

.top-support {
    display: flex;
    align-items: center;

    gap: 5px;

    color: #fff;

    font-size: 13px;
    font-weight: 400;

    white-space: nowrap;
}

.top-support strong {
    font-weight: 700;
color:#fff;
}


/* =========================================
   TOP CONTACT
========================================= */

.top-contact-menu {
    display: flex;
    align-items: center;

    height: 100%;
}

.top-contact-menu a {
    height: 38px;

    display: flex;
    align-items: center;

    padding: 0 20px;

    color: #fff;
    text-decoration: none;

    font-size: 12px;

    white-space: nowrap;

    border-right: 1px solid rgba(255,255,255,0.16);

    transition: 0.2s ease;
}

.top-contact-menu a:first-child {
    border-left: none;
}

.top-contact-menu a:hover {
    color: #e6312d;
}

.top-contact-menu strong {
    margin-right: 4px;
    font-weight: 700;
}

/* =========================================
   MOBILE TOP HEADER
========================================= */

@media (max-width: 768px) {

    .top-header {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 0;
        background: #202125;
    }

    .top-header-container {
        width: 100%;
        max-width: 100%;
        height: auto;

        display: flex;
        flex-direction: column;

        align-items: stretch;
        justify-content: flex-start;

        padding: 9px 20px 8px;
        box-sizing: border-box;
    }


    /* =========================
       متن بالایی
    ========================= */

    .top-support {
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        gap: 3px;

        margin: 0 0 6px;

        font-size: 11px;
        line-height: 1.4;

        white-space: nowrap;
    }

    .top-support a {
        color: #fff;
        text-decoration: none;
        padding: 0;
        margin: 0;
    }

    .top-support strong {
        color: #fff;
        font-size: 11px;
        font-weight: 700;
    }


    /* =========================
       بخش شماره‌ها
    ========================= */

    .top-contact-menu {
        width: 100%;
        height: auto;

        display: grid;
        grid-template-columns: 1fr 1fr;

        align-items: center;

        margin: 0;
        padding: 0;

        border: none;
    }


    /* =========================
       هر شماره
    ========================= */

    .top-contact-menu a {
        width: 100%;
        height: 31px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;
        margin: 0;

        box-sizing: border-box;

        color: #fff;
        text-decoration: none;

        font-size: 12px;
        line-height: 1;

        white-space: nowrap;

        border: none !important;
        outline: none;

        background: transparent;
    }

    .top-contact-menu a strong {
        margin-right: 3px;

        color: #fff;

        font-size: 12px;
        font-weight: 700;
    }


    /* =========================
       حذف کامل خطوط و کادرها
    ========================= */

    .top-contact-menu a:first-child,
    .top-contact-menu a:nth-child(2),
    .top-contact-menu a:nth-child(3),
    .top-contact-menu a:nth-child(4) {
        border: none !important;
    }


    /* =========================
       Hover
    ========================= */

    .top-contact-menu a:hover {
        color: #e6312d;
        background: transparent;
    }

    .top-contact-menu a:hover strong {
        color: #e6312d;
    }

}
/* =========================================
   MAIN HEADER
========================================= */

.main-header {
    width: 100%;
    height: 100px;
    background: #fff;
}

.main-header-container {
    height: 100%;

    display: flex;
    align-items: center;

    /* در RTL از راست شروع می‌کنیم */
    justify-content: flex-start;

    direction: rtl;

    gap: 55px;
}


/* =========================================
   LOGO
========================================= */

.header-logo {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.header-logo img {
    display: block;

    width: auto;
    max-width: 155px;
    max-height: 75px;

    object-fit: contain;
}

.header-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.header-logo .custom-logo {
    display: block;

    width: auto;
    max-width: 155px;
    max-height: 75px;
}


/* =========================================
   SITE TITLE
========================================= */

.header-logo .site-title {
    margin: 0;

    color: #111;

    font-family: 'iranyekan', sans-serif;

    font-size: 18px;
    font-weight: bold;

    white-space: nowrap;
}


/* =========================================
   MAIN MENU
========================================= */

.header-menu {
    flex: 0 0 auto;

    height: 100%;

    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;
}


/* UL */

.header-menu .mega-menu-root {

    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;

    gap: 30px;

    direction: rtl;
}


/* LI */

.header-menu .mega-menu-root > li {

    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* لینک اصلی */

.header-menu .mega-menu-root > li > a {

    position: relative;

    display: flex;
    align-items: center;

    height: 104px;

    padding: 0;

    color: #111;

    font-family: 'iranyekan', sans-serif;

    font-size: 16px;
    font-weight: normal;

    text-decoration: none;

    white-space: nowrap;

    transition: color .2s ease;
}


/* هاور */

.header-menu .mega-menu-root > li:hover > a {
    color: #e6322c;
}


/* آیتم فعال */

.header-menu .mega-menu-root > li.current-menu-item > a,
.header-menu .mega-menu-root > li.current-menu-ancestor > a,
.header-menu .mega-menu-root > li.current-menu-parent > a {
    color: #e6322c;
}


/* =========================================
   فلش فقط برای آیتم دارای زیرمجموعه
========================================= */

.header-menu .mega-menu-root > li.menu-item-has-children > a {

    padding-left: 20px;

}


/* فلش */

.header-menu .mega-menu-root > li.menu-item-has-children > a::after {

    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 7px;
    height: 7px;

    margin-top: -5px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg);

    transition: .2s ease;
}


/* هنگام هاور */

.header-menu .mega-menu-root > li.menu-item-has-children:hover > a::after {

    margin-top: -1px;

    transform: rotate(225deg);
}


/* =========================================
   DROPDOWN
========================================= */

.header-menu .mega-menu-root .sub-menu {

    position: absolute;

    top: 100%;
    right: 0;

    min-width: 220px;

    margin: 0;
    padding: 8px 0;

    background: #fff;

    border-top: 2px solid #e6322c;

    box-shadow: 0 8px 25px rgba(0,0,0,.12);

    list-style: none;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}


/* باز شدن */

.header-menu .mega-menu-root li.menu-item-has-children:hover > .sub-menu {

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================================
   DROPDOWN ITEM
========================================= */

.header-menu .sub-menu li {

    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}


.header-menu .sub-menu li a {

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 44px;

    padding: 8px 18px;

    box-sizing: border-box;

    color: #222;

    font-family: 'iranyekan', sans-serif;

    font-size: 14px;
    font-weight: normal;

    text-decoration: none;

    white-space: nowrap;

    transition: .2s ease;
}


.header-menu .sub-menu li:hover > a {

    color: #e6322c;

    background: #f7f7f7;
}


/* =========================================
   LEVEL 2
========================================= */

.header-menu .sub-menu .sub-menu {

    top: -8px;
    right: 100%;

    transform: translateX(10px);
}


.header-menu .sub-menu li.menu-item-has-children:hover > .sub-menu {

    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* فلش سطح دوم */

.header-menu .sub-menu li.menu-item-has-children > a {

    padding-left: 30px;
}

.header-menu .sub-menu li.menu-item-has-children > a::after {

    content: "";

    position: absolute;

    left: 15px;
    top: 50%;

    width: 6px;
    height: 6px;

    margin-top: -4px;

    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;

    transform: rotate(45deg);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 991px) {


    .main-header {
        height: auto;
    }

    .main-header-container {
        min-height: 80px;
    }

    .header-menu {
        margin: 0;
    }

    .header-menu .mega-menu-root {
        gap: 15px;
    }

    .header-menu .mega-menu-root > li > a {
        height: 80px;
        font-size: 14px;
    }

}
/* اصلاح تداخل نمایش */
@media (min-width: 769px) {
    .mobile-header, .mobile-panel, .mobile-overlay, .top-bar-announcement {
        display: none !important;
    }
}
/* فقط در حالت موبایل نمایش داده شود */
@media (max-width: 768px) {

.header-bottom,
.main-header,
.desktop-header {
  display:none !important;
}


.mobile-header {
    display: flex!important;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    background: #fff;
    position: relative;
    border-bottom: 1px solid #eee;
}
.mobile-logo{
  position:absolute;
  left:50%;
  transform:translateX(-50%);


}

.mobile-logo img{
  max-width:148px;
  height:auto;

}
/* آیکون های سمت راست (جستجو و پروفایل) */
.mobile-header-left {
    display: flex;
    align-items: center;
    gap: 15px; /* فاصله بین دو آیکون */
}

.mobile-header-left svg {
    display: block;
    color: #000; /* رنگ مشکی خالص */
    transition: 0.3s;
}

.mobile-header-left a, 
.mobile-header-left button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}
.mobile-menu-btn {
    display: flex;
    align-items: center; /* تراز عمودی متن و آیکون */
    gap: 5px; /* فاصله بین آیکون و کلمه منو */
    background: #e4342d;
    border: none;
    padding: 4px 7px;
    cursor: pointer;
    color: #f8f8f8; /* رنگ دلخواه */ 
    border-radius: 30px;
}

.mobile-menu-btn i {
    font-style: normal;
    font-size: 24px; /* سایز آیکون همبرگری */
    line-height: 1;
    background-color:#f4f4f4 ;
    border-radius: 50px;
    color: #000;
    padding: 7px;
}

.mobile-menu-btn span {
    font-size: 14px; /* سایز کلمه منو */
    font-weight: bold;
    font-family: inherit;
}

/* overlay */
.mobile-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  opacity:0;
  visibility:hidden;
  transition:.3s;
  z-index:9998;
}

.mobile-overlay.active{
  opacity:1;
  visibility:visible;
}

.mobile-panel {
    position: fixed;
    top: 0;
    left: 0; 
    width: 280px;
    max-width: 85%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(-101%);
    transition: transform .3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: none; /* وقتی بسته است سایه نداشته باشه */
}

.mobile-panel.active {
    transform: translateX(0);
    box-shadow: 5px 0 15px rgba(0,0,0,0.1); /* فقط وقتی باز شد سایه بدهد */
}

/* top */
.mobile-panel-top{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-bottom:1px solid #eee;
}


.panel-search{
  flex:1;
}

.panel-search input{
  width:100%;
  padding:10px;
  border:1px solid #ddd;
}

.close-panel{
background:none;
 color:#a87c77;
  border:none;
  font-size:20px;
 
}

/* tabs */
.panel-tabs{
  display:flex;
  border-bottom:1px solid #eee;
}

.panel-tabs button{
  flex:1;
  padding:12px;
  border:none;
  background:#f5f5f5;
  color: #000;
  font-size: 12px;
  font-weight: bold;
}

.panel-tabs button.active{
  background:#fff;
  border-bottom:2px solid #a87c77;
  font-weight:bold;
}

/* content */
.panel-content{
  flex:1;
  overflow-y:auto;
}

.tab-content{
  display:none;
}

.tab-content.active{
  display:block;
}

}

@media (max-width: 768px) {
.mobile-menu, .mobile-cats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
}

.mobile-menu li, .mobile-cats li {
    border-bottom: 1px solid #eee;
    width: 100%;
    display: block; 
}

.mobile-menu li a, .mobile-cats li a {
    display: block;
    padding: 15px;
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
    text-align: right; /* تراز راست برای زبان فارسی */
    transition: 0.3s;
}

/* افکت ساده هنگام لمس یا هاور */
.mobile-menu li a:active, .mobile-cats li a:active {
    background-color: #f9f9f9;
}
.cat-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse; /* برای قرار گرفتن فلش در سمت چپ در سایت فارسی */
    border-bottom: 1px solid #eee;
}

.cat-item-wrapper a {
    flex: 1;
    padding: 14px;
    border-bottom: none !important;
}

.toggle-child {
    background: #f1f1f1;
    border: none;
    border-left: 1px solid #eee;
    width: 45px;
    height: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* استایل زیرمنوها */
.sub-cats {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
}

.sub-cats li a {
    padding: 12px 30px 12px 15px !important; 
    font-size: 13px;
    color: #555;
}


.toggle-child.open {
    transform: rotate(90deg);
    background: var(--accent);
    color: #fff;
}
.sub-cats {
        list-style: none;
        padding: 0;
        margin: 0;
        background: #f9f9f9;
    }

    .sub-cats li a {
        display: block;
        padding: 12px 30px 12px 15px !important;
        font-size: 13px;
        color: #555;
    }

    /* برای سطح سوم کمی تو رفتگی بیشتر */
    .sub-cats .sub-cats li a {
        padding-right: 45px !important;
        background: #fff;
    }}
.uder-header-mobile {
    margin: 20px;
}
/* =========================================================
   TABLET RESPONSIVE
   فقط تبلت: 769px تا 1024px
   دسکتاپ و موبایل دست نخورده می‌مانند
========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

    /* =====================================================
       GENERAL HEADER
    ===================================================== */

    .header {
        width: 100%;
        overflow: visible;
    }

    .header .container {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        box-sizing: border-box;
    }


    /* =====================================================
       TOP HEADER
    ===================================================== */

    .top-header {
        height: 52px;
    }

    .top-header-container {
        padding-left: 18px;
        padding-right: 18px;
        gap: 15px;
    }

    .top-support {
        font-size: 11px;
        gap: 4px;
        flex-shrink: 0;
    }

    .top-support strong {
        font-size: 11px;
    }


    /* =====================================================
       TOP CONTACT MENU
    ===================================================== */

    .top-contact-menu {
        flex: 1;
        justify-content: flex-start;
        min-width: 0;
    }

    .top-contact-menu a {
        height: 34px;
        padding: 0 9px;
        font-size: 10.5px;
    }

    .top-contact-menu strong {
        margin-right: 3px;
        font-size: 10.5px;
    }


    /* =====================================================
       MAIN HEADER
    ===================================================== */

    .main-header {
        width: 100%;
        height: 88px;
    }

    .main-header-container {
        height: 100%;
        min-height: 0;

        gap: 25px;

        padding-left: 18px;
        padding-right: 18px;

        box-sizing: border-box;
    }


    /* =====================================================
       LOGO
    ===================================================== */

    .header-logo {
        flex: 0 0 auto;
    }

    .header-logo img,
    .header-logo .custom-logo {
        max-width: 125px;
        max-height: 62px;
    }

    .header-logo .site-title {
        font-size: 15px;
    }


    /* =====================================================
       MAIN MENU
    ===================================================== */

    .header-menu {
        flex: 1 1 auto;
        min-width: 0;

        height: 100%;

        display: flex;
        align-items: center;

        overflow: visible;
    }

    .header-menu .mega-menu-root {
        width: 100%;

        display: flex;
        align-items: center;

        gap: 12px;

        justify-content: flex-start;

        white-space: nowrap;
    }


    /* =====================================================
       MENU ITEMS
    ===================================================== */

    .header-menu .mega-menu-root > li {
        flex: 0 0 auto;
    }

    .header-menu .mega-menu-root > li > a {
        height: 88px;

        font-size: 12.5px;

        white-space: nowrap;
    }


    /* =====================================================
       ARROW
    ===================================================== */

    .header-menu .mega-menu-root > li.menu-item-has-children > a {
        padding-left: 16px;
    }

    .header-menu .mega-menu-root > li.menu-item-has-children > a::after {
        width: 6px;
        height: 6px;

        border-width: 1px;

        left: 2px;
    }


    /* =====================================================
       DROPDOWN
    ===================================================== */

    .header-menu .mega-menu-root .sub-menu {
        min-width: 190px;

        padding: 6px 0;

        top: 100%;
    }

    .header-menu .sub-menu li a {
        min-height: 40px;

        padding: 7px 14px;

        font-size: 12px;
    }


    /* =====================================================
       LEVEL 2 DROPDOWN
    ===================================================== */

    .header-menu .sub-menu .sub-menu {
        top: -6px;
        right: 100%;
    }

    .header-menu .sub-menu li.menu-item-has-children > a {
        padding-left: 25px;
    }

    .header-menu .sub-menu li.menu-item-has-children > a::after {
        left: 12px;

        width: 5px;
        height: 5px;
    }


    /* =====================================================
       MOBILE ELEMENTS MUST STAY HIDDEN
    ===================================================== */

    .mobile-header,
    .mobile-panel,
    .mobile-overlay,
    .top-bar-announcement {
        display: none !important;
    }

}
