/* ========================================
   PASHA — /products/ Catalog Listing
   В стиле главной (тёмный фон, золотая палитра)
   ======================================== */

.catalog-page {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding-top: 120px;
  overflow: hidden;
}

/* ===== HERO ===== */
.catalog-hero {
  padding: 60px 40px 50px;
  text-align: center;
  position: relative;
}
.catalog-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(60%, 800px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.4), transparent);
}
.catalog-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.catalog-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 20px;
}
.catalog-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 200;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.catalog-subtitle {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
}

/* ===== Filter chips ===== */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.catalog-chip:hover {
  color: #fff;
  border-color: rgba(201, 169, 110, 0.5);
}
.catalog-chip.active {
  color: #000;
  background: linear-gradient(135deg, #c9a96e, #f5d89a);
  border-color: #f5d89a;
}
.catalog-chip-count {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
}
.catalog-chip.active .catalog-chip-count { opacity: 0.85; }

/* ===== GRID ===== */
.catalog-grid-section {
  padding: 60px 40px 80px;
}
.catalog-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat-card {
  position: relative;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.5s ease, transform 0.5s ease;
  overflow: hidden;
}
.cat-card:hover {
  border-color: rgba(201, 169, 110, 0.5);
  transform: translateY(-6px);
  opacity: 1;
}
.cat-card--placeholder {
  cursor: default;
  opacity: 0.7;
}
.cat-card--placeholder:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
}

/* gold underline on hover */
.cat-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 4;
}
.cat-card:hover::after { transform: scaleX(1); }

/* badge */
.cat-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(135deg, #c9a96e, #f5d89a);
  background-size: 200% 200%;
  animation: goldShimmer 3s ease infinite;
}

/* image */
.cat-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  overflow: hidden;
}
.cat-card-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(201, 169, 110, 0.06), transparent 70%);
  pointer-events: none;
}
.cat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cat-card:hover .cat-card-img {
  transform: scale(1.06);
}

/* meta */
.cat-card-meta {
  padding: 22px 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat-card-brand {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9a96e;
}
.cat-card-name {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.3;
  min-height: 2.6em;
}
.cat-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cat-card-cat {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cat-card-arrow {
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.cat-card:hover .cat-card-arrow {
  color: #c9a96e;
  transform: translateX(4px);
}

/* empty state */
.catalog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ===== CTA bottom ===== */
.catalog-cta {
  background: var(--bg-primary);
  padding: 80px 40px 100px;
  position: relative;
}
.catalog-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(60%, 800px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.4), transparent);
}
.catalog-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.catalog-cta-inner h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.catalog-cta-inner p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.catalog-cta-btn {
  display: inline-block;
  padding: 18px 36px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9a96e;
  border: 1px solid #c9a96e;
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.catalog-cta-btn:hover {
  color: #000;
  background: linear-gradient(135deg, #c9a96e, #f5d89a);
  border-color: #f5d89a;
  opacity: 1;
}

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
  .catalog-page { padding-top: 100px; }
  .catalog-hero { padding: 40px 24px 40px; }
  .catalog-grid-section { padding: 40px 24px 60px; }
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .catalog-cta { padding: 60px 24px 80px; }
}

@media (max-width: 768px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .catalog-page { padding-top: 84px; }
  .catalog-hero { padding: 24px 16px 28px; }
  .catalog-eyebrow { font-size: 10px; letter-spacing: 3px; margin-bottom: 14px; }
  .catalog-title { font-size: clamp(28px, 9vw, 40px); letter-spacing: 0; margin-bottom: 14px; line-height: 1.1; }
  .catalog-subtitle { font-size: 13px; line-height: 1.65; margin-bottom: 28px; }

  /* Filters: horizontal scroll instead of wrap */
  .catalog-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scroll-snap-type: x mandatory;
  }
  .catalog-filters::-webkit-scrollbar { display: none; }
  .catalog-chip {
    flex-shrink: 0;
    padding: 11px 18px;
    font-size: 10px;
    letter-spacing: 1.8px;
    scroll-snap-align: start;
  }
  .catalog-chip-count { font-size: 9px; }

  .catalog-grid-section { padding: 32px 16px 50px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card-img-wrap::before { display: none; }
  .cat-card-meta { padding: 14px 14px 16px; gap: 4px; }
  .cat-card-brand { font-size: 9px; letter-spacing: 1.5px; }
  .cat-card-name { font-size: 13px; min-height: 2.4em; line-height: 1.25; }
  .cat-card-bottom { margin-top: 8px; padding-top: 10px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .cat-card-cat { font-size: 9px; letter-spacing: 1px; }
  .cat-card-arrow { font-size: 14px; }
  .cat-card-badge { top: 10px; left: 10px; padding: 5px 9px; font-size: 9px; letter-spacing: 1.5px; }

  .catalog-cta { padding: 50px 16px 70px; }
  .catalog-cta-inner h3 { font-size: 20px; line-height: 1.25; }
  .catalog-cta-inner p { font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
  .catalog-cta-btn { padding: 14px 24px; font-size: 11px; letter-spacing: 2px; }
}

/* Small phones */
@media (max-width: 380px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .cat-card-bottom { flex-direction: row; align-items: baseline; }
}
