/* هدر مستقل صفحه اصلی ژیورا؛ فقط برای بدنه صفحه اصلی. */
body.zhiora-home-page .hero-header,
body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) {
  position: relative; inset: auto; z-index: 100; width: 100%; max-width: 1440px;
  height: auto; min-height: 90px; margin: 0 auto; padding: 12px clamp(18px, 2.5vw, 36px);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(12px, 1.8vw, 26px); direction: rtl;
  background: #f2f3ed; border-bottom: 1px solid rgba(13,76,65,.10);
  box-shadow: 0 8px 25px rgba(20,57,47,.08); box-sizing: border-box;
}
body.zhiora-home-page .hero-header::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(189,148,65,.65), transparent);
  pointer-events: none;
}
body.zhiora-home-page .hero-header .hero-brand {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin: 0;
}
body.zhiora-home-page .hero-header .hero-logo,
body.zhiora-home-page .hero-header .hero-logo img { display: block; width: 57px; height: auto; }
body.zhiora-home-page .hero-header .hero-brand-name { margin: 0; gap: 4px; }
body.zhiora-home-page .hero-header .hero-brand-name span:first-child { color: #164a3f; font-size: 10px; letter-spacing: 2px; }
body.zhiora-home-page .hero-header .hero-brand-name span:last-child { color: #ad852d; font-size: 8px; letter-spacing: 2px; }
body.zhiora-home-page .hero-header .hero-nav,
body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) .hero-nav {
  position: static; inset: auto; transform: none; height: auto; margin: 0;
  display: flex; flex: 1 1 auto; min-width: 0; align-items: center;
  justify-content: center; gap: clamp(10px, 1.4vw, 25px); white-space: nowrap;
}
body.zhiora-home-page .hero-header .hero-nav a,
body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) .hero-nav a {
  height: 46px; display: inline-flex; align-items: center; justify-content: center;
  color: #12483e; font-size: clamp(12px, .95vw, 14px); font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: color .2s ease;
}
body.zhiora-home-page .hero-header .hero-nav a:is(:hover, :focus-visible, .active) { color: #a67b24; }
body.zhiora-home-page .hero-header .hero-nav a::after { bottom: 1px; width: 5px; height: 5px; }
body.zhiora-home-page .hero-header .services-actions,
body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) .services-actions {
  display: flex; align-items: center; flex: 0 0 auto; direction: ltr;
  gap: clamp(5px, .6vw, 10px); margin: 0; padding: 0;
}
body.zhiora-home-page .hero-header .services-action {
  position: relative; flex: 0 0 42px; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(255,255,255,.8); border-radius: 13px;
  background: #edf1eb; color: #164e44;
  box-shadow: -4px -4px 9px #fff, 5px 5px 10px rgba(45,73,61,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.zhiora-home-page .hero-header .services-action i { font-size: 21px; }
body.zhiora-home-page .hero-header .services-action:active { transform: translateY(1px); box-shadow: inset 3px 3px 6px #cad5cb, inset -3px -3px 6px #fff; }
body.zhiora-home-page .hero-header .zhiura-account-link {
  flex: 0 1 auto; min-width: 0; max-width: 155px; min-height: 42px; margin: 0;
  padding: 4px 8px; gap: 6px; border-radius: 13px; background: #e7efea; color: #164e44;
  box-shadow: -4px -4px 9px #fff, 5px 5px 10px rgba(45,73,61,.14);
}
body.zhiora-home-page .hero-header .zhiura-account-link__icon { width: 34px; height: 34px; border-radius: 10px; background: #f5f6f1; }
body.zhiora-home-page .hero-header .zhiura-account-link__name,
body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) .zhiura-account-link__name { min-width: 0; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.zhiora-home-page .hero-header .zhiura-admin-entry { min-height: 42px; flex: 0 0 auto; }
body.zhiora-home-page .hero-header :is(a, button):focus-visible { outline: 2px solid #b9923b; outline-offset: 3px; }
/* اندازه لپ‌تاپ: فاصله‌ها تنظیم می‌شوند، بدون کوچک‌کردن غیرضروری منو. */
@media (min-width: 1024px) and (max-width: 1150px) {
  body.zhiora-home-page .hero-header .hero-nav,
  body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) .hero-nav { gap: 10px; }
  body.zhiora-home-page .hero-header .hero-nav a,
  body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) .hero-nav a { font-size: 12px; }
  body.zhiora-home-page .hero-header .zhiura-account-link__name,
  body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) .zhiura-account-link__name { max-width: 65px; }
}
/* تبلت و موبایل: هدر مستقل و منوی ثابت پایین موجود. */
@media (max-width: 1023px) {
  body.zhiora-home-page .hero-header,
  body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) { min-height: 72px; padding: 8px 18px; }
  body.zhiora-home-page .hero-header .hero-logo,
  body.zhiora-home-page .hero-header .hero-logo img { width: 48px; }
  body.zhiora-home-page.zr-active .hero-header .hero-nav,
  body.zhiora-home-page.zr-active .hero-header .services-actions { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.zhiora-home-page .hero-header :is(a, button) { transition: none; }
}

/* هدر شناور صفحه اصلی؛ در جریان صفحه با هم‌پوشانی محدود روی هرو */
body.zhiora-home-page .hero-header,
body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) {
  width: calc(100% - clamp(24px, 4vw, 64px));
  max-width: 1360px;
  margin: 16px auto -20px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 20px;
  background: rgba(246, 247, 241, .97);
  box-shadow: 0 14px 32px rgba(5, 42, 34, .16), inset 0 1px 0 #fff;
}
body.zhiora-home-page .hero-header::after { inset-inline: 25px; }
@media (min-width: 1024px) and (max-width: 1150px) {
  body.zhiora-home-page .hero-header,
  body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) { gap: 8px; padding-inline: 14px; }
  body.zhiora-home-page .hero-header .hero-nav,
  body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) .hero-nav { gap: 8px; }
}
@media (max-width: 1023px) {
  body.zhiora-home-page .hero-header,
  body.zhiora-home-page .hero-header:has(.zhiura-admin-entry) {
    width: calc(100% - 28px); margin: 12px auto -14px; border-radius: 18px;
  }
}
