/* =========================================================
   JetStoreKSA – GLOBAL CLEAN + MOTION THEME (v2)
   هدف النسخة: شكل عالمي/سلس + أنيميشن محترم + تنظيف تعارضات
   ========================================================= */

/* ---------- 1) Variables ---------- */
:root{
  --brand: #38bdf8;
  --brand2:#2563eb;

  --bg0:#070b14;
  --bg1:#0b1224;
  --bg2:#0e1a36;

  --card:#0b1632cc;
  --card2:#0a132bcc;

  --text:#eaf2ff;
  --muted:#b8c6e6;

  --line: rgba(120,150,210,.22);
  --line2: rgba(120,150,210,.12);

  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --shadow2: 0 10px 28px rgba(0,0,0,.28);

  --r: 16px;
  --r2: 22px;

  --t: 220ms;
  --t2: 380ms;

  --glass: rgba(11,18,36,.55);
  --glass2: rgba(11,18,36,.38);
}

/* ---------- 2) Base / Page ---------- */
html,body{ background: var(--bg0) !important; }
body{
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* خلفية “عالمية” ناعمة */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 70% 10%, rgba(56,189,248,.18), transparent 55%),
    radial-gradient(820px 520px at 20% 30%, rgba(37,99,235,.12), transparent 58%),
    linear-gradient(145deg, var(--bg0), var(--bg1) 40%, var(--bg0));
}

/* تقليل الحركات للي يفضلون ذلك */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* ---------- 3) Global links / focus ---------- */
a{ color: var(--text); }
a:hover{ color: var(--brand); }
:focus-visible{
  outline: 2px solid rgba(56,189,248,.7);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------- 4) Header / Navbar ---------- */
.store-header, header.store-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(145deg, rgba(7,11,20,.75), rgba(11,18,36,.55)) !important;
  border-bottom: 1px solid var(--line2) !important;
  backdrop-filter: blur(10px);
}

.main-nav-container{
  background: transparent !important;
  box-shadow: none !important;
}

/* شعار المتجر */
.navbar-brand img{
  max-height: 44px !important;
  width: auto !important;
  transition: transform var(--t) ease, filter var(--t) ease;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.navbar-brand:hover img{ transform: translateY(-1px) scale(1.02); }

/* ---------- 5) Search bar ---------- */
input[type="search"], .s-search input, .search-input{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: 999px !important;
  transition: box-shadow var(--t) ease, border-color var(--t) ease, transform var(--t) ease;
}
input[type="search"]::placeholder{ color: rgba(234,242,255,.55) !important; }
input[type="search"]:focus{
  border-color: rgba(56,189,248,.55) !important;
  box-shadow: 0 0 0 4px rgba(56,189,248,.15);
}

/* ---------- 6) Buttons (Global) ---------- */
button, .btn, a.btn, .s-button, .s-add-product-button, .s-cart-summary a,
.s-product-card-add-to-cart, salla-add-product-button button{
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(37,99,235,.18) !important;
  transition: transform var(--t) ease, box-shadow var(--t) ease, filter var(--t) ease;
}

button:hover, .btn:hover, .s-button:hover, .s-product-card-add-to-cart:hover,
salla-add-product-button button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(37,99,235,.25) !important;
}

button:active, .btn:active{ transform: translateY(0px) scale(.99); }

/* زر ثانوي */
.btn-outline, .btn-secondary, .s-button--outline{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.btn-outline:hover, .btn-secondary:hover{
  border-color: rgba(56,189,248,.45) !important;
  box-shadow: 0 0 0 4px rgba(56,189,248,.12) !important;
}

/* ---------- 7) Product cards ---------- */
.s-product-card, custom-salla-product-card,
.s-product-card-entry, .s-product-card-vertical, .s-product-card-fit-height{
  background: linear-gradient(145deg, var(--card), var(--card2)) !important;
  border: 1px solid var(--line2) !important;
  border-radius: var(--r2) !important;
  box-shadow: var(--shadow2) !important;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform var(--t) ease, box-shadow var(--t) ease, border-color var(--t) ease;
}
.s-product-card:hover, custom-salla-product-card:hover{
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.28) !important;
  box-shadow: var(--shadow) !important;
}

/* صورة المنتج: حل “البياض” بدون ما نخرب الشعار */
.s-product-card-image, .s-product-card-image-cover, .product-card-image,
.s-product-card-image img, .s-product-card-image-cover img{
  background: radial-gradient(120% 90% at 50% 10%, rgba(255,255,255,.10), rgba(255,255,255,.02) 55%, transparent 70%),
              linear-gradient(145deg, rgba(11,18,36,.65), rgba(7,11,20,.35)) !important;
}
.s-product-card-image img, .s-product-card-image-cover img{
  mix-blend-mode: normal; /* لا نخليها تتكسر */
  display: block;
}

/* نصوص الكارد */
.s-product-card-content, .s-product-card-entry{
  color: var(--text) !important;
}
.s-product-card-title, .s-product-card-content h3, .s-product-card-content a{
  color: var(--text) !important;
}
.s-product-card-subtitle, .s-product-card-content p{
  color: rgba(234,242,255,.72) !important;
}

/* تقييم/سعر */
.s-product-card-price, .s-product-card-sale-price{
  color: #fff !important;
}

/* ---------- 8) Sections / blocks ---------- */
.container, .content, main{
  color: var(--text);
}
.s-slider-block, .s-block, .s-home-section{
  background: transparent !important;
}

/* ---------- 9) Comments / reviews blocks ---------- */
salla-comments, .s-comments, .s-comments-page, .s-comments-product{
  background: linear-gradient(145deg, rgba(11,18,36,.55), rgba(7,11,20,.35)) !important;
  border: 1px solid var(--line2) !important;
  border-radius: var(--r2) !important;
  box-shadow: var(--shadow2) !important;
  color: var(--text) !important;
}

/* ---------- 10) Quantity input (صفحة المنتج) ---------- */
.s-quantity-input-container, .quantity-input-container,
salla-quantity-input .s-quantity-input-container{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  overflow: hidden;
}
.s-quantity-input-container button,
.quantity-input-container button{
  background: rgba(255,255,255,.08) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.s-quantity-input-container input{
  background: transparent !important;
  color: var(--text) !important;
}

/* ---------- 11) User menu trigger (أيقونة الحساب) ---------- */
.s-user-menu-trigger, .s-user-menu-trigger-slot, .s-user-menu-trigger-avatar-only,
.s-user-menu-wrapper .s-user-menu-trigger{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  transition: transform var(--t) ease, border-color var(--t) ease;
}
.s-user-menu-trigger:hover{
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.35) !important;
}

