@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{
background:#fff;
}
.container{
    width:1300px;
    max-width:95%;
    margin:auto;
}
/* <!---------------------- ردیف بالا هدر ----------------------> */
.top-header{
    border-bottom:1px solid #eee;
    height:45px;
  border-bottom:1px solid #ddd;
}
.top-header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:100%;
}
.top-right ul{
    display:flex;
    gap:30px;
    list-style:none;
    margin:0;
    padding:0;
}
.top-right a{
    color:#333;
    text-decoration:none;
    font-size:14px;
}
.top-left{
    display:flex;
    align-items:center;
}

.socials a{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: .3s;
}

.socials a svg{
    width: 18px;
    height: 18px;
}

.socials a:hover{
    color: #000;
}

.socials{
    display:flex;
    align-items:center;
    gap:18px;
    padding-left:18px;
    margin-left:18px;
    border-left:1px solid #ddd;
  
}

.phone{
    font-size:14px;
    color:#555;
  padding:0 18px;
    margin:0 18px;
    border-left:1px solid #ddd;
    border-right:1px solid #ddd;
}

.phone strong{
    color:#8a5a16;
    font-weight:700;
}
.icon-btn {
display: flex;
color: #6e715c;
font-size: 15px;
text-decoration: none;
margin-left: 3px;
}

.wishlist-icon ,
.compare-icon{
width: 25px;
height: 25px;
flex-shrink: 0;
}

/* <!---------------------- ردیف پایین هدر ----------------------> */
.main-header{
    height:92px;
    border-bottom:1px solid #eee;
}

.bottom-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:92px;
}
.header-right{
    display:flex;
    align-items:center;
    gap:25px;
}
.header-left{
    display:flex;
    align-items:center;
    gap:20px;
}
.header-logo{
    flex-shrink:0;
}

.logo{
    width:110px;
    height:auto;
padding-top:8px;
}
/***** بخش منو *************/
.header-menu{
    display:flex;
    align-items:center;
    flex:1;
  
}
.mega-menu-root > li.menu-item-has-children > a{
    display:flex;
    align-items:center;
    gap:6px;
}

.mega-menu-root > li.menu-item-has-children > a::after{
    content:"";
    width:5px;
    height:5px;
    border-right:2px solid #555;
    border-bottom:2px solid #555;
    transform:rotate(45deg);
    transition:.25s;
    margin-top:-4px;
}

.mega-menu-root > li.menu-item-has-children:hover > a::after{
    transform:rotate(225deg);
}
.mega-menu-root > li{
    position: relative;
}
.mega-menu-root li ul{
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    display: none;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
}
.mega-menu-root{
    display:flex;
    align-items:center;
    gap:28px;
    margin:0;
    padding:0;
    list-style:none;
}

.mega-menu-root > li > a{
    display:flex;
    align-items:center;
    height:92px;
    text-decoration:none;
    color:#222;
}
.mega-menu-root li:hover > ul{
    display: block;
}
.mega-menu-root li ul li{
    width:100%;
}

.mega-menu-root > li{
    position:relative;
}

.mega-menu-root li ul{
    position:absolute;
    top:100%;
    right:0;
    width:260px;
    max-height:70vh;
    overflow-y:auto;
    overflow-x:hidden;
    background:#fff;
    display:none;
    z-index:9999;
    border-radius:0 0 12px 12px;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
    padding:8px 0;
}

/* اسکرول زیبا */

.mega-menu-root li ul::-webkit-scrollbar{
    width:6px;
}

.mega-menu-root li ul::-webkit-scrollbar-thumb{
    background:#ccb08a;
    border-radius:20px;
}

.mega-menu-root li ul::-webkit-scrollbar-track{
    background:#f6f6f6;
}

.mega-menu-root li:hover>ul{
    display:block;
}

.mega-menu-root li ul li{

    width:100%;

}

.mega-menu-root li ul li a{

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

    padding:14px 18px;

    font-size:15px;

    color:#444;

    transition:.25s;

}

.mega-menu-root li ul li a:hover{
    background:#f8f5f1;
    color:var(--primary);
    padding-right:26px;
}

/* ==========================================
   اصلاح منوی سطح دوم (زیر‌دسته‌های کتیبه و ...)
========================================== */

/* ۱. اجازه خروج به زیرمنوی سطح دوم */
.mega-menu-root li ul {
    overflow: visible !important; /* جلوگیری از قیچی شدن زیرمنوی سطح دوم */
}

/* ۲. پوزیشن‌دهی به آیتم‌های دارای زیرمنو */
.mega-menu-root ul li {
    position: relative;
}

