/* Header search autocomplete dropdown (desktop) */
.search { position: relative; }

.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  max-height: 480px;
  overflow-y: auto;
  z-index: 1050;
  font-size: 14px;
}
.search-autocomplete[hidden] { display: none; }

.search-autocomplete .sa-section + .sa-section {
  border-top: 1px solid #f1f5f9;
}
.search-autocomplete .sa-head {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.search-autocomplete .sa-list {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}
.search-autocomplete .sa-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.3;
  cursor: pointer;
}
.search-autocomplete .sa-opt[aria-selected="true"],
.search-autocomplete .sa-opt.is-active,
.search-autocomplete .sa-opt:hover {
  background: #f1f5f9;
  outline: none;
}
.search-autocomplete .sa-opt img,
.search-autocomplete .sa-ph {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 6px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}
.search-autocomplete .sa-name {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.search-autocomplete .sa-price {
  flex: 0 0 auto;
  font-weight: 600;
  color: #2563eb;
  font-size: 13px;
}
.search-autocomplete .sa-ic {
  width: 18px;
  text-align: center;
  color: #94a3b8;
  font-weight: 700;
}
.search-autocomplete .sa-opt--cat,
.search-autocomplete .sa-opt--brand,
.search-autocomplete .sa-opt--recent { font-size: 13.5px; }
.search-autocomplete .sa-opt--recent { color: #475569; }
.search-autocomplete .sa-opt small { color: #94a3b8; font-weight: 400; }
.search-autocomplete .sa-empty {
  padding: 14px;
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 980px) {
  .search-autocomplete { display: none !important; }
}