/* قائمة الحساب المنبثقة */
.s-user-menu, salla-user-menu{
  z-index: 10050 !important;
}
.s-user-menu-wrapper .s-user-menu-toggle,
.s-user-menu-wrapper .s-user-menu-dropdown,
.s-user-menu .s-user-menu-dropdown{
  background: linear-gradient(145deg, rgba(11,18,36,.95), rgba(7,11,20,.92)) !important;
  border: 1px solid var(--line2) !important;
  border-radius: var(--r2) !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
}
.s-user-menu a{
  color: var(--text) !important;
}
.s-user-menu a:hover{
  background: rgba(56,189,248,.10) !important;
}

/* ---------- 12) Mobile Hamburger: ONLY mobile ---------- */
/* زر الهمبرجر يظهر على الجوال فقط */
a.burger, a.hamburger, .burger, .hamburger,
a[href="#mobile-menu"]{
  display: none !important;
}

@media (max-width: 1023px){
  a[href="#mobile-menu"]{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid var(--line) !important;
  }
}

/* ---------- 13) Mobile Menu (mm-spn) تحسين شامل ---------- */
.mm-ocd{
  z-index: 100000 !important;
}
.mm-ocd_backdrop{
  background: rgba(0,0,0,.55) !important;
  backdrop-filter: blur(2px);
}

/* اللوحة نفسها */
#mobile-menu, nav#mobile-menu,
.mobile-menu.mm-spn, .mm-spn.mm-spn--navbar, .mm-spn{
  background: linear-gradient(145deg, rgba(11,18,36,.96), rgba(7,11,20,.94)) !important;
  color: var(--text) !important;
  border-left: 1px solid var(--line2) !important;
  box-shadow: var(--shadow) !important;
}

/* عرض اللوحة مناسب */
@media (max-width: 1023px){
  .mm-ocd_content{
    width: min(86vw, 360px) !important;
  }
}

/* عناصر القائمة */
#mobile-menu a, #mobile-menu button,
.mm-spn a, .mm-spn li, .mm-spn span{
  color: var(--text) !important;
}

/* ارتفاع ومساحة ضغط مريحة */
.mm-spn li > a, .mm-spn li > span{
  padding: 18px 18px !important;
  font-size: 18px !important;
  border-bottom: 1px solid rgba(120,150,210,.12) !important;
}

/* تفعيل hover/active */
.mm-spn li > a:hover{
  background: rgba(56,189,248,.10) !important;
}
.mm-spn li.selected > a,
.mm-spn li.selected > span{
  background: rgba(56,189,248,.12) !important;
  color: #fff !important;
}

/* عنوان الهيدر داخل القائمة */
.mm-spn_navbar{
  background: rgba(255,255,255,.04) !important;
  border-bottom: 1px solid var(--line2) !important;
}

/* زر الإغلاق (X) واضح وكبير */
button.btn--close.close-mobile-menu,
button.btn--close.close-mobile-menu-menu,
button.btn--close.close-mobile-menu.sicon-cancel,
button.btn--close.close-mobile-menu{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  position: absolute !important;
  top: 10px !important;
  left: 10px !important; /* في RTL يصير طبيعي */
  z-index: 100001 !important;
}
button.btn--close.close-mobile-menu:hover{
  border-color: rgba(56,189,248,.35) !important;
  background: rgba(56,189,248,.10) !important;
}

/* ---------- 14) Micro animations (subtle, global) ---------- */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* مظهر لطيف عند تحميل الكتل */
.s-slider-block, .s-home-section, .s-product-card{
  animation: floatIn var(--t2) ease both;
}

/* ---------- 15) Footer ---------- */
.store-footer, footer.store-footer{
  background: linear-gradient(145deg, rgba(7,11,20,.9), rgba(11,18,36,.75)) !important;
  border-top: 1px solid var(--line2) !important;
}

