/* =========================================================
   بطوط — design system
   ========================================================= */
:root{
  --yolk:#FFC933;
  --yolk-deep:#F2A400;
  --yolk-soft:#FFF3C7;
  --beak:#E85D2C;
  --beak-deep:#CF4B1E;
  --ink:#16130F;
  --ink-2:#2E2821;
  --ink-soft:#5F574B;
  --muted:#7A7162; /* كان #8E8578 — تباينه 3.64:1 على الأبيض، تحت حد WCAG AA (4.5). هذا 4.81 */
  --cream:#FFF8EA;
  --pond:#1C2A47;
  --white:#FFFFFF;
  --surface:#F7F6F3;
  --thumb:#ECECEC;
  --line:#ECE7DF;
  --line-strong:#DCD5CA;
  --danger:#E5484D;
  --whatsapp:#25D366;
  --font-display:'Baloo Bhaijaan 2','Tahoma',sans-serif;
  --font-body:'Baloo Bhaijaan 2','Tahoma',sans-serif;
  --radius:18px;
  --radius-lg:28px;
  --wrap:1240px;
  --gutter:24px;
  --header-h:76px;
  --shadow-sm:0 1px 2px rgba(22,19,15,.05),0 4px 14px rgba(22,19,15,.05);
  --shadow-md:0 12px 32px rgba(22,19,15,.10);
  --ease:cubic-bezier(.22,1,.36,1);
}
@media (max-width:640px){:root{--gutter:16px;--header-h:66px;}}

*{box-sizing:border-box;font-synthesis:none;}
[hidden]{display:none !important;}
html{scroll-behavior:smooth;overflow-x:hidden;-webkit-text-size-adjust:100%;}
body{
  margin:0;font-family:var(--font-body);color:var(--ink);background:var(--white);
  line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:clip;width:100%;
  display:flex;flex-direction:column;min-height:100vh;
}
main#main{flex:1 0 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.2;margin:0;}
p{margin:0;}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit;}
button{cursor:pointer;}
img,svg{display:block;max-width:100%;}
img{height:auto;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:calc(var(--wrap) + var(--gutter) * 2);margin:0 auto;padding:0 var(--gutter);}
:focus-visible{outline:3px solid var(--yolk-deep);outline-offset:2px;border-radius:8px;}
.visually-hidden{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
a.visually-hidden:focus{
  position:fixed !important;top:10px;right:10px;width:auto;height:auto;clip:auto;z-index:999;
  background:var(--ink);color:var(--white);padding:10px 16px;border-radius:12px;font-weight:700;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important;}
}
body.no-scroll{overflow:hidden;}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:52px;padding:0 28px;border-radius:999px;border:1.5px solid transparent;
  font-family:var(--font-display);font-weight:700;font-size:16px;line-height:1;white-space:nowrap;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s var(--ease),box-shadow .18s ease;
}
.btn svg{width:18px;height:18px;flex:none;}
.btn:active{transform:scale(.98);}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none;}
.btn-primary,.btn-dark{background:var(--ink);color:var(--white);}
.btn-primary:hover,.btn-dark:hover{background:#000;box-shadow:0 8px 20px rgba(22,19,15,.22);transform:translateY(-1px);}
.btn-yolk{background:var(--yolk);color:var(--ink);}
.btn-yolk:hover{background:var(--yolk-deep);}
.btn-ghost{background:var(--white);color:var(--ink);border-color:var(--line-strong);}
.btn-ghost:hover{border-color:var(--ink);}
.btn-whatsapp{background:var(--whatsapp);color:var(--white);}
.btn-whatsapp:hover{background:#1fb857;}
.btn-danger{background:var(--danger);color:var(--white);}
.btn-danger:hover{background:#cf3a3f;}
.btn-small{height:40px;padding:0 18px;font-size:14px;}
.btn-block{width:100%;}
.btn-spinner{
  width:14px;height:14px;border-radius:50%;
  border:2px solid rgba(255,255,255,.4);border-top-color:var(--white);animation:spin .6s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg);}}

/* =========================================================
   promo strip
   ========================================================= */
.promo-strip{background:var(--ink);color:var(--white);}
.promo-strip-inner{
  display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;
  padding:9px 40px;font-size:13.5px;font-weight:700;text-align:center;position:relative;
}
.promo-strip-inner span:first-child{color:var(--yolk);}
#promoStripTimer{color:rgba(255,255,255,.7);font-weight:600;}
.promo-strip-close{
  position:absolute;inset-inline-end:10px;top:50%;transform:translateY(-50%);
  border:none;background:none;color:rgba(255,255,255,.7);font-size:18px;line-height:1;cursor:pointer;padding:4px;
}
.promo-strip-close:hover{color:var(--white);}

/* =========================================================
   header
   ========================================================= */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:saturate(1.6) blur(12px);backdrop-filter:saturate(1.6) blur(12px);
  border-bottom:1px solid var(--line);
}
.header-inner{height:var(--header-h);display:flex;align-items:center;gap:22px;}
.brand{flex:none;display:flex;align-items:center;}
.brand img{height:46px;width:auto;}
@media (max-width:640px){.brand img{height:38px;}}

.header-search{position:relative;flex:0 1 380px;min-width:140px;}
.header-search input,
.search-field input{
  width:100%;height:46px;border-radius:999px;border:1.5px solid transparent;
  background:var(--surface);padding:0 48px 0 18px;font-size:15px;
  transition:border-color .15s ease,background .15s ease;
}
.header-search input::placeholder,.search-field input::placeholder{color:var(--muted);}
.header-search input:focus,.search-field input:focus{outline:none;border-color:var(--ink);background:var(--white);}
.header-search svg,.search-field svg{
  position:absolute;right:17px;top:50%;transform:translateY(-50%);
  width:19px;height:19px;color:var(--muted);pointer-events:none;
}
.search-field{position:relative;}

.main-nav{display:flex;align-items:center;gap:2px;margin-inline-start:auto;}
.main-nav a{
  position:relative;padding:9px 14px;border-radius:999px;
  font-weight:700;font-size:15px;color:var(--ink-soft);white-space:nowrap;transition:color .15s ease,background .15s ease;
}
.main-nav a:hover{color:var(--ink);background:var(--surface);}
.main-nav a.active{color:var(--ink);}
.main-nav a.active::after{
  content:"";position:absolute;bottom:2px;left:50%;transform:translateX(-50%);
  width:18px;height:3px;border-radius:3px;background:var(--yolk);
}

.header-actions{display:flex;align-items:center;gap:8px;flex:none;}
.icon-btn{
  width:46px;height:46px;border-radius:14px;border:1px solid var(--line);background:var(--white);
  display:grid;place-items:center;color:var(--ink);transition:background .15s ease,border-color .15s ease;
}
.icon-btn:hover{background:var(--surface);border-color:var(--line-strong);}
.icon-btn svg{width:21px;height:21px;}
.cart-pill{
  position:relative;width:48px;height:48px;border-radius:14px;
  background:var(--ink);color:var(--white);display:grid;place-items:center;
  transition:transform .18s var(--ease),background .15s ease;
}
.cart-pill:hover{background:#000;transform:translateY(-1px);}
.cart-pill svg{width:22px;height:22px;}
.cart-badge{
  position:absolute;top:-7px;right:-7px;
  min-width:21px;height:21px;padding:0 5px;border-radius:999px;
  background:var(--yolk);color:var(--ink);border:2px solid var(--white);
  font-size:11.5px;font-weight:800;display:flex;align-items:center;justify-content:center;line-height:1;
}
.cart-badge[hidden]{display:none;}

.menu-toggle,.search-toggle{display:none;}
@media (max-width:1023px){
  .header-search,.main-nav{display:none;}
  .menu-toggle,.search-toggle{display:grid;}
  .header-actions{margin-inline-start:auto;}
}
@media (max-width:640px){
  .icon-btn{width:42px;height:42px;border-radius:12px;}
  .cart-pill{width:44px;height:44px;border-radius:12px;}
  .header-inner{gap:12px;}
}

/* mobile search bar */
.mobile-search{border-top:1px solid var(--line);background:var(--white);padding:12px 0;}
@media (min-width:1024px){.mobile-search{display:none !important;}}

/* ---------- mobile menu drawer ---------- */
.mnav-overlay{
  position:fixed;inset:0;z-index:90;background:rgba(22,19,15,.45);
  opacity:0;transition:opacity .3s ease;
}
.mnav-overlay.is-open{opacity:1;}
.mnav{
  position:fixed;top:0;right:0;z-index:91;height:100%;width:min(86vw,370px);
  background:var(--white);display:flex;flex-direction:column;overflow:hidden;
  transform:translateX(100%);transition:transform .4s var(--ease);
  box-shadow:-20px 0 50px rgba(22,19,15,.18);
}
.mnav.is-open{transform:none;}
.mnav-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 10px;}
.mnav-head img{height:42px;width:auto;}
.mnav-links{display:flex;flex-direction:column;padding:10px 12px;}
.mnav-links a{
  display:flex;align-items:center;gap:14px;padding:13px 12px;border-radius:14px;
  font-weight:700;font-size:17px;color:var(--ink-2);transition:background .15s ease;
}
.mnav-links a svg{width:22px;height:22px;color:var(--ink);flex:none;}
.mnav-links a:hover{background:var(--surface);}
.mnav-links a.active{background:var(--yolk-soft);color:var(--ink);}
.mnav-social{display:flex;gap:10px;padding:14px 24px;}

.social-btn{
  width:42px;height:42px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;
  color:var(--ink);transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.social-btn svg{width:19px;height:19px;}
.social-btn:hover{background:var(--ink);color:var(--white);border-color:var(--ink);}

/* =========================================================
   home — hero slider
   ========================================================= */
.hero{position:relative;background:var(--yolk);overflow:hidden;}
.hero::before{
  content:"";position:absolute;inset:auto auto -40% -10%;width:55%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,255,255,.35),rgba(255,255,255,0));pointer-events:none;
}
.hero-viewport{overflow:hidden;}
.hero-track{display:flex;transition:transform .7s var(--ease);will-change:transform;}
.hero-slide{flex:0 0 100%;display:flex;align-items:center;min-height:clamp(300px,40vw,500px);}
.hero-slide .wrap{width:100%;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:24px;}
.hero-copy{padding:36px 0 56px;}
.hero-kicker{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;
  background:var(--ink);color:var(--yolk);padding:6px 14px;border-radius:999px;font-weight:700;font-size:13px;
}
.hero-copy h1,.hero-copy h2{font-size:clamp(28px,5vw,66px);font-weight:800;line-height:1.08;letter-spacing:-.01em;margin:0 0 14px;}
.hero-copy p{font-size:clamp(14px,1.45vw,19px);color:#3D3426;margin:0 0 26px;max-width:40ch;}
.hero-art{display:flex;justify-content:center;align-items:center;padding:28px 0 36px;}
.hero-art img{height:clamp(220px,31vw,420px);width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 18px 30px rgba(22,19,15,.18));}
.hero-slide.is-active .hero-art img{animation:heroPop .9s var(--ease) both;}
@keyframes heroPop{from{transform:translateY(24px) scale(.96);opacity:0;}to{transform:none;opacity:1;}}
.hero-art .hero-product{
  width:min(340px,100%);aspect-ratio:1;background:var(--white);border-radius:32px;padding:22px;
  box-shadow:var(--shadow-md);transform:rotate(-4deg);
}
.hero-art .hero-product img{width:100%;height:100%;max-width:none;object-fit:contain;filter:none;border-radius:18px;background:var(--thumb);}

.hero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  width:46px;height:46px;border-radius:50%;border:none;background:var(--white);color:var(--ink);
  display:grid;place-items:center;box-shadow:var(--shadow-sm);transition:transform .18s var(--ease),background .15s ease;
}
.hero-arrow:hover{transform:translateY(-50%) scale(1.06);}
.hero-arrow svg{width:20px;height:20px;}
.hero-prev{right:20px;}
.hero-next{left:20px;}
.hero-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:7px;z-index:2;}
/* الحدود الشفافة توسّع مساحة اللمس لـ 44px (8 + 18×2) بدون ما تكبر النقطة بصريًا */
.hero-dots button{box-sizing:content-box;width:8px;height:8px;border-radius:999px;border:18px solid transparent;background-clip:padding-box;padding:0;margin:0 -14px;background-color:rgba(22,19,15,.25);transition:width .3s var(--ease),background-color .3s ease;}
.hero-dots button.active{width:24px;background-color:var(--ink);}
@media (min-width:1024px){.hero-slide .wrap{padding-inline:84px;}}
@media (max-width:1023px){.hero-arrow{display:none;}}
@media (max-width:640px){
  .hero-slide .wrap{grid-template-columns:1.25fr .75fr;gap:10px;}
  .hero-copy{padding:26px 0 44px;}
  .hero-copy h1,.hero-copy h2{font-size:clamp(24px,7.4vw,34px);}
  .hero-copy p{font-size:13px;margin-bottom:18px;}
  .hero-copy .btn{height:42px;padding:0 18px;font-size:14px;}
  .hero-kicker{font-size:11.5px;padding:4px 10px;margin-bottom:10px;}
  .hero-art{padding:20px 0 34px;}
  .hero-art img{height:auto;}
  .hero-art .hero-product{padding:10px;border-radius:20px;margin-bottom:0;}
}

/* =========================================================
   sections & heads
   ========================================================= */
