.psp-product-search {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}

.psp-search-container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
}

.psp-search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border: 2px solid #f97316;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.psp-search-input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  background: transparent;
  border: none !important;
}

.psp-search-icon {
  color: #f97316;
  font-size: 20px;
  margin-left: 8px;
}

.psp-notification-container {
  position: fixed;
  top: 0.5rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999999; /* Extremely high z-index to ensure it's on top */
}

.psp-notification {
  background-color: #fff;
  color: #333;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 0 0 4px 4px; /* Rounded corners only at the bottom */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.psp-notification-show {
  opacity: 1;
  transform: translateY(0);
}

.psp-notification-error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #f5c6cb;
}

.psp-notification-info {
  background-color: #e7f3fe;
  color: #004085;
  border-left: 4px solid #b8daff;
}

.psp-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.psp-product {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: Arial, sans-serif;
  transition: box-shadow 0.3s ease;
}

.psp-product:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.psp-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.psp-product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.psp-product-info {
  padding: 16px;
}

.psp-product-title {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #f97316;
  font-weight: bold;
}

.psp-product-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.psp-product-price {
  background-color: #f97316;
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.psp-product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.psp-product-star-icon {
  color: #f97316;
  margin-right: 4px;
}

.psp-product-rating-value {
  color: #f97316;
  font-weight: bold;
}

.psp-product-sold-count {
  color: #6b7280;
  font-size: 0.875rem;
  margin-left: 4px;
}

.psp-loading {
  text-align: center;
  padding: 20px;
}

.psp-loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 4px solid white;
  border-top-color: #f97316; /* Orange color */
  animation: psp-spin 1s ease-in-out infinite;
}

@keyframes psp-spin {
  to {
    transform: rotate(360deg);
  }
}
