/* Patch 459: category detail related-category cards should match storefront category cards. */
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections{
  margin: 0 0 28px !important;
  padding: 0 0 26px !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections .mp-section-title-left{
  margin: 0 0 14px !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections .mp-section-title-left h2{
  color: #f6f7fb !important;
  font-weight: 1000 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid > .mp-category-card,
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid > .mp-related-collection-card{
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  color: #f6f7fb !important;
  background: linear-gradient(180deg, #141922 0%, #0c1118 100%) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.35) !important;
  text-decoration: none !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid > .mp-category-card:hover,
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid > .mp-related-collection-card:hover{
  transform: translateY(-2px) !important;
  border-color: rgba(216,26,34,.72) !important;
  box-shadow: 0 22px 54px rgba(0,0,0,.48) !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collection-media,
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid .mp-card-media{
  display: block !important;
  width: 100% !important;
  min-height: 190px !important;
  aspect-ratio: 16 / 9 !important;
  background-image: var(--mp-card-bg) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-color: #111822 !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collection-media.is-missing-image,
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid .is-missing-image .mp-card-media{
  display: grid !important;
  place-items: center !important;
  color: rgba(255,255,255,.72) !important;
  background: radial-gradient(circle at 50% 35%, rgba(216,26,34,.18), transparent 46%), #111822 !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collection-copy,
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid .mp-card-body{
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 15px !important;
  min-height: 150px !important;
  background: transparent !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collection-copy strong,
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid .mp-card-body strong{
  color: #ffffff !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  font-weight: 1000 !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collection-copy small,
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid .mp-card-body small{
  color: rgba(236,240,246,.76) !important;
  line-height: 1.45 !important;
}
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collection-copy .mp-card-more,
body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid .mp-card-more{
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-top: auto !important;
  color: #ff4b55 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  font-size: .82rem !important;
}
/* Root /categories cards should retain consistent sizing in dark storefront too. */
body.site-masterpalm.masterpalm-store-dark .mp-category-grid-list{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 16px !important;
}
body.site-masterpalm.masterpalm-store-dark .mp-category-grid-list .mp-category-card{
  min-width: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}
body.site-masterpalm.masterpalm-store-dark .mp-category-grid-list .mp-card-media{
  display: block !important;
  width: 100% !important;
  min-height: 190px !important;
  aspect-ratio: 16/9 !important;
  background-image: var(--mp-card-bg) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
@media (max-width: 1100px){
  body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid,
  body.site-masterpalm.masterpalm-store-dark .mp-category-grid-list{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 680px){
  body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid,
  body.site-masterpalm.masterpalm-store-dark .mp-category-grid-list{
    grid-template-columns: 1fr !important;
  }
  body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collection-media,
  body.site-masterpalm.masterpalm-store-dark.mp-category-detail-page .mp-related-collections-grid .mp-card-media,
  body.site-masterpalm.masterpalm-store-dark .mp-category-grid-list .mp-card-media{
    min-height: 180px !important;
  }
}
