.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 24px 0;
  min-height: 300px; /* 确保有最小高度 */
}

.loading-container,
.error-container,
.empty-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.loading-text {
  color: #aaa;
  font-size: 18px;
}

.error-message {
  color: #ff6b6b;
  margin-bottom: 16px;
}

.empty-message {
  color: #aaa;
  font-size: 18px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.pagination-btn {
  background-color: var(--color-btn-bg);
  font-size: 14px;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #aaa;
  font-size: 14px;
}

/* 产品卡片样式 */
.product-card {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-grid .product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-grid .product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-grid .product-info {
  padding: 16px;
}

.product-grid .product-title {
  font-size: 14px;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--color-text);
}

.product-grid .product-price {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--color-text);
}

.product-grid .buy-button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}

.product-grid .discord-link {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
}
