/* STORE APP Patch 566: real category card images with pure white, uncropped containment.
   Only card-media in tool collections and Related Collections. Cards remain industrial/dark. */
body #site-main .mp-category-grid .mp-category-card .mp-category-product-image-frame,
body #site-main .mp-related-collections-grid .mp-related-collection-card .mp-category-product-image-frame,
body .mp-category-grid .mp-category-card .mp-category-product-image-frame,
body .mp-related-collections-grid .mp-related-collection-card .mp-category-product-image-frame,
body.site-masterpalm .mp-category-product-image-frame[data-category-image-layout="566"] {
  background:#ffffff !important;
  background-image:none !important;
  background-color:#ffffff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}
/* Older storefront styles draw a near-black gradient over the ENTIRE card via
   ::before / ::after. Disable those overlays for category cards only. */
body #site-main .mp-category-grid .mp-category-card::before,
body #site-main .mp-category-grid .mp-category-card::after,
body #site-main .mp-related-collections-grid .mp-related-collection-card::before,
body #site-main .mp-related-collections-grid .mp-related-collection-card::after,
body .mp-category-grid .mp-category-card::before,
body .mp-category-grid .mp-category-card::after,
body .mp-related-collections-grid .mp-related-collection-card::before,
body .mp-related-collections-grid .mp-related-collection-card::after {
  content:none !important;
  display:none !important;
  background:none !important;
}
body #site-main .mp-related-collections-grid .mp-related-collection-card .mp-category-product-image-frame,
body #site-main .mp-category-grid .mp-category-card .mp-category-product-image-frame {
  position:relative !important;
  z-index:1 !important;
}
body .mp-category-product-image-frame[data-category-image-layout="566"]::before,
body .mp-category-product-image-frame[data-category-image-layout="566"]::after {
  content:none !important;
  display:none !important;
  background:none !important;
}
body #site-main .mp-category-product-image-frame[data-category-image-layout="566"] > img.mp-category-cover-image,
body .mp-category-product-image-frame[data-category-image-layout="566"] > img.mp-category-cover-image,
body.masterpalm-store-white.mp-category-detail-page .mp-related-collection-media > img.mp-category-cover-image,
body.site-masterpalm .mp-category-product-image-frame > img.mp-category-cover-image {
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:#ffffff !important;
  padding:10px !important;
  box-sizing:border-box !important;
  border:0 !important;
  filter:none !important;
  opacity:1 !important;
}
