* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #333;
  background: #fff;
  font-family: "Akrobat", Arial, sans-serif;
}

/* Хлебные крошки — одинаковые в каталоге и на карточке */
.breadcrumbs {
  font-size: 14px;
  color: #242424;
  margin-bottom: 0;
}

.breadcrumbs a {
  color: #242424;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 5px;
}

/*главная*/
.page-home {
  background: #f8f9fa;
}

.page-home * {
  margin: 0;
  padding: 0;
}

.page-home header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: #030303;
}

.page-home header h1 a {
  color: #fff;
  text-decoration: none;
}

.page-home .admin-link {
  background: #28a745;
  padding: 8px 20px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
}

.page-home .admin-link:hover {
  background: #218838;
}

.search-form-header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  width: clamp(280px, 42vw, 580px);
  position: relative;
}

.search-input {
  padding: 8px 12px 8px 42px;
  border: none;
  width: 100%;
  width: clamp(280px, 42vw, 580px);
  height: 40px;
  font-size: 14px;
  background-color: #ffffff1f;
  color: #ffffff;
  position: relative;
  border-radius: 40px;
}
.search-input::placeholder {
  color: #fff;
}

.search-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  background-image: url(../img/load.png);
  cursor: pointer;
  position: absolute;
  right: 4px;
  top: 1px;
}
.lupa {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  background-image: url(../img/search.png);
  cursor: pointer;
  position: absolute;
  left: 0;
}

.search-btn:hover {
  opacity: 0.5;
}

/* Крестик-очистка: показывается вместо лупы, когда в поле есть текст */
.search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
}
.search-clear:hover {
  color: #f2851a;
}
.search-form-header.has-value .lupa {
  display: none;
}
.search-form-header.has-value .search-clear {
  display: flex;
}
.dopmenu-inner .search-clear {
  color: #242424;
}
[data-theme="dark"] .dopmenu-inner .search-clear {
  color: #b5b5b5;
}

.dopmenu-inner .search-input {
  padding: 8px 12px 8px 42px;
  border: 1px solid #d3d3d3;

  width: clamp(280px, 42vw, 580px);
  height: 40px;
  font-size: 14px;
  background-color: transparent;
  color: #242424;
  position: relative;
  border-radius: 40px;
}

.dopmenu-inner .search-input::placeholder {
  color: #242424;
}

.dopmenu-inner .search-btn {
  background-image: url(../img/load-black.png);
}
.dopmenu-inner .lupa {
  background-image: url(../img/search-black.png);
}

[data-theme="dark"] .dopmenu-inner .search-input::placeholder {
  color: #b5b5b5;
}
[data-theme="dark"] .dopmenu-inner .search-input {
  color: #b5b5b5;
  border: 1px solid #b5b5b5;
}
.page-home .container {
  max-width: 1440px;
  margin: 100px auto 20px;
  padding: 0;
}

@media (max-width: 1439px) {
  .page-home .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.page-home h2 {
  text-align: left;
  margin-bottom: 10px;
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
}
.page-home h3 {
  text-align: left;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 400;
}

.page-home .categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 1440px;
  margin: 40px auto 0;
}
@media (max-width: 900px) {
  .page-home .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .page-home .categories-grid {
    grid-template-columns: 1fr;
  }
}

.page-home .category-card {
  background: gray;
  padding: 20px;
  width: auto;
  height: 440px;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
}

.page-home .category-card:hover {
  opacity: 0.7;
}

.page-home .category-card h3 {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 10px;
  color: #fff;
}

.page-home .category-card p {
  color: #666;
  font-size: 14px;
}

@media (max-width: 600px) {
  .page-home .search-form-header {
    width: 100%;
  }

  .page-home .search-input {
    width: 100%;
  }
}

/* =========================================================
   КАТАЛОГ
   ========================================================= */
