/* by jqu224 — catalog search bar (between hero and first section) */

.catalog-search-wrap {
  z-index: 2;
  box-sizing: border-box;
  max-width: 880px;
  margin: 0 auto;
  padding: 4px 12px 14px;
  position: relative;
}

.catalog-search-label {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.catalog-search-inner {
  align-items: center;
  gap: 8px;
  display: flex;
  position: relative;
}

.catalog-search-icon {
  opacity: 0.55;
  font-size: 14px;
  line-height: 1;
  position: absolute;
  left: 12px;
  pointer-events: none;
}

.catalog-search-input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  color: #e2e8f0;
  background: #ffffff10;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  width: 100%;
  padding: 10px 40px 10px 38px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.catalog-search-input::placeholder {
  color: #94a3b88c;
}

.catalog-search-input:hover {
  background: #ffffff14;
  border-color: #ffffff38;
}

.catalog-search-input:focus {
  outline: none;
  background: #ffffff12;
  border-color: #a78bfa98;
  box-shadow: 0 0 0 3px #6366f133;
}

.catalog-search-clear {
  cursor: pointer;
  color: #cbd5e1b8;
  background: #ffffff12;
  border: 1px solid #ffffff20;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  transition:
    color 0.15s,
    background 0.15s;
  position: absolute;
  right: 8px;
}

.catalog-search-clear:hover {
  color: #f1f5f9;
  background: #ffffff1f;
}

.catalog-search-clear:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.catalog-search-meta {
  opacity: 0.55;
  margin: 8px 4px 0;
  font-size: 11px;
  line-height: 1.4;
}

.catalog-empty {
  text-align: center;
  padding: 36px 16px 48px;
}

.catalog-empty-title {
  opacity: 0.85;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.catalog-empty-hint {
  opacity: 0.55;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

@media (width <= 600px) {
  .catalog-search-wrap {
    padding: 2px 8px 12px;
  }

  .catalog-search-input {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 12px;
  }
}
