/* Raei storefront: consistent 1:1 product imagery, WITHOUT altering or
   cropping original media. Scope strictly to Woo/Nexo product components. */
.nx-card .nx-card__media {
  aspect-ratio: 1 / 1 !important;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: var(--nx-surface-3, #f4f6fa);
}
.nx-card .nx-card__thumb {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
}
.nx-card .nx-card__img,
.nx-card .nx-card__thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
/* Main product screenshot and mini previews also receive a square frame.
   Preserve the original screenshot completely with contain. */
.single-product .nx-pmedia .nx-browser__screen,
.single-product .nx-pmedia .nx-pmedia__thumb {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
}
.single-product .nx-pmedia .nx-browser__screen > img,
.single-product .nx-pmedia .nx-browser__zoom img,
.single-product .nx-pmedia .nx-pmedia__thumb img {
  object-fit: contain !important;
  object-position: center !important;
}
