/* ============================================================
   PESACH SEARCH OVERLAY — minimal CSS, no layout changes
   ============================================================ */

#pkr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,28,60,0.5);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
}
#pkr-overlay.open { display: flex; }

#pkr-overlay-box {
  background: #fff;
  border-radius: 16px;
  width: 92%;
  max-width: 640px;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15,28,60,0.22);
  direction: rtl;
}

#pkr-ov-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf7;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
#pkr-ov-input {
  flex: 1;
  height: 40px;
  border: 1.5px solid #c8d3e8;
  border-radius: 20px;
  padding: 0 16px;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  outline: none;
  background: #f7f9fd;
  color: #1a2740;
  direction: rtl;
}
#pkr-ov-input:focus { border-color: #193b68; background: #fff; }
#pkr-ov-input::placeholder { color: #9aabcc; }
#pkr-ov-close {
  background: #f0f3fa;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 16px;
  color: #193b68;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

#pkr-ov-results { overflow-y: auto; flex: 1; padding: 8px 14px 10px; }

.pkr-ov-group {
  font-size: 11px;
  font-weight: 700;
  color: #9aabcc;
  letter-spacing: .06em;
  padding: 10px 4px 4px;
  border-top: 1px solid #f0f3fa;
  margin-top: 4px;
  direction: rtl;
}
.pkr-ov-group:first-child { border-top: none; margin-top: 0; }

.pkr-ov-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s;
  direction: rtl;
}
.pkr-ov-item:hover { background: #f0f5ff; }

.pkr-ov-thumb {
  width: 42px; height: 42px;
  background: #f7f9fd;
  border-radius: 8px;
  border: 1px solid #e8edf7;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.pkr-ov-thumb img { max-width: 38px; max-height: 38px; object-fit: contain; }

.pkr-ov-body { flex: 1; min-width: 0; }
.pkr-ov-name { font-size: 14px; font-weight: 600; color: #193b68; }
.pkr-ov-name mark { background: #fff3b0; border-radius: 2px; padding: 0 1px; color: inherit; font-style: normal; }
.pkr-ov-cat { font-size: 12px; color: #9aabcc; margin-top: 1px; }
.pkr-ov-kashrut { font-size: 11px; color: #5a6f96; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* preferred footer */
#pkr-ov-footer {
  border-top: 1px solid #e8edf7;
  padding: 10px 16px 14px;
  flex-shrink: 0;
  background: #f8faff;
  direction: rtl;
}
.pkr-ov-footer-title { font-size: 12px; font-weight: 700; color: #193b68; margin: 0 0 8px; }
.pkr-ov-footer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pkr-ov-footer-tag {
  background: #fff;
  border: 1px solid #c8d3e8;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: #193b68;
  white-space: nowrap;
}

/* no results */
.pkr-ov-noresults { padding: 16px 4px 8px; direction: rtl; }
.pkr-ov-nores-title { font-size: 14px; font-weight: 700; color: #193b68; margin: 0 0 6px; }
.pkr-ov-nores-note { font-size: 13px; color: #5a6f96; margin: 0 0 12px; line-height: 1.5; }
.pkr-ov-nores-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.pkr-ov-nores-card {
  background: #f7f9fd; border: 1px solid #e0e7f2; border-radius: 10px;
  padding: 8px 10px; display: flex; flex-direction: column; align-items: center;
  gap: 5px; min-width: 74px; text-align: center;
  font-size: 11px; color: #193b68; font-weight: 500;
}
.pkr-ov-nores-card img { width: 34px; height: 34px; object-fit: contain; border-radius: 4px; }

@media (max-width: 540px) {
  #pkr-overlay { padding-top: 36px; }
  #pkr-overlay-box { width: 96%; border-radius: 12px; }
}
