/* ============================================================
   آتی دُر — atd-header.css   (منتقل‌شده از Flatsome › Advanced › Custom CSS، 2026-12-02)
   محتوا: فونت وزیرمتن (۴۰۰/۵۰۰/۷۰۰) و فونت سراسری، توکن‌های رنگ برند،
          منوی اصلی دسکتاپ، مگامنو (.atd-mega و…)، منوی موبایل
   بارگذاری: همه صفحه‌ها، بلافاصله بعد از atd-base.css — توسط لودر atd-assets
      ⚠ کلاس‌های .atd-mega-cta / .atd-title / .atd-list / .atd-col اسم‌های عمومی‌اند و
     .atd-mega-cta با دکمه کارت محصول هم‌نام است — در 2026-12-02 به .atd-mega-cta تغییر نام داده شد.
   ============================================================ */



/* ---------- ۱) فونت وزیر (میزبانی روی هاست خودتان — بدون CDN) ----------
   پیش‌نیاز: سه فایل زیر را در مسیر wp-content/uploads/fonts/ آپلود کنید:
     Vazirmatn-Regular.woff2
     Vazirmatn-Medium.woff2
     Vazirmatn-Bold.woff2
   روش دانلود در فایل راهنما (گام ۱) توضیح داده شده است.
------------------------------------------------------------------ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/uploads/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/uploads/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/uploads/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body,
input, textarea, select, button,
.header, .nav, .nav a,
h1, h2, h3, h4, h5, h6,
.button, .price, .woocommerce-Price-amount {
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}


/* ---------- ۲) متغیرهای رنگ ---------- */
/* توکن‌های رنگ از 2026-12-02 فقط در atd-base.css تعریف می‌شوند. */


/* ---------- ۳) نوار منوی اصلی (دسکتاپ) ---------- */
.header-nav > li.menu-item > a {
  font-size: 13.5px !important;
  color: var(--atd-muted) !important;
  padding: 13px 12px !important;
  position: relative;
}

.header-nav > li.menu-item:hover > a,
.header-nav > li.menu-item.current-menu-item > a,
.header-nav > li.menu-item.current-menu-parent > a,
.header-nav > li.menu-item.current-menu-ancestor > a {
  color: var(--atd-blue) !important;
}

.header-nav > li.menu-item > a:after {
  content: "";
  position: absolute;
  right: 12px; left: 12px; bottom: 0;
  height: 3px;
  background: var(--atd-orange);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.header-nav > li.menu-item:hover > a:after,
.header-nav > li.menu-item.current-menu-item > a:after,
.header-nav > li.menu-item.current-menu-parent > a:after,
.header-nav > li.menu-item.current-menu-ancestor > a:after {
  transform: scaleX(1);
}


/* ---------- ۴) قاب مگامنو ---------- */
.nav-dropdown.nav-dropdown-default,
li.menu-item .nav-dropdown {
  border: 1px solid var(--atd-border) !important;
  border-top: 3px solid var(--atd-blue) !important;
  border-radius: 0 0 6px 6px !important;
  box-shadow: 0 10px 28px rgba(13, 74, 139, .10) !important;
  padding: 0 !important;
  background: #fff !important;
  overflow: hidden;
}

/* حذف فلش پیش‌فرض فلت‌سام */
.nav-dropdown-has-arrow li.has-dropdown:before,
.nav-dropdown-has-arrow li.has-dropdown:after {
  display: none !important;
}


/* ---------- ۵) ردیف ستون‌های داخل مگامنو ---------- */
.atd-mega {
  padding: 22px 24px 12px !important;
  margin: 0 !important;
  background: #fff;
}

.atd-col {
  padding: 0 24px !important;
  border-left: 1px solid var(--atd-line);
}

.atd-col:last-child { border-left: 0; }

/* در نمایش‌های باریک‌تر خط جداکننده حذف شود */
@media (max-width: 849px) {
  .atd-col { border-left: 0; padding: 0 16px !important; }
}


/* ---------- ۶) عنوان زیرگروه ---------- */
.atd-title {
  font-size: 12px !important;
  font-weight: 500;
  color: var(--atd-blue) !important;
  margin: 0 0 14px !important;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.6;
}

.atd-title:before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--atd-orange);
  flex: none;
}

