/* === Products Browse Page === */

/* Category filter tabs */
.products-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-tab {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-tab--active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 700;
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Product card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-card-cover {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-raised);
}
.product-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.4;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-cat {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.product-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.product-card-seller {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  flex: 1;
}
.product-card-price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

/* Empty state */
.products-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--fg-muted);
}
.products-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.products-empty h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-filters { gap: 6px; }
  .filter-tab { font-size: 12px; padding: 5px 12px; }
}
