/* Premium live search suggestions */
.site-search-form {
  position: relative;
}

.search-cat {
  position: relative;
  min-width: 178px;
}

.search-cat select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.search-cat-fallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.search-suggest-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 1200;
  display: none;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 60px rgba(5, 14, 26, .28);
  backdrop-filter: blur(16px);
}

.site-search-form.has-suggestions .search-suggest-panel {
  display: grid;
  gap: 8px;
}

.search-suggest-head,
.search-suggest-empty {
  padding: 8px 10px;
  color: #607491;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-suggest-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #071421;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(232, 103, 14, .22);
  background: #f7fbff;
}

.search-suggest-item img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef4fb;
}

.search-suggest-info {
  min-width: 0;
}

.search-suggest-brand {
  color: #e8670e;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.search-suggest-name {
  overflow: hidden;
  margin-top: 3px;
  color: #071421;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggest-meta {
  margin-top: 4px;
  color: #607491;
  font-size: 12px;
  font-weight: 650;
}

.search-suggest-price {
  color: #071421;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.search-suggest-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(232, 103, 14, .22);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8f2 0%, #f7fbff 100%);
  color: #071421;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.search-suggest-all:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 103, 14, .45);
  box-shadow: 0 14px 30px rgba(232, 103, 14, .12);
}

.search-suggest-all .search-suggest-name,
.search-suggest-all .search-suggest-meta {
  white-space: normal;
}

.search-suggest-all-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #071421;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 900px) {
  body.mobile-search-open .mobile-search-row.is-open {
    overflow: visible !important;
    z-index: 1300 !important;
  }

  body.mobile-nav-open .mobile-search-row {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .mobile-search-box.site-search-form {
    position: relative;
  }

  .mobile-search-box .search-suggest-panel {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(62vh, 420px);
    overflow-y: auto;
    z-index: 1500;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(5, 14, 26, .38);
  }

  .search-suggest-item {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 68px;
  }

  .search-suggest-item img {
    width: 52px;
    height: 52px;
  }

  .search-suggest-price {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
    color: #e8670e;
  }

  .search-suggest-all {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .search-suggest-all-action {
    width: 100%;
  }
}
