/* TEST: generated exclusively from canonical catalog CSS. Do not hand-tune. */
/* Карточки основного каталога в визуальной системе страниц «Решения». */
.page-solution-detail #solutionProductsGrid {
  gap: 14px;
}

.page-solution-detail #solutionProductsGrid .product-row {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  padding: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(49, 54, 61, 0.13);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 11px 25px rgba(38, 43, 48, 0.07);
  transform: translateZ(0);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-solution-detail #solutionProductsGrid .product-row:hover {
  border-color: rgba(232, 119, 27, 0.28);
  box-shadow: 0 18px 36px rgba(38, 43, 48, 0.12);
  transform: translateY(-3px);
}

.page-solution-detail #solutionProductsGrid .product-card-favorite {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(43, 48, 54, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(31, 35, 40, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-solution-detail #solutionProductsGrid .product-card-favorite:hover,
.page-solution-detail #solutionProductsGrid .product-card-favorite:focus-visible {
  border-color: rgba(232, 119, 27, 0.38);
  outline: none;
  box-shadow: 0 9px 20px rgba(232, 119, 27, 0.17);
  transform: translateY(-2px);
}

.page-solution-detail #solutionProductsGrid .product-card-favorite .fav-btn__star {
  width: 34px;
  height: 34px;
  font-size: 23px;
}

.page-solution-detail #solutionProductsGrid .product-cell__img {
  display: grid;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 12px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  cursor: pointer;
}

.page-solution-detail #solutionProductsGrid .product-cell__img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  transition: transform 0.32s ease;
}

.page-solution-detail #solutionProductsGrid .product-row:hover .product-cell__img img {
  transform: scale(1.025);
}

.page-solution-detail #solutionProductsGrid .product-cell__img .product-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  color: #969ba1;
  background: transparent;
}

.page-solution-detail #solutionProductsGrid .product-card-body {
  display: flex;
  min-width: 0;
  padding: 14px;
  flex: 1 1 auto;
  flex-direction: column;
}

.page-solution-detail #solutionProductsGrid .product-cell__info {
  min-width: 0;
  padding: 0;
  flex: 0 0 auto;
}

.page-solution-detail #solutionProductsGrid .product-cell__info .title {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: #24272b;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-solution-detail #solutionProductsGrid .product-cell__info .meta {
  display: -webkit-box;
  min-height: 34px;
  margin-top: 7px;
  overflow: hidden;
  color: #777d84;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-solution-detail #solutionProductsGrid .product-code-line {
  min-height: 17px;
  margin-top: 7px;
  overflow: hidden;
  color: #888d92;
  font-size: 10.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-solution-detail #solutionProductsGrid .product-card-unit-line {
  display: flex;
  min-height: 22px;
  margin-top: 9px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #777d84;
  font-size: 10.5px;
  line-height: 1.35;
}

.page-solution-detail #solutionProductsGrid .product-card-unit-line .product-unit {
  overflow: hidden;
  color: #4c5157;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-solution-detail #solutionProductsGrid .product-card-unit-line .product-unit-limits {
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-solution-detail #solutionProductsGrid .product-card-controls {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 9px;
  margin-top: auto;
  padding-top: 12px;
  align-items: stretch;
}

.page-solution-detail #solutionProductsGrid .product-cell__qty,
.page-solution-detail #solutionProductsGrid .product-cell__actions {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-self: stretch;
}

.page-solution-detail #solutionProductsGrid .product-cell__qty .product-qty {
  display: block;
  width: 100%;
  height: 100%;
}

.page-solution-detail #solutionProductsGrid .qty-stepper {
  display: grid;
  width: 100%;
  min-height: 48px;
  height: 100%;
  padding: 4px;
  grid-template-columns: 28px minmax(24px, 1fr) 28px;
  gap: 2px;
  align-items: center;
  border: 1px solid rgba(49, 54, 61, 0.13);
  border-radius: 14px;
  background: #fff;
}

.page-solution-detail #solutionProductsGrid .qty-stepper__btn {
  width: 28px;
  height: 28px;
}

.page-solution-detail #solutionProductsGrid .qty-stepper__input {
  width: 100%;
  min-width: 0;
}

.page-solution-detail #solutionProductsGrid .product-cart-btn {
  min-height: 48px;
  height: 100%;
  padding: 4px 10px 4px 6px !important;
  border-radius: 14px;
}

.page-solution-detail #solutionProductsGrid .product-cart-btn__icon {
  width: 36px !important;
  height: 36px !important;
}

@media (max-width: 1280px) {
  .page-solution-detail #solutionProductsGrid .product-card-controls {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 7px;
  }

  .page-solution-detail #solutionProductsGrid .product-cart-btn {
    padding-right: 7px !important;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .page-solution-detail #solutionProductsGrid .product-cell__img {
    aspect-ratio: 16 / 10;
  }

  .page-solution-detail #solutionProductsGrid .product-card-controls {
    grid-template-columns: 106px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-solution-detail #solutionProductsGrid .product-row,
  .page-solution-detail #solutionProductsGrid .product-cell__img img,
  .page-solution-detail #solutionProductsGrid .product-card-favorite {
    transition-duration: 0.01ms !important;
  }
}

/* Catalog compact geometry (same canonical file) */
/* Компактная сетка каталога: одиночная карточка не растягивается на всю ширину. */
@media (min-width: 521px) {
  .page-solution-detail #solutionProductsGrid,
  .page-solution-detail .solution-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 280px)) !important;
    justify-content: start !important;
    align-items: stretch !important;
  }

  .page-solution-detail #solutionProductsGrid > .product-row,
  .page-solution-detail #solutionProductsGrid > .catalog-product-card,
  .page-solution-detail .solution-products-grid > .catalog-product-card {
    width: 100% !important;
    max-width: 280px !important;
  }

  .page-solution-detail #solutionProductsGrid > .catalog-runtime-state {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 520px) {
  .page-solution-detail #solutionProductsGrid,
  .page-solution-detail .solution-products-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page-solution-detail #solutionProductsGrid > .product-row,
  .page-solution-detail #solutionProductsGrid > .catalog-product-card,
  .page-solution-detail .solution-products-grid > .catalog-product-card {
    width: 100% !important;
    max-width: none !important;
  }
}
