/* ==========================================================================
   لؤلؤة — واجهة بأسلوب التطبيق
   هوية لؤلؤة: برتقالي ذهبي، خلفية لؤلؤية، Readex Pro + Tajawal
   ========================================================================== */

:root{
  /* --- ألوان العلامة --- */
  --o-700:#a85c08; --o-600:#dd7a12; --o-500:#f0921f; --o-400:#fcb43c;
  --o-300:#ffd18a; --o-100:#fdf0da; --o-50:#fff8ec;
  --pearl-0:#fff; --pearl-50:#fdfbf6; --pearl-100:#f7f1e6; --pearl-200:#ece3d3;
  --ink-900:#2a2a2a; --ink-800:#3c3c3c; --ink-600:#6d6a64; --ink-400:#9c988f;
  --gold:#c9a227; --gold-400:#e0b544;
  --green:#2fa36b; --red:#e2574c; --sky:#6ea8c9;

  /* --- أدوار --- */
  --bg:var(--pearl-50); --bg-soft:var(--pearl-100); --surface:#fff; --surface-2:#fff;
  --text:var(--ink-900); --dim:var(--ink-600); --faint:var(--ink-400);
  --line:rgba(42,42,42,.09); --line-2:rgba(42,42,42,.15);
  --brand:var(--o-500);
  --grad:linear-gradient(135deg,#dd7a12,#f0921f 55%,#fcb43c);
  --grad-soft:linear-gradient(135deg,#fff6e6,#fdf0da);
  --iri:linear-gradient(118deg,#fffaf0 0%,#f7eede 26%,#fdf0e4 52%,#eef1f6 78%,#fff7e9 100%);

  /* --- شكل --- */
  --r-xs:10px; --r-sm:14px; --r-md:18px; --r-lg:24px; --r-xl:30px; --r-full:999px;
  --sh-1:0 1px 2px rgba(42,42,42,.05),0 4px 14px rgba(42,42,42,.05);
  --sh-2:0 10px 30px -12px rgba(42,42,42,.16),0 2px 8px rgba(42,42,42,.05);
  --sh-3:0 24px 56px -24px rgba(168,92,8,.3),0 6px 20px rgba(42,42,42,.08);
  --sh-brand:0 14px 32px -14px rgba(221,122,18,.55);
  --sh-bar:0 -6px 26px -12px rgba(42,42,42,.22);

  /* --- خطوط --- */
  --head:"Readex Pro","Tajawal",system-ui,"Segoe UI",sans-serif;
  --body:"Tajawal","Readex Pro",system-ui,"Segoe UI",sans-serif;

  /* --- قياسات الهيكل --- */
  --bar-h:62px;                 /* شريط التنقل السفلي */
  --top-h:56px;                 /* الشريط العلوي */
  --safe-b:env(safe-area-inset-bottom,0px);
  --shell:560px;                /* عرض عمود التطبيق على الجوال */
  --ease:cubic-bezier(.22,.8,.3,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
}

[data-theme=dark]{
  --bg:#17130e; --bg-soft:#1f1a13; --surface:#241e16; --surface-2:#2c251b;
  --text:#f6efe4; --dim:#b8ac99; --faint:#8d826f;
  --line:rgba(255,255,255,.09); --line-2:rgba(255,255,255,.16);
  --pearl-100:#1f1a13; --o-100:rgba(240,146,31,.16); --o-50:rgba(240,146,31,.1);
  --iri:linear-gradient(118deg,#3a2e1e,#2f2a22 28%,#3d2d1d 55%,#262b33 80%,#3a3022);
  --grad-soft:linear-gradient(135deg,#312415,#241e16);
  --sh-1:0 1px 2px rgba(0,0,0,.4),0 6px 20px rgba(0,0,0,.28);
  --sh-2:0 14px 34px -14px rgba(0,0,0,.6),0 2px 10px rgba(0,0,0,.35);
  --sh-3:0 28px 64px -28px rgba(0,0,0,.75),0 8px 24px rgba(0,0,0,.4);
  --sh-bar:0 -6px 26px -10px rgba(0,0,0,.6);
}

/* ===================== الأساس ===================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;font-family:var(--body);background:var(--bg);color:var(--text);
  font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;overscroll-behavior-y:none;
  padding-bottom:calc(var(--bar-h) + var(--safe-b));
  transition:background .4s var(--ease),color .4s var(--ease);
}
body.no-scroll{overflow:hidden}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer;padding:0}
h1,h2,h3,h4{font-family:var(--head);font-weight:600;line-height:1.35;margin:0;letter-spacing:-.01em}
p{margin:0}ul{margin:0;padding:0;list-style:none}
::selection{background:var(--o-300);color:#4a2a05}
:focus-visible{outline:2.5px solid var(--o-500);outline-offset:2px;border-radius:6px}

/* شريط تمرير رفيع */
::-webkit-scrollbar{width:9px;height:7px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:99px}

.wrap{width:min(var(--shell),100%);margin-inline:auto;padding-inline:14px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ===================== الشريط العلوي ===================== */
.appbar{
  position:sticky;top:0;z-index:60;background:var(--grad);color:#fff;
  padding-top:env(safe-area-inset-top,0px);
  box-shadow:0 6px 22px -14px rgba(168,92,8,.9);
}
.appbar__row{display:flex;align-items:center;gap:10px;height:var(--top-h)}
.appbar__logo{
  display:flex;align-items:center;flex-shrink:0;background:#fff;
  border-radius:var(--r-full);padding:5px 12px;
  box-shadow:0 4px 14px -5px rgba(74,42,5,.5);
  transition:transform .3s var(--ease)
}
.appbar__logo:active{transform:scale(.95)}
.appbar__logo img{height:23px;width:auto}
.appbar__place{
  display:flex;flex-direction:column;line-height:1.25;min-width:0;flex:1;
  background:none;text-align:start;
}
.appbar__place small{font-size:10.5px;opacity:.82;display:flex;align-items:center;gap:4px}
.appbar__place b{font-size:13px;font-weight:600;display:flex;align-items:center;gap:5px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appbar__place svg{width:13px;height:13px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.appbar__acts{display:flex;align-items:center;gap:4px;flex-shrink:0}
.ibtn{
  width:38px;height:38px;display:grid;place-items:center;border-radius:var(--r-full);
  position:relative;color:#fff;transition:background .25s var(--ease),transform .2s var(--ease);
}
.ibtn:hover{background:rgba(255,255,255,.17)}
.ibtn:active{transform:scale(.92)}
.ibtn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ibtn .dot{position:absolute;top:8px;inset-inline-end:9px;width:7px;height:7px;border-radius:50%;
  background:#fff;border:2px solid var(--o-500)}

/* حقل البحث في الشريط */
.appbar__search{padding:0 0 12px}
.sfield{
  display:flex;align-items:center;gap:9px;background:var(--surface);border-radius:var(--r-full);
  padding:0 16px;height:44px;box-shadow:0 6px 18px -8px rgba(42,42,42,.3);
  color:var(--dim);width:100%;text-align:start;
}
.sfield svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:var(--o-500);stroke-width:2;stroke-linecap:round}
.sfield input{flex:1;border:0;outline:0;background:none;font-size:14px;min-width:0;color:var(--text)}
.sfield input::placeholder{color:var(--faint)}
.sfield .mic{color:var(--o-500);display:grid;place-items:center}
.sfield .mic svg{stroke:var(--o-500)}

/* ===================== شريط التنقل السفلي ===================== */
.tabbar{
  position:fixed;inset-inline:0;bottom:0;z-index:70;
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);
  border-top:1px solid var(--line);box-shadow:var(--sh-bar);
  padding-bottom:var(--safe-b);
}
.tabbar__inner{
  width:min(var(--shell),100%);margin-inline:auto;height:var(--bar-h);
  display:grid;grid-template-columns:repeat(5,1fr);align-items:center;
}
.tab{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  height:100%;color:var(--faint);position:relative;font-size:10.5px;font-weight:600;
  transition:color .3s var(--ease);
}
.tab svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--ease)}
.tab:active svg{transform:scale(.88)}
.tab.is-on{color:var(--o-600)}
.tab.is-on svg{stroke-width:2.1}
.tab.is-on::before{
  content:"";position:absolute;top:0;width:28px;height:3px;border-radius:0 0 4px 4px;
  background:var(--grad);box-shadow:0 2px 10px rgba(240,146,31,.7);
  animation:tabIn .4s var(--ease-out);
}
@keyframes tabIn{from{width:0;opacity:0}to{width:28px;opacity:1}}
.tab__badge{
  position:absolute;top:4px;inset-inline-end:calc(50% - 22px);min-width:17px;height:17px;padding:0 4px;
  display:grid;place-items:center;border-radius:99px;background:var(--red);color:#fff;
  font-size:10px;font-weight:700;transform:scale(0);transition:transform .3s var(--ease);
  box-shadow:0 3px 8px rgba(226,87,76,.5)
}
.tab__badge.on{transform:scale(1)}

/* زر السلة البارز في المنتصف */
.tab--mid .tab__ring{
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  background:var(--grad);color:#fff;box-shadow:var(--sh-brand);margin-top:-18px;
  border:3px solid var(--surface);transition:transform .3s var(--ease)
}
.tab--mid .tab__ring svg{width:21px;height:21px;stroke-width:2}
.tab--mid:active .tab__ring{transform:scale(.9)}
.tab--mid.is-on::before{display:none}
.tab--mid span{margin-top:1px}

/* ===================== البانر الرئيسي (سلايدر) ===================== */
.hero{padding:14px 0 0}
.hero__box{position:relative;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-2)}
.hero__track{display:flex;transition:transform .55s var(--ease-out);touch-action:pan-y}
.hero__track.dragging{transition:none}
.slide{
  min-width:100%;position:relative;aspect-ratio:20/11;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  padding:0 20px;color:#fff;overflow:hidden;
}
/* النص لا يتمدّد ولا يصطدم بالرسمة */
.slide__tag,.slide h2,.slide p,.slide__btn{position:relative;z-index:1;max-width:min(64%,30ch)}
.slide__bg{position:absolute;inset:0;z-index:-2}
.slide__bg::after{content:"";position:absolute;inset:0;
  background:linear-gradient(to left,rgba(0,0,0,.05),rgba(0,0,0,.34))}
.slide__orb{position:absolute;border-radius:50%;filter:blur(34px);opacity:.55;z-index:-1}
.slide__tag{
  display:inline-flex;align-items:center;gap:6px;padding:4px 11px;
  border-radius:var(--r-full);background:rgba(255,255,255,.22);backdrop-filter:blur(6px);
  font-size:11px;font-weight:700;margin-bottom:9px;border:1px solid rgba(255,255,255,.3)
}
.slide h2{font-size:clamp(19px,5.4vw,26px);font-weight:700;letter-spacing:-.02em;
  text-shadow:0 2px 14px rgba(0,0,0,.28);max-width:17ch}
.slide p{font-size:12.5px;opacity:.93;margin-top:5px;max-width:24ch}
.slide__btn{
  margin-top:12px;align-self:start;display:inline-flex;align-items:center;gap:7px;
  background:#fff;color:var(--o-700);padding:9px 18px;border-radius:var(--r-full);
  font-size:13px;font-weight:700;box-shadow:0 10px 24px -10px rgba(0,0,0,.5);
  transition:transform .25s var(--ease)
}
.slide__btn:active{transform:scale(.95)}
.slide__btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.slide__art{position:absolute;inset-inline-end:4px;bottom:-6px;width:33%;max-width:144px;z-index:0;
  filter:drop-shadow(0 16px 26px rgba(0,0,0,.3));animation:slideFloat 6s var(--ease) infinite}
@keyframes slideFloat{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-10px) rotate(2deg)}}

.hero__dots{position:absolute;bottom:10px;inset-inline-start:22px;display:flex;gap:5px;z-index:3}
.hero__dots i{width:6px;height:6px;border-radius:99px;background:rgba(255,255,255,.5);
  transition:width .35s var(--ease),background .35s}
.hero__dots i.on{width:20px;background:#fff}

/* ===================== الأقسام الدائرية ===================== */
.catrail{margin-top:18px}
.catrail__scroll{
  display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;
  padding:4px 14px 6px;margin-inline:-14px;
  scrollbar-width:none;-ms-overflow-style:none;cursor:grab;
}
.catrail__scroll::-webkit-scrollbar{display:none}
.catrail__scroll.grabbing{cursor:grabbing;scroll-snap-type:none}
.catrail__scroll.grabbing *{pointer-events:none}
.circ{
  flex:0 0 auto;width:72px;display:flex;flex-direction:column;align-items:center;gap:7px;
  scroll-snap-align:center;-webkit-tap-highlight-color:transparent;
}
.circ__ring{
  width:66px;height:66px;border-radius:50%;display:grid;place-items:center;position:relative;
  background:var(--grad-soft);border:1.5px solid var(--o-100);color:var(--o-600);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .3s;
  overflow:hidden;
}
.circ__ring::after{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 32% 26%,rgba(255,255,255,.95),transparent 56%);
}
.circ__ring svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;position:relative;z-index:1;
  transition:transform .4s var(--ease)}
.circ:hover .circ__ring,.circ:focus-visible .circ__ring{
  transform:translateY(-4px);box-shadow:var(--sh-brand);border-color:var(--o-400)}
.circ:hover .circ__ring svg{transform:scale(1.12) rotate(-6deg)}
.circ:active .circ__ring{transform:scale(.94)}
.circ b{font-size:11.5px;font-weight:600;text-align:center;line-height:1.35;color:var(--text);
  min-height:1.35em;white-space:nowrap}
.circ small{font-size:10px;color:var(--faint);margin-top:-4px}
.circ.is-on .circ__ring{background:var(--grad);color:#fff;border-color:transparent;box-shadow:var(--sh-brand)}
.circ.is-on .circ__ring::after{opacity:.25}

/* ===================== شريط الخدمات ===================== */
.serv{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:18px}
.serv__i{
  display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  text-align:center;transition:transform .3s var(--ease),box-shadow .3s var(--ease)
}
.serv__i:active{transform:scale(.96)}
.serv__i:hover{box-shadow:var(--sh-1);border-color:var(--o-300)}
.serv__i svg{width:22px;height:22px;fill:none;stroke:var(--o-500);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.serv__i span{font-size:10.5px;font-weight:600;line-height:1.3;color:var(--dim)}

/* ===================== عناوين الأقسام ===================== */
.shead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 12px}
.shead h2{font-size:17px;font-weight:700;display:flex;align-items:center;gap:8px}
.shead h2::before{content:"";width:4px;height:17px;border-radius:3px;background:var(--grad);flex-shrink:0}
.shead a{font-size:12.5px;font-weight:600;color:var(--o-600);display:flex;align-items:center;gap:3px}
.shead a svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;
  transition:transform .3s var(--ease)}
.shead a:hover svg{transform:translateX(-4px)}

/* ===================== بطاقة المنتج ===================== */
.pgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}
.pcard{
  position:relative;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);overflow:hidden;display:flex;flex-direction:column;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .3s;
  content-visibility:auto;contain-intrinsic-size:280px;
}
.pcard:hover{transform:translateY(-5px);box-shadow:var(--sh-2);border-color:var(--o-200,transparent)}
.pcard:active{transform:scale(.985)}
.pcard__media{
  position:relative;aspect-ratio:1/1;background:var(--iri);display:grid;place-items:center;
  padding:12px;overflow:hidden
}
.pcard__media svg{height:88%;width:auto;max-width:84%;
  filter:drop-shadow(0 10px 16px rgba(42,42,42,.16));
  transition:transform .5s var(--ease)}
