:root{--teal:#0B5A4A;--teal2:#0E6B56;--teal-dark:#083F35;--red:#E31C23;--cream:#F6F0E4;--paper:#FFFDF8;--ink:#16302B;--muted:#5F746E;--line:#E6EEEA;--white:#fff;--shadow:0 14px 40px rgba(8,63,53,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'Tajawal',sans-serif;color:var(--ink);background:#fff}
button,input,select,textarea{font:inherit}.wrap{width:min(1180px,calc(100% - 32px));margin:0 auto}.hidden{display:none!important}
.topbar{background:var(--teal);color:#fff;font-size:.82rem}.topbar-inner{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0}.topbar a{color:#fff;text-decoration:none}
.masthead{background:#fff;position:sticky;top:0;z-index:30;box-shadow:0 8px 24px rgba(8,63,53,.06)}
.masthead-inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1.2rem;padding:.7rem 0}
.logo img{height:72px;width:auto;display:block;object-fit:contain}
.search{display:flex;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:#F7FAF8}
.search input{flex:1;border:0;outline:0;padding:.85rem 1.1rem;background:transparent}
.search button{border:0;background:var(--teal);color:#fff;width:52px;cursor:pointer;font-size:1.15rem}
.mast-actions{display:flex;gap:.6rem;align-items:center}
.ghost{color:var(--teal);text-decoration:none;font-weight:800}
.cart{border:0;background:var(--teal);color:#fff;border-radius:999px;padding:.7rem 1rem;font-weight:800;cursor:pointer}
.cart b{background:#fff;color:var(--teal);border-radius:99px;padding:.05rem .4rem;margin-inline-start:.25rem}
.main-nav{display:flex;gap:1.1rem;overflow:auto;padding:.15rem 0 .85rem;font-weight:800;font-size:.92rem}
.main-nav a{color:var(--teal);text-decoration:none;white-space:nowrap}.main-nav a.active,.main-nav a:hover{color:var(--red)}

.hero{background:linear-gradient(180deg,#FBF6EA,var(--cream));padding:1.2rem 0 2rem}
.hero-banner{position:relative;background:#fff;border-radius:28px;box-shadow:var(--shadow);overflow:hidden;min-height:340px}
.hero-slide{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:1rem;padding:1.4rem 3.2rem 1.6rem}
.hero-arrow{position:absolute;top:42%;z-index:2;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:var(--teal);box-shadow:0 8px 18px rgba(8,63,53,.12);cursor:pointer;font-size:1.4rem}
.hero-arrow.next{left:14px;right:auto}.hero-arrow:not(.next){right:14px}
.hero-msg{text-align:center;padding:1rem}
.hero-msg h1{color:var(--teal);font-size:clamp(2.2rem,5vw,3.6rem);margin:.2rem 0 .15rem;line-height:1.2}
.hero-msg .tag{color:var(--red);font-size:clamp(1.4rem,3vw,2.1rem);font-weight:900;margin:0}
.hero-msg .sub{color:var(--muted);line-height:1.9;margin:.7rem auto 1.1rem;max-width:28rem}
.hero-actions{display:flex;justify-content:center;gap:.7rem;flex-wrap:wrap}
.bag{width:16px;height:16px;margin-inline-end:.35rem;border:2px solid #fff;border-radius:4px;display:inline-block;vertical-align:middle;position:relative}
.bag:after{content:"";position:absolute;inset:-6px 2px auto;height:8px;border:2px solid #fff;border-bottom:0;border-radius:8px 8px 0 0}

.hero-art{min-height:280px;display:grid;place-items:center}
.desk{width:min(460px,100%);height:260px;position:relative}
.bookstand{display:flex;align-items:flex-end;justify-content:center;gap:8px;height:210px}
.book{width:64px;border-radius:8px 8px 4px 4px;color:#fff;padding:.7rem .35rem;text-align:center;box-shadow:0 12px 18px rgba(8,63,53,.18);display:flex;flex-direction:column;justify-content:flex-end;font-weight:900}
.book b{font-size:.78rem}.book small{opacity:.9;font-size:.62rem;font-weight:700}
.k1{height:168px;background:linear-gradient(180deg,#5B8DEF,#2E6BDC);transform:rotate(-8deg)}
.k2{height:196px;background:linear-gradient(180deg,#F0A202,#E4572E);transform:rotate(-3deg)}
.k3{height:178px;background:linear-gradient(180deg,#2BB673,#17824d);transform:rotate(2deg)}
.k4{height:188px;background:linear-gradient(180deg,#8E6CC9,#6A3FA0);transform:rotate(6deg)}
.k5{height:156px;background:linear-gradient(180deg,#E31C7A,#E31C23);transform:rotate(10deg)}
.props{position:absolute;inset:auto 8% 8px;display:flex;gap:8px;align-items:flex-end}
.globe{width:42px;height:42px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#9BE7FF,#2B8CFF 45%,#0B5A4A)}
.pencil,.crayon{width:10px;height:54px;border-radius:4px 4px 2px 2px;display:block}
.pencil.p1{background:linear-gradient(#F4D35E,#E31C23);height:62px}.pencil.p2{background:linear-gradient(#7BD389,#0B5A4A)}
.crayon.c1{background:#E31C23}.crayon.c2{background:#5B8DEF}.crayon.c3{background:#F0A202}
.block{width:34px;height:34px;border-radius:8px;background:#fff;color:var(--teal);display:grid;place-items:center;font-weight:900;box-shadow:0 6px 12px rgba(8,63,53,.12)}
.block.n{background:var(--red);color:#fff}

.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:.85rem 1.3rem;font-weight:900;text-decoration:none;cursor:pointer}
.btn.red{background:var(--red);color:#fff}.btn.outline{background:#fff;color:var(--teal);border:2px solid var(--teal)}
.btn.white{background:#fff;color:var(--teal)}.btn.full{width:100%}
.cats{padding:2.2rem 0}.cats h2,.section-head h2{color:var(--teal);margin:0 0 1.1rem}
.cat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.8rem}
.cat-card{background:#FFF7F4;border:0;border-radius:22px;padding:1.1rem .6rem;text-align:center;cursor:pointer;min-height:128px}
.cat-card .icon{width:58px;height:58px;border-radius:50%;margin:0 auto .7rem;display:grid;place-items:center;background:#fff;color:var(--red)}
.cat-card svg{width:30px;height:30px}.cat-card b{display:block;color:var(--teal);font-size:.92rem}
.cat-card:nth-child(2){background:#FFF4E8}.cat-card:nth-child(3){background:#EEF8F2}.cat-card:nth-child(4){background:#F3EEFF}.cat-card:nth-child(5){background:#EEF4FF}.cat-card:nth-child(6){background:#FFE9EE}
.section{padding:1rem 0 3rem}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.section-head a,.section-head span{color:var(--muted);font-weight:700}
.filters{display:flex;gap:.7rem;margin-bottom:1rem;align-items:center}
.filters select{border:1px solid var(--line);border-radius:12px;padding:.7rem 1rem;background:#fff}
.stock-only{font-weight:700;color:var(--muted)}
.product-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem}
.product-card{background:#fff;border:1px solid #F0F3F1;border-radius:22px;padding:.8rem;text-align:center;display:flex;flex-direction:column;gap:.35rem;box-shadow:0 8px 20px rgba(8,63,53,.04)}
.product-card .thumb{height:168px;border-radius:16px;display:grid;place-items:center;overflow:hidden;position:relative}
.product-card img{width:100%;height:100%;object-fit:cover}
.cover{width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;color:#fff;padding:.8rem .5rem;text-align:center}
.cover b{font-size:.78rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cover span{font-size:.7rem;opacity:.85;margin-top:.35rem}
.product-card h3{font-size:.92rem;line-height:1.55;min-height:3em;margin:0;color:var(--ink)}
.stars{color:#F5B400;font-size:.78rem}
.price{display:flex;justify-content:center;gap:.45rem;align-items:center;color:var(--red);font-weight:900;font-size:1.05rem}
.price del{color:#9AA8A3;font-size:.78rem;font-weight:500}
.add{border:0;background:var(--teal);color:#fff;border-radius:999px;padding:.55rem .8rem;font-weight:800;cursor:pointer;margin-top:auto}
.add:disabled{opacity:.4}.stock{font-size:.75rem;color:#17824d}.stock.out{color:var(--red)}
.pagination{display:flex;justify-content:center;gap:.35rem;margin-top:1.6rem;flex-wrap:wrap}
.pagination button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:.45rem .7rem}
.pagination button.active{background:var(--teal);color:#fff}
.empty{text-align:center;padding:3rem;color:var(--muted)}
.bundle-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.8rem}
.bundle{border:0;border-radius:22px;padding:1.2rem .8rem;min-height:150px;text-align:center;color:#fff;font-weight:800;cursor:pointer}
.bundle b{display:block;margin-top:.7rem;font-size:.95rem}.bundle small{opacity:.9;font-weight:600}
.b1{background:#5B8DEF}.b2{background:#2BB673}.b3{background:#F0A202}.b4{background:#E4572E}.b5{background:#8E6CC9}.b6{background:#E31C7A}
.promo{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding-bottom:2rem}
.promo-card{border-radius:24px;padding:1.6rem;min-height:170px}.promo-card.green{background:#E7F6EE;color:var(--teal)}.promo-card.cream{background:#F3EEE3;color:var(--teal)}
.promo-card h3{margin:.2rem 0 .5rem;font-size:1.35rem}.promo-card p{color:var(--muted)}
.trust{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;padding:1rem 0 3rem;text-align:center}
.trust b{display:block;color:var(--teal)}.trust span{color:var(--muted);font-size:.82rem}
.drawer-backdrop{position:fixed;inset:0;background:rgba(8,63,53,.4);z-index:39}
.cart-drawer{position:fixed;left:0;top:0;height:100%;width:min(420px,100%);background:#fff;z-index:40;padding:1.3rem;transform:translateX(-105%);transition:.3s;display:flex;flex-direction:column}
.cart-drawer.open{transform:none}.drawer-head{display:flex;justify-content:space-between;align-items:center}
.drawer-head h2{color:var(--teal);margin:0}.drawer-head button,.dialog-close{border:0;width:38px;height:38px;border-radius:50%;background:#F3F6F5;cursor:pointer}
.cart-items{flex:1;overflow:auto}.cart-item{display:flex;justify-content:space-between;gap:.6rem;padding:.9rem 0;border-bottom:1px solid var(--line)}
.qty{display:flex;align-items:center;gap:.5rem}.qty button{width:28px;height:28px;border:1px solid var(--line);background:#fff;border-radius:8px}
.cart-summary{border-top:1px solid var(--line);padding-top:1rem}.cart-summary>div{display:flex;justify-content:space-between;margin-bottom:.8rem;font-size:1.1rem}
dialog{border:0;border-radius:22px;width:min(680px,calc(100% - 2rem));padding:0}dialog::backdrop{background:rgba(8,63,53,.5)}
dialog form{padding:1.8rem;position:relative}dialog h2{color:var(--teal)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.form-grid label{font-size:.82rem;font-weight:800}
.form-grid input,.form-grid textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:.75rem;margin-top:.3rem}
.wide{grid-column:1/-1}.form-message{text-align:center;color:var(--teal)}
.toast{position:fixed;bottom:22px;right:22px;background:var(--teal);color:#fff;padding:1rem 1.2rem;border-radius:14px;transform:translateY(140%);transition:.25s;z-index:70}.toast.show{transform:none}
footer{background:var(--teal-dark);color:#fff;padding:2.5rem 0 0}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:1.5rem;padding-bottom:1.5rem}
.footer-brand img{height:84px;background:#fff;border-radius:16px;padding:.35rem}
footer a,footer span{display:block;color:#D5E6E1;text-decoration:none;margin:.25rem 0}
.copy{border-top:1px solid rgba(255,255,255,.12);text-align:center;padding:1rem;font-size:.82rem;opacity:.8}
@media(max-width:1000px){
  .hero-slide,.promo,.trust,.footer-grid{grid-template-columns:1fr}
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .cat-grid,.bundle-grid{grid-template-columns:repeat(3,1fr)}
  .masthead-inner{grid-template-columns:1fr}.logo{justify-self:center}
  .hero-slide{padding:1.2rem}
}
@media(max-width:640px){
  .main-nav{gap:.8rem}
  .product-grid,.cat-grid,.bundle-grid,.promo,.trust,.footer-grid,.form-grid{grid-template-columns:1fr 1fr}
  .promo,.trust,.form-grid{grid-template-columns:1fr}
  .logo img{height:58px}.mast-actions .ghost{display:none}
  .hero-arrow{display:none}
}
