/* FaraMizban standard_cart v21 — premium plans + instant delivery */

:root, [data-theme="dark"] {
  --fm-bg:#050814; --fm-card:#0a1220; --fm-card2:#121c30;
  --fm-primary:#3b82f6; --fm-primary2:#1d4ed8; --fm-accent:#f59e0b;
  --fm-text:#f8fafc; --fm-text2:#94a3b8; --fm-muted:#64748b;
  --fm-border:rgba(148,163,184,.16); --fm-glow:rgba(59,130,246,.4);
}
[data-theme="light"] {
  --fm-bg:#f1f5f9; --fm-card:#fff; --fm-card2:#f1f5f9;
  --fm-primary:#2563eb; --fm-primary2:#1e40af; --fm-accent:#d97706;
  --fm-text:#0f172a; --fm-text2:#475569; --fm-muted:#64748b;
  --fm-border:rgba(15,23,42,.1); --fm-glow:rgba(37,99,235,.28);
}
[data-theme="ocean"] {
  --fm-bg:#011627; --fm-card:#021f35; --fm-card2:#05324f;
  --fm-primary:#06b6d4; --fm-primary2:#0891b2; --fm-accent:#f59e0b;
  --fm-text:#ecfeff; --fm-text2:#67e8f9; --fm-muted:#22d3ee;
  --fm-border:rgba(6,182,212,.2); --fm-glow:rgba(6,182,212,.4);
}
[data-theme="galaxy"] {
  --fm-bg:#0c0218; --fm-card:#160628; --fm-card2:#240a40;
  --fm-primary:#a855f7; --fm-primary2:#7c3aed; --fm-accent:#fbbf24;
  --fm-text:#faf5ff; --fm-text2:#d8b4fe; --fm-muted:#c084fc;
  --fm-border:rgba(168,85,247,.2); --fm-glow:rgba(168,85,247,.4);
}
[data-theme="forest"] {
  --fm-bg:#02140e; --fm-card:#05261c; --fm-card2:#083d2c;
  --fm-primary:#10b981; --fm-primary2:#059669; --fm-accent:#fbbf24;
  --fm-text:#ecfdf5; --fm-text2:#6ee7b7; --fm-muted:#34d399;
  --fm-border:rgba(16,185,129,.2); --fm-glow:rgba(16,185,129,.4);
}
[data-theme="amber"] {
  --fm-bg:#120a02; --fm-card:#1c1205; --fm-card2:#2a1a08;
  --fm-primary:#f59e0b; --fm-primary2:#d97706; --fm-accent:#38bdf8;
  --fm-text:#fffbeb; --fm-text2:#fcd34d; --fm-muted:#fbbf24;
  --fm-border:rgba(245,158,11,.2); --fm-glow:rgba(245,158,11,.4);
}

@keyframes fm-shine { 0%{background-position:-200% center} 100%{background-position:200% center} }
@keyframes fm-fade-up { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes fm-badge-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(59,130,246,.45)} 50%{box-shadow:0 0 0 8px rgba(59,130,246,0)} }

#order-standard_cart {
  background:var(--fm-bg)!important; color:var(--fm-text)!important;
  font-family:'Vazirmatn',Tahoma,sans-serif!important;
}
#order-standard_cart .fm-section-head h1 { color:var(--fm-text)!important; font-weight:900!important; }
#order-standard_cart .fm-tagline { color:var(--fm-text2)!important; }

/* GRID */
#order-standard_cart .products,
#order-standard_cart .fm-plans {
  display:grid!important; grid-template-columns:repeat(2,1fr)!important;
  gap:18px!important; margin:18px 0 8px!important; padding:0!important;
}
#order-standard_cart .products .row,
#order-standard_cart .products .row-eq-height {
  display:contents!important;
}
#order-standard_cart .products .col-md-6 {
  width:100%!important; max-width:100%!important; padding:0!important; margin:0!important; float:none!important;
}

