#item-filter.product-master-filter {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(190px, 260px);
  gap: 12px;
  align-items: center;
}

.product-master-search-shell {
  position: relative;
  min-width: 0;
}

.product-master-search-shell input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding-left: 42px;
  padding-right: 42px;
  font-size: 1rem;
}

.product-master-search-shell input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.product-master-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--muted, #64748b);
  font-size: 1.25rem;
  pointer-events: none;
}

.product-master-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  background: transparent;
  color: var(--muted, #64748b);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.product-master-search-clear:hover,
.product-master-search-clear:focus-visible {
  background: rgba(15, 61, 94, 0.1);
  color: var(--primary, #0f3d5e);
  outline: none;
}

.product-master-search-status {
  min-height: 24px;
  margin: -3px 0 12px;
  color: var(--muted, #64748b);
  font-size: 0.88rem;
}

.product-master-search-status[data-state="searching"] {
  color: var(--primary, #0f3d5e);
  font-weight: 700;
}

.product-master-search-status[data-state="searching"]::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  animation: product-master-search-pulse 0.9s ease-in-out infinite alternate;
}

.product-master-search-status[data-state="error"] {
  color: #b42318;
  font-weight: 700;
}

#item-list[aria-busy="true"] {
  opacity: 0.58;
  transition: opacity 120ms ease;
}

body.product-master-searching #busy-overlay {
  display: none !important;
}

@keyframes product-master-search-pulse {
  from { opacity: 0.35; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 760px) {
  #item-filter.product-master-filter {
    grid-template-columns: 1fr;
  }
}
