/* Sanel Glam — footer and full-ratio gallery fixes */

footer.site-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 26px clamp(24px, 4vw, 64px) !important;
  padding: 46px max(24px, calc((100vw - 1100px)/2)) 24px !important;
  height: auto !important;
  min-height: 0 !important;
}

footer.site-footer > div:first-child {
  flex: 1 1 250px !important;
  max-width: 340px;
}

footer.site-footer > div:not(:first-child) {
  flex: 1 1 125px !important;
  max-width: 175px;
}

footer.site-footer .sanel-brand-image {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
}

footer.site-footer > small {
  flex: 0 0 100% !important;
  margin: 12px 0 0 !important;
  padding-top: 18px !important;
  border-top: 1px solid #ffffff45;
}

/* Preserve original product image proportions */

.product-detail .detail-photo,
.product-detail [data-sanel-gallery],
.sanel-product-gallery .detail-photo,
[class*="imported-product"] .detail-photo {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.product-detail .detail-photo > img,
.product-detail .detail-photo picture img,
.product-detail [data-sanel-gallery] > img,
.sanel-product-gallery .detail-photo > img,
[class*="imported-product"] .detail-photo img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 760px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.sanel-gallery-thumb > img {
  object-fit: contain !important;
  transform: none !important;
}

@media (max-width: 750px) {
  footer.site-footer {
    padding: 36px 20px 22px !important;
    gap: 25px !important;
  }

  footer.site-footer > div:first-child {
    flex-basis: 100% !important;
    max-width: none;
  }

  footer.site-footer > div:not(:first-child) {
    flex: 1 1 40% !important;
  }

  .product-detail .detail-photo > img,
  .product-detail [data-sanel-gallery] > img {
    max-height: 65vh !important;
  }
}
