
:root{
  --bg:#faf8f5; --card:#fff; --ink:#111111; --ink2:#2b2b2b; --muted:#5a5a5a; --line:#e3ddd4;
  --red:#d3192b; --red-dk:#a80f1d; --red-soft:#fdecee; --gold:#b08a3e; --gold-soft:#f5eedf; --ok:#1f7a4d;
  --r:14px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Cairo',system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.6;padding-bottom:92px;overflow-x:hidden;text-rendering:optimizeLegibility}
img{display:block;max-width:100%}
button,select,input{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.wrap{max-width:560px;margin:0 auto}

/* علامة مائية */
.wm{position:fixed;inset:0;display:grid;place-items:center;pointer-events:none;z-index:50}
.wm img{width:min(52vw,260px);opacity:.025}

/* الشعار */
.top{background:#fff;border-bottom:1px solid var(--line);padding:12px 16px;display:flex;justify-content:center}
.top a{display:block;line-height:0}
.top img{height:18px;width:auto}

/* العنوان */
.head{padding:14px 16px 12px;background:#fff;text-align:center}
h1{font-size:23px;font-weight:800;line-height:1.35;color:var(--ink)}
.sub{color:var(--muted);font-size:15px;font-weight:600;margin-top:2px}

/* الكاروسيل */
.car{position:relative;background:#efe9df}
.track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.track::-webkit-scrollbar{display:none}
.track img{flex:0 0 100%;width:100%;aspect-ratio:1/1;object-fit:cover;scroll-snap-align:center}
.arr{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.88);box-shadow:0 2px 8px rgba(0,0,0,.15);display:grid;place-items:center;z-index:2}
.arr svg{width:16px;height:16px;stroke:var(--ink);stroke-width:2.5;fill:none}
.arr.l{left:10px}.arr.r{right:10px}
.dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:6px;direction:ltr}
.dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.6);box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.dots i.on{background:#fff;width:18px;border-radius:4px}
.badge{position:absolute;top:12px;right:12px;background:var(--red);color:#fff;font-weight:800;font-size:14px;padding:2px 12px;border-radius:999px;z-index:2}
.thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 16px;scrollbar-width:none;background:#fff}
.thumbs::-webkit-scrollbar{display:none}
.thumbs button{flex:0 0 62px;height:62px;border:2px solid transparent;border-radius:10px;overflow:hidden;padding:0;background:#eee}
.thumbs button.on{border-color:var(--red)}
.thumbs img{width:100%;height:100%;object-fit:cover}

/* مربع الطلب */
.order{position:relative;margin:26px 12px 0;background:#fff;border:2px solid var(--red);border-radius:16px;padding:26px 16px 18px;scroll-margin-top:24px}
.legend{position:absolute;top:-16px;left:50%;transform:translateX(-50%);background:#fff;padding:0 14px;font-size:20px;font-weight:800;color:var(--ink);white-space:nowrap}
.hint{text-align:center;color:#8a8a8a;font-size:13px;font-weight:500;margin-bottom:10px}
.lbl{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px;color:var(--ink);margin:14px 0 8px}
.lbl-c{justify-content:flex-start;gap:6px}
.lbl.lbl-c em{color:var(--red);font-weight:700;font-size:15px}
.lbl em{font-style:normal;font-weight:600;color:var(--muted);font-size:14px}
.fab{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.fab button{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:7px 4px;line-height:1.25}
.fab button b{display:block;font-size:15px;font-weight:700;color:var(--ink)}
.fab button small{display:block;font-size:12px;font-weight:600;color:var(--muted);direction:ltr}
.fab button.on{border-color:var(--red);background:var(--red-soft);box-shadow:inset 0 0 0 1px var(--red)}
.fab button:disabled{opacity:.4}
.sw{display:flex;flex-wrap:wrap;gap:10px}
.sw button{width:40px;height:40px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1.5px #cfc8bd;position:relative;padding:0}
.sw button.on{box-shadow:0 0 0 2.5px var(--red)}
.sw button:disabled{opacity:.35;cursor:not-allowed}
.sw button:disabled::after{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:2px;background:var(--ink);transform:rotate(-45deg)}

.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:10px}
.fld{position:relative;min-width:0}
.ig{display:flex;align-items:stretch;height:52px;border:1.5px solid #e2a9ae;border-radius:10px;background:#fff;overflow:hidden}
.ig .ic{flex:0 0 44px;display:grid;place-items:center;background:#f6f6f6;border-inline-start:0;border-inline-end:1.5px solid #e2a9ae}
.ig .ic svg{width:20px;height:20px;stroke:#333;stroke-width:1.8;fill:none}
.ig input,.ig select{flex:1;min-width:0;width:100%;border:0;outline:0;background:transparent;padding:0 10px;font-size:15px;font-weight:600;color:var(--ink)}
.ig input::placeholder{color:#8f8f8f;font-weight:500}
.ig select{appearance:none;-webkit-appearance:none;padding-inline-end:28px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat left 12px center}
.ig select:disabled{color:#9a9a9a}
.ig:focus-within{border-color:var(--red)}
.fld.bad .ig{border-color:var(--red);box-shadow:0 0 0 2px rgba(211,25,43,.12)}
.fld small{display:none;color:var(--red);font-size:12px;font-weight:600;margin-top:3px}
.fld.bad small{display:block}
.full{margin-top:10px}

.qrow{display:flex;justify-content:space-between;align-items:center;margin-top:16px}
.qrow span{font-weight:700;font-size:16px}
.qty{display:inline-flex;align-items:center;border:1.5px solid #e2a9ae;border-radius:10px;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,.06);direction:ltr}
.qty button{width:46px;height:46px;border:0;background:#fff;font-size:24px;font-weight:500;color:#333}
.qty output{width:40px;text-align:center;font-weight:800;font-size:17px}

.cta{display:block;width:100%;height:56px;margin-top:20px;border:0;border-radius:10px;background:linear-gradient(90deg,var(--red-dk),var(--red) 50%,var(--red-dk));color:#fff;font-size:19px;font-weight:800;box-shadow:0 6px 16px rgba(211,25,43,.3);transition:transform .1s}
.cta:active{transform:scale(.98)}
.cta:disabled{opacity:.65}
.cod{text-align:center;color:var(--ink2);font-size:14px;font-weight:600;margin-top:10px}
.msg{display:none;margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--red-soft);color:var(--red-dk);font-size:14px;font-weight:600}

/* ملخص الطلب */
.sum{margin-top:16px;border:1.5px solid #e2a9ae;border-radius:14px;padding:4px 12px 12px}
.sum summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:10px 0;font-weight:800;font-size:17px;cursor:pointer}
.sum summary::-webkit-details-marker{display:none}
.sum summary svg{width:16px;height:16px;stroke:var(--ink);stroke-width:2.5;fill:none;transition:transform .2s}
.sum[open] summary svg{transform:rotate(180deg)}
.item{display:flex;align-items:center;gap:10px;border:1.5px solid #e2a9ae;border-radius:10px;padding:8px}
.item img{width:58px;height:58px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}
.item .nm{flex:1;min-width:0}
.item .nm b{display:block;font-size:14px;font-weight:700}
.item .nm small{display:block;font-size:12px;font-weight:600;color:var(--muted)}
.xq{background:var(--red);color:#fff;font-weight:800;font-size:12px;padding:1px 8px;border-radius:6px}
.item .pr{text-align:left;font-weight:800;font-size:15px;white-space:nowrap}
.item .pr s{display:block;font-weight:600;font-size:12px;color:#8a8a8a}
.ship{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:12px;background:#f7f7f7;border-radius:10px;font-weight:700;font-size:14px}
.tag{background:var(--red);color:#fff;font-weight:700;font-size:12px;padding:2px 8px;border-radius:6px}
.tag.ok{background:var(--ok)}
.tot{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:12px 14px;border-radius:10px;background:var(--red);color:#fff;font-weight:800;font-size:16px}
.tot b{font-size:19px}

/* المزايا (نص عادي، ليست أزرار) */
.perks{display:grid;grid-template-columns:repeat(3,1fr);margin:20px 12px 0;padding:14px 4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.perks div{text-align:center;font-size:13px;font-weight:700;color:var(--ink2);padding:0 4px}
.perks div+div{border-inline-start:1px solid var(--line)}
.perks svg{display:block;margin:0 auto 4px;width:26px;height:26px;stroke:var(--gold);stroke-width:1.6;fill:none}

/* الأقسام */
.sec{padding:28px 16px 0}
.sec h3{font-size:20px;font-weight:800;margin-bottom:12px;color:var(--ink)}
.feat{display:grid;gap:12px}
.f{display:flex;gap:12px;background:#fff;border-radius:var(--r);padding:14px;border:1px solid var(--line)}
.f i{flex:0 0 42px;height:42px;border-radius:10px;background:var(--gold-soft);display:grid;place-items:center;font-style:normal;font-size:22px}
.f b{display:block;font-size:16px;font-weight:700}
.f p{color:var(--muted);font-size:14px;font-weight:500}
.pics{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pics img{border-radius:12px;aspect-ratio:1/1;object-fit:cover;width:100%}
.where{color:var(--muted);font-weight:600;margin-top:10px;font-size:15px}
.specs{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.specs div{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:15px}
.specs div:last-child{border:0}
.specs span{color:var(--muted);font-weight:600}
.specs b{font-weight:700}
.faq details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:8px}
.faq summary{font-weight:700;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";float:left;font-weight:800;color:var(--red)}
.faq details[open] summary::after{content:"−"}
.faq details p{color:var(--muted);font-weight:500;margin-top:8px;font-size:15px}
.again{display:block;width:calc(100% - 32px);margin:22px 16px 0;height:54px;border-radius:10px;border:2px solid var(--red);background:#fff;color:var(--red);font-size:17px;font-weight:800}
footer{text-align:center;color:var(--muted);font-size:13px;font-weight:600;padding:26px 16px 10px}
footer a{color:var(--red);text-decoration:none;font-weight:700}

/* الزر الثابت */
.sticky{position:fixed;inset:auto 0 0 0;z-index:40;background:rgba(255,255,255,.97);box-shadow:0 -6px 18px rgba(0,0,0,.08);padding:12px 16px calc(12px + env(safe-area-inset-bottom));transform:translateY(110%);transition:transform .25s}
.sticky.show{transform:none}
.sticky button{display:block;width:100%;max-width:500px;margin:0 auto;height:52px;border:0;border-radius:10px;background:linear-gradient(90deg,var(--red-dk),var(--red) 50%,var(--red-dk));color:#fff;font-weight:800;font-size:18px;box-shadow:0 4px 12px rgba(211,25,43,.3)}


/* ===== إضافات القالب (الشبكة، المكاتب، صفحة الشكر) ===== */
a{color:inherit}
.shop{max-width:820px;margin:0 auto;padding:16px 12px 0}
.shop h1{font-size:21px;text-align:center;margin:4px 0 14px}
.cats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0 0 12px}
.cats::-webkit-scrollbar{display:none}
.cats a{flex:0 0 auto;border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:4px 14px;font-weight:700;font-size:14px;text-decoration:none}
.cats a.on{border-color:var(--red);background:var(--red-soft);color:var(--red-dk)}
.grid{display:grid;grid-template-columns:repeat(var(--cols,2),minmax(0,1fr));gap:12px}
.card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;text-decoration:none;color:var(--ink)}
.card img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#efe9df}
.card .bd{padding:8px 10px 10px;display:flex;flex-direction:column;gap:2px;flex:1}
.card h2{font-size:14px;font-weight:700;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:39px}
.card .pp{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-top:auto}
.card .pp b{color:var(--red);font-weight:800;font-size:16px}
.card .pp s{color:#8a8a8a;font-size:12px;font-weight:600}
.card .go{margin-top:6px;text-align:center;background:var(--red);color:#fff;border-radius:8px;font-weight:800;font-size:14px;padding:6px}
.card .badge{top:8px;right:8px;font-size:12px;padding:1px 9px}
.card .oos{position:absolute;top:8px;left:8px;background:#333;color:#fff;font-size:11px;font-weight:700;padding:1px 8px;border-radius:999px}
.pager{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:22px 0 6px}
.pager .page-numbers{min-width:40px;height:40px;display:grid;place-items:center;padding:0 10px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-weight:800;text-decoration:none}
.pager .current{background:var(--red);border-color:var(--red);color:#fff}
.pager .dots{border:0;background:none}
.empty{text-align:center;color:var(--muted);font-weight:600;padding:40px 0}
.opts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.opts button{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:8px 4px;font-weight:700;font-size:14px;line-height:1.25}
.opts button.on{border-color:var(--red);background:var(--red-soft);box-shadow:inset 0 0 0 1px var(--red)}
.opts button:disabled{opacity:.4}
.sw button.txt{width:auto;min-width:40px;border-radius:999px;padding:0 12px;font-size:13px;font-weight:700;background:#fff}
.oldp{color:#8a8a8a;font-weight:600}
.prow{display:flex;justify-content:center;align-items:baseline;gap:10px;margin-top:6px}
.prow b{color:var(--red);font-size:24px;font-weight:800}
.prow s{color:#8a8a8a;font-size:16px;font-weight:600}
.desc{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:14px;color:var(--ink2);font-size:15px}
.desc p+p,.desc ul{margin-top:8px}.desc ul{padding-inline-start:20px}
.desc img{border-radius:10px;margin:8px auto;height:auto}
.thanks{max-width:560px;margin:24px auto;padding:0 12px;text-align:center}
.thanks .ok{width:72px;height:72px;border-radius:50%;background:#e7f4ec;color:var(--ok);display:grid;place-items:center;font-size:38px;margin:0 auto 10px}
.thanks h1{font-size:22px}
.thanks .box{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:14px;margin-top:16px;text-align:start}
.thanks .box div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed var(--line);font-size:15px}
.thanks .box div:last-child{border:0}
.thanks .btn{display:inline-block;margin-top:18px;background:var(--red);color:#fff;text-decoration:none;font-weight:800;padding:10px 22px;border-radius:10px}
.page{max-width:720px;margin:0 auto;padding:18px 16px}
.page h1{margin-bottom:10px}
body.lx-shop{padding-bottom:10px}
