/* חיפוש מוצרים — עיישה בוטיק
   נטען יחד עם aysha-search.js. כל המחלקות בתחילית aysha-s- כדי לא להתנגש בתבנית. */

.aysha-s-panel {
  position: fixed;
  inset-inline: 0;
  top: 0;
  /* חלון ההתחברות של האתר יושב על 1000000000 והעגלה הצדדית על 999999.
     החיפוש נפתח ביוזמת הלקוחה, אז הוא חייב להיות מעליהם. */
  z-index: 2147483647;
  background: #fff;
  border-bottom: 1px solid rgba(27, 56, 21, .12);
  box-shadow: 0 10px 30px rgba(27, 56, 21, .10);
  /* הזזה לבדה לא מספיקה: הפאנל יושב מתחת להדר ומתכווץ בסגירה,
     אז הוא נעצר באמצע המסך. ההסתרה הסופית נעשית בקוד (hidden). */
  transform: translateY(-110%);
  transition: transform .28s ease;
  direction: rtl;
  /* הפונט של האתר. body יורש מערכת, אז מציינים במפורש כמו שאלמנטור עושה */
  font-family: "Heebo", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.aysha-s-panel.is-open { transform: translateY(0); }

.aysha-s-panel[hidden] { display: none; }

.aysha-s-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(27, 56, 21, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.aysha-s-backdrop.is-open { opacity: 1; pointer-events: auto; }

.aysha-s-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 20px 20px;
}

.aysha-s-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #1B3815;
  padding-bottom: 8px;
}

.aysha-s-row svg { width: 22px; height: 22px; fill: #1B3815; flex: 0 0 auto; }

.aysha-s-input {
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1.4;
  color: #1B3815;
  font-family: inherit;
  padding: 2px 0;
  min-width: 0;
}

.aysha-s-input::placeholder { color: rgba(27, 56, 21, .45); }

.aysha-s-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  border-radius: 4px;
  /* שטח נגיעה של 44 פיקסל — כפתור של 26 פיקסל קטן מדי לאצבע */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: -10px;
}

.aysha-s-close:focus-visible { outline: 2px solid #1B3815; outline-offset: 2px; }

.aysha-s-status {
  padding: 14px 2px 2px;
  font-size: 14px;
  color: rgba(27, 56, 21, .65);
}

.aysha-s-results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 58vh; overflow-y: auto; }

.aysha-s-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #1B3815;
}

.aysha-s-item a:hover,
.aysha-s-item.is-active a { background: rgba(27, 56, 21, .07); }

.aysha-s-thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(27, 56, 21, .04);
  border: 1px solid rgba(27, 56, 21, .10);
}

.aysha-s-name { flex: 1 1 auto; font-size: 16px; line-height: 1.35; }

.aysha-s-price { flex: 0 0 auto; font-size: 15px; white-space: nowrap; }

.aysha-s-price del { opacity: .5; margin-inline-start: 6px; font-size: 13px; }

.aysha-s-all {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  color: #1B3815;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .aysha-s-inner { padding: 14px 16px 16px; }
  .aysha-s-input { font-size: 19px; }
  .aysha-s-thumb { width: 48px; height: 48px; }
  .aysha-s-name { font-size: 15px; }
  .aysha-s-results { max-height: 62vh; }
}