/* MasterPalm Patch 241 — product media guard
   Additive guard loaded after Patch 240. Keeps prior translation/layout fixes intact. */

/* /product listing: enforce true 16:9 product image blocks with white image stage. */
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card--catalog-product .ses-list-card__media,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card--catalog-product .ses-list-card__media,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card--catalog-product .ses-list-card__media,
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media{
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:16 / 9 !important;
  padding:0 !important;
  margin:0 !important;
  position:relative !important;
  overflow:hidden !important;
  border-radius:0 !important;
  background-color:#fff !important;
  background-image:var(--mp-product-list-bg,var(--list-bg,none)) !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  background-size:contain !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media::before,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media::before,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media::before{
  content:"" !important;
  display:block !important;
  width:100% !important;
  padding-top:56.25% !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media > img,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media > img,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media > img{
  display:none !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media--missing,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media--missing,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media--missing{
  background:#fff !important;
  color:#20262d !important;
  display:grid !important;
  place-items:center !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media--missing::before,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media--missing::before,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media--missing::before{
  grid-area:1 / 1 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media--missing > span,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media--missing > span,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media--missing > span{
  grid-area:1 / 1 !important;
  position:relative !important;
  z-index:2 !important;
  color:#20262d !important;
  font-size:12px !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}

/* Keep /product card typography compact even if older page CSS is loaded after Bootstrap. */
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__body,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__body,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__body{
  padding:13px 14px 15px !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__body h3,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__body h3,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__body h3{
  font-size:15px !important;
  line-height:1.22 !important;
  margin:0 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__text,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__text,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__text{
  font-size:12.5px !important;
  line-height:1.42 !important;
}

/* Product detail: main and thumbnail image areas stay white, true 16:9, background-size contain. */
body.site-masterpalm #site-main .mp-product-page .mp-product-main-image,
body.masterpalm-theme #site-main .mp-product-page .mp-product-main-image,
#site-main .mp-product-page .mp-product-main-image,
body.site-masterpalm #site-main .mp-product-page .mp-product-thumb,
body.masterpalm-theme #site-main .mp-product-page .mp-product-thumb,
#site-main .mp-product-page .mp-product-thumb,
body.site-masterpalm #site-main .mp-related-card-media,
body.masterpalm-theme #site-main .mp-related-card-media,
#site-main .mp-related-card-media{
  background-color:#fff !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  background-size:contain !important;
  border-radius:0 !important;
}
body.site-masterpalm #site-main .mp-product-page .mp-product-main-image,
body.masterpalm-theme #site-main .mp-product-page .mp-product-main-image,
#site-main .mp-product-page .mp-product-main-image{
  aspect-ratio:16 / 9 !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  background-image:var(--mp-product-main-bg,none) !important;
}
body.site-masterpalm #site-main .mp-product-page .mp-product-main-image img,
body.masterpalm-theme #site-main .mp-product-page .mp-product-main-image img,
#site-main .mp-product-page .mp-product-main-image img{
  display:none !important;
}

/* Product detail video library: cards are thumbnails; video only loads inside the popup on click. */
body.site-masterpalm #site-main .mp-product-video-trigger,
body.masterpalm-theme #site-main .mp-product-video-trigger,
#site-main .mp-product-video-trigger{
  display:block !important;
  width:100% !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  color:inherit !important;
  cursor:pointer !important;
  text-align:inherit !important;
}
body.site-masterpalm #site-main .mp-product-video-trigger .mp-product-video-frame,
body.masterpalm-theme #site-main .mp-product-video-trigger .mp-product-video-frame,
#site-main .mp-product-video-trigger .mp-product-video-frame{
  display:grid !important;
  place-items:center !important;
  aspect-ratio:16 / 9 !important;
  width:100% !important;
  min-height:0 !important;
  height:auto !important;
  background-color:#050607 !important;
  background-image:linear-gradient(135deg,rgba(215,25,32,.34),rgba(5,6,7,.78)),var(--mp-product-video-poster,none) !important;
  background-position:center center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  overflow:hidden !important;
  border-radius:0 !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
}
body.site-masterpalm #site-main .mp-product-video-play,
body.masterpalm-theme #site-main .mp-product-video-play,
#site-main .mp-product-video-play{
  width:58px !important;
  height:58px !important;
  display:inline-grid !important;
  place-items:center !important;
  border-radius:50% !important;
  background:#d71920 !important;
  color:#fff !important;
  box-shadow:0 14px 38px rgba(0,0,0,.42) !important;
  font-size:34px !important;
  line-height:1 !important;
}
body.site-masterpalm #site-main .mp-product-video-trigger:hover .mp-product-video-play,
body.masterpalm-theme #site-main .mp-product-video-trigger:hover .mp-product-video-play,
#site-main .mp-product-video-trigger:hover .mp-product-video-play{
  transform:scale(1.05) !important;
}
body.site-masterpalm .mp-product-video-modal,
body.masterpalm-theme .mp-product-video-modal,
.mp-product-video-modal{
  z-index:2147483000 !important;
}
body.site-masterpalm .mp-product-video-modal .modal-content,
body.masterpalm-theme .mp-product-video-modal .modal-content,
.mp-product-video-modal .modal-content{
  border-radius:0 !important;
  background:#07090b !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.18) !important;
}
body.site-masterpalm .mp-product-video-modal .modal-header,
body.masterpalm-theme .mp-product-video-modal .modal-header,
.mp-product-video-modal .modal-header{
  border-bottom:1px solid rgba(255,255,255,.14) !important;
}
body.site-masterpalm .mp-product-video-modal .modal-body,
body.masterpalm-theme .mp-product-video-modal .modal-body,
.mp-product-video-modal .modal-body{
  padding:0 !important;
}
body.site-masterpalm .mp-product-video-modal-frame,
body.masterpalm-theme .mp-product-video-modal-frame,
.mp-product-video-modal-frame{
  width:100% !important;
  aspect-ratio:16 / 9 !important;
  background:#000 !important;
}
body.site-masterpalm .mp-product-video-modal-frame iframe,
body.site-masterpalm .mp-product-video-modal-frame video,
body.masterpalm-theme .mp-product-video-modal-frame iframe,
body.masterpalm-theme .mp-product-video-modal-frame video,
.mp-product-video-modal-frame iframe,
.mp-product-video-modal-frame video{
  display:block !important;
  width:100% !important;
  height:100% !important;
  border:0 !important;
  background:#000 !important;
}

