/* lamar.ru — выпадашка умного поиска. Цвет — фирменный цвет темы Aspro (--theme-base-color). */
.lm-search {
  position: fixed;
  z-index: 3000;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
  font-size: 14px;
  line-height: 1.35;
  color: #333;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}
.lm-search[hidden] { display: none; }

.lm-search__note {
  padding: 10px 16px;
  font-size: 13px;
  color: #666;
  background: #f5f6fa;
  border-radius: 10px 10px 0 0;
}

.lm-search__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px 4px;
}
.lm-search__cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #e3e5ee;
  border-radius: 999px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}
.lm-search__cat:hover, .lm-search__cat.is-active {
  border-color: var(--theme-base-color, #070b7c);
  color: var(--theme-base-color, #070b7c);
}
.lm-search__cat-parent { color: #999; }
.lm-search__cat-count { color: #999; font-size: 12px; }

.lm-search__items { padding: 6px 8px; }
.lm-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
}
.lm-search__item:hover, .lm-search__item.is-active { background: #f2f3f8; color: #333; }
.lm-search__img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lm-search__img img { max-width: 56px; max-height: 56px; object-fit: contain; }
.lm-search__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lm-search__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lm-search__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.lm-search__price { font-weight: 600; color: #222; }
.lm-search__price-old { font-size: 12px; color: #999; }
.lm-search__pro { font-size: 12px; color: #888; }
.lm-search__badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f1f1f4;
  color: #777;
}

.lm-search__all {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid #eef0f5;
  font-weight: 600;
  color: var(--theme-base-color, #070b7c);
  text-decoration: none;
}
.lm-search__all:hover, .lm-search__all.is-active { background: #f5f6fa; color: var(--theme-base-color, #070b7c); }

.lm-search__empty { padding: 16px; color: #666; }

@media (max-width: 767px) {
  .lm-search { border-radius: 8px; }
  .lm-search__img, .lm-search__img img { flex-basis: 48px; width: 48px; height: 48px; max-width: 48px; max-height: 48px; }
}
