
:root{--blue:#2456D6;--blue-d:#1A3FA3;--blue-s:#E8EEFC;--ink:#151B26;--muted:#5E6673;--bg:#F5F6F8;--card:#fff;--line:#E3E6EC;--ok:#15803D;--ok-s:#E6F6EC;--warn:#B45309;--warn-s:#FFF4E0;--bad:#B91C1C;--wa:#1FAF57;--r:14px}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:Cairo,system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5;font-size:15px}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.ltr{direction:ltr;unicode-bidi:isolate}
/* header */
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:10px;height:62px}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;letter-spacing:.5px;font-size:18px;white-space:nowrap}
.brand img{width:38px;height:38px;border-radius:50%}
.brand b{direction:ltr}
.search{flex:1;display:flex;align-items:center;background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:0 14px;height:42px;min-width:0}
.search input{border:0;background:transparent;outline:0;flex:1;min-width:0;height:40px}
.search svg{flex:none;opacity:.55}
.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:800;font-size:14px;cursor:pointer}
.badge{position:absolute;top:-4px;inset-inline-end:-4px;background:var(--blue);color:#fff;border-radius:999px;font-size:11px;min-width:18px;height:18px;padding:0 4px;display:none;align-items:center;justify-content:center}
.badge.on{display:inline-flex}
.nav{display:flex;gap:8px;overflow-x:auto;padding:0 0 10px;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.chip{flex:none;display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:600;font-size:14px;white-space:nowrap}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
@media (max-width:640px){.brand span.full{display:none}.bar{gap:8px}}
/* hero */
.hero{margin:16px 0 8px;border-radius:20px;padding:26px 22px;color:#fff;background:radial-gradient(120% 140% at 100% 0%,#3B6CF0 0%,var(--blue) 45%,#163A9C 100%);position:relative;overflow:hidden}
.hero h1{font-size:28px;line-height:1.25;font-weight:800}
.hero p{opacity:.9;margin-top:6px;font-weight:600}
.hero .ring{position:absolute;inset-inline-end:-60px;bottom:-80px;width:240px;height:240px;border-radius:50%;border:28px solid rgba(255,255,255,.08)}
.hero .cta{display:inline-flex;gap:8px;align-items:center;margin-top:16px;background:#fff;color:var(--blue);padding:10px 18px;border-radius:999px;font-weight:800}
.sections{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 6px}
.sec{position:relative;border-radius:var(--r);overflow:hidden;background:#fff;border:1px solid var(--line);aspect-ratio:1/1.1}
.sec img{width:100%;height:100%;object-fit:cover}
.sec span{position:absolute;inset:auto 0 0 0;padding:28px 10px 10px;color:#fff;font-weight:800;background:linear-gradient(transparent,rgba(0,0,0,.65));font-size:15px}
.sec.empty{display:flex;align-items:center;justify-content:center;background:var(--blue-s)}
.sec.empty span{position:static;background:none;color:var(--blue);padding:0}
h2.title{display:flex;align-items:baseline;justify-content:space-between;margin:22px 0 12px;font-size:20px;font-weight:800}
h2.title a{font-size:14px;color:var(--blue);font-weight:700}
/* grid */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:700px){.grid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1000px){.grid{grid-template-columns:repeat(4,1fr)}}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;position:relative}
.card .img{aspect-ratio:1/1;background:#fff;display:flex;align-items:center;justify-content:center}
.card .img img{width:100%;height:100%;object-fit:cover}
.sec img{height:100%}
.card .body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:2px;flex:1}
.card .br{font-size:12px;color:var(--muted);font-weight:700;letter-spacing:.3px;text-transform:uppercase}
.card .nm{font-weight:700;font-size:14.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .pr{margin-top:auto;padding-top:6px;font-weight:800;font-size:16px}
.card .pr small{font-weight:600;color:var(--muted);font-size:12px}
.card.out .img{opacity:.55}
.tag{position:absolute;top:10px;inset-inline-start:10px;background:#fff;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:800;border:1px solid var(--line)}
.tag.out{color:var(--bad)}
.heart{position:absolute;top:8px;inset-inline-end:8px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.92);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;cursor:pointer}
.heart svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:2}
.heart.on svg{fill:#E5374B;stroke:#E5374B}
/* listing */
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:18px 0 10px;flex-wrap:wrap}
.head h1{font-size:24px;font-weight:800}
.head .n{color:var(--muted);font-weight:600}
.crumbs{font-size:13px;color:var(--muted);margin-top:14px}
.crumbs a{color:var(--blue);font-weight:700}
.tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
select.sel{height:40px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:0 12px;font-weight:600}
details.filters{background:#fff;border:1px solid var(--line);border-radius:var(--r);margin-bottom:14px}
details.filters summary{cursor:pointer;padding:12px 16px;font-weight:800;list-style:none;display:flex;justify-content:space-between}
details.filters summary::-webkit-details-marker{display:none}
.fbody{padding:0 16px 16px;display:grid;gap:14px}
.fgroup b{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.opts{display:flex;flex-wrap:wrap;gap:6px}
.opt{display:inline-flex}
.opt input{position:absolute;opacity:0;pointer-events:none}
.opt span{padding:6px 12px;border:1px solid var(--line);border-radius:999px;font-weight:600;font-size:14px;cursor:pointer;background:#fff}
.opt input:checked+span{background:var(--ink);color:#fff;border-color:var(--ink)}
.prices{display:flex;gap:8px}
.prices input{width:100%;height:40px;border:1px solid var(--line);border-radius:10px;padding:0 10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 20px;border-radius:12px;border:0;background:var(--blue);color:#fff;font-weight:800;cursor:pointer}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}
.btn.wa{background:var(--wa);height:54px;font-size:17px;width:100%}
.btn.wa[disabled]{background:#9BB8A6;cursor:not-allowed}
.empty-box{background:#fff;border:1px dashed var(--line);border-radius:var(--r);padding:40px 20px;text-align:center;color:var(--muted);font-weight:600}
.pager{display:flex;justify-content:center;align-items:center;gap:10px;margin:22px 0}
/* product */
.pg{display:grid;gap:22px;margin:16px 0 10px}
@media (min-width:900px){.pg{grid-template-columns:1.1fr 1fr;align-items:start}}
.gallery{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.slides::-webkit-scrollbar{display:none}
.slides img{flex:none;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;scroll-snap-align:center;background:#fff}
.dots{position:absolute;bottom:10px;inset-inline:0;display:flex;justify-content:center;gap:6px}
.dots i{width:7px;height:7px;border-radius:50%;background:rgba(0,0,0,.2)}
.dots i.on{background:var(--blue)}
.thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto}
.thumbs img{width:64px;height:64px;border-radius:10px;object-fit:cover;border:2px solid transparent;cursor:pointer;flex:none;background:#fff}
.thumbs img.on{border-color:var(--blue)}
.info .br{color:var(--muted);font-weight:800;letter-spacing:.5px;text-transform:uppercase;font-size:13px}
.info h1{font-size:25px;line-height:1.3;font-weight:800;margin:2px 0 8px}
.price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.price b{font-size:30px;font-weight:800;color:var(--blue)}
.price span{color:var(--muted);font-weight:700}
.pickers{margin:18px 0;display:grid;gap:14px}
.pick b{display:block;font-weight:800;margin-bottom:8px}
.pick b em{font-style:normal;color:var(--muted);font-weight:600}
.vals{display:flex;flex-wrap:wrap;gap:8px}
.val{min-width:48px;height:44px;padding:0 14px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:8px;justify-content:center}
.val.on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink) inset}
.val.off{color:#A3A9B3;text-decoration:line-through;background:#FAFAFB}
.sw{width:18px;height:18px;border-radius:50%;border:1px solid rgba(0,0,0,.15)}
.stock{font-weight:800;margin:6px 0 14px;min-height:22px}
.stock.in{color:var(--ok)}.stock.last1,.stock.last2{color:var(--warn)}.stock.out{color:var(--bad)}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.like{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:700;cursor:pointer}
.like svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:2}
.like.on svg{fill:#E5374B;stroke:#E5374B}
.share{display:flex;gap:8px;flex-wrap:wrap}
.share a,.share button{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:700;font-size:14px;cursor:pointer}
.box{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:16px;margin-top:16px}
.box h3{font-size:16px;margin-bottom:6px}
.box p{white-space:pre-line;color:#2B3240}
dl.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 16px}
dl.kv dt{color:var(--muted)}dl.kv dd{font-weight:700}
/* footer */
footer{margin-top:40px;background:var(--ink);color:#C9CED8;padding:30px 0 90px}
footer .cols{display:grid;gap:18px}
@media (min-width:800px){footer .cols{grid-template-columns:1.2fr 1fr 1fr}}
footer h4{color:#fff;margin-bottom:8px}
footer a{color:#fff;font-weight:700}
footer .soc{display:flex;gap:10px;margin-top:8px}
footer .soc a{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.1);display:inline-flex;align-items:center;justify-content:center}
footer small{display:block;margin-top:22px;opacity:.6}
.fab{position:fixed;bottom:16px;inset-inline-end:16px;z-index:30;width:56px;height:56px;border-radius:50%;background:var(--wa);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.fab svg{width:28px;height:28px;fill:#fff}
.soon{min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;background:radial-gradient(120% 120% at 100% 0%,#3B6CF0 0%,var(--blue) 45%,#163A9C 100%);color:#fff}
.soon img{width:110px;height:110px;border-radius:50%;margin:0 auto 18px;background:#fff}
.soon h1{font-size:26px}
.soon p{opacity:.9;margin:8px auto 22px;max-width:420px}
.soon .btn{background:#fff;color:var(--blue)}
/* cart & checkout */
.btn.big{height:54px;font-size:17px;width:100%}
.btn.big[disabled]{background:#A9B6D8;cursor:not-allowed}
.btn.wa-line{background:#fff;color:#128C45;border:1.5px solid #9ED7B3;width:100%;margin-top:10px;height:48px}
.btn.wa-line[disabled]{opacity:.5;cursor:not-allowed}
.toast{position:fixed;left:50%;bottom:86px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:12px;font-weight:700;z-index:40;display:flex;gap:12px;align-items:center;box-shadow:0 8px 24px rgba(0,0,0,.2)}
.toast a{color:#9FC0FF;text-decoration:underline}
.cart-page{display:grid;gap:18px;margin:16px 0}
@media (min-width:900px){.cart-page{grid-template-columns:1.5fr 1fr;align-items:start}}
.line{display:grid;grid-template-columns:76px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:10px;margin-bottom:10px}
.line img{width:76px;height:76px;border-radius:10px;object-fit:cover;background:#fff}
.line .nm{font-weight:700;line-height:1.35}
.line .op{color:var(--muted);font-size:13px;font-weight:600}
.line .warn{color:var(--warn);font-size:13px;font-weight:700}
.line.gone{opacity:.6}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;margin-top:6px}
.qty button{width:34px;height:32px;border:0;background:none;font-size:18px;font-weight:800;cursor:pointer}
.qty button[disabled]{opacity:.3}
.qty span{min-width:22px;text-align:center;font-weight:800}
.rm{border:0;background:none;color:var(--muted);font-size:13px;font-weight:700;cursor:pointer;text-decoration:underline}
.sum{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:16px;position:sticky;top:80px}
.sum .r{display:flex;justify-content:space-between;gap:10px;margin:6px 0}
.sum .r.t{font-size:19px;font-weight:800;border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
.sum .muted{color:var(--muted);font-size:13px;font-weight:600}
.form{display:grid;gap:12px}
.form label{display:grid;gap:5px;font-weight:700}
.form input,.form select,.form textarea{height:46px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:#fff;width:100%;font:inherit}
.form textarea{height:84px;padding:10px 12px;resize:vertical}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid var(--blue-s);border-color:var(--blue)}
.choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.choice label{display:flex;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:12px;padding:12px;cursor:pointer;font-weight:700;background:#fff}
.choice input{width:20px;height:20px;flex:none;accent-color:var(--blue)}
.choice label:has(input:checked){border-color:var(--blue);background:var(--blue-s)}
.err{background:#FDECEC;color:var(--bad);border-radius:12px;padding:10px 12px;font-weight:700}
.note-ok{background:var(--ok-s);color:var(--ok);border-radius:12px;padding:10px 12px;font-weight:700}
.done{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;text-align:center;margin:18px 0}
.done .no{font-size:34px;font-weight:800;color:var(--blue)}
.steps{display:flex;justify-content:space-between;gap:4px;margin:18px 0 6px;position:relative}
.steps i{flex:1;text-align:center;font-style:normal;font-size:12px;font-weight:700;color:var(--muted)}
.steps i b{display:block;width:26px;height:26px;border-radius:50%;margin:0 auto 4px;background:var(--line);color:#fff;line-height:26px}
.steps i.on{color:var(--ink)}.steps i.on b{background:var(--blue)}
.cancelled{color:var(--bad);font-weight:800}
.muted{color:var(--muted);font-size:13px;font-weight:600}
