.catalog-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}

.category-card {
  min-height: 0;
  background: #f8f7f3;
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card > p {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}

.category-card h3 {
  margin: 0 0 7px;
  font: 600 25px/1.06 Oswald, sans-serif;
  max-width: 100%;
}

.category-card > span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 100%;
  min-height: 34px;
  margin-bottom: 10px;
}

.category-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.category-card li {
  font-size: 11px;
  line-height: 1.3;
}

.category-card li::before {
  content: '—';
  color: var(--accent);
  margin-right: 5px;
}

.category-card li a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.category-card li a:hover {
  color: var(--accent);
}

.category-card:nth-child(4n + 2) {
  background: #29342f;
  color: #fff;
}

.category-card:nth-child(4n + 2) li a,
.category-card:nth-child(4n + 2) > span {
  color: #d3dad5;
}

.category-card:nth-child(4n + 2) .product-icon {
  filter: invert(1);
}

.category-card:nth-child(4n + 4) {
  background: #e36836;
  color: #fff;
}

.category-card:nth-child(4n + 4) > p {
  color: #482418;
}

.category-card:nth-child(4n + 4) > span,
.category-card:nth-child(4n + 4) li a {
  color: #fff5ef;
}

.category-card .pipes {
  border-color: var(--ink);
  box-shadow: -50px 32px 0 -5px var(--ink);
}

.category-card .valve {
  border-color: var(--ink);
}

.category-card .valve:before,
.category-card .valve:after {
  background: var(--ink);
}


/* =========================================
   ТОВАРЫ ВНУТРИ КАТЕГОРИИ
   ========================================= */

.catalog-items {
  display: grid;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.catalog-item {
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
  display: block;
}

.catalog-item h4 {
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 4px;
}

.catalog-item p {
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 7px;
}

.catalog-item a {
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.catalog-item a b {
  color: var(--accent);
  font-size: 15px;
  margin-left: 4px;
}

.category-card:nth-child(4n + 2) .catalog-item {
  border-color: #53635c;
}

.category-card:nth-child(4n + 2) .catalog-item p,
.category-card:nth-child(4n + 2) .catalog-item a {
  color: #d3dad5;
}

.category-card:nth-child(4n + 4) .catalog-item {
  border-color: #f19471;
}

.category-card:nth-child(4n + 4) .catalog-item p,
.category-card:nth-child(4n + 4) .catalog-item a {
  color: #fff5ef;
}


/* =========================================
   ИКОНКИ
   ========================================= */

.product-icon {
  display: none !important;
}

.mesh-icon {
  background:
    repeating-linear-gradient(
      45deg,
      var(--ink) 0 3px,
      transparent 3px 18px
    ),
    repeating-linear-gradient(
      -45deg,
      var(--ink) 0 3px,
      transparent 3px 18px
    );

  transform: rotate(7deg);
}

.radiator-icon {
  background:
    repeating-linear-gradient(
      90deg,
      var(--ink) 0 13px,
      transparent 13px 18px
    );

  border-top: 9px solid var(--ink);
  border-bottom: 9px solid var(--ink);
  height: 110px;
  transform: skewY(-5deg);
}


/* =========================================
   ОКНО СО СПИСКОМ ТОВАРОВ
   ========================================= */

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;
}

.product-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(15, 25, 22, 0.78);
}

.product-modal-window {
  position: relative;
  z-index: 1;

  width: min(1000px, 100%);
  max-height: 90vh;

  overflow-y: auto;

  background: #f8f7f3;
  color: var(--ink);

  padding: 35px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.35);
}

.product-modal-window h2 {
  margin: 0 0 10px;

  font: 600 38px/1.05 Oswald, sans-serif;

  text-transform: uppercase;
}

.product-modal-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;

  margin-bottom: 25px;
}

.product-modal-close {
  position: absolute;

  top: 12px;
  right: 18px;

  width: 40px;
  height: 40px;

  border: 0;
  background: transparent;

  color: var(--ink);

  font-size: 35px;
  line-height: 1;

  cursor: pointer;
}