/* CARD */
#order-standard_cart .products .product {
  background:var(--fm-card)!important; border:1px solid var(--fm-border)!important;
  border-radius:18px!important; color:var(--fm-text)!important;
  margin:0!important; padding:0 0 4px!important; overflow:hidden!important;
  position:relative!important; display:flex!important; flex-direction:column!important;
  height:100%!important;
  animation:fm-fade-up .45s ease both!important;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s!important;
  box-shadow:0 6px 24px rgba(0,0,0,.2)!important;
}
#order-standard_cart .products .col-md-6:nth-child(1) .product{animation-delay:.04s!important}
#order-standard_cart .products .col-md-6:nth-child(2) .product{animation-delay:.1s!important}
#order-standard_cart .products .col-md-6:nth-child(3) .product{animation-delay:.16s!important}
#order-standard_cart .products .col-md-6:nth-child(4) .product{animation-delay:.22s!important}

#order-standard_cart .products .product:hover {
  transform:translateY(-6px)!important;
  border-color:var(--fm-primary)!important;
  box-shadow:0 16px 40px var(--fm-glow)!important;
}

/* POPULAR */
#order-standard_cart .products .product.fm-popular {
  border-color:var(--fm-primary)!important;
  box-shadow:0 8px 28px var(--fm-glow)!important;
}
#order-standard_cart .fm-badge-popular {
  position:absolute!important; top:12px; left:12px; z-index:3!important;
  background:linear-gradient(135deg,var(--fm-primary),var(--fm-primary2))!important;
  color:#fff!important; font-size:11px!important; font-weight:800!important;
  padding:5px 12px!important; border-radius:20px!important;
  animation:fm-badge-pulse 2.2s ease infinite!important;
}

/* NAME BOX */
#order-standard_cart .products .product header,
#order-standard_cart .products .product .fm-plan-namebox {
  position:relative!important; z-index:1!important;
  background:linear-gradient(145deg,var(--fm-card2),var(--fm-card))!important;
  margin:14px 14px 0!important; padding:14px 16px!important;
  border-radius:12px!important; border:1px solid var(--fm-border)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.12)!important; overflow:hidden!important;
}
#order-standard_cart .products .product header::before {
  content:''!important; position:absolute!important; top:0; right:0; left:0; height:2px!important;
  background:linear-gradient(90deg,var(--fm-primary),var(--fm-accent),var(--fm-primary))!important;
  background-size:200% 100%!important; animation:fm-shine 3s linear infinite!important;
}
#order-standard_cart .products .product header span {
  color:var(--fm-text)!important; font-weight:900!important; font-size:15px!important;
  line-height:1.45!important; display:block!important;
}
#order-standard_cart .products .product header .qty {
  display:inline-block!important; margin-top:6px!important; padding:2px 10px!important;
  border-radius:20px!important; background:rgba(59,130,246,.14)!important;
  color:var(--fm-primary)!important; font-size:11px!important; font-weight:700!important; font-style:normal!important;
}

/* BODY / FEATURES */
#order-standard_cart .products .product .product-desc,
#order-standard_cart .products .product .fm-plan-body {
  float:none!important; width:100%!important; padding:12px 18px 4px!important;
  color:var(--fm-text2)!important; font-size:12.5px!important; flex:1 1 auto!important;
}
#order-standard_cart .fm-plan-sub {
  color:var(--fm-text2)!important; margin:0 0 10px!important; line-height:1.7!important; font-size:12.5px!important;
}
#order-standard_cart .fm-features {
  list-style:none!important; margin:0!important; padding:0!important;
}
#order-standard_cart .fm-features li {
  display:flex!important; align-items:flex-start!important; gap:10px!important;
  padding:6px 0!important; border-bottom:1px solid var(--fm-border)!important;
  color:var(--fm-text2)!important;
}
#order-standard_cart .fm-features li:last-child { border-bottom:none!important; }
#order-standard_cart .fm-feat-icon {
  flex:0 0 22px!important; height:22px!important; border-radius:50%!important;
  background:rgba(59,130,246,.15)!important; color:var(--fm-primary)!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  font-size:10px!important; margin-top:1px!important;
}
#order-standard_cart .fm-feat-text { flex:1!important; line-height:1.5!important; }
#order-standard_cart .feature-value { color:var(--fm-text)!important; font-weight:700!important; }
#order-standard_cart .fm-feat-label { color:var(--fm-muted)!important; font-size:11.5px!important; }

