
/* ==========================================================
   SALAH STORE — UI HARD FIX v1.1.0
   Keep selectors deliberately specific.
   ========================================================== */

:root{
  --ss-bg:#05070A;
  --ss-panel:#080C11;
  --ss-card:#0B1117;
  --ss-border:#2A3E4D;
  --ss-text:#F7F9FB;
  --ss-muted:#96A3AD;
  --ss-cyan:#22D3FF;
  --ss-cyan2:#00B7FF;
}

/* ==========================================================
   1) CART PAGE — PRODUCT NAME + TOTALS
   ========================================================== */

html body.woocommerce-cart .woocommerce-cart-form .product-name,
html body.woocommerce-cart .woocommerce-cart-form .product-name *,
html body.woocommerce-cart .woocommerce-cart-form .wd-entities-title,
html body.woocommerce-cart .woocommerce-cart-form .wd-entities-title *,
html body.woocommerce-cart table.cart .product-name,
html body.woocommerce-cart table.cart .product-name *,
html body.woocommerce-cart .cart_totals h2,
html body.woocommerce-cart .cart_totals h3,
html body.woocommerce-cart .cart_totals th,
html body.woocommerce-cart .cart_totals td,
html body.woocommerce-cart .cart_totals strong,
html body.woocommerce-cart .cart_totals b{
  color:var(--ss-text)!important;
  -webkit-text-fill-color:var(--ss-text)!important;
  opacity:1!important;
  visibility:visible!important;
  text-shadow:none!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

html body.woocommerce-cart .woocommerce-cart-form .product-name a,
html body.woocommerce-cart table.cart .product-name a{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-weight:800!important;
}

html body.woocommerce-cart :is(.product-price,.product-subtotal,.cart-subtotal,.order-total) .amount,
html body.woocommerce-cart :is(.product-price,.product-subtotal,.cart-subtotal,.order-total) .woocommerce-Price-amount,
html body.woocommerce-cart :is(.product-price,.product-subtotal,.cart-subtotal,.order-total) .woocommerce-Price-currencySymbol{
  color:var(--ss-cyan)!important;
  -webkit-text-fill-color:var(--ss-cyan)!important;
  font-weight:900!important;
}

html body.woocommerce-cart .cart_totals{
  color-scheme:dark!important;
}

/* Mini cart too */
html body .cart-widget-side :is(.wd-entities-title,.wd-entities-title a,.product-title,.product-title a,.cart-info>a:not(.remove)),
html body .wd-dropdown-cart :is(.wd-entities-title,.wd-entities-title a,.product-title,.product-title a,.cart-info>a:not(.remove)){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  font-weight:800!important;
  text-shadow:none!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}

/* ==========================================================
   2) PRODUCT VARIATIONS — HIDE NATIVE CONTROL ONLY
   ========================================================== */

html body.single-product .variations select[data-ssx-enhanced="1"]{
  position:absolute!important;
  inline-size:1px!important;
  block-size:1px!important;
  min-inline-size:1px!important;
  min-block-size:1px!important;
  opacity:0!important;
  pointer-events:none!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  overflow:hidden!important;
}

/* Hide Select2 generated for the same variation row if theme/plugin created it */
html body.single-product .variations td.value.ssx-enhanced-value > .select2-container{
  display:none!important;
}

/* Remove old v1.0 dropdown if still in DOM */
html body.single-product .ss-var-dd{
  display:none!important;
}

/* Trigger button */
html body.single-product .ssx-var-trigger{
  width:100%!important;
  min-height:52px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:0 15px!important;
  border:1.5px solid #2A3E4D!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,#0D151C,#0A1117)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font:800 14px/1.4 "Alexandria","Manrope",Arial,sans-serif!important;
  text-align:right!important;
  cursor:pointer!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}

html body.single-product .ssx-var-trigger:hover,
html body.single-product .ssx-var-trigger:focus-visible{
  border-color:var(--ss-cyan2)!important;
  box-shadow:0 0 0 3px rgba(0,183,255,.12)!important;
  outline:none!important;
}

html body.single-product .ssx-var-trigger__arrow{
  width:8px!important;
  height:8px!important;
  border-left:2px solid var(--ss-cyan)!important;
  border-bottom:2px solid var(--ss-cyan)!important;
  transform:rotate(-45deg)!important;
  flex:0 0 auto!important;
}

/* ==========================================================
   3) PORTAL / MODAL — COMPLETELY OWNED BY THIS PLUGIN
   Avoids Android native white select popup.
   ========================================================== */

#ssx-variation-portal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  display:none!important;
  align-items:flex-end!important;
  justify-content:center!important;
  padding:0!important;
  background:rgba(0,0,0,.68)!important;
  backdrop-filter:blur(5px)!important;
  -webkit-backdrop-filter:blur(5px)!important;
  direction:rtl!important;
  color-scheme:dark!important;
}