@media (max-width:767.98px){
  body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__body,
  body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__body,
  #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__body{
    padding:12px 13px 14px !important;
  }
  body.site-masterpalm #site-main .mp-product-video-play,
  body.masterpalm-theme #site-main .mp-product-video-play,
  #site-main .mp-product-video-play{
    width:50px !important;
    height:50px !important;
    font-size:30px !important;
  }
}

/* Patch 241B — final product image/grid reinforcement.
   Loaded last. These rules deliberately override Patch 240 media backgrounds. */

/* /product listing: TRUE 16:9 white image block, contained background image. */
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card--catalog-product > .ses-list-card__media,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card--catalog-product > .ses-list-card__media,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card--catalog-product > .ses-list-card__media,
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list a.ses-list-card__media,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list a.ses-list-card__media,
#site-main .ses-products-index .ses-product-catalog-list a.ses-list-card__media{
  display:block !important;
  width:100% !important;
  aspect-ratio:16 / 9 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  padding:0 !important;
  margin:0 !important;
  position:relative !important;
  overflow:hidden !important;
  border-radius:0 !important;
  background-color:#fff !important;
  background-image:var(--mp-product-list-bg,var(--list-bg,none)) !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  background-size:contain !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card--catalog-product > .ses-list-card__media::before,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card--catalog-product > .ses-list-card__media::before,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card--catalog-product > .ses-list-card__media::before,
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list a.ses-list-card__media::before,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list a.ses-list-card__media::before,
#site-main .ses-products-index .ses-product-catalog-list a.ses-list-card__media::before{
  content:"" !important;
  display:block !important;
  padding-top:56.25% !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media img,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media img,
#site-main .ses-products-index .ses-product-catalog-list .ses-list-card__media img{
  display:none !important;
}

