/* zein-refresh — zeinjuridique.com. ألوان الدار نفسها: عنابي #5B0F1A / #35070D / #7A1E27 وذهبي #C8A46A / #E7D4AF / #A7834F.
   لا قاعدة هنا تغيّر لون نصّ أو خطّاً. قواعد الحركة كلّها تحت html.zr-motion (يضيفه سكربت صغير في الرأس إلا لمن طلب تقليل الحركة). */

/* ═════════ (١) علامة كتاب بدل القلب في «الأمنيات» ═════════ */

/* الترويسة: الأيقونة بلون نصّ الرابط نفسه (قناع)، والنصّ «الأمنيات» والعدد كما هما */
html body .zein-header-wishlist > svg{display:none!important}
html body .zein-header-wishlist::before{content:"";display:block;flex:0 0 auto;width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V20.5l-6.5-4.2-6.5 4.2V4.5a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V20.5l-6.5-4.2-6.5 4.2V4.5a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center/contain no-repeat}

/* البطاقات والكتب ذات الصلة (القالب يرسم القلب خلفيةً لـ a::before) */
html body .zein-wishlist-control--card a::before,
html body .zein-wishlist-control--related a::before,
html body.woocommerce ul.products li.product > .yith-wcwl-add-to-wishlist a::before,
html body ul.products li.product > .yith-wcwl-add-to-wishlist a::before,
html body .products .product > .yith-wcwl-add-to-wishlist a::before,
html body.single-product .zein-wishlist-control--single a::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V20.5l-6.5-4.2-6.5 4.2V4.5a1 1 0 0 1 1-1Z' fill='none' stroke='%235B0F1A' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E")!important}

