/* MasterPalm Patch 240 — /product catalog paging and card sizing guard
   This file is intentionally additive and loads after Patch 239. It does not
   replace prior slideshow, collection, product detail, video, or translation fixes. */

/* Product catalog grid: 4 desktop cards, compact text, 16:9 contain media. */
body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list,
body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list,
#site-main .ses-products-index .ses-product-catalog-list{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:16px !important;
  align-items:stretch !important;
}

body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product,
body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product,
#site-main .ses-products-index .ses-list-card--catalog-product{
  min-width:0 !important;
  max-width:none !important;
  width:100% !important;
  border-radius:0 !important;
  background:linear-gradient(180deg,#151b21,#07090b) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  color:#fff !important;
  overflow:hidden !important;
}

body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__media,
body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__media,
#site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__media{
  display:grid !important;
  place-items:center !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:16 / 9 !important;
  background-color:#050607 !important;
  background-image:radial-gradient(circle at 50% 50%,rgba(255,255,255,.08),transparent 45%),var(--mp-product-list-bg,var(--list-bg,none)) !important;
  background-position:center center !important;
  background-size:contain !important;
  background-repeat:no-repeat !important;
  border-radius:0 !important;
  color:#bfc6cc !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__media img,
body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__media img,
#site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__media img{
  display:none !important;
}

body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__body,
body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__body,
#site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__body{
  padding:13px 14px 15px !important;
  gap:7px !important;
  background:transparent !important;
  color:#dce1e5 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__label,
body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__label,
#site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__label{
  margin:0 0 4px !important;
  color:#ff3a41 !important;
  font-size:11px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product h3,
body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product h3,
#site-main .ses-products-index .ses-list-card--catalog-product h3{
  margin:0 !important;
  font-size:15px !important;
  line-height:1.22 !important;
  font-weight:900 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product h3 a,
body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product h3 a,
#site-main .ses-products-index .ses-list-card--catalog-product h3 a{
  color:#fff !important;
  text-decoration:none !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__text,
body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__text,
#site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__text{
  margin:3px 0 0 !important;
  color:#b8c0c7 !important;
  font-size:12.5px !important;
  line-height:1.42 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__more,
body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__more,
#site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__more{
  margin-top:8px !important;
  align-self:flex-start !important;
  padding:7px 10px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  background:#0b0f12 !important;
  color:#fff !important;
  border-radius:0 !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.04em !important;
}

/* Dark filter controls: prevents white-on-white or all-white buttons. */
body.site-masterpalm #site-main .ses-products-index .ses-product-filter-form,
body.masterpalm-theme #site-main .ses-products-index .ses-product-filter-form,
#site-main .ses-products-index .ses-product-filter-form,
body.site-masterpalm #site-main .ses-products-index .ses-product-results-bar,
body.masterpalm-theme #site-main .ses-products-index .ses-product-results-bar,
#site-main .ses-products-index .ses-product-results-bar{
  background:linear-gradient(180deg,#151b21,#080b0d) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:0 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-filter-actions button,
body.masterpalm-theme #site-main .ses-products-index .ses-product-filter-actions button,
#site-main .ses-products-index .ses-product-filter-actions button{
  appearance:none !important;
  background:#d71920 !important;
  color:#fff !important;
  border:1px solid #d71920 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  font-weight:900 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-filter-actions a,
body.masterpalm-theme #site-main .ses-products-index .ses-product-filter-actions a,
#site-main .ses-products-index .ses-product-filter-actions a,
body.site-masterpalm #site-main .ses-products-index .ses-product-filter-panel__reset,
body.masterpalm-theme #site-main .ses-products-index .ses-product-filter-panel__reset,
#site-main .ses-products-index .ses-product-filter-panel__reset,
body.site-masterpalm #site-main .ses-products-index .ses-product-results-bar__clear,
body.masterpalm-theme #site-main .ses-products-index .ses-product-results-bar__clear,
#site-main .ses-products-index .ses-product-results-bar__clear{
  background:#0b0f12 !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.22) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  text-decoration:none !important;
  font-weight:900 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-filter-advanced summary,
body.masterpalm-theme #site-main .ses-products-index .ses-product-filter-advanced summary,
#site-main .ses-products-index .ses-product-filter-advanced summary{
  background:#0b0f12 !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.16) !important;
  border-radius:0 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-filter-field span,
body.masterpalm-theme #site-main .ses-products-index .ses-product-filter-field span,
#site-main .ses-products-index .ses-product-filter-field span,
body.site-masterpalm #site-main .ses-products-index .ses-product-results-bar__range,
body.masterpalm-theme #site-main .ses-products-index .ses-product-results-bar__range,
#site-main .ses-products-index .ses-product-results-bar__range{
  color:#c7cdd3 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-filter-form input,
body.site-masterpalm #site-main .ses-products-index .ses-product-filter-form select,
body.masterpalm-theme #site-main .ses-products-index .ses-product-filter-form input,
body.masterpalm-theme #site-main .ses-products-index .ses-product-filter-form select,
#site-main .ses-products-index .ses-product-filter-form input,
#site-main .ses-products-index .ses-product-filter-form select{
  background:#07090b !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.18) !important;
  border-radius:0 !important;
}

