/* ==========================================================
   IL PARCO — متجر إلكتروني
   ========================================================== */

:root{
  --ground:#FBF7F5;
  --surface:#FFFFFF;
  --surface-2:#F5EDEB;
  --ink:#2E2328;
  --ink-2:#6B565E;
  --muted:#9A868E;
  --rose:#B8677A;
  --rose-soft:#E9CBD1;
  --deep:#8F4A5B;
  --gold:#C9A24B;
  --line:#EADCDC;
  --line-soft:#F3E9E8;
  --good:#3E7D5C;
  --warn:#A8752A;
  --bad:#B4453C;
  --r-sm:6px; --r-md:12px; --r-lg:18px; --r-pill:999px;
  --shadow-1:0 1px 2px rgba(46,35,40,.05), 0 8px 22px -14px rgba(143,74,91,.28);
  --shadow-2:0 2px 6px rgba(46,35,40,.07), 0 22px 50px -24px rgba(143,74,91,.42);
  --head-h:58px;
  --ff-body:'Tajawal','Segoe UI',system-ui,-apple-system,sans-serif;
  --ff-display:'Amiri','Times New Roman',serif;
  --ff-lat:'Cormorant Garamond','Times New Roman',serif;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;direction:rtl;
  background:var(--ground);color:var(--ink);
  font-family:var(--ff-body);font-size:15px;line-height:1.8;
  overflow-x:hidden;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
button,input,select,textarea{font:inherit;color:inherit;}
button{cursor:pointer;background:none;border:0;padding:0;}
a{color:inherit;text-decoration:none;}
:focus-visible{outline:2px solid var(--rose);outline-offset:2px;border-radius:var(--r-sm);}
.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;white-space:nowrap;}
.nb{white-space:nowrap;}
.lat{font-family:var(--ff-lat);direction:ltr;unicode-bidi:isolate;}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

.wrap{max-width:1200px;margin:0 auto;padding:0 16px;}
@media(min-width:900px){ .wrap{padding:0 28px;} }

/* ---------------- announcement ---------------- */
.ann{
  background:var(--ink);color:#F6E9E9;
  font-size:.72rem;letter-spacing:.06em;text-align:center;
  padding:7px 14px;
}
.ann b{color:var(--rose-soft);font-weight:500;}

