/* Живой поиск по всем каталогам — выпадающие подсказки в «Каталоге дня» */
.search-wrap {
  position: relative;
  flex: 1 1 300px;
  min-width: 250px;
  max-width: 520px;
}
.search-wrap .search { width: 100%; min-width: 0; }

.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(560px, calc(100vw - 36px));
  max-height: min(72vh, 540px);
  overflow-y: auto;
  padding: 6px;
  background: linear-gradient(180deg, #1a1f1d 0%, #131715 100%);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .62), 0 0 0 1px rgba(0, 0, 0, .3);
  z-index: 140;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.search-suggest[hidden] { display: none; }
.search-suggest::-webkit-scrollbar { width: 7px; }
.search-suggest::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 7px; }

.ss-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px 8px;
}
.ss-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.ss-total { font-size: 11.5px; color: rgba(255, 255, 255, .45); white-space: nowrap; }

.ss-group { padding-top: 2px; }
.ss-group + .ss-group { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ss-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.ss-group-count {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .06);
  border-radius: 100px;
  padding: 2px 8px;
}

.ss-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ss-item:hover,
.ss-item.is-active { background: rgba(255, 255, 255, .075); color: #fff; }
.ss-item.is-active { box-shadow: inset 0 0 0 1px rgba(244, 200, 75, .28); }

.ss-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex: none;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #232826;
  border: 1px solid rgba(255, 255, 255, .08);
}
.ss-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ss-thumb span { font-size: 18px; font-weight: 800; color: rgba(255, 255, 255, .28); }

.ss-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ss-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-name mark { background: none; color: var(--gold); font-weight: 800; }
.ss-meta {
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.ss-price { font-size: 12.5px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.ss-old { font-size: 10.5px; color: rgba(255, 255, 255, .35); text-decoration: line-through; white-space: nowrap; }
.ss-stock { font-size: 10.5px; color: rgba(255, 255, 255, .42); white-space: nowrap; }
.ss-stock.in { color: #3fc0aa; }

.ss-empty {
  padding: 24px 16px 26px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .55);
}
.ss-empty b { color: #fff; }
.ss-empty-hint { display: block; margin-top: 5px; font-size: 11.5px; color: rgba(255, 255, 255, .38); }

.ss-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 15px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
}
.ss-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: ssSpin .7s linear infinite;
  flex: none;
}
@keyframes ssSpin { to { transform: rotate(360deg); } }

.ss-foot {
  padding: 9px 13px 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .35);
}

@media (max-width: 780px) {
  .search-wrap { flex: 1 1 100%; min-width: 0; max-width: none; }
  .search-suggest { width: 100%; max-height: 62vh; }
  .ss-item { padding: 9px 9px; gap: 10px; }
  .ss-thumb { width: 44px; height: 44px; }
}
@media (max-width: 420px) {
  .ss-right { display: none; }
}