/**
 * COSAS3D — Product Catalogue Grid & Cards
 */

.catalog-header {
  margin-bottom: var(--space-xl);
}

.catalog-results-counter {
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* Product Card */
.product-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.4);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 16px -4px rgba(255, 90, 31, 0.15);
}

/* Image Container */
.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-surface-elevated);
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

/* Floating Badges Over Image */
.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.product-card-category {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-family-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  background-color: rgba(14, 16, 19, 0.8);
  backdrop-filter: blur(6px);
  color: var(--color-text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-subtle);
  z-index: 2;
}

/* Image Count Indicator */
.product-card-gallery-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(14, 16, 19, 0.85);
  backdrop-filter: blur(4px);
  color: var(--color-text-secondary);
  font-family: var(--font-family-mono);
  font-size: 0.675rem;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Product Card Body */
.product-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.product-card-title a {
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.product-card:hover .product-card-title a {
  color: #ffffff;
}

.product-card-tagline {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: var(--space-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Card Footer */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-subtle);
  margin-top: auto;
}

.product-card-price {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Empty Catalog State */
.catalog-empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  background-color: var(--color-bg-surface);
  border: 1px dashed var(--color-border-medium);
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}

.catalog-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg) auto;
  color: var(--color-text-dim);
}
