.page-content {
  margin: 8px;
}

.product-new {
  padding: 0px 0 64px !important;
}

.custom-header-card {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 34px;
}

.product-layout {
  display: flex;
  gap: 42px;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
}

.product-gallery {
  flex: 1 1 360px;      /* базовая ширина, можно ужиматься */
  /* min-width: 320px; */
  max-width: 443px;
  /* max-height: 437px; */
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.product-info {
  flex: 1 1 520px;      /* базовая ширина, можно ужиматься */
  /* min-width: 420px; */
  max-width: 649px;
}

.product-gallery .gallery-box {
  width: 443px;
  max-width: 100%;
  min-height: 380px;
  height: 100%;
  border: 1px solid #eaeaeb;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  gap: 10px;
  box-sizing: border-box;
  max-height: 415px;
}

.product-gallery .gallery-box > img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-gallery .thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.product-gallery .thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.gallery-placeholder {
  width: 443px;
  max-width: 100%;
  min-height: 380px;
  height: 100%;
  border: 1px solid #eaeaeb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  background: #fff;
  text-align: center;
  box-sizing: border-box;
  min-height: 380px;
  height: 100%;
}

.product-card {
  background: #fcfcfc;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  box-sizing: border-box;
  min-height: 380px;
  height: auto;
}

.product-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
  color: #000;
  font-weight: 400;
}

.status-icon {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex-shrink: 0;
  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%);
}

.product-article {
  font-size: 13px;
  line-height: 20px;
  color: #6e6e6e;
  font-weight: 400;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 600;
  color: #000;
}

.product-price--discount {
  color: #059611;
  margin-right: 25px;
}

/* .price-unit {
  font-size: 16px;
  color: #666;
  margin-left: 6px;
} */

