@font-face{font-family:'Cairo';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/cairo-800-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'Cairo';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/cairo-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/tajawal-400-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/tajawal-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/tajawal-700-arabic.woff2') format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'Tajawal';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/tajawal-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
:root{
  --green:#17694f; --green-soft:#e3efe6; --ink:#1d2b26; --muted:#5c6c70; --line:#d8e0db;
  --bg:#f6f8f5; --pink:#f0788c; --pink-soft:#fbe7ec;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg) center top/cover fixed no-repeat;color:var(--ink);font-family:"Tajawal",Tahoma,system-ui,sans-serif;font-size:16px;line-height:1.7}
button{font:inherit;cursor:pointer}
img{max-width:100%}
.wrap{max-width:640px;margin-inline:auto;padding:16px 14px 40px}
h1,h2,h3{margin:0}
.icon{width:22px;height:22px;display:block}
.wordmark{display:inline-block;font-weight:800;letter-spacing:.35em;font-size:15px;color:#fff;background:var(--green);border-radius:14px;padding:8px 16px 8px calc(16px + .35em)}

.sticker{position:absolute;width:44px;height:44px;filter:drop-shadow(0 4px 5px #17694f33);animation:floaty 3.6s ease-in-out infinite}
@keyframes floaty{0%,100%{translate:0 0}50%{translate:0 -9px}}
.w1{top:26px;inset-inline-start:9%;rotate:-12deg}
.w2{top:34px;inset-inline-end:10%;width:52px;height:52px;animation-delay:.7s;rotate:10deg}
.w3{top:430px;inset-inline-start:12%;width:34px;height:34px;animation-delay:1.2s}
.w4{top:470px;inset-inline-end:10%;width:48px;height:48px;animation-delay:1.8s;rotate:-8deg}
.w5{top:540px;inset-inline-start:22%;width:26px;height:26px;animation-delay:.4s}
.w6{top:520px;inset-inline-end:20%;width:30px;height:30px;animation-delay:2.2s}

#welcome{position:fixed;inset:0;z-index:60;display:grid;justify-items:center;align-content:start;padding-top:84px;background:linear-gradient(160deg,#f6f8f5,#e9f2ea 45%,#f7eee8)}
#welcome[hidden]{display:none}
.welcome-card{position:relative;max-width:340px;width:calc(100% - 40px);background:#fff;border:1px solid var(--line);border-radius:28px;padding:34px 24px;text-align:center;display:grid;gap:12px;justify-items:center;box-shadow:0 18px 50px #17694f22}
.welcome-card h2{font-size:26px;color:var(--green);line-height:1.6}
.welcome-card p{margin:0 0 8px;color:var(--muted);line-height:1.8;font-size:14px}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-weight:600;text-decoration:none}
.btn.primary{background:var(--green);border-color:var(--green);color:#fff}
.btn.ghost{border-color:transparent;background:none;color:var(--muted)}
.btn[disabled]{opacity:.55;cursor:default}
.btn.wa{background:var(--green);border-color:var(--green);color:#fff;width:100%;font-weight:700}
.btn.block{width:100%}

.announce{position:relative;margin:16px 0 10px;background:var(--pink-soft);color:#a2405a;border-radius:14px;padding:10px 44px;text-align:center;font-weight:700;font-size:13px;line-height:1.7}
.announce .sticker{top:50%;inset-inline-start:12px;width:22px;height:22px;translate:0 -50%;animation:none}

.bar{position:sticky;top:0;z-index:40;background:#f6f8f5f2;backdrop-filter:blur(8px);border-bottom:1px solid var(--line);padding:10px 14px}
.bar-inner{max-width:640px;margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}
.bar #search{max-width:640px;margin:10px auto 0}
.bar-side{display:flex;align-items:center;gap:6px}
.iconbtn{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--green);padding:0}
.iconbtn.on{background:var(--green-soft)}
.iconbtn b{position:absolute;top:-4px;inset-inline-end:-4px;background:var(--pink);color:#fff;border-radius:99px;min-width:18px;height:18px;font-size:11px;display:grid;place-items:center;padding:0 4px;font-weight:700}

#search{width:100%;min-height:44px;padding:8px 14px;border-radius:14px;border:1px solid var(--line);background:#fff;font:inherit;margin-bottom:14px}

.band{position:relative;overflow:hidden;background:var(--green);border-radius:26px;padding:34px 20px;text-align:center;display:grid;gap:10px;justify-items:center;margin:0 0 18px}
.band-tag{background:#fff;color:var(--green);font-weight:800;font-size:12px;border-radius:99px;padding:4px 14px}
.band h2{color:#fff;font-size:28px;line-height:1.6;font-weight:800}
.band p{margin:0;color:#ffffffd9;font-size:10px;letter-spacing:.14em}
.s1{top:12px;inset-inline-start:14px;width:38px;height:38px}
.s2{top:16px;inset-inline-end:18px;width:26px;height:26px;animation-delay:.9s}
.s3{bottom:14px;inset-inline-end:30px;width:32px;height:32px;animation-delay:1.6s}

.hero{overflow:hidden;border-radius:26px;background:#eee7dd;border:1px solid #e7e9e0}
.hero img{width:100%;display:block;aspect-ratio:3/2;object-fit:cover}

.categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:8px;margin:20px 0 26px}
.categories>div{border-radius:50% 50% 18px 18px;background:#eef4ee;text-align:center;padding:12px 2px;color:#3f6152}
.categories span{display:block;font-size:13px;font-weight:700}
.motif{display:block;width:90px;height:90px;margin:auto;color:#5c7a6a;max-width:90%}

.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.section-head h2{font-size:22px;color:var(--green)}
.sort select{min-height:44px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--green);font:inherit;font-weight:600;padding:4px 14px}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border-radius:24px;background-color:#f6f8f5;background-image:radial-gradient(circle at 3px 3px,#17694f14 1px,transparent 1.5px);background-size:18px 18px}
.product{min-width:0;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.photo{aspect-ratio:1/1;position:relative;display:grid;place-items:center;text-align:center;overflow:hidden}
.photo img{width:100%;height:100%;object-fit:cover}
.photo>div{width:100%}
.photo .motif{width:70%;height:auto;max-height:190px;margin:8px auto}
.photo small{display:block;font-size:10px;color:#645e58}
.tone0{background:#f5e5df}.tone1{background:#e8f0e6}.tone2{background:#f4ecd9}.tone3{background:#eee7f0}
.tone1 .motif{color:#4f7a5f}.tone2 .motif{color:#9d8251}.tone3 .motif{color:#92728d}
.card-actions{position:absolute;top:8px;inset-inline-end:8px;display:grid;gap:8px}
.roundbtn{width:38px;height:38px;border-radius:50%;border:0;background:#fff;box-shadow:0 2px 8px #17694f22;display:grid;place-items:center;color:var(--green);padding:0}
.roundbtn .icon{width:19px;height:19px}
.new-badge{position:absolute;top:9px;inset-inline-start:9px;background:var(--green);color:#fff;border-radius:8px;padding:2px 10px;font-size:11px;font-weight:700}
.sale-badge{position:absolute;bottom:9px;inset-inline-start:9px;background:#fffc;border-radius:20px;padding:2px 8px;font-size:11px;font-weight:700;color:var(--green)}
.out-badge{position:absolute;bottom:9px;inset-inline-start:9px;background:#5c6c70;color:#fff;border-radius:20px;padding:2px 8px;font-size:11px;font-weight:600}
.pbody{padding:13px 8px;display:grid;gap:8px;flex:1}
.product h3{font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.product .desc{font-size:12px;line-height:1.7;color:var(--muted);margin:0;overflow-wrap:anywhere}
.price{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:30px}
.price strong{font-size:15px;color:var(--green)}
.price del{font-size:11px;color:var(--muted)}
.qty{display:flex;align-items:center;justify-content:center;gap:8px}
.qty button{background:#e8f0e6;border:0;border-radius:50%;width:40px;height:40px;font-size:18px;color:var(--green)}
.addcart{background:none;border:0;color:#8a9490;font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:3px;min-height:32px}

.offer{background:var(--green-soft);border-radius:16px;padding:14px 44px;color:var(--green);text-align:center;font-weight:700;margin:0 0 16px;font-size:14px;line-height:1.7}
.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;display:grid;gap:14px}
.line{display:flex;justify-content:space-between;gap:18px;padding:7px 0;align-items:flex-start}
.line>span{min-width:0;overflow-wrap:anywhere}
.line bdi{flex-shrink:0}
.total{border-top:1px solid var(--line);padding-top:17px;color:var(--green);font-size:19px}
.caption{font-size:12px;line-height:1.7;color:var(--muted);margin:6px 0}
.status{padding:14px;background:var(--green-soft);border-radius:12px;line-height:1.7;margin:12px 0}
.status.err{background:#fbe7ec;color:#a2405a}

footer{border-top:1px solid var(--line);margin-top:28px;padding:18px 0;color:var(--muted);font-size:13px;text-align:center;display:grid;gap:6px}
footer a{color:var(--muted)}

dialog{border:1px solid var(--line);border-radius:24px;padding:22px;max-width:340px;width:calc(100vw - 40px);background:#fff}
dialog::backdrop{background:#17694f33}
.quick-card{display:grid;gap:10px;justify-items:center;text-align:center}
.quick-photo{width:100%;border-radius:16px;overflow:hidden;background:var(--bg);display:grid;place-items:center}
.quick-photo img{width:100%;aspect-ratio:1/1;object-fit:cover}
.quick-photo .motif{width:120px;height:120px}

form{display:grid;gap:12px}
.fld{display:flex;flex-direction:column;gap:4px}
.fld label{color:var(--muted);font-size:13px;font-weight:600}
input[type=text],input[type=number],input[type=email],input[type=password],textarea,select{width:100%;min-height:44px;padding:8px 12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit}
textarea{min-height:70px;resize:vertical}
.admin-section{margin-top:24px;display:grid;gap:16px}
.admin-card{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff;display:grid;gap:10px}
.admin-card h3{font-size:15px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.delete-box{border:1px solid #decac2;padding:14px;border-radius:12px;display:grid;gap:10px}
.chip-row{display:flex;gap:8px;flex-wrap:wrap}
.empty{color:var(--muted);text-align:center;padding:20px}
@media(max-width:380px){.band h2{font-size:24px}.pbody{padding:12px 6px}}
.wordmark,h2{font-family:"Cairo","Tajawal",Tahoma,sans-serif}
.categories>div{cursor:pointer}
.categories>div.on{outline:2px solid var(--green);outline-offset:2px}
.catbg0{background:#eef4ee;color:#3f6152}
.catbg1{background:#f7f1e9;color:#716951}
.catbg2{background:#f6e9e5;color:#96726c}
.mt26{margin-top:26px}
.h2green{color:var(--green);margin-bottom:10px}
.draftbar{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fdf6e3;border:1px solid #e8d9a8;border-radius:12px;padding:10px 14px;font-size:13px;line-height:1.7}
.pubok{color:var(--green);font-weight:700}
.puberr{color:#a2405a;font-weight:700}
.admin-hint{font-size:12px;color:var(--muted);line-height:1.7;margin:0}
.cat-row{display:grid;grid-template-columns:1fr 110px auto;gap:8px;align-items:end}
@media(max-width:380px){.cat-row{grid-template-columns:1fr}}

.policy-h{color:var(--green);font-size:15px;margin:0}
.policy-t{margin:0 0 12px;font-size:14px;line-height:1.8}
.policy-t:last-child{margin-bottom:0}
.social{display:flex;justify-content:center;gap:12px}
.social a{color:var(--green);width:44px;height:44px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fff}
.social a .icon{width:20px;height:20px}
.gate-wrap{min-height:70vh;display:grid;place-items:center;padding:24px 14px}
.gate-card{width:100%;max-width:360px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px 22px;display:grid;gap:12px;text-align:center;box-shadow:0 18px 50px #17694f1a}
.gate-card h1{color:var(--green);font-size:20px}
.admin-top{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:640px;margin-inline:auto;padding:12px 14px}