.section{padding:28px 0;}
.page-body{padding:14px 0 28px;}
main>section:last-child{padding-bottom:0;}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;}
@media (max-width:640px){
  .section{padding:22px 0;}
  .section-head{margin-bottom:16px;}
  .section-head p{font-size:13.5px;}
}
.section-head h2{font-size:clamp(22px,2.6vw,30px);font-weight:800;}
.section-head p{color:var(--ink-soft);font-size:15px;margin-top:4px;}
.link-pill{
  display:inline-flex;align-items:center;gap:6px;flex:none;
  background:var(--yolk-soft);color:var(--ink);padding:8px 16px;border-radius:999px;font-weight:700;font-size:14px;
  transition:background .15s ease;
}
.link-pill:hover{background:var(--yolk);}
.link-pill svg{width:15px;height:15px;}

/* page head (inner pages) */
.page-head{padding:20px 0 8px;}
.page-head-row{display:flex;align-items:center;gap:12px;}
.back-btn{
  width:42px;height:42px;border-radius:12px;border:1px solid var(--line);display:grid;place-items:center;flex:none;
  color:var(--ink);transition:background .15s ease;
}
.back-btn:hover{background:var(--surface);}
.back-btn svg{width:20px;height:20px;}
.page-head h1{font-size:clamp(26px,3.6vw,44px);font-weight:800;line-height:1.15;}
.page-head p{color:var(--ink-2);font-size:16px;margin-top:8px;max-width:60ch;}
.crumbs{display:flex;align-items:center;gap:8px;color:var(--ink-soft);font-size:14px;font-weight:600;margin-bottom:10px;}
.crumbs span{color:var(--ink);font-weight:800;}
.crumbs a:hover{color:var(--ink);}
.crumbs svg{width:14px;height:14px;}
@media (min-width:1024px){.page-head .back-btn{display:none;}}
@media (max-width:1023px){.crumbs{display:none;}}

/* =========================================================
   category tiles
   ========================================================= */
.cat-row{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:16px;}
.cat-tile{
  background:var(--thumb);border-radius:20px;padding:14px 10px 14px;
  display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;
  transition:transform .2s var(--ease),box-shadow .2s ease;
}
.cat-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow-sm);}
.cat-tile .cat-img{width:68%;aspect-ratio:1;display:grid;place-items:center;}
.cat-tile img{width:100%;height:100%;object-fit:contain;}
.cat-tile span{font-weight:700;font-size:15px;color:var(--ink-2);line-height:1.3;}
.cat-row.is-loading .cat-tile{min-height:170px;animation:shimmer 1.2s ease-in-out infinite alternate;}
@keyframes shimmer{from{opacity:.55;}to{opacity:1;}}
@media (max-width:767px){
  .cat-row{grid-auto-flow:row;grid-template-columns:repeat(3,1fr);gap:10px;}
  .cat-tile{border-radius:16px;padding:10px 6px 10px;}
  .cat-tile span{font-size:12.5px;}
}

/* =========================================================
   product cards
   ========================================================= */
.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
@media (min-width:640px){.product-grid{grid-template-columns:repeat(3,1fr);gap:18px;}}
@media (min-width:1024px){.product-grid{grid-template-columns:repeat(4,1fr);gap:20px;}}

/* horizontal product rail (home) */
.product-row{
  --cols:6;--gap:16px;
  display:grid;grid-auto-flow:column;gap:var(--gap);
  grid-auto-columns:calc((100% - var(--gap) * (var(--cols) - 1)) / var(--cols));
  overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
  padding:6px 2px 14px;margin:-6px -2px -14px;
  scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;
}
.product-row>*{scroll-snap-align:start;}
.product-row::-webkit-scrollbar{height:6px;}
.product-row::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:6px;}
.product-row .skeleton-card{aspect-ratio:.72;}
@media (max-width:1199px){.product-row{--cols:4;}}
@media (max-width:1023px){.product-row{--cols:3;--gap:14px;}}
@media (max-width:640px){.product-row{--cols:2;--gap:12px;scrollbar-width:none;}.product-row::-webkit-scrollbar{display:none;}}

.product-card{
  position:relative;display:flex;flex-direction:column;gap:2px;
  background:var(--white);border:1px solid var(--line);border-radius:20px;padding:10px 10px 12px;
  transition:transform .22s var(--ease),box-shadow .22s ease,border-color .22s ease;
}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:transparent;}
.product-info-link{color:inherit;display:contents;}
.product-media{position:relative;margin-bottom:10px;}
.product-thumb{
  aspect-ratio:1/1;background:var(--thumb);border-radius:14px;padding:12px;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.product-thumb img{width:100%;height:100%;object-fit:contain;transition:transform .35s var(--ease);}
.product-card:hover .product-thumb img{transform:scale(1.05);}
.product-thumb svg{width:50%;height:50%;}
.product-card h3{
  font-size:15px;font-weight:700;line-height:1.4;color:var(--ink);padding:0 4px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em;
}
.product-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;padding:0 4px;}
.product-price-wrap{display:flex;flex-direction:column;gap:1px;min-width:0;}
.product-price{font-family:var(--font-display);font-weight:800;font-size:17px;color:var(--ink);white-space:nowrap;}
.product-price-was{font-size:11.5px;color:var(--muted);white-space:nowrap;display:flex;align-items:center;gap:5px;}
.price-strike{text-decoration:line-through;}
.price-off-tag{background:var(--danger);color:var(--white);font-size:10px;font-weight:800;padding:1px 5px;border-radius:5px;}
.product-badge{
  position:absolute;top:8px;right:8px;z-index:1;
  background:var(--yolk);color:var(--ink);font-size:11px;font-weight:800;
  padding:4px 10px;border-radius:999px;box-shadow:0 1px 4px rgba(22,19,15,.12);
}
.product-card.is-upcoming .product-thumb img{opacity:.5;}
.product-card.is-upcoming .product-badge{background:var(--ink);color:var(--yolk);}

.wishlist-btn{
  position:absolute;top:8px;left:8px;z-index:1;
  width:34px;height:34px;border-radius:50%;border:none;background:var(--white);
  display:grid;place-items:center;color:var(--ink-soft);
  box-shadow:0 2px 8px rgba(22,19,15,.12);transition:color .15s ease,transform .15s var(--ease);
}
.wishlist-btn svg{width:17px;height:17px;}
/* الدائرة تبقى 34px بصريًا (أكبر من كذا تزحم بطاقة المنتج)، بس مساحة اللمس
   تتوسّع لـ 44px عبر طبقة شفافة — عشان ما تنضغط بالغلط على المنتج بالجوال. */
.wishlist-btn::after{content:"";position:absolute;inset:-5px;border-radius:50%;}
.wishlist-btn::after{content:"";position:absolute;inset:-6px;}
.wishlist-btn:hover{transform:scale(1.1);color:var(--beak);}
.wishlist-btn.is-active{color:var(--beak);}
.wishlist-btn.is-active svg{fill:var(--beak);}

.cart-fab{
  flex:none;width:36px;height:36px;border-radius:11px;border:none;
  background:var(--ink);color:var(--white);display:grid;place-items:center;
  transition:transform .15s var(--ease),background .15s ease;
}
.cart-fab svg{width:17px;height:17px;}
.cart-fab:hover{background:var(--beak);transform:scale(1.06);}
.cart-fab.is-added{background:#1F9D55;animation:cartPop .35s ease;}
.cart-fab[disabled]{background:var(--thumb);color:var(--muted);cursor:not-allowed;}
@keyframes cartPop{0%{transform:scale(1);}45%{transform:scale(1.22);}100%{transform:scale(1);}}

@media (max-width:640px){
  .product-card{padding:8px 8px 10px;border-radius:16px;}
  .product-thumb{padding:8px;border-radius:12px;}
  .product-card h3{font-size:13.5px;}
  .product-price{font-size:15px;}
  .cart-fab{width:36px;height:36px;border-radius:11px;}
  .wishlist-btn{width:34px;height:34px;}
  .product-badge{font-size:10px;padding:3px 8px;}
}

/* list view */
.product-grid.is-list{grid-template-columns:1fr;gap:12px;}
.product-grid.is-list .product-card{
  display:grid;grid-template-columns:120px 1fr;grid-template-areas:"media title" "media foot";
  column-gap:16px;align-items:center;
}
.product-grid.is-list .product-media{grid-area:media;margin:0;}
.product-grid.is-list h3{grid-area:title;align-self:end;min-height:0;font-size:16px;}
.product-grid.is-list .product-foot{grid-area:foot;align-self:start;}
.product-grid.is-list .product-badge{display:none;}
@media (min-width:1024px){.product-grid.is-list{grid-template-columns:1fr 1fr;}}

.skeleton-card{border-radius:20px;background:var(--surface);aspect-ratio:.72;animation:shimmer 1.2s ease-in-out infinite alternate;}

.empty-state{
  text-align:center;padding:56px 20px;color:var(--ink-soft);
  background:var(--surface);border-radius:var(--radius-lg);
}
.empty-state p{margin-bottom:18px;}
.empty-state img{width:130px;margin:0 auto 12px;}

/* =========================================================
   shop page
   ========================================================= */
.shop-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:0;}
.shop-search{margin:0 0 12px;}
.sort-bar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  background:var(--white);border:1px solid var(--line);border-radius:18px;padding:10px 14px 10px 10px;margin:0 0 16px;
}
.sort-count{display:flex;align-items:baseline;gap:10px;padding-inline-start:6px;}
.sort-count strong{font-size:17px;font-weight:800;}
.sort-count span{color:var(--muted);font-weight:600;font-size:14px;}
.sort-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.sort-field{display:flex;align-items:center;gap:10px;}
.sort-field label{font-size:14px;font-weight:700;color:var(--muted);}
.sort-bar .select-pill,.sort-bar .filter-btn{height:42px;}
.select-pill{
  height:46px;border-radius:999px;border:1px solid var(--line);background:var(--white);
  padding:0 18px 0 36px;font-weight:700;font-size:14px;color:var(--ink);
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316130F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 14px center;
}
.view-toggle{display:flex;background:var(--surface);border-radius:14px;padding:4px;gap:2px;flex:none;}
.view-toggle button{
  width:38px;height:38px;border-radius:11px;border:none;background:transparent;color:var(--muted);
  display:grid;place-items:center;
}
.view-toggle button svg{width:18px;height:18px;}
.view-toggle button.active{background:var(--white);color:var(--ink);box-shadow:0 1px 4px rgba(22,19,15,.08);}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:none;}
.chips::-webkit-scrollbar{display:none;}
.chip{
  flex:none;height:40px;padding:0 18px;border-radius:999px;border:1px solid var(--line);
  background:var(--white);font-weight:700;font-size:14px;color:var(--ink-soft);white-space:nowrap;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.chip:hover{border-color:var(--ink);color:var(--ink);}
.chip.active{background:var(--ink);border-color:var(--ink);color:var(--white);}
@media (max-width:640px){
  .sort-bar{flex-direction:column;align-items:stretch;gap:10px;padding:12px;}
  .sort-controls{width:100%;flex-wrap:nowrap;}
  .sort-field{flex:1;min-width:0;}
  .sort-field label{display:none;}
  .sort-field .select-pill{width:100%;min-width:0;padding:0 14px 0 32px;background-position:left 12px center;}
  .sort-bar .filter-btn{padding:0 14px;}
}

/* filter sheet */
.filter-btn{
  display:flex;align-items:center;gap:8px;height:46px;padding:0 18px;border-radius:999px;
  border:1px solid var(--line);background:var(--white);font-weight:700;font-size:14px;flex:none;
}
.filter-btn svg{width:17px;height:17px;}
.filter-btn:hover,.select-pill:hover{border-color:var(--ink);}
.filter-btn.active{border-color:var(--ink);background:var(--yolk-soft);}
.filter-overlay{
  position:fixed;inset:0;background:rgba(22,19,15,.45);z-index:100;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
.filter-panel{
  position:absolute;top:0;bottom:0;left:0;width:min(88vw,380px);
  display:flex;flex-direction:column;background:var(--white);border-radius:0 26px 26px 0;
  box-shadow:24px 0 60px rgba(22,19,15,.22);animation:drawerIn .3s var(--ease);
}
@keyframes drawerIn{from{transform:translateX(-100%);}to{transform:translateX(0);}}
.filter-panel-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid var(--line);flex:none;}
.filter-panel-head h3{font-size:20px;}
.filter-clear{margin-inline-start:auto;margin-inline-end:12px;border:none;background:none;color:var(--beak-deep);font-weight:700;font-size:14px;cursor:pointer;}
.filter-close{width:38px;height:38px;border-radius:50%;border:none;background:var(--surface);display:grid;place-items:center;}
.filter-close svg{width:17px;height:17px;}
.filter-panel-body{padding:22px;flex:1;overflow-y:auto;overscroll-behavior:contain;}
.filter-group+.filter-group{margin-top:22px;padding-top:22px;border-top:1px solid var(--line);}
.filter-group h4{font-size:16px;font-weight:800;margin-bottom:14px;}
.check-list{display:flex;flex-direction:column;gap:12px;}
.check-row{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px;color:var(--ink-2);cursor:pointer;}
.check-row em{font-style:normal;color:var(--muted);font-weight:600;}
.check-row input{
  appearance:none;-webkit-appearance:none;width:22px;height:22px;border-radius:7px;border:1.5px solid var(--line-strong);
  background:var(--white);display:grid;place-items:center;flex:none;cursor:pointer;margin:0;
  transition:background .15s ease,border-color .15s ease;
}
.check-row input:checked{background:var(--ink);border-color:var(--ink);}
.check-row input:checked::after{
  content:"";width:10px;height:6px;border:solid var(--white);border-width:0 0 2.4px 2.4px;transform:rotate(-45deg) translate(1px,-1px);
}
.dual-range{position:relative;height:26px;margin:6px 4px 0;}
.dual-range-track{position:absolute;inset-inline:0;top:50%;height:4px;margin-top:-2px;background:var(--line-strong);border-radius:4px;}
.dual-range-fill{position:absolute;top:0;bottom:0;background:var(--yolk);border-radius:4px;}
.dual-range input{
  position:absolute;inset:0;width:100%;height:100%;margin:0;background:none;pointer-events:none;
  appearance:none;-webkit-appearance:none;
}
.dual-range input::-webkit-slider-thumb{
  -webkit-appearance:none;pointer-events:auto;width:22px;height:22px;border-radius:50%;
  background:var(--yolk);border:3px solid var(--white);box-shadow:0 1px 5px rgba(22,19,15,.3);cursor:grab;
}
.dual-range input::-moz-range-thumb{
  pointer-events:auto;width:16px;height:16px;border-radius:50%;
  background:var(--yolk);border:3px solid var(--white);box-shadow:0 1px 5px rgba(22,19,15,.3);cursor:grab;
}
.dual-range input::-webkit-slider-runnable-track{background:none;}
.dual-range input::-moz-range-track{background:none;}
.range-labels{display:flex;justify-content:space-between;margin-top:10px;font-size:13px;font-weight:700;color:var(--ink-soft);}
.filter-panel-foot{display:flex;gap:10px;padding:16px 22px 22px;border-top:1px solid var(--line);flex:none;}
.filter-panel-foot .btn{flex:1;}

/* =========================================================
   product detail
   ========================================================= */
.pd{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:56px;align-items:start;}
@media (max-width:900px){.pd{grid-template-columns:minmax(0,1fr);gap:22px;}}
.pd-gallery{display:grid;grid-template-columns:1fr 84px;gap:12px;position:sticky;top:calc(var(--header-h) + 20px);}
.pd-gallery:has(.pd-thumbs:empty){grid-template-columns:1fr;}
@media (max-width:900px){.pd-gallery{position:static;grid-template-columns:1fr 64px;}}
.pd-main-image{
  position:relative;aspect-ratio:1;background:var(--thumb);border-radius:26px;padding:28px;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.pd-main-image img{width:100%;height:100%;object-fit:contain;}
.pd-main-image svg{width:42%;height:42%;}
.pd-stage{position:relative;}
.pd-wish{top:16px;left:16px;width:44px;height:44px;}
.pd-wish svg{width:20px;height:20px;}
.pd-share{top:16px;right:16px;width:44px;height:44px;}
.pd-share svg{width:20px;height:20px;}
.pd-share.is-copied{color:var(--ink);}
.pd-thumbs{display:flex;flex-direction:column;gap:10px;}
.pd-thumb{
  width:100%;aspect-ratio:1;border-radius:14px;background:var(--thumb);padding:6px;
  border:2px solid transparent;opacity:.75;transition:opacity .15s ease,border-color .15s ease;
}
.pd-thumb img{width:100%;height:100%;object-fit:contain;}
.pd-thumb.active{border-color:var(--ink);opacity:1;}
.pd-thumb:hover{opacity:1;}

.pd-info{display:flex;flex-direction:column;}
.pd-badge{
  align-self:flex-start;background:var(--yolk-soft);color:var(--ink);
  font-size:13px;font-weight:700;padding:5px 14px;border-radius:999px;margin-bottom:12px;
}
.pd-title{font-size:clamp(24px,3vw,36px);font-weight:800;line-height:1.2;}
.pd-sku{color:var(--muted);font-family:monospace;font-size:13px;font-weight:700;margin:6px 0 0;}
.pd-price-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:12px 0 4px;}
.pd-price{font-family:var(--font-display);font-weight:800;font-size:clamp(26px,2.6vw,32px);margin:0;}
.pd-price-was{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);margin:0;}
.pd-price-was .price-off-tag{font-size:12px;}
.pd-price-note{color:var(--muted);font-size:14px;}
.pd-buy{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:24px 0 8px;}
.pd-buy .btn{flex:1 1 180px;height:56px;font-size:17px;}
.pd-status{color:var(--beak-deep);font-weight:700;font-size:14px;margin-top:6px;}
.pd-stock-note{color:var(--muted);font-size:13px;margin-top:8px;}
.pd-notify{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.pd-notify input{
  flex:1 1 180px;height:46px;padding:0 16px;border-radius:12px;border:1.5px solid var(--line);
  background:var(--white);font-size:14.5px;color:var(--ink);
}
.pd-notify input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 4px var(--yolk-soft);}
.pd-notify .btn-small{flex:0 0 auto;}
.pd-notify-done{color:var(--ink);font-weight:700;font-size:14px;margin-top:14px;}
.pd-section{border-top:1px solid var(--line);padding-top:18px;margin-top:22px;}
.pd-section h3{font-size:17px;font-weight:800;margin-bottom:8px;}
.pd-section p{color:var(--ink-soft);font-size:15.5px;line-height:1.8;white-space:pre-line;}
.pd-specs div{font-size:15px;color:var(--ink-soft);}
.pd-specs b{color:var(--ink);}

