/* ═══════════ العبدلي للزجاج — تصميم المتجر ═══════════ */
:root {
  --p: #1683d8;
  --p-d: color-mix(in srgb, var(--p) 72%, #000);
  --p-dd: color-mix(in srgb, var(--p) 40%, #06121d);
  --p-l: color-mix(in srgb, var(--p) 10%, #fff);
  --p-ll: color-mix(in srgb, var(--p) 5%, #fff);
  --ink: #0f2233;
  --ink-2: #33475b;
  --muted: #687a8c;
  --line: #e2e8f0;
  --line-2: #edf1f6;
  --bg: #f3f6fa;
  --card: #fff;
  --ok: #15a34a;
  --ok-l: #e8f7ee;
  --danger: #dc2626;
  --danger-l: #fdecec;
  --warn: #d97706;
  --warn-l: #fdf3e3;
  --wa: #1fae55;
  --r: 16px;
  --r-s: 11px;
  --sh: 0 1px 2px rgba(15, 40, 70, .05), 0 6px 20px rgba(15, 40, 70, .06);
  --sh-h: 0 2px 6px rgba(15, 40, 70, .07), 0 16px 36px rgba(15, 40, 70, .12);
  --font: 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --hdr-h: 72px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.app { min-height: 60vh; outline: none; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }

/* ── شريط الإعلان */
.announce {
  background: linear-gradient(90deg, var(--p-dd), var(--p-d), var(--p-dd));
  color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: 8px 14px;
}

/* ── الهيدر */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-row { display: flex; align-items: center; gap: 18px; height: var(--hdr-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.brand img { height: 46px; width: auto; max-width: 160px; object-fit: contain; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 800; font-size: 21px; color: var(--ink); white-space: nowrap; }
.brand-tag { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { flex: 1; display: flex; position: relative; max-width: 560px; margin: 0 auto; }
.search input {
  width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg);
  padding: 0 20px 0 52px; outline: none; transition: .2s;
}
.search input:focus { border-color: var(--p); background: #fff; box-shadow: 0 0 0 4px var(--p-l); }
.search button {
  position: absolute; left: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--p); color: #fff; display: grid; place-items: center;
}
.search button .ic { width: 18px; height: 18px; }
.hdr-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink-2); transition: .15s;
}
.icon-btn:hover { background: var(--p-l); color: var(--p-d); }
.cnt {
  position: absolute; top: 3px; left: 3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
  border: 2px solid #fff;
}
.cnt:empty { display: none; }
.cart-btn { background: var(--p); color: #fff; }
.cart-btn:hover { background: var(--p-d); color: #fff; }
.catnav { border-top: 1px solid var(--line-2); }
.catnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center; }
.catnav .container::-webkit-scrollbar { display: none; }
.catnav a {
  white-space: nowrap; padding: 6px 14px; border-radius: 99px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: .15s;
}
.catnav a:hover { background: var(--p-l); color: var(--p-d); }
.catnav a.on { background: var(--p); color: #fff; }
.catnav a.hot { color: var(--danger); }
.catnav a.hot.on { background: var(--danger); color: #fff; }

/* ── الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 12px; border: 0; background: var(--p); color: #fff; font-weight: 700; font-size: 16px;
  transition: .18s; white-space: nowrap; text-align: center;
}
.btn:hover { background: var(--p-d); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn .ic { width: 20px; height: 20px; }
.btn-o { background: #fff; color: var(--p-d); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--p) 45%, #fff); }
.btn-o:hover { background: var(--p-l); }
.btn-g { background: var(--bg); color: var(--ink-2); }
.btn-g:hover { background: var(--line); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #178f45; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-s { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-xs { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.link { color: var(--p-d); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.link .ic { width: 18px; height: 18px; }

/* ── الهيرو / البنرات */
.hero { padding-top: 18px; }
.slider {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1240 / 440; min-height: 300px;
  background: var(--p-dd); box-shadow: var(--sh);
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none;
  background-size: cover; background-position: center;
}
.slide.on { opacity: 1; pointer-events: auto; }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(4, 18, 32, .72) 0%, rgba(4, 18, 32, .38) 45%, rgba(4, 18, 32, 0) 75%);
}
.slide.light::after { background: linear-gradient(270deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, 0) 80%); }
.slide-in {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; padding: 0 56px; max-width: 640px; color: #fff; gap: 14px;
}
.slide.light .slide-in { color: var(--ink); }
.slide-in h2 { font-size: clamp(26px, 3.6vw, 46px); font-weight: 800; text-wrap: balance; }
.slide-in p { font-size: clamp(15px, 1.5vw, 19px); opacity: .92; text-wrap: pretty; }
.slide-in .btn { margin-top: 8px; background: #fff; color: var(--p-dd); }
.slide-in .btn:hover { background: var(--p-l); }
.slide.light .slide-in .btn { background: var(--p); color: #fff; }
.slide.on .slide-in > * { animation: rise .65s ease both; }
.slide.on .slide-in > :nth-child(2) { animation-delay: .1s; }
.slide.on .slide-in > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .5); padding: 0; transition: .3s; }
.dots button.on { width: 28px; background: #fff; }
.sl-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .22); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: .2s;
}
.sl-nav:hover { background: rgba(255, 255, 255, .4); }
.sl-prev { right: 14px; }
.sl-next { left: 14px; }
.hero-plain {
  background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--p) 55%, #fff) 0, transparent 45%),
    linear-gradient(135deg, var(--p-dd), var(--p-d));
}

/* ── المميزات */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.feat {
  background: var(--card); border-radius: var(--r); padding: 16px; display: flex; gap: 13px; align-items: center;
  box-shadow: var(--sh);
}
.feat-ic {
  width: 48px; height: 48px; border-radius: 14px; background: var(--p-l); color: var(--p-d); display: grid; place-items: center; flex: none;
}
.feat b { display: block; font-size: 15.5px; }
.feat span { font-size: 13.5px; color: var(--muted); }

/* ── الأقسام */
.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 25px; font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat {
  background: var(--card); border-radius: var(--r); padding: 10px 10px 14px; text-align: center; box-shadow: var(--sh);
  transition: .2s; display: flex; flex-direction: column; gap: 10px;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--sh-h); }
.cat-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--p-ll); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover .cat-img img { transform: scale(1.06); }
.cat b { font-size: 15.5px; }
.cat small { color: var(--muted); font-size: 13px; display: block; margin-top: -6px; }

/* ── بطاقة المنتج */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.pcard {
  position: relative; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-h); }