.pcard:hover .pcard__media svg{transform:scale(1.08) rotate(-3deg)}
.pcard__tags{position:absolute;top:8px;inset-inline-start:8px;display:flex;flex-direction:column;gap:4px;z-index:2}
.tg{padding:3px 9px;border-radius:99px;font-size:10px;font-weight:700;color:#fff;
  background:var(--o-600);box-shadow:0 4px 10px rgba(0,0,0,.16);white-space:nowrap}
.tg--sale{background:linear-gradient(135deg,#e2574c,#f08a5d)}
.tg--new{background:linear-gradient(135deg,#8a6b45,#c2a173)}
.tg--trend{background:linear-gradient(135deg,#a85c08,#f0921f)}
.pcard__fav{
  position:absolute;top:8px;inset-inline-end:8px;width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.92);display:grid;place-items:center;z-index:2;color:var(--ink-600);
  box-shadow:var(--sh-1);transition:color .25s,background .25s,transform .25s var(--ease)
}
.pcard__fav svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pcard__fav:active{transform:scale(.85)}
.pcard__fav.on{color:#fff;background:var(--red)}
.pcard__fav.on svg{fill:currentColor}
.pcard__body{padding:10px 11px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.pcard__cat{font-size:10px;font-weight:600;color:var(--o-500)}
.pcard__name{font-size:12.8px;font-weight:600;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em}
.pcard__size{font-size:10.5px;color:var(--faint)}
.pcard__rate{display:flex;align-items:center;gap:4px;font-size:10.5px;color:var(--dim)}
.pcard__rate svg{width:11px;height:11px;fill:var(--gold-400);stroke:none}
.pcard__foot{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding-top:8px}
.pcard__price b{font-size:15px;font-weight:800;display:block;line-height:1.2}
.pcard__price b small{font-size:10px;font-weight:600;color:var(--dim)}
.pcard__price del{font-size:11px;color:var(--faint)}
.pcard__add{
  width:34px;height:34px;border-radius:11px;background:var(--o-100);color:var(--o-600);
  display:grid;place-items:center;flex-shrink:0;
  transition:background .3s var(--ease),color .3s,transform .25s var(--ease)
}
.pcard__add svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pcard__add:hover{background:var(--grad);color:#fff}
.pcard__add:active{transform:scale(.85)}
.pcard__add.added{background:var(--green);color:#fff}

/* ظهور تدريجي للبطاقات */
.pcard{opacity:0;transform:translateY(14px)}
.pcard.in{opacity:1;transform:none;transition:opacity .45s var(--ease),transform .45s var(--ease)}

/* ===================== شريط منتجات أفقي ===================== */
.prail{display:flex;gap:11px;overflow-x:auto;padding:4px 14px 8px;margin-inline:-14px;
  scroll-snap-type:x proximity;scrollbar-width:none}
.prail::-webkit-scrollbar{display:none}
.prail .pcard{flex:0 0 150px;scroll-snap-align:start}

/* ===================== العروض والعدّاد ===================== */
.deal{
  margin-top:24px;border-radius:var(--r-lg);padding:16px;color:#fff;position:relative;overflow:hidden;
  background:linear-gradient(130deg,#3a2105,#a85c08 45%,#e08418 78%)
}
.deal::after{content:"";position:absolute;width:200px;height:200px;border-radius:50%;
  background:#fcb43c;filter:blur(50px);opacity:.4;top:-80px;inset-inline-end:-50px}
.deal__top{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative}
.deal__top b{font-size:15px;font-weight:700;display:flex;align-items:center;gap:7px}
.deal__top b svg{width:17px;height:17px;fill:none;stroke:#ffd166;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cdown{display:flex;gap:5px;align-items:center;direction:ltr}
.cdown i{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.22);
  border-radius:8px;min-width:30px;padding:3px 5px;text-align:center;font-style:normal;
  font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;backdrop-filter:blur(6px)}
.cdown span{font-size:12px;opacity:.7}

/* ===================== صفحة الأقسام ===================== */
.catgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-top:14px}
.catbox{
  position:relative;padding:16px 14px;border-radius:var(--r-md);background:var(--surface);
  border:1px solid var(--line);overflow:hidden;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease)
}
.catbox:hover{transform:translateY(-4px);box-shadow:var(--sh-2)}
.catbox__ic{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;
  background:var(--grad-soft);color:var(--o-600);margin-bottom:10px}
.catbox__ic svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.catbox h3{font-size:14px;font-weight:700;margin-bottom:3px}
.catbox p{font-size:11.5px;color:var(--dim);line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.catbox small{display:inline-block;margin-top:8px;font-size:11px;font-weight:700;color:var(--o-600)}

/* شريط فلاتر أفقي */
.chips{display:flex;gap:7px;overflow-x:auto;padding:2px 14px 4px;margin-inline:-14px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto;padding:8px 15px;border-radius:var(--r-full);font-size:12.5px;font-weight:600;
  background:var(--surface);border:1px solid var(--line);color:var(--dim);white-space:nowrap;
  transition:all .28s var(--ease)
}
.chip:active{transform:scale(.94)}
.chip.on{background:var(--grad);color:#fff;border-color:transparent;box-shadow:var(--sh-brand)}

/* ===================== صفحة المنتج ===================== */
.phero{background:var(--iri);padding:24px 0;position:relative}
.phero__art{height:230px;display:grid;place-items:center}
.phero__art svg{height:100%;width:auto;filter:drop-shadow(0 20px 30px rgba(42,42,42,.2));
  animation:pFloat 6s var(--ease) infinite}
@keyframes pFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.pinfo{background:var(--surface);border-radius:var(--r-xl) var(--r-xl) 0 0;margin-top:-22px;
  position:relative;padding:20px 0 10px}
.pinfo h1{font-size:19px;font-weight:700;line-height:1.45;margin-bottom:6px}
.pinfo__en{font-size:11.5px;color:var(--faint);direction:ltr;text-align:right}
.pinfo__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0}
.pinfo__rate{display:flex;align-items:center;gap:5px;font-size:12.5px;color:var(--dim)}
.pinfo__rate svg{width:14px;height:14px;fill:var(--gold-400);stroke:none}
.pinfo__price{display:flex;align-items:baseline;gap:9px;margin:14px 0}
.pinfo__price b{font-size:27px;font-weight:800;color:var(--o-600)}
.pinfo__price b small{font-size:13px;color:var(--dim);font-weight:600}
.pinfo__price del{font-size:15px;color:var(--faint)}
.pinfo__price .off{background:var(--red);color:#fff;font-size:11px;font-weight:700;
  padding:3px 9px;border-radius:99px}
.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}
.fact{background:var(--bg-soft);border-radius:var(--r-sm);padding:10px 8px;text-align:center}
.fact small{display:block;font-size:10px;color:var(--faint)}
.fact b{font-size:12px;font-weight:700}
.pinfo h3{font-size:14px;margin:18px 0 7px}
.pinfo p.desc{font-size:13.5px;color:var(--dim);line-height:1.85}

/* شريط الشراء الثابت */
.buybar{
  position:fixed;inset-inline:0;bottom:calc(var(--bar-h) + var(--safe-b));z-index:65;
  background:color-mix(in srgb,var(--surface) 95%,transparent);backdrop-filter:blur(14px);
  border-top:1px solid var(--line);padding:10px 0;box-shadow:var(--sh-bar)
}
.buybar__in{display:flex;align-items:center;gap:10px}
.qty{display:flex;align-items:center;gap:0;background:var(--bg-soft);border-radius:var(--r-full);
  border:1px solid var(--line);overflow:hidden;flex-shrink:0}
.qty button{width:36px;height:40px;display:grid;place-items:center;color:var(--o-600);font-size:18px;font-weight:700;
  transition:background .2s}
.qty button:hover{background:var(--o-100)}
.qty b{min-width:28px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}

/* ===================== أزرار ===================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 22px;border-radius:var(--r-full);font-weight:700;font-size:14px;
  border:1px solid transparent;position:relative;overflow:hidden;white-space:nowrap;
  transition:transform .25s var(--ease),box-shadow .25s var(--ease),background .25s,color .25s
}
.btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.btn--pri{background:var(--grad);color:#fff;box-shadow:var(--sh-brand)}
.btn--pri:hover{box-shadow:0 20px 40px -16px rgba(221,122,18,.7)}
.btn--ghost{background:var(--surface);border-color:var(--line-2);color:var(--text)}
.btn--ghost:hover{border-color:var(--o-400)}
.btn--block{width:100%}
.btn--lg{padding:15px 26px;font-size:15px}
.btn:active{transform:scale(.97)}
.btn[disabled]{opacity:.5;pointer-events:none}

/* ===================== السلة ===================== */
.citem{display:flex;gap:11px;padding:12px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);margin-bottom:9px;align-items:center}
.citem__art{width:66px;height:66px;border-radius:12px;background:var(--iri);display:grid;place-items:center;
  padding:7px;flex-shrink:0}
.citem__art svg{height:100%;width:auto}
.citem__b{flex:1;min-width:0}
.citem__b b{display:block;font-size:12.8px;font-weight:600;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.citem__b small{font-size:10.5px;color:var(--faint)}
.citem__b .pr{font-size:14px;font-weight:800;color:var(--o-600);margin-top:3px;display:block}
.citem__ctl{display:flex;flex-direction:column;align-items:center;gap:6px}
.citem__del{color:var(--faint);width:28px;height:28px;display:grid;place-items:center;border-radius:8px;
  transition:color .2s,background .2s}
.citem__del:hover{color:var(--red);background:rgba(226,87,76,.1)}
.citem__del svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sumbox{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:14px;margin-top:14px}
.sumrow{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:6px 0;color:var(--dim)}
.sumrow.tot{font-size:16px;font-weight:800;color:var(--text);border-top:1px dashed var(--line-2);margin-top:8px;padding-top:12px}
.sumrow.tot b{color:var(--o-600)}

/* حالة فارغة */
.empty{text-align:center;padding:50px 20px}
.empty__ic{width:90px;height:90px;margin:0 auto 16px;border-radius:50%;display:grid;place-items:center;
  background:var(--grad-soft);color:var(--o-400)}
.empty__ic svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.empty h3{font-size:17px;margin-bottom:6px}
.empty p{font-size:13px;color:var(--dim);margin-bottom:18px;max-width:30ch;margin-inline:auto}

/* ===================== حسابي ===================== */
.profile{background:var(--grad);color:#fff;padding:22px 0 30px;margin-bottom:-18px}
.profile__row{display:flex;align-items:center;gap:13px}
.profile__av{width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.25);
  display:grid;place-items:center;font-size:22px;font-weight:700;border:2px solid rgba(255,255,255,.4)}
.profile__row b{font-size:17px;font-weight:700;display:block}
.profile__row span{font-size:12px;opacity:.9}
.mlist{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  overflow:hidden;position:relative;margin-bottom:12px}
.mrow{display:flex;align-items:center;gap:12px;padding:14px;border-bottom:1px solid var(--line);
  transition:background .2s}
.mrow:last-child{border-bottom:0}
.mrow:hover{background:var(--bg-soft)}
.mrow__ic{width:36px;height:36px;border-radius:11px;background:var(--o-100);color:var(--o-600);
  display:grid;place-items:center;flex-shrink:0}
.mrow__ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mrow b{flex:1;font-size:13.5px;font-weight:600}
.mrow .arw{color:var(--faint)}
.mrow .arw svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* ===================== بحث منسدل ===================== */
.sheet{position:fixed;inset:0;z-index:95;visibility:hidden;opacity:0;transition:opacity .3s,visibility .3s}
.sheet.open{visibility:visible;opacity:1}
.sheet__bg{position:absolute;inset:0;background:rgba(20,14,6,.45);backdrop-filter:blur(4px)}
.sheet__panel{
  position:absolute;inset-inline:0;top:0;background:var(--bg);max-height:100%;display:flex;flex-direction:column;
  transform:translateY(-14px);transition:transform .35s var(--ease-out);
  padding-top:env(safe-area-inset-top,0px)
}
.sheet.open .sheet__panel{transform:none}
.sheet__head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--surface);
  border-bottom:1px solid var(--line)}
.sheet__head .sfield{box-shadow:none;background:var(--bg-soft);border:1px solid var(--line)}
.sheet__body{flex:1;overflow-y:auto;padding:12px 14px calc(var(--bar-h) + 24px)}
.sres{display:flex;align-items:center;gap:11px;padding:9px;border-radius:var(--r-sm);transition:background .2s}
.sres:hover{background:var(--surface)}
.sres__art{width:46px;height:46px;border-radius:11px;background:var(--iri);display:grid;place-items:center;
  padding:5px;flex-shrink:0}
.sres__art svg{height:100%;width:auto}
.sres b{display:block;font-size:12.8px;font-weight:600;line-height:1.45}
.sres small{font-size:10.5px;color:var(--faint)}
.sres .pr{margin-inline-start:auto;font-size:13px;font-weight:800;color:var(--o-600);white-space:nowrap}

/* ===================== تنبيهات ===================== */
.toasts{position:fixed;inset-inline:0;bottom:calc(var(--bar-h) + var(--safe-b) + 14px);z-index:120;
  display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding:0 14px}
.toast{
  display:flex;align-items:center;gap:9px;background:var(--ink-900);color:#fff;
  padding:11px 17px;border-radius:var(--r-full);font-size:13px;font-weight:600;
  box-shadow:0 14px 34px -12px rgba(0,0,0,.6);
  animation:toastIn .4s var(--ease-out),toastOut .35s var(--ease) 2.4s forwards;max-width:100%
}
.toast svg{width:17px;height:17px;fill:none;stroke:var(--o-400);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
@keyframes toastIn{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateY(-8px) scale(.97)}}

/* قطعة تطير إلى السلة */
.fly{position:fixed;z-index:140;width:42px;height:42px;border-radius:12px;overflow:hidden;
  background:var(--iri);box-shadow:var(--sh-2);pointer-events:none;display:grid;place-items:center;padding:4px}
.fly svg{width:100%;height:auto}

/* ===================== التذييل ===================== */
.foot{background:var(--surface);border-top:1px solid var(--line);margin-top:34px;padding:26px 0 20px}
.foot__brand{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.foot__brand img{height:34px;width:auto}
.foot p{font-size:12px;color:var(--dim);line-height:1.8}
.foot__links{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin:16px 0}
.foot__links a{font-size:12.5px;color:var(--dim);transition:color .2s}
.foot__links a:hover{color:var(--o-600)}
.foot__soc{display:flex;gap:8px;margin:14px 0}
.foot__soc a{width:36px;height:36px;border-radius:50%;background:var(--bg-soft);display:grid;place-items:center;
  color:var(--dim);transition:all .25s var(--ease)}
.foot__soc a:hover{background:var(--grad);color:#fff;transform:translateY(-3px)}
.foot__soc svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.foot__pay{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.foot__pay span{font-size:10px;font-weight:600;color:var(--faint);background:var(--bg-soft);
  border:1px solid var(--line);padding:4px 9px;border-radius:7px}
.foot__cr{font-size:11px;color:var(--faint);text-align:center;margin-top:16px;padding-top:14px;
  border-top:1px solid var(--line)}

/* واتساب عائم */
.wa{position:fixed;inset-inline-end:14px;bottom:calc(var(--bar-h) + var(--safe-b) + 16px);z-index:66;
  width:48px;height:48px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;
  box-shadow:0 12px 28px -10px rgba(37,211,102,.8);transition:transform .3s var(--ease)}
.wa:hover{transform:scale(1.08)}
.wa:active{transform:scale(.92)}
.wa svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* ===================== ظهور عند التمرير ===================== */
[data-rv]{opacity:0;transform:translateY(16px)}
[data-rv].in{opacity:1;transform:none;transition:opacity .55s var(--ease),transform .55s var(--ease)}

/* ===================== الاستجابة للشاشات الكبيرة ===================== */
@media(min-width:700px){
  :root{--shell:688px}
  .pgrid{grid-template-columns:repeat(3,1fr);gap:14px}
  .catgrid{grid-template-columns:repeat(3,1fr)}
  .prail .pcard{flex:0 0 172px}
  .serv{grid-template-columns:repeat(4,1fr);gap:11px}
  body{font-size:15.5px}
  .slide h2{font-size:28px}
  .slide p{font-size:13.5px;max-width:30ch}
}
@media(min-width:1000px){
  :root{--shell:1120px;--top-h:64px}
  .wrap{padding-inline:24px}
  .pgrid{grid-template-columns:repeat(5,1fr);gap:16px}
  .catgrid{grid-template-columns:repeat(6,1fr)}
  .prail .pcard{flex:0 0 194px}
  .serv{grid-template-columns:repeat(4,1fr);gap:14px}
  .serv__i{flex-direction:row;justify-content:center;gap:10px;padding:16px}
  .serv__i span{font-size:13px}
  .serv__i svg{width:24px;height:24px}
  /* الدوائر تتوسّط الشاشة الواسعة بدل التكدّس في جهة واحدة */
  .catrail__scroll{justify-content:center}
  .slide{aspect-ratio:30/10;padding:0 54px}
  .slide h2{font-size:36px;line-height:1.25}
  .slide__tag,.slide h2,.slide p,.slide__btn{max-width:min(52%,34ch)}
  .slide p{font-size:15px;margin-top:8px}
  .slide__art{width:30%;max-width:300px;inset-inline-end:9%;bottom:-14px}
  .hero__dots{inset-inline-start:44px;bottom:16px}
  .circ{width:92px}
  .circ__ring{width:84px;height:84px}
  .circ__ring svg{width:37px;height:37px}
  .circ b{font-size:13px}
  .shead h2{font-size:21px}
  .pcard__name{font-size:14px}
  .pcard__price b{font-size:17px}
  .pcard__add{width:38px;height:38px}
  .foot__links{grid-template-columns:repeat(4,1fr)}
  .phero__art{height:330px}
  .pinfo{border-radius:var(--r-xl);margin-top:-30px}
  .pinfo h1{font-size:25px}

  /* شريط التنقل يصير شريطاً عائماً على الكمبيوتر */
  .tabbar{
    inset-inline:auto;left:50%;transform:translateX(-50%);bottom:18px;
    border-radius:var(--r-full);border:1px solid var(--line);width:auto;
    box-shadow:0 18px 44px -18px rgba(42,42,42,.4);overflow:hidden
  }
  .tabbar__inner{width:auto;grid-template-columns:repeat(5,86px);height:66px}
  .tab{font-size:11px}
  .tab.is-on::before{top:auto;bottom:0;border-radius:4px 4px 0 0}
  .tab--mid .tab__ring{margin-top:-6px;width:42px;height:42px}
  body{padding-bottom:100px}
  .buybar{bottom:0}
  .wa{bottom:100px}
  .toasts{bottom:108px}
}

/* ===================== تقليل الحركة ===================== */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important}
  [data-rv],.pcard{opacity:1!important;transform:none!important}
}

/* شارة السلة داخل زر الشريط العلوي */
.ibtn .tab__badge{top:1px;inset-inline-end:1px;inset-inline-start:auto;border:1.5px solid var(--o-500)}
.appbar__row > b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ==========================================================================
   ٢) الصيدلانية الناطقة
   ========================================================================== */
.drbadge{
  position:absolute;bottom:8px;inset-inline-start:8px;z-index:3;
  width:34px;height:34px;border-radius:50%;overflow:visible;
  background:#fff;box-shadow:0 4px 14px -4px rgba(42,42,42,.4);
  border:2px solid #fff;display:grid;place-items:center;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease)
}
.drbadge svg{width:100%;height:100%;border-radius:50%}
.drbadge:hover{transform:scale(1.14) rotate(-6deg);box-shadow:var(--sh-brand)}
.drbadge:active{transform:scale(.9)}
.drbadge__pulse{
  position:absolute;inset:-3px;border-radius:50%;border:2px solid var(--o-500);
  animation:drPulse 2.6s var(--ease) infinite;pointer-events:none
}
@keyframes drPulse{
  0%{transform:scale(.9);opacity:.9}
  70%{transform:scale(1.5);opacity:0}
  100%{transform:scale(1.5);opacity:0}
}

/* زر كبير في صفحة المنتج */
.drcta{
  display:flex;align-items:center;gap:12px;width:100%;text-align:start;
  background:linear-gradient(120deg,var(--o-50),var(--o-100));
  border:1.5px solid var(--o-300);border-radius:var(--r-md);padding:12px 14px;margin:16px 0;
  position:relative;overflow:hidden;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease)
}
.drcta::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.65) 50%,transparent 70%);
  transform:translateX(-120%);animation:shine 4.5s var(--ease) infinite
}
@keyframes shine{0%,60%{transform:translateX(-120%)}100%{transform:translateX(120%)}}
.drcta:hover{transform:translateY(-3px);box-shadow:var(--sh-2)}
.drcta__pic{width:48px;height:48px;border-radius:50%;overflow:hidden;flex-shrink:0;
  box-shadow:0 4px 12px -4px rgba(168,92,8,.6)}
.drcta__pic svg{width:100%;height:100%}
.drcta b{display:block;font-size:14px;font-weight:700}
.drcta span{display:block;font-size:11.5px;color:var(--dim)}
.drcta__go{margin-inline-start:auto;color:var(--o-600);flex-shrink:0}
.drcta__go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round}

/* لوح الصيدلانية */
.drsheet{position:fixed;inset:0;z-index:150;visibility:hidden;opacity:0;
  transition:opacity .35s var(--ease),visibility .35s}
.drsheet.open{visibility:visible;opacity:1}
.drsheet__bg{position:absolute;inset:0;background:rgba(26,16,4,.55);backdrop-filter:blur(6px)}
.drsheet__panel{
  position:absolute;inset-inline:0;bottom:0;background:var(--surface);
  border-radius:var(--r-xl) var(--r-xl) 0 0;padding:20px 16px calc(18px + var(--safe-b));
  max-height:92vh;display:flex;flex-direction:column;
  transform:translateY(100%);transition:transform .45s var(--ease-out);
  width:min(var(--shell),100%);margin-inline:auto;box-shadow:0 -20px 60px -20px rgba(0,0,0,.5)
}
.drsheet.open .drsheet__panel{transform:none}
.drsheet__x{position:absolute;top:14px;inset-inline-end:14px;width:34px;height:34px;
  border-radius:50%;background:var(--bg-soft);display:grid;place-items:center;color:var(--dim)}
.drsheet__x svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}

.dr{display:flex;align-items:center;gap:14px}
.dr__stage{position:relative;width:96px;height:96px;flex-shrink:0}
.dr__svg{width:96px;height:96px;border-radius:50%;position:relative;z-index:2;
  box-shadow:0 10px 26px -10px rgba(168,92,8,.55)}
.dr__ring{position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--o-400);opacity:0}
.dr .is-talking,.dr.is-talking .dr__ring{opacity:1}
.dr.is-talking .dr__ring{animation:drWave 1.8s var(--ease) infinite}
.dr.is-talking .dr__ring--2{animation-delay:.6s}
@keyframes drWave{0%{transform:scale(.95);opacity:.7}100%{transform:scale(1.45);opacity:0}}
.dr__head{transform-origin:100px 90px;animation:drBob 4.5s var(--ease) infinite}
@keyframes drBob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2.5px) rotate(1.2deg)}}
.dr__eyes{transform-origin:100px 86px;animation:drBlink 5.2s infinite}
@keyframes drBlink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.08)}}
.dr__mouth{transform-origin:100px 107px;transition:transform .2s var(--ease)}
.dr.is-talking .dr__mouth{animation:drTalk .34s var(--ease) infinite}
@keyframes drTalk{
  0%{transform:scaleY(.45) scaleX(1)}
  35%{transform:scaleY(1.9) scaleX(.86)}
  65%{transform:scaleY(.9) scaleX(1.05)}
  100%{transform:scaleY(.45) scaleX(1)}
}
.dr__who b{display:block;font-size:16px;font-weight:700;font-family:var(--head)}
.dr__who span{font-size:12px;color:var(--o-600);font-weight:600}

