.match-container {
  padding: 1rem;
}

.search-form {
  margin-bottom: 1.5rem;
}

.search-fields {
  display: flex;
  gap: 1rem;
  align-items: flex-end;

  .field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    label {
      font-size: 0.85rem;
      font-weight: 600;
      color: #94a3b8;
    }

    &:first-child {
      flex: 1;
      min-width: 0;
    }
  }

  .search-input {
    width: 100%;
  }

  .region-field {
    min-width: 100px;
  }

  .region-dropdown {
    min-width: 100px;
  }

  .search-btn-field {
    padding-bottom: 1px;
  }
}

.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem;
  color: #94a3b8;
}

.empty-results,
.ready-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  text-align: center;

  i {
    font-size: 2.5rem;
    color: #64748b;
    margin-bottom: 0.75rem;
  }

  p {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
  }

  .hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
  }
}

.results-header {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  font-weight: 600;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--p-surface-500), transparent 60%);
  background: color-mix(in srgb, var(--p-surface-900), transparent 30%);
  transition: border-color 0.2s ease;

  &:hover {
    border-color: color-mix(in srgb, var(--p-primary-400), transparent 50%);
  }
}

.result-image {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--p-surface-800), transparent 20%);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.result-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;

  i {
    font-size: 2rem;
  }
}

.result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

.result-asin {
  font-size: 0.8rem;
  color: #64748b;
  font-family: monospace;
}

.result-description {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0.25rem 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .search-fields {
    flex-direction: column;

    .search-input {
      width: 100%;
    }

    .region-field,
    .region-dropdown {
      min-width: 100%;
    }
  }

  .result-card {
    flex-direction: column;
  }

  .result-image {
    width: 60px;
    height: 75px;
  }

  .result-action {
    align-self: flex-end;
  }
}