/* ---------- Сворачиваемые группы фильтров ---------- */
.page-catalog .filter-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px 0;
  cursor: pointer;
  user-select: none;
}

.page-catalog .filter-group__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #7f8c8d;
  border-bottom: 2px solid #7f8c8d;
  transform: rotate(45deg); /* ⌄ вниз — группа свёрнута */
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}

.page-catalog .filter-group--collapsible.is-open .filter-group__chevron {
  transform: rotate(-135deg); /* ^ вверх — группа раскрыта */
}

/* тело: плавное сворачивание через grid-template-rows 0fr↔1fr */
.page-catalog .filter-group__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.page-catalog .filter-group--collapsible.is-open .filter-group__body {
  grid-template-rows: 1fr;
}

.page-catalog .filter-group__body-inner {
  overflow: hidden;
}

.page-catalog .header {
  background: #2c3e50;
  padding: 15px 20px;
  color: #fff;
}

.page-catalog .header a {
  color: #fff;
  text-decoration: none;
}

.page-catalog .header .container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.page-catalog .search-container {
  display: flex;
  flex: 1;
  max-width: 500px;
}

.page-catalog .search-container input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.page-catalog .search-container button {
  padding: 8px 20px;
  background: #e67e22;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}

.page-catalog .search-container button:hover {
  background: #d35400;
}

.page-catalog .wrapper {
  display: flex;
  max-width: 1440px;
  margin: 20px auto;
  padding: 0;
  gap: 20px;
}

.page-catalog .sidebar {
  width: 320px;
  background: #fff;
  padding: 16px;
  flex-shrink: 0;
  position: sticky;
  top: 20px; /* на сколько отступит от верха, когда «прилипнет» */
  align-self: flex-start; /* ключевая строка — см. ниже */
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 6px;
}

.page-catalog .sidebar h3 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #2c3e50;
  font-size: 16px;
}

.page-catalog .sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 5px 0;
}

.page-catalog .sidebar li {
  margin: 6px 0;
}

.page-catalog .sidebar a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  padding: 3px 0;
  transition: color 0.2s;
}

.page-catalog .sidebar a:hover,
.page-catalog .sidebar a.active {
  color: #e67e22;
}

.page-catalog .parent-link {
  font-weight: bold;
  color: #2c3e50;
  font-size: 14px;
}

.page-catalog .sidebar ul ul {
  padding-left: 10px;
}

/* Многоуровневое меню — вложенные подкатегории */
.page-catalog .sidebar ul ul ul {
  padding-left: 10px;
  border-left: 2px solid #f0f0f0;
  margin-left: 4px;
  margin-top: 4px;
  display: none; /* скрыты по умолчанию */
}
.page-catalog .sidebar li.open > ul,
.page-catalog .sidebar li.has-children.open > ul {
  display: block;
}
/* Активная ветка всегда видна */
.page-catalog .sidebar li.open > ul > li > ul {
  display: none;
}
.page-catalog .sidebar li.open > ul > li.open > ul {
  display: block;
}

.page-catalog .filter-group {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: none;
}

.page-catalog .filter-group h4 {
  margin: 0 0 8px 0;
  color: #34495e;
  font-size: 14px;
}

.page-catalog .price-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.page-catalog .price-inputs input {
  width: 50%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  font-size: 13px;
}

.page-catalog .filter-checkbox-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin: 5px 0;
  cursor: pointer;
  color: #555;
}

.page-catalog .filter-checkbox-label:hover {
  color: #242424;
}

/* ---------- Свой чекбокс ---------- */
.page-catalog .filter-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  border: 1px solid #9f9f9f;

  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
  border-radius: 4px;
}

.page-catalog .filter-checkbox:hover {
  border-color: #ff8a2a;
}

.page-catalog .filter-checkbox:checked {
  background: #ff8a2a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 8'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
  border-color: #ff8a2a;
}