.drsheet__prod{font-size:12.5px;color:var(--dim);margin:14px 0 8px;
  padding-bottom:10px;border-bottom:1px dashed var(--line-2)}
.drsheet__text{flex:1;overflow-y:auto;padding:4px 2px 8px;-webkit-overflow-scrolling:touch}
.drline{font-size:14px;line-height:1.95;color:var(--faint);padding:7px 11px;border-radius:12px;
  transition:all .35s var(--ease);margin-bottom:2px}
.drline.on{color:var(--text);background:var(--o-50);font-weight:500;
  box-shadow:inset 3px 0 0 var(--o-500)}
.drsheet__bar{display:flex;gap:9px;margin-top:12px}
.drsheet__bar .btn--ghost{width:52px;flex-shrink:0;padding:12px}
.drsheet__note{display:block;text-align:center;font-size:10.5px;color:var(--faint);margin-top:10px}

/* ==========================================================================
   ٣) صفحة المنتج الكاملة
   ========================================================================== */
.pgal{background:var(--iri);position:relative;overflow:hidden}
.pgal__main{height:300px;display:grid;place-items:center;padding:24px;position:relative}
.pgal__main svg{height:100%;width:auto;max-width:82%;
  filter:drop-shadow(0 22px 34px rgba(42,42,42,.22));
  transition:transform .6s var(--ease)}
