/* =====================================================================
   مكتبة معرفتك تنمو | CSS مخصص لمتجر سلة (ثيم رائد)
   الهوية: كحلي #0B1F3A · أزرق ملكي #00338F · فيروزي #12A8B5 · ذهبي #C8A464
   الخطوط: Readex Pro للعناوين والأزرار · IBM Plex Sans Arabic للنصوص
   الأقسام:
   1) المتغيرات  2) قواعد عامة وخلفية الصفحة  3) الهيدر والقائمة
   4) عناوين الأقسام  5) بطاقة المنتج  6) الأزرار والحقول  7) صفحة المنتج
   8) ميزات المتجر والتبويبات  9) الفوتر  10) الجوال وتقليل الحركة
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Readex+Pro:wght@500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

/* ---------- 1) المتغيرات: عدّل الهوية من هنا فقط ---------- */
:root{
  --mk-navy:#0B1F3A;
  --mk-navy-2:#16335C;
  --mk-royal:#00338F;
  --mk-teal:#12A8B5;
  --mk-teal-d:#0B7C87;
  --mk-teal-l:#7FE0E6;
  --mk-teal-10:#E3F6F7;
  --mk-gold:#C8A464;
  --mk-gold-l:#E9D3A6;
  --mk-gold-10:#FBF5E8;
  --mk-pink:#FB014D;
  --mk-bg:#F4F6FA;
  --mk-line:#E2E8F0;
  --mk-muted:#5B6B82;
  --mk-white:#FFFFFF;
  --mk-grad:linear-gradient(90deg,#0B1F3A,#12A8B5 55%,#C8A464);
  --mk-grad-v:linear-gradient(180deg,#12A8B5,#C8A464);
  --mk-grad-btn:linear-gradient(135deg,#00338F,#0B1F3A);

  --mk-font-display:"Readex Pro","IBM Plex Sans Arabic",Tahoma,sans-serif;
  --mk-font-body:"IBM Plex Sans Arabic","Readex Pro",Tahoma,sans-serif;

  --mk-radius-s:8px;
  --mk-radius-m:12px;
  --mk-radius-l:18px;
  --mk-shadow-s:0 2px 8px rgba(11,31,58,.06);
  --mk-shadow-m:0 18px 36px -18px rgba(11,31,58,.35);
  --mk-ease:.25s ease;

  /* ربط متغيرات سلة بالهوية */
  --color-primary:var(--mk-navy)!important;
  --color-primary-dark:#06142A!important;
  --color-primary-light:var(--mk-teal-10)!important;
  --color-primary-reverse:var(--mk-white)!important;
  --main-text-color:var(--mk-navy);
  --store-text-color:var(--mk-navy);
  --primary-color:var(--mk-navy);
  --font-main:var(--mk-font-body)!important;
}

/* ---------- 2) قواعد عامة (بدون * حتى لا تختفي أيقونات sicon) ---------- */
html body{
  font-family:var(--mk-font-body);
  color:var(--mk-navy);
  /* خلفية رمادية مزرقة فاتحة جدًا تناسب الكحلي (بدون نقاط ولا توهج) */
  background:var(--mk-bg)!important;
}
body .app-inner,body main,body #app,body .main-content{background:transparent!important}
h1,h2,h3,h4,h5,h6{
  font-family:var(--mk-font-display);
  color:var(--mk-navy);
  font-weight:700;
  line-height:1.4;
}
a{transition:color var(--mk-ease)}
a:hover{color:var(--mk-teal-d)}
::selection{background:var(--mk-teal-10);color:var(--mk-navy)}
:focus-visible{outline:2px solid var(--mk-teal);outline-offset:2px}

/* ---------- 3) الهيدر والقائمة ---------- */
body .store-header,
body header#mainnav{font-family:var(--mk-font-body)!important}

/* الشريط العلوي: فيروزي فاتح بكتابة فيروزية داكنة */
body .top-navbar{
  background:var(--mk-teal-10)!important;
  border:0!important;
  padding-block:6px!important;
}
body .top-navbar,
body .top-navbar a,
body .top-navbar button,
body .top-navbar span{color:var(--mk-teal-d)!important}
body .top-navbar a:hover{color:var(--mk-navy)!important}

/* البحث */
body .top-navbar input,
body .s-search-input{
  background:#fff!important;
  border:1.5px solid var(--mk-line)!important;
  border-radius:999px!important;
  height:42px!important;
  font-family:var(--mk-font-body)!important;
  font-size:14px!important;
  color:var(--mk-navy)!important;
  box-shadow:none!important;
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
body .top-navbar input:focus,
body .s-search-input:focus{
  border-color:var(--mk-teal)!important;
  box-shadow:0 0 0 3px rgba(18,168,181,.2)!important;
}

/* الشريط الرئيسي: أبيض مع خط رفيع متدرج فيروزي/ذهبي */
body .main-nav-container{
  background:#fff!important;
  border-bottom:0!important;
  box-shadow:0 8px 24px -20px rgba(11,31,58,.35)!important;
  position:relative!important;
}
body .main-nav-container::after{
  content:""!important;position:absolute!important;inset-inline:0!important;bottom:0!important;
  height:3px!important;background:linear-gradient(90deg,#12A8B5,#C8A464)!important;pointer-events:none!important;
}
body .navbar-brand img{max-height:56px!important;width:auto!important;object-fit:contain!important}

/* روابط القائمة */
body .main-menu > li > a,
body .main-menu > li > span{
  position:relative!important;
  font-family:var(--mk-font-display)!important;
  font-weight:600!important;
  font-size:15px!important;
  color:var(--mk-navy)!important;
  padding-block:10px!important;
  transition:color .2s ease!important;
}
body .main-menu > li > a::after{
  content:""!important;position:absolute!important;inset-inline:10px!important;bottom:2px!important;
  height:2px!important;border-radius:2px!important;background:linear-gradient(90deg,#12A8B5,#C8A464)!important;
  transform:scaleX(0)!important;transform-origin:center!important;transition:transform .25s ease!important;
}
body .main-menu > li > a:hover,
body .main-menu > li.active > a,
body .main-menu > li > a.active{color:var(--mk-teal-d)!important}
body .main-menu > li > a:hover::after,
body .main-menu > li.active > a::after,
body .main-menu > li > a.active::after{transform:scaleX(1)!important}

/* القوائم المنسدلة */
body .main-menu li > ul,
body .sub-menu,
body .root-level .sub-menu{
  background:#fff!important;
  border:1px solid var(--mk-line)!important;
  border-top:3px solid var(--mk-teal)!important;
  border-radius:0 0 14px 14px!important;
  box-shadow:0 16px 32px rgba(11,31,58,.12)!important;
}
body .main-menu li li a{
  font-family:var(--mk-font-body)!important;
  font-weight:500!important;
  color:var(--mk-navy)!important;
  border-radius:8px!important;
}
body .main-menu li li a:hover{color:var(--mk-teal-d)!important;background:var(--mk-teal-10)!important}

/* أزرار الحساب والسلة */
body .header-btn,
body .s-user-menu-trigger,
body .s-cart-summary-wrapper{
  border-radius:50%!important;
  background:var(--mk-bg)!important;
  color:var(--mk-navy)!important;
  transition:background .2s ease,color .2s ease!important;
}
body .header-btn:hover{background:var(--mk-navy)!important;color:#fff!important}
body .s-cart-summary-count{
  background:var(--mk-gold)!important;
  color:var(--mk-navy)!important;
  font-family:var(--mk-font-display)!important;
  font-weight:700!important;
}

/* شعار كبير في المنتصف (كمبيوتر) */
@media (min-width:992px){
  body .main-nav-container{height:auto!important;padding-block:10px 0!important}
  body .main-nav-container .container > div > div:first-child{
    flex:1 1 auto!important;flex-wrap:wrap!important;justify-content:center!important;
  }
  body .main-nav-container .navbar-brand{
    flex:0 0 100%!important;order:-1!important;display:flex!important;justify-content:center!important;margin:0 0 4px!important;
  }
  body .main-nav-container .navbar-brand img{
    width:auto!important;height:78px!important;max-height:78px!important;margin:6px 0 -10px!important;object-fit:contain!important;
  }
  body .main-nav-container custom-main-menu{display:flex!important;justify-content:center!important;flex:0 0 100%!important}
  body .main-nav-container .container > div > div:last-child{position:absolute!important;top:18px!important;inset-inline-end:0!important}
}

/* تصغير الهيدر عند التمرير */
@media (min-width:992px){
  body .fixed-pinned .main-nav-container,
  body .headroom--not-top .main-nav-container,
  body .is-sticky .main-nav-container,
  body .main-nav-container.fixed-pinned,
  body .main-nav-container.is-sticky,
  body .main-nav-container.headroom--not-top{padding-block:4px 0!important;transition:padding .25s ease!important}
  body .fixed-pinned .main-nav-container .navbar-brand img,
  body .headroom--not-top .main-nav-container .navbar-brand img,
  body .is-sticky .main-nav-container .navbar-brand img,
  body .main-nav-container.fixed-pinned .navbar-brand img,
  body .main-nav-container.is-sticky .navbar-brand img,
  body .main-nav-container.headroom--not-top .navbar-brand img{height:44px!important;max-height:44px!important;margin:0 0 -6px!important}
  body .fixed-pinned .main-nav-container .container > div > div:last-child,
  body .headroom--not-top .main-nav-container .container > div > div:last-child,
  body .is-sticky .main-nav-container .container > div > div:last-child{top:6px!important}
}

/* ضغط القائمة لتظهر كل الأقسام بدون «المزيد» */
@media(min-width:992px){
  html body custom-main-menu .main-menu{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center!important;gap:0!important}
  html body custom-main-menu .main-menu>li.root-level>a{padding-inline:12px!important;white-space:nowrap!important;font-size:15px!important;font-weight:600!important}
}
@media(min-width:992px) and (max-width:1199px){
  html body custom-main-menu .main-menu>li.root-level>a{padding-inline:8px!important;font-size:14px!important}
}
/* عرض محتوى «المزيد» مباشرة في الشريط */
@media(min-width:992px){
  html body custom-main-menu #more-menu-dropdown{position:static!important;display:flex!important;align-items:center!important}
  html body custom-main-menu #more-menu-dropdown>a{display:none!important}
  html body custom-main-menu #more-menu-dropdown>.sub-menu{
    position:static!important;display:block!important;opacity:1!important;visibility:visible!important;
    transform:none!important;width:auto!important;min-width:0!important;padding:0!important;margin:0!important;
    background:transparent!important;box-shadow:none!important;border:0!important;
  }
  html body custom-main-menu #more-menu-dropdown>.sub-menu>ul{display:flex!important;align-items:center!important;gap:0!important;padding:0!important;margin:0!important}
  html body custom-main-menu #more-menu-dropdown>.sub-menu li{display:block!important;position:static!important}
  html body custom-main-menu #more-menu-dropdown>.sub-menu li>a{padding-inline:12px!important;white-space:nowrap!important;font-size:15px!important;font-weight:600!important}
}

/* ---------- 4) عناوين صفوف المنتجات والسلايدر ---------- */
html body .s-slider-block__title,
html body .s-block__title{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;margin-bottom:clamp(14px,2vw,26px)!important;
}
html body .s-slider-block__title-right{display:flex!important;align-items:center!important;min-width:0!important}
html body .s-slider-block__title h2,
html body .s-slider-block__title-right h2,
html body .s-block__title h2,
html body .s-block__title .right-side h2{
  display:flex!important;align-items:center!important;gap:12px!important;margin:0!important;
  font-family:var(--mk-font-display)!important;font-weight:700!important;
  font-size:clamp(1.25rem,2.5vw,2rem)!important;line-height:1.3!important;color:var(--mk-navy)!important;
}
/* شرطة فيروزي/ذهبي قبل العنوان */
html body .s-slider-block__title h2::before,
html body .s-slider-block__title-right h2::before,
html body .s-block__title h2::before{
  content:""!important;display:block!important;flex:0 0 6px!important;width:6px!important;
  height:1.15em!important;border-radius:3px!important;background:var(--mk-grad-v)!important;
}
/* زر «عرض الكل» */
html body .s-slider-block__display-all,
html body .s-block__display-all{
  display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;flex-shrink:0!important;
  padding:8px 18px!important;border:0!important;border-radius:999px!important;
  background:var(--mk-navy)!important;color:#fff!important;
  font-family:var(--mk-font-display)!important;font-weight:600!important;
  font-size:clamp(.85rem,1.3vw,1rem)!important;text-decoration:none!important;
  box-shadow:0 8px 18px -10px rgba(11,31,58,.7)!important;
  transition:background .2s ease,transform .2s ease!important;
}
html body .s-slider-block__display-all *,html body .s-block__display-all *{color:#fff!important}
html body .s-slider-block__display-all:hover,
html body .s-block__display-all:hover{background:var(--mk-teal-d)!important;transform:translateY(-2px)!important}

/* ---------- 5) بطاقة المنتج ---------- */
body .s-product-card-entry{
  background:#fff!important;
  border:1px solid var(--mk-line)!important;
  border-radius:var(--mk-radius-l)!important;
  overflow:hidden!important;
  box-shadow:0 12px 28px -22px rgba(11,31,58,.45)!important;
  transition:transform var(--mk-ease),box-shadow var(--mk-ease),border-color var(--mk-ease)!important;
}
body .s-product-card-entry:hover{
  transform:translateY(-6px)!important;
  box-shadow:0 24px 40px -22px rgba(11,31,58,.5)!important;
  border-color:var(--mk-teal)!important;
}
/* صور المنتجات مصممة بقالب موحد: خلفية بيضاء بدون قص */
body .s-product-card-image{background:#fff!important}
body .s-product-card-image img{object-fit:contain!important;transition:transform .5s ease!important}
body .s-product-card-entry:hover .s-product-card-image img{transform:scale(1.03)!important}
body .s-product-card-content-title a{
  font-family:var(--mk-font-body)!important;
  font-weight:700!important;
  font-size:14.5px!important;
  line-height:1.6!important;
  color:var(--mk-navy)!important;
}
body .s-product-card-content-title a:hover{color:var(--mk-teal-d)!important}
body .s-product-card-price,
body .s-product-card-sale-price h4{
  color:var(--mk-navy)!important;
  font-family:var(--mk-font-display)!important;
  font-weight:700!important;
}
body .s-product-card-sale-price h4{color:var(--mk-pink)!important}
body .s-product-card-starting-price,
body .s-product-card-sale-price span{color:#8FA0BA!important}
/* شارة العرض على البطاقة */
body .s-product-card-promotion-title,
body .s-product-card-promotion-title *{
  background:var(--mk-gold)!important;color:var(--mk-navy)!important;
  border-radius:999px!important;font-family:var(--mk-font-display)!important;font-weight:600!important;
}
/* زر الإضافة للسلة داخل البطاقة */
body .s-product-card-entry .s-button-btn,
body .s-product-card-entry salla-add-product-button .s-button-btn{
  background:var(--mk-grad-btn)!important;
  border:0!important;
  color:#fff!important;
  border-radius:12px!important;
  font-family:var(--mk-font-display)!important;
  font-weight:600!important;
  box-shadow:0 8px 18px -10px rgba(0,51,143,.7)!important;
  transition:background .2s ease,box-shadow .2s ease!important;
}
body .s-product-card-entry .s-button-btn *{color:#fff!important}
body .s-product-card-entry .s-button-btn:hover{background:var(--mk-teal-d)!important;box-shadow:0 8px 18px -10px rgba(11,124,135,.8)!important}
/* المفضلة */
body .s-product-card-wishlist-btn{color:#8FA0BA!important;border-color:var(--mk-line)!important}
body .s-product-card-wishlist-btn:hover,
body .s-product-card-wishlist-btn.is-added{color:var(--mk-pink)!important}

/* ---------- 6) الأزرار والحقول ---------- */
body .s-button-primary,
body .btn--primary,
body .s-button-solid.s-button-primary{
  background:var(--mk-grad-btn)!important;
  border-color:var(--mk-royal)!important;
  color:#fff!important;
  border-radius:var(--mk-radius-m)!important;
  font-family:var(--mk-font-display)!important;
  font-weight:600!important;
  transition:transform var(--mk-ease),box-shadow var(--mk-ease),background var(--mk-ease)!important;
}
body .s-button-primary:hover,
body .btn--primary:hover{
  background:var(--mk-teal-d)!important;
  border-color:var(--mk-teal-d)!important;
  transform:translateY(-2px)!important;
  box-shadow:var(--mk-shadow-m)!important;
}
body .s-button-primary-outline,
body .s-button-outline,
body .btn--outline{
  border-color:var(--mk-navy)!important;
  color:var(--mk-navy)!important;
  border-radius:var(--mk-radius-m)!important;
}
body .s-button-primary-outline:hover,
body .s-button-outline:hover,
body .btn--outline:hover{background:var(--mk-navy)!important;color:#fff!important}

body input:focus,
body select:focus,
body textarea:focus{
  border-color:var(--mk-teal)!important;
  box-shadow:0 0 0 3px rgba(18,168,181,.2)!important;
}

/* أزرار عامة يمكن استعمالها في أي HTML تضيفه */
.mk-btn-primary{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  background:var(--mk-grad-btn);color:#fff;font:600 1rem var(--mk-font-display);
  padding:.7em 1.6em;border-radius:var(--mk-radius-m);border:0;text-decoration:none;cursor:pointer;
  transition:transform var(--mk-ease),box-shadow var(--mk-ease),background var(--mk-ease);
}
.mk-btn-primary:hover{background:var(--mk-teal-d);color:#fff;transform:translateY(-2px);box-shadow:var(--mk-shadow-m)}
.mk-btn-gold{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  background:linear-gradient(135deg,#F3E2B8,#C8A464);color:var(--mk-navy);font:700 1rem var(--mk-font-display);
  padding:.7em 1.6em;border-radius:999px;border:0;text-decoration:none;cursor:pointer;
  transition:transform var(--mk-ease),filter var(--mk-ease);
}
.mk-btn-gold:hover{transform:translateY(-2px);filter:brightness(1.06);color:var(--mk-navy)}
.mk-badge{
  display:inline-block;background:var(--mk-teal-10);color:var(--mk-teal-d);
  font:600 .8rem var(--mk-font-display);padding:.25em .9em;border-radius:999px;
}

/* ---------- 7) صفحة المنتج ---------- */
body .product-entry__title,
body .main-title,
body h1.product-title{
  font-family:var(--mk-font-display)!important;font-weight:700!important;color:var(--mk-navy)!important;
}
body .product-entry__price,
body .price-wrapper .total-price,
body .product-single .s-product-card-price{
  color:var(--mk-royal)!important;font-family:var(--mk-font-display)!important;font-weight:700!important;
}
/* صورة المنتج الرئيسية: إطار ناعم بدون قص */
body .product-single .swiper-slide img,
body .details-slider img{object-fit:contain!important;background:#fff!important;border-radius:var(--mk-radius-l)!important}
/* خيارات المنتج */
body salla-product-options .s-product-options-option-label,
body .s-product-options-option-label{font-family:var(--mk-font-display)!important;font-weight:600!important}
body .s-product-options-thumbnails-wrapper label,
body .s-product-options-radios-wrapper label,
body .s-product-options-values label{
  border-radius:999px!important;border-color:var(--mk-line)!important;transition:border-color .2s ease,background .2s ease!important;
}
body .s-product-options-values input:checked + label,
body .s-product-options-radios-wrapper input:checked + label{
  border-color:var(--mk-teal)!important;background:var(--mk-teal-10)!important;color:var(--mk-teal-d)!important;
}

/* ---------- 8) ميزات المتجر والتبويبات ---------- */
body .s-block--features__item{
  background:#fff!important;border:1px solid var(--mk-line)!important;border-radius:20px!important;
  box-shadow:0 12px 28px -22px rgba(11,31,58,.45)!important;position:relative!important;overflow:hidden!important;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease!important;
}
body .s-block--features__item::before{
  content:""!important;position:absolute!important;inset-inline:0!important;top:0!important;height:4px!important;
  background:var(--mk-grad)!important;
}
body .s-block--features__item:hover{transform:translateY(-3px)!important;box-shadow:var(--mk-shadow-m)!important;border-color:var(--mk-teal)!important}
body .s-block--features__item h2,
body .s-block--features__item h3{font-family:var(--mk-font-display)!important;font-weight:700!important;color:var(--mk-navy)!important}
body .s-block--features__item i,
body .s-block--features__item .feature-icon{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:56px!important;height:56px!important;border-radius:18px!important;font-size:24px!important;
  background:linear-gradient(145deg,#63D5DD,#12A8B5 55%,#0B7C87)!important;color:#fff!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 10px 20px -10px rgba(18,168,181,.8)!important;
}
/* تبويب الأقسام النشط */
body .tab-trigger.is-active,
body .tab-trigger.is-active:hover{background:var(--mk-navy)!important;border-color:transparent!important;color:#fff!important}
body .tab-trigger.is-active *{color:#fff!important}

/* ---------- 9) الفوتر: كحلي مثل البانرات مع توهج ذهبي وكتاب باهت ---------- */
body .store-footer{
  position:relative!important;
  background:
    radial-gradient(55% 90% at 0% 100%,rgba(200,164,100,.22),transparent 65%),
    radial-gradient(45% 80% at 100% 0%,rgba(18,168,181,.18),transparent 70%),
    radial-gradient(rgba(255,255,255,.06) 1px,transparent 1.3px) 0 0/24px 24px,
    linear-gradient(160deg,#0E2A55,#0B1F3A)!important;
  color:#B8C6DD!important;
  font-family:var(--mk-font-body)!important;
  border-top:0!important;
  margin-top:48px!important;
  overflow:hidden!important;
}
body .store-footer::before{
  content:""!important;position:absolute!important;inset-inline:0!important;top:0!important;height:4px!important;
  background:linear-gradient(90deg,#12A8B5,#C8A464)!important;z-index:2!important;pointer-events:none!important;
}
/* كتاب مفتوح باهت في الزاوية */
body .store-footer::after{
  content:""!important;position:absolute!important;pointer-events:none!important;
  left:-50px!important;bottom:-70px!important;width:320px!important;height:320px!important;opacity:.08!important;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9D3A6' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 6c3-1.5 6.5-1.5 10 1 3.5-2.5 7-2.5 10-1v12c-3-1.5-6.5-1.5-10 1-3.5-2.5-7-2.5-10-1z'/><path d='M12 7v12'/><path d='M12 5.5c0-2.5 2-4 4.5-4 0 2.5-2 4-4.5 4z'/></svg>") center/contain no-repeat!important;
}
body .store-footer .store-footer__inner,
body .store-footer .container,
body .store-footer > div{position:relative!important;z-index:1!important;background:transparent!important}
body .store-footer h3,
body .store-footer h4,
body .store-footer .footer-title{
  position:relative!important;font-family:var(--mk-font-display)!important;font-weight:700!important;
  font-size:1.05rem!important;color:#fff!important;padding-bottom:10px!important;margin-bottom:14px!important;
}
body .store-footer h3::after,
body .store-footer h4::after,
body .store-footer .footer-title::after{
  content:""!important;position:absolute!important;inset-inline-start:0!important;bottom:0!important;
  width:34px!important;height:3px!important;border-radius:2px!important;background:linear-gradient(90deg,#12A8B5,#C8A464)!important;
}
body .store-footer p,
body .store-footer li,
body .store-footer span{color:#B8C6DD!important}
body .store-footer a{color:#fff!important;text-decoration:none!important;transition:color .2s ease!important}
body .store-footer a:hover{color:var(--mk-teal-l)!important}
body .store-footer .footer-list li{margin-bottom:8px!important}
/* أيقونات التواصل */
body .store-footer .s-social-link a,
body .store-footer .social-link a,
body .store-footer .s-social-icon,
body .store-footer .contact-icon{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:38px!important;height:38px!important;border-radius:50%!important;
  background:rgba(255,255,255,.08)!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important;
  transition:background .2s ease,transform .2s ease!important;
}
body .store-footer .s-social-link a:hover,
body .store-footer .social-link a:hover{background:var(--mk-teal)!important;border-color:var(--mk-teal)!important;transform:translateY(-2px)!important}
/* ألوان حسابات التواصل الأصلية */
html body .store-footer a[href*="snapchat"],html body .store-footer a[href*="snapchat"]:hover{background:#FFFC00!important;color:#000!important;border-color:#FFFC00!important}
html body .store-footer a[href*="instagram"],html body .store-footer a[href*="instagram"]:hover{background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%)!important;color:#fff!important;border-color:transparent!important}
html body .store-footer a[href*="tiktok"],html body .store-footer a[href*="tiktok"]:hover{background:#000!important;color:#fff!important;border-color:#333!important}
html body .store-footer a[href*="x.com"],html body .store-footer a[href*="twitter"],html body .store-footer a[href*="x.com"]:hover,html body .store-footer a[href*="twitter"]:hover{background:#000!important;color:#fff!important;border-color:#333!important}
html body .store-footer a[href*="wa.me"],html body .store-footer a[href*="whatsapp"],html body .store-footer a[href*="wa.me"]:hover,html body .store-footer a[href*="whatsapp"]:hover{background:#25D366!important;color:#fff!important;border-color:#25D366!important}
html body .store-footer a[href*="snapchat"] *{color:#000!important;fill:#000!important}
html body .store-footer a[href*="instagram"] *,html body .store-footer a[href*="tiktok"] *,html body .store-footer a[href*="x.com"] *,html body .store-footer a[href*="twitter"] *,html body .store-footer a[href*="wa.me"] *,html body .store-footer a[href*="whatsapp"] *{color:#fff!important;fill:#fff!important}
html body .store-footer a[href*="snapchat"]:hover,html body .store-footer a[href*="instagram"]:hover,html body .store-footer a[href*="tiktok"]:hover,html body .store-footer a[href*="x.com"]:hover,html body .store-footer a[href*="twitter"]:hover,html body .store-footer a[href*="wa.me"]:hover,html body .store-footer a[href*="whatsapp"]:hover{transform:translateY(-2px)!important;filter:brightness(1.05)!important}
/* شريط الحقوق السفلي */
body .store-footer .copyright-text,
body .store-footer .store-footer__copyright,
body .store-footer .footer-bottom{
  background:transparent!important;color:#8FA0BA!important;font-size:.9rem!important;
  border-top:1px solid rgba(255,255,255,.08)!important;position:relative!important;z-index:1!important;
}
body .store-footer .copyright-text a,
body .store-footer .footer-bottom a{color:var(--mk-gold-l)!important;font-weight:700!important}
/* الشعار في الفوتر: على لوحة بيضاء ليظهر بألوانه الأصلية فوق الكحلي */
body .store-footer .navbar-brand img,
body .store-footer .footer-logo img,
body .store-footer img[alt*="logo" i]{
  background:#fff!important;padding:10px 16px!important;border-radius:16px!important;
  max-height:76px!important;width:auto!important;box-shadow:0 12px 24px -14px rgba(0,0,0,.6)!important;
}

/* ---------- 10) الجوال وتقليل الحركة ---------- */
@media (max-width:768px){
  body .navbar-brand img{max-height:44px!important}
  body .store-footer::after{width:200px!important;height:200px!important;left:-40px!important;bottom:-40px!important}
  body .s-product-card-entry:hover{transform:none!important}
  /* هامش جانبي لبلوكات HTML حتى لا تلتصق بالحافة */
  body main > .s-block--bundle-html-content{padding-left:12px!important;padding-right:12px!important;box-sizing:border-box!important}
  /* زر السلة كامل داخل البطاقة */
  body .s-product-card-entry .s-product-card-content{padding-left:10px!important;padding-right:10px!important}
  body .s-product-card-entry .s-button-btn,
  body .s-product-card-entry salla-add-product-button .s-button-btn{padding-left:8px!important;padding-right:8px!important;font-size:13px!important;letter-spacing:0!important}
  body .s-product-card-entry .s-button-btn .s-button-text{white-space:nowrap!important}
  body .s-product-card-entry .s-button-btn .sicon-cart-add{margin-left:4px!important}
}
@media (max-width:360px){
  body .s-product-card-entry .s-button-btn .sicon-cart-add{display:none!important}
}
@media (prefers-reduced-motion:reduce){
  body .s-product-card-entry,body .s-product-card-image img,body .s-block--features__item,
  body .main-menu > li > a::after,body .s-button-primary,body .store-footer a{transition:none!important}
}

/* ---------- 11) هيدر ثيم رائد (النسخة الجديدة site-header): شعار في المنتصف وكل الأقسام ظاهرة ---------- */
html body .site-header__topnav{background:linear-gradient(90deg,#0B1F3A,#0E2A55 60%,#0B1F3A)!important;border-bottom:0!important}
html body .site-header__topnav,html body .site-header__topnav a,html body .site-header__topnav span,html body .site-header__topnav svg{color:#C8D3E4!important}
html body .site-header__topnav a:hover,html body .site-header__topnav a:hover span{color:var(--mk-gold-l)!important}
html body .site-header__brand{width:auto!important;height:auto!important}
html body .site-header__brand img{width:auto!important;height:44px!important;max-width:200px!important;object-fit:contain!important;border-radius:0!important}
@media(min-width:992px){
  html body .site-header__bar-inner{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;grid-template-areas:"toggle brand actions" "nav nav nav"!important;height:auto!important;min-height:0!important;padding-top:12px!important;row-gap:2px!important}
  html body .site-header__nav-toggle{grid-area:toggle!important}
  html body .site-header__brand{grid-area:brand!important;justify-self:center!important}
  html body .site-header__brand img{height:60px!important;max-width:260px!important}
  html body .site-header__actions{grid-area:actions!important;justify-self:end!important;align-self:center!important}
  html body .site-header__mainmenu{grid-area:nav!important;width:100%!important;justify-content:center!important;height:auto!important}
  html body .site-header__mainmenu .site-header__oneline-menu,
  html body .site-header__mainmenu .main-menu{height:auto!important;justify-content:center!important}
  html body .site-header__mainmenu .main-menu>li{height:auto!important}
  html body .site-header__mainmenu .main-menu>li>a{padding:12px 9px 14px!important;font-size:14px!important;font-weight:600!important;white-space:nowrap!important}
}

html body .site-header__bar{background:#fff!important;position:relative!important;box-shadow:0 8px 24px -20px rgba(11,31,58,.35)!important}
html body .site-header__bar::after{content:""!important;position:absolute!important;inset-inline:0!important;bottom:0!important;height:3px!important;background:linear-gradient(90deg,#12A8B5,#C8A464)!important;pointer-events:none!important}

/* إصلاح لون عنوان بانر صفحات التصنيفات (كان يرث الكحلي من قاعدة العناوين العامة) */
html body .mkt-cb .cb-h,
html body .mkt-cb h1,
html body .mkt-cb h2{color:#FFFFFF!important}

/* ========== إصلاحات مراجعة المتجر 29-11 ========== */

/* 1) عنوان بانر «خطوات الشراء» كان كحلي على خلفية كحلية */
html body .mkt-journey .mj-h{color:#FFFFFF!important}

/* 2) مسافة داخلية لمحتوى بطاقة المنتج (الاسم والسعر كانا ملتصقين بالحافة) */
html body .s-product-card-entry .s-product-card-content{padding:14px 12px 12px!important}

/* 3) زر «أضف إلى السلة» كان يُقص في البطاقات الضيقة */
html body .s-product-card-entry .s-product-card-content-footer .s-button-btn{
  padding-inline:10px!important;font-size:13px!important;white-space:nowrap!important;min-width:0!important}
html body .s-product-card-entry .s-product-card-content-footer .s-button-text{
  overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}

/* 4) تكبير الشعار في الهيدر والفوتر (شعار الفوتر على خلفية بيضاء ليظهر فوق الكحلي) */
html body .site-header__brand img{height:72px!important;width:auto!important;object-fit:contain!important}
html body .store-footer__logo img{
  height:64px!important;width:auto!important;max-width:220px!important;object-fit:contain!important;
  background:#FFFFFF!important;padding:8px 14px!important;border-radius:14px!important;box-sizing:content-box!important}
@media (max-width:767px){
  html body .site-header__brand img{height:52px!important}
}

/* 5) إخفاء عنوان التصنيف المكرر تحت بانر التصنيف (يبقى موجودًا لمحركات البحث) */
html body:has(.mkt-cb) #page-main-title{
  position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;
  clip:rect(0 0 0 0)!important;white-space:nowrap!important;margin:0!important;padding:0!important}
html body .mkt-cb{margin-bottom:20px!important}

/* 6) وضوح النص الصغير على كتب رف الأقسام */
html body .mkt-cats .mb-d{opacity:1!important;font-weight:600!important;font-size:12px!important}
html body .mkt-cats .mb-book.c-gold .mb-d{color:#0B1F3A!important}

/* 7) زر «جولة في المكتبة» ينزل بنعومة إلى رف أقسام المكتبة */
html{scroll-behavior:smooth}
html body #library-shelves{scroll-margin-top:110px}
/* 8) توحيد عنوان المنتجات المتحركة مع باقي عناوين الأقسام */
html body .s-products-carousel__title{
  display:flex!important;align-items:center!important;gap:12px!important;
  font-family:var(--mk-font-display)!important;font-weight:700!important;
  font-size:clamp(1.25rem,2.5vw,2rem)!important;line-height:1.3!important;color:var(--mk-navy)!important}
html body .s-products-carousel__title::before{
  content:""!important;flex:0 0 auto!important;width:6px!important;height:1.15em!important;
  border-radius:3px!important;background:var(--mk-grad-v)!important}
/* 9) عمود «زوري المكتبة» في الفوتر (يُضاف من JavaScript المخصص) */
html body .mk-visit{min-width:0}
@media (min-width:1024px){
  html body .store-footer__inner > .container.grid:has(.mk-visit){
    grid-auto-flow:row!important;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.6fr)!important}
  html body .store-footer__inner > .container.grid:has(.mk-visit) > .store-footer__brand{grid-column:auto!important;padding-inline-end:24px!important}
}
html body .mk-visit .mk-visit__card{background:rgba(255,255,255,.06);border:1px solid rgba(18,168,181,.45);border-radius:14px;padding:14px;max-width:340px}
html body .mk-visit .mk-visit__row{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}
html body .mk-visit .mk-visit__ico{flex:0 0 30px;height:30px;border-radius:9px;background:var(--mk-teal);display:flex;align-items:center;justify-content:center}
html body .mk-visit .mk-visit__addr{margin:0;font-size:14px;line-height:1.7;color:#fff}
html body .mk-visit .mk-visit__addr span{display:block;font-size:13px;color:#C2CFE3}
html body .mk-visit .mk-visit__btn{display:inline-flex;align-items:center;gap:10px;max-width:100%;line-height:1.4;background:var(--mk-gold);color:var(--mk-navy)!important;border-radius:999px;padding:6px 14px 6px 6px;font-weight:700;font-size:13px;text-decoration:none;transition:filter var(--mk-ease)}
html body .mk-visit .mk-visit__btn:hover{filter:brightness(1.07);color:var(--mk-navy)!important}
html body .mk-visit .mk-visit__gm{flex:0 0 30px;height:30px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center}
@media (max-width:639px){
  html body .mk-visit{min-width:0}
  html body .mk-visit .mk-visit__card{max-width:none}
}
/* 10-ب) إظهار الفوتر على الجوال (الثيم يخفيه تحت 768px) — لا يؤثر على التابلت والكمبيوتر */
@media (max-width:767px){
  html body .store-footer .store-footer__inner{display:block!important;padding-top:28px!important;padding-bottom:6px!important;border-bottom:1px solid rgba(255,255,255,.15)!important}
  html body .store-footer .store-footer__inner > .container.grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:24px 16px!important}
  html body .store-footer .store-footer__brand{grid-column:1/-1!important;text-align:center!important;padding:0!important}
  html body .store-footer .store-footer__brand .store-footer__logo{justify-content:center!important;margin-inline:auto!important}
  html body .store-footer .store-footer__desc{margin-inline:auto!important;font-size:13px!important}
  html body .store-footer .store-footer__trust{justify-content:center!important}
  html body .store-footer .store-footer__links h3,
  html body .store-footer .store-footer__contact-list h3,
  html body .store-footer .mk-visit h3{font-size:15px!important;margin-bottom:12px!important}
  html body .store-footer .store-footer__contact-list{font-size:12px!important;word-break:break-word}
  html body .store-footer .mk-visit{grid-column:1/-1!important}
  html body .store-footer .mk-visit .mk-visit__btn{display:flex!important;width:100%!important;justify-content:center!important}
  html body .store-footer .store-footer__bottom{display:block!important;text-align:center!important;padding-top:16px!important;padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  html body .store-footer .store-footer__bottom > *{justify-content:center!important;margin-inline:auto!important}
}