/* ========================================
   CATALOG PAGE — Mobile-First
   ======================================== */

.catalog-hero {
  background: var(--gradient-hero);
  padding-top: calc(var(--header-height) + var(--space-10));
  padding-bottom: var(--space-10);
}
.catalog-hero .container { color: #fff; }
.catalog-hero .breadcrumb { color: rgba(255,255,255,0.5); }
.catalog-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.catalog-hero .breadcrumb a:hover { color: #fff; }
.catalog-hero .breadcrumb span[aria-hidden] { color: rgba(255,255,255,0.2); }
.catalog-hero .breadcrumb [aria-current] { color: rgba(255,255,255,0.6); }

.catalog-hero__title {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-3);
}
.catalog-hero__desc {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.7);
  max-width: 55ch;
}

/* Category filter pills */
.catalog-body {
  padding-block: var(--space-10) var(--space-16);
}

.cat-filter {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-6);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.cat-filter::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-family: var(--font-display);
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
}
.cat-pill:hover {
  border-color: var(--color-primary);
  background: rgba(26,58,92,0.05);
}
.cat-pill--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Products list — fluid, NOT grid */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}
.product-row:hover { background: rgba(26,58,92,0.02); }
.product-row:last-child { border-bottom: none; }

.product-row__img-link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.product-row__img-link img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-row:hover .product-row__img-link img { transform: scale(1.03); }

.product-row__img-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8e4dc, #f0ece4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  padding: var(--space-8);
}
.product-row__img-placeholder svg { width: 50%; height: auto; }

.product-row__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.product-row__cat {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-row__name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.3;
}
.product-row__name a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}
.product-row__name a:hover { color: var(--color-accent); }

.product-row__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex: 1;
}

.product-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}
.product-row__sku {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.product-row__avail {
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.product-row__avail--in  { background: #d4edda; color: #155724; }
.product-row__avail--out { background: #f8d7da; color: #721c24; }
.product-row__avail--pre { background: #fff3cd; color: #856404; }

@media (min-width: 640px) {
  .product-row {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-6);
  }
  .product-row__img-link {
    width: clamp(200px, 28%, 260px);
  }
  .product-row__img-link img { aspect-ratio: 4/3; }
}

/* ===== CATALOG CTA ===== */
.catalog-cta {
  background: linear-gradient(135deg, #0f2233 0%, #1a3a5c 100%);
  padding-block: var(--space-16);
  text-align: center;
  color: #fff;
}
.catalog-cta h2 {
  font-size: var(--font-size-2xl);
  color: #fff;
  margin-bottom: var(--space-4);
}
.catalog-cta p {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
}
