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

/* ===== الصفحة الرئيسية ===== */
body.index{background:#F0EBFD}

/* ===== صفحة الملزمة: التصميم الجديد (يشغله كود الجافاسكربت) ===== */
body.product-single{background:#F0EBFD}
body.product-single:not(.mdp-on) .container--product-details,body.product-single:not(.mdp-on) .container--breadcrumbs{opacity:0;animation:mdp-reveal .3s ease 1.5s forwards}
@keyframes mdp-reveal{to{opacity:1}}
body.mdp-on .container--product-details,body.mdp-on .container--breadcrumbs,body.mdp-on #main-content > div.container:has(> salla-products-slider[source="related"]){display:none!important}
body.mdp-on #main-content{background:#F0EBFD}

/* ===== احتياط: لو ما اشتغل التصميم الجديد، هذي تحسينات صفحة سلة العادية ===== */
body.product-single:not(.mdp-on),body.product-single:not(.mdp-on) #main-content{background:#F0EBFD}
body.product-single:not(.mdp-on) .main-content h1{font-family:'Readex Pro',system-ui,sans-serif;color:#15133B;font-size:clamp(22px,3vw,30px);line-height:1.5;margin-bottom:12px}
body.product-single:not(.mdp-on) .main-content > div.whitespace-nowrap p{font-family:'Readex Pro',system-ui,sans-serif;color:#6A3FD0;font-size:26px}

/* الصورة: إطار ناعم + شارة ذهبية + تكبير خفيف + بدون أسهم لو الصورة وحدة */
body.product-single:not(.mdp-on) .details-slider{border-radius:22px!important;overflow:hidden;background:#FFFFFF;border:1px solid #E2DAF8;box-shadow:0 18px 40px rgba(43,28,110,.12)}
body.product-single:not(.mdp-on) .details-slider img{transition:transform .5s ease}
@media (hover:hover){body.product-single:not(.mdp-on) .details-slider:hover img{transform:scale(1.03)}}
body.product-single:not(.mdp-on) .details-slider .promotion-title{background:#F5C400!important;color:#15133B!important;font-weight:700;border-radius:999px!important;padding:6px 14px!important;top:14px!important;right:14px!important;left:auto!important;width:auto!important;box-shadow:0 6px 16px rgba(245,196,0,.35)}
body.product-single:not(.mdp-on) .details-slider .swiper-button-lock,
body.product-single:not(.mdp-on) .details-slider:not(:has(.swiper-slide + .swiper-slide)) .s-slider-nav-arrow{display:none!important}

/* شارة "تم شراؤه" بشكل أوضح */
body.product-single:not(.mdp-on) .main-content > div.inline-flex{background:#FFF6D6!important;border:1px solid #F5C400;border-radius:999px!important;padding:8px 4px!important}
body.product-single:not(.mdp-on) .main-content > div.inline-flex > div{color:#7A5A00!important;font-weight:700}
body.product-single:not(.mdp-on) .main-content > div.inline-flex .sicon-fire{color:#E8590C}

/* مربع الملفات: نخلي "وصول مجاني للملفات الجديدة" بس */
body.product-single:not(.mdp-on) digital-files-settings li:not(:last-child){display:none!important}
body.product-single:not(.mdp-on) digital-files-settings section{background:#EAF8F1!important;border:1px solid #CBEBDB;border-radius:14px!important;margin-bottom:16px!important}
body.product-single:not(.mdp-on) digital-files-settings li:last-child,body.product-single:not(.mdp-on) digital-files-settings li:last-child *{color:#2A7A55!important;font-weight:600}

/* خانة "المرفقات / إضافة ملاحظة" والكمية ما لها داعي في ملزمة رقمية */
body.product-single:not(.mdp-on) .product-form > section:has([id^="note_"]){display:none!important}
body.product-single:not(.mdp-on) .sticky-product-bar label.form-label,
body.product-single:not(.mdp-on) .sticky-product-bar salla-quantity-input{display:none!important}
body.product-single:not(.mdp-on) .sticky-product-bar salla-add-product-button{margin-top:0!important}

/* صندوق الشراء: كرت واحد بإطار بنفسجي (بالجوال الشريط السفلي يبقى مثل ما هو) */
body.product-single:not(.mdp-on) .product-form > section.flex *{font-family:'Readex Pro',system-ui,sans-serif}
@media (min-width:640px){
  body.product-single:not(.mdp-on) .product-form > section.flex{border:2px solid #6A3FD0;border-bottom:0;border-radius:20px 20px 0 0!important;background:#FFFFFF}
  body.product-single:not(.mdp-on) .product-form > section.sticky-product-bar{border:2px solid #6A3FD0;border-top:0;border-radius:0 0 20px 20px!important;box-shadow:0 18px 40px rgba(106,63,208,.16)}
}
@media (max-width:639px){
  body.product-single:not(.mdp-on) .product-form > section.flex{border-radius:16px 16px 0 0!important}
}
body.product-single:not(.mdp-on) .sticky-product-bar salla-add-product-button button{height:54px;border-radius:14px!important;background:#6A3FD0!important;border-color:#6A3FD0!important;color:#FFFFFF!important;font-family:'Readex Pro',system-ui,sans-serif;font-size:17px;font-weight:700;box-shadow:0 10px 22px rgba(106,63,208,.30);transition:transform .15s ease,background .15s ease}
body.product-single:not(.mdp-on) .sticky-product-bar salla-add-product-button button:hover{background:#5A31BE!important;transform:translateY(-1px)}

/* شريط "باقي كذا يوم" ومزايا الشراء (يضيفها كود الجافاسكربت) */
body.product-single:not(.mdp-on) .mdk-pp-urg{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:12px 16px;border-radius:14px;background:#15133B;color:#FFFFFF;font-family:'Readex Pro',system-ui,sans-serif;font-size:14px}
body.product-single:not(.mdp-on) .mdk-pp-urg b{color:#F5C400;font-weight:700}
body.product-single:not(.mdp-on) .mdk-pp-urg .mdk-pp-dot{width:8px;height:8px;border-radius:50%;background:#F5C400;flex:none;animation:mdk-pulse 1.6s ease-in-out infinite}
body.product-single:not(.mdp-on) .mdk-pp-trust{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-family:'Readex Pro',system-ui,sans-serif}
body.product-single:not(.mdp-on) .mdk-pp-trust li{background:#FFFFFF;border:1px solid #E2DAF8;border-radius:14px;padding:12px 8px;text-align:center;font-size:12.5px;font-weight:600;color:#2A2160;line-height:1.5}
body.product-single:not(.mdp-on) .mdk-pp-trust li span{display:block;font-size:20px;margin-bottom:4px}
@keyframes mdk-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}
@media (prefers-reduced-motion:reduce){body.product-single:not(.mdp-on) .mdk-pp-urg .mdk-pp-dot{animation:none}}