/* qty stepper */
.qty-stepper{
  display:inline-flex;align-items:center;gap:4px;height:40px;padding:4px;
  border:1px solid var(--line);border-radius:12px;background:var(--white);flex:none;
}
.qty-stepper button{
  width:30px;height:30px;border-radius:9px;border:none;background:var(--surface);
  font-weight:800;font-size:17px;line-height:1;display:grid;place-items:center;color:var(--ink);
  transition:background .15s ease;
}
.qty-stepper button:hover{background:var(--thumb);}
.qty-stepper button:disabled{opacity:.35;cursor:not-allowed;}
.qty-stepper button:disabled:hover{background:var(--surface);}
.qty-stepper span{min-width:26px;text-align:center;font-weight:800;font-size:15px;}
.qty-stepper.lg{height:56px;border-radius:16px;padding:6px;}
.qty-stepper.lg button{width:42px;height:42px;border-radius:12px;font-size:20px;}
.qty-stepper.lg span{min-width:34px;font-size:17px;}

/* =========================================================
   cart
   ========================================================= */
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:32px;align-items:start;}
@media (max-width:900px){.cart-layout{grid-template-columns:minmax(0,1fr);gap:20px;}}
.cart-list{display:flex;flex-direction:column;gap:12px;}
.cart-item{
  display:grid;grid-template-columns:92px 1fr auto;grid-template-areas:"thumb info remove" "thumb info qty";
  gap:4px 14px;align-items:start;
  background:var(--white);border:1px solid var(--line);border-radius:20px;padding:12px;
}
.cart-item-thumb{
  grid-area:thumb;width:92px;height:92px;border-radius:14px;background:var(--thumb);padding:6px;
  display:grid;place-items:center;overflow:hidden;
}
.cart-item-thumb img{width:100%;height:100%;object-fit:contain;}
.cart-item-info{grid-area:info;align-self:center;min-width:0;}
.cart-item-info h3{font-size:15.5px;font-weight:700;line-height:1.35;margin-bottom:4px;}
.cart-item-info .cart-item-price{font-family:var(--font-display);font-weight:800;color:var(--beak);font-size:16px;display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;}
.cart-item-info .cart-item-price .price-strike{font-family:var(--font-body);font-weight:600;color:var(--muted);font-size:13px;}
.cart-item-info .cart-item-unit{color:var(--muted);font-size:12.5px;}
.remove-item{
  grid-area:remove;justify-self:end;width:34px;height:34px;border-radius:10px;border:none;
  background:transparent;color:var(--danger);display:grid;place-items:center;transition:background .15s ease;
}
.remove-item:hover{background:#FDECEC;}
.remove-item svg{width:18px;height:18px;}
.cart-item-qtywrap{grid-area:qty;display:flex;flex-direction:column;align-items:end;gap:4px;}
@media (max-width:420px){
  .cart-item{grid-template-columns:76px 1fr auto;}
  .cart-item-thumb{width:76px;height:76px;}
}

.summary-card{
  background:var(--surface);border-radius:24px;padding:24px;
}
.summary-card h3{font-size:19px;font-weight:800;margin-bottom:16px;}
.summary-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;font-size:15px;color:var(--ink-soft);margin-bottom:10px;}
.summary-row>span:first-child{flex:1;min-width:0;}
.summary-row>span:last-child{flex:none;white-space:nowrap;font-weight:700;color:var(--ink-2);}
/* سطر خصم الكود — أخضر بتباين 5.08:1 على الأبيض (أخضر واتساب نفسه 1.98 فقط، تحت حد AA) */
.summary-row.discount-row>span{color:#157F3D;font-weight:700;}
.summary-row.total{
  color:var(--ink);font-weight:800;font-size:19px;font-family:var(--font-display);
  border-top:1px dashed var(--line-strong);padding-top:14px;margin-top:14px;
}
.summary-row.total>span:last-child{color:var(--ink);}
.summary-card .btn{width:100%;margin-top:18px;}
.trust-row{display:flex;justify-content:center;gap:16px;margin-top:14px;color:var(--muted);font-size:12.5px;font-weight:600;flex-wrap:wrap;}
.trust-row span{display:inline-flex;align-items:center;gap:6px;}
.trust-row svg{width:15px;height:15px;}

.coupon-row{display:flex;align-items:center;gap:8px;margin-bottom:10px;}
.coupon-row input{
  flex:1;min-width:0;height:42px;padding:0 12px;border-radius:12px;border:1px solid var(--line-strong);
  background:var(--white);font-size:14px;font-family:inherit;
}
.coupon-row input:focus{outline:none;border-color:var(--ink);}
.coupon-row .btn{width:auto;margin-top:0;flex:none;height:42px;padding:0 16px;}
.coupon-msg{font-size:13px;font-weight:700;margin:-4px 0 10px;color:var(--danger);}
.coupon-msg.is-ok{color:#1f8a4c;}
.coupon-remove{
  border:none;background:none;color:var(--ink-soft);font-size:22px;line-height:1;cursor:pointer;
  padding:0 4px;flex:none;height:42px;
}
.coupon-remove:hover{color:var(--danger);}

/* ---------- cart drawer ---------- */
.cart-drawer-overlay{
  position:fixed;inset:0;background:rgba(22,19,15,.45);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  z-index:200;opacity:0;pointer-events:none;transition:opacity .3s ease;
}
.cart-drawer-overlay.is-open{opacity:1;pointer-events:auto;}
.cart-drawer{
  position:fixed;top:0;left:0;height:100%;width:100%;max-width:420px;
  background:var(--white);z-index:201;display:flex;flex-direction:column;
  border-radius:0 28px 28px 0;box-shadow:24px 0 60px rgba(22,19,15,.22);
  transform:translateX(-100%);transition:transform .4s var(--ease);
}
.cart-drawer.is-open{transform:translateX(0);}
.cart-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line);flex:none;}
.cart-drawer-head-title{display:flex;align-items:center;gap:10px;}
.cart-drawer-head-title svg{width:22px;height:22px;flex:none;}
.cart-drawer-head h2{font-size:20px;font-weight:800;}
.cart-drawer-count{background:var(--yolk);color:var(--ink);font-size:12.5px;font-weight:800;padding:2px 10px;border-radius:999px;}
.cart-drawer-close{
  width:38px;height:38px;border-radius:50%;border:none;background:var(--surface);color:var(--ink);
  display:grid;place-items:center;flex:none;transition:background .15s ease,transform .25s ease;
}
.cart-drawer-close svg{width:17px;height:17px;}
.cart-drawer-close:hover{background:var(--thumb);transform:rotate(90deg);}
.cart-drawer-body{flex:1;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:10px;}
.cart-drawer-body .cart-item{grid-template-columns:76px 1fr auto;padding:10px;border-radius:16px;}
.cart-drawer-body .cart-item-thumb{width:76px;height:76px;}
.cart-drawer-foot{padding:18px 22px 22px;border-top:1px solid var(--line);background:var(--surface);flex:none;border-radius:0 0 28px 0;}
.cart-drawer-foot .summary-row.total{font-size:20px;}
.cart-drawer-foot .btn{width:100%;margin-top:8px;}
.cart-drawer-empty{text-align:center;padding:64px 24px;display:flex;flex-direction:column;align-items:center;gap:14px;}
.cart-drawer-empty img{width:130px;}
.cart-drawer-empty p{color:var(--ink-soft);}
@media (max-width:480px){
  .cart-drawer{max-width:100%;border-radius:0;}
  .cart-drawer-foot{border-radius:0;}
}

/* =========================================================
   checkout
   ========================================================= */
.stepper{display:flex;align-items:flex-start;justify-content:center;max-width:560px;margin:0 auto 28px;padding:0 10px;list-style:none;}
.stepper-item{display:flex;flex-direction:column;align-items:center;gap:8px;position:relative;flex:1;}
.stepper-item:not(:last-child)::after{
  content:"";position:absolute;top:17px;right:calc(50% + 24px);left:calc(-50% + 24px);
  height:2px;background:var(--line-strong);border-radius:2px;
}
.stepper-item.done:not(:last-child)::after{background:var(--ink);}
.stepper-dot{
  width:36px;height:36px;border-radius:50%;border:2px solid var(--line-strong);background:var(--white);
  display:grid;place-items:center;font-weight:800;font-size:15px;color:var(--muted);z-index:1;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}