/* ---------- 16) Safety: لا نكسر الضغط/اللمس ---------- */
/* مهم: لا تستخدم pointer-events:auto على كل شيء — هذا اللي يخرب القائمة والضغط */
/* ===== Patch 1: امنع زر الإغلاق/الموبايل من الظهور على الديسكتوب ===== */
@media (min-width: 1024px){
  .close-mobile-menu,
  .close-mobile-menu-menu,
  .btn--close-sm.close-mobile-menu,
  .btn--close-sm.close-mobile-menu-menu,
  .btn--close.close-mobile-menu,
  .btn--close.close-mobile-menu-menu,
  button[class*="close-mobile-menu"]{
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ===== Patch 2: لو انك تبي الإكس يظهر داخل قائمة الجوال فقط (مو الهيدر) ===== */
@media (max-width: 1023px){
  header .close-mobile-menu,
  header .close-mobile-menu-menu,
  header button[class*="close-mobile-menu"]{
    display: none !important;
  }
}
/* ===== IPTV Sub Menu (Desktop) - لون/شكل احترافي ===== */
@media (min-width: 1024px){

  /* صندوق القائمة نفسها */
  .main-menu .sub-menu,
  .main-menu .sub-menu.w-56,
  div.sub-menu.w-56{
    background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
    border: 1px solid rgba(234, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
  }

  /* نصوص وروابط داخل القائمة */
  .main-menu .sub-menu a,
  .main-menu .sub-menu span,
  .main-menu .sub-menu li{
    color: #eaf3ff !important;
    font-weight: 700 !important;
  }

  /* هوفر على عناصر القائمة */
  .main-menu .sub-menu a{
    display: block !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    transition: .2s ease !important;
  }
  .main-menu .sub-menu a:hover{
    background: rgba(77, 153, 235, .18) !important;
    color: #ffffff !important;
    transform: translateX(-2px) !important;
  }
  .main-menu .sub-menu li:last-child a{
    border-bottom: 0 !important;
  }

  /* منع أي طبقة باهتة/رمادية فوق القائمة */
  .main-menu .sub-menu::before,
  .main-menu .sub-menu::after{
    content: none !important;
  }
}
/* ===== صفحات المحتوى (من نحن / سياسة الاستخدام / الخ) ===== */
.content.content--single-page,
div.content.content--single-page.bg-white{
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  color: #eaf3ff !important;
  border: 1px solid rgba(234,255,255,.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.55) !important;
}

/* شيل تأثير الأبيض لو موجود من كلاس bg-white */
.content.content--single-page.bg-white{
  background-color: transparent !important;
}

/* تنسيق النص داخل الصفحة */
.content.content--single-page h1,
.content.content--single-page h2,
.content.content--single-page h3,
.content.content--single-page h4{
  color: #ffffff !important;
}

.content.content--single-page p,
.content.content--single-page li,
.content.content--single-page span,
.content.content--single-page a{
  color: #eaf3ff !important;
}

.content.content--single-page a{
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* تحسين العرض (ما يصير ضخم بالكمبيوتر) */
@media (min-width: 1024px){
  .content.content--single-page{
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* ===== Reviews / Testimonials Section ===== */
.s-reviews-testimonial{
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.55) !important;
  padding: 20px 28px !important;
  color: #eaf3ff !important;
}

/* نص التقييم */
.s-reviews-testimonial p,
.s-reviews-testimonial span{
  color: #eaf3ff !important;
  font-size: 15px;
  line-height: 1.8;
}

/* اسم العميل */
.s-reviews-testimonial h4,
.s-reviews-testimonial strong{
  color: #ffffff !important;
  font-weight: 600;
}

/* النجوم */
.s-reviews-testimonial .rating,
.s-reviews-testimonial svg{
  color: #ffd36a !important;
  fill: #ffd36a !important;
}

/* صورة المستخدم */
.s-reviews-testimonial img{
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,.25);
}
/* Hover effect */
.s-reviews-testimonial{
  transition: transform .35s ease, box-shadow .35s ease;
}

.s-reviews-testimonial:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 55px rgba(0,0,0,.7);
}
@media (max-width: 768px){
  .s-reviews-testimonial{
    padding: 18px !important;
    border-radius: 14px !important;
  }
}
/* ===== Footer (store-footer__inner) ===== */
footer.store-footer,
.store-footer__inner{
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  color: #eaf3ff !important;
}

/* نصوص وروابط الفوتر */
.store-footer__inner,
.store-footer__inner *{
  color: #eaf3ff !important;
}

/* الروابط + هوفر */
.store-footer__inner a{
  opacity: .9;
  transition: opacity .2s ease, transform .2s ease;
}
.store-footer__inner a:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* خطوط/فواصل داخلية لو موجودة */
.store-footer__inner hr,
.store-footer__inner .border,
.store-footer__inner [class*="border"]{
  border-color: rgba(255,255,255,.12) !important;
}

/* لو فيه خلفيات لأقسام داخل الفوتر */
.store-footer__inner .bg-white,
.store-footer__inner [class*="bg-white"]{
  background: transparent !important;
}
/* ===============================
   Product Page – Dark Premium UI
================================ */

/* الخلفية العامة لصفحة المنتج */
.product,
.product-single,
.product-single-page,
.product-content,
.product-details {
  background: transparent !important;
}

/* كرت المحتوى الرئيسي */
.content-single-page,
.product .container > div {
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  color: #eaf3ff;
}

/* العناوين */
.product h1,
.product h2,
.product h3 {
  color: #ffffff !important;
}

/* النصوص */
.product p,
.product span,
.product li {
  color: #d6e6ff !important;
  line-height: 1.9;
}

/* صورة المنتج */
.product img {
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,.45);
}

/* ===== نموذج الشراء ===== */
form.product-form,
.sticky-product-bar {
  background: linear-gradient(160deg, #0f2f5c, #123a70) !important;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
}

/* الحقول */
.product-form input,
.product-form select,
.product-form textarea {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.15);
  color: #fff !important;
  border-radius: 12px;
  padding: 12px;
}

/* Placeholder */
.product-form input::placeholder {
  color: rgba(255,255,255,.6);
}

/* زر الإضافة للسلة */
.product-form button,
.product-form .btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  border-radius: 14px;
  color: #fff !important;
  font-weight: 700;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(59,130,246,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* هوفر الزر */
.product-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(59,130,246,.6);
}

/* ===== التقييمات ===== */
.product-rating,
.reviews,
.review {
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
}

/* النجوم */
.star,
.rating svg {
  color: #fbbf24 !important;
}

/* ===== أنيميشن دخول ناعم ===== */
.product,
.content-single-page,
.product-form {
  animation: fadeUp .6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === Fix: sections داخل form.product-form ما زالت bg-white === */
form.product-form > section.bg-white,
form.product-form section.flex.bg-white,
form.product-form section.sticky-product-bar.bg-white,
section.sticky-product-bar.bg-white {
  background: transparent !important; /* أو خله نفس كرت الفورم */
  border: 0 !important;
  box-shadow: none !important;
}

/* إذا تبيها نفس كرت الفورم (أفضل شكل) بدل transparent */
form.product-form > section.bg-white,
form.product-form section.flex.bg-white {
  background: linear-gradient(160deg, #0f2f5c, #123a70) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 16px !important;
}

/* لأن عندك rounded-b-none تسبب شكل غريب */
form.product-form section.rounded-b-none {
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

/* padding المبالغ فيه داخلها */
form.product-form section.p-5 {
  padding: 14px !important;
}
/* === Fix: شريط السعر / الإحصائيات قبل الفورم === */
.product-single-description
div.mb-4.flex.justify-between.bg-white,
.product-single-description
div.sm\:grid.bg-white {
  background: linear-gradient(160deg, #0f2f5c, #123a70) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.35) !important;
  border-radius: 16px !important;
  color: #fff !important;
}

/* النصوص داخل الشريط */
.product-single-description
div.mb-4.flex.justify-between.bg-white *,
.product-single-description
div.sm\:grid.bg-white * {
  color: #fff !important;
}

/* إزالة الحواف القديمة */
.product-single-description
div.mb-4.flex.justify-between.rounded-md {
  border-radius: 16px !important;
}
/* ===============================
   FIX COMMENTS COLORS & CONTRAST
   =============================== */

.salla-comments,
.s-comments-page,
.s-comments-product {
  background: linear-gradient(160deg, #0e2447, #132f5e) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.45) !important;
  color: #eaf1ff !important;
}

/* كل النصوص داخل التعليقات */
.salla-comments *,
.s-comments-page *,
.s-comments-product * {
  color: #eaf1ff !important;
}

/* العناوين */
.salla-comments h1,
.salla-comments h2,
.salla-comments h3,
.salla-comments h4 {
  color: #ffffff !important;
}

/* التقييم (النجوم) */
.salla-comments .s-rating-stars i,
.salla-comments .s-rating-stars svg {
  color: #f5c76a !important;
}

/* أسماء العملاء والتواريخ */
.salla-comments .s-comment-author,
.salla-comments .s-comment-date {
  color: #b8c9ff !important;
}

/* مربعات الإدخال */
.salla-comments input,
.salla-comments textarea,
.salla-comments select {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
}

.salla-comments input::placeholder,
.salla-comments textarea::placeholder {
  color: rgba(255,255,255,.55) !important;
}

/* زر الإرسال */
.salla-comments button,
.salla-comments .btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(37,99,235,.45) !important;
}

.salla-comments button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37,99,235,.6) !important;
}

/* فواصل التعليقات */
.salla-comments hr {
  border-color: rgba(255,255,255,.15) !important;
}
/* =========================================================
   PATCH: Product Options Wrapper (salla-product-options)
   Fix colors + bg + borders to match dark premium UI
   ضع هذا آخر شيء في الـ CSS
   ========================================================= */

/* الكرت الرئيسي لخيارات المنتج */
salla-product-options.s-product-options-wrapper,
.s-product-options-wrapper,
.s-product-options-wrapper.hydrated{
  background: linear-gradient(160deg, #0f2f5c, #123a70) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 40px rgba(0,0,0,.35) !important;
  color: #eaf3ff !important;
}

/* أي bg-white داخل بلوك الخيارات (سلة أحياناً ترميه) */
salla-product-options.s-product-options-wrapper .bg-white,
.s-product-options-wrapper .bg-white,
.s-product-options-wrapper [class*="bg-white"]{
  background: transparent !important;
}

/* نصوص وعناوين الخيارات */
salla-product-options.s-product-options-wrapper *,
.s-product-options-wrapper *{
  color: #eaf3ff !important;
}

/* عنوان المجموعة (اسم الخيار) */
.s-product-options-wrapper .s-product-options-option-title,
.s-product-options-wrapper .s-product-options-option-name,
.s-product-options-wrapper label{
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* حقول الإدخال داخل الخيارات */
.s-product-options-wrapper input,
.s-product-options-wrapper select,
.s-product-options-wrapper textarea{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
}

/* placeholder */
.s-product-options-wrapper input::placeholder,
.s-product-options-wrapper textarea::placeholder{
  color: rgba(255,255,255,.55) !important;
}

/* فواصل/حدود داخلية لو ظهرت */
.s-product-options-wrapper hr,
.s-product-options-wrapper [class*="border"],
.s-product-options-wrapper .border{
  border-color: rgba(255,255,255,.12) !important;
}

/* مساحة داخلية مرتبة (بدون تضخيم) */
salla-product-options.s-product-options-wrapper,
.s-product-options-wrapper{
  padding: 14px !important;
}
/* ===== Fix white dropdown inside product options (select/options) ===== */
.s-product-options-wrapper select.s-form-control,
salla-product-options.s-product-options-wrapper select.s-form-control{
  background: rgba(15, 47, 92, .65) !important;
  color: #eaf3ff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}

/* خيارات القائمة نفسها */
.s-product-options-wrapper select.s-form-control option,
salla-product-options.s-product-options-wrapper select.s-form-control option{
  background: #0b1a2e !important;
  color: #eaf3ff !important;
}
/* ===== Fix white tag bar on product page (bg-white row) ===== */
#main-content .mb-4.flex.justify-between.sm\:grid.sm\:grid-cols-3.bg-white.rounded-md.px-4.py-2{
  background: rgba(15, 47, 92, .35) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 14px !important;
}

#main-content .mb-4.flex.justify-between.sm\:grid.sm\:grid-cols-3.bg-white.rounded-md.px-4.py-2 *{
  color: #eaf3ff !important;
  opacity: 1 !important;
}
/* =====================================================
   FIX WHITE BACKGROUNDS – PRODUCTS + BLOG (SAFE PATCH)
   ===================================================== */

/* 1) خيارات المنتج + Select */
.s-product-options-wrapper,
.s-product-options-option,
.s-product-options-option-content,
.s-product-options-wrapper select,
.s-product-options-wrapper textarea {
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  color: var(--ink) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 14px !important;
}

/* نصوص داخل الخيارات */
.s-product-options-wrapper label,
.s-product-options-wrapper option {
  color: var(--ink) !important;
  background: transparent !important;
}

/* 2) شريط PREM / BADGE فوق السعر */
.product-single-description .bg-white,
.product-single-description [class*="bg-white"] {
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  color: var(--ink) !important;
  border: 1px solid var(--stroke) !important;
}

/* 3) صفحات المدونة – قائمة المقالات */
.blog-index .bg-white,
.blog-index .list-block,
.blog-index .post-entry {
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  color: var(--ink) !important;
  border: 1px solid var(--stroke) !important;
}

/* 4) صفحة المقال نفسها */
.blog-single .bg-white,
.blog-single .main-content {
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  color: var(--ink) !important;
  border-radius: 18px !important;
}

/* نصوص المدونة */
.blog-single p,
.blog-single li,
.blog-index p {
  color: var(--ink-light) !important;
}

/* صور المقال */
.blog-single img {
  border-radius: 14px !important;
}
/* =====================================
   MOBILE PRODUCT CARDS – CLEAN & COMPACT
   ===================================== */
@media (max-width: 768px){

  /* الشبكة نفسها */
  .s-products-grid,
  .s-product-list,
  .grid,
  .grid-cols-2{
    gap: 12px !important;
  }

  /* كرت المنتج */
  .s-product-card,
  custom-salla-product-card,
  .s-product-card-entry{
    border-radius: 14px !important;
    padding: 10px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.25) !important;
  }

  /* صورة المنتج */
  .s-product-card-image,
  .s-product-card-image-cover{
    aspect-ratio: 1 / 1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .s-product-card-image img,
  .s-product-card-image-cover img{
    object-fit: cover !important;
  }

  /* محتوى الكرت */
  .s-product-card-content{
    padding: 8px 4px 0 !important;
  }

  /* عنوان المنتج */
  .s-product-card-title,
  .s-product-card-content h3{
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }

  /* الوصف */
  .s-product-card-subtitle,
  .s-product-card-content p{
    font-size: 12px !important;
    line-height: 1.5 !important;
    opacity: .85;
  }

  /* السعر */
  .s-product-card-price,
  .s-product-card-sale-price{
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 6px 0 !important;
  }

  /* زر الإضافة للسلة */
  .s-product-card-add-to-cart,
  .s-add-product-button,
  salla-add-product-button button{
    font-size: 13px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    margin-top: 6px !important;
  }

  /* شيل أي padding مبالغ فيه */
  .p-4, .p-5, .px-4, .py-4{
    padding: 10px !important;
  }
}
/* ===============================
   CART – DARK THEME FIX
   =============================== */

/* Cart Items */
section.cart-item.bg-white {
  background: rgba(7, 20, 38, 0.92) !important;
  border: 1px solid rgba(234, 243, 255, 0.1) !important;
  color: #eaf3ff !important;
}

section.cart-item * {
  color: #eaf3ff !important;
}

/* Cart Summary */
div.shadow-default.bg-white {
  background: rgba(7, 20, 38, 0.92) !important;
  border: 1px solid rgba(234, 243, 255, 0.1) !important;
  color: #eaf3ff !important;
}

div.shadow-default.bg-white * {
  color: #eaf3ff !important;
}

/* Inputs */
.cart input,
.cart select,
.cart textarea {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #eaf3ff !important;
  border: 1px solid rgba(234, 243, 255, 0.15) !important;
}

/* Buttons */
.cart button,
.cart .btn,
.cart .s-button-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  border: none !important;
}
/* ===============================
   TESTIMONIALS – DARK THEME FIX
   =============================== */

/* الحاوية الرئيسية */
.testimonials-page .bg-white,
.salla-comments.testimonials,
.salla-comments.testimonials > div {
  background: rgba(7, 20, 38, 0.92) !important;
  border: 1px solid rgba(234, 243, 255, 0.1) !important;
  border-radius: 18px !important;
  color: #eaf3ff !important;
}

/* كل النصوص داخل التقييمات */
.salla-comments.testimonials *,
.testimonials-page * {
  color: #eaf3ff !important;
}

/* فواصل التقييمات */
.salla-comments.testimonials hr {
  border-color: rgba(234, 243, 255, 0.08) !important;
}

/* النجوم */
.salla-comments .rating-stars svg,
.salla-comments .rating-stars {
  color: #fbbf24 !important;
  fill: #fbbf24 !important;
}
/* =====================================
   FORCE FIX – TESTIMONIALS WHITE CARD
   ===================================== */

/* الحاوية الأساسية للتقييمات */
body .salla-comments.testimonials
  > div
  > div.w-full.lg\:w-10\/12.bg-white {
  
  background: rgba(7, 20, 38, 0.92) !important;
  border: 1px solid rgba(234, 243, 255, 0.12) !important;
  border-radius: 18px !important;
}

/* النصوص داخلها */
body .salla-comments.testimonials
  > div
  > div.w-full.lg\:w-10\/12.bg-white * {
  
  color: #eaf3ff !important;
}

/* الفواصل */
body .salla-comments.testimonials hr {
  border-color: rgba(234, 243, 255, 0.08) !important;
}
/* ================================
   HOME BANNER – DESKTOP FIX ONLY
   ================================ */
@media (min-width: 1024px) {

  /* حاوية البنر */
  .salla-slider,
  .home-slider,
  .store-slider {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* السلايد نفسه */
  .salla-slider .swiper-slide,
  .home-slider .swiper-slide {
    height: 420px !important; /* تحكم بالارتفاع */
    border-radius: 20px;
    overflow: hidden;
  }

  /* صورة البنر */
  .salla-slider img,
  .home-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* بدون تمدد مزعج */
  }

  /* النص داخل البنر */
  .salla-slider h1,
  .salla-slider h2 {
    font-size: 32px !important;
    line-height: 1.3;
  }

  .salla-slider p {
    font-size: 18px !important;
    opacity: 0.9;
  }

  /* زر البنر */
  .salla-slider .btn,
  .salla-slider a.button {
    padding: 12px 28px !important;
    font-size: 16px !important;
    border-radius: 999px;
  }
}
/* ================================
   HOME FEATURES BLOCK (3 boxes)
   ================================ */

/* حاوية البلوك */
section.s-block.s-block--features {
  background: transparent !important;
}

/* كل مربع */
section.s-block.s-block--features .s-block__features__item,
section.s-block.s-block--features .s-block__features__item * {
  color: #eaf3ff !important;
}

/* المربعات نفسها */
section.s-block.s-block--features .s-block__features__item {
  background: rgba(7, 20, 38, 0.72) !important;
  border: 1px solid rgba(234, 243, 255, 0.10) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(10px) !important;
  padding: 18px 16px !important;
}

/* الايقونة */
section.s-block.s-block--features .s-block__features__item svg,
section.s-block.s-block--features .s-block__features__item i {
  color: #9ec3ff !important;
}

/* العنوان داخل المربع */
section.s-block.s-block--features .s-block__features__item h3,
section.s-block.s-block--features .s-block__features__item .title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* الوصف */
section.s-block.s-block--features .s-block__features__item p,
section.s-block.s-block--features .s-block__features__item .desc {
  color: rgba(234, 243, 255, 0.85) !important;
}
/* ================================
   FIX: Home Features (3 boxes) background + cards
   ================================ */

/* الخلفية الفاتحة كانت على الـ GRID نفسه */
section.s-block.s-block--features > .grid,
section.s-block.s-block--features .grid {
  background: transparent !important;
  box-shadow: none !important;
}

/* الكروت */
section.s-block.s-block--features .s-block__features__item{
  background: rgba(7, 20, 38, 0.72) !important;
  border: 1px solid rgba(234, 243, 255, 0.10) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(10px) !important;
  padding: 18px 16px !important;
}

/* النصوص */
section.s-block.s-block--features .s-block__features__item h2{
  color: #ffffff !important;
  font-weight: 700 !important;
}
section.s-block.s-block--features .s-block__features__item p{
  color: rgba(234, 243, 255, 0.85) !important;
}

/* الأيقونات */
section.s-block.s-block--features .s-block__features__item .feature-icon,
section.s-block.s-block--features .s-block__features__item .feature-icon *{
  color: #9ec3ff !important;
}
/* FIX: Features cards (the white 3 boxes) */
section.s-block.s-block--features .s-block--features__item{
  background: rgba(7, 20, 38, 0.72) !important;
  border: 1px solid rgba(234, 243, 255, 0.10) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: none !important;
}

/* Text inside */
section.s-block.s-block--features .s-block--features__item h2,
section.s-block.s-block--features .s-block--features__item p{
  color: #eaf3ff !important;
}

/* Icons */
section.s-block.s-block--features .s-block--features__item i,
section.s-block.s-block--features .s-block--features__item svg,
section.s-block.s-block--features__item .feature-icon,
section.s-block.s-block--features__item .feature-icon *{
  color: #9ec3ff !important;
  fill: #9ec3ff !important;
}
/* ===== Fix Product Filter Select (ترتيب المنتجات) ===== */
select#product-filter{
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  color: #eaf3ff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
}

/* عند الفوكس */
select#product-filter:focus{
  outline: none !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,.25) !important;
}

/* عناصر القائمة نفسها */
select#product-filter option{
  background: #0b1a2e !important;
  color: #eaf3ff !important;
}

