/* ===== Hamada Centrum – السلة: أزرار الإضافة + عدّاد الكمية + درج السلة ===== */
html.cnw-lock{overflow:hidden}
.cnw-cartctl{margin-top:6px;min-height:44px}
.cnw-add,.cnw-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:0 14px;border:0!important;border-radius:10px!important;background:#13296B!important;color:#fff!important;font-size:14px!important;font-weight:800!important;text-decoration:none!important;cursor:pointer;box-sizing:border-box;font-family:inherit;opacity:1!important}
.cnw-add:active,.cnw-btn:active{filter:brightness(.92)}
.cnw-btn.alt{background:#fff!important;color:#101B3A!important;border:2px solid #CCD5E8!important}
.cnw-btn:disabled,.busy{opacity:.55!important;pointer-events:none}
/* عدّاد الكمية */
.cnw-step{display:flex;align-items:stretch;gap:6px;direction:ltr;min-height:44px}
.cnw-step b{flex:1;min-width:34px;display:grid;place-items:center;font-size:16px;color:#101B3A;background:#EEF2FA;border-radius:10px}
.cnw-step button{flex:none;width:44px;height:44px;border:0!important;border-radius:10px!important;font-size:22px!important;font-weight:800!important;line-height:1;cursor:pointer;padding:0!important;font-family:inherit;opacity:1!important}
.cnw-step .cnw-inc{background:#12804A!important;color:#fff!important}
.cnw-step .cnw-dec{background:#fff!important;color:#101B3A!important;border:2px solid #CCD5E8!important}
.cnw-step .cnw-del{background:#FFEDE0!important;color:#1D4FB8!important;font-size:18px!important}
/* زر السلة في الأعلى */
.cnw-cartbtn{position:relative;flex:none;width:44px;height:44px;border:0!important;border-radius:50%!important;background:#EEF2FA!important;color:#101B3A!important;font-size:20px!important;cursor:pointer;padding:0!important;opacity:1!important}
.cnw-cnt{position:absolute;top:-4px;left:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#1D4FB8;color:#fff;font-size:12px;font-style:normal;font-weight:800;line-height:20px;text-align:center;box-sizing:border-box}
.cnw-cnt[hidden]{display:none}
.hsc-ph{gap:8px}
.cnw-ph-logo{height:22px;width:auto;flex:none;display:block}
.cnw-ph-sp{flex:1}
/* درج السلة */
#cnwcart{position:fixed;inset:0;z-index:2147483647;display:none;color:#101B3A;font-family:inherit}
#cnwcart.on{display:block}
#cnwcart .cnwcart-bd{position:absolute;inset:0;background:rgba(8,18,32,.6)}
#cnwcart .cnwcart-p{position:absolute;left:0;right:0;bottom:0;max-height:92vh;display:flex;flex-direction:column;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -12px 34px rgba(0,0,0,.35)}
@media(min-width:700px){#cnwcart .cnwcart-p{left:auto;right:3vw;width:440px;bottom:3vh;border-radius:22px}}
#cnwcart .cnwcart-h{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:3px solid #1D4FB8}
#cnwcart .cnwcart-h img{height:18px;width:auto}
#cnwcart .cnwcart-h b{font-size:17px}
#cnwcart .cnwcart-n{flex:1;color:#5B6786;font-size:14px}
#cnwcart .cnwcart-x{width:42px;height:42px;border:0!important;border-radius:50%!important;background:#EEF2FA!important;color:#101B3A!important;font-size:26px!important;line-height:1;cursor:pointer;padding:0!important}
#cnwcart .cnwcart-b{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px 14px}
#cnwcart .cnwcart-r{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #E8EDF7}
#cnwcart .cnwcart-im{flex:0 0 72px;width:72px;height:72px;border:1px solid #E8EDF7;border-radius:10px;overflow:hidden;background:#fff;display:block}
#cnwcart .cnwcart-im img{width:100%;height:100%;object-fit:contain;display:block}
#cnwcart .cnwcart-i{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
#cnwcart .cnwcart-nm{font-size:13.5px;font-weight:700;line-height:1.4;color:#101B3A!important;text-decoration:none!important}
#cnwcart .cnwcart-u{font-size:12px;color:#5B6786}
#cnwcart .cnwcart-l{flex:none;color:#1D4FB8;font-size:14px;white-space:nowrap}
#cnwcart .cnwcart-empty{text-align:center;padding:36px 10px;color:#5B6786}
#cnwcart .cnwcart-empty span{font-size:46px;display:block}
#cnwcart .cnwcart-empty p{font-size:18px;font-weight:800;color:#101B3A;margin:8px 0 4px}
#cnwcart .cnwcart-f{padding:12px 14px 16px;border-top:1px solid #E4DDD6;display:flex;flex-direction:column;gap:8px;background:#fff;border-radius:0 0 22px 22px}
#cnwcart .cnwcart-t{display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:700}
#cnwcart .cnwcart-t b{font-size:21px;color:#1D4FB8}
#cnwcart .cnwcart-note{font-size:13px;font-weight:800;color:#8A4B00;background:#FFF0D6;border-radius:10px;padding:9px 12px;text-align:center}
#cnwcart .cnwcart-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#cnwcart .cnwcart-f>.cnw-btn:not(.alt){background:#1D4FB8!important}
/* رسالة قصيرة */
.cnw-toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);z-index:2147483647;max-width:90vw;padding:11px 18px;border-radius:12px;background:#101B3A;color:#fff;font-size:14px;font-weight:700;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center}
.cnw-toast.on{opacity:1;transform:translate(-50%,0)}
.cnw-toast.ok{background:#12804A}.cnw-toast.warn{background:#B26A00}.cnw-toast.err{background:#1D4FB8}

/* حالة التوفر */
.cnc-st{display:inline-block;font-size:11.5px;font-weight:800;font-style:normal;padding:2px 8px;border-radius:8px;white-space:nowrap}
.cnc-st.in{background:#E5F5EA;color:#12663A}
.cnc-st.pend{background:#FFF0D6;color:#8A4B00}
.cnc-pr{flex-wrap:wrap}
.cnc-foot{margin:0;padding:12px 14px;background:#FFF8E1;color:#5B3A00;font-size:12.5px;line-height:1.6}
#cnx .cnx-pi .cnc-st{align-self:flex-start}
/* شاشة الفحص وقائمة المنتجات بملء الشاشة */
#cnx .cnx-p{top:0;bottom:0;max-height:none;height:100vh;height:100dvh;border-radius:0}
#cnx .cnx-h{border-radius:0}
@media(min-width:700px){#cnx .cnx-p{width:640px;bottom:0;border-radius:0}}
.hsc-panel{height:100vh!important;height:100dvh!important;max-height:none!important;border-radius:0!important}

/* رأس الصفحة: لوجو نظيف على خلفية بيضاء */
.hsc-ph{background:#fff;border-bottom:3px solid #1D4FB8;padding:12px 14px!important}
