/* Bahara Smart Search — no network fonts, frameworks, icon fonts, or CDN dependencies. */
.bhs-search-widget,
.bhs-search-widget * { box-sizing: border-box; }
.bhs-search-widget { direction: rtl; font-family: inherit; }
.bhs-search-widget button,
.bhs-search-widget input { font-family: inherit; }
.bhs-search-widget button { cursor: pointer; -webkit-appearance: none; appearance: none; line-height: 1.5; }
.bhs-search-widget button:focus-visible,
.bhs-search-widget input:focus-visible,
.bhs-search-widget a:focus-visible { outline: 2px solid #47745e; outline-offset: 3px; }
.bhs-search-widget [hidden] { display: none !important; }

.bhs-search-widget .bhs-launcher {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; border: 1px solid #e4e9e5; padding: 10px;
  border-radius: 15px;
  background-color: var(--bhs-launcher-bg, #f5f7f4) !important;
  color: var(--bhs-launcher-color, #1f3029) !important;
  /* The opener must remain fully stationary on hover, focus and press. */
  transition: none !important;
  transform: none !important;
  animation: none !important;
}
/* More specific than theme/Elementor button hover rules; no hover appearance changes. */
.bhs-search-widget .bhs-launcher:is(:hover, :focus, :active) {
  background-color: var(--bhs-launcher-bg, #f5f7f4) !important;
  color: var(--bhs-launcher-color, #1f3029) !important;
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  animation: none !important;
  transition: none !important;
  filter: none !important;
  box-shadow: none !important;
}
.bhs-search-widget .bhs-launcher svg { width: 23px; height: auto; aspect-ratio: 1; display: block; }
.bhs-search-widget .bhs-launcher i { font-size: 23px; display: inline-flex; }
/* Also stop effects attached to an uploaded SVG or icon-font element by the theme. */
.bhs-search-widget .bhs-launcher svg,
.bhs-search-widget .bhs-launcher svg *,
.bhs-search-widget .bhs-launcher i {
  transform: none !important;
  animation: none !important;
  transition: none !important;
  filter: none !important;
}

.bhs-search-widget .bhs-backdrop {
  position: fixed; inset: 0; z-index: 999990; opacity: 0; visibility: hidden;
  background-color: rgba(12, 20, 17, .55);
  backdrop-filter: blur(0);
  transition: opacity .38s ease, visibility .38s, backdrop-filter .38s;
  pointer-events: none;
}
.bhs-search-widget .bhs-panel {
  position: fixed; top: 0; z-index: 999991; width: min(860px, 100vw);
  max-width: 100vw; max-height: min(94vh, 94dvh); overflow: auto; overscroll-behavior: contain;
  padding: 34px 42px 36px;
  border: 1px solid #eef0ed; border-radius: 0 0 25px 25px;
  background-color: #fff; box-shadow: 0 35px 90px rgba(0, 0, 0, .20);
  visibility: hidden; opacity: 0; pointer-events: none;
  will-change: transform, opacity;
  transition: transform .48s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, visibility .48s;
}
.bhs-search-widget .bhs-panel--center { left: 50%; transform: translate(-50%, -105%); }
.bhs-search-widget .bhs-panel--right { right: 0; transform: translateY(-105%); }
.bhs-search-widget .bhs-panel--left { left: 0; transform: translateY(-105%); }
.bhs-search-widget.is-open .bhs-backdrop { opacity: 1; visibility: visible; pointer-events: auto; backdrop-filter: blur(4px); }
.bhs-search-widget.is-open .bhs-panel { visibility: visible; opacity: 1; pointer-events: auto; }
.bhs-search-widget.is-open .bhs-panel--center { transform: translate(-50%, 0); }
.bhs-search-widget.is-open .bhs-panel--right,
.bhs-search-widget.is-open .bhs-panel--left { transform: translateY(0); }
.bhs-search-widget .bhs-panel__inner { width: 100%; max-width: 700px; margin-inline: auto; }
.bhs-search-widget .bhs-panel__header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-bottom: 26px;
}
.bhs-search-widget .bhs-panel__title {
  flex: 1; min-width: 0; margin: 0; padding: 0;
  font-size: clamp(19px, 2vw, 27px); line-height: 1.7; font-weight: 750;
  color: #162e24; text-align: right;
}
.bhs-search-widget .bhs-close {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 43px; height: 43px; padding: 9px; border: 1px solid #e7ebe7;
  border-radius: 50%; color: #31473b; background: #f7f8f6;
  transition: transform .25s, color .25s, background-color .25s;
}
.bhs-search-widget .bhs-close:hover { transform: rotate(90deg); color: #fff; background-color: #173a2c; }
.bhs-search-widget .bhs-close svg { width: 22px; height: auto; aspect-ratio: 1; display: block; }
.bhs-search-widget .bhs-close i { font-size: 22px; }

.bhs-search-widget .bhs-search-form {
  display: flex; align-items: stretch; min-height: 62px; width: 100%; padding: 5px;
  border: 1px solid #e0e8df; border-radius: 15px; gap: 5px;
  background: #fff; box-shadow: 0 3px 16px rgba(17, 43, 29, .04);
  transition: border-color .22s, box-shadow .22s;
}
.bhs-search-widget .bhs-search-form:focus-within { border-color: #67957e; box-shadow: 0 0 0 4px rgba(42, 112, 75, .08); }
.bhs-search-widget .bhs-search-form__field {
  display: flex; align-items: center; flex: 1; min-width: 0; gap: 10px;
  padding: 4px 12px; background-color: transparent;
}
.bhs-search-widget .bhs-search-form__icon {
  color: #637d6c; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.bhs-search-widget .bhs-search-form__icon svg { width: 22px; height: auto; aspect-ratio: 1; display: block; }
.bhs-search-widget .bhs-search-form__icon i { font-size: 22px; }
.bhs-search-widget .bhs-search-input,
.bhs-search-widget .bhs-search-input:focus {
  flex: 1; min-width: 0; width: 100%; padding: 7px 0; margin: 0;
  border: 0 !important; border-radius: 0; background: transparent !important;
  box-shadow: none !important; outline: 0 !important;
  font-size: 14px; line-height: 1.8; font-weight: 400;
  color: #21382b; text-align: right; direction: rtl;
  -webkit-appearance: none; appearance: none;
}
.bhs-search-widget .bhs-search-input::placeholder { color: #8c9890; opacity: 1; }
.bhs-search-widget .bhs-search-input::-webkit-search-cancel-button { cursor: pointer; }
.bhs-search-widget .bhs-search-submit {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 100px; padding: 8px 24px; margin: 0;
  border: 1px solid transparent; border-radius: 11px;
  font-size: 14px; font-weight: 650; white-space: nowrap;
  background-color: #1e4936; color: #fff;
  transition: background-color .22s, color .22s, transform .22s;
}
.bhs-search-widget .bhs-search-submit:hover { color: #fff; background-color: #2d6a4c; transform: translateY(-1px); }

.bhs-search-widget .bhs-suggestions { margin-top: 26px; }
.bhs-search-widget .bhs-suggestions.is-hidden { display: none; }
.bhs-search-widget .bhs-suggestions__title { font-size: 13px; font-weight: 650; color: #62756a; margin-bottom: 13px; }
.bhs-search-widget .bhs-suggestions__items { display: flex; flex-wrap: wrap; gap: 9px; }
.bhs-search-widget .bhs-suggestion {
  border: 1px solid #e4e9e3; border-radius: 9px; background-color: #f8faf7;
  color: #3b5343; padding: 9px 16px; font-size: 13px; font-weight: 450;
  max-width: 100%; white-space: normal; text-align: right;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bhs-search-widget .bhs-suggestion:hover { background-color: #e8f2e9; color: #1e5635; border-color: #b5d6c2; }

.bhs-search-widget .bhs-results { margin-top: 25px; }
.bhs-search-widget .bhs-results__heading {
  margin-bottom: 13px; color: #66796c; font-size: 13px; font-weight: 550;
}
.bhs-search-widget .bhs-categories { margin: 0 0 15px; }
.bhs-search-widget .bhs-categories__title { color: #67796d; font-weight: 600; font-size: 12px; margin-bottom: 9px; }
.bhs-search-widget .bhs-categories__links { display: flex; flex-wrap: wrap; gap: 8px; }
.bhs-search-widget .bhs-categories__link,
.bhs-search-widget .bhs-categories__link:visited {
  display: inline-block; padding: 5px 12px; border-radius: 7px;
  background: #eff5ee; color: #235c3d; font-size: 12px; text-decoration: none;
}
.bhs-search-widget .bhs-categories__link:hover { background: #dcebdd; color: #153e26; }
.bhs-search-widget .bhs-results__list {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 9px;
  max-height: 360px; overflow-y: auto; overflow-x: hidden;
  scrollbar-gutter: stable; scrollbar-width: thin;
  scrollbar-color: #a4b9a6 transparent;
  overscroll-behavior-y: contain;
  padding: 2px 2px 6px 7px;
}
.bhs-search-widget .bhs-product,
.bhs-search-widget .bhs-product:visited {
  color: #1b3325; display: flex; flex-direction: row; align-items: center; gap: 16px;
  min-width: 0; padding: 11px 13px; border-radius: 13px;
  border: 1px solid #edf0eb; background-color: #fff;
  text-decoration: none !important;
  transition: background-color .22s, border-color .22s, transform .22s;
}
.bhs-search-widget .bhs-product:hover { background-color: #f7faf7; border-color: #cbdccb; transform: translateX(-2px); }
.bhs-search-widget .bhs-product__media {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 9px; overflow: hidden;
  background: #f5f6f4;
}
.bhs-search-widget .bhs-product__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.bhs-search-widget .bhs-product__info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.bhs-search-widget .bhs-product__title {
  font-size: 14px; font-weight: 650; line-height: 1.7;
  color: #1e3928; overflow-wrap: anywhere; text-align: right;
}
.bhs-search-widget .bhs-product__price {
  font-size: 13px; line-height: 1.8; font-weight: 600; color: #26724a;
  text-align: right; direction: rtl;
}
.bhs-search-widget .bhs-product__price del { opacity: .55; margin-inline-end: 7px; }
.bhs-search-widget .bhs-product__price ins { text-decoration: none; }
.bhs-search-widget .bhs-product__arrow { flex: 0 0 auto; color: #88a18c; font-size: 20px; line-height: 1; }
.bhs-search-widget .bhs-results__footer { text-align: center; padding-top: 16px; }
.bhs-search-widget .bhs-load-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 26px; border: 1px solid #d9e5db; border-radius: 10px;
  background-color: #f3f8f3; color: #24513b; font-size: 13px; font-weight: 600;
  transition: background-color .2s, color .2s;
}
.bhs-search-widget .bhs-load-more:hover { background-color: #e2f1e4; color: #184b2f; }
.bhs-search-widget .bhs-load-more:disabled { opacity: .65; cursor: progress; }
.bhs-search-widget .bhs-status { margin-top: 20px; padding: 12px 15px; background: #f6f8f5; border-radius: 10px; font-size: 13px; color: #587060; }
body.bhs-search-page-locked { overflow: hidden !important; }

@media (max-width: 767px) {
  .bhs-search-widget .bhs-panel { padding: 24px 18px; border-radius: 0 0 18px 18px; }
  .bhs-search-widget .bhs-panel__header { gap: 13px; margin-bottom: 19px; }
  .bhs-search-widget .bhs-panel__title { font-size: 19px; }
  .bhs-search-widget .bhs-close { width: 38px; height: 38px; }
  .bhs-search-widget .bhs-search-form { min-height: 55px; }
  .bhs-search-widget .bhs-search-form__field { padding-inline: 7px; gap: 7px; }
  .bhs-search-widget .bhs-search-input { font-size: 12px; }
  .bhs-search-widget .bhs-search-submit { min-width: auto; padding: 8px 14px; font-size: 12px; }
  .bhs-search-widget .bhs-results__list { max-height: 42vh; }
  .bhs-search-widget .bhs-product { padding: 9px; gap: 11px; }
  .bhs-search-widget .bhs-product__media { width: 63px; height: 63px; }
  .bhs-search-widget .bhs-product__title { font-size: 12.5px; }
  .bhs-search-widget .bhs-product__price { font-size: 12px; }
  .bhs-search-widget .bhs-product__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bhs-search-widget .bhs-panel, .bhs-search-widget .bhs-backdrop,
  .bhs-search-widget .bhs-product, .bhs-search-widget button { transition-duration: .01ms !important; }
}