/* ۳. تنظیم موقعیت باز شدن زیرمنوی سطح دوم */
.mega-menu-root ul li ul {
    top: 0;
    right: 100%; /* باز شدن به سمت چپ در قالب‌های راست‌چین (RTL) */
    left: auto;
    margin-right: 0;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* ۴. نمایش زیرمنوی سطح دوم با هوور روی آیتم والد */
.mega-menu-root ul li:hover > ul {
    display: block;
}

/* ۵. افزودن فلش راهنما به آیتم‌های دارای زیرمنوی سطح دوم */
.mega-menu-root ul li.menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    transform: rotate(135deg); /* اشاره به سمت چپ */
    transition: transform .2s ease;
    margin-right: auto;
}

.mega-menu-root ul li.menu-item-has-children:hover > a::after {
    transform: rotate(315deg);
}
/* حذف نقطه‌ها و پدینگ پیش‌فرض تمامی زیرمنوها */
.mega-menu-root ul, 
.mega-menu-root ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding-left: 0;
}
/*********************** بخش سرچ هدر *****************************/
.search-box{
    flex:0 0 320px;
    position:relative;
}

.search-box input{
    width:100%;
    height:48px;
    background:transparent;
    border:none;
    border-bottom:2px solid #ddd;
    border-radius:0;
    padding:0 38px 0 10px;
    font-size:13px;
    font-family:'iranyekan';
}

.search-icon {
position: absolute;
top: 57%;
left: 5px;
transform: translateY(-50%);
background: transparent;
border: none;
cursor: pointer;
color: #6e715c;
font-size: 18px;
padding: 9px 12px !important;
}

.search-icon:hover {
color: #efefef;
}

.search-box input:focus {
background: #ffffff !important; 
outline: none !important; 
}
/* رفع جایگاه دکمه ضربدر سرچ */

.search-box input[type="search"]{
    appearance: none;
    -webkit-appearance: none;
    padding-left:45px;   /* فاصله از سمت ذره‌بین */
}

.search-box input[type="search"]::-webkit-search-cancel-button{
    -webkit-appearance:none;
    width:18px;
    height:18px;
    cursor:pointer;
    margin-left:8px;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/16px no-repeat;
}
/* پیشنهادات سرچ باکس */

.search-box {
    position: relative;
}

.search-results {
    position: absolute;

    width: 100%;
    background: #fff;
    z-index: 9999;
}

.live-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.live-search-item {
    border-bottom: 1px solid #f1f1f1;
}

.live-search-item a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
    
}

.live-search-item a:hover {
    background: #f8f8f8;
}

.live-search-thumb img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.live-search-info {
    margin-right: 10px;
    display: flex;
    flex-direction: column;
}

.live-search-title {
    font-size: 14px;
    margin-bottom: 5px;
}


.search-results .woocommerce-Price-amount.amount{
    font-size:17px !important;
    font-weight:700;
    color:var(--title);
}
.search-results del .woocommerce-Price-amount.amount{
    font-size:13px !important;
    color:#999;
}

.search-results ins .woocommerce-Price-amount.amount{
    font-size:17px !important;
    color:var(--title);
}
.no-result,
.search-loading {
    padding: 10px;
    font-size: 13px;
}
/******************** ایکونهای هدر **************************/

.icon-btn {
display: flex;
color: #6e715c;
font-size: 15px;
text-decoration: none;
margin-left: 3px;
}

.header-icons {
display: flex;
gap: 6px;
align-items: center;
}

.cart-header ,.acount-header {
position: relative;
display: inline-block;
}
.cart-header{
background:var(--background);
padding:13px 10px;
border-radius:5px;
}

.cart-link,.account-link {
display: flex;
align-items: center;
gap: 6px;
text-decoration: none;
color: #030302e8;
}

.cart-icon ,.account-icon{
width: 25px;
height: 25px;
flex-shrink: 0;
}

.cart-count {
background:var(--primary);
color: #fff;
border-radius: 50%;
width: 18px;
height: 18px;
font-size: 12px;
position: absolute;
top: -10px;
right: -8px;
display: flex;
align-items: center;
justify-content: center;
}

/* cart-total هدر تغییر */
.cart-header .cart-total .woocommerce-Price-amount.amount {
font-size: 15px !important;
}
.account-link {
display: flex;
align-items: center;
gap: 6px;
text-decoration: none;
background:var(--primary);
color:#fff;
border:1px solid var(--primary);
padding:13px 17px;
}
.account-link svg{
    stroke:#fff;
    fill:none;
}
.account-text{
font-size: 14px;
font-weight: 500;
color: #030302e8;
margin-left: 4px;
}

.account-text{
    color:#fff;
    font-size:14px;
    font-weight:500;
}
.account-text:hover{
color: #fff;;
}

.account-link:hover{
    background:var(--primary-hover);
    border-color:var(--primary-hover);
    box-shadow:0 8px 20px rgba(169,138,115,.25);
}
/* اصلاح تداخل نمایش */
@media (min-width: 769px) {
    .mobile-header, .mobile-panel, .mobile-overlay, .top-bar-announcement {
        display: none !important;
    }
}
/* فقط در حالت موبایل نمایش داده شود */
@media (max-width: 768px) {

.top-header,
.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:95px;
  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:var(--primary);
    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;
}