/* Pagination: black / dark graphite, white text, red active page. */
body.site-masterpalm #site-main .ses-products-index .ses-product-pagination,
body.masterpalm-theme #site-main .ses-products-index .ses-product-pagination,
#site-main .ses-products-index .ses-product-pagination{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  margin:28px 0 0 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-pagination .ses-pagination__link,
body.site-masterpalm #site-main .ses-products-index .ses-product-pagination .ses-pagination__ellipsis,
body.masterpalm-theme #site-main .ses-products-index .ses-product-pagination .ses-pagination__link,
body.masterpalm-theme #site-main .ses-products-index .ses-product-pagination .ses-pagination__ellipsis,
#site-main .ses-products-index .ses-product-pagination .ses-pagination__link,
#site-main .ses-products-index .ses-product-pagination .ses-pagination__ellipsis{
  min-width:40px !important;
  min-height:40px !important;
  padding:8px 13px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#0b0f12 !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:0 !important;
  text-decoration:none !important;
  font-weight:900 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-pagination .ses-pagination__link:hover,
body.masterpalm-theme #site-main .ses-products-index .ses-product-pagination .ses-pagination__link:hover,
#site-main .ses-products-index .ses-product-pagination .ses-pagination__link:hover{
  background:#171d23 !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.34) !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-pagination .is-active,
body.site-masterpalm #site-main .ses-products-index .ses-product-pagination .active,
body.masterpalm-theme #site-main .ses-products-index .ses-product-pagination .is-active,
body.masterpalm-theme #site-main .ses-products-index .ses-product-pagination .active,
#site-main .ses-products-index .ses-product-pagination .is-active,
#site-main .ses-products-index .ses-product-pagination .active{
  background:#d71920 !important;
  color:#fff !important;
  border-color:#d71920 !important;
}
body.site-masterpalm #site-main .ses-products-index .ses-product-pagination .is-disabled,
body.masterpalm-theme #site-main .ses-products-index .ses-product-pagination .is-disabled,
#site-main .ses-products-index .ses-product-pagination .is-disabled{
  opacity:.42 !important;
  cursor:not-allowed !important;
}

@media (max-width:991.98px){
  body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list,
  body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list,
  #site-main .ses-products-index .ses-product-catalog-list{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:767.98px){
  body.site-masterpalm #site-main .ses-products-index .ses-product-catalog-list,
  body.masterpalm-theme #site-main .ses-products-index .ses-product-catalog-list,
  #site-main .ses-products-index .ses-product-catalog-list{
    grid-template-columns:1fr !important;
  }
  body.site-masterpalm #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__body,
  body.masterpalm-theme #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__body,
  #site-main .ses-products-index .ses-list-card--catalog-product .ses-list-card__body{
    padding:13px !important;
  }
}
