/* ==========================================================================
   ProHealth live search results panel (shared: mobile header, desktop hero,
   desktop header popover). Driven by public/gibmed/live-search.js
   ========================================================================== */
.ph-sd {
  position: absolute; z-index: 1200;
  background: #fff; border: 1px solid #e2e6eb; border-radius: 8px;
  box-shadow: 0 14px 36px rgba(11,45,91,.16);
  padding: 14px 14px 12px; color: #1f2937; text-align: left;
}
.ph-sd[hidden] { display: none; }
.ph-sd::before {
  content: ""; position: absolute; top: -8px; right: 20px; width: 14px; height: 14px;
  background: #fff; border-left: 1px solid #e2e6eb; border-top: 1px solid #e2e6eb;
  transform: rotate(45deg);
}
.ph-sd__list {
  display: grid; gap: 12px;
  max-height: calc(100vh - 270px); max-height: calc(100dvh - 270px);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.ph-sd-card {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start;
  border: 1px solid #e3e7eb; border-radius: 5px; padding: 16px 14px 16px 12px; background: #fff;
  color: inherit; text-decoration: none;
}
.ph-sd-card:hover { border-color: #cfd6de; }
.ph-sd-card__img { width: 84px; height: 70px; display: grid; place-items: center; margin-top: 4px; }
.ph-sd-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.ph-sd-card__ph { width: 60px; height: 60px; border-radius: 10px; background: #eef4f9; display: grid; place-items: center; }
.ph-sd-card__ph svg { width: 28px; height: 28px; stroke: #8aa2b8; fill: none; stroke-width: 1.8; }
.ph-sd-card__body { min-width: 0; display: block; }
.ph-sd-card__cat { font-size: 11px; line-height: 1.3; color: #4b5563; margin: 0 0 3px; }
.ph-sd-card__name { font-size: 15.5px; line-height: 1.25; font-weight: 500; color: #111827; margin: 0; }
.ph-sd-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ph-sd-card__from { font-size: 12px; color: #374151; line-height: 1.2; }
.ph-sd-card__price { display: block; font-size: 22px; line-height: 1.15; font-weight: 400; color: #111827; margin-top: 2px; letter-spacing: -.2px; }
.ph-sd-card__btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 15px; border-radius: 5px;
  background: #4a6cdc; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.ph-sd-card:hover .ph-sd-card__btn, .ph-sd-card__btn:active { background: #3b5bc6; }
.ph-sd__pager { display: flex; gap: 6px; border-top: 1px solid #eceff2; margin-top: 14px; padding-top: 12px; }
.ph-sd__pager:empty { display: none; }
.ph-sd__dot {
  width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #e7ecfb; color: #4a6cdc; font-size: 12px; font-weight: 700; line-height: 24px; text-align: center;
}
.ph-sd__dot.is-active { background: #4a6cdc; color: #fff; }
.ph-sd__msg { padding: 18px 6px 14px; text-align: center; }
.ph-sd__msg strong { display: block; font-size: 14px; font-weight: 700; color: #111827; }
.ph-sd__msg span { display: block; margin-top: 4px; font-size: 12.5px; color: #5f6c7b; }
.ph-sd-skel { border: 1px solid #eef1f4; border-radius: 5px; padding: 16px 14px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.ph-sd-skel i { display: block; border-radius: 4px; background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 50%, #eef2f6 75%); background-size: 200% 100%; animation: phShimmer 1.1s linear infinite; }
.ph-sd-skel i:first-child { height: 64px; }
.ph-sd-skel div { display: grid; gap: 8px; align-content: start; }
.ph-sd-skel div i { height: 10px; }
.ph-sd-skel div i:nth-child(2) { height: 14px; width: 80%; }
.ph-sd-skel div i:nth-child(3) { height: 20px; width: 40%; margin-top: 8px; }
@keyframes phShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
