/* Search Component Styles */
.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.search-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
}

.search-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.search-form {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--surface-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-electro-blue);
  color: var(--accent-toxic-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.search-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  min-width: 200px;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-electro-blue);
  color: var(--accent-toxic-green);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clear-button {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  background: var(--accent-color);
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.clear-button:hover {
  background: transparent;
  color: var(--accent-color);
}

.search-results {
  min-height: 400px;
}

.search-loading {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.search-stats {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--surface-color);
  border-radius: 8px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Search result item styles */
.search-result-item {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-result-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.search-result-highlight {
  background: linear-gradient(120deg, transparent 0%, rgba(255, 235, 59, 0.3) 0%, rgba(255, 235, 59, 0.3) 100%, transparent 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0 2px;
}

/* Responsive design */
@media (max-width: 768px) {
  .search-header h2 {
    font-size: 2rem;
  }
  
  .search-filters {
    flex-direction: column;
  }
  
  .filter-select {
    min-width: 100%;
  }
  
  .clear-button {
    width: 100%;
  }
  
  .search-container {
    padding: 1rem 0.5rem;
  }
}

/* Product meta tags */
.product-meta {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.category-tag, .sku-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.sku-tag {
  background: var(--accent-color);
}