/* في حال RTL */
html[dir="rtl"] select#product-filter{
  background-position: left 1rem center !important;
}
/* ===============================
   FIX HEADER ON SCROLL (NO JUMP)
   =============================== */

/* الهيدر نفسه */
.main-nav-container,
.main-nav-container.fixed-header,
.main-nav-container.fixed-pinned{
  position: sticky !important;   /* بدل fixed */
  top: 0 !important;
  left: 0;
  right: 0;
  transform: none !important;    /* يمنع الاهتزاز */
  transition: background .25s ease, box-shadow .25s ease !important;
  z-index: 9999 !important;
}

/* الشريط الداخلي اللي كان يخرب */
.main-nav-container .inner,
.main-nav-container.fixed-header .inner,
.main-nav-container.fixed-pinned .inner{
  transform: none !important;
  background: transparent !important;
}

/* لما تنزل تحت (pinned state) */
.main-nav-container.fixed-pinned{
  background: linear-gradient(
    145deg,
    rgba(7,11,20,.95),
    rgba(11,18,36,.92)
  ) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45) !important;
}

/* إزالة أي ارتفاع/قفزة */
header.store-header,
header.store-header *{
  will-change: auto !important;
}

/* حماية من كلاس bg-white اللي يطلع فجأة */
.main-nav-container.bg-white,
.main-nav-container .bg-white{
  background: transparent !important;
}
/* ===============================
   COMMENTS SORT SELECT – DARK FIX
   =============================== */