/* ---------------- header ---------------- */
.head{
  position:sticky;top:0;z-index:60;
  background:rgba(251,247,245,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.head-in{
  height:var(--head-h);
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;
}
.head-r,.head-l{display:flex;align-items:center;gap:4px;}
.head-l{justify-content:flex-end;}
.brandmark{display:flex;align-items:center;gap:9px;justify-self:center;}
.brandmark img{width:32px;height:32px;border-radius:50%;}
.brandmark .wm{
  font-family:var(--ff-lat);font-size:1.16rem;letter-spacing:.22em;
  color:var(--deep);direction:ltr;line-height:1;padding-inline-start:.22em;
}
.iconbtn{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;color:var(--ink-2);
  transition:background .15s,color .15s;
}
.iconbtn:hover{background:var(--surface-2);color:var(--deep);}
.iconbtn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.cartbtn{position:relative;}
.cartbtn .pip{
  position:absolute;top:3px;inset-inline-start:3px;
  min-width:17px;height:17px;padding:0 4px;border-radius:var(--r-pill);
  background:var(--rose);color:#fff;font-size:.6rem;font-weight:700;
  display:grid;place-items:center;
}

/* nav */
.nav{
  border-bottom:1px solid var(--line);background:var(--ground);
  overflow-x:auto;scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none;}
.nav-in{display:flex;gap:2px;padding:0 16px;min-width:max-content;}
@media(min-width:900px){ .nav-in{justify-content:center;padding:0 28px;} }
.nav a{
  padding:11px 14px;font-size:.86rem;color:var(--ink-2);
  border-bottom:2px solid transparent;white-space:nowrap;transition:color .15s,border-color .15s;
}
.nav a:hover{color:var(--deep);}
.nav a.on{color:var(--deep);border-bottom-color:var(--rose);font-weight:500;}

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 26px;border-radius:var(--r-pill);
  font-size:.92rem;font-weight:500;
  transition:background .16s,color .16s,border-color .16s,opacity .16s;
}
.btn-p{background:var(--rose);color:#fff;}
.btn-p:hover{background:var(--deep);}
.btn-d{background:var(--ink);color:#fff;}
.btn-d:hover{background:#43333A;}
.btn-o{border:1px solid var(--line);color:var(--ink);background:var(--surface);}
.btn-o:hover{border-color:var(--rose);color:var(--deep);}
.btn-wa{background:#25976C;color:#fff;}
.btn-wa:hover{background:#1E7C58;}
.btn[disabled]{opacity:.45;pointer-events:none;}
.btn-lg{padding:15px 32px;font-size:1rem;width:100%;}
.btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}

/* ---------------- hero ---------------- */
.hero{position:relative;margin-top:0;background:var(--surface-2);}
.hero-img{position:relative;aspect-ratio:4/5;overflow:hidden;}
@media(min-width:760px){ .hero-img{aspect-ratio:16/7;} }
.hero-img img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;}
.hero-img::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(190deg,rgba(46,35,40,.05) 0%,rgba(46,35,40,.22) 42%,rgba(46,35,40,.55) 72%,rgba(46,35,40,.78) 100%);
}
.hero-copy{
  position:absolute;inset-inline:0;bottom:0;z-index:2;
  padding:52px 20px 34px;text-align:center;color:#fff;
  background:linear-gradient(180deg,rgba(46,35,40,0) 0%,rgba(46,35,40,.34) 38%,rgba(46,35,40,.62) 100%);
}
@media(min-width:760px){ .hero-copy{padding-bottom:56px;} }
.hero-copy .kick{
  font-family:var(--ff-lat);font-size:.74rem;letter-spacing:.34em;
  direction:ltr;opacity:.9;margin-bottom:10px;
}
.hero-copy h1{
  font-family:var(--ff-display);font-weight:700;
  font-size:clamp(1.7rem,6vw,2.9rem);line-height:1.35;margin:0 0 10px;
  text-shadow:0 2px 22px rgba(46,35,40,.4);text-wrap:balance;
}
.hero-copy p{
  margin:0 auto 20px;max-width:44ch;font-size:.94rem;opacity:.95;
  text-shadow:0 1px 12px rgba(46,35,40,.5);
}
.hero-copy .btn-p{background:#fff;color:var(--deep);}
.hero-copy .btn-p:hover{background:var(--rose-soft);}

/* ---------------- trust strip ---------------- */
.trust{
  display:grid;grid-template-columns:repeat(3,1fr);
  background:var(--surface);border-bottom:1px solid var(--line);
}
.trust div{
  padding:15px 8px;text-align:center;
  border-inline-start:1px solid var(--line-soft);
}
.trust div:first-child{border-inline-start:0;}
.trust b{display:block;font-size:.8rem;font-weight:700;color:var(--deep);margin-bottom:2px;}
.trust span{font-size:.68rem;color:var(--muted);line-height:1.5;display:block;}
.trust span.nb{white-space:nowrap;}

/* ---------------- sections ---------------- */
.sec{padding:44px 0;}
.sec-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:14px;margin-bottom:20px;flex-wrap:wrap;
}
.sec-head h2{
  font-family:var(--ff-display);font-weight:700;
  font-size:clamp(1.35rem,4vw,1.85rem);margin:0;line-height:1.4;
}
.sec-head p{margin:4px 0 0;font-size:.88rem;color:var(--ink-2);max-width:56ch;}
.sec-head a{font-size:.85rem;color:var(--deep);border-bottom:1px solid var(--line);padding-bottom:2px;}
.sec-head a:hover{border-color:var(--rose);}

/* ---------------- product grid ---------------- */
.grid{
  display:grid;gap:12px;
  grid-template-columns:repeat(2,1fr);
}
@media(min-width:640px){ .grid{grid-template-columns:repeat(3,1fr);gap:16px;} }
@media(min-width:1000px){ .grid{grid-template-columns:repeat(4,1fr);gap:20px;} }

.card{
  position:relative;
  background:var(--surface);border:1px solid var(--line-soft);
  border-radius:var(--r-md);overflow:hidden;
  display:flex;flex-direction:column;
  transition:border-color .18s,box-shadow .18s,transform .18s;
}
.card:hover{border-color:var(--line);box-shadow:var(--shadow-1);transform:translateY(-2px);}
.card-img{position:relative;aspect-ratio:3/4;overflow:hidden;background:var(--surface-2);}
.card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.card:hover .card-img img{transform:scale(1.035);}
.ph{
  width:100%;height:100%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(160deg,#F7EFEE 0%,#EEDDDE 60%,#E7D2D5 100%);
  color:var(--deep);text-align:center;padding:14px;
}
.ph .ph-mark{font-family:var(--ff-lat);font-size:1.5rem;letter-spacing:.2em;direction:ltr;opacity:.55;}
.ph .ph-code{font-size:.72rem;letter-spacing:.14em;opacity:.75;}
.ph .ph-note{font-size:.64rem;opacity:.6;}
.badge{
  position:absolute;top:9px;inset-inline-start:9px;z-index:2;
  background:var(--surface);color:var(--deep);
  font-size:.62rem;font-weight:700;letter-spacing:.04em;
  padding:3px 9px;border-radius:var(--r-pill);
  box-shadow:0 2px 8px -3px rgba(46,35,40,.3);
}
.badge.hot{background:var(--rose);color:#fff;}
.badge.low{background:#FBF0E2;color:var(--warn);}
.fav{
  position:absolute;top:7px;inset-inline-end:7px;z-index:2;
  width:31px;height:31px;border-radius:50%;
  background:rgba(255,255,255,.9);display:grid;place-items:center;
  color:var(--muted);transition:color .15s,background .15s;
}
.fav:hover{color:var(--rose);background:#fff;}
.fav.on{color:var(--rose);}
.fav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;}
.fav.on svg{fill:currentColor;}
.card-body{padding:11px 12px 13px;display:flex;flex-direction:column;gap:5px;flex:1;}
.card-name{
  font-size:.86rem;font-weight:500;line-height:1.55;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card-meta{font-size:.68rem;color:var(--muted);letter-spacing:.04em;}
.card-foot{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:auto;padding-top:4px;}
.price{font-size:.98rem;font-weight:700;color:var(--deep);}
.price small{font-size:.68rem;font-weight:400;color:var(--muted);margin-inline-start:2px;}
.card-add{
  font-size:.72rem;color:var(--rose);border:1px solid var(--rose-soft);
  padding:4px 11px;border-radius:var(--r-pill);transition:background .15s,color .15s;
}
.card-add:hover{background:var(--rose);color:#fff;border-color:var(--rose);}

/* ---------------- category tiles ---------------- */
.cats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;}
@media(min-width:760px){ .cats{grid-template-columns:repeat(5,1fr);} }
.cat{
  border:1px solid var(--line);border-radius:var(--r-md);
  background:var(--surface);padding:18px 14px;text-align:center;
  transition:border-color .16s,background .16s;
}
.cat:hover{border-color:var(--rose);background:var(--surface-2);}
.cat b{display:block;font-size:.9rem;margin-bottom:3px;}
.cat span{font-size:.7rem;color:var(--muted);}

/* ---------------- filters ---------------- */
.filters{
  display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  padding:14px 0;border-bottom:1px solid var(--line-soft);margin-bottom:18px;
}
.chip{
  border:1px solid var(--line);border-radius:var(--r-pill);
  padding:6px 14px;font-size:.79rem;color:var(--ink-2);
  background:var(--surface);transition:all .15s;
}
.chip:hover{border-color:var(--rose-soft);color:var(--deep);}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink);}
.filters select{
  border:1px solid var(--line);border-radius:var(--r-pill);
  padding:6px 12px;font-size:.79rem;background:var(--surface);
  margin-inline-start:auto;
}
.count{font-size:.76rem;color:var(--muted);}

/* ---------------- product page ---------------- */
.pdp{display:grid;gap:22px;padding:22px 0 30px;}
@media(min-width:900px){ .pdp{grid-template-columns:1.05fr .95fr;gap:44px;align-items:start;} }

.gal{display:flex;flex-direction:column;gap:9px;}
.gal-main{
  aspect-ratio:3/4;border-radius:var(--r-md);overflow:hidden;
  background:var(--surface-2);border:1px solid var(--line-soft);
}
.gal-main img{width:100%;height:100%;object-fit:cover;}
.gal-thumbs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;}
.gal-thumbs::-webkit-scrollbar{display:none;}
.gal-thumbs button{
  flex:0 0 62px;aspect-ratio:3/4;border-radius:var(--r-sm);overflow:hidden;
  border:1px solid var(--line);opacity:.62;transition:opacity .15s,border-color .15s;
}
.gal-thumbs button.on{opacity:1;border-color:var(--rose);}
.gal-thumbs img{width:100%;height:100%;object-fit:cover;}

.pinfo{display:flex;flex-direction:column;gap:15px;}
.pinfo .code{font-size:.72rem;letter-spacing:.14em;color:var(--muted);}
.pinfo h1{
  font-family:var(--ff-display);font-weight:700;
  font-size:clamp(1.5rem,4.6vw,2.1rem);margin:0;line-height:1.4;
}
.pinfo .p-price{font-size:1.5rem;font-weight:700;color:var(--deep);}
.pinfo .p-price small{font-size:.8rem;font-weight:400;color:var(--muted);}
.pinfo .p-desc{margin:0;color:var(--ink-2);font-size:.92rem;}

.field{display:flex;flex-direction:column;gap:8px;}
.field > label{font-size:.8rem;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:8px;}
.field > label a{font-size:.74rem;font-weight:400;color:var(--deep);border-bottom:1px solid var(--line);}
.sizes{display:flex;gap:7px;flex-wrap:wrap;}
.size{
  min-width:48px;padding:9px 14px;border:1px solid var(--line);
  border-radius:var(--r-sm);font-size:.83rem;background:var(--surface);
  transition:all .15s;
}
.size:hover{border-color:var(--rose-soft);}
.size.on{background:var(--ink);color:#fff;border-color:var(--ink);}
.size .q{font-size:.62rem;opacity:.62;margin-inline-start:5px;}

.qty{display:flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:var(--r-pill);width:max-content;overflow:hidden;}
.qty button{width:38px;height:38px;display:grid;place-items:center;color:var(--ink-2);transition:background .15s;}
.qty button:hover{background:var(--surface-2);}
.qty span{min-width:36px;text-align:center;font-weight:700;font-size:.92rem;}

.pactions{display:flex;flex-direction:column;gap:9px;}
.pnote{
  background:var(--surface-2);border-radius:var(--r-md);
  padding:13px 15px;font-size:.8rem;color:var(--ink-2);line-height:1.75;
}
.pnote b{color:var(--ink);}

.acc{border-top:1px solid var(--line-soft);}
.acc details{border-bottom:1px solid var(--line-soft);}
.acc summary{
  padding:13px 2px;font-size:.86rem;font-weight:500;cursor:pointer;
  list-style:none;display:flex;justify-content:space-between;align-items:center;
}
.acc summary::-webkit-details-marker{display:none;}
.acc summary::after{content:"+";color:var(--rose);font-size:1.1rem;}
.acc details[open] summary::after{content:"−";}
.acc .acc-body{padding:0 2px 15px;font-size:.85rem;color:var(--ink-2);line-height:1.9;white-space:pre-line;}

/* sticky buy bar (mobile) */
.buybar{
  position:fixed;bottom:0;inset-inline:0;z-index:70;
  background:rgba(255,255,255,.97);backdrop-filter:blur(8px);
  border-top:1px solid var(--line);
  padding:9px 14px calc(9px + env(safe-area-inset-bottom));
  display:flex;gap:10px;align-items:center;
}
@media(min-width:900px){ .buybar{display:none;} }
.buybar .bb-price{font-weight:700;color:var(--deep);white-space:nowrap;}
.buybar .btn{flex:1;padding:12px 18px;}

/* ---------------- cart drawer ---------------- */
.scrim{
  position:fixed;inset:0;z-index:90;background:rgba(46,35,40,.42);
  opacity:0;pointer-events:none;transition:opacity .22s;
}
.scrim.on{opacity:1;pointer-events:auto;}
.drawer{
  position:fixed;top:0;inset-inline-start:0;bottom:0;z-index:100;
  width:min(420px,92vw);background:var(--ground);
  display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .26s cubic-bezier(.4,0,.2,1);
  box-shadow:var(--shadow-2);
}
.drawer.on{transform:translateX(0);}
.drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px;border-bottom:1px solid var(--line);
}
.drawer-head h3{margin:0;font-family:var(--ff-display);font-size:1.15rem;font-weight:700;}
.drawer-body{flex:1;overflow-y:auto;padding:14px 18px;}
.drawer-foot{border-top:1px solid var(--line);padding:16px 18px calc(16px + env(safe-area-inset-bottom));background:var(--surface);}

.line{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid var(--line-soft);}
.line-img{flex:0 0 62px;aspect-ratio:3/4;border-radius:var(--r-sm);overflow:hidden;background:var(--surface-2);}
.line-img img{width:100%;height:100%;object-fit:cover;}
.line-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.line-body .n{font-size:.85rem;font-weight:500;line-height:1.5;}
.line-body .m{font-size:.7rem;color:var(--muted);}
.line-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;}
.line-qty{display:flex;align-items:center;gap:2px;border:1px solid var(--line);border-radius:var(--r-pill);}
.line-qty button{width:26px;height:26px;display:grid;place-items:center;font-size:.9rem;color:var(--ink-2);}
.line-qty span{min-width:22px;text-align:center;font-size:.8rem;font-weight:700;}
.line-rm{font-size:.7rem;color:var(--muted);border-bottom:1px solid var(--line);}
.line-rm:hover{color:var(--bad);border-color:var(--bad);}

.totals{display:flex;flex-direction:column;gap:7px;margin-bottom:13px;font-size:.86rem;}
.totals .r{display:flex;justify-content:space-between;color:var(--ink-2);}
.totals .r.big{
  font-size:1.06rem;font-weight:700;color:var(--ink);
  padding-top:9px;border-top:1px solid var(--line);
}
.totals .free{color:var(--good);font-weight:500;}
.ship-nudge{
  background:#F0F6F2;border:1px solid #CDE4D7;color:#2C6247;
  border-radius:var(--r-sm);padding:8px 11px;font-size:.75rem;margin-bottom:11px;
}
.empty{text-align:center;padding:52px 18px;color:var(--muted);}
.empty .em{font-family:var(--ff-lat);font-size:2.2rem;color:var(--rose-soft);letter-spacing:.2em;direction:ltr;}
.empty p{font-size:.88rem;margin:8px 0 18px;}

/* ---------------- checkout ---------------- */
.co{display:grid;gap:26px;padding:24px 0 40px;}
@media(min-width:900px){ .co{grid-template-columns:1.25fr .75fr;gap:44px;align-items:start;} }
.co h1{font-family:var(--ff-display);font-size:1.7rem;font-weight:700;margin:0 0 4px;}
.co .lede{margin:0 0 22px;color:var(--ink-2);font-size:.9rem;}
.form{display:flex;flex-direction:column;gap:17px;}
.form fieldset{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;}
.form legend{
  font-size:.72rem;letter-spacing:.16em;color:var(--muted);
  padding:0;margin-bottom:3px;
}
.row{display:grid;gap:12px;}
@media(min-width:560px){ .row.two{grid-template-columns:1fr 1fr;} }
.inp{display:flex;flex-direction:column;gap:5px;}
.inp label{font-size:.78rem;font-weight:500;}
.inp label .req{color:var(--rose);}
.inp input,.inp textarea,.inp select{
  border:1px solid var(--line);border-radius:var(--r-sm);
  padding:11px 13px;font-size:.9rem;background:var(--surface);
  transition:border-color .15s;width:100%;
}
.inp input:focus,.inp textarea:focus,.inp select:focus{border-color:var(--rose);outline:none;}
.inp textarea{resize:vertical;min-height:74px;}
.inp .err{font-size:.72rem;color:var(--bad);display:none;}
.inp.bad input,.inp.bad textarea,.inp.bad select{border-color:var(--bad);}
.inp.bad .err{display:block;}
.hint{font-size:.72rem;color:var(--muted);}

.pays{display:flex;flex-direction:column;gap:9px;}
.pay{
  display:flex;gap:11px;align-items:flex-start;
  border:1px solid var(--line);border-radius:var(--r-md);
  padding:13px 15px;background:var(--surface);
  transition:border-color .15s,background .15s;cursor:pointer;
}
.pay:hover{border-color:var(--rose-soft);}
.pay.on{border-color:var(--rose);background:#FDF7F8;}
.pay input{margin-top:5px;accent-color:var(--rose);flex:0 0 auto;}
.pay .pl{flex:1;min-width:0;}
.pay b{display:block;font-size:.88rem;margin-bottom:2px;}
.pay span{font-size:.76rem;color:var(--ink-2);line-height:1.65;}
.pay .bankbox{
  margin-top:9px;padding:10px 12px;background:var(--surface-2);
  border-radius:var(--r-sm);font-size:.78rem;line-height:1.9;
}
.pay .bankbox .k{color:var(--muted);}
.pay .bankbox .v{font-weight:700;}

.summary{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-lg);padding:20px;position:sticky;top:calc(var(--head-h) + 14px);
}
.summary h3{margin:0 0 13px;font-family:var(--ff-display);font-size:1.1rem;font-weight:700;}
.sum-lines{display:flex;flex-direction:column;gap:10px;margin-bottom:14px;max-height:270px;overflow-y:auto;}
.sum-line{display:flex;gap:10px;align-items:center;font-size:.8rem;}
.sum-line .t{flex:1;min-width:0;}
.sum-line .t b{display:block;font-weight:500;}
.sum-line .t span{color:var(--muted);font-size:.72rem;}
.sum-line .im{flex:0 0 42px;aspect-ratio:3/4;border-radius:4px;overflow:hidden;background:var(--surface-2);}
.sum-line .im img{width:100%;height:100%;object-fit:cover;}
.sum-line .im .ph{gap:0;padding:0;}

/* ---------------- done ---------------- */
.done{max-width:620px;margin:0 auto;padding:46px 0 60px;text-align:center;}
.done .tick{
  width:62px;height:62px;border-radius:50%;background:#EDF6F1;color:var(--good);
  display:grid;place-items:center;margin:0 auto 18px;
}
.done .tick svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.done h1{font-family:var(--ff-display);font-size:1.75rem;font-weight:700;margin:0 0 8px;}
.done > p{color:var(--ink-2);margin:0 auto 22px;max-width:46ch;font-size:.92rem;}
.oref{
  display:inline-block;background:var(--surface-2);border:1px dashed var(--rose-soft);
  border-radius:var(--r-sm);padding:8px 20px;margin-bottom:22px;
  font-weight:700;letter-spacing:.1em;color:var(--deep);
}
.donebox{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:20px;text-align:start;margin-bottom:16px;
}
.donebox h3{margin:0 0 9px;font-size:.95rem;}
.donebox p{margin:0;font-size:.85rem;color:var(--ink-2);line-height:1.9;}

/* ---------------- static page ---------------- */
.doc{max-width:760px;margin:0 auto;padding:30px 0 56px;}
.doc h1{font-family:var(--ff-display);font-size:1.85rem;font-weight:700;margin:0 0 6px;}
.doc .lede{color:var(--ink-2);margin:0 0 26px;font-size:.94rem;}
.doc h2{font-family:var(--ff-display);font-size:1.2rem;margin:30px 0 8px;font-weight:700;}
.doc p,.doc li{font-size:.92rem;color:var(--ink-2);line-height:1.95;}
.doc ul{padding-inline-start:20px;margin:0 0 14px;}
.doc .card-note{
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-md);padding:18px 20px;margin:18px 0;
}
.doc table{width:100%;border-collapse:collapse;font-size:.86rem;margin:14px 0;}
.doc th,.doc td{padding:9px 10px;border-bottom:1px solid var(--line-soft);text-align:start;}
.doc th{color:var(--muted);font-weight:500;font-size:.76rem;letter-spacing:.06em;}

/* ---------------- footer ---------------- */
.foot{background:var(--ink);color:#D9C7CB;margin-top:40px;padding:38px 0 26px;}
.foot-in{display:grid;gap:26px;}
@media(min-width:760px){ .foot-in{grid-template-columns:1.3fr 1fr 1fr;} }
.foot h4{color:#fff;font-size:.86rem;margin:0 0 10px;font-weight:700;}
.foot a{display:block;font-size:.83rem;padding:3px 0;color:#D9C7CB;transition:color .15s;}
.foot a:hover{color:var(--rose-soft);}
.foot p{font-size:.83rem;margin:0 0 8px;line-height:1.85;}
.foot .fbrand{display:flex;align-items:center;gap:10px;margin-bottom:10px;}
.foot .fbrand img{width:40px;height:40px;border-radius:50%;}
.foot .fbrand .wm{font-family:var(--ff-lat);font-size:1.2rem;letter-spacing:.22em;color:#fff;direction:ltr;}
.foot-bot{
  border-top:1px solid #43333A;margin-top:26px;padding-top:16px;
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  font-size:.74rem;color:#9A868E;
}

/* ---------------- toast ---------------- */
.toast{
  position:fixed;bottom:22px;inset-inline:0;z-index:120;
  display:flex;justify-content:center;pointer-events:none;padding:0 16px;
}
.toast .t{
  background:var(--ink);color:#fff;border-radius:var(--r-pill);
  padding:10px 22px;font-size:.85rem;box-shadow:var(--shadow-2);
  opacity:0;transform:translateY(10px);transition:opacity .22s,transform .22s;
}
.toast .t.on{opacity:1;transform:translateY(0);}

/* pad for sticky bar */
body.has-buybar{padding-bottom:70px;}
@media(min-width:900px){ body.has-buybar{padding-bottom:0;} }

/* الاتجاه يتبع خاصية dir على body */
body[dir="ltr"]{ direction:ltr; }
body[dir="rtl"]{ direction:rtl; }

/* ---------------- اللغة والعملة ---------------- */
.langbtn{
  min-width:38px;height:32px;padding:0 10px;border-radius:var(--r-pill);
  border:1px solid var(--line);background:var(--surface);
  font-size:.78rem;font-weight:700;color:var(--ink-2);letter-spacing:.06em;
  transition:border-color .15s,color .15s;
}
.langbtn:hover{border-color:var(--rose);color:var(--deep);}
.curbtn{
  height:32px;padding:0 8px;border-radius:var(--r-pill);
  border:1px solid var(--line);background:var(--surface);
  font-size:.76rem;color:var(--ink-2);cursor:pointer;max-width:76px;
}
.curbtn:hover{border-color:var(--rose);color:var(--deep);}
.curnote{
  background:#FBF4EC;border:1px solid #EBDCC6;color:#6B5327;
  border-radius:var(--r-md);padding:10px 14px;font-size:.79rem;line-height:1.7;
  margin:16px auto 0;
}
.p-base{font-size:.8rem;font-weight:400;color:var(--muted);margin-inline-start:8px;}
.totals .r.sm{font-size:.76rem;color:var(--muted);padding-top:0;border:0;}

/* ---------------- الإنجليزي (LTR) ---------------- */
body.lang-en .hero-copy .kick{ text-align:center; }
body.lang-en .brandmark .wm{ padding-inline-start:0; padding-inline-end:.22em; }
body.lang-en .drawer{ transform:translateX(-100%); }
body.lang-en .drawer.on{ transform:translateX(0); }
body.lang-en .eyebrow{ text-align:left; }

/* ---------------- شاشة إعدادات الحساب ---------------- */
.admin .form{gap:14px;}
.admin .inp.good input{border-color:var(--good);}
.admin .ibanmsg{font-size:.76rem;line-height:1.6;display:block;}
.admin .inp.good .ibanmsg{color:var(--good);}
.admin .inp.bad  .ibanmsg{color:var(--bad);}
.admin #adIban{font-family:var(--ff-lat);letter-spacing:.12em;font-size:1rem;}
.admin .pays{margin:0 0 6px;}
.snip{
  background:var(--ink);color:#F2E4E7;border-radius:var(--r-md);
  padding:16px 18px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.76rem;line-height:1.75;direction:ltr;text-align:left;
  overflow-x:auto;white-space:pre;margin:0 0 12px;
}
.foot .adminlink{opacity:.45;font-size:.7rem;}
.foot .adminlink:hover{opacity:1;}

/* ---------------- البندلات ---------------- */
.bundles{display:grid;gap:12px;grid-template-columns:1fr;}
@media(min-width:700px){ .bundles{grid-template-columns:repeat(2,1fr);} }
.bundle{
  display:flex;gap:14px;align-items:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:12px;transition:border-color .16s,box-shadow .16s;
}
.bundle:hover{border-color:var(--rose);box-shadow:var(--shadow-1);}
.bstrip{display:flex;flex:0 0 auto;}
.bstrip-i{
  width:52px;aspect-ratio:3/4;border-radius:var(--r-sm);overflow:hidden;
  border:2px solid var(--surface);margin-inline-start:-16px;background:var(--surface-2);
}
.bstrip-i:first-child{margin-inline-start:0;}
.bstrip-i img{width:100%;height:100%;object-fit:cover;}
.bstrip-i .ph{width:100%;height:100%;}
.bbody{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;}
.bbody b{font-size:.94rem;}
.bmeta{font-size:.72rem;color:var(--muted);}
.bprice{font-size:1rem;font-weight:700;color:var(--deep);display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
.bprice em{font-style:normal;font-size:.72rem;font-weight:500;color:var(--good);}

.offerblock{margin-bottom:34px;}
.offerhead{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 100%);
  border:1px solid var(--line);border-radius:var(--r-lg);
  padding:16px 20px;margin-bottom:16px;flex-wrap:wrap;
}
.offerhead h3{margin:0 0 3px;font-family:var(--ff-display);font-size:1.2rem;font-weight:700;}
.offerhead p{margin:0;font-size:.85rem;color:var(--ink-2);}
.offerhead .save{color:var(--good);font-weight:700;}
.offerbadge{
  background:var(--rose);color:#fff;border-radius:var(--r-pill);
  padding:7px 18px;font-size:1rem;font-weight:700;white-space:nowrap;
}
.offerbadge small{opacity:.85;font-weight:400;}
a.offerlink{display:block;text-decoration:none;transition:border-color .15s;border:1px solid transparent;}
a.offerlink:hover{border-color:var(--rose-soft);}
.bundle-nudge{
  display:block;background:#FBF2E4;border:1px solid #ECD9B8;color:#6E4E12;
  border-radius:var(--r-sm);padding:9px 12px;font-size:.79rem;margin-bottom:10px;
}
.bundle-nudge:hover{border-color:var(--gold);}

/* ---------------- التقارير ---------------- */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 22px;}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:14px 16px;
     display:flex;flex-direction:column;gap:2px;}
.kpi .k{font-size:.72rem;color:var(--muted);}
.kpi b{font-size:1.6rem;color:var(--deep);line-height:1.2;}
.kpi .s{font-size:.68rem;color:var(--muted);}
.funnel{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:var(--line);
        border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;margin-bottom:10px;}
.funnel div{background:var(--surface);padding:12px 6px;text-align:center;}
.funnel b{display:block;font-size:1.15rem;color:var(--deep);}
.funnel span{font-size:.64rem;color:var(--muted);line-height:1.4;}
.barlist{display:flex;flex-direction:column;gap:7px;margin-bottom:6px;}
.barrow{display:flex;align-items:center;gap:10px;font-size:.82rem;}
.barrow .bl{flex:0 0 34%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.barrow .bt{flex:1;height:16px;background:var(--surface-2);border-radius:4px;overflow:hidden;}
.barrow .bt i{display:block;height:100%;background:linear-gradient(90deg,var(--rose),var(--gold));}
.barrow .bv{flex:0 0 40px;text-align:end;color:var(--deep);font-weight:700;}
.tablewrap{overflow-x:auto;}
.insights table{width:100%;border-collapse:collapse;font-size:.8rem;min-width:460px;}
.insights th{color:var(--muted);font-weight:500;font-size:.72rem;text-align:start;padding:8px 10px;
             border-bottom:1px solid var(--line);}
.insights td{padding:8px 10px;border-bottom:1px solid var(--line-soft);}

/* ---------------- الهيدر على الجوال ---------------- */
@media(max-width:520px){
  .brandmark .wm{display:none;}            /* الشعار الدائري يكفي */
  .brandmark img{width:34px;height:34px;}
  .head-in{gap:4px;}
  .iconbtn{width:34px;height:34px;}
  .iconbtn svg{width:18px;height:18px;}
  .langbtn{min-width:32px;height:30px;padding:0 7px;font-size:.72rem;}
  .curbtn{height:30px;padding:0 4px;font-size:.7rem;max-width:58px;}
  .head-r,.head-l{gap:2px;}
}
@media(max-width:360px){
  .head-r .iconbtn[id="searchBtn"]{display:none;}
}
