/* static/mycss/predictive-search-dropdown.css */

/* якорь: делаем контейнер видимым для абсолютного позиционирования */
.predictive-search[data-predictive-search] {
  position: relative;
  overflow: visible; /* чтобы выпадашка не обрезалась */
}

/* поповер */
.ps-popover.ps-hidden { display: none; }
.ps-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  padding: 8px 0 6px;
  max-height: 520px;
  overflow: auto;
}

/* заголовок секции */
.ps-head {
  padding: 8px 14px 4px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #939393;
}

/* список */
.ps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ps-empty {
  padding: 14px;
  font-size: 14px;
  color: #666;
}

/* айтем */
.ps-item { }
.ps-item + .ps-item { border-top: 1px solid #f3f3f3; }

.ps-link {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
}
.ps-item.is-active,
.ps-link:hover {
  background: #fafafa;
}

.ps-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #f6f6f6;
  overflow: hidden;
}
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-ph { width: 100%; height: 100%; background: linear-gradient(90deg,#f1f1f1,#f8f8f8,#f1f1f1); }

.ps-meta { min-width: 0; }
.ps-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-price {
  font-size: 13px;
  color: #444;
  margin-top: 2px;
}

/* футер */
.ps-foot {
  padding: 6px 14px 10px;
  display: flex;
  justify-content: flex-end;
}
.ps-all {
  font-size: 13px;
  text-decoration: none;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}
.ps-all:hover { background: #000; }

/* спиннер из темы (если есть) */
.predictive-search__loading-state { display: none; }
.predictive-search__loading-state.is-visible {
  display: inline-flex;
  align-items: center;
}