.pgal__main.zoom svg{transform:scale(1.35)}
.pgal__glow{position:absolute;width:62%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,rgba(240,146,31,.35),transparent 68%);
  filter:blur(28px);animation:glowFloat 9s var(--ease) infinite;pointer-events:none}
@keyframes glowFloat{0%,100%{transform:translate(-8%,4%) scale(1)}50%{transform:translate(8%,-6%) scale(1.14)}}
.pgal__thumbs{display:flex;gap:8px;justify-content:center;padding:0 14px 16px;flex-wrap:wrap}
.pthumb{width:54px;height:54px;border-radius:13px;background:var(--surface);
  border:2px solid transparent;display:grid;place-items:center;padding:6px;
  transition:all .28s var(--ease);box-shadow:var(--sh-1)}
.pthumb svg{width:100%;height:auto;max-height:100%}
.pthumb.on{border-color:var(--o-500);transform:translateY(-3px);box-shadow:var(--sh-brand)}
.pgal__zoom{position:absolute;top:14px;inset-inline-end:14px;width:36px;height:36px;
  border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center;
  color:var(--dim);box-shadow:var(--sh-1);z-index:2}
.pgal__zoom svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.crumb{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--faint);
  padding:12px 0 2px;flex-wrap:wrap}
.crumb a{color:var(--o-600);font-weight:600}
.crumb svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}