.stepper-dot svg{width:17px;height:17px;}
.stepper-label{font-size:13px;font-weight:700;color:var(--muted);}
.stepper-item.active .stepper-dot{border-color:var(--ink);color:var(--ink);box-shadow:0 0 0 5px var(--yolk-soft);}
.stepper-item.active .stepper-label{color:var(--ink);}
.stepper-item.done .stepper-dot{background:var(--ink);border-color:var(--ink);color:var(--white);}
.stepper-item.done .stepper-label{color:var(--ink-2);}

.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:32px;align-items:start;margin-bottom:60px;}
@media (max-width:900px){.checkout-layout{grid-template-columns:minmax(0,1fr);}.checkout-layout>.summary-card{order:-1;}}
.step-panel{animation:stepIn .45s var(--ease) both;}
@keyframes stepIn{from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:none;}}
.panel-card{background:var(--white);border:1px solid var(--line);border-radius:24px;padding:clamp(20px,3vw,32px);}
.panel-card h2{font-size:22px;font-weight:800;margin-bottom:6px;}
.panel-card .panel-sub{color:var(--ink-soft);font-size:14.5px;margin-bottom:22px;}

.form-card{background:var(--white);border:1px solid var(--line);border-radius:24px;padding:28px;}
.field{margin-bottom:18px;}
.address-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.address-grid .field{margin-bottom:0;}
@media (max-width:480px){.address-grid{grid-template-columns:1fr;gap:18px;}}
.field label{display:block;font-weight:700;font-size:14.5px;margin-bottom:8px;color:var(--ink-2);}
.field .opt{color:var(--muted);font-weight:600;font-size:13px;}
.field input,.field select,.field textarea{
  width:100%;height:52px;padding:0 16px;border-radius:14px;border:1.5px solid var(--line);
  background:var(--white);font-size:15.5px;color:var(--ink);transition:border-color .15s ease,box-shadow .15s ease;
}
.field textarea{height:auto;min-height:96px;padding:14px 16px;resize:vertical;line-height:1.6;}
.field select{
  appearance:none;-webkit-appearance:none;padding-left:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316130F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 16px center;
}
.field input::placeholder,.field textarea::placeholder{color:#B3AA9D;}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 4px var(--yolk-soft);}

.password-field{position:relative;}
.password-field input{padding-left:48px;}
.password-toggle{
  position:absolute;top:0;left:0;height:52px;width:48px;display:flex;align-items:center;justify-content:center;
  background:none;border:none;color:var(--ink-soft);cursor:pointer;padding:0;
}
.password-toggle:hover{color:var(--ink);}
.password-toggle svg{width:21px;height:21px;}
.password-toggle .icon-eye-off{display:none;}
.password-toggle.is-shown .icon-eye{display:none;}
.password-toggle.is-shown .icon-eye-off{display:block;}
.field.has-error input,.field.has-error select{border-color:var(--danger);}
.phone-field{display:flex;gap:8px;}
.phone-prefix{
  flex:none;display:flex;align-items:center;gap:8px;height:52px;padding:0 14px;border-radius:14px;
  border:1.5px solid var(--line);background:var(--surface);font-weight:700;font-size:15px;direction:ltr;
}
.phone-prefix .flag{width:22px;height:15px;border-radius:3px;overflow:hidden;flex:none;}
.phone-field input{flex:1;direction:ltr;text-align:right;}
.form-error{color:var(--danger);font-size:14px;font-weight:600;margin:4px 0 14px;}
.form-note{color:var(--muted);font-size:13.5px;margin:0 0 14px;}

.review-items{display:flex;flex-direction:column;gap:10px;margin-bottom:18px;}
.review-item{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:16px;}
.review-item-thumb{width:62px;height:62px;border-radius:12px;background:var(--thumb);padding:5px;flex:none;}
.review-item-thumb img{width:100%;height:100%;object-fit:contain;}
.review-item-info{flex:1;min-width:0;}
.review-item-info h4{font-size:15px;font-weight:700;line-height:1.35;}
.review-item-info span{font-size:13px;color:var(--muted);}
.review-item-price{font-family:var(--font-display);font-weight:800;color:var(--beak);white-space:nowrap;}
.review-block{background:var(--surface);border-radius:18px;padding:16px 18px;margin-bottom:16px;}
.review-block-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.review-block-head h4{font-size:15px;font-weight:800;}
.text-link{font-weight:700;font-size:14px;color:var(--ink);text-decoration:underline;text-underline-offset:3px;background:none;border:none;padding:0;}
.review-block dl{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0;font-size:14.5px;}
.review-block dt{color:var(--muted);font-weight:600;}
.review-block dd{margin:0;font-weight:700;color:var(--ink-2);word-break:break-word;}
.step-actions{display:flex;gap:10px;margin-top:8px;}
.step-actions .btn-dark,.step-actions .btn-primary{flex:1;}

.review-recap-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px;}
@media (max-width:640px){.review-recap-grid{grid-template-columns:1fr;}}
.review-recap-card{background:var(--surface);border-radius:16px;padding:16px;}
.review-recap-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.review-recap-head svg{width:18px;height:18px;flex:none;color:var(--ink-soft);}
.review-recap-head h4{font-size:14.5px;font-weight:800;flex:1;}
.review-recap-card p{font-size:13.5px;color:var(--ink-soft);line-height:1.6;margin:0;white-space:pre-line;}
.checkout-trust-line{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:13px;margin:14px 0 0;}
.checkout-trust-line svg{width:16px;height:16px;flex:none;}

.btn-sm{padding:8px 14px;font-size:13px;}
.benefit-pay .field{margin-top:14px;}
.benefit-number-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--white);border:1.5px dashed var(--line-strong);border-radius:14px;padding:12px 16px;
}
.benefit-number-info{display:flex;flex-direction:column;gap:2px;}
.benefit-number{font-size:22px;font-weight:800;letter-spacing:1px;}
.benefit-account-name{font-size:12.5px;color:var(--muted);font-weight:600;}
/* رمز بنفت — خلفية بيضاء صريحة تحت الصورة مهمة للمسح: أي لون خلف الكود يضعف
   قراءته بكاميرا الجوال، والهامش الأبيض حوله جزء من مواصفة QR مو زخرفة. */
.benefit-qr{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:12px;
  background:var(--white);border:1.5px dashed var(--line-strong);border-radius:14px;padding:16px;}