/* محفوظ: علامة ممتلئة بيضاء على العنابي (الحالة القديمة …browse والجديدة …--added) */
html body .zein-wishlist-control--card a.yith-wcwl-add-to-wishlist-button--added,
html body .zein-wishlist-control--related a.yith-wcwl-add-to-wishlist-button--added,
html body.single-product .zein-wishlist-control--single a.yith-wcwl-add-to-wishlist-button--added{background:#5B0F1A!important;border-color:#5B0F1A!important}
html body .zein-wishlist-control--card a.yith-wcwl-add-to-wishlist-button--added::before,
html body .zein-wishlist-control--related a.yith-wcwl-add-to-wishlist-button--added::before,
html body.single-product .zein-wishlist-control--single a.yith-wcwl-add-to-wishlist-button--added::before,
html body .zein-wishlist-control--card :is(.yith-wcwl-wishlistaddedbrowse,.yith-wcwl-wishlistexistsbrowse) a::before,
html body .zein-wishlist-control--related :is(.yith-wcwl-wishlistaddedbrowse,.yith-wcwl-wishlistexistsbrowse) a::before,
html body.single-product .zein-wishlist-control--single :is(.yith-wcwl-wishlistaddedbrowse,.yith-wcwl-wishlistexistsbrowse) a::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.5h11a1 1 0 0 1 1 1V20.5l-6.5-4.2-6.5 4.2V4.5a1 1 0 0 1 1-1Z' fill='%23ffffff' stroke='%23ffffff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
html body .zein-wishlist-control a.yith-wcwl-add-to-wishlist-button > svg{display:none!important}

/* صفحة الكتاب: نصّ الزرّ (القالب كتبه للأزرار القديمة فلم يظهر مع زرّ YITH الجديد) — بخطّ القالب وحجمه ولونه */
html body.single-product .zein-wishlist-control--single a.yith-wcwl-add-to-wishlist-button::after{content:"احفظ في الأمنيات";font-family:"Cairo",sans-serif;font-size:11.5px;font-weight:700}
html body.single-product .zein-wishlist-control--single a.yith-wcwl-add-to-wishlist-button--added{color:#fff!important}
html body.single-product .zein-wishlist-control--single a.yith-wcwl-add-to-wishlist-button--added::after{content:"محفوظ في الأمنيات"}

/* ═════════ (٢) صفحة الكتاب ═════════ */

/* الحفظ والمشاركة في صفّ واحد (كان الحفظ وحده في سطر على الهاتف) */
html body.single-product .zein-sp__tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important}
html body.single-product .zein-sp__tools > *{min-width:0}
html body.single-product .zein-wishlist-control--single .yith-add-to-wishlist-button-block{margin:0!important}

/* سطر التقييم الفارغ كان يترك فراغاً تحت اسم المؤلف */
html body.single-product .zein-sp__ratingline:not(:has(*)){display:none!important}

/* مسار التصفح سطراً واحداً (عنوان الكتاب في آخره يُختصر بـ…؛ هو نفسه العنوان الكبير تحته) */
html body.single-product .zein-sp__crumbs .woocommerce-breadcrumb{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* الغلاف: زوايا كزوايا الكتاب لا تقصّ أطرافه */
html body.single-product .zein-sp__cover-shell .woocommerce-product-gallery__wrapper{border-radius:14px!important}
html body.single-product .zein-sp__cover-shell .woocommerce-product-gallery__image img{border-radius:8px!important}

/* زرّ التكبير: دائرة هادئة بعدسة مرسومة بدل الرمز التعبيري في مربّع أبيض */
html body.single-product .woocommerce-product-gallery__trigger{width:38px!important;height:38px!important;border-radius:50%!important;
  background:rgba(255,253,249,.94)!important;border:1px solid rgba(91,15,26,.16)!important;box-shadow:0 6px 18px rgba(53,7,13,.16)!important;
  display:grid!important;place-items:center!important;font-size:0!important;overflow:hidden}
html body.single-product .woocommerce-product-gallery__trigger > *{display:none!important}
html body.single-product .woocommerce-product-gallery__trigger::before{content:""!important;display:block!important;width:18px!important;height:18px!important;
  position:static!important;border:0!important;transform:none!important;background:#5B0F1A!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center/contain no-repeat}
html body.single-product .woocommerce-product-gallery__trigger::after{display:none!important}

/* «5 متوفر في المخزون» أصغر قليلاً فوق الكمية (لونه كما هو) */
html body.single-product .zein-sp__cartbox .stock{font-size:13px!important;margin:0 0 8px!important}

/* طرق الدفع: بلا إطار مستدير داخل كل بطاقة (إطار داخل إطار داخل إطار) */
html body.single-product .zein-sp__payment-method-copy{border:0!important;background:none!important;border-radius:0!important;padding:0!important;box-shadow:none!important}

/* مبدّل العملة: بلون الدار، وعلى الهاتف في الأسفل لا فوق صندوق الشراء */
html body .woo-multi-currency.wmc-sidebar .wmc-currency{background:#35070D!important}
html body .woo-multi-currency.wmc-sidebar .wmc-currency.wmc-active{background:#5B0F1A!important}
@media (max-width:760px){html body .woo-multi-currency.wmc-sidebar{top:auto!important;bottom:14px!important;transform:none!important}}

/* ═════════ (٣) الحركة ═════════ */
.zr-motion{--zr-ease:cubic-bezier(.2,.75,.15,1);--zr-start:0s}
.zr-intro-run{--zr-start:1.2s}

/* شريط القراءة الذهبي */
.zr-progress{position:fixed;inset:0 0 auto 0;height:3px;z-index:100000;pointer-events:none;background:linear-gradient(270deg,#A7834F,#E7D4AF 45%,#C8A46A);transform:scaleX(0);transform-origin:100% 50%}

/* الافتتاحية: الشعار يُكتب من اليمين على العنابي ثم خطّ ذهبي، مرّة في الزيارة (الرئيسية) */
.zr-intro{display:none}
.zr-intro-run .zr-intro{position:fixed;inset:0;z-index:100001;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 42%,#7A1E27 0%,#5B0F1A 45%,#35070D 100%);animation:zr-intro-out .8s var(--zr-ease,ease) 1.2s forwards}
.zr-intro__mark{display:grid;justify-items:center;gap:24px;animation:zr-intro-mark 1.3s cubic-bezier(.2,.75,.15,1) both}
.zr-intro__mark img{display:block;width:min(460px,52vw);height:auto;max-height:40vh;object-fit:contain;clip-path:inset(0 0 0 100%);animation:zr-write 1s cubic-bezier(.2,.75,.15,1) .1s forwards}
.zr-intro__text{font-weight:700;font-size:clamp(28px,6vw,60px);line-height:1.4;color:#fff;text-align:center;clip-path:inset(0 0 0 100%);animation:zr-write 1s cubic-bezier(.2,.75,.15,1) .1s forwards}
.zr-intro__mark i{display:block;width:min(320px,62vw);height:1px;background:linear-gradient(90deg,transparent,#E7D4AF,transparent);transform:scaleX(0);animation:zr-line .8s cubic-bezier(.2,.75,.15,1) .45s forwards}
@media (max-width:600px){.zr-intro__mark img{width:84vw}.zr-intro__mark{gap:18px}}
@keyframes zr-intro-out{to{transform:translateY(-100%);visibility:hidden}}
@keyframes zr-intro-mark{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
@keyframes zr-write{to{clip-path:inset(0 0 0 0)}}
@keyframes zr-line{to{transform:scaleX(1)}}

/* الواجهة: حروف تطفو خلف المحتوى، والنصّ والصورة يدخلان بهدوء (الواجهة نفسها كما هي) */
.zr-glyph-host{position:relative;isolation:isolate}
.zr-glyphs{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.zr-motion .zl-hero__copy{animation:zr-up 1s cubic-bezier(.2,.75,.15,1) calc(var(--zr-start) + .05s) backwards}
.zr-motion .zl-hero__visual{animation:zr-rise 1.1s cubic-bezier(.2,.75,.15,1) calc(var(--zr-start) + .2s) backwards}
@keyframes zr-up{from{opacity:0;translate:0 26px}to{opacity:1;translate:0 0}}
@keyframes zr-rise{from{opacity:0;translate:0 30px;scale:.97}to{opacity:1;translate:0 0;scale:1}}

/* العناوين: الكلمات تصعد من قناع */
.zr-motion .zr-split .zr-wm{display:inline-block;overflow:hidden;vertical-align:top;padding-block:.16em;margin-block:-.16em}
.zr-motion .zr-split .zr-wi{display:inline-block;translate:0 115%;transition:translate 1.05s cubic-bezier(.2,.75,.15,1);transition-delay:calc(var(--j,0)*70ms + .1s)}
.zr-motion .zr-split.zr-in .zr-wi{translate:0 0}

/* البطاقات والكتل ترتفع عند الوصول إليها */
.zr-motion .zr-rv{opacity:0;translate:0 34px;transition:opacity .9s cubic-bezier(.2,.75,.15,1) calc(var(--i,0)*80ms),translate 1s cubic-bezier(.2,.75,.15,1) calc(var(--i,0)*80ms),rotate 1s cubic-bezier(.2,.75,.15,1) calc(var(--i,0)*80ms),scale .9s cubic-bezier(.2,.75,.15,1) calc(var(--i,0)*80ms)}
.zr-motion .zr-rv.zr-in{opacity:1;translate:0 0}
.zr-motion :is(.zl-book-card,.zein-sp__r-card).zr-rv{translate:0 46px;rotate:x 12deg;transform-origin:50% 100%}
.zr-motion :is(.zl-book-card,.zein-sp__r-card).zr-rv.zr-in{translate:0 0;rotate:x 0deg}
.zr-motion .zl-author.zr-rv{translate:0 22px;scale:.94}
.zr-motion .zl-author.zr-rv.zr-in{translate:0 0;scale:1}

/* الأغلفة كتباً مجسّمة: تميل مع المؤشّر وعليها لمعة (الحاسوب) */
.zr-motion :is(.zl-book-card__cover,.zein-sp__r-cover){position:relative}
.zr-motion :is(.zl-book-card__cover,.zein-sp__r-cover) img{transform:perspective(700px) rotateX(var(--zr-rx,0deg)) rotateY(var(--zr-ry,0deg));transition:transform .55s cubic-bezier(.2,.75,.15,1)}
.zr-motion :is(.zl-book-card__cover,.zein-sp__r-cover)::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(circle at var(--zr-gx,30%) var(--zr-gy,20%),rgba(255,255,255,.36),rgba(231,212,175,.10) 35%,transparent 62%);opacity:0;transition:opacity .4s}
.zr-motion .zr-tilting::after{opacity:1}

/* أزرار مغناطيسية (الحاسوب) */
.zr-motion :is(.zl-btn,.zl-book-card__button){translate:var(--zr-bx,0px) var(--zr-by,0px);transition:translate .3s cubic-bezier(.2,.75,.15,1),background-color .25s,color .25s,box-shadow .3s,border-color .25s}

/* هالات تتحرّك على الأشرطة العنابية */
.zr-aura-host{position:relative;overflow:hidden;isolation:isolate}
.zr-aura{position:absolute;inset:0;z-index:-1;pointer-events:none}
.zr-aura i{position:absolute;width:42vmax;height:42vmax;border-radius:50%;filter:blur(70px)}
.zr-aura i:nth-child(1){background:#C8A46A;opacity:.18;bottom:-30vmax;left:-12vmax;animation:zr-drift1 18s ease-in-out infinite alternate}
.zr-aura i:nth-child(2){background:#9c2c39;opacity:.32;top:-28vmax;right:-14vmax;animation:zr-drift2 22s ease-in-out infinite alternate}
@keyframes zr-drift1{to{transform:translate(16vmax,-8vmax) scale(1.15)}}
@keyframes zr-drift2{to{transform:translate(-14vmax,10vmax) scale(.9)}}

@media (prefers-reduced-motion:reduce){.zr-intro{display:none!important}}
