/* منجاز — صفحة المنتج: ترويسة ثابتة، الشعار في الوسط، السلة يسار، ولسان الشراء السريع بقدر كلمته.
   تُحمَّل آخر ورقة في product.php. */


/* ترويسة ثابتة دائماً: fixed بدل sticky لأن طبقات التمرير القديمة تجعل body حاوية تمرير فيتعطل sticky */
html body.shop header.top{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:80!important;width:100%}
html body.shop{padding-top:var(--mj-hh,76px)!important}

/* السلة عند الحافة اليسرى دائماً */
html body.shop header.top .cart-fab{order:99;margin-inline-start:auto!important;flex:none}
/* أيقونة السلة بنفس لغة أيقونات المنصة (مثل زر القائمة): مربع أبيض مستدير بخط خارجي */
html body.shop header.top .cart-fab{width:48px;height:48px;border-radius:16px;border:0;background:#fff!important;color:var(--b1,#155066)!important;box-shadow:0 6px 18px rgba(21,80,102,.10)!important}
html body.shop header.top .cart-fab .ic{width:22px;height:22px;stroke-width:1.8}
html body.shop header.top .cart-fab .cart-n{top:-5px;right:-5px;background:#E0903B;color:#fff;border:2px solid #fff;box-sizing:content-box}
html body.shop header.top .acts{order:5}

@media(max-width:820px){
  html body.shop header.top .wrap{position:relative;justify-content:space-between;gap:0}
  /* الشعار في منتصف الشريط */
  html body.shop header.top .logo{position:absolute!important;inset-inline:0;left:50%;right:auto;transform:translateX(-50%);margin:0!important;display:flex;justify-content:center;width:auto;z-index:1}
  html body.shop header.top .logo img{height:46px;width:auto}
  /* القائمة يمين، السلة يسار */
  html body.shop header.top .burger{order:0;position:relative;z-index:2}
  html body.shop header.top .cart-fab{order:9;position:relative;z-index:2}
}

/* لسان الشراء السريع: ارتفاعه بقدر الكلمة */
html body.shop .qb-tab,html body.mj-commerce-v2 .qb-tab{bottom:auto!important;top:42%!important;height:auto!important;max-height:none!important;width:auto;padding:11px 7px!important;gap:5px!important;justify-content:center}
html body.shop .qb-tab span{line-height:1.2!important;letter-spacing:0!important;white-space:nowrap}

/* صفحة المنتج: «اشترِ الآن» + أيقونة السلة في صف، وApple Pay تحتهما مباشرة بشعار أبيض ظاهر */
html body.shop .mj-product-shell .st-acts{display:grid!important;grid-template-columns:minmax(0,1fr) 54px!important;gap:9px!important;align-items:stretch!important}
html body.shop .mj-product-shell .st-acts>.btn.pri,html body.shop .mj-product-shell .st-acts>.soon{grid-column:1!important}
html body.shop .mj-product-shell .st-acts>.pd-cart{grid-column:2!important;width:54px!important;min-width:54px!important;padding:0!important;font-size:0!important;line-height:0!important;gap:0!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important}
html body.shop .mj-product-shell .st-acts>.pd-cart svg{width:23px!important;height:23px!important;margin:0!important}
html body.shop .mj-product-shell .st-acts>.btn.ghost{grid-column:1/-1!important}
html body.shop .mj-product-shell .st-acts>.st-apple{grid-column:1/-1!important;min-height:50px!important;border-radius:14px!important;background:#000!important;border:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;cursor:pointer}
html body.shop .mj-product-shell .st-acts>.st-apple img,html body.shop .qb-b.apple img,html body.shop .qb-pay-logo{filter:brightness(0) invert(1)!important;height:24px!important;width:auto!important}
html body.mj-commerce-v2 .qb-b.apple{background:#000!important;border-color:#000!important}
/* معرض بخمس صور (منتجات الألوان الخمسة): كل المصغّرات في صف واحد بدل تدلّي الخامسة وحدها */
body.shop.mj-commerce-v2 .pg-thumbs:has(button:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
/* صور المنتج مربعة التصميم: الإطار مربع والصورة تملؤه (كانت تظهر صغيرة داخل إطار 4:3 بهوامش) */
body.shop.mj-commerce-v2 .mj-product-shell .pd-img .pg-main{aspect-ratio:1/1!important;height:auto!important;border-radius:16px!important}
body.shop.mj-commerce-v2 .mj-product-shell .pd-img .pg-main>img{padding:0!important;object-fit:cover!important;width:100%!important;height:100%!important;aspect-ratio:1/1!important;border-radius:0!important;background:transparent!important}
body.shop.mj-commerce-v2 .mj-product-shell .pd-img{padding:10px!important}