.benefit-qr img{width:200px;height:200px;display:block;background:#fff;border-radius:8px;}
.benefit-qr p{margin:0;font-size:13px;color:var(--ink-soft);font-weight:600;text-align:center;}
.benefit-pay input[type="file"]{
  display:block;width:100%;font-size:13.5px;color:var(--muted);
  background:var(--white);border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;
}
.receipt-preview{position:relative;width:120px;margin-top:10px;border-radius:12px;overflow:hidden;background:var(--thumb);}
.receipt-preview img{display:block;width:100%;height:120px;object-fit:cover;}
.receipt-remove{
  position:absolute;top:6px;left:6px;width:26px;height:26px;border-radius:999px;border:none;
  background:rgba(22,19,15,.72);color:var(--white);display:grid;place-items:center;cursor:pointer;
}
.receipt-remove svg{width:14px;height:14px;}

.co-summary-items{display:flex;flex-direction:column;gap:12px;margin-bottom:14px;max-height:300px;overflow-y:auto;padding:6px 6px 2px;}
.co-line{display:flex;align-items:center;gap:12px;font-size:14px;padding-bottom:12px;border-bottom:1px solid var(--line);}
.co-line:last-child{padding-bottom:0;border-bottom:none;}
.co-line-thumb{width:52px;height:52px;border-radius:12px;background:var(--thumb);padding:4px;flex:none;position:relative;}
.co-line-thumb img{width:100%;height:100%;object-fit:contain;}
.co-line-qty{
  position:absolute;top:-7px;left:-7px;min-width:20px;height:20px;border-radius:999px;background:var(--ink);color:var(--white);
  font-size:11px;font-weight:800;display:grid;place-items:center;padding:0 4px;border:2px solid var(--surface);
}
.co-line-name{flex:1;min-width:0;font-weight:700;color:var(--ink);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.co-line-price{font-weight:800;white-space:nowrap;}

/* شاشة "تم استلام طلبك" — بطاقة واحدة بدل عناصر متمركزة بلا حاوية.
   كانت كل قطعة متمركزة لحالها فتبدو سايبة بوسط صفحة فاضية، خصوصًا بالشاشات
   العريضة. الإطار يجمعها ويعطيها ثقل بصري يناسب لحظة "خلص الطلب". */
.order-success{
  text-align:center;max-width:520px;margin:8px auto 0;
  background:var(--white);border:1px solid var(--line);border-radius:24px;
  padding:34px 28px 30px;box-shadow:0 10px 30px rgba(22,19,15,.06);
}
.success-badge{
  width:88px;height:88px;border-radius:50%;background:var(--yolk);margin:0 auto 18px;
  display:grid;place-items:center;animation:popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
.success-badge svg{width:42px;height:42px;color:var(--ink);}
.order-success h2{font-size:clamp(24px,3vw,32px);font-weight:800;margin:0 0 10px;line-height:1.3;}
.order-no{
  display:inline-block;margin:0 0 16px;background:var(--surface);border:1px dashed var(--line-strong);
  padding:9px 20px;border-radius:12px;font-weight:800;font-size:18px;letter-spacing:.04em;direction:ltr;
}
/* الفقرات متمركزة بنص متوازن عشان السطر الأخير ما يطلع كلمة وحدة معلّقة */
/* بلا max-width ضيق: البطاقة نفسها تحدد العرض، فالأسطر تمتلئ بدل ما تتكسر
   مبكرًا وتترك فراغًا على الجانبين. pretty يمنع كلمة يتيمة بالسطر الأخير. */
.order-success p{
  color:var(--ink-soft);margin:0 0 22px;
  line-height:1.85;text-wrap:pretty;
}
.order-total-confirmed{
  color:var(--ink) !important;font-weight:800;font-size:16.5px;
  margin:0 auto 16px !important;padding:12px 16px;
  background:var(--surface);border-radius:14px;max-width:none !important;line-height:1.7;
}

@media (max-width:560px){
  /* بالجوال نخفف الحشو والظل عشان البطاقة ما تاكل عرض الشاشة */
  .order-success{padding:28px 18px 24px;border-radius:20px;margin-top:4px;box-shadow:0 6px 18px rgba(22,19,15,.05);}
  .success-badge{width:76px;height:76px;margin-bottom:14px;}
  .success-badge svg{width:36px;height:36px;}
  .order-success p{max-width:none;}
}
.receipt-link-warning{background:#FFF4E5;border:1px solid #F3C98B;color:#7A4A00 !important;border-radius:14px;padding:13px 16px;font-size:14px;line-height:1.75;max-width:none !important;margin:0 0 20px !important;text-align:start;}
.receipt-missing-flag{display:inline-block;background:#FDECEC;color:#B42318;font-weight:700;font-size:12.5px;padding:4px 10px;border-radius:999px;}
.wheel-flag{display:inline-block;font-weight:700;font-size:12.5px;padding:4px 10px;border-radius:999px;background:#F1EEE8;color:#5F574B;}
.wheel-flag.is-used{background:#E6F6EC;color:#157F3D;}
.wheel-flag.is-open{background:#FFF4D6;color:#8A5A00;}
.wheel-flag.is-dead{background:#FDECEC;color:#B42318;}
/* صفحة سياسة الخصوصية — عرض نص مريح للقراءة الطويلة */
.legal-page{max-width:760px;margin:0 auto;padding:12px 0 40px;}
.legal-page h1{font-size:clamp(26px,3vw,36px);font-weight:800;margin-bottom:4px;}
.legal-updated{color:var(--ink-soft);font-size:13.5px;margin-bottom:24px;}
.legal-page h2{font-size:19px;font-weight:800;margin:28px 0 10px;}
.legal-page p{color:var(--ink-soft);line-height:1.9;margin-bottom:12px;}
.legal-page ul{margin:0 0 12px;padding-inline-start:22px;color:var(--ink-soft);line-height:1.9;}
.legal-page li{margin-bottom:6px;}
.legal-page a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.footer-legal-links{display:block;margin-top:6px;font-size:12.5px;color:var(--ink-soft);}
.footer-legal-links a{color:inherit;}
/* تنبيه "دفعت لكن الطلب ما اكتمل" — الزبون يحوّل المبلغ قبل إنشاء الطلب، فأي فشل
   بعد الخطوة الثالثة لازم يطمّنه على فلوسه ويعطيه طريق واضح بدل "حاول مرة ثانية". */
.payment-failure-notice p{margin:8px 0 0;color:inherit;}
.payment-failure-notice .btn{margin-top:14px;width:100%;}
.success-actions{display:flex;flex-direction:column;gap:10px;max-width:340px;margin:0 auto;}
.success-actions .btn{width:100%;justify-content:center;}

/* =========================================================
   about
   ========================================================= */
.about-hero{
  display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:32px;
  background:var(--yolk);border-radius:32px;padding:clamp(24px,4vw,56px);overflow:hidden;position:relative;
}
.about-hero img{width:100%;max-width:440px;margin:0 auto;filter:drop-shadow(0 16px 28px rgba(22,19,15,.18));}
.about-hero h1{font-size:clamp(28px,4vw,50px);font-weight:800;line-height:1.12;margin-bottom:14px;}
.about-hero p{font-size:clamp(15px,1.5vw,18px);color:#3D3426;line-height:1.8;}
@media (max-width:767px){.about-hero{grid-template-columns:1fr;text-align:center;}.about-hero img{max-width:260px;}}
.about-body{
  text-align:center;
  background:var(--surface);border-radius:28px;padding:clamp(32px,4vw,56px) clamp(20px,4vw,40px);
}
.about-body-icon{width:56px;height:56px;border-radius:16px;background:var(--yolk);display:grid;place-items:center;margin:0 auto 16px;}
.about-body-icon svg{width:26px;height:26px;color:var(--ink);}
.about-body h2{font-size:clamp(22px,2.6vw,30px);font-weight:800;margin-bottom:14px;}
.about-body p{max-width:640px;margin:0 auto;color:var(--ink-soft);font-size:17px;line-height:1.9;}
@media (min-width:768px){.footer-legal-links{display:inline;margin-inline-start:14px;margin-top:0;}}
.cta-band{
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  background:linear-gradient(90deg,#15437B 0%,#0B2D5A 45%,#061B39 100%);color:var(--white);border-radius:28px;padding:clamp(24px,4vw,40px);
}
.cta-band h2{font-size:clamp(22px,2.6vw,30px);font-weight:800;}
.cta-band p{color:rgba(255,255,255,.7);margin-top:6px;}

/* =========================================================
   contact
   ========================================================= */
.contact-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:stretch;}
@media (max-width:900px){.contact-layout{grid-template-columns:minmax(0,1fr);}}
.contact-list{display:flex;flex-direction:column;gap:12px;}
.contact-row{
  display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);border-radius:22px;background:var(--white);
  transition:transform .2s var(--ease),box-shadow .2s ease,border-color .2s ease;
}
.contact-row:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:transparent;}
.contact-ico{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;flex:none;color:var(--white);}
.contact-ico svg{width:26px;height:26px;}
.contact-ico.ig{background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fd5949 45%,#d6249f 60%,#285AEB 90%);}
.contact-ico.wa{background:var(--whatsapp);}
.contact-ico.mail{background:#2F7BF5;}
.contact-text{flex:1;min-width:0;}
.contact-text h3{font-size:17px;font-weight:800;}
.contact-text span{display:block;color:var(--ink-soft);font-weight:700;font-size:15px;direction:ltr;text-align:right;overflow-wrap:anywhere;}
@media (max-width:400px){
  .contact-row{padding:14px;gap:12px;}
  .contact-ico{width:46px;height:46px;border-radius:14px;}
  .contact-ico svg{width:22px;height:22px;}
  .contact-row .chev{display:none;}
}
.contact-row .chev{width:20px;height:20px;color:var(--muted);flex:none;}
.contact-art{
  background:transparent;border:2px solid var(--line-strong);border-radius:22px;display:flex;flex-direction:column;justify-content:space-between;
  padding:26px;min-height:320px;
}
.contact-art h2{font-size:clamp(22px,2.4vw,28px);font-weight:800;}
.contact-art p{color:var(--ink-soft);margin-top:6px;}

/* =========================================================
   how to order / faq / track
   ========================================================= */
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;counter-reset:how;}
@media (max-width:639px){.how-grid{grid-template-columns:1fr;}}
.how-card{
  position:relative;background:var(--surface);border-radius:24px;padding:26px 22px;text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:6px;
}
.how-num{
  position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:50%;
  background:var(--ink);color:var(--yolk);display:grid;place-items:center;font-weight:800;
}
.how-card img{width:130px;height:130px;object-fit:contain;margin-bottom:6px;}
.how-card h3{font-size:19px;font-weight:800;}
.how-card p{color:var(--ink-soft);font-size:15px;max-width:30ch;}
@media (min-width:640px) and (max-width:860px){
  .how-card{padding:20px 14px;}
  .how-card img{width:100px;height:100px;}
  .how-card h3{font-size:17px;}
  .how-card p{font-size:13.5px;max-width:22ch;}
}
@media (min-width:1024px){
  body[data-page="how"] .page-head{padding:56px 0;}
  body[data-page="how"] .page-body{padding:56px 0;}
  body[data-page="how"] .how-grid{gap:28px;}
  body[data-page="how"] .how-card{padding:56px 34px;min-height:460px;justify-content:center;gap:10px;}
  body[data-page="how"] .how-card img{width:170px;height:170px;margin-bottom:10px;}
  body[data-page="how"] .how-card h3{font-size:23px;}
  body[data-page="how"] .how-card p{font-size:16.5px;max-width:30ch;line-height:1.7;}
  body[data-page="how"] .section{padding:56px 0;}
}

.faq-group{margin:36px 0 14px;font-size:20px;}
.faq-group:first-child{margin-top:0;}
.faq-body a{color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px;}
.faq-list{display:flex;flex-direction:column;gap:12px;}
.faq-item{border:1px solid var(--line);border-radius:20px;background:var(--white);overflow:hidden;transition:border-color .2s ease;}
.faq-item[open]{border-color:var(--ink);}
.faq-item summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:18px 22px;font-family:var(--font-display);font-weight:800;font-size:17px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary .plus{
  width:32px;height:32px;border-radius:50%;background:var(--surface);display:grid;place-items:center;flex:none;
  transition:transform .25s var(--ease),background .2s ease;
}
.faq-item summary .plus svg{width:16px;height:16px;}
.faq-item[open] summary .plus{transform:rotate(45deg);background:var(--yolk);}
.faq-body{padding:0 22px 20px;color:var(--ink-soft);font-size:15.5px;line-height:1.8;}
.placeholder-note{
  display:inline-block;margin-top:8px;font-size:12.5px;color:var(--beak-deep);
  background:var(--cream);padding:3px 10px;border-radius:999px;font-weight:700;
}

.narrow{max-width:560px;margin:0 auto;}
.track-result{margin-top:18px;}
.status-pill{display:inline-block;background:var(--yolk-soft);color:var(--ink);font-weight:800;padding:4px 12px;border-radius:999px;}

/* =========================================================
   footer
   ========================================================= */
.site-footer{
  margin-top:56px;padding:40px 0 32px;color:var(--ink);
  background:radial-gradient(circle at 10% 0%,rgba(255,201,51,.95) 0%,var(--yolk-soft) 55%);
}
.footer-top{display:grid;grid-template-columns:1.7fr .85fr .85fr .85fr 1.15fr;gap:24px;}
@media (max-width:1023px){.footer-top{grid-template-columns:1fr 1fr;}.footer-brand,.footer-newsletter{grid-column:1/-1;}}
@media (max-width:520px){.footer-top{grid-template-columns:1fr;gap:26px;}}
.footer-brand img{height:52px;width:auto;margin-bottom:14px;}
.footer-brand p{font-size:15px;max-width:46ch;line-height:1.7;color:var(--ink-2);}
.footer-col h4{
  color:var(--ink);font-size:15.5px;font-weight:800;padding-bottom:10px;
  border-bottom:3px solid var(--yolk-deep);display:inline-block;
}
.footer-col-toggle{
  all:unset;display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;
}
.footer-col-chevron{display:none;}
.footer-col a{display:block;padding:8px 0;font-size:14.5px;font-weight:600;color:var(--ink-2);transition:color .15s ease;}
.footer-col a:hover{color:var(--ink);text-decoration:underline;}
@media (min-width:1024px){
  .footer-col h4{margin-bottom:22px;}
}
/* موبايل/تابلت: كل عمود روابط يصير أكورديون قابل للطي، مقفول افتراضياً (.is-open تضيفها initFooterAccordions ف js/site.js) */
@media (max-width:1023px){
  .footer-col{border-bottom:1px solid rgba(22,19,15,.12);padding-bottom:4px;}
  .footer-col-toggle{cursor:pointer;padding:14px 0;}
  .footer-col h4{border-bottom:none;padding-bottom:0;}
  .footer-col-chevron{display:block;width:18px;height:18px;flex:none;transition:transform .2s ease;}
  .footer-col.is-open .footer-col-chevron{transform:rotate(180deg);}
  .footer-col a{display:none;padding:10px 0;}
  .footer-col.is-open a{display:block;}
  .footer-col.is-open a:first-of-type{margin-top:2px;}
  .footer-col.is-open > a:last-of-type{margin-bottom:12px;}
}
.footer-newsletter{
  background:var(--cream);border-radius:22px;padding:22px;align-self:start;
}
.footer-newsletter h4{
  display:flex;align-items:center;gap:6px;font-size:15.5px;font-weight:800;margin-bottom:8px;border-bottom:none;padding-bottom:0;
}
.footer-newsletter h4 svg{width:18px;height:18px;color:var(--yolk-deep);}
.footer-newsletter p{font-size:13.5px;color:var(--ink-soft);margin-bottom:14px;}
.footer-newsletter form{display:flex;gap:8px;}
.footer-newsletter input{
  flex:1;min-width:0;height:44px;padding:0 14px;border-radius:12px;border:1px solid var(--line-strong);
  background:var(--white);font-size:13.5px;font-family:inherit;
}
.footer-newsletter input:focus{outline:none;border-color:var(--ink);}
.footer-newsletter button{
  flex:none;width:44px;height:44px;border-radius:12px;border:none;background:var(--ink);color:var(--yolk);
  display:grid;place-items:center;cursor:pointer;transition:transform .15s ease;
}
.footer-newsletter button:hover{transform:scale(1.05);}
.footer-newsletter button svg{width:18px;height:18px;}
.footer-newsletter-msg{font-size:13px;font-weight:700;color:#1f8a4c;margin-top:10px;}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  border-top:1px solid rgba(22,19,15,.15);margin-top:36px;padding-top:22px;font-size:13.5px;font-weight:600;color:var(--ink-2);
}
.footer-bottom-info{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.footer-social{display:flex;gap:10px;}
.footer-social .social-btn{background:var(--white);border-color:rgba(22,19,15,.15);color:var(--ink);}
.footer-social .social-btn:hover{background:var(--ink);color:var(--yolk);border-color:var(--ink);}

/* =========================================================
   modal / toast (shared with admin)
   ========================================================= */
.modal-overlay{
  position:fixed;inset:0;background:rgba(22,19,15,.55);
  display:flex;align-items:center;justify-content:center;padding:20px;z-index:1000;animation:fadeIn .15s ease;
}
@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}
.modal-box{
  background:var(--white);border-radius:24px;padding:32px;max-width:380px;width:100%;
  text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.25);animation:popIn .18s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn{from{transform:scale(.9);opacity:0;}to{transform:scale(1);opacity:1;}}
.modal-icon{font-size:38px;margin-bottom:6px;}
.modal-box h3{margin:0 0 10px;font-size:19px;}
.modal-box p{margin:0 0 24px;color:var(--ink-soft);font-size:14.5px;line-height:1.6;}
.modal-actions{display:flex;gap:12px;justify-content:center;}
.modal-actions .btn{flex:1;}
.toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%);
  background:var(--ink);color:var(--white);padding:14px 24px;border-radius:14px;
  font-size:14px;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.25);z-index:1100;animation:toastIn .2s ease;
}
@keyframes toastIn{from{transform:translate(-50%,10px);opacity:0;}to{transform:translate(-50%,0);opacity:1;}}
.toast.is-error{background:var(--danger);}

/* =========================================================
   admin
   ========================================================= */
.admin-login{
  min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 16px;
  background:radial-gradient(1200px 600px at 50% -10%,#FFF3C9 0%,var(--surface) 55%,var(--surface) 100%);
}
.admin-login-card{
  width:100%;max-width:420px;padding:36px 32px;background:var(--white);border:1px solid var(--line);
  border-radius:28px;text-align:center;box-shadow:0 24px 48px -16px rgba(22,19,15,.18);
}
.admin-login-card form{text-align:right;}
.admin-login-logo{height:48px;width:auto;margin:0 auto 20px;}
.admin-login-head{margin-bottom:24px;}
.admin-login h1{margin:0 0 6px;font-size:23px;font-weight:800;}
.admin-login-sub{margin:0;color:var(--ink-soft);font-size:14.5px;line-height:1.6;}
.admin-login-icon{
  width:52px;height:52px;border-radius:16px;background:var(--yolk);color:var(--ink);
  display:grid;place-items:center;margin:0 auto 14px;
}
.admin-login-icon svg{width:24px;height:24px;}
.admin-login #loginSubmitBtn .btn-label,
.admin-login #enrollConfirmBtn .btn-label,
.admin-login #challengeConfirmBtn .btn-label{display:inline-flex;align-items:center;justify-content:center;gap:8px;}
.admin-login-back{display:block;width:100%;text-align:center;margin-top:14px;font-size:13.5px;color:var(--ink-soft);}
.admin-login-remember{margin:-6px 0 18px;font-size:14px;color:var(--ink-soft);}

.totp-qr{
  display:grid;place-items:center;width:188px;height:188px;margin:0 auto 16px;padding:10px;
  background:var(--white);border:1px solid var(--line);border-radius:18px;
}
.totp-qr img{width:100%;height:100%;}
.totp-qr.is-loading::after{content:"";width:28px;height:28px;border-radius:999px;border:3px solid var(--line);border-top-color:var(--ink);animation:spin .8s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
.totp-manual{text-align:right;margin-bottom:18px;font-size:13.5px;color:var(--ink-soft);}
.totp-manual summary{cursor:pointer;color:var(--ink);font-weight:700;margin-bottom:8px;}
.totp-secret{
  display:block;direction:ltr;text-align:center;word-break:break-all;background:var(--surface);
  border:1px dashed var(--line-strong);border-radius:10px;padding:10px 12px;font-size:13px;letter-spacing:1px;
}
.otp-field input{
  text-align:center;font-size:26px;font-weight:800;letter-spacing:10px;padding-inline-start:18px;
}

.admin-app{min-height:100vh;background:var(--surface);}
.admin-bar{position:sticky;top:0;z-index:50;background:var(--white);border-bottom:1px solid var(--line);}
.admin-bar-inner{max-width:1240px;margin:0 auto;padding:10px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:12px;}
.admin-brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:18px;}
.admin-brand img{height:40px;width:auto;}
.admin-brand span{padding-inline-start:12px;border-inline-start:1px solid var(--line-strong);}
.admin-bar-actions{display:flex;gap:8px;}
.admin-shell{max-width:1240px;margin:0 auto;padding:22px var(--gutter) 64px;}

/* flex-wrap بدل التمرير الأفقي المخفي — صار عدد التبويبات 11، والتمرير بدون أي
   مؤشر بصري كان يخفي تبويبات كاملة (مثل "أخطاء الموقع"/"روابط الهيدر") بدون ما
   المالك يعرف إنها موجودة أصلاً إلا لو صدفة سحب يمين. اللف لعدة أسطر يخلي كل
   تبويب ظاهر دايماً، بأي عرض شاشة. */
.admin-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:6px;margin-bottom:24px;background:var(--white);border:1px solid var(--line);border-radius:18px;}
.admin-tab{
  display:inline-flex;align-items:center;gap:8px;flex:none;white-space:nowrap;padding:11px 18px;border:none;background:none;
  border-radius:13px;font:inherit;font-weight:700;font-size:15px;color:var(--ink-soft);cursor:pointer;
  transition:background .15s ease,color .15s ease;
}
.admin-tab svg{width:19px;height:19px;flex:none;}
.admin-tab:hover{background:var(--surface);color:var(--ink);}
.admin-tab.active{background:var(--ink);color:var(--white);}
.admin-panel[hidden]{display:none;}

.admin-section-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 12px;font-size:17px;font-weight:800;}
.admin-section-title small{font-size:13px;font-weight:600;color:var(--muted);}
.stats-row{display:grid;grid-template-columns:minmax(0,1fr);gap:0 24px;margin-bottom:6px;}
.stats-block{margin-bottom:22px;}
@media (min-width:1100px){.stats-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}}
.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.stat-card{display:flex;flex-direction:column;gap:4px;padding:16px 18px;background:var(--white);border:1px solid var(--line);border-radius:18px;}
.stat-card .label{color:var(--ink-soft);font-size:14px;font-weight:700;}
.stat-card .num{font-family:var(--font-display);font-size:30px;font-weight:800;line-height:1.1;}
.stat-profit{background:var(--yolk);border-color:var(--yolk);}
.stat-profit .label{color:var(--ink-2);}

.admin-subheading{font-family:var(--font-display);font-size:18px;font-weight:800;margin:28px 0 10px;}
.admin-subheading:first-of-type{margin-top:4px;}

/* شريط بسيط (CSS بحت، بدون canvas) لعدد الزوار اليومي بتحليلات الأدمن.
   ملاحظة: ارتفاع العمود يُحسب ويُكتب بالبكسل من JS (مو نسبة %) — نسبة ارتفاع
   متداخلة بعنصر flex (ارتفاع % داخل عنصر ارتفاعه % من أبوه) ما ينحل صح بكل
   المتصفحات، فحتى لو ظاهريًا يبين منطقي بالكود يطلع فعليًا ارتفاع شبه صفر. */
.traffic-chart{display:flex;align-items:flex-end;gap:4px;height:140px;padding:18px;overflow-x:auto;}
.traffic-bar{flex:1 0 18px;min-width:18px;display:flex;flex-direction:column;align-items:center;gap:4px;}
.traffic-bar-track{width:100%;height:90px;display:flex;align-items:flex-end;justify-content:center;}
.traffic-bar-fill{width:100%;max-width:26px;background:var(--yolk);border-radius:4px 4px 0 0;min-height:2px;}
.traffic-bar-label{font-size:10px;color:var(--ink-soft);white-space:nowrap;}

.performance-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;}
@media (min-width:860px){.performance-row{grid-template-columns:minmax(0,260px) minmax(0,1fr);}}
.top-seller-card{justify-content:center;}
.top-seller-card .num{font-size:19px;line-height:1.3;}
.sales-chart-card{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:16px 18px 10px;}
.sales-chart{display:flex;align-items:flex-end;gap:6px;height:120px;}
.sales-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1 1 0;height:100%;gap:6px;min-width:0;}
.sales-bar-fill{width:100%;max-width:22px;background:var(--yolk);border-radius:4px 4px 0 0;transition:height .2s ease;}
.sales-bar-label{font-size:9.5px;color:var(--muted);white-space:nowrap;}
.sales-bar-fill.h-0{height:0;}
.sales-bar-fill.h-5{height:5%;}
.sales-bar-fill.h-10{height:10%;}
.sales-bar-fill.h-15{height:15%;}
.sales-bar-fill.h-20{height:20%;}
.sales-bar-fill.h-25{height:25%;}
.sales-bar-fill.h-30{height:30%;}
.sales-bar-fill.h-35{height:35%;}
.sales-bar-fill.h-40{height:40%;}
.sales-bar-fill.h-45{height:45%;}
.sales-bar-fill.h-50{height:50%;}
.sales-bar-fill.h-55{height:55%;}
.sales-bar-fill.h-60{height:60%;}
.sales-bar-fill.h-65{height:65%;}
.sales-bar-fill.h-70{height:70%;}
.sales-bar-fill.h-75{height:75%;}
.sales-bar-fill.h-80{height:80%;}
.sales-bar-fill.h-85{height:85%;}
.sales-bar-fill.h-90{height:90%;}
.sales-bar-fill.h-95{height:95%;}
.sales-bar-fill.h-100{height:100%;}
@media (max-width:640px){.sales-bar-label{display:none;}}

.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
.admin-toolbar-center{justify-content:center;margin:0;}
.wheel-spin-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;}
.admin-refresh-btn.is-spinning svg{animation:spin .6s linear;}
/* زر التحديث بالهيدر: نص + أيقونة بالشاشات الواسعة، وأيقونة فقط بالجوال —
   بدون هذا، الزر الثالث يعصر شعار "لوحة التحكم" لين يختفي تمامًا عند 375px. */
@media (max-width:640px){
  #reloadAdminBtn span,.admin-bar-back span{display:none;}
  #reloadAdminBtn,.admin-bar-back{min-width:44px;min-height:44px;padding:0;justify-content:center;flex:0 0 auto;}
  /* "تسجيل خروج" يبقى بنصّه عمدًا: ضغطة غلط عليه تكلّف تسجيل دخول كامل مع رمز
     المصادقة، بعكس الاثنين فوق. وهذا يكفي عشان الشعار يرجع لعرضه الطبيعي. */
  .admin-brand{flex:0 0 auto;}
}
.admin-note{color:var(--ink-soft);font-size:14px;margin:0;max-width:52ch;}
.admin-search{position:relative;flex:1 1 280px;max-width:440px;}
.admin-search input{width:100%;height:46px;padding:0 46px 0 18px;border-radius:999px;border:1.5px solid var(--line);background:var(--white);font:inherit;font-size:15px;}
.admin-search input:focus{outline:none;border-color:var(--ink);}
.admin-search svg{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:19px;height:19px;color:var(--muted);pointer-events:none;}
.admin-filters{display:flex;gap:6px;flex-wrap:wrap;}
.admin-filter{height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--white);font:inherit;font-weight:700;font-size:14px;color:var(--ink-soft);cursor:pointer;white-space:nowrap;transition:background .15s ease,color .15s ease,border-color .15s ease;}
.admin-filter:hover{border-color:var(--ink);color:var(--ink);}
.admin-filter.active{background:var(--ink);border-color:var(--ink);color:var(--white);}

