/* STORE APP Patch 431
   Final dark contrast sweep for legacy white storefront blocks and product options.
   This file is intentionally loaded after Patch 428/430 theme assets. */

body.masterpalm-store-dark{
  --mp431-bg:#050607;
  --mp431-panel:#10171d;
  --mp431-panel-2:#151d24;
  --mp431-panel-3:#0b1014;
  --mp431-panel-4:#080c10;
  --mp431-line:rgba(255,255,255,.16);
  --mp431-line-soft:rgba(255,255,255,.10);
  --mp431-text:#f4f6f8;
  --mp431-muted:#c2cad1;
  --mp431-muted-2:#9da8b2;
  --mp431-red:#d71920;
  --mp431-red-bright:#ff4047;
}

body.site-frontend.masterpalm-store-dark.masterpalm-store-white,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main{
  background:#050607 !important;
  color:var(--mp431-text) !important;
}

/* Legacy collection pages still carry `masterpalm-store-white` and `mp-collection-page-white`. */
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-page-hero,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-section,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-section.mp-collection-page-white,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white.mp-tool-collections-page #site-main .mp-collection-page-white{
  background:radial-gradient(circle at 50% 0,rgba(160,168,176,.10),transparent 30%),linear-gradient(180deg,#0b1014 0%,#050607 52%,#07090b 100%) !important;
  color:var(--mp431-text) !important;
  border-color:var(--mp431-line) !important;
}

body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-page-hero-inner,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-header-container,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-section-title{
  background:transparent !important;
  color:var(--mp431-text) !important;
}

body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-page-hero h1,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-page-hero h2,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-section-title h1,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-section-title h2,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-section-title h3,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white h1,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white h2,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white h3{
  color:#fff !important;
  text-shadow:none !important;
}

body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-page-hero p,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-breadcrumb,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-breadcrumb a,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-section-title p,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white :where(p,small,span,li){
  color:var(--mp431-muted) !important;
}

body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-section-title > span{
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent) !important;
  border-color:transparent !important;
}

body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-category-grid,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-category-grid-list{
  background:transparent !important;
}

body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-category-card,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white a.mp-category-card,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-card-body,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-quote-strip,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-mini-feature-strip,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-mini-feature-strip > article{
  background:linear-gradient(180deg,var(--mp431-panel-2),#090d11) !important;
  color:var(--mp431-text) !important;
  border-color:var(--mp431-line) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.34) !important;
}

body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-category-card:hover,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-category-card:focus-visible{
  border-color:rgba(255,64,71,.60) !important;
  box-shadow:0 24px 52px rgba(0,0,0,.46),0 0 0 1px rgba(255,64,71,.22) !important;
}

body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-card-body strong,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-quote-strip-copy strong,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-mini-feature-strip strong,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-card-more{
  color:#fff !important;
}
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-card-body small,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-quote-strip-copy p,
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-mini-feature-strip span{
  color:var(--mp431-muted) !important;
}
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-card-more{color:var(--mp431-red-bright) !important;}
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-quote-strip > a{
  background:linear-gradient(135deg,#d71920,#8f070c) !important;
  border-color:rgba(255,255,255,.18) !important;
  color:#fff !important;
}
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-mini-feature-strip i{color:#ff5b62 !important;}

/* Keep product/category image wells light so transparent artwork remains visible. */
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-card-media,
body.site-frontend.masterpalm-store-dark #site-main :where(.mpb2b-product-media,.mpb2b-gallery-main,.mpb2b-thumb,.mp-product-list-media,.mp-product-card-image,.mp-card-media){
  background-color:#f4f7fa !important;
  color:#3f4852 !important;
  border-color:#d8dee5 !important;
}
body.site-frontend.masterpalm-store-dark.masterpalm-store-white #site-main .mp-collection-page-white .mp-category-card.is-missing-image .mp-card-media{
  background:linear-gradient(135deg,#e5e9ed,#f7f9fb) !important;
  color:#56616c !important;
}

/* Product detail option groups and price modifiers. */
body.masterpalm-store-dark #site-main .mpb2b-product-detail .mpb2b-buybox .mpb2b-product-options,
body.masterpalm-store-dark #site-main .mpb2b-product-detail fieldset.mpb2b-product-options,
body.masterpalm-store-dark #site-main .mpb2b-buybox--compact .mpb2b-product-options,
body.masterpalm-store-dark.masterpalm-store-white #site-main fieldset.mpb2b-product-options,
body.masterpalm-store-dark #site-main .mpb2b-product-options{
  background:linear-gradient(180deg,#131b22,#0a0f13) !important;
  color:var(--mp431-text) !important;
  border:1px solid var(--mp431-line) !important;
  border-left:4px solid var(--mp431-red) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 10px 24px rgba(0,0,0,.22) !important;
}
body.masterpalm-store-dark #site-main .mpb2b-product-options legend,
body.masterpalm-store-dark #site-main .mpb2b-buybox--compact .mpb2b-product-options legend,
body.masterpalm-store-dark #site-main fieldset.mpb2b-product-options legend{
  background:transparent !important;
  color:#fff !important;
  text-shadow:none !important;
}
body.masterpalm-store-dark #site-main .mpb2b-product-options legend span,
body.masterpalm-store-dark #site-main fieldset.mpb2b-product-options legend span{color:#ff555c !important;}
body.masterpalm-store-dark #site-main .mpb2b-product-options > p,
body.masterpalm-store-dark #site-main .mpb2b-buybox--compact .mpb2b-product-options > p,
body.masterpalm-store-dark #site-main fieldset.mpb2b-product-options > p{color:var(--mp431-muted) !important;}
body.masterpalm-store-dark #site-main .mpb2b-product-option-list{background:transparent !important;}

