/* ─── BREADCRUMB ─── */
.breadcrumb-wrap {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.breadcrumb-inner a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); display: flex; align-items: center; }
.breadcrumb-current { color: var(--text-secondary); font-weight: 600; }

/* ─── CATALOG LAYOUT ─── */
.catalog-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}
.catalog-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* ═══════ SIDEBAR ═══════ */
.cat-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 88px;
}
.cat-sidebar-list { list-style: none; }
.cat-sidebar-item { border-bottom: 1px solid var(--border); }
.cat-sidebar-item:last-child { border-bottom: none; }

.cat-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  position: relative;
}
.cat-sidebar-link::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.15s;
}
.cat-sidebar-link:hover,
.cat-sidebar-link.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding-left: 20px;
}
.cat-sidebar-link:hover::after,
.cat-sidebar-link.active::after { transform: scaleY(1); }

.cat-sidebar-icon {
  width: 32px; height: 32px;
  object-fit: contain; flex-shrink: 0;
  filter: grayscale(1) brightness(1.3);
  transition: filter 0.15s;
}
.cat-sidebar-link:hover .cat-sidebar-icon,
.cat-sidebar-link.active .cat-sidebar-icon { filter: none; }

.cat-sidebar-icon--placeholder {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.cat-sidebar-icon--placeholder svg { width: 16px; height: 16px; stroke: var(--text-muted); transition: stroke 0.15s; }
.cat-sidebar-link:hover .cat-sidebar-icon--placeholder svg { stroke: var(--accent); }
.cat-sidebar-empty { display: block; padding: 14px 16px; font-size: 13px; color: var(--text-muted); }

.cat-sidebar-item--promo .cat-sidebar-link {
  color: var(--accent);
  font-weight: 700;
  background: rgba(232,35,42,0.05);
  letter-spacing: 0.3px;
}
.cat-sidebar-item--promo .cat-sidebar-link:hover {
  background: rgba(232,35,42,0.12);
  color: var(--accent-hover);
}

/* ═══════ MAIN CONTENT ═══════ */
.cat-content { min-width: 0; }
.cat-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.2;
}

/* ─── GRID ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 28px 20px 22px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
/* Убираем лишние бордеры динамически через JS-класс */
.cat-card:last-child { border-bottom: none; border-right: none; }

.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,35,42,0.07) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.2s;
}
.cat-card:hover { background: var(--bg-elevated); }
.cat-card:hover::before { opacity: 1; }

.cat-card-img-wrap {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.cat-card-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}
.cat-card:hover .cat-card-img { transform: scale(1.07); }

.cat-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.cat-card-img-placeholder svg { stroke: var(--text-muted); opacity: 0.3; }

.cat-card-name {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary);
  text-align: center; line-height: 1.4;
  transition: color 0.2s;
}
.cat-card:hover .cat-card-name { color: var(--accent); }
.cat-grid-empty { grid-column: 1/-1; padding: 48px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ═══════ MOBILE TOGGLE BTN ═══════ */
.cat-mobile-filter-btn {
  display: none;
  align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer; width: 100%;
  transition: border-color 0.2s;
}
.cat-mobile-filter-btn:hover { border-color: var(--border-accent); }
.cat-mobile-filter-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }

/* ═══════ ADAPTIVE ═══════ */
@media (max-width: 1024px) {
  .catalog-inner { grid-template-columns: 220px 1fr; gap: 20px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .cat-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 768px) {
  .catalog-main { padding: 20px 16px 60px; }
  .catalog-inner { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; display: none; margin-bottom: 8px; }
  .cat-sidebar.open { display: block; }
  .cat-mobile-filter-btn { display: flex; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .cat-card:nth-child(2n) { border-right: none; }
  .cat-card-img-wrap { height: 120px; }
  .cat-title { font-size: 16px; }
}
@media (max-width: 480px) {
  .breadcrumb-inner { padding: 10px 16px; }
  .cat-card { padding: 16px 10px 14px; }
  .cat-card-img-wrap { height: 96px; }
  .cat-card-name { font-size: 12px; }
}

/* ─── SKELETON LOADER ─── */
.cat-grid-skeleton {
  display: contents;
}
.skeleton-card {
  height: 220px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}