/* доступность с клавиатуры */
.page-catalog .filter-checkbox:focus-visible {
  outline: 2px solid #ff8a2a;
  outline-offset: 2px;
}

.page-catalog .btn-apply {
  display: none;
  width: 100%;
  padding: 10px;
  background: #ff8a2a;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 300;
  margin-top: 15px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.page-catalog .btn-apply:hover {
  background: #242424;
}

.page-catalog .clear-filters {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #c0392b;
  text-decoration: none;
}

.page-catalog .clear-filters:hover {
  text-decoration: underline;
}

.page-catalog .content {
  flex: 1;
  min-width: 0;
}

.page-catalog .result-count {
  color: #7f8c8d;
  font-size: 14px;
}

.page-catalog .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.page-catalog .card-title {
  font-size: 14px;
  font-weight: bold;

  color: #545456;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* сколько строк показывать */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px; /* ≈2 строки — чтобы карточки были ровными */
}

.page-catalog .card-sku {
  font-size: 11px;
  color: #95a5a6;
  margin: auto 0 4px 8px; /* auto сверху прижимает артикул и цену к низу */
}

.page-catalog .card-price--request {
  color: #e67e22;
  font-size: 13px;
}

/* ---------- Бейдж «Распродажа» на карточке товара ---------- */
.page-catalog .card-wrap {
  overflow: hidden; /* чтобы бейдж не вылезал за скруглённые углы */
}

.page-catalog .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}

.page-catalog .card-badge--sale {
  background: #e74c3c;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.35);
}

.page-catalog .card-badge--priority {
  background: #2c3e50;
  box-shadow: 0 2px 6px rgba(44, 62, 80, 0.35);
}

.page-catalog .card-badge--discontinued {
  background: #95a5a6;
  box-shadow: 0 2px 6px rgba(149, 165, 166, 0.35);
}

.page-catalog .card-price__old {
  text-decoration: line-through;
  color: #999;
  font-size: 15px;
  font-weight: 400;
  margin-right: 8px;
}

.page-catalog .card-price__new {
  color: #e74c3c;
}

.page-catalog .card-btn {
  flex: 1; /* одна кнопка на всю ширину карточки */
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  white-space: nowrap;
}

.page-catalog .card-btn--cart {
  background: #e67e22;
  color: #fff;
}

.page-catalog .card-btn--cart:hover {
  opacity: 0.7;
}

.page-catalog .card-btn--ask {
  background: #242424;
  color: #fff;
}

.page-catalog .card-btn--ask:hover {
  opacity: 0.7;
}

.page-catalog .card-btn--variants {
  background: #2c3e50;
  color: #fff;
}

.page-catalog .card-btn--variants:hover {
  opacity: 0.7;
}

#catalogResults {
  transition: opacity 0.15s ease;
}

#catalogResults.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.filters-loading {
  text-align: center;
  font-size: 13px;
  color: #7f8c8d;
  margin-top: 8px;
}

.page-catalog .pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-catalog .pagination a {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.page-catalog .pagination a:hover:not(.active) {
  background: #f5f5f5;
}

.page-catalog .pagination a.active {
  background: #e67e22 !important;
  color: #fff !important;
  border-color: #e67e22;
}

.page-catalog .no-goods {
  background: #fff;
  padding: 40px;
  text-align: center;
  border-radius: 6px;
  color: #7f8c8d;
}

.page-catalog .no-goods h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .page-catalog .wrapper {
    flex-direction: column;
  }

  .page-catalog .sidebar {
    width: 100%;
  }

  .page-catalog .header .container {
    flex-direction: column;
    align-items: stretch;
  }

  .page-catalog .search-container {
    max-width: 100%;
  }
}

/* =========================================================
   КАРТОЧКА ТОВАРА
   ========================================================= */
.page-product {
  padding-bottom: 50px;
  --pp-media-top: 156px; /* картинка липнет ниже допменю (80px) + крошек; сами крошки — в catalog-page.css */
}

