.catalog-search-section {
  position: relative;
  z-index: 30;
  padding-top: 8px;
  padding-bottom: 0;
  overflow: visible;
}

.catalog-search-section + .categories {
  padding-top: 18px;
}

.catalog-search {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
  z-index: 30;
}

.catalog-search--home {
  margin: 0 0 28px;
}

.catalog-search--category {
  margin: 0 0 18px;
}

.category-page {
  overflow: visible;
}

.catalog-search-field {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: var(--card-2, var(--surface-2, #1d1e20));
  border: 1px solid var(--border, #3a3c40);
  border-radius: 10px;
  color: var(--yellow, #ffc400);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.catalog-search-field svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  pointer-events: none;
}

.catalog-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px; /* ≥16px — без автозума на iOS */
  line-height: 1.25;
  touch-action: manipulation;
}

.catalog-search-field input::placeholder {
  color: #a4a4a4;
}

.catalog-search-field input::-webkit-search-decoration,
.catalog-search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.catalog-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: min(420px, 60vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card, var(--surface, #151618));
  border: 1px solid var(--border, #3a3c40);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.catalog-search-status {
  margin: 0;
  padding: 16px 14px;
  color: var(--text-muted, var(--muted, #a8a8a8));
  font-size: 15px;
}

.catalog-search-hit {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-search-hit:first-child {
  border-top: 0;
}

.catalog-search-hit:hover,
.catalog-search-hit.is-active {
  background: rgba(255, 196, 0, 0.08);
}

.catalog-search-thumb {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #101113;
  border-radius: 8px;
  overflow: hidden;
}

.catalog-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-search-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.catalog-search-copy strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-search-copy small {
  color: var(--text-muted, var(--muted, #a8a8a8));
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-search-price {
  color: var(--yellow, #ffc400);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .catalog-search--home {
    margin-bottom: 18px;
  }

  .catalog-search-field {
    height: 46px;
  }

  .catalog-search-hit {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "thumb copy"
      "thumb price";
  }

  .catalog-search-thumb {
    grid-area: thumb;
    width: 48px;
    height: 48px;
  }

  .catalog-search-copy {
    grid-area: copy;
  }

  .catalog-search-price {
    grid-area: price;
    font-size: 13px;
  }
}