body.masterpalm-store-dark #site-main .mpb2b-product-option-item,
body.masterpalm-store-dark #site-main .mpb2b-buybox--compact .mpb2b-product-option-item,
body.masterpalm-store-dark #site-main label.mpb2b-product-option-item{
  background:linear-gradient(180deg,#101820,#080d11) !important;
  color:var(--mp431-text) !important;
  border-color:rgba(255,255,255,.18) !important;
}
body.masterpalm-store-dark #site-main .mpb2b-product-option-item:hover,
body.masterpalm-store-dark #site-main .mpb2b-product-option-item:focus-within{
  background:linear-gradient(180deg,#17222b,#0c1217) !important;
  border-color:rgba(255,64,71,.65) !important;
}
body.masterpalm-store-dark #site-main .mpb2b-product-option-item:has(input:checked){
  background:linear-gradient(180deg,#241116,#12090b) !important;
  border-color:var(--mp431-red) !important;
  box-shadow:0 0 0 1px var(--mp431-red),0 10px 26px rgba(215,25,32,.16) !important;
}
body.masterpalm-store-dark #site-main .mpb2b-product-option-item strong,
body.masterpalm-store-dark #site-main .mpb2b-product-option-item span strong{color:#fff !important;}
body.masterpalm-store-dark #site-main .mpb2b-product-option-item small,
body.masterpalm-store-dark #site-main .mpb2b-product-option-item span small{color:#bfc8d0 !important;}
body.masterpalm-store-dark #site-main .mpb2b-product-option-item > b,
body.masterpalm-store-dark #site-main .mpb2b-product-option-item b{color:#ff4c54 !important;}
body.masterpalm-store-dark #site-main .mpb2b-product-option-item input[type="checkbox"],
body.masterpalm-store-dark #site-main .mpb2b-product-option-item input[type="radio"]{
  accent-color:var(--mp431-red) !important;
  background-color:#0c1217 !important;
  border-color:rgba(255,255,255,.45) !important;
}
body.masterpalm-store-dark #site-main .mpb2b-product-options .form-select,
body.masterpalm-store-dark #site-main .mpb2b-product-options select,
body.masterpalm-store-dark #site-main .mpb2b-buybox--compact .mpb2b-product-options .form-select{
  background-color:#0c1217 !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.26) !important;
  box-shadow:none !important;
}
body.masterpalm-store-dark #site-main .mpb2b-product-options .form-select:focus,
body.masterpalm-store-dark #site-main .mpb2b-product-options select:focus{
  background-color:#101820 !important;
  color:#fff !important;
  border-color:var(--mp431-red) !important;
  box-shadow:0 0 0 .2rem rgba(215,25,32,.22) !important;
}
body.masterpalm-store-dark #site-main .mpb2b-product-options select option{background:#0c1217 !important;color:#fff !important;}
body.masterpalm-store-dark #site-main .mpb2b-buybox--compact .mpb2b-current-price,
body.masterpalm-store-dark #site-main .mpb2b-current-price{border-bottom-color:rgba(255,255,255,.14) !important;}
body.masterpalm-store-dark #site-main .mpb2b-live-price-preview,
body.masterpalm-store-dark #site-main .mpb2b-purchase-quantity,
body.masterpalm-store-dark #site-main .mpb2b-qty{
  background:linear-gradient(180deg,#101820,#080d11) !important;
  color:var(--mp431-text) !important;
  border-color:var(--mp431-line) !important;
}
body.masterpalm-store-dark #site-main .mpb2b-qty input,
body.masterpalm-store-dark #site-main .mpb2b-purchase-quantity input{
  background:#090f14 !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.18) !important;
}