select#comments-filter,
.s-comments-sort-input{
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  color: #eaf3ff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.35) !important;
  appearance: none;
}

/* عند الضغط */
select#comments-filter:focus,
.s-comments-sort-input:focus{
  outline: none !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,.25) !important;
}

/* عناصر القائمة */
select#comments-filter option,
.s-comments-sort-input option{
  background: #0b1a2e !important;
  color: #eaf3ff !important;
}

/* النص (ترتيب:) */
.s-comments-filter-label{
  color: #eaf3ff !important;
  font-weight: 600;
}

/* حماية من bg-white */
.s-comments-filter-wrapper .bg-white{
  background: transparent !important;
}
/* ===============================
   COMMENT TEXTAREA – DARK FIX
   =============================== */

textarea.s-comment-form-input{
  background: linear-gradient(145deg, #0b1f3d, #0d2a52) !important;
  color: #eaf3ff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 14px !important;
  padding: 14px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
  resize: vertical; /* خليه طبيعي */
}

/* النص الوهمي (placeholder) */
textarea.s-comment-form-input::placeholder{
  color: rgba(234,243,255,.55) !important;
}

/* عند الكتابة / التركيز */
textarea.s-comment-form-input:focus{
  outline: none !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,.25) !important;
  background: linear-gradient(145deg, #0e2a55, #123a70) !important;
}

/* تأكيد إزالة أي أبيض مفروض */
.s-comment-form-wrapper .bg-white,
.s-comment-form-content .bg-white{
  background: transparent !important;
}
/* تصغير القائمة وتوسيطها في الشاشة */
.s-user-menu-wrapper .s-user-menu-dropdown,
.s-user-menu .s-user-menu-dropdown {
  width: 260px !important;        /* حجم أصغر */
  left: 50% !important;           /* توسيط أفقي */
  transform: translateX(-50%) !important;
  right: auto !important;         /* إلغاء المحاذاة القديمة */
  top: 60px !important;           /* مسافة من الأعلى (عدّلها حسب رغبتك) */
}

/* ============================
   User Menu – Mobile Center Fix
   ============================ */

/* 1) الجوال: تصغير وتوسيط القائمة + إظهار اللست */
@media (max-width: 1023px){

  /* توسيط القائمة */
  .s-user-menu-wrapper .s-user-menu-dropdown,
  .s-user-menu .s-user-menu-dropdown {
    width: 260px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    top: 70px !important; /* عدّلها حسب مكان الأيقونة */
    overflow: visible !important;
  }

  /* إصلاح اللست اللي ما تظهر */
  .s-user-menu-dropdown-list {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
  }
}

/* ============================
   2) الكمبيوتر: رجوع للوضع الطبيعي
   ============================ */
@media (min-width: 1024px){
  .s-user-menu-wrapper .s-user-menu-dropdown,
  .s-user-menu .s-user-menu-dropdown {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    width: auto !important;
  }
}
/* ============================
   User Menu – Mobile + Desktop Fix
   ============================ */

/* الجوال: توسيط + تصغير + نفس لون الهيدر */
@media (max-width: 1023px){

  .s-user-menu-wrapper .s-user-menu-dropdown,
  .s-user-menu .s-user-menu-dropdown {
    width: 260px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    top: 70px !important;

    /* نفس لون اليوزر هيدر */
    background: linear-gradient(145deg, rgba(11,18,36,.95), rgba(7,11,20,.92)) !important;
    border: 1px solid rgba(120,150,210,.12) !important;
    border-radius: 22px !important;
    overflow: visible !important;
  }

  /* إصلاح اللست */
  .s-user-menu-dropdown-list {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
  }
}

/* الكمبيوتر: رجوع القائمة لليسار (مو يمين) */
@media (min-width: 1024px){
  .s-user-menu-wrapper .s-user-menu-dropdown,
  .s-user-menu .s-user-menu-dropdown {
    left: 0 !important;      /* يسار */
    right: auto !important;  /* إلغاء اليمين */
    transform: none !important;
    width: auto !important;

    /* نفس لون الهيدر */
    background: linear-gradient(145deg, rgba(11,18,36,.95), rgba(7,11,20,.92)) !important;
  }
}
/* ============================
   User Menu – Mobile Color Fix
   ============================ */

@media (max-width: 1023px){

  /* لون القائمة الأساسي */
  .s-user-menu-wrapper .s-user-menu-dropdown,
  .s-user-menu .s-user-menu-dropdown {
    background: linear-gradient(145deg, rgba(11,18,36,.95), rgba(7,11,20,.92)) !important;
    border: 1px solid rgba(120,150,210,.12) !important;
    border-radius: 22px !important;
  }

  /* لون اللست نفسها */
  .s-user-menu-dropdown-list {
    background: linear-gradient(145deg, rgba(11,18,36,.95), rgba(7,11,20,.92)) !important;
    border-radius: 22px !important;
  }

  /* لون عناصر القائمة */
  .s-user-menu-dropdown-item,
  .s-user-menu-dropdown-item a {
    background: transparent !important;
    color: #eaf3ff !important;
  }

  /* هوفر */
  .s-user-menu-dropdown-item:hover {
    background: rgba(56,189,248,.10) !important;
  }
}
/* ===== صفحة الطلبات ===== */

/* خلفية الصفحة */
.salla-orders,
.s-orders-wrapper {
    background: transparent !important;
}

/* الجدول */
.s-orders-table {
    border-spacing: 0 12px;
}

/* صف الطلب */
.s-orders-table-body-tr {
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    transition: all .25s ease;
}

/* Hover */
.s-orders-table-body-tr:hover {
    background: #eaf2ff;
    transform: translateY(-2px);
}

/* محتوى الصف */
.s-orders-table-body-tr-td {
    color: #1f2937 !important;
}

/* رقم الطلب */
.s-orders-reference-id {
    color: #2563eb !important;
    font-weight: 600;
}

/* ===== حالات الطلب ===== */

/* تم التنفيذ */
.s-orders-status-success,
.s-orders-status-completed {
    color: #16a34a !important;
    font-weight: 600;
}

/* مسترجع */
.s-orders-status-refunded {
    color: #dc2626 !important;
    font-weight: 600;
}

/* بانتظار */
.s-orders-status-pending {
    color: #f59e0b !important;
    font-weight: 600;
}

/* ===== السايدبار ===== */

nav[aria-label="Sidebar"] {
    background: linear-gradient(180deg, #0b1f3a, #0e2a52) !important;
    border-radius: 18px;
    color: #e5e7eb;
}

/* عناصر القائمة */
nav[aria-label="Sidebar"] a,
nav[aria-label="Sidebar"] button {
    color: #e5e7eb !important;
    border-radius: 10px;
    transition: all .2s ease;
}

/* Hover في السايدبار */
nav[aria-label="Sidebar"] a:hover,
nav[aria-label="Sidebar"] button:hover {
    background: rgba(37,99,235,0.15);
    color: #ffffff !important;
}

/* العنصر النشط */
nav[aria-label="Sidebar"] .active,
nav[aria-label="Sidebar"] .router-link-active {
    background: rgba(37,99,235,0.25);
    color: #ffffff !important;
}

/* تسجيل الخروج */
nav[aria-label="Sidebar"] a.text-red-500 {
    color: #f87171 !important;
}
/* تغيير لون شريط العنوان العلوي */
.profile-header-gradient-bg {
    background: #1a1a1a !important; /* استبدل #1a1a1a باللون الذي تفضله */
}

/* تغيير لون خلفية صفوف الطلبات */
.s-orders-table-tbody-tr {
    background-color: #ffffff !important; /* لون خلفية الطلب */
    border: 1px solid #eeeeee !important; /* لون الحدود بين الطلبات */
    transition: background 0.3s ease;
}

/* تأثير عند تمرير الماوس فوق الطلب (اختياري) */
.s-orders-table-tbody-tr:hover {
    background-color: #f9f9f9 !important;
}

/* تعديل لون الخط داخل الطلبات إذا لزم الأمر */
.s-orders-table-tbody-tr td, 
.s-orders-table-tbody-tr .s-orders-table-tbody-tr-td-content {
    color: #333333 !important;
}
/* جدول الطلبات – نفس ثيم JetStoreKSA */
.s-orders-table{
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(145deg, var(--card), var(--card2));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: var(--shadow2);
  color: var(--text);
}

/* الهيدر */
.s-orders-table thead{
  background: linear-gradient(135deg, var(--brand2), var(--brand));
}
.s-orders-table thead th{
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,.25);
}

/* الصفوف */
.s-orders-table-tbody tr{
  background: rgba(7,11,20,.75);
  transition: background var(--t) ease, transform var(--t) ease;
}
.s-orders-table-tbody tr:nth-child(even){
  background: rgba(11,18,36,.85);
}
.s-orders-table-tbody tr:hover{
  background: rgba(56,189,248,.10);
  transform: translateY(-1px);
}
.s-orders-table-tbody td{
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line2);
}

