/* ============================================================
 *  site.css — افزوده‌های نسخهٔ ماژولار (روی app.css سوار می‌شود)
 *  فقط مکمل است؛ ظاهر دسکتاپ دقیقاً مثل قبل می‌ماند.
 * ========================================================== */

/* لینک‌هایی که قبلاً button/div بودند و حالا <a> شده‌اند */
a.home-ind-card, a.nav-cta, a.slide-btn, a.btn-ghost, a.float-cta,
a.nav-logo, .breadcrumb a, .flinks a, a.prod-card, a.article-card { text-decoration: none; }
a.home-ind-card, a.prod-card, a.article-card { color: inherit; display: block; }
a.nav-cta { display: inline-flex; align-items: center; }
a.slide-btn { display: inline-flex; align-items: center; }

/* منوی موبایل (در دسکتاپ کاملاً غیرفعال) */
.nav-burger {
  display: none; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); color: var(--white);
  width: 40px; height: 40px; border-radius: 10px; font-size: 19px;
  cursor: pointer; align-items: center; justify-content: center;
  font-family: 'Vazirmatn', sans-serif;
}

@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }
  #mainNav .nav-right { display: none; }
  #mainNav .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; inset-inline: 0;
    background: rgba(10,14,22,.97); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 12px 16px; max-height: 0; overflow: hidden;
    opacity: 0; pointer-events: none; transition: max-height .32s ease, opacity .25s ease;
  }
  #mainNav.nav-open .nav-links {
    max-height: 80vh; opacity: 1; pointer-events: auto;
    box-shadow: 0 14px 30px rgba(0,0,0,.45);
  }
  #mainNav .nav-links a { font-size: 16px; padding: 11px 13px; }
}

/* breadcrumb به‌صورت لینک واقعی */
.breadcrumb a { color: var(--slate); cursor: pointer; transition: color .2s; }
.breadcrumb a:hover { color: var(--sun); }

/* لینکِ «صفحهٔ کامل محصول» در مودال */
#mPage { display: inline-flex; align-items: center; gap: 6px; }

/* جعبهٔ سئوی صفحات لیستی (پاراگراف توضیحاتی پایین صفحه برای کلمات کلیدی) */
.seo-prose {
  max-width: 1180px; margin: 0 auto; padding: 8px 24px 56px;
  color: var(--slate); font-size: 13px; line-height: 2.05;
}
.seo-prose h2 { color: var(--white); font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.seo-prose p { margin-bottom: 10px; }

/* ============================================================
 *  صفحهٔ محصولات — تمیزتر و مرتب‌تر
 * ========================================================== */
/* فیلترها در یک ردیفِ افقیِ قابلِ اسکرول، به‌جای پیچیدن در چند ردیف */
.filter-bar { flex-wrap: nowrap; align-items: center; }
.filter-scroll {
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
  padding-bottom: 3px; -webkit-overflow-scrolling: touch;
}
.filter-scroll::-webkit-scrollbar { height: 5px; }
.filter-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 10px; }
.filter-scroll::-webkit-scrollbar-track { background: transparent; }
.filter-lbl { padding-top: 0; align-self: center; }
/* محوشدگیِ نرم در لبهٔ چپ تا معلوم شود ادامه دارد */
.filter-bar { position: relative; }

/* ============================================================
 *  مگامنوی محصولات + جستجوی آیکونی
 * ========================================================== */
#mainNav { overflow: visible; }

/* دکمهٔ جستجو در نوار */
.nav-search-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.10);
  color: var(--white); font-size: 16px; cursor: pointer;
  width: 38px; height: 38px; border-radius: 10px; margin-inline-end: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.nav-search-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(245,166,35,.4); }

