.eps-search-wrapper {
  width: 100%;
  position: relative;
  z-index: 100;
}

.eps-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.eps-filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.eps-filter-btn:hover {
  border-color: #999;
}

.eps-filter-btn.active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.eps-search-container {
  position: relative;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

#eps-product-search {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-image: none !important;
}

#eps-product-search:focus {
  outline: none;
  border-color: #0073aa;
}

.eps-search-btn {
  padding: 0.75rem 1.5rem;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
  transition: background 0.2s;
}

.eps-search-btn:before {
  content: "\1F50D";
  margin-right: 0.5rem;
}

.eps-search-btn:hover {
  background: #005a87;
}

.eps-loading {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.875rem;
}

.eps-results-container {
  margin-bottom: 1.5rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.eps-results-list {
  max-height: 400px;
  min-height: 250px;
  overflow-y: auto;
}

.eps-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.eps-result-item:hover {
  background: #f5f5f5;
}

.eps-result-item:last-child {
  border-bottom: none;
}

.eps-result-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  overflow: hidden;
}

.eps-result-name {
  flex: 1;
}

.eps-category-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.eps-badge-automated-cutting {
  background: #73b7ef;
  color: #011d3d;
}

.eps-badge-manual-cutting {
  background: #b45340;
  color: #fff;
}

.eps-badge-material-handling {
  background: #011d3d;
  color: #fff;
}

.eps-badge-software {
  background: #dddddd;
  color: #1c1c1c;
}

.eps-no-results {
  padding: 1rem;
  text-align: center;
  color: #666;
}

[x-cloak] {
  display: none !important;
}
