/* Owner-approved frame (15 October). Keep the Website copy byte-identical.
   The supplied PNG is byte-for-byte unchanged. Product pixels stay separate. */
.np-product-stage.np-product-stage {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1122 / 1402;
  background-color: #edf6ff;
  background-image: url("https://admin.namphat.tiha.vn/assets/brand/product-studio/nam-phat-frame-approved-20261015.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.np-product-stage::before,
.np-product-stage::after {
  content: none;
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.np-product-stage .np-product-stage__picture {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 0;
}
.np-product-stage.np-product-stage .np-product-stage__picture > img {
  position: absolute;
  top: 21%; left: 4%;
  display: block;
  width: 92%; height: 65%; max-width: 100%; max-height: 100%;
  padding: 0; margin: 0;
  background: transparent;
  object-fit: contain; object-position: center;
  /* Preserve original colours and proportions, including photos with a backdrop. */
  filter: none; transform: none; mix-blend-mode: normal;
}
/* Only audited, versioned cutouts get padding normalization. Unknown/new Admin
   uploads keep the safe contain box above, independent of SKU or filename alone.
   These values align the visible bottle baseline at 86.8% without pixel edits. */
.np-product-stage.np-product-stage .np-product-stage__picture > img:is(
  [src$="/assets/tiha/packshots-v1/LPG12DO.webp"],
  [src$="/assets/tiha/packshots-v1/LPG12XAM.webp"],
  [src$="/assets/tiha/packshots-v1/LPG12XANHVT.webp"],
  [src$="/assets/tiha/packshots-v1/LPG12HONG.webp"],
  [src$="/assets/tiha/packshots-v1/LPG12XANHVAN.webp"],
  [src$="/assets/tiha/packshots-v1/LPG45XAM.webp"],
  [src$="/assets/tiha/packshots-v1/LPG45HONG.webp"],
  [src$="/assets/brand/petgas-blue-12kg-cutout-v5.webp"],
  [src$="/assets/catalog-cutout-v1/petgas-namphat-12kg.webp"],
  [src$="/assets/catalog-cutout-v1/petgas-namphat-45kg.webp"],
  [src$="/assets/brand/petgas-yellow-12-5kg-20261006.png"],
  [src$="/assets/brand/thu-duc/thu-duc-red-cutout-v1.webp"],
  [src$="/assets/brand/thu-duc/thu-duc-gray-short-cutout-v1.webp"],
  [src$="/assets/brand/thu-duc/thu-duc-gray-tall-cutout-v2.webp"],
  [src$="/assets/brand/thu-duc/thu-duc-yellow-vip-cutout-v2.webp"],
  [src$="/assets/brand/thu-duc/thu-duc-deep-blue-cutout-v1.webp"],
  [src$="/assets/brand/thu-duc/thu-duc-cyan-cutout-v1.webp"],
  [src$="/assets/brand/thu-duc/thu-duc-blue-green-cutout-v1.webp"]
) {
  top: var(--np-stage-photo-top, 13.5963%); left: 50%;
  height: var(--np-stage-photo-height, 79.4074%); width: auto;
  max-width: none; max-height: none;
  transform: translateX(-50%);
}
.np-product-stage__picture > img[src$="/assets/brand/petgas-blue-12kg-cutout-v5.webp"] { --np-stage-photo-height: 95.3058%; --np-stage-photo-top: 5.6947%; }
.np-product-stage__picture > img[src$="/assets/catalog-cutout-v1/petgas-namphat-12kg.webp"] { --np-stage-photo-height: 83.8548%; --np-stage-photo-top: 11.3307%; }
.np-product-stage__picture > img[src$="/assets/catalog-cutout-v1/petgas-namphat-45kg.webp"] { --np-stage-photo-height: 83.75%; --np-stage-photo-top: 11.425%; }
.np-product-stage__picture > img[src$="/assets/brand/petgas-yellow-12-5kg-20261006.png"] { --np-stage-photo-height: 68.6996%; --np-stage-photo-top: 18.5924%; }
.np-product-stage__picture > img[src$="/assets/brand/thu-duc/thu-duc-red-cutout-v1.webp"] { --np-stage-photo-height: 67.4833%; --np-stage-photo-top: 19.5803%; }
.np-product-stage__picture > img[src$="/assets/brand/thu-duc/thu-duc-gray-short-cutout-v1.webp"] { --np-stage-photo-height: 70.5360%; --np-stage-photo-top: 18.3305%; }
.np-product-stage__picture > img[src$="/assets/brand/thu-duc/thu-duc-gray-tall-cutout-v2.webp"] { --np-stage-photo-height: 67.4430%; --np-stage-photo-top: 19.5785%; }
.np-product-stage__picture > img[src$="/assets/brand/thu-duc/thu-duc-yellow-vip-cutout-v2.webp"] { --np-stage-photo-height: 69.4815%; --np-stage-photo-top: 19.0467%; }
.np-product-stage__picture > img[src$="/assets/brand/thu-duc/thu-duc-deep-blue-cutout-v1.webp"] { --np-stage-photo-height: 69.4815%; --np-stage-photo-top: 19.2683%; }
.np-product-stage__picture > img[src$="/assets/brand/thu-duc/thu-duc-cyan-cutout-v1.webp"] { --np-stage-photo-height: 67.8902%; --np-stage-photo-top: 19.3355%; }
.np-product-stage__picture > img[src$="/assets/brand/thu-duc/thu-duc-blue-green-cutout-v1.webp"] { --np-stage-photo-height: 71.8158%; --np-stage-photo-top: 18.2571%; }
.np-product-stage .np-product-stage__picture > .image-fallback,
.np-product-stage .np-product-stage__picture > .np-product__photo-placeholder {
  width: 88%; height: 56%; min-height: 0;
  border-radius: 12px;
  background: #f8fbffe8;
}
.np-product-stage .product-card__weight,
.np-product-stage .np-product__weight {
  z-index: 3;
  top: 24%; right: auto; bottom: auto; left: 5%;
  margin: 0; padding: 4px 7px;
  border: 1px solid #dbe7f1; border-radius: 6px;
  color: #123d70; background: #fffffff0;
  font-size: 10px; line-height: 1.2;
  box-shadow: 0 2px 6px #173c650a;
}
/* Preserve every part of the owner's portrait frame without stretching. */
.home-product-grid .product-card__media.np-product-stage { aspect-ratio: 1122 / 1402; }
.np-product .np-product__media.np-product-stage { height: auto; aspect-ratio: 1122 / 1402; }
/* The legacy Website detail box is sticky with top:104px. The shared stage is
   relative; reset that offset so it occupies its visible place in normal flow. */
.np-product-stage.np-product-stage--detail { top: auto; width: 100%; min-width: 0; max-width: 560px; margin-inline: auto; }
