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

}
/************************** بخش اول هدر ****************/
/* تنظیمات عمومی هدر */
.site-header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-family: inherit;

}
/* ==================== نوار بالا (Header Top) ==================== */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px; /* کاهش پدینگ عمودی برای متناسب شدن با لوگوی بزرگتر */
  gap: 15px; /* کاهش فاصله عمومی بین بخش‌های هدر */
  max-width: 1200px;
  margin: 0 auto;
}

/* کانتینر اصلی لوگو */
.logo-container {
  display: flex !important;
  align-items: center !important;
  max-width: 240px !important; /* افزایش عرض کانتینر لوگو */
  flex-shrink: 0 !important;   /* جلوگیری از فشرده شدن لوگو */
  margin-left: 15px !important; /* ایجاد فاصله مناسب و نزدیک به سرچ */
}

/* تصویر لوگو (افزایش سایز) */
.logo-container img.logo,
.logo {
  max-height: 80px ; /* افزایش ارتفاع لوگو از ۵۵ به ۸۰ پیکسل */
  height: auto !important;
  width: auto !important;       /* حفظ نسبت ابعاد تصویر */
  max-width: 100% !important;   /* عدم خروج از کانتینر */
  object-fit: contain !important;
  display: block !important;
}

/* باکس جستجو */
.search-box {
  flex: 0 1 550px;
  display: flex;
  position: relative !important;
}

.search-box input {
  width: 100%;
  padding: 16px 15px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  outline: none;
}

.search-icon-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0 18px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-icon-btn:hover {
  background: var(--primary-hover);
}
/* کانتینر اصلی باکس سرچ */
.search-box {
  position: relative !important;
}

/* کانتینر اصلی نتایج سرچ (پاپ‌آپ) */
.search-results {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  /* border: 1px solid var(--border-color) !important; */
  border-top: none !important;
  z-index: 99999 !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  margin-top: 2px !important;
}

/* لیست نتایج */
.live-search-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* هر آیتم محصول در نتایج */
.live-search-item {
  border-bottom: 1px solid #f2f2f2 !important;
}

.live-search-item:last-child {
  border-bottom: none !important;
}

.live-search-item a {
  display: flex !important;
  align-items: center !important;
  padding: 10px 12px !important;
  text-decoration: none !important;
  gap: 12px !important;
  transition: background 0.2s ease !important;
}

.live-search-item a:hover {
  background: #fdf2f4 !important;
}

/* تصویر محصول در نتایج */
.live-search-thumb img {
  width: 45px !important;
  height: 45px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  border: 1px solid var(--border-color) !important;
}

/* اطلاعات محصول (عنوان و قیمت) */
.live-search-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  text-align: right !important;
}

.live-search-title {
  font-size: 13px !important;
  color: var(--text-main) !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

.live-search-price {
  font-size: 12px !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

/* پیام عدم وجود نتیجه یا در حال بارگذاری */
.no-result,
.search-loading {
  padding: 15px !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  text-align: center !important;
}
/* سمت چپ: آیکون‌ها و شماره تلفن */
.header-left-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.support-title {
  color: var(--text-muted);
}

.support-number {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.icon-separator {
  color: var(--border-color);
  font-size: 14px;
}

/* لینک‌های آیکون دار (مقایسه و علاقه‌مندی) */
.icon-link {
  position: relative;
  color: var(--text-main);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* دکمه کپسولی سبد خرید */
.cart-pill-btn {
  display: flex;
  align-items: center;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 25px;
  padding: 4px 14px 4px 6px;
  gap: 10px;
}

.cart-icon-wrapper {
  position: relative;
  background: var(--white);
  color: var(--primary-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-wrapper .badge {
  top: -4px;
  right: -4px;
}

.cart-total-text {
  font-weight: bold;
  font-size: 13px;
}

/* ==================== نوار پایین (Header Bottom) ==================== */
.header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  border-top: 1px solid var(--border-color);
max-width:1200px;
margin:0 auto;
}

.nav-right, .nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ==================== استایل کامل منوی دسته‌بندی ==================== */

/* کانتینر اصلی */
.category-wrapper {
  position: relative !important;
  display: inline-block;
}

/* دکمه دسته‌بندی */
.category-btn {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
}

/* منوی اصلی دسته‌بندی (پاپ‌آپ) */
.category-list {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  width: 260px !important;
  background: #ffffff !important;
  list-style: none !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.25s ease-in-out !important;
  z-index: 9999 !important;
  border: 1px solid var(--border-color);
  overflow: visible !important;
}

/* نمایش منو با هاور روی دکمه یا خود منو */
.category-wrapper:hover .category-list {
  opacity: 1 !important;
  visibility: visible !important;
  margin-top: 4px !important;
}

/* آیتم‌های لیست اصلی */
.category-list > li {
  position: relative !important;
  list-style: none !important;
  border-bottom: 1px solid #f1f1f1 !important;
}

.category-list > li:last-child {
  border-bottom: none !important;
}

.category-list > li > a {
  display: block !important;
  padding: 12px 18px !important;
  text-decoration: none !important;
  color: #333333 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: #ffffff !important;
  transition: background 0.2s, padding 0.2s !important;
}

/* تغییر رنگ و اضافه شدن آیکون فلش در هاور */
.category-list > li:hover > a {
  background: #fdf2f4 !important;
  color: var(--primary-color) !important;
  padding-right: 22px !important;
}

/* فلش سمت چپ برای زیرمنوها */
.category-list > li.menu-item-has-children > a::before {
  content: "‹" !important;
  position: absolute !important;
  left: 15px !important;
  font-size: 18px !important;
  color: #999999 !important;
  line-height: 1 !important;
}

/* ==================== زیرمنو سطح دوم (Sub-Menu) ==================== */

.category-list .sub-menu {
  position: absolute !important;
  top: 0 !important;
  right: 100% !important; /* باز شدن به سمت چپ */
  width: 240px !important;
  background: #ffffff !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.25s ease-in-out !important;
  border: 1px solid var(--border-color);
}

/* باز شدن زیرمنو با هاور روی والد */
.category-list > li:hover > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
}

.category-list .sub-menu li a {
  display: block !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  color: #555555 !important;
  font-size: 13px !important;
  border-bottom: 1px solid #f9f9f9 !important;
}

.category-list .sub-menu li a:hover {
  background: #fdf2f4 !important;
  color: var(--primary-color) !important;
}

/* منوی اصلی */
.main-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-menu a:hover {
  color: var(--primary-color);
}

/* دکمه ورود / عضویت */
.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
}

/* دکمه پیشنهاد ویژه */
.special-offer-btn {
  background: var(--accent-orange);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
}

.special-offer-btn .dot {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
}
/* اصلاح تداخل نمایش */
@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:53px;
  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 svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    color: #000 !important;
    transition: 0.3s;
}

/* برای مطمئن شدن از اینکه کانتینر سبد خرید ابعاد دارد */
.mobile-header-left .cart-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}
.mobile-header-left a, 
.mobile-header-left button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}
.mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color, #e31e52);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn {
    display: flex;
    align-items: center; /* تراز عمودی متن و آیکون */
    gap: 5px; /* فاصله بین آیکون و کلمه منو */
    background: none;
    border: none;
    padding: 4px 7px;
    cursor: pointer;
    color: #f8f8f8; /* رنگ دلخواه */
    background-color:var( --wine) ;
    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;
    }
}

