/* Функциональный поиск по каталогу */
.search {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  margin-left: 120px;
  margin-right: 40px;
  z-index: 1000;
}

.site-search-input {
  width: min(741px, 100%);
  height: 40px;
  padding: 0 18px;
  border: 0;
  outline: none;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 15px;
}

.site-search-input::placeholder {
  color: #777;
}

.search-results {
  display: none;
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: min(741px, 100%);
  max-height: 430px;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  color: #111;
}

.search-results.is-visible {
  display: block;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 16px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.search-result:hover {
  background: #f2f2f2;
}

.search-result img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 7px;
  background: #eee;
  flex-shrink: 0;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.search-result-info strong {
  font-size: 14px;
  line-height: 1.2;
}

.search-result-info small {
  font-size: 12px;
  color: #777;
}

.search-empty {
  padding: 20px;
  text-align: center;
  color: #777;
  font-size: 14px;
}

@media (max-width: 768px) {
  .search {
    width: 100%;
    margin: 0;
  }

  .site-search-input,
  .search-results {
    width: 100%;
  }

  .search-results {
    left: 0;
    transform: none;
  }
}
