/* ============================================================
   SUNWARD — 全产品列表页样式(分类页 + 产品卡片)
   ============================================================ */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}

.prod-card {
  background: #fff;
  border: 1px solid #E5DCC8;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prod-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(58, 14, 20, 0.14);
}

.prod-img {
  aspect-ratio: 1/1;
  background: #FBF7EE;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.8rem;
  transition: transform 0.25s ease;
}
.prod-card:hover .prod-img img { transform: scale(1.04); }

.prod-noimg {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brass-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prod-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prod-body h3 {
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.prod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.prod-meta span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.65rem;
  border: 1px solid #E5DCC8;
  border-radius: 999px;
  color: #6E5548;
  background: #FBF7EE;
}

.prod-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
  justify-content: center;
}

/* 分类导航 chips */
.chip { text-decoration: none; }
.chip:hover { background: rgba(201, 150, 63, 0.15); }

@media (max-width: 560px) {
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
  .prod-body { padding: 0.9rem; }
  .prod-body h3 { font-size: 0.86rem; }
}