/* PRICE */
#order-standard_cart .products .product .product-pricing,
#order-standard_cart .fm-plan-price {
  margin:8px 18px 0!important; padding:12px 0 4px!important;
  border-top:1px solid var(--fm-border)!important;
  display:flex!important; flex-wrap:wrap!important; align-items:baseline!important; gap:6px 10px!important;
}
#order-standard_cart .products .product .product-pricing .price,
#order-standard_cart .fm-plan-price .price {
  font-weight:900!important; font-size:22px!important; letter-spacing:-.03em!important;
  background:linear-gradient(135deg,var(--fm-primary),var(--fm-accent))!important;
  -webkit-background-clip:text!important; -webkit-text-fill-color:transparent!important; background-clip:text!important;
}
#order-standard_cart .fm-cycle { color:var(--fm-muted)!important; font-size:12px!important; font-weight:600!important; }
#order-standard_cart .fm-setup { width:100%!important; color:var(--fm-muted)!important; font-size:11px!important; }

/* FOOTER + INSTANT */
#order-standard_cart .products .product footer,
#order-standard_cart .fm-plan-footer {
  float:none!important; width:100%!important; margin:0!important;
  padding:12px 14px 10px!important; text-align:center!important;
}
#order-standard_cart .products .product footer .btn,
#order-standard_cart .products .product a.btn-order-now {
  display:flex!important; align-items:center!important; justify-content:center!important;
  gap:8px!important; width:100%!important; padding:11px 16px!important;
  border-radius:11px!important;
  background:linear-gradient(135deg,var(--fm-primary),var(--fm-primary2))!important;
  border:none!important; color:#fff!important; font-weight:800!important; font-size:13px!important;
  box-shadow:0 6px 18px var(--fm-glow)!important; position:relative!important; overflow:hidden!important;
  transition:transform .2s,box-shadow .2s,filter .2s!important; text-decoration:none!important;
}
#order-standard_cart .products .product footer .btn::after,
#order-standard_cart .products .product a.btn-order-now::after {
  content:''!important; position:absolute!important; top:0; left:-100%; width:55%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent)!important;
  transition:left .45s ease!important;
}
#order-standard_cart .products .product:hover footer .btn::after,
#order-standard_cart .products .product:hover a.btn-order-now::after { left:120%!important; }
#order-standard_cart .products .product footer .btn:hover,
#order-standard_cart .products .product a.btn-order-now:hover {
  filter:brightness(1.1)!important; transform:translateY(-2px)!important;
  box-shadow:0 10px 24px var(--fm-glow)!important; color:#fff!important;
}

#order-standard_cart .fm-instant {
  margin-top:10px!important; display:inline-flex!important; align-items:center!important; gap:6px!important;
  color:var(--fm-accent)!important; font-size:12px!important; font-weight:700!important;
}
#order-standard_cart .fm-instant i { font-size:11px!important; }

/* TRUST BAR under all plans */
#order-standard_cart .fm-trust-bar {
  display:grid!important; grid-template-columns:repeat(4,1fr)!important;
  gap:10px!important; margin:20px 0 10px!important; padding:14px!important;
  background:var(--fm-card)!important; border:1px solid var(--fm-border)!important;
  border-radius:14px!important;
}
#order-standard_cart .fm-trust-item {
  display:flex!important; align-items:center!important; justify-content:center!important; gap:8px!important;
  padding:10px 8px!important; border-radius:10px!important;
  background:var(--fm-card2)!important; color:var(--fm-text)!important;
  font-size:12.5px!important; font-weight:700!important;
}
#order-standard_cart .fm-trust-item i { color:var(--fm-primary)!important; font-size:14px!important; }

