/* BestGift live search. Акцентный цвет подберите под шаблон. */
.bgls-form { position: relative; }
.bgls-box {
  --bgls-accent: #d6336c;
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  z-index: 10000; background: #fff; border: 1px solid #eee; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  max-height: min(70vh, 560px); overflow-y: auto; padding: 6px 0;
  min-width: 300px; text-align: left; font-size: 14px; line-height: 1.35;
}
.bgls-box[hidden] { display: none; }
.bgls-sec {
  padding: 8px 14px 4px; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: #999;
}
.bgls-box mark { background: none; color: inherit; font-weight: 700; padding: 0; }
.bgls-phrases { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 6px; }
.bgls-phrase {
  border: 1px solid #e6e6e6; background: #fafafa; border-radius: 16px;
  padding: 5px 12px; font: inherit; color: #333; cursor: pointer;
}
.bgls-phrase:hover, .bgls-phrase.is-active { border-color: var(--bgls-accent); color: var(--bgls-accent); background: #fff; }
.bgls-cat, .bgls-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  color: #333; text-decoration: none;
}
.bgls-cat:hover, .bgls-item:hover, .bgls-cat.is-active, .bgls-item.is-active { background: #f7f3f5; color: #222; text-decoration: none; }
.bgls-cnt { margin-left: auto; font-size: 12px; color: #aaa; }
.bgls-item img, .bgls-noimg {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 6px; object-fit: cover; background: #f2f2f2;
}
.bgls-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bgls-name { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bgls-catname { font-size: 12px; color: #999; margin-top: 2px; }
.bgls-price { white-space: nowrap; font-weight: 600; color: var(--bgls-accent); }
.bgls-all {
  display: block; width: calc(100% - 28px); margin: 8px 14px 6px; padding: 10px;
  border: 0; border-radius: 8px; background: var(--bgls-accent); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.bgls-all.is-active, .bgls-all:hover { filter: brightness(.92); }
.bgls-none { padding: 14px; color: #888; }
.bgls-fixed { padding: 6px 14px 0; font-size: 12px; color: #999; }
@media (max-width: 575px) {
  .bgls-box { min-width: 0; max-height: 60vh; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .bgls-sec { padding-top: 10px; }
  .bgls-cat, .bgls-item { padding: 9px 12px; }
  .bgls-item img, .bgls-noimg { width: 44px; height: 44px; flex-basis: 44px; }
}

/* Пустая страница результатов */
.bgls-empty { padding: 10px 0 40px; }
.bgls-empty-title { font-size: 22px; margin: 10px 0 18px; }
.bgls-empty-sub { font-size: 16px; margin: 18px 0 12px; color: #555; font-weight: 600; }
.bgls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.bgls-card { display: flex; flex-direction: column; gap: 6px; color: #333; text-decoration: none; }
.bgls-card:hover { color: #d6336c; text-decoration: none; }
.bgls-card img, .bgls-card-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f2f2f2; }
.bgls-card-name { font-size: 14px; line-height: 1.3; }
.bgls-card-price { font-weight: 600; color: #d6336c; }
.bgls-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bgls-chips a { padding: 8px 14px; border: 1px solid #e3e3e3; border-radius: 20px; color: #333; text-decoration: none; }
.bgls-chips a:hover { border-color: #d6336c; color: #d6336c; }
.bgls-empty-ask { margin-top: 28px; padding: 18px; background: #faf5f7; border-radius: 10px; }
.bgls-empty-ask p { margin: 0 0 12px; }
.bgls-empty-btn { display: inline-block; padding: 10px 18px; border-radius: 8px; background: #25d366; color: #fff !important; font-weight: 600; text-decoration: none; }
