/* ===== Products ===== */
.products-content {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 0 16px 100px;
}
.products-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 0; gap: 8px;
  color: var(--slate-400); font-size: 14px;
}
.products-loading i { animation: spin 1s linear infinite; }
.products-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 80px 0; color: var(--slate-400);
}
.products-empty i { font-size: 40px; }

.product-category {
  margin-bottom: 24px;
}
.product-category-title {
  font-size: 16px; font-weight: 700;
  color: var(--slate-800);
  padding: 8px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.product-category-title::after {
  content: '';
  flex: 1; height: 1px; background: var(--slate-200);
}

.product-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 0 16px;
}

.product-name-tag {
  padding: 6px 14px;
  font-size: 13px; font-weight: 600;
  border: 1px solid;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s;
}
.product-name-tag:hover { transform: scale(1.05); }
.product-name-tag:active { transform: scale(0.95); }

.product-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: inherit;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.product-card:active { transform: scale(0.98); }

.product-card-img {
  width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-100);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card-img .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-300); font-size: 36px;
}

.product-card-body {
  padding: 14px 16px 12px;
}
.product-card-name {
  font-size: 16px; font-weight: 700; color: var(--slate-800);
  margin-bottom: 4px;
}
.product-card-summary {
  font-size: 13px; color: var(--slate-500);
  line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.product-tag {
  font-size: 11px; font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.product-card-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-top: 1px solid rgba(139,92,246,0.15);
}

/* ===== Product Detail ===== */
.product-detail-image {
  width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--slate-100); margin-bottom: 20px;
}
.product-detail-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-detail-image .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-300); font-size: 48px;
}

.product-detail-name {
  font-size: 22px; font-weight: 800; color: var(--slate-800);
  margin-bottom: 8px;
}
.product-detail-summary {
  font-size: 15px; color: var(--slate-500);
  line-height: 1.6; margin-bottom: 16px;
}
.product-detail-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.product-detail-content {
  font-size: 14px; line-height: 1.8;
  color: var(--slate-700);
}
.product-detail-content p { margin-bottom: 12px; }

.product-detail-cta {
  padding: 12px 20px env(safe-area-inset-bottom, 12px);
  background: var(--white);
  border-top: 1px solid var(--slate-100);
}
.product-cta-btn {
  width: 100%; padding: 14px;
  background: var(--primary);
  color: #fff; border: none;
  border-radius: var(--radius-full);
  font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.product-cta-btn:hover { background: var(--primary-dark); }
.product-cta-btn:active { transform: scale(0.97); }

