/* Тема «Сад в посылке». Поиск: подсказки под полем в шапке и пустая страница результатов. */

/* ---------- Подсказки под полем поиска ----------
   Панель стоит внутри шапки; место под полем считает скрипт и передаёт переменными. */
.ssug {
  position: absolute; z-index: 45; top: var(--ssug-top, 100%); left: var(--ssug-left, 0);
  width: max(var(--ssug-width, 480px), 420px); max-width: calc(100vw - 2 * var(--gutter)); max-height: min(76vh, 680px); overflow-y: auto;
  padding: 6px; border: 1px solid var(--c-line); border-radius: var(--radius-card); background: var(--c-surface); color: var(--c-ink);
  box-shadow: var(--shadow-pop); font-size: var(--fs-base); line-height: 1.35;
}
.ssug[hidden] { display: none; }
.ssug__list { margin: 0; padding: 0; list-style: none; }
.ssug__list:empty { display: none; }
.ssug__title { padding: var(--s-2) 10px var(--s-1); color: var(--c-muted); font-size: var(--fs-xs); font-weight: 600; }
.ssug__item { border-radius: var(--radius); }
.ssug__item.is-active { background: var(--c-green-tint); box-shadow: inset 0 0 0 1px var(--c-green); }
.ssug__item:hover { background: var(--c-green-tint); }
.ssug__link { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 6px 10px; color: var(--c-ink); text-decoration: none; }
.ssug__link:hover { color: var(--c-ink); }
/* Миниатюра всегда квадратная, каким бы ни было исходное фото. */
.ssug__img { flex: none; width: 48px; height: 48px; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; background: var(--c-sand); }
.ssug__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ssug__name { font-weight: 600; }
.ssug__kind { color: var(--c-muted); font-size: var(--fs-xs); }
.ssug__stock { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); }
.ssug__stock::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ssug__stock--in { color: var(--c-green); }
.ssug__stock--pre { color: #b45309; }
.ssug__stock--out { color: var(--c-muted); }
.ssug__price { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: var(--fs-md); font-weight: 700; white-space: nowrap; }
.ssug__price del { color: var(--c-muted); font-size: var(--fs-xs); font-weight: 400; }
.ssug__icon { display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--c-green-tint); color: var(--c-green); }
.ssug__icon .icon { width: 18px; height: 18px; }
.ssug__item--all { margin-top: var(--s-2); border-top: 1px solid var(--c-line-soft); border-radius: 0 0 var(--radius) var(--radius); }
.ssug__item--all .ssug__link { justify-content: center; color: var(--c-green); font-weight: 600; }
.ssug__note { margin: 0; padding: var(--s-3); }

/* ---------- Страница результатов: ничего не нашлось ---------- */
.pitomnik-search-empty .catalog__layout,
.pitomnik-search-empty .catalog .subcats,
.pitomnik-search-empty .catalog__count { display: none; }
.nohit { display: flex; flex-direction: column; gap: var(--section-gap); margin-top: var(--s-4); }
.nohit__box { padding: var(--s-5) var(--s-6); border-radius: var(--radius-card); background: var(--c-surface); }
.nohit__title { margin: 0 0 var(--s-4); font-size: var(--fs-h2); overflow-wrap: anywhere; }
.nohit__lead { margin: 0 0 var(--s-2); font-weight: 600; }
.nohit__tips { margin: 0 0 var(--s-5); padding-left: 1.4em; }
.nohit__tips li { margin-bottom: var(--s-2); }
.nohit__tips li::marker { color: var(--c-green); }
.nohit__form { max-width: 640px; }
/* Блоки темы внутри страницы каталога: поля страницы уже заданы, второй раз не нужны. */
.nohit .hblock { margin-bottom: 0; }
.nohit .hblock > .container { width: 100%; padding-inline: 0; }

/* ---------- Планшет и телефон: панель во всю ширину под полем ---------- */
@media (max-width: 1023px) {
  .ssug { left: var(--gutter); right: var(--gutter); width: auto; max-width: none; max-height: 70vh; }
}

@media (max-width: 639px) {
  .ssug { left: 0; right: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); border-inline: 0; }
  .nohit__box { padding: var(--s-5) var(--s-4); }
}
