/* Storefront image wells only: clip the backing, never artwork or links. */
#pn-home .pn-home-shelf .fxc-imgbox,
#pn-category .fxc-top-picks .fxc-imgbox,
#pn-product .pn-related-image{
  position:relative;
  isolation:isolate;
  min-width:0;
  min-height:0;
  background:transparent;
  border-radius:0;
  overflow:visible;
}
#pn-home .pn-home-shelf .fxc-imgbox,
#pn-category .fxc-top-picks .fxc-imgbox{
  aspect-ratio:1;
}
#pn-home .pn-home-shelf .fxc-imgbox::before,
#pn-category .fxc-top-picks .fxc-imgbox::before,
#pn-product .pn-related-image::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:#f0e6d7;
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
}
#pn-home .pn-home-shelf .fxc-img,
#pn-category .fxc-top-picks .fxc-img{
  box-sizing:border-box;
  min-width:0;
  min-height:0;
  width:100%;
  height:100%;
  max-height:100%;
  object-fit:contain;
  padding:12px;
}
/* Keep the existing card/grid proportions, without a rounded outer mask. */
#pn-home .pn-home-shelf .fxc-card,
#pn-product .pn-related-card{
  border-radius:2px;
  overflow:visible;
}
#pn-product .pn-related-image::before{background:#eee8dc}
#pn-product .pn-related-image img{
  position:absolute;
  inset:24px;
  width:calc(100% - 48px);
  height:calc(100% - 48px);
  max-width:none;
  max-height:none;
  object-fit:contain;
}
@media(min-width:721px){
  #pn-home .pn-home-shelf .fxc-img{padding:24px}
}
