:root{--navy:#132A5E;--navy2:#1D3B7E;--yellow:#F6D02F;--ink:#0F1B2D;--muted:#5B6575;--line:#E3E7EC;--bg:#F5F6F8;--ok:#166534;--bad:#9B1C1C;--r:14px}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI",Tahoma,"Noto Sans Arabic",Arial,sans-serif;font-size:15px;line-height:1.5}
a{color:inherit}
button,input,select,textarea{font:inherit}
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--navy);color:#fff;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;font-weight:800;font-size:16px;white-space:nowrap}
.brand img{height:36px;border-radius:8px;background:#fff}
.search{flex:1 1 220px;order:3;min-width:0}
.search input{width:100%;height:42px;border:0;border-radius:999px;padding:0 16px;background:#fff;color:var(--ink)}
.acts{display:flex;align-items:center;gap:6px;margin-inline-start:auto}
.lang{color:#fff;text-decoration:none;font-size:13px;padding:6px 10px;border:1px solid rgba(255,255,255,.3);border-radius:999px}
.cartbtn{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--yellow);color:var(--navy)}
.cartbtn svg{width:24px;height:24px}
.cartbtn b{position:absolute;top:-4px;inset-inline-end:-4px;min-width:20px;height:20px;border-radius:999px;background:#fff;color:var(--navy);font-size:12px;display:grid;place-items:center;padding:0 5px;box-shadow:0 0 0 2px var(--navy)}
@media(min-width:760px){.search{order:0}}
.notice{background:#FFF8DB;color:#6B5200;padding:10px 14px;text-align:center;font-weight:600}
.notice.warn{background:#FEE2E2;color:var(--bad)}
main{max-width:1180px;margin:0 auto;padding:14px}
h1{font-size:22px;margin:6px 0 14px}h2{font-size:18px;margin:16px 0 8px}h3{font-size:15px;margin:14px 0 6px;color:var(--muted)}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chips a{flex:none;text-decoration:none;padding:7px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:14px;white-space:nowrap}
.chips a.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
@media(min-width:760px){.grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}}
.card{background:#fff;border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(15,27,45,.06)}
.card .pic{display:block;aspect-ratio:1;background:#EEF1F5}
.card .pic img,.card .pic .noimg{width:100%;height:100%;object-fit:contain;display:block}
.noimg{display:grid!important;place-items:center;color:#AEB8C6;background:linear-gradient(135deg,#EEF1F5,#E4E9F0)}
.noimg svg{width:42%;height:42%}
.card .info{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.card .nm{text-decoration:none;font-weight:600;font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.price{font-weight:800;color:var(--navy);font-size:16px}
.price small{font-weight:500;color:var(--muted);font-size:12px}
.price.big{font-size:26px}
.tag{display:inline-block;font-size:12px;background:#EEF2F7;color:var(--navy);border-radius:999px;padding:2px 10px;align-self:flex-start}
.add,.primary{border:0;border-radius:12px;background:var(--yellow);color:var(--navy);font-weight:800;min-height:42px;padding:0 16px;cursor:pointer;text-decoration:none;display:inline-grid;place-items:center}
.card .add{margin-top:auto}
.add:active,.primary:active{transform:translateY(1px)}
.primary:disabled{opacity:.5;cursor:not-allowed}
.na{margin-top:auto;color:var(--muted);font-size:13px;text-align:center;padding:10px 0;border-top:1px dashed var(--line)}
.card.out{opacity:.72}
.empty{text-align:center;color:var(--muted);padding:40px 10px}
.pager{display:flex;justify-content:center;align-items:center;gap:14px;margin:22px 0}
.pager a{background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 16px;text-decoration:none}
.crumbs{font-size:13px;color:var(--muted);margin-bottom:10px}.crumbs a{text-decoration:none}
.product{display:grid;gap:18px;background:#fff;border-radius:var(--r);padding:14px}
@media(min-width:760px){.product{grid-template-columns:1fr 1fr;padding:24px}}
.product .big img,.product .big .noimg{width:100%;aspect-ratio:1;object-fit:contain;border-radius:12px;background:#EEF1F5}
.product h1{margin-top:0}
.avail{font-weight:700;margin-inline-end:8px}.avail.ok{color:var(--ok)}.avail.no{color:var(--bad)}
.buy{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}
.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.stepper button{width:42px;height:42px;border:0;background:#F1F3F6;font-size:20px;cursor:pointer}
.stepper input{width:56px;height:42px;border:0;text-align:center;font-weight:700}
.buy .add{flex:1;min-width:160px}
.desc{white-space:normal}
.muted{color:var(--muted);font-size:13px}
.cart{display:flex;flex-direction:column;gap:10px}
.line{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:10px}
.line img,.line .noimg{width:64px;height:64px;object-fit:contain;border-radius:10px;background:#EEF1F5}
.line .nm{font-weight:600;font-size:14px}
.line .stepper button{width:34px;height:34px;font-size:17px}.line .stepper input{width:44px;height:34px}
.line .rm{border:0;background:none;color:var(--bad);font-size:13px;cursor:pointer;padding:4px 0}
.line .lt{font-weight:800;color:var(--navy);text-align:end;white-space:nowrap}
.line.bad{outline:2px solid #FCA5A5}
.checkout{background:#fff;border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:12px;margin-top:14px;max-width:620px}
.checkout label{display:flex;flex-direction:column;gap:5px;font-weight:600;font-size:14px}
.checkout input:not([type=radio]),.checkout select,.checkout textarea{border:1px solid #CBD2DA;border-radius:10px;padding:10px 12px;min-height:44px;background:#fff;color:var(--ink);width:100%}
.checkout input:focus,.checkout select:focus,.checkout textarea:focus{outline:3px solid #93C5FD;outline-offset:1px}
fieldset{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:0;display:flex;flex-direction:column;gap:8px}
legend{font-weight:700;padding:0 6px}
label.opt{flex-direction:row!important;align-items:center;gap:8px!important;font-weight:500!important}
.note{background:#FFF8DB;color:#6B5200;border-radius:10px;padding:8px 12px;font-size:13px;margin:0}
.sum{border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:4px}
.sum div{display:flex;justify-content:space-between}
.sum .tot{font-size:19px;font-weight:800;color:var(--navy)}
.err{color:var(--bad);font-weight:600;margin:0;min-height:1em}
.thanks{background:#fff;border-radius:var(--r);padding:20px;text-align:center;margin-bottom:14px}
.thanks h1{color:var(--ok)}
.wa{background:#25D366;color:#fff;min-height:48px;padding:0 22px;border-radius:12px;font-weight:800;text-decoration:none;display:inline-grid;place-items:center}
a.ghost.wa{background:#fff;color:#128C4A;border:1px solid #25D366;margin-top:10px}
.order{background:#fff;border-radius:var(--r);padding:16px}
.order table{width:100%;border-collapse:collapse}.order td{padding:8px 4px;border-bottom:1px solid var(--line)}
.order td.n{text-align:end;white-space:nowrap}.order tfoot td{font-weight:700}.order tr.tot td{color:var(--navy);font-size:17px}
.steps{list-style:none;padding:0;margin:8px 0 4px;display:flex;flex-wrap:wrap;gap:6px}
.steps li{padding:6px 12px;border-radius:999px;background:#EEF1F5;color:var(--muted);font-size:13px}
.steps li.done{background:#DCFCE7;color:var(--ok);font-weight:700}
.steps li.now{background:var(--navy);color:#fff}
.track{max-width:520px}
footer{background:var(--navy);color:#DCE3EE;padding:22px 16px;margin-top:30px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:14px}
footer .links{display:flex;flex-direction:column;gap:6px}footer a{color:#fff}
.toast{position:fixed;bottom:18px;inset-inline:0;margin:auto;width:max-content;max-width:90vw;background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none;z-index:9}
.toast.on{opacity:1;transform:none}
