.search-style-2 {
  position: relative;
}

.showSearchItems_v1 {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  z-index: 999999; /* high index to overlay everything */
}

.search-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
}
.search-item:last-child {
  border-bottom: none;
}
.search-item:hover {
  background: #fafafa;
}

.search-item__img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 64px;
  border: 1px solid #eee;
  background: #f8f8f8;
}
.search-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-item__meta {
  flex: 1;
  display: flex;
  flex-direction: column; /* right side in a column view */
  gap: 4px;
  min-width: 0;
}
.search-item__title {
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item__brand {
  font-size: 12px;
  color: #666;
}
.search-item__prices {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
}
.search-item__old {
  text-decoration: line-through;
  color: #999;
}
.search-item__new {
  font-weight: 700;
  color: #111;
}
.search-item__small {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.showSearchItems {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;

  max-height: 400px;
  overflow-y: auto;

  display: none;

  z-index: 999; /* high but not insane */
}

.search-empty {
  padding: 12px;
  color: #777;
}
.search-loading {
  padding: 12px;
}