/* Cart option summaries. */
body.masterpalm-store-dark #site-main .mpb2b-cart-option-summary{
  background:linear-gradient(180deg,#111920,#080d11) !important;
  color:var(--mp431-text) !important;
  border-left-color:var(--mp431-red) !important;
  border-top:1px solid var(--mp431-line-soft) !important;
  border-right:1px solid var(--mp431-line-soft) !important;
  border-bottom:1px solid var(--mp431-line-soft) !important;
}
body.masterpalm-store-dark #site-main .mpb2b-cart-option-summary strong{color:#fff !important;}
body.masterpalm-store-dark #site-main .mpb2b-cart-option-summary span{color:#ff4c54 !important;}

/* Product-card option popup: keep it above filters and dark. */
body > #mpProductOptionModal.mp-product-option-modal,
body > .mp-product-option-modal{z-index:2147483646 !important;}
body.mp-product-option-modal-open > .modal-backdrop.show,
body > .modal-backdrop.show{z-index:2147483635 !important;}
body.masterpalm-store-dark .mp-product-option-modal .modal-content,
body.masterpalm-store-dark .mp-product-option-modal .mp-option-choice,
body.masterpalm-store-dark .mp-product-option-modal .mp-option-group,
body.masterpalm-store-dark .mp-product-option-modal .mp-option-product-summary{
  background:linear-gradient(180deg,#121a21,#0a0f13) !important;
  color:var(--mp431-text) !important;
  border-color:var(--mp431-line) !important;
}
body.masterpalm-store-dark .mp-product-option-modal .modal-header,
body.masterpalm-store-dark .mp-product-option-modal .modal-footer{background:#0a0f13 !important;border-color:var(--mp431-line) !important;}
body.masterpalm-store-dark .mp-product-option-modal .mp-option-choice strong,
body.masterpalm-store-dark .mp-product-option-modal .mp-option-group legend,
body.masterpalm-store-dark .mp-product-option-modal .modal-title{color:#fff !important;}
body.masterpalm-store-dark .mp-product-option-modal .mp-option-choice small,
body.masterpalm-store-dark .mp-product-option-modal .mp-option-group > p,
body.masterpalm-store-dark .mp-product-option-modal .modal-body p{color:var(--mp431-muted) !important;}

/* Newsletter popup inline CSS is after the theme, so override it hard. */
body.masterpalm-store-dark #nlOverlay.nl-overlay,
body.masterpalm-store-dark .nl-overlay{background:rgba(0,0,0,.74) !important;z-index:2147483605 !important;}
body.masterpalm-store-dark #nlOverlay .nl-modal,
body.masterpalm-store-dark .nl-overlay .nl-modal,
body.masterpalm-store-dark .nl-modal{
  background:linear-gradient(180deg,#171f27,#080d11) !important;
  color:var(--mp431-text) !important;
  border:1px solid var(--mp431-line) !important;
  box-shadow:0 34px 90px rgba(0,0,0,.72) !important;
}
body.masterpalm-store-dark #nlOverlay .nl-close,
body.masterpalm-store-dark .nl-modal .nl-close{background:#0c1217 !important;color:#fff !important;border-color:rgba(255,255,255,.25) !important;}
body.masterpalm-store-dark #nlOverlay .nl-badge,
body.masterpalm-store-dark .nl-modal .nl-badge{background:rgba(215,25,32,.16) !important;color:#ff666d !important;border:1px solid rgba(255,64,71,.30) !important;}
body.masterpalm-store-dark #nlOverlay .nl-title,
body.masterpalm-store-dark .nl-modal .nl-title,
body.masterpalm-store-dark .nl-modal h1,
body.masterpalm-store-dark .nl-modal h2,
body.masterpalm-store-dark .nl-modal h3{color:#fff !important;}
body.masterpalm-store-dark #nlOverlay .nl-desc,
body.masterpalm-store-dark #nlOverlay .nl-fine,
body.masterpalm-store-dark .nl-modal .nl-desc,
body.masterpalm-store-dark .nl-modal .nl-fine,
body.masterpalm-store-dark .nl-modal p,
body.masterpalm-store-dark .nl-modal label{color:var(--mp431-muted) !important;}
body.masterpalm-store-dark #nlOverlay .form-control,
body.masterpalm-store-dark .nl-modal .form-control{background:#0c1217 !important;color:#fff !important;border-color:rgba(255,255,255,.26) !important;}
body.masterpalm-store-dark #nlOverlay .form-control::placeholder,
body.masterpalm-store-dark .nl-modal .form-control::placeholder{color:#96a1aa !important;}
body.masterpalm-store-dark #nlOverlay .btn-outline-secondary,
body.masterpalm-store-dark .nl-modal .btn-outline-secondary{background:#111920 !important;color:#fff !important;border-color:rgba(255,255,255,.25) !important;}
body.masterpalm-store-dark #nlOverlay .btn-link,
body.masterpalm-store-dark .nl-modal .btn-link{color:#ff555c !important;}
body.masterpalm-store-dark #nlOverlay .nl-msg,
body.masterpalm-store-dark .nl-modal .nl-msg{color:#f4f6f8 !important;}

/* Final storefront utility/card guards, scoped below main content only. */
body.masterpalm-store-dark #site-main :where(.mp-white-card,.mp-light-card,.mp-light-panel,.mp-card-white,.mp-page-card-white,.mp-section-white,.mp-section-light,.masterpalm-white-card,.masterpalm-light-card,.card,.list-group-item,.accordion-item,.accordion-button,.bg-white,.bg-light,.text-bg-light,.table,.table-responsive):not(.mpb2b-product-media):not(.mpb2b-gallery-main):not(.mpb2b-thumb):not(.mp-card-media):not(.mp-product-list-media):not(img):not(svg){
  background:linear-gradient(180deg,var(--mp431-panel-2),#090d11) !important;
  color:var(--mp431-text) !important;
  border-color:var(--mp431-line) !important;
}
body.masterpalm-store-dark #site-main :where(.mp-white-card,.mp-light-card,.mp-light-panel,.mp-card-white,.mp-page-card-white,.mp-section-white,.mp-section-light,.masterpalm-white-card,.masterpalm-light-card,.card,.list-group-item,.accordion-item,.accordion-button,.bg-white,.bg-light,.text-bg-light,.table,.table-responsive):not(.mpb2b-product-media):not(.mpb2b-gallery-main):not(.mpb2b-thumb):not(.mp-card-media):not(.mp-product-list-media):not(img):not(svg) :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend,th){color:#fff !important;}
body.masterpalm-store-dark #site-main :where(.mp-white-card,.mp-light-card,.mp-light-panel,.mp-card-white,.mp-page-card-white,.mp-section-white,.mp-section-light,.masterpalm-white-card,.masterpalm-light-card,.card,.list-group-item,.accordion-item,.accordion-button,.bg-white,.bg-light,.text-bg-light,.table,.table-responsive):not(.mpb2b-product-media):not(.mpb2b-gallery-main):not(.mpb2b-thumb):not(.mp-card-media):not(.mp-product-list-media):not(img):not(svg) :where(p,small,span,li,dd,dt,td,.text-muted,.form-text){color:var(--mp431-muted) !important;}
body.masterpalm-store-dark #site-main :where(.text-dark,.text-black,.text-body){color:var(--mp431-text) !important;}
body.masterpalm-store-dark #site-main :where(.text-muted,.text-secondary){color:var(--mp431-muted) !important;}
body.masterpalm-store-dark #site-main :where(input,select,textarea,.form-control,.form-select):not([type="checkbox"]):not([type="radio"]){background-color:#0c1217 !important;color:#fff !important;border-color:rgba(255,255,255,.24) !important;}
body.masterpalm-store-dark #site-main :where(input,select,textarea,.form-control,.form-select):not([type="checkbox"]):not([type="radio"])::placeholder{color:#95a0aa !important;}

/* Preserve deliberately light payment, QR, and image/logo panels. */
body.masterpalm-store-dark #site-main :where(.zelle-panel,.mp-zelle-panel,.mp-payment-qr,.mpb2b-footer-payment-icons,.mpb2b-footer-payment-icon,.qr-code,.payment-logo,img,svg){color:initial;}
