/* ============================================
   西兰卡普 - 文创产品页面样式
   ============================================ */

/* 产品筛选 */
.product-filters {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--bg-light);
  border: 2px solid #e5e5e5;
  color: var(--text-light);
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: var(--text-white);
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

/* 产品卡片 */
.product-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片占位符 */
.product-image .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.product-image .image-placeholder::before {
  font-size: 3rem;
  opacity: 0.6;
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent-red);
  color: white;
  font-size: 0.75rem;
  border-radius: 20px;
}

.product-info {
  padding: var(--spacing-md);
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 1.2rem;
  color: var(--accent-red);
  font-weight: bold;
}

.price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

.product-btn {
  padding: 6px 16px;
  background: var(--primary-navy);
  color: white;
  font-size: 0.8rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.product-btn:hover {
  background: var(--accent-red);
}

/* 精选产品 */
.featured-products {
  margin-top: var(--spacing-2xl);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.featured-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
}

/* 特色产品大卡片 */
.featured-card .image-placeholder {
  width: 100%;
  height: 100%;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card .image-placeholder::before {
  font-size: 4rem;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg);
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.featured-overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.featured-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 响应式 */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-card {
    height: 300px;
  }
}

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