/* CART keep */
#order-standard_cart .view-cart-items-header {
  background:linear-gradient(135deg,var(--fm-primary),var(--fm-primary2))!important;
  color:#fff!important; border-radius:12px 12px 0 0!important; font-weight:800!important;
}
#order-standard_cart .view-cart-items {
  border-bottom:2px solid var(--fm-primary)!important; background:var(--fm-card)!important;
  border-radius:0 0 12px 12px!important; overflow:hidden!important;
}
#order-standard_cart .view-cart-items .item {
  background-color:var(--fm-card)!important; color:var(--fm-text)!important; padding:12px 14px!important;
}
#order-standard_cart .view-cart-items .item:nth-child(even){background-color:var(--fm-card2)!important}
#order-standard_cart .view-cart-items .item span:not(.caret):not(.renewal-price){color:var(--fm-text)!important}
#order-standard_cart .view-cart-items .item-title{color:var(--fm-text)!important;font-weight:800!important}
#order-standard_cart .view-cart-items .item-price,
#order-standard_cart .view-cart-items .item-price span{color:var(--fm-primary)!important;font-weight:800!important}
#order-standard_cart .order-summary {
  background:var(--fm-card)!important; border-bottom:3px solid var(--fm-primary)!important;
  border-radius:14px!important; overflow:hidden!important;
}
#order-standard_cart .order-summary h2{background:var(--fm-card2)!important;color:var(--fm-text)!important;font-weight:800!important}
#order-standard_cart .summary-container{background:var(--fm-card)!important;color:var(--fm-text)!important}
#order-standard_cart .summary-container *{color:var(--fm-text)!important}
#order-standard_cart .order-summary .total-due-today .amt{color:var(--fm-primary)!important;font-weight:900!important}
#order-standard_cart .view-cart-tabs .tab-content{background:var(--fm-card)!important;color:var(--fm-text)!important}
#order-standard_cart .view-cart-promotion-code{
  background:var(--fm-card2)!important;border:1.5px dashed var(--fm-border)!important;color:var(--fm-text)!important;border-radius:10px!important
}
#order-standard_cart .form-control,#order-standard_cart input[type=text],#order-standard_cart input[type=number],#order-standard_cart select{
  background:var(--fm-bg)!important;color:var(--fm-text)!important;border:1.5px solid var(--fm-border)!important;border-radius:10px!important
}
#order-standard_cart .btn-primary{
  background:linear-gradient(135deg,var(--fm-primary),var(--fm-primary2))!important;border:none!important;color:#fff!important;border-radius:10px!important;font-weight:800!important
}

/* RESPONSIVE */
@media (max-width:991px){
  #order-standard_cart .fm-trust-bar{grid-template-columns:repeat(2,1fr)!important}
  #order-standard_cart .products{gap:14px!important}
}
@media (max-width:575px){
  #order-standard_cart .products{grid-template-columns:1fr!important}
  #order-standard_cart .fm-trust-bar{grid-template-columns:1fr 1fr!important;gap:8px!important;padding:10px!important}
  #order-standard_cart .products .product header{margin:12px 12px 0!important;padding:12px 14px!important}
  #order-standard_cart .fm-plan-price .price{font-size:20px!important}
}

/* ================================================================
   v22 — Light theme readability + dropdown fix + price order
   ================================================================ */

/* Force flex order so price stays ABOVE button */
#order-standard_cart .products .product {
  display: flex !important;
  flex-direction: column !important;
}
#order-standard_cart .products .product header,
#order-standard_cart .products .product .fm-plan-namebox { order: 1 !important; }
#order-standard_cart .products .product .product-desc,
#order-standard_cart .products .product .fm-plan-body { order: 2 !important; }
#order-standard_cart .products .product .product-pricing,
#order-standard_cart .products .product .fm-plan-price { order: 3 !important; }
#order-standard_cart .products .product footer,
#order-standard_cart .products .product .fm-plan-footer { order: 4 !important; }