.product-discount {
  background: #09A934;
  color: #fff;
  width: 70px;
  height: 35px;
  border-radius: 6px;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.product-price-old .price-old {
  color: #888;
  font-size: 16px;
  text-decoration: line-through;
  text-decoration-color: #059611;
}

.product-available {
  font-size: 15px;
  line-height: 20px;
  color: #6e6e6e;
}

.product-delivery {
  font-size: 15px;
  line-height: 20px;
  color: #000;
}

.product-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.catalogItemCard__cta {
  padding: 0 20px;
  height: 56px;
  border-radius: 8px;
  background: #242c6e;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

.catalogItemCard__cta:hover {
  background: #4E58A5;
}

.catalogItemCard__cta--outline {
  background: transparent;
  color: #242c6e;
  border: 1px solid #242c6e;
}

.catalogItemCard__cta--outline:hover {
  background: #F3FAFF;
}

.catalogItemCard__cta--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-actions__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 68px;
  row-gap: 12px;
}

.product-actions__main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.product-fav,
.product-consult__icon-btn {
  width: 56px;
  height: 56px;
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
}

.product-consult__icon-btn:hover {
  border: 1px solid #242C6E59;
}

.product-fav:hover {
  border: 1px solid #242C6E59;
}

.product-fav img,
.product-consult__icon-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.product-consult {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product-consult__text {
  width: 95px;
  height: 36px;
  font-size: 14px;
  line-height: 18px;
  color: #5d5d5d;
  display: flex;
  align-items: center;
}

.product-consult__icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-actions__qty {
  align-self: flex-start;
}

.catalogItemCard__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.catalogItemCard__qty .qtyBtn {
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.catalogItemCard__qty .qtyInput {
  border: 1px solid #ccc;
  height: 32px;
  width: 56px;
  text-align: center;
  border-radius: 6px;
}

.catalogItemCard__qty .qtyHint {
  margin-left: 8px;
  font-size: 12px;
  color: #b94a48;
  display: none;
}

.catalogItemCard__qty--disabled .qtyHint {
  display: none;
}

.product-disclaimer {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #808080;
}

.product-props {
  margin-top: 28px;
  max-width: 500px;
  margin-left: calc(443px + 42px);
}

.product-props__title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  margin: 0 0 18px;
}

.product-props__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-props__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.product-props__name,
.product-props__value {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: #000;
  font-weight: 400;
  letter-spacing: 0;
}

.product-props__value {
  text-align: right;
  min-width: 0;
}

.product-props__line {
  display: block;
  width: 100%;
  height: 1px;
  align-self: baseline;
  background-image: repeating-linear-gradient(
    to right,
    #b5b5b5 0,
    #b5b5b5 2px,
    transparent 2px,
    transparent 7px
  );
}

.product-desc {
  margin-top: 32px;
  max-width: 649px;
  margin-left: calc(443px + 42px);
}

.product-desc--with-props {
  padding-bottom: 24px;
  border-bottom: 1px solid #d1d1d1;
}

.product-desc--with-props + .product-props {
  margin-top: 24px;
}

.product-desc h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.product-similar {
  margin-top: 65px;
  width: 100%;
  max-width: calc(543px + 42px + 649px);
  margin-right: auto;
}

.product-similar::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #242c6e;
  margin-bottom: 65px;
}

.product-similar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.product-similar h2 {
  font-size: 20px;
  margin: 0;
}

.product-similar__nav {
  display: inline-flex;
  gap: 8px;
}

.product-similar__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e3e6eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.product-similar__nav-btn:hover:not(.is-disabled):not(:disabled) {
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.product-similar__nav-btn--prev {
  left: -20px;
}

.product-similar__nav-btn--next {
  right: -20px;
}

.product-similar__nav-btn span {
  font-size: 18px;
  color: #242c6e;
  line-height: 1;
}

.product-similar__nav-btn.is-disabled,
.product-similar__nav-btn:disabled {
  display: none;
}

.product-similar__slider {
  position: relative;
}

.product-similar__viewport {
  overflow: hidden;
}

.product-similar .catalogItemsGrid__list {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding: 6px 8px 10px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.product-similar .catalogItemsGrid__list > .catalogItemCard {
  flex: 0 0 calc((100% - 64px) / 4);
  max-width: calc((100% - 64px) / 4);
}

.product-similar .catalogItemsMore {
  display: none !important;
}

.product-similar .catalogItemCard {
  scroll-snap-align: start;
  border: 1px solid rgba(36, 44, 110, 0.35);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.product-similar .catalogItemCard__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: #6e6e6e;
}

.product-similar .catalogItemCard__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 12px;
}

.product-similar .status-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.product-similar .catalogItemCard__art {
  font-weight: 400;
  font-size: 12px;
  color: #6e6e6e;
  max-width: 70px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-similar .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;
}

.product-similar .catalogItemCard__img img {
  width: 100%;
  height: 100%;
  max-width: 221px;
  max-height: 139px;
  object-fit: contain;
  display: block;
}

.product-similar .catalogItemCard__title {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  color: #000;
  font-weight: 400;
}

.product-similar .catalogItemCard__title a {
  text-decoration: none;
  color: inherit;
}

.product-similar .catalogItemCard__priceBlock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.product-similar .catalogItemCard__priceLine {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-similar .catalogItemCard__price {
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
  color: #000;
}
.product-similar .catalogItemCard__price--discount {
  color: #d53434;
}

.product-similar .catalogItemCard__discount {
  background: #d53434;
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.product-similar .catalogItemCard__priceOld {
  font-size: 16px;
  color: #6e6e6e;
  position: relative;
  line-height: 1;
  padding-bottom: 2px;
}

.product-similar .catalogItemCard__priceOld::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  height: 1px;
  background: #6e6e6e;
}

.product-similar .catalogItemCard__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.product-similar .catalogItemCard__cta {
  height: 36px;
  border: 0;
  background: #242c6e;
  color: #fff;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-similar .catalogItemCard__cta:hover {
  background: #4E58A5;
}

.product-similar .catalogItemCard__cta--outline {
  background: transparent;
  color: #242c6e;
  border: 1px solid #242c6e;
}

.product-similar .catalogItemCard__cta--outline:hover {
  background: #F3FAFF;
}

.product-similar .catalogItemCard__qty {
  width: 96px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e3e6eb;
  border-radius: 6px;
  padding: 0 8px;
  box-sizing: border-box;
}

.product-similar .qtyBtn {
  background: transparent;
  border: 0;
  width: 24px;
  height: 32px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  color: #242c6e;
}

.product-similar .qtyInput {
  width: 32px;
  border: 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #000;
  outline: none;
  background: transparent;
}

.product-similar .catalogItemsGrid__list .catalogItemCard__actions .qtyHint {
  display: none !important;
}

.desc-new-custom {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

.mw-c {
  min-width: 228px;
}


.header-simular-new {
  font-size: 24px !important;
}

/* Прячем «Тут пока пусто» внутри блока похожих товаров на карточке товара */
.product-similar .catalogItemsGrid__empty {
  display: none !important;
}

@media (max-width: 1180px) {
  .product-layout {
      gap: 20px;
  }
}

@media (max-width: 1125px) {
  
  .product-gallery .gallery-box {
    max-height: 515px;
  }
}

/* Мобильная адаптация */
@media (max-width: 998px) {
  .product-layout {
    align-items: flex-start;
  }
  .product-gallery {
    align-self: auto;
  }
  .product-gallery,
  .product-info {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .product-gallery .gallery-box,
  .gallery-placeholder {
    width: 100%;
    min-height: 0;
    height: auto;
  }
  .product-card {
    min-height: 0;
  }
  .product-desc {
    margin-left: 0;
    max-width: 100%;
  }
  .product-props {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .product-new {
    margin: 8px;
  }  
  .product-new .breadcrumbs {
    gap: 6px;
  }
  .product-new .breadcrumbs a { display: none; }
  .product-new .breadcrumbs a:last-of-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .product-new .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);
  }
  .product-new .breadcrumbs .current,
  .product-new .breadcrumbs .sep { display: none; }
  .product-card {
    padding: 20px;
  }
  .product-price {
    font-size: 34px;
  }
  .catalogItemCard__cta {
    flex: 1 1 auto;
    min-width: 0;
  }
  .product-actions {
    gap: 12px;
  }
  .product-actions__row {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .product-actions__main {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .product-layout {
    gap: 12px;
  }

  .product-fav {
    flex: 0 0 56px;
    margin-left: auto;
  }

  .custom-header-card {
      margin-bottom: 17px;
  }

    .product-similar__viewport {
    overflow: visible;
  }
  .product-similar .catalogItemsGrid__list {
    gap: 12px;
    padding: 0;
  }
  .product-similar .catalogItemsGrid__list > .catalogItemCard {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
  }
  /* Если навкнопки в мобиле не нужны, можно скрыть:
  .product-similar__nav-btn { display: none !important; }
  */
}


@media (max-width: 426px) {
    .product-gallery .gallery-box {
        max-height: 360px;
    }

    .product-price--discount {
      margin-right: 0px;
    }
}
