/* Stable product-gallery layout: product photos never control the column width. */
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.product {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.product-art {
  width: 100%;
  max-width: 100%;
  height: clamp(280px, 25vw, 380px);
  overflow: hidden;
}

.product-art .product-photo,
.product-art-embedded .product-photo,
.product-art-purifier .product-photo,
.product-art-pipeline .product-photo {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 6%;
  width: auto;
  height: 84%;
  max-width: 76%;
  max-height: 84%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: drop-shadow(16px 20px 18px rgba(18, 27, 23, .26));
}

.product:hover .product-photo {
  transform: translateX(-50%) translateY(-6px) scale(1.01);
}

.product-art-embedded { background: linear-gradient(145deg, #edf0eb 0%, #dce3de 58%, #c7d2ca 100%); }
.product-art-purifier { background: linear-gradient(145deg, #f0eee8 0%, #dce3df 58%, #c0cec5 100%); }
.product-art-pipeline { background: linear-gradient(145deg, #e8e6de 0%, #d8d8d0 58%, #c5c8c0 100%); }
.product-art::after { color: rgba(38, 62, 52, .55); }
.product-art .art-index, .product-art .art-type { color: rgba(38, 62, 52, .58); }

@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-art { height: 340px; }
}

@media (max-width: 640px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .product-art { height: 360px; }
  .product-art .product-photo,
  .product-art-embedded .product-photo,
  .product-art-purifier .product-photo,
  .product-art-pipeline .product-photo {
    height: 86%;
    max-height: 86%;
    max-width: 72%;
  }
}