.pbrand{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.pbrand img{height:22px;width:auto}
.pbrand span{font-size:11px;color:var(--faint)}

.pstars{display:inline-flex;align-items:center;gap:3px}
.pstars svg{width:14px;height:14px;fill:var(--gold-400);stroke:none}
.pstars svg.off{fill:var(--line-2)}

.pts{display:flex;align-items:center;gap:7px;background:linear-gradient(120deg,#fff8ec,#fdf0da);
  border:1px dashed var(--o-300);border-radius:var(--r-sm);padding:9px 12px;margin:12px 0;
  font-size:12.5px;color:var(--o-700);font-weight:600}
.pts svg{width:17px;height:17px;fill:none;stroke:var(--o-500);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pts b{color:var(--o-600)}

/* أحجام ودرجات بديلة */
.pvars{display:flex;gap:8px;overflow-x:auto;padding:2px 14px 6px;margin-inline:-14px;scrollbar-width:none}
.pvars::-webkit-scrollbar{display:none}
.pvar{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:4px;
  padding:8px 12px;border-radius:var(--r-sm);border:1.5px solid var(--line);
  background:var(--surface);min-width:84px;transition:all .28s var(--ease)}
.pvar b{font-size:12px;font-weight:700}
.pvar span{font-size:10.5px;color:var(--faint)}
.pvar.on{border-color:var(--o-500);background:var(--o-50);box-shadow:var(--sh-brand)}

/* لوح التوصيل */
.deliv{border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;margin:16px 0}
.deliv__i{display:flex;align-items:center;gap:11px;padding:12px 13px;border-bottom:1px solid var(--line)}
.deliv__i:last-child{border-bottom:0}
.deliv__ic{width:34px;height:34px;border-radius:10px;background:var(--o-100);color:var(--o-600);
  display:grid;place-items:center;flex-shrink:0}
.deliv__ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.deliv__i b{display:block;font-size:12.8px;font-weight:600}
.deliv__i span{display:block;font-size:11px;color:var(--faint)}
.deliv__i .tagok{margin-inline-start:auto;font-size:10.5px;font-weight:700;color:var(--green);
  background:rgba(47,163,107,.12);padding:3px 9px;border-radius:99px;white-space:nowrap}

/* شريط الثقة */
.trustrow{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}
.trustrow div{text-align:center;padding:11px 6px;background:var(--bg-soft);border-radius:var(--r-sm)}
.trustrow svg{width:21px;height:21px;margin:0 auto 5px;display:block;fill:none;
  stroke:var(--o-500);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.trustrow span{font-size:10.5px;font-weight:600;color:var(--dim);line-height:1.4}

/* تبويبات */
.ptabs{display:flex;gap:4px;border-bottom:1.5px solid var(--line);margin-top:20px;
  overflow-x:auto;scrollbar-width:none}
.ptabs::-webkit-scrollbar{display:none}
.ptab{flex:0 0 auto;padding:11px 14px;font-size:13px;font-weight:600;color:var(--faint);
  position:relative;white-space:nowrap;transition:color .25s}
.ptab.on{color:var(--o-600)}
.ptab.on::after{content:"";position:absolute;inset-inline:8px;bottom:-1.5px;height:3px;
  border-radius:3px 3px 0 0;background:var(--grad);animation:tabIn .35s var(--ease-out)}
.ptabbody{padding:14px 0 4px;font-size:13.5px;line-height:1.95;color:var(--dim);
  animation:fadeUp .4s var(--ease)}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ptabbody ul li{position:relative;padding-inline-start:18px;margin-bottom:7px}
.ptabbody ul li::before{content:"";position:absolute;inset-inline-start:0;top:9px;
  width:7px;height:7px;border-radius:50%;background:var(--o-400)}

/* التقييمات */
.rev__top{display:flex;gap:18px;align-items:center;padding:14px;background:var(--bg-soft);
  border-radius:var(--r-md);margin-bottom:14px}
.rev__score b{font-size:34px;font-weight:800;line-height:1;color:var(--o-600);display:block}
.rev__score small{font-size:11px;color:var(--faint)}
.rev__bars{flex:1;min-width:0}
.rbar{display:flex;align-items:center;gap:7px;font-size:10.5px;color:var(--faint);margin-bottom:3px}
.rbar i{flex:1;height:6px;border-radius:99px;background:var(--line);overflow:hidden;font-style:normal}
.rbar i b{display:block;height:100%;border-radius:99px;background:var(--grad);width:0;
  transition:width 1s var(--ease-out)}
.rcard{padding:13px;border:1px solid var(--line);border-radius:var(--r-md);margin-bottom:9px;
  background:var(--surface)}
.rcard__h{display:flex;align-items:center;gap:9px;margin-bottom:7px}
.rcard__av{width:32px;height:32px;border-radius:50%;background:var(--grad);color:#fff;
  display:grid;place-items:center;font-weight:700;font-size:13px;flex-shrink:0}
.rcard__h b{font-size:12.8px;font-weight:600}
.rcard__h time{font-size:10.5px;color:var(--faint);margin-inline-start:auto}
.rcard p{font-size:13px;line-height:1.85;color:var(--dim)}
.rcard__ok{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:var(--green);
  font-weight:700;margin-top:7px}
.rcard__ok svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}

/* المورد */
.supp{border:1.5px solid var(--line);border-radius:var(--r-md);padding:14px;margin:16px 0;
  background:linear-gradient(130deg,var(--surface),var(--bg-soft))}
.supp__h{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.supp__h svg{width:19px;height:19px;fill:none;stroke:var(--o-500);stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
.supp__h b{font-size:13.5px;font-weight:700}
.supp p{font-size:12.5px;color:var(--dim);line-height:1.8;margin-bottom:10px}
.supp__row{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 11px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-sm);margin-bottom:7px;font-size:12px}
.supp__row span{color:var(--faint)}
.supp__row b{font-family:var(--head);letter-spacing:.03em}
.supp__link{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;
  color:var(--o-600);margin-top:4px}
.supp__link svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* قسم شريك التصنيع في الرئيسية */
.partner{border-radius:var(--r-lg);padding:20px 16px;margin-top:24px;color:#fff;position:relative;
  overflow:hidden;background:linear-gradient(135deg,#2b2016,#54351a 48%,#8a5410)}
.partner::after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;
  background:#f0921f;filter:blur(60px);opacity:.35;bottom:-90px;inset-inline-start:-60px}
.partner__k{position:relative;font-size:11px;font-weight:700;opacity:.85;letter-spacing:.04em}
.partner h2{position:relative;font-size:19px;font-weight:700;margin:5px 0 8px}
.partner p{position:relative;font-size:12.5px;opacity:.9;line-height:1.85}
.partner__g{position:relative;display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:14px 0}
.partner__g div{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);
  border-radius:var(--r-sm);padding:10px;backdrop-filter:blur(6px)}
.partner__g b{display:block;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}
.partner__g span{font-size:10.5px;opacity:.82}
.partner .btn{position:relative;background:#fff;color:var(--o-700)}

/* ==========================================================================
   ٤) مؤثرات بصرية
   ========================================================================== */
/* دخول الصفحة */
@keyframes pageIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
main{animation:pageIn .45s var(--ease-out)}
body.leaving main{opacity:0;transform:translateY(-8px);transition:opacity .22s,transform .22s}

/* هيكل تحميل */
.sk{background:linear-gradient(100deg,var(--bg-soft) 30%,var(--surface) 50%,var(--bg-soft) 70%);
  background-size:220% 100%;animation:skShine 1.4s linear infinite;border-radius:var(--r-sm)}
@keyframes skShine{to{background-position:-220% 0}}

/* تأثير النقر */
.rip{position:absolute;border-radius:50%;background:rgba(240,146,31,.35);
  transform:scale(0);animation:rip .55s var(--ease-out) forwards;pointer-events:none}
@keyframes rip{to{transform:scale(2.6);opacity:0}}

/* إمالة ثلاثية الأبعاد */
.tilt{transition:transform .35s var(--ease)}
.tilt-on{transition:transform .08s linear}

/* عدّاد متحرك */
.cnt{font-variant-numeric:tabular-nums}

/* شريط تقدّم التمرير */
.sprog{position:fixed;top:0;inset-inline:0;height:3px;z-index:200;background:var(--grad);
  transform-origin:0 50%;transform:scaleX(0);transition:transform .1s linear}
[dir=rtl] .sprog{transform-origin:100% 50%}

@media(min-width:1000px){
  .pgal__main{height:380px}
  .trustrow{gap:12px}
  .drsheet__panel{border-radius:var(--r-xl);bottom:auto;top:50%;transform:translateY(-44%) scale(.96);
    max-height:86vh}
  .drsheet.open .drsheet__panel{transform:translateY(-50%) scale(1)}
  .dr__stage,.dr__svg{width:112px;height:112px}
  .partner__g{grid-template-columns:repeat(4,1fr)}
}
@media(prefers-reduced-motion:reduce){
  .dr__head,.dr__eyes,.dr.is-talking .dr__mouth,.dr.is-talking .dr__ring,
  .drbadge__pulse,.drcta::after,.pgal__glow,.sk,main{animation:none!important}
}

/* أيقونات التشغيل/الإيقاف في لوح الصيدلانية مصمتة لا محدّدة */
.drsheet__bar [data-dr-play] svg{fill:currentColor;stroke:none}
.drsheet__bar [data-dr-again] svg{fill:none;stroke:currentColor}

/* ===== 5) مزامنة الشفاه من الصوت الفعلي (ElevenLabs) ===== */
.dr.is-live .dr__mouth{animation:none}
.dr.is-live .dr__head{animation-duration:3.4s}
@media (prefers-reduced-motion: reduce){
  .dr.is-live .dr__mouth{animation:none;transition:none}
}

/* ===== 6) ترتيب الشريطين السفليين: شريط الشراء فوق شريط التنقّل ===== */
/* الجوال: مساحة إضافية حتى لا يغطي شريط الشراء آخر المحتوى */
.buybar{bottom:calc(var(--bar-h) + var(--safe-b) + 1px)}
body:has(.buybar){padding-bottom:calc(var(--bar-h) + var(--safe-b) + 78px)}
body:has(.buybar) .toasts{bottom:calc(var(--bar-h) + var(--safe-b) + 86px)}
body:has(.buybar) .wa{bottom:calc(var(--bar-h) + var(--safe-b) + 88px)}

@media(min-width:1000px){
  /* شريط التنقّل عائم في المنتصف، فيصير شريط الشراء عائمًا فوقه لا خلفه */
  .buybar{
    inset-inline:auto;left:50%;transform:translateX(-50%);
    bottom:98px;
    width:min(var(--shell),calc(100% - 48px));
    border:1px solid var(--line);border-radius:var(--r-full);
    padding:9px 6px;overflow:hidden;
    box-shadow:0 18px 44px -18px rgba(42,42,42,.4)
  }
  .buybar .wrap{padding-inline:12px}
  body:has(.buybar){padding-bottom:188px}
  body:has(.buybar) .toasts{bottom:192px}
  body:has(.buybar) .wa{bottom:194px}
}

/* ===== 7) رمز الصيدلانية يلتصق بصورة المنتج لا بسطر السعر ===== */
.pcard__top{position:relative}

/* ===== 8) شاشات عريضة: زر الشراء مصغّر بجانب القائمة السفلية ===== */
@media(min-width:1200px){
  .buybar{
    inset-inline:auto;left:auto;right:18px;transform:none;
    bottom:18px;width:auto;max-width:calc(50% - 240px);
    padding:7px;border-radius:var(--r-full)
  }
  .buybar .wrap{width:auto;padding-inline:3px}
  .buybar__in{gap:8px;min-width:0}
  .buybar .qty button{width:30px;height:34px;font-size:16px}
  .buybar .qty b{min-width:22px;font-size:13px}
  .buybar .btn--lg{
    padding:9px 15px;font-size:13.5px;min-height:38px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0
  }
  .buybar .btn--block{width:auto}
  .buybar .btn--lg svg{width:17px;height:17px;flex-shrink:0}
  body:has(.buybar){padding-bottom:112px}
  body:has(.buybar) .toasts{bottom:104px}
  body:has(.buybar) .wa{bottom:104px}
}
/* ===== 9) نماذج وحساب وطلبات ===== */
.form{display:grid;gap:13px}
.fi{display:grid;gap:6px}
.fi>span{font-size:12.5px;font-weight:600;color:var(--dim)}
.fi input,.fi select,.fi textarea{
  width:100%;font:inherit;font-size:15px;color:var(--ink-900);
  background:var(--bg);border:1.5px solid var(--line);border-radius:var(--r-sm);
  padding:11px 13px;transition:border-color .2s,box-shadow .2s;min-height:46px}
.fi input:focus,.fi select:focus,.fi textarea:focus{
  outline:none;border-color:var(--o-400);box-shadow:0 0 0 3px var(--o-100)}
.fi input:disabled{background:var(--pearl-50);color:var(--dim)}
.fi input::placeholder{color:var(--faint)}
.form__err{margin:0;font-size:13px;color:#b42318;background:#fef3f2;
  border:1px solid #fecdca;border-radius:var(--r-sm);padding:9px 12px}
.form__alt{margin:2px 0 0;font-size:13.5px;color:var(--dim);text-align:center}
.lnk{background:none;border:0;padding:0;font:inherit;font-size:inherit;
  color:var(--o-600);font-weight:600;cursor:pointer;text-decoration:underline}
.lnk--bad{color:#b42318}
.chk{display:flex;gap:9px;align-items:flex-start;font-size:13.5px;color:var(--dim);cursor:pointer}
.chk input{width:19px;height:19px;accent-color:var(--o-500);flex-shrink:0;margin-top:1px}
.spin{width:15px;height:15px;border:2px solid currentColor;border-top-color:transparent;
  border-radius:50%;display:inline-block;margin-inline-end:7px;vertical-align:-3px;
  animation:luSpin .7s linear infinite}
@keyframes luSpin{to{transform:rotate(360deg)}}

.segm{display:flex;gap:4px;background:var(--pearl-100);border-radius:var(--r-full);
  padding:4px;margin:0 0 14px}
.segm__b{flex:1;border:0;background:none;font:inherit;font-size:13.5px;font-weight:600;
  color:var(--dim);padding:9px 6px;border-radius:var(--r-full);cursor:pointer;transition:.25s var(--ease)}
.segm__b.on{background:var(--bg);color:var(--o-700);box-shadow:0 2px 8px -3px rgba(42,42,42,.3)}

.authwrap{margin-top:16px;max-width:460px}
.authwrap__fine{font-size:12px;color:var(--faint);text-align:center;margin-top:12px;line-height:1.7}
.vbox{text-align:center}
.vbox__ic{width:60px;height:60px;margin:0 auto 12px;border-radius:50%;background:var(--o-50);
  color:var(--o-600);display:grid;place-items:center}
.vbox__ic svg{width:28px;height:28px}
.vbox h2{margin:0 0 6px;font-family:var(--head);font-size:19px}
.vbox p{margin:0 0 16px;color:var(--dim);font-size:14px;line-height:1.8}
#code{text-align:center;letter-spacing:.5em;font-size:22px;font-weight:700;padding-inline-start:.5em}

/* إتمام الطلب */
.co__step{margin-bottom:14px}
.co__h{display:flex;align-items:center;gap:9px;margin:0 0 14px;font-family:var(--head);font-size:16px}
.co__h i{width:25px;height:25px;border-radius:50%;background:var(--o-100);color:var(--o-700);
  font-style:normal;font-size:12.5px;font-weight:700;display:grid;place-items:center;flex-shrink:0}
.co__note{margin:11px 0 0;font-size:12.5px;color:var(--dim);line-height:1.7}
.co__fine{margin:10px 0 0;font-size:11.5px;color:var(--faint);text-align:center;line-height:1.7}

.addrs{display:grid;gap:9px;margin-bottom:11px}
.addrc,.payc{display:flex;gap:11px;align-items:flex-start;padding:13px;cursor:pointer;
  border:1.5px solid var(--line);border-radius:var(--r-md);transition:.22s var(--ease)}
.addrc.on,.payc.on{border-color:var(--o-400);background:var(--o-50)}
.addrc input,.payc input{width:19px;height:19px;accent-color:var(--o-500);flex-shrink:0;margin-top:2px}
.addrc__b,.payc div{display:grid;gap:3px;min-width:0}
.addrc__b b,.payc b{font-size:14px}
.addrc__b span,.payc span{font-size:12.5px;color:var(--dim);line-height:1.6}
.addrc__pin{color:var(--o-600)!important;font-weight:600}
.pays{display:grid;gap:9px}

.addr__grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.addr__grid .fi:nth-child(-n+2){grid-column:span 2}
@media(max-width:520px){.addr__grid{grid-template-columns:1fr}.addr__grid .fi:nth-child(-n+2){grid-column:auto}}
.addr__act{display:grid;gap:9px}
.geo{border:1.5px dashed var(--line);border-radius:var(--r-md);padding:12px}
.geo__hint{margin:8px 0 0;font-size:12px;color:var(--dim);text-align:center;line-height:1.7}

.colist{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:10px}
.colist li{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;align-items:baseline}
.colist__q{font-style:normal;color:var(--dim);font-size:12px}
.tot{border-top:1px solid var(--line);padding-top:12px;display:grid;gap:8px}
.tot__r{display:flex;justify-content:space-between;font-size:13.5px}
.tot__r--dim{color:var(--dim);font-size:12px}
.tot__r--big{font-size:16px;font-weight:700;border-top:1px solid var(--line);padding-top:10px;margin-top:2px}
.free{color:var(--green)}

/* الطلب */
.done{text-align:center;background:linear-gradient(150deg,var(--o-50),var(--pearl-50))}
.done__ic{width:54px;height:54px;margin:0 auto 10px;border-radius:50%;background:var(--green);
  color:#fff;display:grid;place-items:center}
.done__ic svg{width:26px;height:26px}
.done h2{margin:0 0 5px;font-family:var(--head);font-size:19px}
.done p{margin:0;color:var(--dim);font-size:13.5px}
.ordhead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.ordhead__k{display:block;font-size:11.5px;color:var(--dim)}
.ordhead b{font-size:15px;font-family:var(--head)}
.st{font-size:12px;font-weight:700;padding:6px 11px;border-radius:var(--r-full);white-space:nowrap}
.st--new{background:var(--o-100);color:var(--o-700)}
.st--work{background:#eef4ff;color:#2d5bd7}
.st--ok{background:#e9f7ef;color:#1a7f4b}
.st--bad{background:#fef3f2;color:#b42318}
.track{list-style:none;margin:0;padding:0;display:grid;gap:0}
.track li{position:relative;padding-inline-start:26px;padding-bottom:16px;font-size:13px;color:var(--faint)}
.track li:last-child{padding-bottom:0}
.track li span{position:absolute;inset-inline-start:0;top:2px;width:13px;height:13px;border-radius:50%;
  background:var(--bg);border:2px solid var(--line)}
.track li::after{content:"";position:absolute;inset-inline-start:6px;top:16px;bottom:0;width:2px;background:var(--line)}
.track li:last-child::after{display:none}
.track li.on{color:var(--ink-900);font-weight:600}
.track li.on span{background:var(--o-500);border-color:var(--o-500)}
.track li.on::after{background:var(--o-300)}
.track li.cur span{box-shadow:0 0 0 4px var(--o-100)}
.addrp{margin:0 0 12px;font-size:13.5px;line-height:1.9}
.ordact{display:grid;gap:9px;margin-top:14px}

/* الحساب */
.uhead{display:flex;gap:13px;align-items:center;margin-bottom:14px}
.uhead__av{width:48px;height:48px;border-radius:50%;background:var(--grad);color:#fff;
  display:grid;place-items:center;font-size:20px;font-weight:700;flex-shrink:0}
.uhead b{display:block;font-size:15.5px}
.uhead span{font-size:12.5px;color:var(--dim)}
.guest{text-align:center;display:grid;gap:10px}
.guest__ic{width:62px;height:62px;margin:0 auto 4px;border-radius:50%;background:var(--o-50);
  color:var(--o-500);display:grid;place-items:center}
.guest__ic svg{width:30px;height:30px}
.guest h2{margin:0;font-family:var(--head);font-size:19px}
.guest p{margin:0 0 8px;color:var(--dim);font-size:14px}
.addrrow{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;align-items:flex-start}
.addrrow div:first-child{display:grid;gap:3px;min-width:0}
.addrrow b{font-size:14px}
.addrrow span{font-size:12.5px;color:var(--dim);line-height:1.6}
.addrrow__a{display:grid;gap:7px;text-align:end;flex-shrink:0;font-size:12.5px}
.pill{font-style:normal;font-size:10.5px;font-weight:700;background:var(--o-100);color:var(--o-700);
  padding:3px 8px;border-radius:var(--r-full);vertical-align:1px}
.ordrow{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;
  align-items:center;text-decoration:none;color:inherit}
.ordrow div:first-child{display:grid;gap:3px;min-width:0}
.ordrow b{font-size:14px;font-family:var(--head)}
.ordrow span{font-size:12.5px;color:var(--dim)}
.ordrow__e{display:grid;gap:6px;justify-items:end;flex-shrink:0}
.ordrow__e b{font-size:14.5px;font-family:var(--body)}
.empty{text-align:center;display:grid;gap:10px;justify-items:center}
.empty h2{margin:0;font-family:var(--head);font-size:17px}
.empty p{margin:0;color:var(--dim);font-size:14px}

/* ===== 10) زر الشرح الصوتي — الشارة الحمراء في زاوية صورة المنتج ===== */
.drbadge{
  position:absolute;bottom:8px;right:8px;inset-inline-start:auto;z-index:3;
  width:46px;height:46px;border-radius:50%;padding:0;overflow:visible;
  background:#d81f26;border:2.5px solid #fff;
  box-shadow:0 5px 16px -4px rgba(176,22,28,.65);
  display:grid;place-items:center;cursor:pointer;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease)
}
.drbadge img{width:118%;height:118%;max-width:none;object-fit:contain;
  margin:-9%;display:block;pointer-events:none;border-radius:50%}
.drbadge svg{width:100%;height:100%;border-radius:50%}
.drbadge:hover{transform:scale(1.12) rotate(-5deg);box-shadow:0 8px 22px -5px rgba(176,22,28,.8)}
.drbadge:active{transform:scale(.9)}
.drbadge__pulse{border-color:#d81f26}
@media(max-width:420px){.drbadge{width:40px;height:40px;bottom:6px;right:6px}}

/* الشارة فوق صورة المنتج في صفحة المنتج */
.pgal{position:relative}
.pgal .drbadge{width:58px;height:58px;bottom:14px;right:14px}
@media(max-width:420px){.pgal .drbadge{width:50px;height:50px;bottom:10px;right:10px}}

/* ===== 11) البطاقة العامة لصفحات الحساب والطلب ===== */
.card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);padding:16px;margin-bottom:14px
}
.card:last-child{margin-bottom:0}
.track li{padding-bottom:13px}
.track li::after{top:15px}

/* ===== 12) الصفحات النظامية ===== */
.legal{margin-top:14px;max-width:760px}
.legal h1{font-family:var(--head);font-size:21px;margin:0 0 18px}
.legal h2{font-family:var(--head);font-size:15.5px;margin:22px 0 7px;color:var(--o-700)}
.legal p{margin:0 0 10px;font-size:14px;line-height:1.95;color:var(--ink-800)}
.legal a{color:var(--o-600);font-weight:600}
.legal .todo{background:#fffbeb;border:1px solid #fde68a;border-radius:var(--r-sm);
  padding:10px 13px;font-size:13px;color:#92400e}
.legal__upd{margin-top:22px;padding-top:14px;border-top:1px solid var(--line);
  font-size:12px;color:var(--faint)}

/* ===== 13) الوجه الجديد ===== */
.dr__face{
  width:96px;height:96px;border-radius:50%;position:relative;z-index:2;
  display:block;object-fit:contain;background:#d81f26;border:3px solid #fff;
  box-shadow:0 6px 18px -5px rgba(176,22,28,.6);
  animation:drBob 4.5s var(--ease) infinite;
  transform-origin:50% 60%;transition:transform .12s linear
}
.dr.is-talking .dr__face{box-shadow:0 8px 24px -5px rgba(176,22,28,.8)}
.drbadge{width:36px;height:36px;border-width:2px;bottom:7px;right:7px}
@media(max-width:420px){.drbadge{width:32px;height:32px;bottom:6px;right:6px}}
.pgal .drbadge{width:48px;height:48px;bottom:12px;right:12px}
@media(max-width:420px){.pgal .drbadge{width:42px;height:42px;bottom:10px;right:10px}}
@media (prefers-reduced-motion: reduce){.dr__face{animation:none;transition:none}}