/* رقم الطلب */
.s-orders-table-tbody td.order-number{
  font-weight: 600;
  color: var(--brand);
}

/* المجموع */
.s-orders-table-tbody td.order-total{
  font-weight: 600;
  color: #fff;
}

/* تاريخ الطلب */
.s-orders-table-tbody td.order-date{
  color: var(--muted);
}

/* حالة الطلب – كبادج حبوب */
.s-orders-table-tbody td.order-status{
  font-weight: 600;
  font-size: 13px;
}
.s-orders-table-tbody td.order-status span{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11,18,36,.9);
}

/* تم التنفيذ */
.s-orders-table-tbody td.order-status.status-completed span{
  color: #4ade80;
  border-color: rgba(74,222,128,.45);
  background: rgba(22,163,74,.18);
}

/* مسترجع */
.s-orders-table-tbody td.order-status.status-returned span{
  color: #fca5a5;
  border-color: rgba(248,113,113,.45);
  background: rgba(185,28,28,.20);
}

/* بانتظار الدفع */
.s-orders-table-tbody td.order-status.status-pending span{
  color: #fed7aa;
  border-color: rgba(251,191,36,.45);
  background: rgba(180,83,9,.22);
}

/* جدول الطلبات – ثيم داكن متناسق مع JetStoreKSA */
.s-orders-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(145deg, var(--card), var(--card2));
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: var(--shadow2);
  color: var(--text);
}

