/* فقط ظاهر سرچ هدر — موتور جستجو دست‌نخورده */

/* ۱) دکمه ورود/عضویت موقع باز شدن سرچ جمع و روی فهرست نیفتد */
.header .go-left { flex-shrink: 0; }
.header .login_register { flex-shrink: 0; }
.header .login_register .panel_button.wide { white-space: nowrap; line-height: 1.2; }
@media (min-width: 1001px) and (max-width: 1250px) {
  .header_style_2 .hsearch { --hsearch-w-open: 250px; }
}

/* ۲) دکمه فیلتر پیشرفته */
.hsearch .hsearch__filters {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  height: 30px; padding: 0 9px; margin-inline: 2px;
  border-radius: 9px; white-space: nowrap; text-decoration: none;
  font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--primaryColor, #2d7eff);
  background: color-mix(in srgb, var(--primaryColor, #2d7eff) 14%, transparent);
  transition: background .15s, color .15s;
}
.hsearch .hsearch__filters:hover,
.hsearch .hsearch__filters:focus-visible {
  color: #fff; background: var(--primaryColor, #2d7eff); outline: none;
}
.hsearch .hsearch__filters svg { flex: 0 0 auto; }
@media (max-width: 360px) { .hsearch .hsearch__filters .hsearch__filters_txt { display: none; } }

/* ۳) عنوان: انگلیسی بزرگ‌تر، فارسی کم‌رنگ‌تر زیرش */
.hsearch .search_row .title { font-size: 15px; line-height: 1.35; }
.hsearch .search_row .kf-fa {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12px; font-weight: 400; line-height: 1.4; color: inherit;
  opacity: .5; margin: 0; text-shadow: none;
}

/* ۴) اسکرول زشت سفید حذف؛ «مشاهده همه نتایج» همیشه پایین پنل دیده شود */
.hsearch .hsearch__panel {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.hsearch .hsearch__panel::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.hsearch .kf-more {
  position: sticky; bottom: 0; z-index: 2;
  margin: 0 -8px; padding: 8px; background: var(--bg);
  border-top: 1px solid var(--bg_lighter);
}
.hsearch .kf-more .show_more { margin-top: 0; }

/* ۵) موبایل: زیر هدر باز شود، نه روی آن */
@media (max-width: 1000px) {
  .hsearch, .header_style_2 .hsearch { top: var(--kf-hs-top, 72px) !important; }
  .hsearch__panel { max-height: calc(100dvh - var(--kf-hs-top, 72px) - 24px); }
}

/* ۶) موبایل: جلوگیری از زوم خودکار مرورگر هنگام فوکوس روی فیلد سرچ
   (iOS/Safari و بعضی مرورگرهای اندروید به هر input با فونت کمتر از ۱۶px زوم می‌کنند).
   بدون دست زدن به viewport، پس زوم دستی کاربر آزاد می‌ماند. */
@media (max-width: 1000px) {
  .hsearch .hsearch__input {
    font-size: 16px;
    text-overflow: ellipsis;
  }
  .hsearch .hsearch__input::placeholder { font-size: 14px; }
}