.product-modal-close:hover {
  color: var(--accent);
}


/* =========================================
   СТРОКА ТОВАРА
   ========================================= */

.product-list {
  display: grid;
  gap: 0;
}

.product-row {
  display: grid;

  grid-template-columns:
    1.2fr
    2fr
    auto;

  gap: 25px;

  align-items: center;

  border-top: 1px solid var(--line);

  padding: 22px 0;
}

.product-main h3 {
  margin: 0 0 6px;

  font-size: 18px;
}

.product-main p {
  margin: 0;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.4;
}


/* =========================================
   ХАРАКТЕРИСТИКИ
   ========================================= */

.product-specs {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 15px;
}

.product-specs div {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.product-specs small {
  color: var(--muted);

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 0.5px;
}

.product-specs strong {
  font-size: 11px;
}


/* =========================================
   КНОПКА ПОЛУЧИТЬ ЦЕНУ
   ========================================= */

.product-price-btn {
  white-space: nowrap;

  text-decoration: none;
}


/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================= */

@media (max-width: 800px) {

  .product-modal {
    padding: 15px;
  }

  .product-modal-window {
    padding: 25px 18px;
  }

  .product-row {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .product-specs {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (max-width: 480px) {

  .category-card {
    min-height: 0;
  }

  .category-card h3 {
    max-width: 100%;
    font-size: 25px;
  }

  .product-modal-window h2 {
    font-size: 30px;
  }

  .product-specs {
    grid-template-columns:
      1fr 1fr;
  }

}

/* FERRAX BRAND THEME — CATALOG & MODAL */
.category-card,.category-card:nth-child(4n+2),.category-card:nth-child(4n+4){background:#fff;color:var(--ink);border-top:3px solid #008568}
.category-card>p,.category-card:nth-child(4n+4)>p{color:#008568}
.category-card>span,.category-card:nth-child(4n+2)>span,.category-card:nth-child(4n+4)>span{color:#68736e}
.category-card:nth-child(4n+2) .catalog-item,.category-card:nth-child(4n+4) .catalog-item,.catalog-item{border-color:#d5dfda}
.category-card:nth-child(4n+2) .catalog-item p,.category-card:nth-child(4n+2) .catalog-item a,.category-card:nth-child(4n+4) .catalog-item p,.category-card:nth-child(4n+4) .catalog-item a,.catalog-item a{color:#26332e}
.catalog-item a:hover,.catalog-item a:hover b,.catalog-item a b{color:#008568}
.category-card:nth-child(4n+2) li a,.category-card:nth-child(4n+4) li a{color:#26332e}
.product-modal-window{background:#f7faf8;border-top:4px solid #008568}
.product-modal-close:hover{color:#008568}
.product-row{border-color:#d5dfda}
.product-price-btn{background:linear-gradient(135deg,#079b76,#006b54)}
.product-price-btn:hover{background:linear-gradient(135deg,#0aaf85,#00765d)}


/* FERRAX CATALOG — ALTERNATING WHITE / LIGHT STEEL-SAGE */
.product-grid {
  background: #d5dfda;
  gap: 1px;
}
.category-card,
.category-card:nth-child(4n + 2),
.category-card:nth-child(4n + 4) {
  background: #ffffff;
  border-top: 3px solid #008568;
  transition: background .2s ease, box-shadow .2s ease;
}
.category-card:nth-child(even),
.category-card:nth-child(4n + 2),
.category-card:nth-child(4n + 4) {
  background: #e8efeb;
}
.category-card:hover {
  box-shadow: inset 0 0 0 1px rgba(0, 133, 104, .12);
}
.category-card:nth-child(even) .catalog-item,
.category-card:nth-child(even) .catalog-item {
  border-color: #cbd8d1;
}
.category-card .catalog-item h4 {
  color: #192521;
}
.category-card .catalog-item p,
.category-card > span {
  color: #64716b;
}
.category-card .catalog-item a {
  color: #1c3028;
}
.category-card .catalog-item a:hover,
.category-card .catalog-item a b {
  color: #008568;
}