.page-product .breadcrumbs {
  margin-bottom: 0;
}

.page-product .header-nav {
  background: #2c3e50;
  padding: 15px 20px;
  color: #fff;
}

.page-product .header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.page-product .header-nav a:hover {
  text-decoration: underline;
}

.page-product .header-nav .container {
  max-width: 1440px;
  margin: 0 auto;
}

.page-product .container {
  max-width: 1440px;
  border: 1px solid #e0e0e0;
  margin: 10px auto;
  padding: 30px;
  width: 100%;
}

.page-product .product-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start; /* критично для sticky: колонки не растягиваются по высоте друг друга */
  margin-top: 8px;
}

/* Левая колонка с картинкой — липнет под крошками */
.page-product .product-media {
  position: sticky;
  top: var(--pp-media-top);
  align-self: start;
  width: 380px;
}

.page-product .image-area {
  width: 380px;
  height: 380px;
  min-width: 0;
  border: 1px solid #c5c5c5;
  background: #fff;
}

.page-product .image-area img {
  object-fit: contain;
  background: #fff;
  width: 100%;
  height: 100%;
}

/* Правая колонка — обычный поток, скроллится */
.page-product .product-main {
  min-width: 0; /* длинные строки/таблицы в описании не распирают грид */
}

.page-product .info-area {
  width: auto;
  margin-left: 0; /* отступ теперь даёт gap грида */
}

.page-product .product-title {
  font-size: 24px;
  color: #545456;
  margin: 0;
  font-weight: bold;
  border: 1px solid #c5c5c5;
  padding: 20px;
}

.page-product .sku {
  font-size: 13px;
  color: #95a5a6;
  margin-bottom: 15px;
}

.page-product .product-price {
  font-size: 24px;
  color: #e67e22;
  font-weight: 400;
}

.page-product .attrs-list {
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  margin-top: 10px;
}

.page-product .attrs-list strong {
  display: block;
  margin-bottom: 10px;
  color: #545456;
  font-size: 16px;
}

.page-product .attr-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #c5c5c5;
  font-size: 16px;
  font-weight: 400;
}

