/* مكتبة بنسلز — تصميم المتجر الفاتح الكلاسيكي (أسلوب متاجر الأدوات المكتبية: هيدر أبيض، بحث كبير، قائمة أقسام، أقسام بالصور، كروت منتجات)
 * يُحمّل بعد store.css: يقلب درجات slate الداكنة لفاتحة ويضيف مكوّنات التصميم الجديد (ss-*) */
:root {
  --color-slate-50: #0f172a; --color-slate-100: #1e2530; --color-slate-200: #2b3340; --color-slate-300: #3f4856;
  --color-slate-400: #5b6472; --color-slate-500: #6b7686; --color-slate-600: #94a3b8; --color-slate-700: #cfd6df;
  --color-slate-800: #e5e9ef; --color-slate-900: #ffffff; --color-slate-950: #f5f6f8;
  --ss-navy: #1f3a5f; --ss-navy-2: #2c4f7c; --ss-sun: #f5b301; --ss-sun-2: #ffc928; --ss-line: #e5e9ef; --ss-bg: #f5f6f8; --ss-ink: #1e2530; --ss-mute: #6b7686; --ss-red: #d62828;
}
body.ss { background: var(--ss-bg) !important; color: var(--ss-ink) !important; }
body.ss .text-white { color: #0f172a; }
body.ss .text-white:is([class^="bg-"], [class*=" bg-"]):not([class^="bg-slate-"], [class*=" bg-slate-"], [class^="bg-white"], [class*=" bg-white"]) { color: #fff; }
body.ss [class*="hover:text-white"]:hover { color: #0f172a; }
body.ss [class*="hover:text-white"]:is([class*="hover:bg-rose"], [class*="hover:bg-red"], [class*="hover:bg-emerald"], [class*="hover:bg-blue"], [class*="hover:bg-sky"], [class*="hover:bg-indigo"], [class*="hover:bg-amber-6"], [class*="hover:bg-amber-7"]):hover { color: #fff; }
body.ss :is([class^="text-slate-950"], [class*=" text-slate-950"], [class^="text-slate-900"], [class*=" text-slate-900"], .text-blue-950) { color: #0f172a; }
body.ss div.bg-white .text-white { color: #fff; }
body.ss :is([class^="text-amber-"], [class*=" text-amber-"]) { color: #a15c00; }
body.ss :is([class^="text-yellow-"], [class*=" text-yellow-"]) { color: #8a6100; }
body.ss :is([class^="text-orange-"], [class*=" text-orange-"]) { color: #b45309; }
body.ss :is([class^="text-lime-"], [class*=" text-lime-"]) { color: #4d7c0f; }
body.ss :is([class^="text-green-"], [class*=" text-green-"]) { color: #15803d; }
body.ss :is([class^="text-emerald-"], [class*=" text-emerald-"]) { color: #0b7a4b; }
body.ss :is([class^="text-teal-"], [class*=" text-teal-"]) { color: #0f766e; }
body.ss :is([class^="text-cyan-"], [class*=" text-cyan-"]) { color: #0e7490; }
body.ss :is([class^="text-sky-"], [class*=" text-sky-"]) { color: #0369a1; }
body.ss :is([class^="text-blue-"], [class*=" text-blue-"]):not(.text-blue-950) { color: #1d4ed8; }
body.ss :is([class^="text-indigo-"], [class*=" text-indigo-"]) { color: #4338ca; }
body.ss :is([class^="text-violet-"], [class*=" text-violet-"]) { color: #6d28d9; }
body.ss :is([class^="text-purple-"], [class*=" text-purple-"]) { color: #7e22ce; }
body.ss :is([class^="text-fuchsia-"], [class*=" text-fuchsia-"]) { color: #a21caf; }
body.ss :is([class^="text-pink-"], [class*=" text-pink-"]) { color: #be185d; }
body.ss :is([class^="text-rose-"], [class*=" text-rose-"]) { color: #be123c; }
body.ss :is([class^="text-red-"], [class*=" text-red-"]) { color: #b91c1c; }
body.ss [class*="hover:text-amber-"]:hover, body.ss .group:hover [class*="group-hover:text-amber-"] { color: #7a4400; }
body.ss [class*="hover:text-rose-"]:hover, body.ss [class*="hover:text-red-"]:hover { color: #9f1239; }
body.ss :is([class^="bg-rose-950"], [class*=" bg-rose-950"], [class^="bg-red-950"], [class*=" bg-red-950"]) { background-color: #fff1f2; }
body.ss [class*="hover:bg-rose-950"]:hover { background-color: #ffe4e6; }
body.ss :is([class^="bg-blue-900"], [class*=" bg-blue-900"]) { background-color: #e0ecfb; }
body.ss [class*="hover:bg-blue-9"]:hover, body.ss [class*="hover:bg-blue-800"]:hover { background-color: #dbeafe; }
body.ss .text-slate-950 { color: #1b1b1b !important; }
body.ss ::selection { background: var(--ss-sun); color: #1b1b1b; }

/* ---------- الشريط العلوي ---------- */
.ss-topbar { background: var(--ss-navy); color: #fff; font-size: 12.5px; }
.ss-topbar-in { max-width: 1280px; margin: 0 auto; padding: 6px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ss-topbar a { color: #fff; text-decoration: none; opacity: .92; }
.ss-topbar a:hover { opacity: 1; text-decoration: underline; }
.ss-topbar .ss-tb-links { display: flex; gap: 16px; }
/* ---------- الهيدر ---------- */
.ss-header { background: #fff; border-bottom: 1px solid var(--ss-line); position: sticky; top: 0; z-index: 40; box-shadow: 0 6px 18px -16px rgba(15,23,42,.5); }
.ss-head-in { max-width: 1280px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 22px; }
.ss-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.ss-logo img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.ss-logo b { display: block; color: var(--ss-navy); font-size: 21px; font-weight: 900; line-height: 1.15; }
.ss-logo small { display: block; color: var(--ss-mute); font-size: 12px; font-weight: 700; }
.ss-search { flex: 1; display: flex; border: 2px solid var(--ss-sun); border-radius: 999px; overflow: hidden; background: #fff; max-width: 680px; }
.ss-search select { border: 0; background: #fff8e1; padding: 0 14px; font: 700 13px 'Cairo', sans-serif; color: var(--ss-ink); outline: none; max-width: 170px; border-inline-start: 1px solid #f3e2a9; }
.ss-search input { flex: 1; min-width: 0; border: 0; padding: 11px 16px; font: 600 15px 'Cairo', sans-serif; outline: none; color: var(--ss-ink); background: #fff; }
.ss-search button { border: 0; background: var(--ss-sun); color: #1b1b1b; font: 800 15px 'Cairo', sans-serif; padding: 0 22px; cursor: pointer; }
.ss-search button:hover { background: var(--ss-sun-2); }
.ss-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ss-act { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ss-ink); padding: 6px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.ss-act:hover { background: #f3f5f8; }
.ss-act .ss-ico { font-size: 22px; line-height: 1; position: relative; }
.ss-act small { display: block; color: var(--ss-mute); font-size: 11.5px; font-weight: 600; }
.ss-act b { display: block; font-size: 14px; font-weight: 800; }
.ss-badge { position: absolute; top: -8px; right: -10px; min-width: 19px; height: 19px; border-radius: 999px; background: var(--ss-red); color: #fff; font: 800 11px/19px 'Cairo', sans-serif; text-align: center; padding: 0 5px; }
.ss-menu-btn { display: none; border: 0; background: #f3f5f8; border-radius: 12px; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }
/* ---------- شريط الأقسام ---------- */
.ss-nav { background: #fff; border-top: 1px solid var(--ss-line); }
.ss-nav-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: stretch; gap: 4px; }
.ss-allcats { position: relative; flex: 0 0 auto; }
.ss-allcats > button { height: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: var(--ss-navy); color: #fff; font: 800 14.5px 'Cairo', sans-serif; padding: 11px 18px; cursor: pointer; }
.ss-mega { position: absolute; top: 100%; right: 0; width: 290px; background: #fff; border: 1px solid var(--ss-line); border-top: 3px solid var(--ss-sun); box-shadow: 0 18px 40px -18px rgba(15,23,42,.45); display: none; z-index: 60; padding: 6px 0; }
.ss-allcats:hover .ss-mega, .ss-allcats.open .ss-mega { display: block; }
.ss-mega a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--ss-ink); text-decoration: none; font-weight: 700; font-size: 14px; border-bottom: 1px solid #f1f3f6; }
.ss-mega a:last-child { border-bottom: 0; }
.ss-mega a:hover { background: #fff8e1; color: var(--ss-navy); }
.ss-mega a small { margin-inline-start: auto; color: var(--ss-mute); font-size: 12px; }
.ss-links { display: flex; overflow-x: auto; scrollbar-width: none; }
.ss-links::-webkit-scrollbar { display: none; }
.ss-links a { display: flex; align-items: center; gap: 6px; padding: 12px 14px; color: var(--ss-ink); text-decoration: none; font-weight: 800; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.ss-links a:hover, .ss-links a.on { color: var(--ss-navy); border-bottom-color: var(--ss-sun); }
/* درج الموبايل */
.ss-drawer { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.45); display: none; }
.ss-drawer.open { display: block; }
.ss-drawer-in { position: absolute; top: 0; bottom: 0; right: 0; width: min(86vw, 330px); background: #fff; overflow-y: auto; padding: 14px 0; box-shadow: -20px 0 40px -20px rgba(15,23,42,.5); }
.ss-drawer-in h3 { margin: 4px 16px 10px; font-size: 16px; color: var(--ss-navy); }
.ss-drawer-in a { display: flex; gap: 10px; padding: 12px 18px; text-decoration: none; color: var(--ss-ink); font-weight: 700; border-bottom: 1px solid #f1f3f6; }

/* ---------- الرئيسية ---------- */
.ss-main { max-width: 1280px; width: 100%; margin: 0 auto; padding: 22px 16px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; box-sizing: border-box; }
.ss-main > *, .ss-layout > * { min-width: 0; }
body.ss { overflow-x: hidden; }
.ss-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.ss-hero-main { border-radius: 18px; background: linear-gradient(120deg, #1f3a5f 0%, #2c4f7c 60%, #3b6aa6 100%); color: #fff; padding: 34px 32px; position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ss-hero-main::after { content: '✏️📚🎨'; position: absolute; left: 22px; bottom: 10px; font-size: 64px; opacity: .22; letter-spacing: 6px; }
.ss-hero-main h1 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.35; color: #fff; }
.ss-hero-main p { margin: 0; opacity: .9; font-size: 15px; max-width: 520px; }
.ss-hero-main .ss-btn { align-self: flex-start; }
.ss-hero-side { display: grid; gap: 16px; }
.ss-promo { border-radius: 18px; padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; text-decoration: none; color: #1b1b1b; min-height: 100px; }
.ss-promo b { font-size: 18px; font-weight: 900; } .ss-promo span { font-size: 13px; font-weight: 700; opacity: .85; }
.ss-promo.is-sun { background: linear-gradient(120deg, #ffcf3f, #f5b301); }
.ss-promo.is-mint { background: linear-gradient(120deg, #d9f3e6, #b9e8d0); }
.ss-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 22px; font: 800 14.5px 'Cairo', sans-serif; text-decoration: none; cursor: pointer; }
.ss-btn.sun { background: var(--ss-sun); color: #1b1b1b; } .ss-btn.sun:hover { background: var(--ss-sun-2); }
.ss-btn.navy { background: var(--ss-navy); color: #fff; }
.ss-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ss-line); margin-bottom: 14px; }
.ss-sec-h h2 { margin: 0; font-size: 20px; font-weight: 900; color: var(--ss-navy); display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 3px solid var(--ss-sun); margin-bottom: -2px; }
.ss-sec-h a { color: var(--ss-navy-2); text-decoration: none; font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.ss-sec-h a:hover { color: #b7791f; }
.ss-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.ss-cat { background: #fff; border: 1px solid var(--ss-line); border-radius: 16px; padding: 14px 10px; text-align: center; text-decoration: none; color: var(--ss-ink); transition: transform .15s, box-shadow .2s, border-color .2s; }
.ss-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -18px rgba(15,23,42,.55); border-color: var(--ss-sun); }
.ss-cat .ss-cat-img { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; background: #fff8e1; display: grid; place-items: center; overflow: hidden; font-size: 42px; border: 3px solid #fff3c4; }
.ss-cat .ss-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.ss-cat b { display: block; font-size: 14.5px; font-weight: 800; }
.ss-cat small { color: var(--ss-mute); font-size: 12px; font-weight: 700; }
/* كروت المنتجات */
.ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ss-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ss-card { background: #fff; border: 1px solid var(--ss-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, border-color .2s; }
.ss-card:hover { box-shadow: 0 16px 30px -20px rgba(15,23,42,.5); border-color: #d6dde8; }
.ss-card .ss-img { display: block; aspect-ratio: 1 / 1; background: #fff; padding: 10px; }
.ss-card .ss-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.ss-card:hover .ss-img img { transform: scale(1.04); }
.ss-card .ss-noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; background: #f6f8fb; border-radius: 10px; }
.ss-tag { position: absolute; top: 10px; right: 10px; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 800; z-index: 2; }
.ss-tag.out { background: #fee2e2; color: #b91c1c; } .ss-tag.low { background: #fff4d6; color: #92400e; } .ss-tag.new { background: var(--ss-navy); color: #fff; }
.ss-card .ss-body { padding: 4px 12px 0; flex: 1; }
.ss-card .ss-cat-name { color: var(--ss-mute); font-size: 11.5px; font-weight: 700; }
.ss-card .ss-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; color: var(--ss-ink); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.45; }
.ss-card .ss-name:hover { color: var(--ss-navy-2); }
.ss-card .ss-price { color: var(--ss-navy); font-weight: 900; font-size: 18px; margin: 6px 0 2px; }
.ss-card .ss-price small { font-size: 12px; color: var(--ss-mute); font-weight: 700; }
.ss-card .ss-foot { padding: 10px 12px 12px; }
.ss-add { width: 100%; border: 0; border-radius: 10px; background: var(--ss-sun); color: #1b1b1b; font: 800 14px 'Cairo', sans-serif; padding: 9px 6px; cursor: pointer; display: flex; justify-content: center; gap: 6px; }
.ss-add:hover { background: var(--ss-sun-2); }
.ss-add:disabled { background: #eef1f5; color: #94a3b8; cursor: not-allowed; }
/* شريط المميزات */
.ss-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ss-feat { background: #fff; border: 1px solid var(--ss-line); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: center; }
.ss-feat span { font-size: 30px; } .ss-feat b { display: block; font-size: 14.5px; } .ss-feat small { color: var(--ss-mute); font-size: 12.5px; font-weight: 600; }
/* صفحة القسم */
.ss-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.ss-side { background: #fff; border: 1px solid var(--ss-line); border-radius: 14px; overflow: hidden; position: sticky; top: 150px; }
.ss-side h3 { margin: 0; padding: 12px 16px; background: var(--ss-navy); color: #fff; font-size: 15px; }
.ss-side a { display: flex; justify-content: space-between; padding: 10px 16px; color: var(--ss-ink); text-decoration: none; font-weight: 700; font-size: 14px; border-bottom: 1px solid #f1f3f6; }
.ss-side a.on, .ss-side a:hover { background: #fff8e1; color: var(--ss-navy); }
.ss-side a small { color: var(--ss-mute); }
.ss-crumbs { font-size: 13px; color: var(--ss-mute); margin-bottom: 6px; }
.ss-crumbs a { color: var(--ss-navy-2); text-decoration: none; }
.ss-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 2px solid var(--ss-line); padding-bottom: 10px; }
.ss-pagehead h1 { margin: 0; font-size: 24px; color: var(--ss-navy); font-weight: 900; }
.ss-pagehead span { color: var(--ss-mute); font-weight: 700; font-size: 13.5px; }
.ss-pager { display: flex; justify-content: center; gap: 10px; align-items: center; margin-top: 20px; font-weight: 700; }
.ss-pager a { padding: 9px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--ss-line); color: var(--ss-ink); text-decoration: none; }
.ss-pager a.next { background: var(--ss-sun); border-color: var(--ss-sun); }
.ss-empty { background: #fff; border: 1px solid var(--ss-line); border-radius: 14px; padding: 40px 20px; text-align: center; color: var(--ss-mute); }
/* الفوتر */
.ss-footer { background: #142944; color: #d6dfeb; margin-top: auto; font-size: 13.5px; }
.ss-footer-in { max-width: 1280px; margin: 0 auto; padding: 36px 16px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 26px; }
.ss-footer h3 { color: #fff; font-size: 16px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ss-sun); display: inline-block; }
.ss-footer a { color: #d6dfeb; text-decoration: none; } .ss-footer a:hover { color: var(--ss-sun); }
.ss-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ss-footer .ss-fbrand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ss-footer .ss-fbrand img { width: 48px; height: 48px; border-radius: 50%; }
.ss-footer .ss-fbrand b { color: #fff; font-size: 18px; }
.ss-copy { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 14px 16px; font-size: 12.5px; color: #9fb0c6; }
/* ---------- تأقلم الشاشات ---------- */
@media (max-width: 1100px) { .ss-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ss-row > :nth-child(n+5) { display: none; } }
@media (max-width: 900px) {
  .ss-topbar .ss-tb-links { display: none; }
  .ss-head-in { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .ss-logo img { width: 46px; height: 46px; } .ss-logo b { font-size: 17px; }
  .ss-logo { flex: 1; }
  .ss-search { order: 5; flex-basis: 100%; max-width: none; }
  .ss-search select { display: none; }
  .ss-act .ss-txt { display: none; }
  .ss-menu-btn { display: block; }
  .ss-allcats { display: none; }
  .ss-hero { grid-template-columns: 1fr; }
  .ss-hero-side { grid-template-columns: 1fr 1fr; }
  .ss-features { grid-template-columns: 1fr 1fr; }
  .ss-layout { grid-template-columns: 1fr; }
  .ss-side { display: none; }
  .ss-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ss-main { padding: 14px 10px 30px; gap: 22px; }
  .ss-hero-main { padding: 22px 18px; min-height: 0; } .ss-hero-main h1 { font-size: 22px; }
  .ss-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
  .ss-row > * { flex: 0 0 46%; scroll-snap-align: start; display: flex !important; }
  .ss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ss-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ss-cat .ss-cat-img { width: 70px; height: 70px; font-size: 32px; }
  .ss-cat b { font-size: 12.5px; }
  .ss-card .ss-name { font-size: 13px; } .ss-card .ss-price { font-size: 16px; }
  .ss-footer-in { grid-template-columns: 1fr; }
  .ss-features { gap: 8px; } .ss-feat { padding: 10px; } .ss-feat span { font-size: 24px; }
}

/* بيانات العميل داخل السلة */
.ss-qo { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--ss-line); }
.ss-qo[hidden] { display: none; }
.ss-qo h3 { margin: 0; font-size: 16px; color: var(--ss-navy); }
.ss-qo label { display: grid; gap: 4px; font-size: 13px; font-weight: 800; color: var(--ss-ink); }
.ss-qo input, .ss-qo select, .ss-qo textarea { width: 100%; box-sizing: border-box; border: 1.5px solid #cfd8e3; border-radius: 10px; padding: 10px 12px; font: 600 15px 'Cairo', sans-serif; background: #fff; color: var(--ss-ink); }
.ss-qo input:focus, .ss-qo select:focus, .ss-qo textarea:focus { outline: none; border-color: var(--ss-sun); box-shadow: 0 0 0 3px rgba(245,179,1,.2); }
.ss-qo-pay { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 13.5px; }
.ss-qo-btn { border: 0; border-radius: 12px; background: var(--ss-navy); color: #fff; font: 900 16px 'Cairo', sans-serif; padding: 14px; cursor: pointer; }
.ss-qo-btn:hover { background: var(--ss-navy-2); }
.ss-qo { scroll-margin-top: 190px; }

/* ---------- عرض صور الأصناف (استوديو موحد) ---------- */
.ss-card .ss-img { position: relative; background: #f4f5f7; padding: 0; margin: 8px 8px 0; border-radius: 14px; overflow: hidden; isolation: isolate; }
.ss-card .ss-img img { mix-blend-mode: multiply; object-fit: contain; padding: 6%; box-sizing: border-box; transition: transform .35s ease; }
.ss-card:hover .ss-img img { transform: scale(1.06); }
.ss-card .ss-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15,23,42,.04); pointer-events: none; }
.ss-noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 40px; opacity: .45; }
.ss-pimg { background: #f4f5f7 !important; border: 1px solid #eceef2; isolation: isolate; }
.ss-pimg img { object-fit: contain !important; mix-blend-mode: multiply; padding: 5%; box-sizing: border-box; }
.ss-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 1; font-size: 12px; }
.ss-noimg img { width: 34% !important; height: auto !important; padding: 0 !important; mix-blend-mode: normal !important; filter: grayscale(1); opacity: .35; border-radius: 50%; }
.ss-noimg small { color: #94a3b8; font-weight: 700; font-size: 11.5px; }

/* ---------- أزرار تحميل التطبيق (آخر الصفحة) ---------- */
.ss-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 18px 12px 6px; direction: ltr; }
.ss-app { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff !important; border: 1px solid #3a3a3a; border-radius: 9px; padding: 6px 14px 6px 10px; min-width: 148px; text-decoration: none !important; transition: transform .15s, background .15s; }
.ss-app:hover { background: #1a1a1a; transform: translateY(-1px); }
.ss-app svg { width: 26px; height: 26px; flex: 0 0 auto; }
.ss-app span { display: grid; line-height: 1.1; text-align: left; direction: ltr; }
.ss-app small { font-size: 10.5px; font-weight: 600; opacity: .85; direction: rtl; text-align: left; font-family: 'Cairo', Tahoma, sans-serif; }
.ss-app b { font: 700 18px -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: -.2px; }
@media (max-width: 480px) { .ss-app { min-width: 0; flex: 1 1 30%; padding: 6px 8px; } .ss-app b { font-size: 15px; } .ss-app svg { width: 22px; height: 22px; } }

/* ---------- الشريط العلوي: واتساب بخط صغير ---------- */
.ss-topbar { font-size: 12px; }
.ss-topbar .ss-tb-wa { color: #a7f3c4; font-weight: 700; opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ss-topbar .ss-tb-links { align-items: center; }
.ss-topbar .ss-tb-links span { opacity: .8; }
@media (max-width: 860px) {
  .ss-topbar-in { justify-content: center; padding: 5px 10px; }
  .ss-topbar .ss-tb-wa { font-size: 11.5px; }
}

/* ---------- صفحة فيسبوك جنب البانر ---------- */
.ss-hero { grid-template-columns: minmax(0, 1fr) 400px; align-items: stretch; }
.ss-hero-main { min-height: 440px; }
.ss-fb { display: block; position: relative; height: 440px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e3e8f0; box-shadow: 0 10px 24px -18px rgba(15,23,42,.35); }
.ss-fb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.ss-fb-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; text-decoration: none; color: #1e3a8a; background: linear-gradient(135deg, #eef4ff, #dbe7ff); }
.ss-fb-fallback b { font-size: 18px; font-weight: 900; } .ss-fb-fallback span { font-size: 13px; color: #475569; font-weight: 700; }
@media (max-width: 1024px) {
  .ss-hero { grid-template-columns: 1fr; }
  .ss-hero-main { min-height: 0; }
  .ss-fb { height: 480px; width: 100%; max-width: 500px; margin: 0 auto; }
}

/* ---------- الواجهة المتحركة في البانر الكحلي ---------- */
.ss-hero-main.has-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 18px; padding: 26px 26px 22px; }
.ss-hero-main.has-show::after { content: none; }
.ss-hero-txt { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.ss-hero-txt .ss-btn { align-self: flex-start; }
.ss-show { position: relative; height: 390px; perspective: 1100px; user-select: none; -webkit-user-select: none; overflow: hidden; border-radius: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.ss-show-glow { position: absolute; inset: 8% 10%; border-radius: 50%; background: radial-gradient(circle, rgba(250,204,21,.38) 0%, rgba(56,189,248,.18) 45%, transparent 70%); filter: blur(10px); animation: ssGlow 6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes ssGlow { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
.ss-show-tag { position: absolute; top: 4px; right: 50%; transform: translateX(50%); z-index: 6; background: #facc15; color: #1f2937; font-weight: 900; font-size: 13px; padding: 5px 14px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.45); white-space: nowrap; }
.ss-show-track { position: absolute; inset: 26px 0 44px; }
.ss-sh { position: absolute; top: 0; left: 50%; width: 220px; margin-left: -110px; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; color: #0f172a;
  box-shadow: 0 22px 40px -20px rgba(0,0,0,.6); transition: transform .7s cubic-bezier(.22,.8,.25,1), opacity .7s ease, filter .7s ease; will-change: transform, opacity;
  opacity: 0; transform: translateX(0) scale(.6); pointer-events: none; }
.ss-sh[data-pos="0"] { opacity: 1; transform: translateX(0) scale(1); z-index: 5; pointer-events: auto; }
.ss-sh[data-pos="1"] { opacity: .85; transform: translateX(-56%) scale(.8) rotateY(22deg); z-index: 4; filter: brightness(.88); pointer-events: auto; cursor: pointer; }
.ss-sh[data-pos="-1"] { opacity: .85; transform: translateX(56%) scale(.8) rotateY(-22deg); z-index: 4; filter: brightness(.88); pointer-events: auto; cursor: pointer; }
.ss-sh[data-pos="2"] { opacity: .3; transform: translateX(-96%) scale(.62) rotateY(30deg); z-index: 3; filter: brightness(.75); }
.ss-sh[data-pos="-2"] { opacity: .3; transform: translateX(96%) scale(.62) rotateY(-30deg); z-index: 3; filter: brightness(.75); }
.ss-sh-img { flex: 1; min-height: 0; display: grid; place-items: center; background: #fff; padding: 12px; }
.ss-sh-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ss-sh[data-pos="0"] .ss-sh-img img { animation: ssBob 3.2s ease-in-out infinite; }
@keyframes ssBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ss-sh-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; border-top: 1px solid #eef2f7; background: linear-gradient(#fff, #f8fafc); }
.ss-sh-info b { font-size: 14px; font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.ss-sh-info em { font-style: normal; font-weight: 900; color: #b45309; font-size: 17px; }
.ss-sh-info em small { font-size: 11px; color: #64748b; }
.ss-show-nav { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 6; }
.ss-sh-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ss-sh-btn:hover { background: rgba(255,255,255,.25); }
.ss-show-dots { display: flex; gap: 5px; max-width: 60%; overflow: hidden; }
.ss-show-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.35); transition: width .4s, background .4s; flex: none; }
.ss-show-dots i.on { width: 18px; background: #facc15; }
@media (prefers-reduced-motion: reduce) { .ss-sh, .ss-show-glow, .ss-sh-img img { transition: none; animation: none !important; } }
@media (max-width: 760px) {
  .ss-hero-main.has-show { grid-template-columns: 1fr; padding: 20px 16px 16px; }
  .ss-show { height: 300px; }
  .ss-sh { width: 170px; margin-left: -85px; }
  .ss-sh[data-pos="1"] { transform: translateX(-58%) scale(.78) rotateY(20deg); }
  .ss-sh[data-pos="-1"] { transform: translateX(58%) scale(.78) rotateY(-20deg); }
  .ss-sh[data-pos="2"], .ss-sh[data-pos="-2"] { opacity: 0; }
  .ss-sh-info b { font-size: 13px; } .ss-sh-info em { font-size: 15px; }
}

/* صندوق فيسبوك البديل (لو المتصفح منع فيسبوك) */
.ss-fb-logo { width: 64px; height: 64px; border-radius: 50%; background: #1877f2; color: #fff; font: 900 44px/64px Arial, sans-serif; text-align: center; box-shadow: 0 10px 22px -10px #1877f2; margin-bottom: 6px; }
.ss-fb-go { margin-top: 10px; background: #1877f2; color: #fff !important; font-weight: 800; font-size: 14px !important; padding: 9px 18px; border-radius: 999px; }

/* ---------- صفحة نجاح الطلب ---------- */
.os-page { display: flex; justify-content: center; padding: 28px 16px 48px; }
.os-card { width: 100%; max-width: 560px; background: #fff; border: 1px solid #e3e8f0; border-radius: 24px; padding: 28px 22px; text-align: center; box-shadow: 0 20px 44px -28px rgba(15,23,42,.45); }
.os-check svg { width: 76px; height: 76px; margin: 0 auto 10px; display: block; }
.os-check circle { fill: #dcfce7; stroke: #16a34a; stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: osDraw .6s ease forwards; }
.os-check path { fill: none; stroke: #16a34a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: osDraw .4s .45s ease forwards; }
@keyframes osDraw { to { stroke-dashoffset: 0; } }
.os-pill { display: inline-block; background: #dcfce7; color: #166534; font-weight: 800; font-size: 13px; padding: 4px 14px; border-radius: 999px; }
.os-card h1 { margin: 10px 0 6px; font-size: 24px; font-weight: 900; color: #1f3a5f; }
.os-card > p { margin: 0 auto 16px; max-width: 420px; color: #475569; font-size: 14.5px; line-height: 1.8; }
.os-num { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff8e1; border: 1.5px dashed #f5c542; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }
.os-num span { color: #92400e; font-weight: 700; font-size: 13px; }
.os-num b { font: 900 20px ui-monospace, Menlo, Consolas, monospace; color: #1f3a5f; letter-spacing: .5px; }
.os-num button { border: 0; background: #1f3a5f; color: #fff; border-radius: 8px; padding: 4px 10px; font: 700 12px 'Cairo', sans-serif; cursor: pointer; }
.os-details { text-align: right; border: 1px solid #e8edf3; border-radius: 16px; padding: 6px 14px; margin-bottom: 16px; }
.os-row, .os-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.os-row span { color: #64748b; flex: 0 0 auto; } .os-row b { color: #0f172a; text-align: left; }
.os-items { background: #f8fafc; border-radius: 12px; padding: 2px 10px; margin: 8px 0; }
.os-item span { color: #334155; } .os-item small { color: #94a3b8; } .os-item b { color: #0f172a; }
.os-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 8px; }
.os-total span { font-weight: 800; color: #1f3a5f; } .os-total b { font-size: 24px; font-weight: 900; color: #15803d; } .os-total small { font-size: 13px; color: #64748b; }
.os-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; margin: 0 0 18px; }
.os-steps li { display: grid; justify-items: center; gap: 4px; font-size: 12px; color: #94a3b8; font-weight: 700; position: relative; }
.os-steps i { width: 30px; height: 30px; border-radius: 50%; background: #eef2f7; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #64748b; }
.os-steps li.on { color: #15803d; } .os-steps li.on i { background: #16a34a; color: #fff; }
.os-acts { display: grid; gap: 8px; }
.os-btn { display: block; border-radius: 14px; padding: 12px; font-weight: 800; font-size: 15px; text-decoration: none; }
.os-btn.is-track { background: #1f3a5f; color: #fff; }
.os-btn.is-wa { background: #16a34a; color: #fff; }
.os-btn.is-home { background: #f4b400; color: #1f2937; }
@media (min-width: 640px) { .os-acts { grid-template-columns: 1fr 1fr; } .os-btn.is-home { grid-column: 1 / -1; } }

/* ---------- مربع فيسبوك (v52): رأس ثابت + منشوراتنا + صفحة فيسبوك تحتها ---------- */
.ss-fb.fbx { display: flex; flex-direction: column; background: #f0f2f5; }
.fbx-head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px; background: linear-gradient(135deg, #1877f2, #0b5fcc); color: #fff; }
.fbx-head img { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 3px solid #fff; object-fit: contain; flex: none; }
.fbx-title { flex: 1; min-width: 0; }
.fbx-title b { display: block; font-size: 17px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbx-title small { display: block; font-size: 11.5px; opacity: .9; font-weight: 700; }
.fbx-f { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: #1877f2; font: 900 12px/1 Arial, sans-serif; vertical-align: -3px; }
.fbx-f.big { width: 56px; height: 56px; font-size: 38px; background: #1877f2; color: #fff; }
.fbx-follow { flex: none; background: #fff; color: #1877f2; font-weight: 900; font-size: 13px; padding: 7px 12px; border-radius: 10px; text-decoration: none; }
.fbx-feed { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.fbx-post { background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.fbx-ph { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fbx-ph img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid #e4e6eb; }
.fbx-ph b { display: block; font-size: 13.5px; color: #050505; } .fbx-ph small { font-size: 11px; color: #65676b; }
.fbx-post p { margin: 0 0 8px; font-size: 14px; line-height: 1.7; color: #050505; white-space: normal; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.fbx-img { display: block; width: 100%; margin: 0 0 8px; border-radius: 8px; max-height: 320px; object-fit: cover; background: #f0f2f5; }
.fbx-more { display: block; text-align: center; border-top: 1px solid #e4e6eb; padding-top: 8px; color: #65676b; font-weight: 800; font-size: 13px; text-decoration: none; }
.fbx-more:hover { color: #1877f2; }
.fbx-empty { display: grid; justify-items: center; gap: 10px; text-align: center; background: #fff; border-radius: 12px; padding: 20px 14px; text-decoration: none; color: #050505; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.fbx-empty b { font-size: 15px; }
.fbx-go { background: #1877f2; color: #fff; font-weight: 800; padding: 8px 18px; border-radius: 999px; font-size: 14px; }
.fbx-plugin { background: #fff; border-radius: 12px; overflow: hidden; flex: none; }
.fbx-plugin iframe { position: static !important; display: block; width: 100% !important; border: 0; }
.ss-fb.fbx .ss-fb-fallback { display: none; }
/* رول المنشورات (v53) */
.fbx-roll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.fbx-roll::-webkit-scrollbar { display: none; }
.fbx-roll .fbx-track { display: flex; flex-direction: column; gap: 10px; flex: none; }
.fbx-roll .fbx-plugin { order: 0; }
.fbx-roll .fbx-plugin:not(:empty) + .fbx-empty { margin-top: 0; }

/* ---------- تكبير صورة المنتج (عدسة + ملء الشاشة) ---------- */
.zm-wrap { position: relative; cursor: zoom-in; }
.zm-lens { position: absolute; width: 180px; height: 180px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .12s;
  border: 3px solid #fff; box-shadow: 0 10px 28px rgba(15,23,42,.35), 0 0 0 1px rgba(15,23,42,.15); background-color: #fff; background-repeat: no-repeat; z-index: 3; }
.zm-hint { position: absolute; bottom: 10px; left: 10px; border: 0; background: rgba(15,23,42,.72); color: #fff; font: 700 12.5px 'Cairo', sans-serif; padding: 5px 12px; border-radius: 999px; cursor: zoom-in; z-index: 2; }
.zm-full { position: fixed; inset: 0; z-index: 200; background: rgba(10,15,30,.94); display: flex; align-items: center; justify-content: center; }
.zm-full[hidden] { display: none; }
.zm-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: grab; }
.zm-stage img { max-width: 94vw; max-height: 84vh; object-fit: contain; background: #fff; border-radius: 12px; transform-origin: center center; transition: transform .08s linear; user-select: none; -webkit-user-drag: none; }
.zm-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; cursor: pointer; }
.zm-tools { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.zm-tools button { border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font: 800 15px 'Cairo', sans-serif; min-width: 44px; height: 44px; padding: 0 14px; cursor: pointer; }
@media (hover: none) { .zm-lens { display: none; } }

/* ---------- صور إضافية + خيارات (لون/مقاس) ---------- */
.pg-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pg-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.pg-th { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 12px; border: 2px solid #e5e7eb; background: #fff; padding: 3px; cursor: pointer; transition: border-color .15s, transform .15s; }
.pg-th img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.pg-th:hover { transform: translateY(-2px); }
.pg-th.on { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.22); }
.pg-opts { display: grid; gap: 14px; }
.pg-og { border-radius: 14px; transition: background .2s; }
.pg-og.miss { background: rgba(244,63,94,.08); box-shadow: 0 0 0 2px rgba(244,63,94,.45); padding: 8px; }
.pg-ol { font-weight: 800; font-size: 14px; margin-bottom: 8px; color: #334155; }
.pg-ol b { color: #b45309; font-weight: 900; }
.pg-ov { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-o { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid #e2e8f0; background: #fff; color: #1e293b; font: 800 13.5px 'Cairo', Tahoma, sans-serif; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; }
.pg-o:hover { border-color: #94a3b8; }
.pg-o:active { transform: scale(.97); }
.pg-o i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); box-shadow: inset 0 0 0 2px #fff; flex: 0 0 auto; }
.pg-o.on { border-color: #f59e0b; background: #fffbeb; box-shadow: 0 0 0 3px rgba(245,158,11,.22); }
.pg-need { margin: 0; color: #e11d48; font-weight: 800; font-size: 13.5px; }
.pg-need[hidden] { display: none; }
.zm-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.zm-nav.prev { right: 14px; } .zm-nav.next { left: 14px; }
.zm-nav:hover { background: rgba(255,255,255,.3); }
.ct-vars { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12px; }
.ct-vars li { display: flex; align-items: center; gap: 6px; color: #475569; }
.ct-vars li b { color: #b45309; }
.ct-vx { display: inline; margin: 0; }
.ct-vx button { border: 0; background: none; color: #e11d48; cursor: pointer; font-size: 12px; padding: 0 4px; }
.ss-opt-tag { position: absolute; bottom: 8px; right: 8px; z-index: 2; background: rgba(255,255,255,.92); border: 1px solid #e5e7eb; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; color: #6b21a8; display: inline-flex; gap: 3px; align-items: center; }
.ss-opt-tag i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
a.ss-add { text-decoration: none; box-sizing: border-box; align-items: center; text-align: center; font-size: 13px; }
/* ---------- تتبع الطلب ---------- */
.tr-page { flex-direction: column; align-items: center; gap: 16px; }
.tr-card h1 { margin-top: 0; }
.tr-form { display: flex; gap: 8px; margin: 4px 0 0; }
.tr-form input { flex: 1; min-width: 0; border: 2px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; font: 800 16px ui-monospace, Menlo, Consolas, monospace; color: #0f172a; background: #f8fafc; outline: none; text-align: center; }
.tr-form input:focus { border-color: #f4b400; background: #fff; box-shadow: 0 0 0 4px rgba(244,180,0,.18); }
.tr-form button { border: 0; border-radius: 14px; padding: 0 18px; background: #1f3a5f; color: #fff; font: 800 15px 'Cairo', sans-serif; cursor: pointer; white-space: nowrap; }
.tr-msg { margin-top: 14px; display: grid; gap: 4px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 14px; padding: 12px; font-size: 14px; }
.tr-msg b { color: #9a3412; } .tr-msg span { color: #7c2d12; font-size: 13px; }
.tr-msg.is-err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; font-weight: 800; }
.tr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tr-head .os-num { margin: 0; }
.tr-st { font-weight: 800; font-size: 13.5px; padding: 6px 14px; border-radius: 999px; border: 1px solid; }
.tr-st.is-wait { background: #fff8e1; color: #92400e; border-color: #fde68a; }
.tr-st.is-prep { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tr-st.is-ship { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.tr-st.is-done { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.tr-st.is-cancel { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.tr-date { text-align: right; color: #64748b; font-size: 13px; margin: 8px 0 14px; }
.tr-note { color: #64748b; font-size: 12px; margin: -6px 0 14px; }

/* مربع فيسبوك: «وصل جديد» لما منشورات فيسبوك مش متاحة */
.fbx-news .fbx-nimg { display: block; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #eef0f3; }
.fbx-news .fbx-nimg img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 6%; box-sizing: border-box; mix-blend-mode: multiply; }
.fbx-news .fbx-nname { margin: 8px 0 6px; font-weight: 800; font-size: 14px; -webkit-line-clamp: 2; }
.fbx-nfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #e4e6eb; padding-top: 8px; }
.fbx-nfoot b { color: #b45309; font-size: 16px; font-weight: 900; } .fbx-nfoot small { font-size: 11px; color: #65676b; }
.fbx-nfoot a { background: #f4b400; color: #1f2937; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; text-decoration: none; }
.fbx-roll .fbx-empty { flex: none; }
/* الدفع الأونلاين (Paymob) */
.ss-pay { display: grid; gap: 8px; }
.ss-pay label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid #e5e9ef; border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; }
.ss-pay label:has(input:checked) { border-color: #f5b301; background: #fffbeb; box-shadow: 0 0 0 3px rgba(245,179,1,.15); }
.ss-pay input { margin-top: 4px; accent-color: #f5b301; }
.ss-pay span { display: grid; gap: 2px; }
.ss-pay b { color: #1e2530; font-size: 14px; }
.ss-pay small { color: #6b7686; font-size: 12px; }
.os-pay { border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.7; margin: 10px 0; text-align: right; }
.os-pay.is-ok { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.os-pay.is-bad { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.os-pay.is-wait { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.os-payform { margin: 8px 0 12px; }
.os-payform .os-btn { width: 100%; border: 0; cursor: pointer; }
.os-btn.is-pay { background: #f5b301; color: #1b1b1b; font-family: inherit; }