/* مگامنو */
.nav-links li.has-mega { position: relative; }
.nav-links li.has-mega > a::after { content: ' ▾'; font-size: 9px; opacity: .7; }
.mega {
  position: absolute; top: 100%; right: 0; padding-top: 12px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 1500;
}
.nav-links li.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner {
  display: flex; gap: 26px; flex-wrap: wrap; max-width: 720px;
  background: rgba(12,17,26,.98); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.09); border-radius: 16px;
  padding: 20px 24px; box-shadow: 0 22px 50px rgba(0,0,0,.5);
}
.mega-col { min-width: 145px; }
.mega-col-h {
  display: flex; align-items: center; gap: 7px; text-decoration: none;
  color: var(--sun); font-weight: 800; font-size: 13px;
  padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mega-col-h:hover { color: var(--sunbr); }
.mega-ic { font-size: 15px; }
.mega-sub { list-style: none; margin: 0; padding: 0; }
.mega-sub li a {
  display: block; text-decoration: none; color: var(--slate);
  font-size: 12px; padding: 6px 4px; border-radius: 7px;
  transition: color .18s, background .18s, padding-inline-start .18s;
}
.mega-sub li a:hover { color: var(--white); background: rgba(255,255,255,.04); padding-inline-start: 10px; }

/* باکس جستجو (آیکونی) */
.search-overlay {
  position: fixed; inset: 0; z-index: 2000; display: none;
  background: rgba(4,7,12,.66); backdrop-filter: blur(7px);
  align-items: flex-start; justify-content: center; padding: 13vh 16px 16px;
}
.search-overlay.open { display: flex; animation: anFade .18s ease; }
@keyframes anFade { from { opacity: 0 } to { opacity: 1 } }
.search-box {
  width: min(94%, 640px); background: rgba(14,20,30,.99);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  box-shadow: 0 26px 60px rgba(0,0,0,.55); overflow: hidden; height: max-content;
}
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.search-ic { font-size: 17px; opacity: .8; }
#searchInput {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--white); font-family: 'Vazirmatn', sans-serif; font-size: 16px;
}
.search-close {
  background: rgba(255,255,255,.06); border: none; color: var(--slate);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.search-close:hover { color: var(--white); }
.search-results { max-height: 52vh; overflow-y: auto; }
.search-result {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.04); transition: background .15s;
}
.search-result:hover { background: rgba(245,166,35,.07); }
.search-result .sr-ic { font-size: 20px; flex-shrink: 0; }
.search-result .sr-body { flex: 1; min-width: 0; }
.search-result .sr-title { color: var(--white); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result .sr-sub { color: var(--slate); font-size: 11px; margin-top: 2px; }
.search-result .sr-type { font-size: 10px; color: var(--sun); background: rgba(245,166,35,.12); padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.search-hint { padding: 18px; color: var(--slate); font-size: 12.5px; text-align: center; }

/* موبایل: آیکونِ جستجو بماند، CTA و مگامنو مخفی */
@media (max-width: 900px) {
  #mainNav .nav-right { display: flex; align-items: center; }
  #mainNav .nav-cta { display: none; }
  .nav-search-btn { margin-inline-end: 6px; }
  .mega { display: none !important; }
}

/* ============================================================
 *  صفحهٔ تماس — کارت‌های جمع‌وجور با آیکون‌های کنار هم
 * ========================================================== */
#contactMethods { display: flex; flex-direction: column; gap: 12px; }
.cmethod-card {
  background: rgba(15,21,32,.7); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 14px 16px; transition: border-color .2s, background .2s;
}
.cmethod-card:hover { border-color: rgba(245,166,35,.35); background: rgba(15,21,32,.92); }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.cm-lbl { color: var(--sun); font-weight: 700; font-size: 13.5px; }
.cm-num { color: var(--white); font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.cm-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-app {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
  font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 9px;
  color: #fff; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.cm-app:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 6px 16px rgba(0,0,0,.32); }
.cm-call  { background: linear-gradient(135deg, var(--sunbr), var(--sundp)); color: #1a1205; }
.cm-wa    { background: #25D366; color: #06320f; }
.cm-tg    { background: #2AABEE; color: #042a3d; }
.cm-bale  { background: #4F46E5; color: #fff; }
.cm-eitaa { background: #FF7A00; color: #2a1400; }

.cmethod-info { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.cmi-row {
  display: flex; align-items: flex-start; gap: 11px; text-decoration: none;
  padding: 12px 14px; border-radius: 12px; background: rgba(15,21,32,.45);
  border: 1px solid rgba(255,255,255,.05); transition: background .18s;
}
a.cmi-row:hover { background: rgba(15,21,32,.85); }
.cmi-ic { font-size: 17px; flex-shrink: 0; line-height: 1.5; }
.cmi-lbl { color: var(--slate); font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.cmi-val { color: var(--white); font-size: 13px; line-height: 1.6; }

/* ============================================================
 *  کارتِ دانلود (بلوکِ «فایل دانلود» در صفحه‌های سفارشی)
 * ========================================================== */
.dl-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: rgba(15,21,32,.7); border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px; padding: 14px 16px; margin: 10px 0;
  transition: border-color .2s, background .2s, transform .15s;
}
.dl-card:hover { border-color: rgba(245,166,35,.4); background: rgba(15,21,32,.95); transform: translateY(-2px); }
.dl-ic { font-size: 26px; flex-shrink: 0; }
.dl-body { flex: 1; min-width: 0; }
.dl-title { display: block; color: var(--white); font-weight: 700; font-size: 14px; }
.dl-meta { display: block; color: var(--slate); font-size: 11px; margin-top: 3px; letter-spacing: .4px; }
.dl-arrow {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sunbr), var(--sundp)); color: #1a1205;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
}

/* ============================================================
 *  شبکه‌های اجتماعی در فوتر
 * ========================================================== */
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.fsoc {
  width: 40px; height: 40px; border-radius: 11px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--white); transition: transform .15s, background .2s, border-color .2s;
}
.fsoc:hover { transform: translateY(-3px); background: rgba(245,166,35,.14); border-color: rgba(245,166,35,.45); }
.fsoc-linkedin { font-weight: 800; font-size: 14px; font-family: Arial, sans-serif; }