/* ---- LIGHT THEME: name box must NOT be pure white with white text ---- */
[data-theme="light"] #order-standard_cart .products .product {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .products .product header,
[data-theme="light"] #order-standard_cart .products .product .fm-plan-namebox {
  background: #eef2ff !important;
  border: 1px solid rgba(37,99,235,.2) !important;
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .products .product header span,
[data-theme="light"] #order-standard_cart .products .product .fm-plan-namebox span {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .products .product .product-desc,
[data-theme="light"] #order-standard_cart .products .product .product-desc *,
[data-theme="light"] #order-standard_cart .fm-plan-sub,
[data-theme="light"] #order-standard_cart .fm-features li,
[data-theme="light"] #order-standard_cart .feature-value {
  color: #334155 !important;
}
[data-theme="light"] #order-standard_cart .feature-value {
  color: #0f172a !important;
  font-weight: 700 !important;
}
[data-theme="light"] #order-standard_cart .fm-feat-icon {
  background: rgba(37,99,235,.12) !important;
  color: #2563eb !important;
}
[data-theme="light"] #order-standard_cart .products .product .product-pricing .price,
[data-theme="light"] #order-standard_cart .fm-plan-price .price {
  background: none !important;
  -webkit-text-fill-color: #2563eb !important;
  color: #2563eb !important;
}
[data-theme="light"] #order-standard_cart .fm-cycle,
[data-theme="light"] #order-standard_cart .fm-instant {
  color: #64748b !important;
}
[data-theme="light"] #order-standard_cart .fm-instant {
  color: #d97706 !important;
}
[data-theme="light"] #order-standard_cart .fm-trust-bar {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.1) !important;
}
[data-theme="light"] #order-standard_cart .fm-trust-item {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .fm-badge-popular {
  background: linear-gradient(135deg, #2563eb, #1e40af) !important;
  color: #fff !important;
}

/* Page background light */
[data-theme="light"] #order-standard_cart {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .fm-section-head h1 {
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .fm-tagline {
  color: #64748b !important;
}

/* Cart light theme polish */
[data-theme="light"] #order-standard_cart .view-cart-items .item {
  background: #ffffff !important;
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .view-cart-items .item:nth-child(even) {
  background: #f8fafc !important;
}
[data-theme="light"] #order-standard_cart .view-cart-items .item span:not(.caret) {
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .summary-container,
[data-theme="light"] #order-standard_cart .order-summary {
  background: #ffffff !important;
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .summary-container * {
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .order-summary h2 {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* ================================================================
   v23 — FORCE plan name visibility (beats all.css)
   ================================================================ */

/* Dark / default: dark name box + white text */
#order-standard_cart .products .product header,
#order-standard_cart .products .product header.fm-plan-namebox,
#order-standard_cart .products .product .fm-plan-namebox {
  background: #1e293b !important;
  background-color: #1e293b !important;
  background-image: none !important;
  border: 1px solid rgba(148,163,184,.25) !important;
  color: #ffffff !important;
}
#order-standard_cart .products .product header span,
#order-standard_cart .products .product header span#product1-name,
#order-standard_cart .products .product header span[id$="-name"],
#order-standard_cart .products .product header * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-weight: 900 !important;
  font-size: 15px !important;
}

/* Light theme: soft blue box + dark text */
[data-theme="light"] #order-standard_cart .products .product header,
[data-theme="light"] #order-standard_cart .products .product header.fm-plan-namebox,
[data-theme="light"] #order-standard_cart .products .product .fm-plan-namebox {
  background: #dbeafe !important;
  background-color: #dbeafe !important;
  background-image: none !important;
  border: 1px solid rgba(37,99,235,.35) !important;
  color: #0f172a !important;
}
[data-theme="light"] #order-standard_cart .products .product header span,
[data-theme="light"] #order-standard_cart .products .product header span[id$="-name"],
[data-theme="light"] #order-standard_cart .products .product header * {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-weight: 900 !important;
}

/* Also force when html has no data-theme but body is light */
body.primary-bg-color #order-standard_cart .products .product header span {
  opacity: 1 !important;
  visibility: visible !important;
}
