/* ======================================================
   RAIDEN — CATALOG PAGES
   Для внутренних страниц каталога:
   - breadcrumbs
   - header категории
   - layout с фильтром
   - карточки товаров
   - CTA блока внизу
====================================================== */


/* ======================================================
   01. CATEGORY PAGE HEADER
====================================================== */

.breadcrumbs {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent1);
}

.catalog-page-head {
  margin-bottom: 22px;
}

.catalog-page-head h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.catalog-intro {
  max-width: 920px;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}


/* ======================================================
   02. CATALOG LAYOUT
====================================================== */

.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  align-items: start;
}

.products-area {
  min-width: 0;
}


/* ======================================================
   03. FILTER
====================================================== */

.filter {
  position: sticky;
  top: 108px;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.filter-section {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.filter-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  text-align: left;
}

.filter-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
}

.filter-row input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent1);
}

.filter-row .count {
  color: var(--muted);
  font-size: 13px;
}


/* ======================================================
   04. PRODUCTS GRID
====================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(78, 124, 180, 0.22);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent1);
  opacity: 0;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f7f9fc;
  padding: 14px;
}

.product-card__body {
  padding: 14px 14px 16px;
  border-top: 1px solid var(--border);
}

.product-meta {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.product-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}


/* ======================================================
   05. BADGES
====================================================== */

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.badge-available {
  background: #dff3e2;
  color: #234b2d;
}

.badge-preorder {
  background: #eceff3;
  color: #374151;
}


/* ======================================================
   06. CATEGORY CTA
====================================================== */

.catalog-cta {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8fd 100%);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.catalog-cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.catalog-cta p {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.catalog-cta .btn {
  min-width: 220px;
}


/* ======================================================
   07. RESPONSIVE
====================================================== */

@media (max-width: 960px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filter {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .catalog-page-head {
    margin-bottom: 18px;
  }

  .catalog-page-head h1 {
    font-size: 26px;
  }

  .catalog-intro {
    font-size: 14px;
    line-height: 1.6;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card img {
    height: 170px;
    padding: 12px;
  }

  .product-card__body {
    padding: 12px;
  }

  .product-card h4 {
    font-size: 14px;
  }

  .catalog-cta {
    margin-top: 22px;
    padding: 18px;
  }

  .catalog-cta h2 {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .filter {
    padding: 14px;
  }

  .filter-row {
    white-space: normal;
  }

  .catalog-cta .btn {
    width: 100%;
  }
}