@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;

}

/* *********************بنر هدر *******************/
.banner-top{
    background-color: #B8E986;
}
.banner-top p{
    color: #000;
    text-align: center !important;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;

}
/************************** بخش اول هدر ****************/
header {
    color: white;
}

/* نوار بالا */
.header-top {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    gap: 30px;
}

.logo {
    margin-right: 10px;
   max-width: 57px !important;
   height: auto;
   padding-right: 25px;
}

/******************** ایکونهای هدر **************************/

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



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

.icon-separator {
    color: #4d4d4d !important;
    font-size: 18px !important;
    font-weight: bold !important;
    opacity: 0.6 !important;
    margin: 0 4px !important; /* فاصله کمتر */
}
 .wishlist-header ,
  .cart-header ,
  .compare-header,
  .acount-header {
    position: relative;
    display: inline-block;
}

.wishlist-link ,
 .compare-link ,
 .cart-link,
 .account-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
}
.cart-icon ,
.wishlist-icon ,
.compare-icon,
.account-icon{
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}


.cart-count , #wishlist-count , #compare-count{
    background: #D2AE6D;
    color: white;
    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;
}

.wishlist-text ,
 .compare-text ,
 .account-text{
    font-size: 14px;
    font-weight: 500;
    color: #252525;
    margin-left: 4px;
}


/*********************** بخش سرچ هدر *****************************/
.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px; /* جا برای آیکن سمت چپ */
    border-radius: 5px;
    border: 2px solid #D2AE6D;
    font-size: 14px;
    font-family: 'iranyekan' !important;
}

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


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

.search-box input:focus {
    border-color: #d1d4da !important; /* طوسی */
    background: #ffffff !important; /* پس‌زمینه طوسی روشن */
    outline: none !important; /* حذف حاشیه مرورگر */
}

.live-search-price {

    color:black !important; }

/* پیشنهادات سرچ باکس  */


.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;
}

.live-search-price {
    font-size: 13px;
    color: #0044B0;
    font-weight: bold;
}

.no-result,
.search-loading {
    padding: 10px;
    font-size: 13px;
}
/* *********************finish top  header ***************************8*/

.header-bottom {
    background: #fffefe;
    padding: 4px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border:solid 1px #e2e2e2;
}

/* راست */
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}


.category-wrapper {
    position: relative;
}

.category-btn {
    background: #fff !important;
    border: none !important;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'iranyekan' !important;
}

/* منو مخفی اولیه */
 .category-list {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: #f3f3f3;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 9999 !important;
    pointer-events: none; 
 } 
/* آیتم های اصلی */
.category-list > li {
position: relative;
border-bottom: 1px solid #e5e5e5;
}

.category-list > li > a {
display: block;
padding: 14px 18px;
text-decoration: none;
color: #333;
font-size: 14px;
background: #f3f3f3;
transition: 0.2s;
}

/* فلش */
.category-list > li > a::before {
content: "‹";
position: absolute;
left: 15px;
font-size: 18px;
color: #888;
}


/* ۱- hover دکمه → باز منو (اصلاح شده) */
.category-wrapper:hover .category-list {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto !important;
}


/******************* باکس تصویر رایتل ****************/
/* باکس عکس - موقعیت ثابت + هاور پایدار */
.image-box1 {
    position: fixed !important;
    top: 0 ;
    right: 100%; /* 👈 ثابت - کنار منو */
    background: white; 
    border: 2px solid #eee; 
    border-radius: 16px;
    display: none;
    padding: 25px; 
    width: 800px; 
    height:240px; /* 👈 کمی بلندتر */
    z-index: 10002;
}

/* 👈 فقط cat-item-1 هاور کنه */
.cat-item-1:hover .image-box1,
.image-box1:hover {
    display: block !important;
}
.image-box1 img { 
    width: 100%; 
    height: auto; /* 👈 همه همین */
    object-fit: cover; 
    display: block;
}
/* چیدمان کامل */
.image-box-inner1 {
    display: flex; flex-direction: column; height: 100%; gap: 20px;
}

.image-box1 .top-img1 { 
    flex: 0 0 140px; /* 👈 بلندتر */
    border-radius: 12px; overflow: hidden;
}
.image-box1 .top-img1 img { 
    width: 100%; height: auto; /* 👈 height: 100% */
    object-fit: cover; 
}

/* عکس بالا (همه دسته‌ها) */
.image-box1 .top-img1 { 
    width: 100%; 
    border-radius: 12px; overflow: hidden;
}
.image-box1 .top-img1 img {
     height: auto;
     }

.cat-item-1 .image-box1 .bottom-row1 {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
}
.bottom-row1 img{
    border-radius: 20px;
}
.image-box1 .bottom-row1 a { 
    aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; 
}

/* هاور */
.image-box1 a:hover img { transform: scale(1.05); transition: 0.3s; }

/******************* باکس تصویر همراه اول ****************/
/* باکس عکس - موقعیت ثابت + هاور پایدار */
.image-box2 {
    position: fixed !important;
    top: 0 ;
    right: 100%; /* 👈 ثابت - کنار منو */
    background: white; 
    border: 2px solid #eee; 
    border-radius: 16px;
    display: none;
    padding: 25px; 
    width: 800px; 
    height:340px; /* 👈 کمی بلندتر */
    z-index: 10002;
}

