.catalogItemsPage { padding: 0px 0 64px; }
.catalogItemsTitle { margin: 18px 0 24px; font-size: var(--fs-h1); font-weight: 500; }
.catalogItemsLayout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: flex-start; }
.catalogItemsLayout > .catalogFilter { grid-column: 1 / 2; }
.catalogItemsGrid { width: 100%; justify-self: stretch; grid-column: 2 / 3; grid-row: 1; }

.page-content {
  margin: 8px;
}

.catalogItemsGrid__list {
  display: grid;
  /* кол-во колонок = сколько влезет, ширина карточки от 300px до "сколько даст колонка" */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  justify-content: stretch;
  max-width: none;
  width: 100%;
  margin: 0;
}
.catalogItemsGrid__empty { padding: 48px; border: 1px dashed var(--color-border); border-radius: 16px; text-align: center; color: var(--color-muted); }

.catalogItemsGrid__list ~ .catalogItemsGrid__empty,
.catalogItemsGrid__empty + .catalogItemsGrid__empty {
  display: none;
}


.catalogItemCard {
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFF;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.catalogItemCard:hover {
  border-color: #242C6E59;
}
.catalogItemCard__top { display: flex; justify-content: space-between; font-size: var(--fs-p2); color: var(--color-muted); }
.catalogItemCard__status { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 12px;}
.status-icon { width: 16px; height: 16px; object-fit: contain; filter: invert(42%) sepia(6%) saturate(0%) hue-rotate(173deg) brightness(90%) contrast(84%); }
.status--success .status-icon { filter: invert(36%) sepia(71%) saturate(850%) hue-rotate(73deg) brightness(89%) contrast(95%); }
.status--warning .status-icon { filter: invert(54%) sepia(89%) saturate(1612%) hue-rotate(351deg) brightness(103%) contrast(101%); }
.status--pending .status-icon { filter: invert(47%) sepia(7%) saturate(0%) hue-rotate(154deg) brightness(91%) contrast(85%); }
.catalogItemCard__art { font-weight: 400; font-size: 12px; }

.catalogItemCard__img {
  width: 100%;
  border-radius: 12px;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 139px;
  max-height: 139px;
}
.catalogItemCard__img img {
  width: 100%;
  height: 100%;
  max-width: 221px;
  max-height: 139px;
  object-fit: contain;
  display: block;
}
.catalogItemCard__title {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  color: var(--color-text);
  font-weight: 400;
}
.catalogItemCard__title a { text-decoration: none; color: inherit; }
.catalogItemCard__text { margin: 4px 0 0; font-size: var(--fs-p2); color: var(--color-muted); min-height: 32px; }

.catalogItemCard__priceBlock { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.catalogItemCard__priceLine { display: flex; align-items: center; gap: 10px; }
.catalogItemCard__price { font-size: 20px; line-height: 20px; font-weight: 700; color: #000; }
.catalogItemCard__price--discount { color: #09A934; }
.catalogItemCard__discount { background: #09A934; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: var(--fs-p2); font-weight: 600; }
.catalogItemCard__priceOld {
  font-size: var(--fs-p2);
  color: var(--color-muted);
  position: relative;
  line-height: 1;
  padding-bottom: 2px;
}
.catalogItemCard__priceOld::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  height: 1px;
  background: #09A934;
}

.catalogItemCard__actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.catalogItemCard__cta {
  height: 36px;
  border: 0;
  background: #242C6E;
  color: #fff;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.catalogItemCard__cta:hover { background: #4E58A5; }
.catalogItemCard__cta--outline {
  background: transparent;
  color: #242C6E;
  border: 1px solid #242C6E;
}
.catalogItemCard__cta--outline:hover { background: #F3FAFF }

.catalogItemCard__qty {
  width: 90px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0 6px;
}
.qtyBtn {
  background: transparent;
  border: 0;
  width: 24px;
  height: 32px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  color: #242C6E;
}
.qtyInput {
  width: 32px;
  border: 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #000;
  outline: none;
  background: transparent;
}

.catalogItemCard__buyBlock .footer-button {
  margin: 0;
  padding: 0;
  width: 100%;
}
.catalogItemCard__buyBlock .buy_block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0;
  border: 0;
}
.catalogItemCard__buyBlock .buy_block .counter {
  margin: 0;
}
.catalogItemCard__buyBlock .buy_block .counter .wrap {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0 6px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.catalogItemCard__buyBlock .buy_block .ctrl {
  width: 24px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  color: #242C6E;
  cursor: pointer;
  background: transparent;
}
.catalogItemCard__buyBlock .buy_block .ctrl.disabled {
  color: rgba(36, 44, 110, 0.5);
  cursor: not-allowed;
}
.catalogItemCard__buyBlock .buy_block .input {
  width: auto;
}
.catalogItemCard__buyBlock .buy_block .input .count {
  border: 0;
  width: 32px;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #000;
  background: transparent;
}
.catalogItemCard__buyBlock .buy_block .buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.catalogItemCard__buyBlock .buy_block .basket-btn {
  width: 149px;
  height: 36px;
  border-radius: 4px;
  background: #242C6E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.catalogItemCard__buyBlock .buy_block .basket-btn.disabled {
  opacity: .35;
  cursor: not-allowed;
}
.catalogItemCard__buyBlock .buy_block .in_cart {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0 12px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--color-text);
  background: transparent;
}
.catalogItemCard__buyBlock .wrapper-block-btn { display: none !important; }
.catalogItemCard__qty {
  width: 90px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0 6px;
}
.qtyBtn {
  background: transparent;
  border: 0;
  width: 24px;
  height: 32px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  color: #242C6E;
}
.qtyInput {
  width: 32px;
  border: 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #000;
  outline: none;
  background: transparent;
}

.catalogItemsMore { margin-top: 32px; text-align: center; }
.catalogPagination {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
}
.catalogPagination__item {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #d9dce5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #3c4250;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.catalogPagination__item:hover {
  border-color: #b4b9c7;
  color: #1d202a;
}
.catalogPagination__item.is-current {
  background: #242C6E;
  color: #fff;
  border-color: #242C6E;
  box-shadow: 0 4px 10px rgba(36, 44, 110, 0.25);
}
.catalogPagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #1d202a;
  text-decoration: none;
  font-size: 18px;
}
.catalogPagination__arrow:hover {
  color: #000;
}

@media (max-width: 768px) {
  .catalogItemsPage .breadcrumbs {
    gap: 6px;
  }

  .catalogItemsPage .breadcrumbs a { display: none; }
  .catalogItemsPage .breadcrumbs a:last-of-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .catalogItemsPage .breadcrumbs a:last-of-type::before {
    content: "";
    width: 18px;
    height: 18px;
    display: inline-block;
    background: #242C6E;
    -webkit-mask: url('/local/templates/centino-heat/assets_new/icons/main-page/arrow-long-right.svg') center/18px 18px no-repeat;
            mask: url('/local/templates/centino-heat/assets_new/icons/main-page/arrow-long-right.svg') center/18px 18px no-repeat;
    transform: scaleX(-1);
  }

  .catalogItemsPage .breadcrumbs .current,
  .catalogItemsPage .breadcrumbs .sep { display: none; }
}


