button.ico.search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 16px 24px;
  background: rgba(14, 6, 16, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-panel {
  width: min(640px, 100%);
  background: #fff;
  border: 1px solid rgba(14, 6, 16, 0.1);
  box-shadow: 0 24px 64px rgba(14, 6, 16, 0.18);
  border-radius: 4px;
  overflow: hidden;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(14, 6, 16, 0.08);
}

.search-form svg {
  flex-shrink: 0;
  opacity: .55;
}

.search-form input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 16px;
  color: #0E0610;
  background: transparent;
}

.search-form input::placeholder {
  color: rgba(14, 6, 16, 0.45);
}

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  opacity: .55;
  padding: 4px;
}

.search-close:hover {
  opacity: 1;
}

.search-status,
.search-empty {
  padding: 20px 18px;
  font-size: 14px;
  color: rgba(14, 6, 16, 0.6);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(14, 6, 16, 0.04);
  outline: none;
}

.search-result img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
  background: #F5F2EC;
  flex-shrink: 0;
}

.search-result-body {
  min-width: 0;
  flex: 1;
}

.search-result-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  font-size: 13px;
}

.search-result-price {
  font-weight: 600;
}

.search-result-regular {
  color: rgba(14, 6, 16, 0.45);
  text-decoration: line-through;
  font-size: 12px;
}

.search-result-stock {
  font-size: 11px;
  color: rgba(14, 6, 16, 0.45);
}

.search-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(14, 6, 16, 0.08);
}

.search-footer a {
  font-size: 13px;
  font-weight: 600;
  color: #653966;
}

.search-footer a:hover {
  color: #0E0610;
}
