/* ROSKROV-06C | Card preview only (BEFORE clicking zoom).
   Scoped to the main product detail component, not to the GLightbox overlay.
   Preserve image aspect ratio; do not upscale photos, do not crop. */
.cart-detail .preview-grid .img-section {
  min-width: 0;
}

/* Product with ONE DETAIL_PICTURE (direct child of .img-section). */
.cart-detail .preview-grid .img-section > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

/* Product with MORE_PHOTO: existing Slick gallery and thumbnails remain. */
.cart-detail .preview-grid .img-section .big-img-slider {
  max-width: 100%;
  min-width: 0;
}
.cart-detail .preview-grid .img-section .big-img-slider .relative-for-big {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.cart-detail .preview-grid .img-section .big-img-slider .relative-for-big > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .cart-detail .preview-grid .img-section > img,
  .cart-detail .preview-grid .img-section .big-img-slider .relative-for-big > img {
    max-height: 290px;
  }
}