#ssx-variation-portal.is-open{
  display:flex!important;
}

#ssx-variation-portal,
#ssx-variation-portal *{
  box-sizing:border-box!important;
}

#ssx-variation-sheet{
  width:100%!important;
  max-height:min(76vh,620px)!important;
  overflow:hidden!important;
  border:1px solid #263744!important;
  border-radius:22px 22px 0 0!important;
  background:#080C11!important;
  color:#F7F9FB!important;
  box-shadow:0 -28px 80px rgba(0,0,0,.55)!important;
  font-family:"Alexandria","Manrope",Arial,sans-serif!important;
  transform:translateY(0)!important;
}

.ssx-sheet__head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:15px 16px!important;
  border-bottom:1px solid rgba(255,255,255,.075)!important;
  background:#0B1117!important;
}

.ssx-sheet__title{
  margin:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:15px!important;
  line-height:1.45!important;
  font-weight:900!important;
}

.ssx-sheet__close{
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #263744!important;
  border-radius:10px!important;
  background:#080C11!important;
  color:#DCE8ED!important;
  -webkit-text-fill-color:#DCE8ED!important;
  font-size:22px!important;
  cursor:pointer!important;
}

#ssx-variation-options{
  max-height:calc(min(76vh,620px) - 70px)!important;
  overflow:auto!important;
  padding:8px!important;
  background:#080C11!important;
  scrollbar-color:#00B7FF #080C11!important;
}

#ssx-variation-options .ssx-option{
  width:100%!important;
  min-height:52px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 7px!important;
  padding:12px 14px!important;
  border:1px solid #1C2730!important;
  border-radius:11px!important;
  background:#0B1117!important;
  color:#F7F9FB!important;
  -webkit-text-fill-color:#F7F9FB!important;
  font:700 14px/1.5 "Alexandria","Manrope",Arial,sans-serif!important;
  text-align:right!important;
  cursor:pointer!important;
  opacity:1!important;
}

#ssx-variation-options .ssx-option:hover,
#ssx-variation-options .ssx-option:focus-visible{
  border-color:#00B7FF!important;
  background:#102631!important;
  color:#22D3FF!important;
  -webkit-text-fill-color:#22D3FF!important;
  outline:none!important;
}

#ssx-variation-options .ssx-option.is-selected{
  border-color:rgba(34,211,255,.55)!important;
  background:#0E202A!important;
  color:#22D3FF!important;
  -webkit-text-fill-color:#22D3FF!important;
}

#ssx-variation-options .ssx-option[disabled]{
  opacity:.42!important;
  cursor:not-allowed!important;
}

.ssx-option__check{
  width:22px!important;
  height:22px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #355061!important;
  border-radius:50%!important;
  color:#22D3FF!important;
  -webkit-text-fill-color:#22D3FF!important;
  flex:0 0 auto!important;
}

/* Desktop modal */
@media(min-width:768px){
  #ssx-variation-portal{
    align-items:center!important;
    padding:24px!important;
  }
  #ssx-variation-sheet{
    width:min(460px,92vw)!important;
    border-radius:18px!important;
  }
}

/* Mobile */
@media(max-width:767px){
  html body.woocommerce-cart .woocommerce-cart-form .product-name a{
    font-size:14px!important;
    line-height:1.6!important;
  }
}