.page-product .attr-name {
  color: #7f8c8d;
  font-weight: 400;
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-product .attr-value {
  text-align: right;
  flex: 1 1 auto;
}

.page-product .desc-title {
  font-size: 18px;
  color: #2c3e50;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.page-product .desc-text {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  white-space: pre-line;
}

.page-product .action-btn {
  padding: 12px 40px;
  background: #27ae60;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.page-product .action-btn:hover {
  background: #2ecc71;
}

@media (max-width: 900px) {
  .page-product .product-grid {
    grid-template-columns: 1fr;
  }

  .page-product .product-media {
    position: static;
    width: auto;
    max-width: 380px;
  }

  .page-product .image-area {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 768px) {
  .page-product .container {
    padding: 20px;
  }
}

/* =========================================================
   МОДАЛЬНОЕ ОКНО «УЗНАТЬ ЦЕНУ»
   (перенесено из index.php)
   ========================================================= */
.ask-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.ask-modal-bg.is-open {
  display: flex;
}

.ask-modal {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  width: 420px;
  max-width: calc(100vw - 40px);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ask-modal h3 {
  margin: 0 0 6px;
  color: #2c3e50;
  font-size: 20px;
}

.ask-modal__product {
  font-size: 13px;
  color: #7f8c8d;
  margin: 0 0 20px;
}

.ask-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #bdc3c7;
}

.ask-modal__close:hover {
  color: #c0392b;
}

.ask-field {
  margin-bottom: 14px;
}

.ask-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 5px;
}

.ask-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.ask-field input:focus {
  outline: none;
  border-color: #e67e22;
}

.ask-submit {
  width: 100%;
  padding: 11px;
  background: #e67e22;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}

.ask-submit:hover {
  background: #d35400;
}

/* Блок «Запрос отправлен» — скрыт по умолчанию, показывается через JS */
.ask-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.ask-success__check {
  font-size: 40px;
}

/* Кнопка "Показать ещё" — визуально из того же набора, что и пагинация:
   белая плашка с той же рамкой, оранжевый только на наведении */
.page-catalog .load-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.page-catalog .btn-load-more {
  min-width: 260px;
  padding: 13px 32px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.page-catalog .btn-load-more:hover {
  background: #f5f5f5;
  border-color: #e67e22;
  color: #e67e22;
}

.page-catalog .btn-load-more[data-busy] {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* когда кнопка есть, пагинация прижимается к ней ближе */
.page-catalog .load-more + .pagination {
  margin-top: 14px;
}

@media (max-width: 680px) {
  .page-catalog .btn-load-more {
    width: 100%;
    min-width: 0;
  }
}

.cat-new {
  --cn-accent: #f2851a;
  --cn-ink: #1c1c1e;
  --cn-muted: #8a8a8f;
  --cn-line: #c5c5c5;
  --cn-surface: #ffffff;
  --cn-page: #ffffff; /* фон страницы под крошками (для «разрыва» линии) */
  --cn-img-bg: #f2f2f2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 80px;
  color: var(--cn-ink);
  font-family: inherit;
}

.cn-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--cn-line);
  margin-bottom: 20px;
}

.cn-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 18px;
}

.cn-crumbs a {
  position: relative;
  color: var(--cn-muted);
  text-decoration: none;
  font-weight: 400;
  padding-bottom: 12px;
  transition: color 0.15s;
}

.cn-crumbs a:hover {
  color: var(--cn-ink);
}

.cn-crumbs a.is-current {
  color: var(--cn-ink);
}

.cn-crumbs a.is-current::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: -3px;
  height: 6px;
  background: #fff;
}

.cn-crumbs a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 6px;
  background: var(--cn-accent);
}

.cn-crumbs__sep {
  color: var(--cn-muted);
  opacity: 0.6;
  padding-bottom: 12px;
  line-height: 1;
  transform: translateY(-1px); /* em-dash по центру строки */
}

.cn-count {
  font-size: 14px;
  color: var(--cn-muted);
  white-space: nowrap;
  padding-bottom: 12px;
}

.cn-count strong {
  color: var(--cn-ink);
}

/* ---------- Категории: ряд чипов ---------- */
.cn-cats {
  margin: 40px 0;
}

.cn-cats__label {
  font-size: 20px;
  text-transform: uppercase;
  color: #1c1c1e;
  margin-bottom: 12px;
  font-weight: 600;
}
.cn-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.cn-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* .cn-chip::before {
  content: "\25CF";
  color: var(--cn-accent);
  font-size: 10px;
  margin: 0 8px 0 8px;
  line-height: 1;
  font-weight: 400;
} */

.cn-chip__btn,
.cn-chip__link {
  font: inherit;
  font-size: 16px;
  color: var(--cn-ink);
  background: none;
  border: 0;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  border: 1px solid #242424;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.cn-chip__btn:hover,
.cn-chip__link:hover {
  color: #fff;
  border-color: #ff8a2a;
  background-color: #242424;
}

.cn-chip.is-active .cn-chip__btn,
.cn-chip.is-active .cn-chip__link {
  color: var(--cn-accent);
  border: 1px solid #ff8a2a;
}

/* шеврон */
.cn-caret {
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s;
  margin-top: -2px;
}
/* .cn-chip.is-open .cn-caret {
  transform: rotate(-135deg);
  margin-top: 2px;
} */

/* ---------- Дропдаун приказов ---------- */
.cn-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 100%; /* по ширине родителя, дальше растёт по контенту */
  padding: 8px;
  background: var(--cn-surface);
  border: 1px solid var(--cn-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: none;
}
.cn-chip.is-open .cn-dropdown {
  display: block;
}

.cn-dropdown a {
  display: block;
  white-space: nowrap;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--cn-ink);
  text-decoration: none;
  transition:
    background 0.12s,
    color 0.12s;
}
.cn-dropdown a:hover {
  background: var(--cn-img-bg);
}
.cn-dropdown a.is-active {
  color: var(--cn-accent);
  font-weight: 600;
}