/* 👈 فقط cat-item-2 هاور کنه */
.cat-item-2:hover .image-box2,
.image-box2:hover {
    display: block !important;
}
.image-box2 img { 
    width: 100%; 
    height: auto; /* 👈 همه همین */
    object-fit: cover; 
    display: block;
}
/* چیدمان کامل */
.image-box-inner2 {
    display: flex; flex-direction: column; height: 100%; gap: 20px;
}

.image-box2 .top-img2 { 
    flex: 0 0 140px; /* 👈 بلندتر */
    border-radius: 12px; overflow: hidden;
}
.image-box2 .top-img2 img { 
    width: 100%; height: auto; /* 👈 height: 100% */
    object-fit: cover; 
}

/* عکس بالا (همه دسته‌ها) */
.image-box2 .top-img2 { 
    width: 100%; 
    border-radius: 12px; overflow: hidden;
}
.image-box2 .top-img2 img {
     height: auto;
     }

.cat-item-2 .image-box2 .bottom-row2 {
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px; 
}
.bottom-row2 img{
    border-radius: 20px;
}

/* هاور */
.image-box2 a:hover img { transform: scale(1.05); transition: 0.3s; }

/******************* باکس تصویر سریالی ****************/
/* باکس عکس - موقعیت ثابت + هاور پایدار */
.image-box3 {
    position: fixed !important;
    top: 0 ;
    right: 100%; /* 👈 ثابت - کنار منو */
    background: white; 
    border: 2px solid #eee; 
    border-radius: 16px;
    display: none;
    padding: 25px; 
    width: 800px; 
    height:250px; /* 👈 کمی بلندتر */
    z-index: 10002;
}

/* 👈 فقط cat-item-2 هاور کنه */
.cat-item-3:hover .image-box3,
.image-box3:hover {
    display: block !important;
}
.image-box3 img { 
    width: 100%; 
    height: auto; /* 👈 همه همین */
    object-fit: cover; 
    display: block;
}
/* چیدمان کامل */
.image-box-inner3 {
    display: flex; flex-direction: column; height: 100%; gap: 20px;
}

.image-box3 .top-img3 { 
    flex: 0 0 140px; /* 👈 بلندتر */
    border-radius: 12px; overflow: hidden;
}
.image-box3 .top-img3 img { 
    width: 100%; height: auto; /* 👈 height: 100% */
    object-fit: cover; 
}

/* عکس بالا (همه دسته‌ها) */
.image-box3 .top-img3 { 
    width: 100%; 
    border-radius: 12px; overflow: hidden;
}
.image-box3 .top-img3 img {
     height: auto;
     }

.cat-item-3 .image-box3 .bottom-row3 {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}
.cat-item-3 .image-box3 .bottom-row1 {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
}
.bottom-row3 img{
    border-radius: 20px;
}

/* هاور */
.image-box3 a:hover img { transform: scale(1.05); transition: 0.3s; }

/* منوی وسط */
.main-menu {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: #282828;
    text-decoration: none;
    font-size: 14px;
}
/* لینک آیتم فعال */
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a,
.main-menu .current-menu-ancestor > a,
.main-menu .current-menu-parent > a {
    color: #D2AE6D !important;

}

/* چپ */
.nav-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.price-btn {
    background:#3C3C3C;
    color: #fff;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}



/*new*/
.header-top {
    position: relative;
    z-index: 1000;
}

.header-bottom {
    position: relative;
    z-index: 999;
}

.category-wrapper {
    position: relative;
    z-index: 1100;
}

.category-list {
    z-index: 1200;
}

.category-section {
    position: relative;
    z-index: 1;
}
.category-card {
    z-index: 1;
}

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

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


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

.mobile-logo img{
  max-height:40px;
  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: none;
    border: none;
    padding: 4px 7px;
    cursor: pointer;
    color: #f8f8f8; /* رنگ دلخواه */
    background-color:#D2AE6D ;
    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%); /* عدد 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;
  border:none;
  font-size:20px;
  color: #D2AE6D;
}

/* 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 #D2AE6D;
  font-weight:bold;
}

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

.tab-content{
  display:none;
}

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

/* menu */
/* استایل مشترک برای لیست منو و لیست دسته‌بندی‌ها */
.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: #D2AE6D;
    color: #fff;
}

.top-bar-announcement {

    background-color: #222; /* رنگ مشکی/تیره پس‌زمینه */

    text-align: center;

    padding: 10px 0;

    direction: rtl;

}



.top-bar-announcement a {

    color: #fff; /* رنگ متن سفید */

    text-decoration: none;

    font-size: 15px;

    font-weight: bold;

    display: block;

    transition: 0.3s;

}



.top-bar-announcement a span {

    color: #ff0000; /* رنگ قرمز برای کلمه قیمت */

    margin: 0 4px;

}



.top-bar-announcement a:hover {

    opacity: 0.8;

}



/* برای موبایل اگر نیاز بود سایز فونت کوچکتر شود */



    .top-bar-announcement a {

        font-size: 13px;

        padding: 0 15px;

    }

}
@media (max-width: 768px) {
    .mobile-logo img {
     
        padding-right: 0;
    }
}