/* رأس الجدول */
.s-orders-table thead {
  background: linear-gradient(135deg, var(--brand2), var(--brand));
}
.s-orders-table thead th {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,.25);
}

/* صفوف البيانات */
.s-orders-table-tbody tr {
  background: rgba(7,11,20,.75);
  transition: background var(--t) ease, transform var(--t) ease;
}
.s-orders-table-tbody tr:nth-child(even) {
  background: rgba(11,18,36,.85);
}
.s-orders-table-tbody tr:hover {
  background: rgba(56,189,248,.10);
  transform: translateY(-1px);
}
.s-orders-table-tbody td {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line2);
}

/* حالة الطلب كبادج */
.s-orders-table-tbody td.order-status span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(11,18,36,.9);
}

/* تم التنفيذ */
.s-orders-table-tbody td.order-status.status-completed span {
  color: #4ade80;
  border-color: rgba(74,222,128,.45);
  background: rgba(22,163,74,.18);
}

/* مشروح */
.s-orders-table-tbody td.order-status.status-explained span {
  color: #60a5fa;
  border-color: rgba(96,165,250,.45);
  background: rgba(37,99,235,.18);
}
/* لمسة فخامة عامة */
:root{
  --radius: 18px;
  --shadow: 0 12px 35px rgba(0,0,0,.18);
  --softShadow: 0 10px 25px rgba(0,0,0,.12);
}

