/* ─── PRODUCTS SECTION ─── */
.products-section { background: var(--color-paper); }

/* Filter Bar */
.products-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  position: sticky;
  top: var(--nav-height);
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(12px);
  z-index: 10;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.filter-tabs {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  transition: all var(--transition-fast);
}
.filter-tab:hover { color: var(--color-gold); background: rgba(200,150,62,0.06); }
.filter-tab.active {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(200,150,62,0.08);
  font-weight: 600;
}

.filter-controls { display: flex; gap: var(--space-2); align-items: center; flex-shrink: 0; }
.sort-select {
  width: auto;
  font-size: var(--text-sm);
  padding: 0.5em 2em 0.5em 0.8em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7060' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6em center;
  cursor: pointer;
}

.products-count {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Product Card */
.product-card {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-gold);
}
.product-card.hidden { display: none; }

.product-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  border-color: var(--color-gold);
}
.product-card--featured .product-thumb {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: 100%;
}
.product-card--featured .product-body { flex: 1; }

/* Thumbnail */
.product-thumb {
  aspect-ratio: 4/3;
  background: var(--thumb-bg, var(--color-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-thumb--wide { aspect-ratio: 2/3; }
.product-thumb-icon { font-size: 3.5rem; }

.product-badge-left,
.product-badge-right {
  position: absolute;
  top: var(--space-3);
}
.product-badge-left  { left:  var(--space-3); }
.product-badge-right { right: var(--space-3); }

/* Card Body */
.product-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }

.product-category {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: auto;
}
.product-includes li {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.product-includes li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.rating-score {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}
.rating-count {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Card Footer */
.product-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--color-cream);
}

.product-price-block { display: flex; flex-direction: column; gap: 2px; }
.price-current {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}
.price-original {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-decoration: line-through;
}
.price-php {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.product-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
.product-actions .btn { font-size: var(--text-xs); padding: 0.5em 0.9em; }

/* Empty State */
.products-empty {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.empty-icon { font-size: 4rem; }
.products-empty h3 { font-family: var(--font-display); font-size: var(--text-xl); }
.products-empty p { color: var(--color-muted); font-family: var(--font-body); }

/* Responsive */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--featured { grid-column: 1 / -1; flex-direction: column; }
  .product-card--featured .product-thumb { width: 100%; height: 200px; aspect-ratio: auto; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-filter-bar { flex-direction: column; align-items: flex-start; }
  .filter-controls { width: 100%; }
  .sort-select { width: 100%; }
}
