/* nizar-pcat — product page, «التصنيفات» page and category headers.
   Loaded after nizar-sunset on those pages only. Text keeps the site's colours (ink / navy / magenta); white text only on
   the gradient bands, as elsewhere on the site. Motion only under html.ns-motion (set by nizar-sunset, off for
   "reduce motion"); without it everything is shown at rest. */

.npc,.npc-sp,body.npc-product,body.npc-categories,body.npc-archive{
  --npc-ink:var(--ink,#24184a);--npc-navy:var(--navy,#4c2fd0);--npc-mag:var(--copper,#b01f88);--npc-muted:var(--paper-muted,#675d72);
  --npc-line:var(--paper-line,#ecdfe7);--npc-card:var(--paper-light,#fffdfd);--npc-tint:#f6eef7;
  --npc-band:var(--ns-band,linear-gradient(235deg,#3a2aa8 0%,#6c2bc7 34%,#b01f88 70%,#d6336c 100%));
  --npc-btn:var(--ns-btn,linear-gradient(120deg,#4c2fd0 0%,#9a24a6 38%,#d6336c 62%,#ff7a3d 82%,#ffad42 100%));
  --npc-rule:var(--ns-line,linear-gradient(90deg,#4c2fd0,#8a2be2 30%,#d6336c 60%,#ff7a3d 82%,#ffad42));
  --npc-ease:cubic-bezier(.2,.75,.15,1);
  --npc-shadow:0 1px 2px rgba(36,24,74,.06),0 10px 30px -12px rgba(76,47,208,.22);
}
.npc *,.npc *::before,.npc *::after{box-sizing:border-box}
.npc-wrap{width:min(1240px,calc(100% - 32px));margin-inline:auto}
.npc-ico{width:24px;height:24px;flex:none;display:block}
.npc-ico--sm{width:18px;height:18px}
.npc-ico--h{width:22px;height:22px;color:var(--npc-mag)}
.npc-h2{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0;font-family:NizarAmiri,Amiri,serif;font-size:clamp(23px,2.4vw,30px);font-weight:400;line-height:1.5;color:var(--npc-ink)}
.npc-h2>span{font-family:NizarUI,sans-serif;font-size:14px;color:var(--npc-muted)}

/* ---------------------------------------------------------------- icon badges */
.npc-badge{--s:54px;position:relative;display:inline-grid;place-items:center;flex:none;width:var(--s);height:var(--s);border-radius:50%;
  background:var(--npc-band);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 8px 18px -8px rgba(108,43,199,.65);isolation:isolate}
.npc-badge::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.45),transparent 58%)}
.npc-badge .npc-ico{width:56%;height:56%;stroke-width:1.5}
.npc-badge--1{background:linear-gradient(140deg,#4c2fd0,#8a2be2 55%,#d6336c)}
.npc-badge--2{background:linear-gradient(140deg,#6c2bc7,#b01f88 60%,#ff7a3d)}
.npc-badge--3{background:linear-gradient(140deg,#3a2aa8,#6c2bc7 50%,#b01f88)}
.npc-badge--4{background:linear-gradient(140deg,#b01f88,#d6336c 50%,#ffad42)}
.npc-badge--sm{--s:28px;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.npc-badge--sm .npc-ico{width:60%;height:60%;stroke-width:1.8}
.npc-badge--xl{--s:clamp(62px,7vw,84px);background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4),0 18px 40px -18px rgba(20,8,60,.7);backdrop-filter:blur(6px)}

/* ---------------------------------------------------------------- buttons */
.npc-btn{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:10px 22px;border-radius:999px;font-size:15px;font-weight:600;text-decoration:none;transition:transform .35s var(--npc-ease),box-shadow .35s,background-color .3s}
.npc-btn .npc-ico{width:20px;height:20px;transition:transform .35s var(--npc-ease)}
.npc-btn:hover .npc-ico{transform:translateX(-5px)}
.npc-btn--light{background:#fff;color:var(--npc-navy)!important;box-shadow:0 10px 26px -12px rgba(20,8,60,.6)}
.npc-btn--light:hover{transform:translateY(-2px);color:var(--npc-mag)!important}
.npc-btn:focus-visible,.npc-chip:focus-visible,.npc-card__main:focus-visible,.npc-arrow:focus-visible,.npc-rowbtn:focus-visible,.npc-share__btn:focus-visible{outline:3px solid #8a2be2;outline-offset:3px}

/* ================================================================= «التصنيفات» */
.npc-categories .nizar-info-template{padding:0}
.npc-cats{padding-bottom:56px}
.npc-cats__head{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);align-items:end;gap:10px 28px;padding:34px 0 22px}
.npc-cats__title{grid-column:1;margin:0;font-family:NizarAmiri,Amiri,serif;font-size:clamp(38px,5vw,58px);font-weight:400;line-height:1.3;color:var(--npc-ink)}
.npc-nums{grid-column:1;display:flex;flex-wrap:wrap;gap:8px;margin:0}
.npc-nums>span{display:inline-flex;align-items:center;min-height:32px;padding:4px 14px;border-radius:999px;background:var(--npc-tint);font-size:14px;font-weight:500;color:var(--npc-navy)}
.npc-filter{grid-column:2;grid-row:1/3;position:relative;align-self:end}
.npc-filter .npc-ico{position:absolute;inset-inline-start:16px;top:50%;translate:0 -50%;width:20px;height:20px;color:var(--npc-muted);pointer-events:none}
.npc-filter input{width:100%;min-height:52px;padding:10px 48px 10px 18px;border:1px solid var(--npc-line);border-radius:999px;background:#fff;font:inherit;font-size:15px;color:var(--npc-ink);box-shadow:var(--npc-shadow);transition:border-color .3s,box-shadow .3s}
.npc-filter input:focus{outline:0;border-color:#8a2be2;box-shadow:0 0 0 4px rgba(138,43,226,.14),var(--npc-shadow)}

/* hero carousel */
.npc-hero{position:relative;width:min(1240px,calc(100% - 32px));margin:6px auto 0}
.npc-hero__track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;border-radius:28px}
.npc-hero__track::-webkit-scrollbar{display:none}
.npc-slide{position:relative;flex:0 0 100%;scroll-snap-align:start;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:20px;
  min-height:clamp(300px,34vw,380px);padding:clamp(26px,4vw,48px) clamp(24px,4.5vw,60px);border-radius:28px;overflow:hidden;color:#fff;background:var(--npc-band);isolation:isolate}
.npc-slide--1{background:linear-gradient(225deg,#4c2fd0 0%,#8a2be2 45%,#d6336c 100%)}
.npc-slide--2{background:linear-gradient(225deg,#6c2bc7 0%,#b01f88 55%,#ff7a3d 100%)}
.npc-slide--3{background:linear-gradient(225deg,#3a2aa8 0%,#6c2bc7 40%,#b01f88 80%,#ff5f4a 100%)}
.npc-slide::before{content:"";position:absolute;z-index:-1;width:520px;height:520px;inset-inline-end:-160px;top:-220px;border-radius:50%;background:radial-gradient(circle,rgba(255,173,66,.42),transparent 62%)}
.npc-slide__mark{position:absolute;z-index:-1;inset-inline-start:-40px;bottom:-70px;width:300px;height:300px;color:#fff;opacity:.1}
.npc-slide__mark .npc-ico{width:100%;height:100%;stroke-width:.7}
.npc-slide__copy{display:flex;flex-direction:column;align-items:flex-start;gap:12px;position:relative}
.npc-slide__title{margin:6px 0 0;font-family:NizarAmiri,Amiri,serif;font-size:clamp(34px,4.6vw,56px);font-weight:400;line-height:1.25;color:#fff}
.npc-slide__num{margin:0 0 8px;font-size:16px;color:rgba(255,255,255,.9)}
.npc-fan{position:relative;display:block;height:clamp(200px,24vw,290px)}
.npc-fan__c{--j:0;--o:calc(var(--j) - 2);position:absolute;top:50%;left:50%;width:clamp(96px,11vw,150px);aspect-ratio:2/3;
  translate:calc(-50% + var(--o) * -62%) calc(-50% + (var(--o) * var(--o)) * 7%);rotate:calc(var(--o) * -8deg);z-index:calc(5 - (var(--o) * var(--o)));
  border-radius:4px 10px 10px 4px;overflow:hidden;background:#fff;box-shadow:-10px 18px 30px -10px rgba(20,8,60,.6);transition:translate .9s var(--npc-ease),rotate .9s var(--npc-ease),opacity .6s;transition-delay:calc(var(--j) * 70ms)}
.npc-fan__c::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 88%,rgba(0,0,0,.16) 94%,rgba(255,255,255,.18) 100%)}
.npc-fan__c img,.npc-card__covers img,.npc-book__cover img{display:block;width:100%;height:100%;object-fit:cover}
.npc-fan:hover .npc-fan__c{translate:calc(-50% + var(--o) * -70%) calc(-50% + (var(--o) * var(--o)) * 7% - 6px)}
[data-npc-carousel].is-ready .npc-slide:not(.is-active) .npc-fan__c{translate:-50% -10%;rotate:0deg;opacity:0;transition-delay:0s}
[data-npc-carousel].is-ready .npc-slide:not(.is-active) .npc-slide__copy>*{opacity:0;translate:0 16px}
.npc-slide__copy>*{transition:opacity .7s,translate .8s var(--npc-ease)}
.npc-slide__copy>:nth-child(2){transition-delay:.08s}.npc-slide__copy>:nth-child(3){transition-delay:.16s}.npc-slide__copy>:nth-child(4){transition-delay:.24s}
.npc-arrow{position:absolute;top:50%;translate:0 -50%;z-index:3;display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:50%;
  background:rgba(255,255,255,.2);color:#fff;backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);cursor:pointer;transition:background-color .3s,transform .3s var(--npc-ease)}
.npc-arrow:hover{background:rgba(255,255,255,.34);transform:scale(1.06)}
.npc-arrow--prev{inset-inline-start:14px}.npc-arrow--next{inset-inline-end:14px}
.npc-dots{display:flex;justify-content:center;gap:8px;padding:14px 0 0}
.npc-dots button{position:relative;width:10px;height:10px;padding:0;border:0;border-radius:999px;background:#dccfe2;cursor:pointer;overflow:hidden;transition:width .5s var(--npc-ease),background-color .3s}
.npc-dots button[aria-current="true"]{width:42px;background:#e7dcef}
.npc-dots button[aria-current="true"]::after{content:"";position:absolute;inset:0;background:var(--npc-btn);transform-origin:right;animation:npc-dot var(--npc-delay,6s) linear forwards}
[data-npc-carousel]:not(.is-playing) .npc-dots button[aria-current="true"]::after{animation:none}
@keyframes npc-dot{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* sticky chips */
.npc-chips{position:relative;z-index:20;margin-top:22px}
.npc-chips--sticky{position:sticky;top:var(--wp-admin--admin-bar--height,0px);background:rgba(251,247,246,.88);backdrop-filter:saturate(1.4) blur(12px);border-block:1px solid var(--npc-line)}
.npc-chips__track{display:flex;gap:8px;width:min(1240px,calc(100% - 32px));margin-inline:auto;padding:10px 0;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 24px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 24px,#000 calc(100% - 24px),transparent 100%);padding-inline:4px}
.npc-chips__track::-webkit-scrollbar{display:none}
.npc-chip{display:inline-flex;align-items:center;gap:8px;flex:none;min-height:42px;padding:6px 8px 6px 14px;border:1px solid var(--npc-line);border-radius:999px;background:#fff;
  font-size:14px;font-weight:500;color:var(--npc-ink)!important;text-decoration:none!important;white-space:nowrap;transition:border-color .3s,box-shadow .3s,transform .35s var(--npc-ease),background-color .3s}
.npc-chip>b{min-width:24px;padding:1px 7px;border-radius:999px;background:var(--npc-tint);font-size:12px;font-weight:600;color:var(--npc-navy);text-align:center}
.npc-chip:hover{border-color:#cdb8e6;transform:translateY(-2px);box-shadow:var(--npc-shadow)}
.npc-chip.is-on,.npc-chip.is-current{border-color:transparent;background:linear-gradient(#fff,#fff) padding-box,var(--npc-btn) border-box;border:1.5px solid transparent;color:var(--npc-mag)!important;box-shadow:0 8px 20px -12px rgba(176,31,136,.6)}

/* card grid */
.npc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));gap:18px;margin-top:26px;align-items:start}
.npc-card{position:relative;border-radius:24px;background:var(--npc-card);border:1px solid var(--npc-line);box-shadow:var(--npc-shadow);overflow:hidden;scroll-margin-top:84px;
  transition:transform .5s var(--npc-ease),box-shadow .5s var(--npc-ease),border-color .4s}
.npc-card::before{content:"";position:absolute;inset-inline:0;top:0;height:3px;background:var(--npc-rule);transform:scaleX(0);transform-origin:right;transition:transform .7s var(--npc-ease)}
.npc-card:hover{transform:translateY(-4px);box-shadow:0 2px 4px rgba(36,24,74,.05),0 26px 50px -24px rgba(108,43,199,.45);border-color:#dccbe8}
.npc-card:hover::before,.npc-card.is-flash::before{transform:scaleX(1)}
.npc-card.is-flash{animation:npc-flash 1.4s var(--npc-ease)}
@keyframes npc-flash{0%,100%{box-shadow:var(--npc-shadow)}30%{box-shadow:0 0 0 4px rgba(214,51,108,.25),0 26px 50px -24px rgba(108,43,199,.5)}}
.npc-card__main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px 20px 18px;text-decoration:none!important;color:inherit}
.npc-card__text{display:flex;flex-direction:column;gap:4px;min-width:0}
.npc-card__name{font-family:NizarAmiri,Amiri,serif;font-size:25px;line-height:1.35;color:var(--npc-ink);transition:color .3s}
.npc-card__main:hover .npc-card__name{color:var(--npc-mag)}
.npc-card__num{font-size:13.5px;color:var(--npc-muted)}
.npc-card__covers{position:relative;width:104px;height:84px}
.npc-card__covers>span{--j:0;position:absolute;top:0;left:calc(var(--j) * 26px);width:52px;height:78px;border-radius:2px 6px 6px 2px;overflow:hidden;background:#eee;
  box-shadow:-4px 8px 14px -6px rgba(36,24,74,.45);rotate:calc((var(--j) - 1) * 7deg);z-index:calc(3 - var(--j));transition:rotate .5s var(--npc-ease),left .5s var(--npc-ease),translate .5s var(--npc-ease)}
.npc-card:hover .npc-card__covers>span{rotate:calc((var(--j) - 1) * 12deg);left:calc(var(--j) * 30px - 6px);translate:0 -4px}
.npc-sub{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0 20px 20px;list-style:none}
.npc-sub li{margin:0}
.npc-sub a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 12px;border-radius:999px;background:var(--npc-tint);font-size:13.5px;color:var(--npc-ink)!important;text-decoration:none!important;
  transition:background-color .3s,color .3s,transform .3s var(--npc-ease)}
.npc-sub a .npc-ico{color:var(--npc-mag)}
.npc-sub a b{font-size:11.5px;font-weight:600;color:var(--npc-muted)}
.npc-sub a:hover{background:#ecdff3;transform:translateY(-1px);color:var(--npc-mag)!important}
.npc-sub li.is-hit a{box-shadow:0 0 0 2px #d6336c}
.npc-more{margin-top:40px}
.npc-more__list{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;list-style:none}
.npc-more__list a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 14px;border:1px solid var(--npc-line);border-radius:999px;background:#fff;font-size:14px;color:var(--npc-ink)!important;text-decoration:none!important;transition:transform .3s var(--npc-ease),border-color .3s}
.npc-more__list a .npc-ico{color:var(--npc-mag)}
.npc-more__list a:hover{transform:translateY(-2px);border-color:#cdb8e6}
.npc-none{margin:30px 0 0;padding:22px;border:1px dashed var(--npc-line);border-radius:18px;text-align:center;color:var(--npc-muted)}
[hidden]{display:none!important}

/* ================================================================= sliders of books (product page, «شاهدتها مؤخراً») */
.npc-shelf{margin:clamp(34px,5vw,56px) 0 0}
.npc-shelf__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid var(--npc-line)}
.npc-more-link{display:inline-flex;align-items:center;gap:6px;flex:none;font-size:14px;font-weight:600;color:var(--npc-mag)!important;text-decoration:none!important}
.npc-more-link .npc-ico{width:18px;height:18px;transition:transform .35s var(--npc-ease)}
.npc-more-link:hover .npc-ico{transform:translateX(-4px)}
.npc-rowwrap{position:relative}
.npc-row{display:flex;gap:18px;padding:16px 4px 22px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:4px;scrollbar-width:none;overscroll-behavior-x:contain}
.npc-row::-webkit-scrollbar{display:none}
.npc-rowbtn{position:absolute;top:calc(16px + 82px);translate:0 -50%;z-index:4;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--npc-line);border-radius:50%;
  background:rgba(255,255,255,.95);color:var(--npc-navy);box-shadow:var(--npc-shadow);cursor:pointer;transition:transform .3s var(--npc-ease),opacity .3s,color .3s}
.npc-rowbtn:hover{transform:scale(1.08);color:var(--npc-mag)}
.npc-rowbtn:disabled{opacity:0;pointer-events:none}
.npc-rowbtn--prev{inset-inline-start:-14px}.npc-rowbtn--next{inset-inline-end:-14px}
.npc-book{position:relative;flex:0 0 clamp(138px,15vw,168px);scroll-snap-align:start;display:flex;flex-direction:column;gap:6px;min-width:0}
.npc-book__cover{position:relative;display:block;aspect-ratio:2/3;border-radius:3px 9px 9px 3px;overflow:hidden;background:#f0e9ef;
  box-shadow:-6px 12px 22px -12px rgba(36,24,74,.55);transition:transform .5s var(--npc-ease),box-shadow .5s var(--npc-ease)}
.npc-book__cover::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 86%,rgba(0,0,0,.14) 93%,rgba(255,255,255,.2) 100%)}
.npc-book__cover .np-cover{width:100%!important;height:100%!important;max-height:none}
.npc-book:hover .npc-book__cover{transform:translateY(-6px) rotate(-1.2deg);box-shadow:-10px 22px 30px -14px rgba(76,47,208,.55)}
.npc-book.is-out .npc-book__cover img{filter:grayscale(.55);opacity:.75}
.npc-book__off{position:absolute;top:8px;inset-inline-start:8px;z-index:2;padding:2px 8px;border-radius:999px;background:var(--npc-btn);color:#fff;font-size:12px;font-weight:700}
.npc-book__title{margin:8px 0 0;font-size:14.5px;font-weight:600;line-height:1.6;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.npc-book__title a{color:var(--npc-ink)!important;text-decoration:none!important}
.npc-book__title a:hover{color:var(--npc-mag)!important}
.npc-book__author{margin:0;font-size:12.5px;color:var(--npc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.npc-book__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:4px}
.npc-book__price{font-size:14px;font-weight:700;color:var(--npc-navy)}
.npc-book__price del{display:none}
.npc-book__price ins{text-decoration:none}
.npc-book__add{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:var(--npc-btn);background-size:200% 100%;color:#fff!important;box-shadow:0 8px 16px -8px rgba(176,31,136,.7);transition:transform .35s var(--npc-ease),background-position .5s}
.npc-book__add .npc-ico{width:19px;height:19px}
.npc-book__add:hover{transform:scale(1.1);background-position:100% 0}
.npc-book__add.loading{opacity:.6}
.npc-book__add.added{background:#2f9e6a}
.npc-book__add+.added_to_cart{display:none}
.npc-book__out{font-size:12px;color:var(--npc-muted)}

/* ================================================================= product page */
body.npc-product #nizar-product{background:transparent}
body.npc-product #nizar-product .npc-crumbs{white-space:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 28px);mask-image:linear-gradient(90deg,transparent 0,#000 28px)}
body.npc-product #nizar-product .npc-crumbs::-webkit-scrollbar{display:none}
body.npc-product #nizar-product .npc-crumbs a{color:var(--npc-muted);text-decoration:none}
body.npc-product #nizar-product .npc-crumbs a:hover{color:var(--npc-mag)}

/* the cover as a book on a soft stage */
body.npc-product #nizar-product .npc-cover3d{position:relative;border:0!important;border-radius:22px!important;
  background:radial-gradient(120% 90% at 70% 0%,rgba(255,173,66,.18),transparent 55%),radial-gradient(110% 90% at 10% 100%,rgba(138,43,226,.16),transparent 60%),#f7f1f6!important;
  perspective:1100px;overflow:visible}
body.npc-product #nizar-product .npc-cover3d .woocommerce-product-gallery__image img,
body.npc-product #nizar-product .npc-cover3d .wvg-single-gallery-image-container img{border-radius:3px 8px 8px 3px!important;box-shadow:-14px 22px 34px -16px rgba(36,24,74,.6),-2px 2px 0 rgba(255,255,255,.6) inset!important;
  transform:rotateY(var(--npc-ry,0deg)) rotateX(var(--npc-rx,0deg));transition:transform .6s var(--npc-ease)}
body.npc-product #nizar-product .npc-cover3d .np-cover{transform:rotateY(var(--npc-ry,0deg)) rotateX(var(--npc-rx,0deg));transition:transform .6s var(--npc-ease)}
body.npc-product #nizar-product .npc-media__shadow{display:block;width:60%;height:18px;margin:-6px auto 0;border-radius:50%;background:radial-gradient(closest-side,rgba(36,24,74,.22),transparent);filter:blur(2px)}

/* category chips above the title */
.npc-pchips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.npc-pchip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:3px 12px 3px 10px;border-radius:999px;background:var(--npc-tint);font-size:13px;font-weight:500;color:var(--npc-mag)!important;text-decoration:none!important;transition:background-color .3s,transform .3s var(--npc-ease)}
.npc-pchip .npc-ico{width:16px;height:16px}
.npc-pchip:hover{background:#ecdff3;transform:translateY(-1px)}

/* details with icons */
body.npc-product #nizar-product .npc-details .nz-book-details__row{grid-template-columns:118px minmax(0,1fr)!important;align-items:center;transition:background-color .3s}
body.npc-product #nizar-product .npc-details dt{display:flex;align-items:center;gap:8px}
body.npc-product #nizar-product .npc-details dt .npc-ico{color:var(--npc-mag);opacity:.85}
body.npc-product #nizar-product .npc-lede.nz-sp__preview{margin-bottom:0}
.npc-lede__more{display:inline-block;margin-top:4px;font-size:14px;font-weight:600;color:var(--npc-mag)!important;text-decoration:none!important}
.npc-lede__more:hover{text-decoration:underline!important;text-underline-offset:4px}

/* share */
.npc-share{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:18px}
.npc-share__label{font-size:13px;color:var(--npc-muted);margin-inline-end:2px}
.npc-share__btn{position:relative;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--npc-line);border-radius:50%;background:#fff;color:var(--npc-navy)!important;cursor:pointer;
  transition:transform .35s var(--npc-ease),background-color .3s,color .3s,border-color .3s}
.npc-share__btn .npc-ico{width:19px;height:19px}
.npc-share__btn:hover{transform:translateY(-2px);background:var(--npc-band);border-color:transparent;color:#fff!important}
.npc-share__done{position:absolute;bottom:calc(100% + 6px);left:50%;translate:-50% 0;white-space:nowrap;padding:2px 8px;border-radius:6px;background:var(--npc-ink);color:#fff;font-size:12px;opacity:0;pointer-events:none;transition:opacity .3s}
.npc-share__done:not(:empty){opacity:1}

/* buying card */
body.npc-product #nizar-product .npc-buy{position:relative;overflow:hidden;border:1px solid var(--npc-line)!important;border-radius:22px!important;background:var(--npc-card)!important;box-shadow:var(--npc-shadow)!important}
body.npc-product #nizar-product .npc-buy::before{content:"";position:absolute;inset-inline:0;top:0;height:4px;background:var(--npc-rule)}
@media(min-width:1101px){body.npc-product #nizar-product .npc-buy{position:sticky;top:18px}}
/* the tabs live in the hero grid, right under the cover and the text, so a tall buy card never leaves a gap above them
   (columns come from nizar-chrome: 3 above 1100px, 2 down to 641px with the buy card under the cover, 1 below) */
body.npc-product #nizar-product .nz-sp__hero{grid-template-areas:'media main buy' 'tabs tabs buy';grid-template-rows:auto 1fr}
body.npc-product #nizar-product .npc-buy{grid-area:buy;align-self:start}
body.npc-product #nizar-product .npc-tabs{grid-area:tabs;align-self:start;min-width:0;margin:6px 0 0}
@media(max-width:1100px){body.npc-product #nizar-product .nz-sp__hero{grid-template-areas:'media main' 'buy tabs';grid-template-rows:auto 1fr}}
@media(min-width:641px) and (max-width:1100px){body.npc-product #nizar-product .npc-buy .nz-sp__buy-top{flex-direction:column;align-items:flex-start;justify-content:flex-start}}
@media(max-width:640px){body.npc-product #nizar-product .nz-sp__hero{grid-template-areas:'media' 'main' 'buy' 'tabs';grid-template-rows:none}}
body.npc-product #nizar-product .npc-buy .nz-sp__stock{display:inline-flex;align-items:center;gap:8px;border-radius:999px}
body.npc-product #nizar-product .npc-buy .nz-sp__stock.is-in::before{content:"";width:8px;height:8px;border-radius:50%;background:#2f9e6a;box-shadow:0 0 0 0 rgba(47,158,106,.5);animation:npc-pulse 2.2s infinite}
@keyframes npc-pulse{0%{box-shadow:0 0 0 0 rgba(47,158,106,.5)}70%{box-shadow:0 0 0 8px rgba(47,158,106,0)}100%{box-shadow:0 0 0 0 rgba(47,158,106,0)}}
body.npc-product #nizar-product .npc-cart button.single_add_to_cart_button{position:relative;overflow:hidden;border-radius:999px!important}
body.npc-product #nizar-product .npc-cart button.single_add_to_cart_button::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-18deg);transition:left .8s var(--npc-ease)}
body.npc-product #nizar-product .npc-cart button.single_add_to_cart_button:hover::after{left:120%}
body.npc-product #nizar-product .npc-cart .quantity.npc-qty{display:inline-flex;align-items:center;flex:0 0 auto!important;height:48px;border:1px solid var(--npc-line);border-radius:999px;background:#fff;overflow:hidden}
body.npc-product #nizar-product .npc-cart .quantity.npc-qty input.qty{width:40px!important;height:46px!important;border:0!important;background:transparent!important;text-align:center;-moz-appearance:textfield;padding:0!important}
body.npc-product #nizar-product .npc-cart .quantity.npc-qty input.qty::-webkit-inner-spin-button,
body.npc-product #nizar-product .npc-cart .quantity.npc-qty input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.npc-qty__b{display:grid;place-items:center;width:38px;height:46px;padding:0;border:0;background:transparent;color:var(--npc-navy);cursor:pointer;transition:background-color .2s}
.npc-qty__b:hover{background:var(--npc-tint)}
.npc-qty__b .npc-ico{width:16px;height:16px}
.npc-ask{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:12px;padding:8px 16px;border:1px solid var(--npc-line);border-radius:999px;background:#fff;
  font-size:14px;font-weight:600;color:var(--npc-ink)!important;text-decoration:none!important;transition:border-color .3s,transform .35s var(--npc-ease),box-shadow .3s}
.npc-ask .npc-ico{width:20px;height:20px;color:#1faa53}
.npc-ask:hover{border-color:#9fd9b4;transform:translateY(-1px);box-shadow:var(--npc-shadow)}
.npc-services{display:grid;gap:4px;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--npc-line);list-style:none}
.npc-services li{margin:0}
.npc-services li>a,.npc-services li{display:flex;align-items:center;gap:12px;text-decoration:none!important;color:inherit}
.npc-services li>a{width:100%;border-radius:12px;transition:background-color .3s}
.npc-services li>a:hover{background:var(--npc-tint)}
.npc-services__ico{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:var(--npc-tint);color:var(--npc-mag)}
.npc-services__ico .npc-ico{width:20px;height:20px}
.npc-services strong{display:block;font-size:13.5px;font-weight:600;line-height:1.5;color:var(--npc-ink)}
.npc-services small{display:block;font-size:12px;line-height:1.6;color:var(--npc-muted)}
.npc-services li{padding:5px 0}

/* tabs: sliding underline, panes slide in */
body.npc-product #nizar-product .npc-tabs .nz-sp__tabs-nav{position:relative}
body.npc-product #nizar-product .npc-tabs.npc-ink-on .nz-sp__tab.is-active{border-bottom-color:transparent!important}
.npc-tabs__ink{position:absolute;bottom:-1px;right:0;height:3px;width:0;border-radius:3px;background:var(--npc-rule);transition:transform .5s var(--npc-ease),width .5s var(--npc-ease);pointer-events:none}
.npc-tabs:not(.npc-ink-on) .npc-tabs__ink{display:none}
.ns-motion .npc-tabs.is-enhanced .nz-sp__pane.is-active{animation:npc-pane .55s var(--npc-ease)}
@keyframes npc-pane{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
.npc-prose{position:relative}
.npc-prose.is-folded{max-height:440px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 62%,transparent);mask-image:linear-gradient(#000 62%,transparent)}
.npc-fold{display:inline-flex;align-items:center;gap:8px;margin-top:12px;min-height:42px;padding:8px 20px;border:1px solid var(--npc-line);border-radius:999px;background:#fff;font:inherit;font-size:14px;font-weight:600;color:var(--npc-navy);cursor:pointer;transition:transform .3s var(--npc-ease),border-color .3s}
.npc-fold:hover{transform:translateY(-1px);border-color:#cdb8e6}
body.npc-product #nizar-product .npc-specs .nz-spec__icon{display:grid!important;place-items:center;width:38px;height:38px;flex:none;border-radius:12px}
body.npc-product #nizar-product .npc-specs .nz-spec__icon svg{width:19px;height:19px}
body.npc-product #nizar-product .npc-specs .nz-spec{display:flex;align-items:center;gap:14px}

/* author */
body.npc-product #nizar-product .npc-bio{display:flex;gap:18px;align-items:flex-start;margin-top:34px;padding:24px;border:1px solid var(--npc-line);border-radius:22px;background:var(--npc-card)}
.npc-bio__ico{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:50%;background:var(--npc-band);color:#fff}
.npc-bio h2{margin:2px 0 8px;font-family:NizarAmiri,Amiri,serif;font-size:24px;font-weight:400;color:var(--npc-ink)}

/* phone buy bar */
.npc-buybar__cover{flex:none;width:34px;height:50px;border-radius:2px 5px 5px 2px;overflow:hidden;box-shadow:-3px 5px 10px -5px rgba(36,24,74,.5)}
.npc-buybar__cover img{display:block;width:100%;height:100%;object-fit:cover}
body.npc-product .nz-buybar.npc-buybar{transition:transform .45s var(--npc-ease)}
body.npc-product .nz-buybar .nz-buybar__btn{border-radius:999px!important}

/* ================================================================= category pages */
body.npc-archive .npc-ahero{overflow:hidden;position:relative}
.npc-ahero__inner{display:flex!important;align-items:center;justify-content:space-between;gap:24px;text-align:start!important;max-width:none!important}
.npc-ahero__copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.npc-ahero__copy .aw-shop__hero-title{margin:4px 0 0!important;text-align:start!important}
.npc-ahero__num{margin:0;font-size:16px;color:rgba(255,255,255,.92)}
.npc-ahero .aw-shop__hero-sub{max-width:640px;margin:0!important;text-align:start!important}
.npc-fan--hero{flex:0 0 clamp(220px,30vw,360px);height:clamp(170px,18vw,230px)}
.npc-fan--hero .npc-fan__c{width:clamp(80px,8vw,112px)}
.npc-chips--archive{margin:6px 0 18px;flex:1 0 100%;min-width:0;max-width:100%}
.npc-chips--archive .npc-chips__track{width:100%;padding-inline:2px}
.npc-chip--up{background:var(--npc-tint)}

/* ================================================================= motion (html.ns-motion only) */
.ns-motion .npc-rv{opacity:0;translate:0 38px;transition:opacity .8s var(--npc-ease),translate .9s var(--npc-ease),transform .5s var(--npc-ease),box-shadow .5s var(--npc-ease),border-color .4s;transition-delay:calc(var(--k,0) * 70ms),calc(var(--k,0) * 70ms),0s,0s,0s}
.ns-motion .npc-rv.is-in{opacity:1;translate:0 0}
.ns-motion .npc-cats__head>*{animation:npc-up .9s var(--npc-ease) both}
.ns-motion .npc-cats__head>:nth-child(2){animation-delay:.08s}.ns-motion .npc-cats__head>:nth-child(3){animation-delay:.16s}
.ns-motion .npc-hero{animation:npc-up 1s .12s var(--npc-ease) both}
.ns-motion .npc-chips__track>*{animation:npc-side .8s var(--npc-ease) both;animation-delay:calc(var(--c,0) * 45ms + .25s)}
@keyframes npc-up{from{opacity:0;translate:0 26px}to{opacity:1;translate:0 0}}
@keyframes npc-side{from{opacity:0;translate:-22px 0}to{opacity:1;translate:0 0}}
.ns-motion body.npc-product .npc-media{animation:npc-book 1.1s var(--npc-ease) both}
@keyframes npc-book{from{opacity:0;transform:perspective(900px) rotateY(-28deg) translateX(-30px)}to{opacity:1;transform:none}}
.ns-motion body.npc-product .npc-main>*,.ns-motion body.npc-product .npc-buy{animation:npc-up .9s var(--npc-ease) both}
.ns-motion body.npc-product .npc-main>:nth-child(2){animation-delay:.07s}.ns-motion body.npc-product .npc-main>:nth-child(3){animation-delay:.14s}
.ns-motion body.npc-product .npc-main>:nth-child(4){animation-delay:.21s}.ns-motion body.npc-product .npc-main>:nth-child(5){animation-delay:.28s}
.ns-motion body.npc-product .npc-buy{animation-delay:.2s}
.ns-motion .npc-row.npc-rv-row .npc-book{opacity:0;translate:0 22px;transition:opacity .7s var(--npc-ease),translate .8s var(--npc-ease);transition-delay:calc(var(--i,0) * 60ms)}
.ns-motion .npc-row.npc-rv-row.is-in .npc-book{opacity:1;translate:0 0}
.ns-motion body.npc-archive .npc-ahero .npc-badge,.ns-motion body.npc-archive .npc-ahero__copy>*{animation:npc-up .9s var(--npc-ease) both}
.ns-motion body.npc-archive .npc-ahero__copy>:nth-child(2){animation-delay:.08s}.ns-motion body.npc-archive .npc-ahero__copy>:nth-child(3){animation-delay:.16s}
.ns-motion body.npc-archive .npc-fan--hero .npc-fan__c{animation:npc-fanin 1.1s var(--npc-ease) both;animation-delay:calc(var(--j) * 90ms + .2s)}
@keyframes npc-fanin{from{opacity:0;translate:-50% 20%;rotate:0deg}}
.ns-motion .npc-slide__mark{animation:npc-spin 60s linear infinite}
@keyframes npc-spin{to{rotate:360deg}}

/* ================================================================= sizes */
@media(max-width:900px){
  .npc-cats__head{grid-template-columns:1fr;padding-top:24px}
  .npc-filter{grid-column:1;grid-row:auto}
  .npc-slide{grid-template-columns:1fr;gap:6px;min-height:0;padding:26px 22px 18px}
  .npc-fan{height:200px}
  .npc-arrow{display:none}
}
@media(max-width:640px){
  .npc-hero,.npc-wrap{width:calc(100% - 24px)}
  .npc-hero__track,.npc-slide{border-radius:22px}
  .npc-slide__title{font-size:36px}
  .npc-slide__copy{gap:8px}
  .npc-fan{height:176px;margin-top:4px}
  .npc-fan__c{width:92px}
  .npc-grid{gap:14px;margin-top:18px}
  .npc-card{border-radius:20px}
  .npc-card__main{gap:12px;padding:16px 16px 14px}
  .npc-card__name{font-size:22px}
  .npc-card__covers{width:84px;height:68px}
  .npc-card__covers>span{width:42px;height:63px;left:calc(var(--j) * 21px)}
  .npc-badge{--s:48px}
  .npc-badge--sm{--s:26px}
  .npc-badge--xl{--s:60px}
  .npc-sub{padding:0 16px 16px}
  .npc-book{flex-basis:40vw}
  .npc-rowbtn{display:none}
  .npc-ahero__inner{flex-direction:column;align-items:flex-start}
  .npc-fan--hero{align-self:center;flex-basis:auto;width:100%;height:150px}
  .npc-fan--hero .npc-fan__c{width:76px}
  body.npc-product #nizar-product .npc-details .nz-book-details__row{grid-template-columns:104px minmax(0,1fr)!important}
  body.npc-product #nizar-product .npc-bio{flex-direction:column;padding:18px}
}
@media(hover:none){.npc-rowbtn{display:none}}
@media(prefers-reduced-motion:reduce){
  .npc *,.npc-sp *{animation:none!important;transition:none!important}
  .npc-hero__track,.npc-row,.npc-chips__track{scroll-behavior:auto}
}