/* /categories product list: max 3 desktop cards, 1 mobile, white 16:9 image block. */
body.site-masterpalm #site-main .mp-category-products-grid,
body.masterpalm-theme #site-main .mp-category-products-grid,
#site-main .mp-category-products-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-card,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-card,
#site-main .mp-category-products-grid .mp-product-list-card{
  min-width:0 !important;
  width:100% !important;
  border-radius:0 !important;
  overflow:hidden !important;
  background:linear-gradient(180deg,#151b21,#07090b) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#fff !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-media,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-media,
#site-main .mp-category-products-grid .mp-product-list-media{
  display:block !important;
  width:100% !important;
  aspect-ratio:16 / 9 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  padding:0 !important;
  margin:0 !important;
  position:relative !important;
  overflow:hidden !important;
  border-radius:0 !important;
  background-color:#fff !important;
  background-image:var(--mp-product-list-bg,none) !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  background-size:contain !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-media::before,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-media::before,
#site-main .mp-category-products-grid .mp-product-list-media::before{
  content:"" !important;
  display:block !important;
  padding-top:56.25% !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-media img,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-media img,
#site-main .mp-category-products-grid .mp-product-list-media img{
  display:none !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-media span,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-media span,
#site-main .mp-category-products-grid .mp-product-list-media span{
  position:absolute !important;
  inset:0 !important;
  display:grid !important;
  place-items:center !important;
  color:#20262d !important;
  font-size:12px !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-body,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-body,
#site-main .mp-category-products-grid .mp-product-list-body{
  padding:14px !important;
  background:transparent !important;
  color:#dce1e5 !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-body h3,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-body h3,
#site-main .mp-category-products-grid .mp-product-list-body h3{
  margin:4px 0 0 !important;
  font-size:16px !important;
  line-height:1.24 !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-body h3 a,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-body h3 a,
#site-main .mp-category-products-grid .mp-product-list-body h3 a{
  color:#fff !important;
  text-decoration:none !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-body p,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-body p,
#site-main .mp-category-products-grid .mp-product-list-body p{
  font-size:12.75px !important;
  line-height:1.42 !important;
  color:#b8c0c7 !important;
}
body.site-masterpalm #site-main .mp-category-products-grid .mp-product-list-actions a,
body.masterpalm-theme #site-main .mp-category-products-grid .mp-product-list-actions a,
#site-main .mp-category-products-grid .mp-product-list-actions a{
  border-radius:0 !important;
}

/* Product detail gallery: real selectors for thumb buttons, with white 16:9 contain backgrounds. */
body.site-masterpalm #site-main .mp-product-page .mp-product-main-image,
body.masterpalm-theme #site-main .mp-product-page .mp-product-main-image,
#site-main .mp-product-page .mp-product-main-image,
body.site-masterpalm #site-main .mp-product-page .mp-product-thumbs button,
body.masterpalm-theme #site-main .mp-product-page .mp-product-thumbs button,
#site-main .mp-product-page .mp-product-thumbs button{
  display:block !important;
  aspect-ratio:16 / 9 !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:0 !important;
  background-color:#fff !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  background-size:contain !important;
}
body.site-masterpalm #site-main .mp-product-page .mp-product-thumbs button,
body.masterpalm-theme #site-main .mp-product-page .mp-product-thumbs button,
#site-main .mp-product-page .mp-product-thumbs button{
  background-image:var(--mp-product-thumb-bg,none) !important;
}
body.site-masterpalm #site-main .mp-product-page .mp-product-main-image img,
body.site-masterpalm #site-main .mp-product-page .mp-product-thumbs button img,
body.masterpalm-theme #site-main .mp-product-page .mp-product-main-image img,
body.masterpalm-theme #site-main .mp-product-page .mp-product-thumbs button img,
#site-main .mp-product-page .mp-product-main-image img,
#site-main .mp-product-page .mp-product-thumbs button img{
  display:none !important;
}

@media (max-width:991.98px){
  body.site-masterpalm #site-main .mp-category-products-grid,
  body.masterpalm-theme #site-main .mp-category-products-grid,
  #site-main .mp-category-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:767.98px){
  body.site-masterpalm #site-main .mp-category-products-grid,
  body.masterpalm-theme #site-main .mp-category-products-grid,
  #site-main .mp-category-products-grid{
    grid-template-columns:1fr !important;
  }
}