.pimg { position: relative; aspect-ratio: 1; background: var(--p-ll); overflow: hidden; display: block; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.pcard:hover .pimg img { transform: scale(1.05); }
.badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.bdg { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: #fff; line-height: 1.6; }
.bdg-sale { background: var(--danger); }
.bdg-p { background: var(--p); }
.bdg-out { background: #64748b; }
.fav {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink-2); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: .15s;
}
.fav .ic { width: 19px; height: 19px; }
.fav:hover { color: var(--danger); }
.fav.on { color: var(--danger); }
.fav.on .ic { fill: currentColor; }
.pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcat { font-size: 12.5px; color: var(--muted); }
.pname { font-weight: 700; font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.pname:hover { color: var(--p-d); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price b { font-size: 18px; font-weight: 800; color: var(--p-d); }
.price s { color: var(--muted); font-size: 14px; }
.price small { color: var(--muted); font-size: 13px; }
.price .from { font-size: 13px; color: var(--muted); font-weight: 500; }
.pcard .btn { margin-top: 6px; height: 42px; font-size: 15px; }
.stock-low { font-size: 12.5px; color: var(--warn); font-weight: 700; }

/* ── قائمة المنتجات */
.page-head { padding: 26px 0 10px; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); flex-wrap: wrap; margin-bottom: 8px; }
.crumbs a:hover { color: var(--p-d); }
.crumbs .ic { width: 15px; height: 15px; }
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; padding-bottom: 20px; }
.shop > div, .two > *, .pd > *, .about > * { min-width: 0; }
.m-chips { display: none; }
.side { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; position: sticky; top: calc(var(--hdr-h) + 62px); }
.side h3 { font-size: 15px; color: var(--muted); font-weight: 700; margin: 4px 4px 8px; }
.side a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; font-weight: 500; }
.side a:hover { background: var(--bg); }
.side a.on { background: var(--p-l); color: var(--p-d); font-weight: 700; }
.side a small { color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 15px; margin-inline-end: auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; padding: 7px 15px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line);
  font-size: 14.5px; font-weight: 500; flex: none;
}
.chip.on { background: var(--p); border-color: var(--p); color: #fff; }
select.sel, .inp, textarea.inp {
  height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: #fff; padding: 0 14px; outline: none; transition: .15s; width: 100%;
}
select.sel { width: auto; padding-left: 34px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23687a8c' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center; }
textarea.inp { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.inp:focus, select.sel:focus { border-color: var(--p); box-shadow: 0 0 0 4px var(--p-l); }
.inp.bad { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-l); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--p); }
.more { display: flex; justify-content: center; margin-top: 22px; }

/* ── صفحة المنتج */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; padding: 8px 0 10px; align-items: start; }
.gallery { position: sticky; top: calc(var(--hdr-h) + 62px); }
.g-main { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--sh); }
.g-main img { width: 100%; height: 100%; object-fit: contain; background: var(--p-ll); }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.g-thumbs button { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--card); flex: none; }
.g-thumbs button.on { border-color: var(--p); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: flex; flex-direction: column; gap: 16px; }
.pd-info h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.pd-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd-price b { font-size: 32px; font-weight: 800; color: var(--p-d); }
.pd-price s { font-size: 18px; color: var(--muted); }
.pd-price small { font-size: 15px; color: var(--muted); }
.box { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.box h3 { font-size: 16px; margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 9px; }
.opt {
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 16px; font-weight: 500; transition: .15s;
  display: flex; flex-direction: column; align-items: center; line-height: 1.3; min-width: 92px;
}
.opt small { color: var(--muted); font-size: 12.5px; }
.opt:hover { border-color: var(--p); }
.opt.on { border-color: var(--p); background: var(--p-l); color: var(--p-dd); box-shadow: 0 0 0 3px var(--p-l); }
.size { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > label, .fld > .lbl { font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.fld .req { color: var(--danger); }
.fld .hint { font-size: 13px; color: var(--muted); }
.unit-inp { position: relative; }
.unit-inp .inp { padding-left: 46px; font-size: 18px; font-weight: 700; direction: ltr; text-align: right; }
.unit-inp span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.calc {
  margin-top: 12px; border-radius: 12px; background: var(--p-ll); border: 1.5px dashed color-mix(in srgb, var(--p) 35%, #fff);
  padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px;
}
.calc b { color: var(--p-dd); }
.buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buy .btn { flex: 1; min-width: 150px; }
.qty { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; height: 48px; flex: none; }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.qty button:hover { color: var(--p-d); }
.qty button .ic { width: 18px; height: 18px; }
.qty input { width: 46px; border: 0; text-align: center; font-weight: 800; font-size: 17px; outline: none; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-s { height: 38px; border-radius: 10px; }
.qty-s button { width: 34px; }
.qty-s input { width: 36px; font-size: 15px; }
.desc { white-space: pre-line; color: var(--ink-2); line-height: 1.9; }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust div { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.trust .ic { color: var(--p); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-l); color: #7c4a03; font-size: 14.5px; }
.note.info { background: var(--p-l); color: var(--p-dd); }
.note.ok { background: var(--ok-l); color: #0f5f2f; }
.note.bad { background: var(--danger-l); color: #8f1b1b; }
.note .ic { width: 20px; height: 20px; margin-top: 2px; }

/* ── السلة والطلب */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; padding-bottom: 20px; }
.summary { position: sticky; top: calc(var(--hdr-h) + 62px); display: flex; flex-direction: column; gap: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15.5px; }
.sum-row.total { font-size: 19px; font-weight: 800; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.sum-row.total b { color: var(--p-d); }
.sum-row .ok { color: var(--ok); font-weight: 700; }
.citem { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.citem:last-child { border-bottom: 0; }
.citem img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--p-ll); }
.citem h4 { font-size: 16px; font-weight: 700; }
.citem .sub { font-size: 13.5px; color: var(--muted); }
.citem-end { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.citem-end b { font-size: 16.5px; }
.rm { border: 0; background: transparent; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; font-size: 13.5px; padding: 4px; }
.rm:hover { color: var(--danger); }
.rm .ic { width: 16px; height: 16px; }
.coupon { display: flex; gap: 8px; }
.coupon .inp { height: 44px; text-transform: uppercase; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 13px; cursor: pointer; transition: .15s; background: #fff;
}
.choice label:has(input:checked) { border-color: var(--p); background: var(--p-ll); box-shadow: 0 0 0 3px var(--p-l); }
.choice input { accent-color: var(--p); width: 18px; height: 18px; margin-top: 3px; }
.choice b { display: block; }
.choice small { color: var(--muted); font-size: 13px; }
.mini-items { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow: auto; }
.mini { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.mini img { width: 50px; height: 50px; border-radius: 9px; object-fit: cover; background: var(--p-ll); flex: none; }
.mini div { flex: 1; min-width: 0; }
.mini .t { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .s { color: var(--muted); font-size: 12.5px; }
.steps { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.steps span { display: flex; align-items: center; gap: 6px; }
.steps i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--line); color: var(--ink-2); font-size: 13px; }
.steps .on { color: var(--ink); font-weight: 700; }
.steps .on i { background: var(--p); color: #fff; }
.steps hr { flex: 0 0 26px; border: 0; border-top: 2px solid var(--line); margin: 0; }

/* ── تم الطلب / التتبع */
.done { max-width: 640px; margin: 34px auto; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.done-ic { width: 92px; height: 92px; border-radius: 50%; background: var(--ok-l); color: var(--ok); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.done-ic .ic { width: 50px; height: 50px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done h1 { font-size: 30px; font-weight: 800; }
.order-no { font-size: 40px; font-weight: 800; color: var(--p-d); letter-spacing: 1px; direction: ltr; }
.done .box { width: 100%; text-align: right; }
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.tl { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ''; position: absolute; right: 16px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl i { width: 34px; height: 34px; border-radius: 50%; background: var(--line); display: grid; place-items: center; color: #fff; z-index: 1; }
.tl i .ic { width: 18px; height: 18px; }
.tl.ok i { background: var(--ok); }
.tl.ok::before { background: var(--ok); }
.tl.cur i { background: var(--p); box-shadow: 0 0 0 5px var(--p-l); }
.tl.bad i { background: var(--danger); }
.tl b { display: block; }
.tl small { color: var(--muted); }

/* ── حالة فارغة */
.empty { text-align: center; padding: 56px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-ic { width: 96px; height: 96px; border-radius: 50%; background: var(--p-l); color: var(--p); display: grid; place-items: center; }
.empty-ic .ic { width: 44px; height: 44px; }
.empty h2 { font-size: 22px; }
.empty p { color: var(--muted); }

/* ── شريط الطلب الخاص */
.cta {
  margin-top: 44px; border-radius: 24px; padding: 34px; color: #fff; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, .16) 0, transparent 40%), linear-gradient(120deg, var(--p-dd), var(--p-d));
  position: relative; overflow: hidden;
}
.cta::after { content: ''; position: absolute; width: 340px; height: 340px; left: -80px; bottom: -200px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .06); }
.cta h2 { font-size: 26px; font-weight: 800; }
.cta p { opacity: .9; margin-top: 6px; max-width: 560px; }
.cta .btn { position: relative; z-index: 1; }

/* ── من نحن / تواصل */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; padding-bottom: 20px; }
.about .desc { font-size: 17px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.ci { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 13px; background: var(--bg); }
.ci .feat-ic { width: 42px; height: 42px; border-radius: 12px; }
.ci small { display: block; color: var(--muted); font-size: 13px; }
.ci b { direction: ltr; unicode-bidi: plaintext; }
a.ci:hover { background: var(--p-l); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: .15s; }
.socials a:hover { background: var(--p); }
.box .socials a { background: var(--bg); color: var(--ink-2); }
.box .socials a:hover { background: var(--p); color: #fff; }

/* ── الفوتر */
.ftr { margin-top: 64px; background: #0b1b29; color: #c5d2de; padding: 44px 0 0; font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.ftr h4 { color: #fff; font-size: 16.5px; margin-bottom: 14px; }
.ftr .brand-name { color: #fff; }
.ftr .brand-tag { color: #8da2b5; }
.ftr p { color: #9fb1c2; margin-top: 12px; line-height: 1.8; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ftr a:hover { color: #fff; }
.ftr .ci-f { display: flex; gap: 9px; align-items: flex-start; }
.ftr .ci-f .ic { width: 18px; height: 18px; color: color-mix(in srgb, var(--p) 60%, #fff); margin-top: 3px; }
.ftr .socials { margin-top: 16px; }
.ftr-bot { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: #7f93a6; }

/* ── التنقل السفلي للموبايل */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom);
}
.bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11.5px; font-weight: 500; color: var(--muted); position: relative; }
.bnav a .ic { width: 23px; height: 23px; }
.bnav a.on { color: var(--p); font-weight: 700; }
.bnav .cnt { top: 3px; left: calc(50% - 22px); }
.wa-float {
  position: fixed; left: 18px; bottom: 22px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 174, 85, .4); transition: .2s;
}
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }

/* ── القائمة الجانبية (موبايل) */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-bg { position: absolute; inset: 0; background: rgba(6, 18, 29, .5); animation: fade .2s; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(330px, 86vw); background: #fff; overflow-y: auto; padding: 18px;
  animation: slide .25s ease; display: flex; flex-direction: column; gap: 6px;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-panel .dh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer-panel h3 { font-size: 13.5px; color: var(--muted); margin: 14px 8px 4px; }
.drawer-panel a.dl { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 11px; font-weight: 500; }
.drawer-panel a.dl:hover, .drawer-panel a.dl.on { background: var(--p-l); color: var(--p-d); }
.drawer-panel a.dl img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }

/* ── التنبيهات */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(420px, 92vw); pointer-events: none; }
.toast {
  pointer-events: auto; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  display: flex; align-items: center; gap: 12px; animation: tin .3s ease; font-weight: 500;
}
.toast .ic { width: 22px; height: 22px; color: #4ade80; }
.toast.bad .ic { color: #fca5a5; }
.toast a { margin-inline-start: auto; color: #fff; background: rgba(255, 255, 255, .15); padding: 5px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.toast.out { animation: tout .3s ease forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(-12px); } }
@keyframes tout { to { opacity: 0; transform: translateY(-12px); } }

/* ── تحميل */
.skel { background: linear-gradient(90deg, #e9eef4 0, #f5f8fb 50%, #e9eef4 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.closed-bar { background: var(--danger); color: #fff; text-align: center; padding: 10px; font-weight: 700; }
.spin { width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }


/* ── القياسات المتعددة */
.mhead, .mrow { display: grid; grid-template-columns: 28px 1fr 1fr 70px 34px; gap: 8px; align-items: center; }
.mhead { font-size: 13px; color: var(--muted); font-weight: 700; padding: 0 0 6px; text-align: center; }
.mrow { margin-bottom: 10px; }
.mrow .inp { height: 46px; padding: 0 8px; text-align: center; font-weight: 800; font-size: 17px; direction: ltr; }
.mrow .mn { width: 28px; height: 28px; border-radius: 50%; background: var(--p-l); color: var(--p-d); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.mrow .mcalc { grid-column: 2 / -1; font-size: 13px; color: var(--muted); margin-top: -4px; }
.mrow .mcalc:empty { display: none; }
.mrow .rm { justify-content: center; }
#addRow { margin-top: 2px; }

/* ── الحساب */
.icon-btn .dot { position: absolute; top: 8px; left: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.seg-t { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-t button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.seg-t button.on { background: #fff; color: var(--p-d); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.acc-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--p); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; flex: none; }
.ocard { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.ocard-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ocard-h b { font-size: 17px; }
.spill { padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--p-l); color: var(--p-d); }
.spill.st-confirmed { background: #efebfc; color: #6d4fd8; }
.spill.st-preparing { background: var(--warn-l); color: var(--warn); }
.spill.st-shipping { background: #e5f5f8; color: #0e7d93; }
.spill.st-delivered { background: var(--ok-l); color: var(--ok); }
.spill.st-cancelled { background: var(--danger-l); color: var(--danger); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ── العربون */
.paybox { display: flex; flex-direction: column; gap: 12px; }
.pay-amt { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--p-ll); border: 1.5px solid var(--p-l); }
.pay-amt b { font-size: 20px; color: var(--p-dd); }
.card-no { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 14px; color: #fff;
  background: linear-gradient(120deg, #1b2a3a, #33475b); }
.card-no small { display: block; opacity: .75; font-size: 12.5px; }
.card-no b { font-size: 19px; letter-spacing: 1.5px; }
.card-no .btn { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.rcpt { display: block; border: 2px dashed #c6d2dd; border-radius: 14px; padding: 16px; cursor: pointer; text-align: center; background: #fff; transition: .15s; }
.rcpt:hover { border-color: var(--p); background: var(--p-ll); }
.rcpt.done { border-style: solid; border-color: var(--ok); background: var(--ok-l); }
.rcpt.bad { border-color: var(--danger); background: var(--danger-l); }
.rcpt-in { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rcpt-in .ic { width: 28px; height: 28px; color: var(--p); }
.rcpt.done .rcpt-in .ic { color: var(--ok); }
.rcpt-in small { color: var(--muted); font-size: 13px; }


/* ── رمز الواتساب */
.auth-pane { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.auth-pane[hidden] { display: none !important; }
#authTabs[hidden] { display: none !important; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
button.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.otp-head { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; background: #e3f7ea; color: #0d4f27; }
.otp-head .ic { width: 30px; height: 30px; color: var(--wa); flex: none; }
.otp-head b { display: block; font-size: 16px; }
.otp-head span { font-size: 14px; }
.otp-head span b { display: inline; font-size: 14px; }
.otp-inp { height: 62px !important; font-size: 30px !important; font-weight: 800; letter-spacing: 14px; text-align: center !important; padding: 0 !important; }
.otp-inp::placeholder { color: #c9d3dd; letter-spacing: 14px; }
.otp-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.otp-foot .link { font-size: 14px; }
.verify { border: 2px solid #bfe8cf; margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }

/* ── واتساب لازم + سجل الطلبات */
.wa-must { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: #e3f7ea; color: #0d4f27; font-size: 14px; }
.wa-must .ic { width: 22px; height: 22px; color: var(--wa); flex: none; margin-top: 1px; }
.wa-must[hidden] { display: none !important; }
.otp-state { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.otp-state:empty { display: none; }
.otp-state .ic { width: 18px; height: 18px; }
.otp-state.ok { color: var(--ok); font-weight: 700; }
.otp-state.warn { color: #7c4a03; background: var(--warn-l); padding: 8px 10px; border-radius: 10px; }
.hist-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.hist-stats .box { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.hist-stats small { color: var(--muted); font-size: 13px; }
.hist-stats b { font-size: 19px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
#ordTabs .chip { cursor: pointer; }

/* ── تيليجرام */
.btn-tg { background: #229ed9; }
.btn-tg:hover { background: #1b86b9; }
.otp-head.tgh, .wa-must.tgn { background: #e6f4fb; color: #0b4a68; }
.otp-head.tgh .ic, .wa-must.tgn .ic { color: #229ed9; }
.verify.tg { border-color: #b9e0f3; }
.tg-steps { margin: 0; padding-inline-start: 22px; color: var(--ink-2); line-height: 2; font-size: 15px; }

/* ── الشاشات */
.only-m { display: none !important; }
@media (max-width: 1080px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --hdr-h: 62px; }
  .only-m { display: grid !important; }
  .only-d { display: none !important; }
  nav.only-m { display: grid !important; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .hdr-row { flex-wrap: wrap; height: auto; padding-top: 9px; padding-bottom: 10px; gap: 8px 6px; }
  .brand { margin-inline-end: auto; flex: 1 1 0; min-width: 0; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; }
  .hdr-actions { gap: 2px; }
  .brand-name { font-size: 18.5px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand img { height: 38px; }
  .search { order: 5; flex: 1 0 100%; max-width: none; }
  .search input { height: 42px; }
  .search button { width: 32px; height: 32px; }
  .slider { aspect-ratio: auto; height: 300px; border-radius: 18px; }
  .slide-in { padding: 0 24px; }
  .slide::after { background: linear-gradient(0deg, rgba(4, 18, 32, .78) 0%, rgba(4, 18, 32, .3) 70%, rgba(4, 18, 32, .1) 100%); }
  .slide-in { justify-content: flex-end; padding-bottom: 46px; }
  .sl-nav { display: none; }
  .shop { grid-template-columns: 1fr; }
  .side { display: none; }
  .m-chips { display: flex; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .pd { grid-template-columns: 1fr; gap: 18px; }
  .gallery { position: static; }
  .two { grid-template-columns: 1fr; }
  .summary { position: static; }
  .about { grid-template-columns: 1fr; }
  .wa-float { bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; left: 14px; }
  .sec { margin-top: 32px; }
  .sec-head h2 { font-size: 21px; }
}
@media (max-width: 600px) {
  .container { padding: 0 12px; }
  .mhead, .mrow { grid-template-columns: 24px 1fr 1fr 58px 30px; gap: 6px; }
  .mrow .inp { font-size: 16px; }
  .hdr .brand-tag { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pbody { padding: 10px 10px 12px; gap: 4px; }
  .pname { font-size: 14.5px; }
  .price b { font-size: 16px; }
  .pcard .btn { height: 38px; font-size: 14px; padding: 0 8px; }
  .badges { top: 7px; right: 7px; }
  .bdg { font-size: 11.5px; padding: 2px 8px; }
  .fav { width: 34px; height: 34px; top: 7px; left: 7px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .cat { padding: 7px 7px 10px; gap: 7px; }
  .cat b { font-size: 13.5px; }
  .cat small { display: none; }
  .feats { gap: 9px; }
  .feat { flex-direction: column; text-align: center; padding: 14px 10px; gap: 8px; }
  .feat span { font-size: 12.5px; }
  .form, .choice { grid-template-columns: 1fr; }
  .citem { grid-template-columns: 72px 1fr; }
  .citem img { width: 72px; height: 72px; }
  .citem-end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cta { padding: 24px; }
  .cta h2 { font-size: 21px; }
  .ftr-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 23px; }
  .pd-price b { font-size: 27px; }
  .trust { grid-template-columns: 1fr; }
  .box { padding: 15px; }
  .order-no { font-size: 34px; }
}