.card, .s-product-card, .s-block, .salla-orders .s-orders-table-body-tr,
nav[aria-label="Sidebar"]{
  border-radius: var(--radius) !important;
  box-shadow: var(--softShadow) !important;
}

a, button, .s-product-card{
  transition: all .22s ease !important;
}

.s-product-card:hover, .card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow) !important;
}

/* ===== Fly to cart ===== */
.fly-img{
  position: fixed;
  z-index: 2147483647;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  transition: transform .75s cubic-bezier(.4,0,.2,1), opacity .75s ease;
}
/* ===== FIX SWEETALERT2 TOAST (SALLA) ===== */

/* ارفع التوست فوق كل شيء */
.swal2-container {
  z-index: 2147483647 !important;
  position: fixed !important;
}

/* توست الموبايل */
.swal2-toast {
  top: 90px !important;      /* تحت الهيدر */
  right: 50% !important;
  transform: translateX(50%) !important;
  max-width: min(92vw, 420px);
}

/* امنع الصفحة من الانكماش */
body.swal2-toast-shown,
body.swal2-shown {
  overflow: visible !important;
  padding-right: 0 !important;
}

/* امنع الخلفية المظللة */
.swal2-backdrop-show {
  background: transparent !important;
}
/* 1. تعريف شكل الحركة (من الاختفاء والتصغير إلى الظهور والحجم الكامل) */
@keyframes appear {
  from {
    opacity: 0;
    transform: scale(0.5); /* استخدمنا transform للتوافق الأوسع */
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 2. تطبيق الحركة وربطها بالتمرير (Scroll) */
.banner--fixed img,
section.s-block.s-block--testimonials,
section.s-block.s-block--features.container, 
.s-block.s-block--best-offers.container,
section.s-block.s-block--banners.container,
.home-slider {
    animation: appear linear;
    animation-timeline: view(); /* تجعل الحركة مرتبطة بمكان العنصر على الشاشة */
    animation-range: entry 0% cover 40%; /* تبدأ الحركة بمجرد دخول العنصر للشاشة وتنتهي عند ظهور 40% منه */
}
/* === BRAND LOGO LOADING SCREEN === */
#brand-loader {
  position: fixed;
  inset: 0;
  background: #050b1a; /* نفس جو المتجر */
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}

#brand-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

#brand-loader img {
  width: 120px;
  height: auto;
  animation: brandPulse 1.6s ease-in-out infinite;
}

@keyframes brandPulse {
  0%   { transform: scale(1); opacity: .85; }
  50%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: .85; }
}

#brand-loader img {
  filter: drop-shadow(0 0 12px rgba(58,133,209,.55))
          drop-shadow(0 0 24px rgba(58,133,209,.35));
}
/* منع ظهور ملامح الصفحة قبل اللودنق */
html.loader-hold body{
  opacity: 0 !important;
}

/* أول ما نبدأ اللودنق نرجّع ظهور الصفحة */
html.loader-ready body{
  opacity: 1 !important;
  transition: opacity .15s ease;
}
/* ===== Fix: Hidden user menu still clickable (mobile) ===== */

/* افتراضيًا: القائمة لا تلتقط اللمس إلا إذا كانت مفتوحة */
.s-user-menu-dropdown {
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* لما تكون مفتوحة */
.s-user-menu-toggler.opened .s-user-menu-dropdown,
.s-user-menu-wrapper.opened .s-user-menu-dropdown,
.s-user-menu.opened .s-user-menu-dropdown {
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* احتياط إضافي: لو في طبقة خلفية للقائمة */
.s-user-menu-backdrop,
.s-user-menu-overlay {
  pointer-events: none !important;
}
.s-user-menu-toggler.opened .s-user-menu-backdrop,
.s-user-menu-wrapper.opened .s-user-menu-backdrop,
.s-user-menu.opened .s-user-menu-backdrop,
.s-user-menu-toggler.opened .s-user-menu-overlay,
.s-user-menu-wrapper.opened .s-user-menu-overlay,
.s-user-menu.opened .s-user-menu-overlay {
  pointer-events: auto !important;
}