.bulk-bar{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  background:var(--yolk-soft);border:1px solid var(--yolk);border-radius:14px;
  padding:12px 16px;margin-bottom:14px;
}
.bulk-bar #ordersBulkCount{font-weight:800;color:var(--ink);white-space:nowrap;}
.bulk-bar .select-pill{height:40px;}

.admin-card{background:var(--white);border:1px solid var(--line);border-radius:20px;overflow:hidden;margin-bottom:20px;}
.admin-card-narrow{max-width:640px;}
.table-scroll{overflow-x:auto;}
.admin-table{width:100%;border-collapse:collapse;}
.admin-table th{padding:12px 16px;background:var(--surface);color:var(--ink-soft);font-weight:800;font-size:13px;text-align:right;white-space:nowrap;}
.admin-table td{padding:14px 16px;text-align:right;font-size:14px;border-top:1px solid var(--line);vertical-align:middle;}
.admin-table tbody tr:hover{background:#FCFBF8;}
.cell-main{font-weight:800;font-size:14.5px;}
.cell-sub{margin-top:2px;color:var(--muted);font-size:12.5px;font-weight:600;}
.cell-sub-inline{color:var(--muted);font-size:12.5px;}
.price-cell{font-family:var(--font-display);font-weight:800;white-space:nowrap;}
.items-cell{max-width:260px;color:var(--ink-soft);font-size:13px;line-height:1.6;}
.area-chip{display:inline-block;margin-top:6px;padding:2px 10px;border-radius:999px;background:var(--yolk-soft);font-size:12px;font-weight:800;}
.product-cell{display:flex;align-items:center;gap:12px;min-width:220px;}
.admin-thumb{width:48px;height:48px;border-radius:12px;object-fit:contain;background:var(--thumb);padding:3px;flex:none;}
.admin-thumb.is-empty{display:block;}

.status-select{height:38px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font:inherit;font-weight:700;font-size:13px;color:var(--ink);cursor:pointer;}
.status-select[data-status="قيد المراجعة"],.status-select[data-pstatus="upcoming"]{background:#FFF3C7;border-color:#F2D675;color:#6B4E00;}
.status-select[data-status="مؤكد"],.status-select[data-pstatus="active"]{background:#E3F6EA;border-color:#B6E2C6;color:#17653A;}
.status-select[data-status="تم التوصيل"]{background:#E1EEFB;border-color:#B5D3F2;color:#1F4E8C;}
.status-select[data-status="ملغي"],.status-select[data-pstatus="hidden"]{background:#F1F0EE;border-color:var(--line-strong);color:var(--ink-soft);}
.stock-input{width:78px;height:38px;padding:0 10px;border-radius:10px;border:1.5px solid var(--line);background:var(--white);font:inherit;font-weight:700;font-size:14px;text-align:center;}
.stock-input:focus{outline:none;border-color:var(--ink);}
.stock-input.is-low{background:#FFF3C7;border-color:#F2D675;}
.stock-input.is-out{background:#FDECEC;border-color:#F3B8B8;color:#B3261E;}
.cat-name-input{width:100%;max-width:340px;text-align:right;}

.row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
.action-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 14px;border-radius:10px;
  font:inherit;font-weight:700;font-size:13px;border:1px solid transparent;cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.action-btn.edit{background:var(--surface);color:var(--ink);border-color:var(--line);}
.action-btn.edit:hover{background:var(--white);border-color:var(--ink-soft);}
.action-btn.delete{background:transparent;color:var(--beak-deep);border-color:rgba(207,75,30,.3);}
.action-btn.delete:hover{background:rgba(207,75,30,.08);}
.action-btn.whatsapp{background:var(--whatsapp);color:var(--white);}
.action-btn.whatsapp:hover{background:#1fb857;}
.action-btn.receipt{background:var(--yolk);color:var(--ink);border-color:transparent;}
.action-btn.receipt:hover{filter:brightness(.96);}
.action-btn.notify{background:var(--yolk);color:var(--ink);border-color:transparent;}
.action-btn.notify:hover{filter:brightness(.96);}

.switch{position:relative;display:inline-block;width:44px;height:26px;}
.switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;}
.switch-ui{position:absolute;inset:0;border-radius:999px;background:var(--line-strong);transition:background .15s ease;pointer-events:none;}
.switch-ui::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(22,19,15,.3);transition:transform .15s ease;}
.switch input:checked+.switch-ui{background:var(--yolk);}
.switch input:checked+.switch-ui::after{transform:translateX(-18px);}
.switch input:focus-visible+.switch-ui{outline:2px solid var(--ink);outline-offset:2px;}

.inline-save-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.inline-save-btn{flex:none;height:30px;padding:0 12px;border-radius:9px;border:none;background:#1F9D55;color:#fff;font-weight:700;font-size:12.5px;cursor:pointer;transition:filter .15s ease;}
.inline-save-btn:hover{filter:brightness(.95);}

.admin-card.form-card{padding:24px;}
.form-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0 16px;}
.form-grid .field{margin-bottom:16px;}
.form-grid .span-2{grid-column:span 2;}
.form-grid .span-3{grid-column:span 3;}
.form-grid .span-6{grid-column:span 6;}
.form-actions{display:flex;gap:10px;margin-top:4px;}
.admin-inline-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;max-width:640px;margin-bottom:18px;}
.admin-inline-form .field{flex:1 1 260px;margin:0;}
.admin-inline-form .form-error{flex-basis:100%;margin:0;}
.admin-empty{margin:0;padding:26px;text-align:center;color:var(--muted);font-weight:600;}
.admin-error{padding:20px;color:var(--beak-deep);}
.modal-wide{max-width:680px;width:100%;text-align:right;max-height:90vh;overflow-y:auto;}
.modal-wide.modal-product{max-width:940px;}
.modal-product .product-form-layout{align-items:flex-start;}
.modal-product .admin-preview-panel{position:static;}
.modal-wide h3{margin:0 0 18px;text-align:center;}
.modal-sku{margin:-10px 0 18px !important;text-align:center;font-family:monospace;font-weight:700;font-size:13px !important;color:var(--muted) !important;}
.field .check-line{display:flex;align-items:center;gap:10px;margin:0;cursor:pointer;}
.field .check-line input{width:20px;height:20px;padding:0;flex:none;accent-color:var(--ink);}

.product-form-layout{display:flex;gap:28px;align-items:flex-start;}
.product-form-layout>form{flex:1;min-width:0;}
.admin-preview-panel{width:230px;flex:none;position:sticky;top:16px;}
.admin-preview-panel h3{font-size:13.5px;font-weight:800;color:var(--muted);margin-bottom:10px;}
.admin-preview-card{pointer-events:none;}
.admin-preview-note{margin-top:10px;font-size:12px;color:var(--muted);line-height:1.6;}

.admin-preview-hero-wrap{margin-top:24px;}
.admin-preview-hero-wrap h3{font-size:13.5px;font-weight:800;color:var(--muted);margin-bottom:10px;}
.admin-preview-hero{border-radius:20px;pointer-events:none;}
.modal-wide.modal-hero{max-width:1040px;}

.admin-preview-header{position:static;border-radius:16px;border:1px solid var(--line);pointer-events:none;backdrop-filter:none;-webkit-backdrop-filter:none;}
.admin-preview-header .header-inner{height:auto;padding:14px 0;flex-wrap:wrap;}
/* الهيدر الحقيقي يخفي .main-nav تحت 1024px (يبدّلها بقائمة الهامبرغر) — المعاينة هدفها
   تبين ترتيب الروابط نفسه دايماً، بغض النظر عن عرض نافذة لوحة التحكم عند المالك. */
.admin-preview-header .main-nav{display:flex !important;}
.admin-preview-draft-link{outline:2px dashed var(--ink-soft);outline-offset:2px;}

@media (max-width:900px){
  .admin-table thead{display:none;}
  .admin-table,.admin-table tbody,.admin-table tr,.admin-table td{display:block;width:100%;}
  .admin-table tr{padding:14px 16px;border-top:1px solid var(--line);}
  .admin-table tr:first-child{border-top:none;}
  .admin-table td{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 0;border:none;text-align:end;}
  .admin-table td::before{content:attr(data-label);flex:none;color:var(--muted);font-weight:700;font-size:12.5px;}
  .admin-table td[data-label=""]::before{display:none;}
  .admin-table td:first-child{padding-bottom:10px;margin-bottom:4px;border-bottom:1px dashed var(--line-strong);text-align:start;}
  .admin-table td:first-child::before{display:none;}
  .admin-table td[data-label=""]{padding-top:12px;}
  .items-cell{max-width:none;}
  .row-actions{width:100%;}
  .row-actions .action-btn{flex:1;}
  .product-cell{min-width:0;}
  .cat-name-input{max-width:none;}
  .product-form-layout{flex-direction:column;}
  .admin-preview-panel{width:100%;position:static;}
  .admin-preview-card{max-width:220px;}
}
@media (min-width:640px) and (max-width:900px){
  .admin-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;}
  .admin-table tr{border:1px solid var(--line);border-radius:16px;}
  .admin-table tr:first-child{border-top:1px solid var(--line);}
}
@media (max-width:767px){
  .admin-shell{padding-top:16px;}
  .admin-brand{font-size:16px;}
  .admin-brand span{display:none;}
  .admin-stats{gap:10px;}
  .stat-card{padding:14px 12px;}
  .stat-card .num{font-size:21px;}
  .stat-card .label{font-size:12.5px;}
  .admin-toolbar{flex-direction:column;align-items:stretch;}
  .admin-search{max-width:none;flex-basis:auto;}
  .admin-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;}
  .admin-filters::-webkit-scrollbar{display:none;}
  .admin-card.form-card{padding:18px;}
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .form-grid .span-2{grid-column:span 1;}
  .form-grid .span-3,.form-grid .span-6{grid-column:span 2;}
  .form-grid .span-2:nth-child(5){grid-column:span 2;}
  .admin-login{padding:20px 16px;}
  .admin-login-card{padding:28px 22px;}
  .totp-qr{width:160px;height:160px;}
  .otp-field input{font-size:22px;letter-spacing:8px;}
}

/* =========================================================
   small helpers
   ========================================================= */
.muted{color:var(--muted);font-weight:700;}
.ltr-value{direction:ltr;text-align:right;}
.cart-continue{margin-top:16px;}
.review-title{font-size:15px;font-weight:800;margin-bottom:10px;}
.track-result{position:static;}
.track-items{margin:14px 0;}
.contact-ico.track{background:var(--ink);}
.skeleton-square{aspect-ratio:1;}
.skeleton-block{aspect-ratio:auto;height:220px;}

/* =========================================================
   home: feature strip + instagram banner
   ========================================================= */
.feature-bar{
  direction:ltr;overflow:hidden;background:var(--tile);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent);
}
.feature-track{display:flex;width:max-content;animation:featureScroll 32s linear infinite;}
.feature-bar:hover .feature-track{animation-play-state:paused;}
@keyframes featureScroll{to{transform:translateX(-50%);}}
.feature-strip{list-style:none;margin:0;padding:0;display:flex;flex:none;direction:rtl;}
.feature-strip li{
  display:flex;align-items:center;justify-content:center;gap:12px;flex:none;min-width:330px;padding:6px 28px;
  font-weight:700;font-size:15px;white-space:nowrap;border-inline-start:1px solid var(--line-strong);
}
.feature-strip svg{width:34px;height:34px;flex:none;fill:var(--ink);}
.feature-strip .fs-dot{fill:var(--yolk);stroke:var(--ink);stroke-width:1.3;}
.feature-strip .fs-cut,.feature-strip .fs-handle{fill:none;stroke:var(--yolk);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.feature-strip .fs-handle{stroke:var(--ink);stroke-width:2.2;}
@media (prefers-reduced-motion:reduce){
  .feature-track{animation:none;width:auto;}
  .feature-strip[aria-hidden="true"]{display:none;}
  .feature-strip{flex-wrap:wrap;justify-content:center;width:100%;}
  .feature-bar{-webkit-mask-image:none;mask-image:none;direction:rtl;}
}
.promo-banner{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;
  border-radius:24px;min-height:clamp(150px,17vw,210px);padding:clamp(20px,3vw,34px) clamp(22px,4vw,56px);
  background:linear-gradient(90deg,#15437B 0%,#0B2D5A 45%,#061B39 100%);color:#fff;
}
.promo-copy{position:relative;z-index:1;}
.promo-copy h2{font-size:clamp(22px,3vw,40px);font-weight:800;line-height:1.2;margin-bottom:10px;}
.promo-copy h2 em{font-style:normal;color:var(--yolk);}
.promo-copy p{color:rgba(255,255,255,.85);font-size:clamp(13px,1.4vw,17px);margin-bottom:18px;}
.promo-copy .btn{height:46px;padding:0 20px;font-size:15px;gap:8px;}
.promo-copy .btn svg:first-child{width:18px;height:18px;}
.promo-art{flex:none;width:auto;height:clamp(150px,19vw,230px);margin-block:-18px;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.35));}
@media (max-width:767px){
  .feature-bar{padding:12px 0;}
  .feature-strip li{min-width:260px;font-size:14px;padding:4px 20px;}
  .feature-strip svg{width:30px;height:30px;}
  .promo-banner{border-radius:20px;min-height:190px;padding:20px 16px;}
  .promo-copy{max-width:60%;}
  .promo-copy h2{font-size:22px;}
  .promo-copy p{font-size:13px;margin-bottom:14px;}
  .promo-copy .btn{height:42px;padding:0 14px;font-size:14px;gap:6px;}
  .promo-art{height:130px;margin-block:0;}
}

/* desktop: the filter panel becomes a sticky sidebar that stays in view while browsing */
@media (min-width:1024px){
  .shop-layout{grid-template-columns:272px minmax(0,1fr);gap:26px;align-items:start;}
  .shop-layout .filter-overlay,
  .shop-layout .filter-overlay[hidden]{
    display:block !important;position:sticky;inset:auto;top:calc(var(--header-h) + 16px);
    background:none;-webkit-backdrop-filter:none;backdrop-filter:none;z-index:1;max-height:calc(100vh - var(--header-h) - 32px);overflow-y:auto;scrollbar-width:thin;
  }
  .filter-panel{position:static;display:block;width:auto;height:auto;border-radius:22px;border:1px solid var(--line);box-shadow:none;animation:none;}
  .filter-panel-head{padding:18px 20px;}
  .filter-panel-body{padding:20px;overflow:visible;}
  .filter-close,.filter-panel-foot,.filter-btn,.chips{display:none;}
  .shop-main .product-grid{grid-template-columns:repeat(3,1fr);}
  .shop-main .product-grid.is-list{grid-template-columns:1fr;}
}

/* page header: a soft yellow card so the title stands out from the page */
.page-head .wrap{position:relative;isolation:isolate;padding-block:22px 24px;padding-inline:calc(var(--gutter) + 26px);}
.page-head .wrap::before{
  content:"";position:absolute;inset:0 var(--gutter);z-index:-1;border-radius:24px;
  background:radial-gradient(circle at 10% 15%,rgba(255,210,43,.5) 0,rgba(255,210,43,0) 42%),var(--yolk-soft);
}
.page-head h1::after{content:"";display:block;width:56px;height:5px;border-radius:5px;background:var(--yolk);margin-top:10px;}
.page-head .back-btn{background:var(--white);border-color:transparent;}
.page-head:not(:has(h1)) .wrap{padding-block:0 4px;padding-inline:var(--gutter);}
.page-head:not(:has(h1)) .wrap::before{display:none;}
@media (max-width:640px){
  .page-head{padding-top:14px;}
  .page-head .wrap{padding-block:16px 18px;padding-inline:calc(var(--gutter) + 16px);}
  .page-head .wrap::before{border-radius:20px;}
  .page-head h1::after{width:44px;height:4px;margin-top:8px;}
  .page-head p{font-size:15px;}
}

/* contact: anonymous suggestion box (replaces the duck art in the yellow panel) */
.contact-art{gap:18px;justify-content:flex-start;}
.suggest-form textarea:focus{box-shadow:0 0 0 4px var(--yolk-soft);}
.suggest-form,.suggest-done{display:flex;flex-direction:column;gap:10px;}
.suggest-form[hidden],.suggest-done[hidden]{display:none;}
.suggest-form textarea{
  width:100%;min-height:140px;resize:vertical;border:2px solid var(--line-strong);border-radius:16px;background:var(--white);
  padding:14px 16px;font:inherit;font-size:16px;line-height:1.7;color:var(--ink);
  transition:border-color .15s ease,box-shadow .15s ease;
}
.suggest-form textarea::placeholder{color:var(--muted);}
.suggest-form textarea:focus{outline:none;border-color:var(--ink);}
.suggest-hp{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.suggest-meta{display:flex;justify-content:flex-start;gap:12px;align-items:center;flex-wrap:wrap;font-size:13.5px;font-weight:600;color:var(--muted);}
.suggest-count{direction:ltr;opacity:.75;}
.suggest-error{margin:0;background:#FDECEC;color:#B3261E;border-radius:12px;padding:10px 14px;font-weight:700;font-size:14px;}
.suggest-form .btn{width:100%;height:50px;}
.suggest-done{align-items:center;text-align:center;padding:28px 12px;}
.suggest-done svg{width:52px;height:52px;color:#1F9D55;}
.suggest-done h3{font-size:20px;font-weight:800;}
.suggest-done p{color:var(--ink-soft);margin:0;}

.admin-badge{display:inline-block;min-width:20px;padding:0 6px;margin-inline-start:6px;border-radius:999px;background:var(--beak);color:#fff;font-size:12px;font-weight:800;line-height:20px;text-align:center;}
.suggestion-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:560px;}
tr.is-unread .suggestion-text{font-weight:700;}
tr.is-read{opacity:.65;}
tr.is-hidden-row{opacity:.6;}

/* phones/tablets: back button alone on the start side, title + subtitle stacked beside it */
@media (max-width:1023px){
  .page-head:has(h1) .wrap{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:center;}
  .page-head:has(h1) .page-head-row{display:contents;}
  .page-head:has(h1) .back-btn{grid-column:1;grid-row:1 / span 2;align-self:center;}
  .page-head:has(h1) h1{grid-column:2;grid-row:1;}
  .page-head:has(h1) p{grid-column:2;grid-row:2;margin-top:8px;}
  .page-head:has(h1):not(:has(p)) .back-btn{grid-row:1;}
}
.contact-list .contact-row{flex:1;}
.admin-panel [id$="Card"]{scroll-margin-top:84px;}

/* admin: product image upload */
.field .field-label{display:block;margin-bottom:8px;font-weight:700;font-size:14.5px;color:var(--ink-2);}
.image-main{display:flex;gap:14px;align-items:center;}
.image-box{width:110px;height:110px;flex:none;position:relative;overflow:hidden;border-radius:16px;background:var(--thumb);border:2px dashed var(--line-strong);}
.image-box img{position:absolute;top:6px;right:6px;bottom:6px;left:6px;width:auto;height:auto;max-width:calc(100% - 12px);max-height:calc(100% - 12px);margin:auto;object-fit:contain;}
.image-empty{color:var(--muted);font-size:13px;font-weight:700;}
.image-side{flex:1;min-width:0;}
.image-btns{display:flex;gap:8px;flex-wrap:wrap;}
.image-clear{color:var(--beak-deep);border-color:rgba(207,75,30,.3);}
.image-hint{margin:8px 0 0;color:var(--muted);font-size:13px;font-weight:600;line-height:1.6;}
.image-hint.is-error{color:#B3261E;}
.image-gallery{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px;}
.gallery-item{position:relative;width:72px;height:72px;overflow:hidden;border-radius:12px;background:var(--thumb);}
.gallery-item img{width:100%;height:100%;object-fit:contain;padding:4px;}
.gallery-remove{position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;border:none;border-radius:50%;background:rgba(22,19,15,.8);color:#fff;font-size:15px;line-height:1;cursor:pointer;}
.waitlist-card{padding:24px;text-align:center;}
.waitlist-label{font-size:15px;color:var(--ink-soft);margin-bottom:6px;}
.waitlist-count{font-size:40px;font-weight:800;margin-bottom:18px;}
.waitlist-note{font-size:13px;color:var(--ink-soft);margin-top:14px;}
.waitlist-email{font-weight:700;}
.waitlist-status{display:inline-block;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;}
.waitlist-status.is-sent{background:var(--yolk-soft);color:var(--ink);}
.waitlist-status.is-pending{background:var(--thumb);color:var(--ink-soft);}

/* =========================================================
   spin the wheel
   ========================================================= */
@keyframes wheelFabPulse{0%,100%{box-shadow:0 10px 24px rgba(22,19,15,.3);}50%{box-shadow:0 10px 24px rgba(22,19,15,.3),0 0 0 8px rgba(255,201,51,.35);}}
.wheel-fab{
  position:fixed;inset-inline-start:18px;bottom:18px;z-index:150;
  width:60px;height:60px;border-radius:50%;border:none;background:var(--ink);color:var(--yolk);
  font-size:28px;display:grid;place-items:center;box-shadow:0 10px 24px rgba(22,19,15,.3);cursor:pointer;
  transition:transform .2s ease;animation:wheelFabPulse 2.4s ease-in-out infinite;
}
.wheel-fab:hover{transform:scale(1.08);}
@media (prefers-reduced-motion:reduce){.wheel-fab{animation:none;}}
.wheel-overlay{
  position:fixed;inset:0;background:rgba(22,19,15,.6);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  z-index:300;
}
@keyframes wheelModalIn{from{opacity:0;transform:translate(-50%,-50%) scale(.92);}to{opacity:1;transform:translate(-50%,-50%) scale(1);}}
.wheel-modal{
  position:fixed;z-index:301;top:50%;left:50%;transform:translate(-50%,-50%);
  width:min(400px,94vw);max-height:92vh;overflow-y:auto;background:var(--white);border-radius:28px;
  padding:30px 24px 24px;text-align:center;box-shadow:0 30px 70px rgba(22,19,15,.4);
  animation:wheelModalIn .35s var(--ease);
}
@media (prefers-reduced-motion:reduce){.wheel-modal{animation:none;}}
.wheel-close{
  position:absolute;top:12px;inset-inline-end:14px;border:none;background:var(--surface);color:var(--ink-soft);
  width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;z-index:2;
}
.wheel-kicker{
  display:inline-block;background:var(--yolk-soft);color:var(--ink);font-size:12px;font-weight:800;
  padding:5px 12px;border-radius:999px;margin-bottom:10px;
}
.wheel-stage h3{font-size:23px;font-weight:800;margin-bottom:6px;font-family:var(--font-display);}
.wheel-stage p{font-size:14px;color:var(--ink-soft);margin-bottom:14px;}
.wheel-wrap{position:relative;width:260px;height:260px;margin:4px auto 18px;}
.wheel-pointer{
  position:absolute;top:-4px;left:50%;transform:translateX(-50%);z-index:2;
  width:0;height:0;border-inline-start:14px solid transparent;border-inline-end:14px solid transparent;
  border-top:24px solid var(--danger);filter:drop-shadow(0 3px 0 rgba(22,19,15,.25));
}
.wheel-disc{width:100%;height:100%;display:block;border-radius:50%;box-shadow:0 14px 30px rgba(22,19,15,.3);}
.wheel-hub{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;
  width:25%;aspect-ratio:1;border-radius:50%;background:var(--white);border:5px solid var(--ink);
  display:grid;place-items:center;font-weight:800;font-size:13px;color:var(--ink);
}
#wheelEmailForm{display:flex;flex-direction:column;gap:10px;}
#wheelEmailForm input{
  height:48px;padding:0 14px;border-radius:12px;border:2px solid var(--line-strong);font-size:15px;font-family:inherit;
  text-align:center;
}
#wheelEmailForm input:focus{outline:none;border-color:var(--ink);}
#wheelEmailForm input:disabled{opacity:.6;}
.wheel-error{color:var(--danger);font-size:13px;font-weight:700;margin-top:8px;}
.wheel-terms{font-size:11px;color:var(--muted);margin:14px 0 0;line-height:1.6;}
.wheel-result-icon{font-size:52px;line-height:1;margin-bottom:6px;}
@media (max-width:767px){
  .wheel-fab{width:54px;height:54px;font-size:24px;inset-inline-start:12px;bottom:84px;}
  .wheel-wrap{width:230px;height:230px;}
}

/* =========================================================
   admin: offers tab
   ========================================================= */
.offers-group{margin-bottom:38px;}
.offers-group:last-child{margin-bottom:0;}
.offers-group-title{
  display:flex;align-items:center;gap:8px;font-size:15px;font-weight:800;
  color:var(--ink-soft);margin:0 0 12px;padding:0 2px;
}
.offers-group-icon{font-size:18px;line-height:1;}
.offers-card-title{font-size:16px;font-weight:800;padding:18px 20px 2px;}
.offers-card-sub{font-size:13px;color:var(--ink-soft);padding:0 20px 14px;}
.offers-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.offers-card-head .offers-card-title,
.offers-card-head .offers-card-sub{padding-inline-end:0;}
.offers-card-head .btn{margin:16px 20px 0 0;}
.offers-promo-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:0 20px 20px;}
.offers-promo-form .field{flex:1 1 220px;margin:0;}
.offers-promo-form-compact .field{flex:0 1 240px;}
.offers-field-narrow{flex:0 1 200px !important;}
.offers-toggle{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;white-space:nowrap;}
.offers-saved{color:#1f8a4c;font-weight:700;font-size:13px;flex-basis:100%;margin:0;}
#codeForm, #prizeForm{padding:0 20px 20px;}
.offers-status{display:inline-block;font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:999px;}
.offers-status.is-on{background:var(--yolk-soft);color:var(--ink);}
.offers-status.is-off{background:var(--thumb);color:var(--ink-soft);}
.offers-source{display:inline-block;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;white-space:nowrap;}
.offers-source.is-wheel{background:var(--yolk-soft);color:var(--ink);}
.offers-source.is-manual{background:var(--surface);color:var(--ink-soft);border:1px solid var(--line);}
.offers-table-code{font-family:monospace;font-weight:700;direction:ltr;text-align:left;}
.offers-color-field{flex:0 0 auto;}
.offers-color-field input[type="color"]{
  width:52px;height:42px;padding:3px;border-radius:10px;border:1px solid var(--line-strong);
  background:var(--white);cursor:pointer;
}
.offers-promo-form-stack{flex-direction:column;align-items:stretch;}
.offers-promo-form-stack .field{flex:none;}
.offers-wheel-card{padding-bottom:4px;}
.offers-wheel-intro{padding-top:18px;}
.offers-subsection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:6px 20px 10px;}
.offers-subsection-head-spaced{margin-top:10px;padding-top:24px;border-top:1px solid var(--line);}
.offers-subsection-title{font-size:14.5px;font-weight:800;margin:0;}
.offers-color-swatch{
  width:28px;height:28px;border-radius:8px;border:1px solid var(--line-strong);padding:0;cursor:pointer;background:none;
}

/* =========================================================
   admin: hero slider + faq
   ========================================================= */
.slide-thumb{width:64px;height:40px;border-radius:8px;object-fit:cover;background:var(--thumb);flex:none;}
.move-btn{width:32px;height:32px;border-radius:9px;border:1px solid var(--line);background:var(--white);color:var(--ink);cursor:pointer;display:inline-grid;place-items:center;}
.move-btn:hover{background:var(--surface);}
.move-btn:disabled{opacity:.35;cursor:not-allowed;}
.move-btn svg{width:16px;height:16px;}

.faq-admin-group{margin-bottom:20px;}
.faq-admin-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--line);}
.faq-admin-group-name{display:flex;align-items:center;gap:8px;flex:1 1 260px;}
.faq-admin-group-name input{width:100%;max-width:340px;}
.faq-admin-items{padding:8px 20px;}
.faq-admin-item{padding:14px 0;border-bottom:1px solid var(--line);}
.faq-admin-item:last-child{border-bottom:none;}
.faq-admin-item-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;}
.faq-admin-item-q{font-weight:800;font-size:14.5px;flex:1;}
.faq-admin-item-edit{display:none;flex-direction:column;gap:10px;margin-top:12px;}
.faq-admin-item-edit.is-open{display:flex;}
.faq-admin-item-edit textarea{min-height:90px;}
.faq-admin-item-row.is-editing .faq-admin-item-q{display:none;}
.faq-admin-add-item{padding:14px 20px;border-top:1px solid var(--line);background:var(--surface);}
.faq-admin-add-item form{display:none;flex-direction:column;gap:10px;margin-top:10px;}
.faq-admin-add-item form.is-open{display:flex;}

/* معاينة العجلة داخل لوحة التحكم: تعيد استخدام أصناف العجلة الحقيقية كما هي،
   وهذي التجاوزات فقط تفك تثبيتها كنافذة منبثقة وتخليها عنصرًا عاديًا بالصفحة.
   كلها مقيّدة بـ .wheel-modal-preview فما تمس عجلة الزوار إطلاقًا. */
.wheel-preview-pane{padding:0 20px 20px;}
.wheel-modal-preview{
  position:static;transform:none;animation:none;inset:auto;
  margin:0 auto;max-height:none;overflow:visible;
  box-shadow:0 8px 24px rgba(22,19,15,.12);border:1px solid var(--line);
  pointer-events:none;user-select:none;
}
.wheel-preview-form{display:flex;flex-direction:column;gap:10px;}
.wheel-preview-form input{
  height:48px;padding:0 14px;border-radius:12px;border:2px solid var(--line-strong);
  font-size:15px;font-family:inherit;text-align:center;color:#B3AA9D;background:var(--white);
}
.wheel-preview-form .btn{justify-content:center;}
.wheel-preview-empty{
  text-align:center;font-size:13.5px;font-weight:700;color:#B42318;
  background:#FDECEC;border-radius:12px;padding:12px 14px;margin:14px auto 0;max-width:min(400px,94%);
}

/* تبويب نصوص الواتساب: بطاقة لكل رسالة مع معاينة حيّة للناتج النهائي */
.msg-tpl{border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin:0 20px 16px;}
.msg-tpl h5{font-size:15px;font-weight:800;margin:0 0 4px;}
.msg-tpl .msg-tpl-desc{font-size:13px;color:var(--ink-soft);margin:0 0 10px;}
.msg-tpl textarea{width:100%;min-height:120px;padding:12px 14px;border:2px solid var(--line-strong);
  border-radius:12px;font-family:inherit;font-size:14.5px;line-height:1.7;resize:vertical;}
.msg-tpl textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 4px var(--yolk-soft);}
.msg-tpl-vars{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;}
.msg-tpl-var{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;background:var(--surface);
  border:1px solid var(--line);border-radius:999px;padding:3px 10px;cursor:pointer;}
.msg-tpl-var:hover{background:var(--yolk-soft);border-color:var(--yolk);}
.msg-tpl-preview{background:#E7FFDB;border:1px solid #BDE6AC;border-radius:12px;padding:12px 14px;
  font-size:14px;line-height:1.75;white-space:pre-wrap;margin:10px 0 12px;word-break:break-word;}
.msg-tpl-preview-label{font-size:12.5px;font-weight:700;color:var(--muted);margin:0 0 6px;}

/* سطر توضيحي صغير تحت حقل بالنماذج الإدارية */
.form-hint{font-size:12.5px;color:var(--muted);margin:6px 0 0;line-height:1.6;}

/* تنبيه صغير بجدول المنتجات لما التكلفة النهائية ما انكتبت بعد — الربح المعروض
   وقتها محسوب على تكلفة الشراء فقط، يعني أعلى من الحقيقة. */
.cell-sub.is-warn{color:#B42318;font-weight:700;}
