.product-selector {
  width: 100%;
  padding: 1rem;
}

/* Loading State */
.product-selector__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
}

.product-selector__loading .spinner {
  border: 3px solid rgba(79, 70, 229, 0.1);
  border-top-color: #4F46E5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error State */
.product-selector__error {
  text-align: center;
  padding: 2rem 1rem;
  color: #EF4444;
}

.product-selector__error button {
  margin-top: 1rem;
}

/* Empty State */
.product-selector__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #6B7280;
}

/* Products Grid */
.product-selector__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .product-selector__grid {
    grid-template-columns: 1fr;
  }
}

/* Product Card */
.product-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 3px solid transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.product-card--selected {
  border-color: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.product-card--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.product-card--disabled:hover {
  transform: none;
}

/* Icon */
.product-card__icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* Name */
.product-card__name {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

/* Description */
.product-card__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-align: center;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

/* Details */
.product-card__details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
}

.product-card__detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 0.95rem;
}

.product-card__detail--highlight {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 8px;
  font-weight: bold;
}

.product-card__detail-label {
  opacity: 0.9;
}

/* Difficulty */
.product-card__difficulty {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

/* Multiplier */
.product-card__multiplier {
  font-size: 1.25rem;
  font-weight: bold;
  color: #10B981;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Price */
.product-card__price {
  font-weight: bold;
  color: #FCD34D;
}

/* Selected Badge */
.product-card__selected-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #10B981;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  animation: badge-appear 0.3s ease;
}

@keyframes badge-appear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .product-card {
    padding: 1rem;
  }

  .product-card__name {
    font-size: 1.25rem;
  }

  .product-card__icon {
    font-size: 2.5rem;
  }
}