/* ============================================================
   Сетка карточек — борелесс, 4 колонки
   ============================================================ */
.cat-new .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px 38px;
  padding-top: 20px;
}
@media (max-width: 1439px) {
  .cat-new {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cat-new .grid {
    gap: 20px 24px;
  }
}

@media (max-width: 1200px) {
  .cat-new .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .cat-new .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
  }
}
@media (max-width: 560px) {
  .page-home .category-card {
    background: gray;
    padding: 20px;
    width: auto;
    height: 320px;
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 480px) {
  .cat-new .grid {
    grid-template-columns: 1fr;
  }
  .page-home .category-card {
    background: gray;
    padding: 20px;
    width: auto;
    height: 240px;
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
  }
}

.cat-new .card-wrap {
  display: flex;
  flex-direction: column;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  transition: all 0.3s ease;
}

.cat-new .card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.cat-new .card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--cn-surface);
  border: 1px solid var(--cn-line);
  display: block;
}

.cat-new .card-title {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  color: #7b7b7b;
  min-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-new .card-price {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 400;
  color: var(--cn-ink);
}

.cat-new .card-price__old {
  margin-right: 8px;
  font-weight: 400;
  color: var(--cn-muted);
  text-decoration: line-through;
}
.cat-new .card-price__new {
  color: var(--cn-accent);
}

.cat-new .card-price--request {
  font-weight: 400;
  color: var(--cn-accent);
  font-size: 16px;
}

/* ---------- CTA: все состояния единым видом — текст с подчёркиванием ---------- */
.cat-new .card-actions {
  margin-top: 16px;
} /* отодвинуто от цены */

.cat-new .card-btn {
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--cn-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cn-muted);
  transition:
    color 0.15s,
    border-color 0.15s;
  line-height: 14px;
}
.cat-new .card-btn:hover {
  color: var(--cn-accent);
  border-bottom-color: var(--cn-accent);
}

/* ---------- Бейджи ---------- */
.cat-new .card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 4px;
  color: #fff;
}
.cat-new .card-badge--sale {
  background: var(--cn-accent);
}
.cat-new .card-badge--priority {
  background: #3a3a40;
}
.cat-new .card-badge--discontinued {
  background: #f2851a;
}

/* ---------- Показать ещё / пагинация ---------- */
.cat-new .load-more {
  text-align: center;
  margin: 40px 0 10px;
}

.cat-new .btn-load-more {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 11px 26px;
  background: none;
  color: var(--cn-ink);
  border: 1px solid var(--cn-line);
  border-radius: 6px;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.cat-new .btn-load-more:hover {
  border-color: var(--cn-accent);
  color: var(--cn-accent);
}

.cat-new .pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.cat-new .pagination a {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  color: var(--cn-ink);
  border: 1px solid var(--cn-line);
  border-radius: 6px;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.cat-new .pagination a:hover {
  border-color: var(--cn-accent);
  color: var(--cn-accent);
}
.cat-new .pagination a.active {
  background: var(--cn-accent);
  border-color: var(--cn-accent);
  color: #fff;
}

/* ---------- Прочее ---------- */
.cat-new #catalogResults.is-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s;
}

.cat-new .no-goods {
  padding: 60px 0;
  text-align: center;
  color: var(--cn-muted);
}
.cat-new .no-goods h3 {
  color: var(--cn-ink);
  margin-bottom: 8px;
}

@media (max-width: 680px) {
  .cat-new {
    padding: 20px 16px 60px;
  }
  .cn-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