.atd-title a { color: inherit !important; }

/* فاصله وقتی دو زیرگروه در یک ستون هستند */
.atd-title + .atd-list { margin-bottom: 20px !important; }


/* ---------- ۷) لیست لینک‌ها ---------- */
ul.atd-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

ul.atd-list li {
  margin: 0 0 11px !important;
  padding: 0 !important;
  list-style: none !important;
}

ul.atd-list li a {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--atd-text) !important;
  padding: 1px 0;
  border-right: 2px solid transparent;
  transition: color .15s ease, padding .15s ease, border-color .15s ease;
}

ul.atd-list li a:hover {
  color: var(--atd-blue) !important;
  border-right-color: var(--atd-orange);
  padding-right: 9px;
}


/* ---------- ۸) نوار پایین مگامنو ---------- */
.atd-foot-row {
  margin: 0 !important;
  padding: 12px 24px !important;
  background: var(--atd-tint);
  border-top: 1px solid var(--atd-border);
}

.atd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.atd-all {
  font-size: 12.5px;
  color: var(--atd-blue) !important;
}

.atd-all:hover { color: var(--atd-orange-dark) !important; }

.atd-mega-cta {
  display: inline-block;
  font-size: 12.5px;
  background: var(--atd-orange);
  color: #4A2603 !important;
  padding: 7px 16px;
  border-radius: 5px;
  transition: background .15s ease;
}

.atd-mega-cta:hover { background: var(--atd-orange-dark); color: #fff !important; }

.atd-tel {
  font-size: 12.5px;
  color: var(--atd-blue) !important;
  direction: ltr;
  unicode-bidi: embed;
}


/* ============================================================
   ۹) منوی موبایل (فهرست پیش‌فرض فلت‌سام)
   ============================================================ */

.mobile-sidebar .sidebar-menu > li > a,
.off-canvas .sidebar-menu > li > a {
  font-size: 14px !important;
  color: var(--atd-text) !important;
  padding: 13px 16px !important;
  border-bottom: 1px solid var(--atd-line) !important;
}

.mobile-sidebar .sidebar-menu > li > a:hover,
.mobile-sidebar .sidebar-menu > li.active > a {
  color: var(--atd-blue) !important;
  background: var(--atd-tint) !important;
}

/* زیرمنوها */
.mobile-sidebar .sidebar-menu ul.children > li > a,
.mobile-sidebar .sidebar-menu ul.sub-menu > li > a {
  font-size: 13px !important;
  color: var(--atd-muted) !important;
  padding: 10px 30px !important;
  border-bottom: 0 !important;
}

.mobile-sidebar .sidebar-menu ul.children,
.mobile-sidebar .sidebar-menu ul.sub-menu {
  background: var(--atd-tint) !important;
  border-bottom: 1px solid var(--atd-line);
}

/* دکمه باز/بسته شدن */
.mobile-sidebar .sidebar-menu .toggle {
  color: var(--atd-blue) !important;
  opacity: .7;
}

/* دکمه‌های تماس و واتس‌اپ در بالای منوی موبایل
   (این بلوک را در Flatsome → Header → Mobile Sidebar به‌عنوان HTML اضافه کنید) */
.atd-mob-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--atd-line);
}

.atd-mob-actions a {
  text-align: center;
  font-size: 13px;
  padding: 10px 8px;
  border-radius: 6px;
  color: #fff !important;
}

.atd-mob-call { background: var(--atd-blue); }
.atd-mob-wa   { background: #25D366; color: #08331A !important; }