/**
 * ═══════════════════════════════════════════════════════
 * PRODUCTS PAGE STYLES
 * ═══════════════════════════════════════════════════════
 * 
 * Styles für Produktverwaltung
 */

/* ─────────────────────────────────────────────────────
   PRODUCT CATEGORIES
   ───────────────────────────────────────────────────── */

.product-categories {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: var(--spacing-lg);
  -webkit-overflow-scrolling: touch;
}

.category-chip {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: var(--font-size-subhead);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  background: var(--color-white);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.category-chip:active {
  transform: scale(0.98);
}

.category-chip.active {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* ─────────────────────────────────────────────────────
   PRODUCT GRID
   ───────────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─────────────────────────────────────────────────────
   PRODUCT CARD
   ───────────────────────────────────────────────────── */

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.product-card:active {
  transform: scale(0.98);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Product Image/Icon */
.product-image {
  height: 140px;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--color-primary);
  position: relative;
}

/* Product Type Badge */
.product-type-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: var(--font-size-caption-2);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-type-badge.product {
  background: var(--color-primary);
  color: var(--color-white);
}

.product-type-badge.service {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* Product Info */
.product-info {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.product-category {
  font-size: var(--font-size-caption-1);
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-sm);
}

.product-price {
  font-size: var(--font-size-title-3);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-top: auto;
}

.product-price-net {
  font-size: var(--font-size-caption-1);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Product Stock Indicator */
.product-stock {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-caption-1);
  margin-top: var(--spacing-sm);
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
}

.stock-dot.in-stock {
  background: var(--color-success);
}

.stock-dot.low-stock {
  background: var(--color-warning);
}

.stock-dot.out-of-stock {
  background: var(--color-danger);
}

/* ─────────────────────────────────────────────────────
   PRODUCT DETAIL VIEW
   ───────────────────────────────────────────────────── */

.product-detail-header {
  background: var(--color-background);
  padding: var(--spacing-xxl) var(--spacing-lg);
  text-align: center;
}

.product-detail-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.product-detail-name {
  font-size: var(--font-size-title-1);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.product-detail-description {
  font-size: var(--font-size-subhead);
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto;
}
