/* ══════════════════════════════════════════════════════════════════
   متجر فيبوكس — التصميم
   ══════════════════════════════════════════════════════════════════ */
:root {
  --bg: #040b18;
  --bg2: #071427;
  --card: #0c2038;
  --card2: #123152;
  --line: #1b3d63;
  --accent: #2b8cff;
  --accent2: #7cc7ff;
  --gold: #8fe3ff;
  --text: #eaf4ff;
  --muted: #93a9c6;
  --wa: #25d366;
  --danger: #ff4d6d;
  --radius: 14px;
  --font: "PingARLT", "Segoe UI", "Tahoma", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  direction: rtl;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { width: min(1200px, 94%); margin-inline: auto; }

/* ───────── شريط الإعلانات ───────── */
.adbar {
  background: linear-gradient(90deg, #07182e, #0d2b4d, #07182e);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  font-size: .85rem;
  color: var(--accent2);
}
.adbar__track { display: inline-block; animation: marquee 32s linear infinite; }
.adbar__item { margin-inline: 38px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ───────── الهيدر ───────── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 11, 24, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 16px; padding: 12px 0; }

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  background: var(--card); border: 1px solid var(--line);
}
.brand__txt { display: grid; line-height: 1.3; }
.brand__txt b { font-size: 1.05rem; }
.brand__txt small { color: var(--muted); font-size: .68rem; font-weight: 400; }

.search {
  flex: 1 1 240px; max-width: 380px;
  display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 11px; overflow: hidden; transition: .2s;
}
.search:focus-within { border-color: var(--accent); }
.search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); padding: 10px 14px; font-family: inherit; font-size: .88rem;
}
.search input::placeholder { color: var(--muted); }
.search button {
  background: transparent; border: 0; color: var(--muted);
  padding: 0 14px; cursor: pointer; font-size: 1rem;
}
.search button:hover { color: var(--accent2); }

.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  padding: 8px 13px; border-radius: 10px; font-size: .88rem;
  color: var(--muted); transition: .18s; white-space: nowrap;
}
.nav a:hover { color: #fff; background: var(--card2); }

.hdr__act { display: flex; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; font-size: 1.05rem;
  display: grid; place-items: center; position: relative; transition: .18s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent2); }
.cart-count {
  position: absolute; top: -6px; left: -6px; background: var(--accent); color: #fff;
  font-size: .66rem; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px; font-weight: 700;
}
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* ───────── الهيرو ───────── */
.hero {
  position: relative; padding: 62px 0 54px; text-align: center;
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(43, 140, 255, .30), transparent 72%),
    linear-gradient(180deg, #061020, var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero__in { display: grid; justify-items: center; gap: 14px; }
.pill {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(43, 140, 255, .16); border: 1px solid rgba(43, 140, 255, .45);
  color: var(--accent2); font-size: .8rem; font-weight: 700;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.35; }
.hero__sub { color: var(--muted); font-size: 1rem; max-width: 640px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 30px; width: 100%; max-width: 760px;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 8px; display: grid; gap: 4px;
}
.stat b { color: var(--gold); font-size: 1.1rem; }
.stat span { color: var(--muted); font-size: .74rem; }

/* ───────── أزرار ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 26px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #1560d8); color: #fff;
  font-weight: 700; border: 0; font-size: .95rem;
  box-shadow: 0 8px 22px rgba(43, 140, 255, .32); transition: .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43, 140, 255, .48); }
.btn--sm { padding: 9px 14px; font-size: .82rem; border-radius: 10px; box-shadow: none; }
.btn--ghost {
  background: var(--card2); color: var(--accent2);
  border: 1px solid var(--accent); box-shadow: none;
}
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--wa {
  background: var(--wa); color: #04250f; box-shadow: 0 8px 22px rgba(37, 211, 102, .3);
}

/* ───────── أقسام عامة ───────── */
.section { padding: 46px 0; }
.sec__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 12px;
}
.sec__title {
  font-size: 1.35rem; display: flex; align-items: center; gap: 10px;
}
.sec__title::before {
  content: ""; width: 6px; height: 22px; border-radius: 4px;
  background: linear-gradient(var(--accent), var(--gold));
}
.sec__title--sp { margin-top: 48px; margin-bottom: 20px; }
.sec__more { color: var(--accent2); font-size: .84rem; }
.sec__more:hover { color: #fff; }

.page__title { font-size: 1.7rem; margin-bottom: 24px; }

.crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted); margin-bottom: 18px;
}
.crumb a:hover { color: var(--accent2); }
.crumb__sep { color: var(--line); }

.empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; gap: 14px; justify-items: center;
}

/* ───────── المزايا ───────── */
.feats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
}
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; display: grid; gap: 6px; text-align: center; justify-items: center;
  transition: .18s;
}
.feat:hover { border-color: var(--accent); transform: translateY(-3px); }
.feat i { font-size: 1.7rem; font-style: normal; }
.feat b { font-size: .95rem; }
.feat span { color: var(--muted); font-size: .8rem; }

/* ───────── الأقسام ───────── */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px;
}
.cat-grid--big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 8px; text-align: center; font-size: .82rem; color: var(--muted);
  transition: .18s; display: grid; gap: 6px; place-items: center;
}
.cat i { font-size: 1.4rem; font-style: normal; }
.cat small { font-size: .68rem; color: var(--accent2); }
.cat:hover {
  border-color: var(--accent); color: #fff; transform: translateY(-3px); background: var(--card2);
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  padding: 7px 15px; border-radius: 999px; font-size: .8rem;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  transition: .18s;
}
.chip:hover { border-color: var(--accent); color: #fff; }
.chip--static { display: inline-block; margin-bottom: 10px; cursor: pointer; }

/* ───────── المنتجات ───────── */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s;
}
.card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}
.card__img {
  aspect-ratio: 1/1; background: var(--bg2); display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img .ph { color: var(--muted); font-size: 2.6rem; }
.badge {
  position: absolute; top: 10px; right: 10px; font-size: .68rem;
  padding: 4px 10px; border-radius: 999px; font-weight: 700;
}
.badge--sale { background: #e22400; color: #fff; }
.badge--top { top: auto; bottom: 10px; background: var(--gold); color: #062033; }

.card__body { padding: 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__cat { color: var(--accent2); font-size: .7rem; }
.card__name { font-size: .92rem; font-weight: 700; line-height: 1.5; }
.card__name:hover { color: var(--accent2); }
.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.card__price .now { color: var(--gold); font-weight: 800; font-size: 1.05rem; }
.card__price .was { color: var(--muted); font-size: .78rem; }
.card__acts { display: flex; gap: 7px; margin-top: 6px; }
.card__acts .btn { flex: 1; padding: 8px 6px; font-size: .78rem; }

/* ───────── صفحة المنتج (نمط المتجر) ───────── */
.shop {
  display: grid; grid-template-columns: 1.12fr 1fr; gap: 26px; align-items: start;
}
.shop__media {
  border: 1px solid #1c3a57; background: #040b18; border-radius: 6px;
  aspect-ratio: 1/1; display: grid; place-items: center; padding: 8px; overflow: hidden;
}
.shop__media img { width: 100%; height: 100%; object-fit: contain; }
.shop__media .ph { color: #4f6d8c; font-size: 4rem; }
.shop__col { display: grid; gap: 12px; }

.scard {
  background: #103a5e; border-radius: 6px; padding: 14px 16px;
  display: grid; gap: 14px; color: #fff;
}
.scard--row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 16px;
}
.scard__lbl { font-size: .88rem; color: #e6f2ff; display: flex; align-items: center; gap: 6px; }
.scard__val { font-size: 1rem; font-weight: 800; white-space: nowrap; }

.opt { display: grid; gap: 8px; }
.opt__q { font-size: .86rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.req { color: #ff5c5c; }
.opt__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ochip {
  background: transparent; border: 1px solid #8fb8dd; color: #fff;
  border-radius: 4px; padding: 6px 16px; font-size: .8rem; cursor: pointer;
  font-family: inherit; transition: .16s;
}
.ochip:hover { background: rgba(255, 255, 255, .12); }
.ochip.active { background: #fff; color: #0b2b47; border-color: #fff; }
.opt__note { font-size: .72rem; color: #c6dcf2; line-height: 1.7; }
.opt__note::before { content: "* "; color: #ff5c5c; }

.note-btn {
  background: #071626; border: 1px solid #1c3f63; color: #e6f2ff;
  border-radius: 4px; padding: 8px 24px; font-size: .8rem; cursor: pointer;
  font-family: inherit; transition: .16s;
}
.note-btn:hover { border-color: #5b93c9; }
.note-txt { font-size: .78rem; color: #e6f2ff; }

.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.srow__lbl { font-size: .88rem; color: #e6f2ff; }
.srow__val { display: flex; align-items: baseline; gap: 8px; }
.srow__val .from { font-size: .74rem; color: #c6dcf2; }
.srow__val b { font-size: 1rem; }
.srow__val s { color: #c6dcf2; font-size: .85rem; }

.qty--shop { background: transparent; border-color: #8fb8dd; }
.qty--shop span { color: #fff; }
.qty--shop button { background: transparent; color: #fff; }
.qty--shop button:hover { background: rgba(255, 255, 255, .14); }

.shop__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sbtn {
  border: 1px solid #8fb8dd; background: transparent; color: #fff;
  border-radius: 4px; padding: 11px 8px; font-size: .86rem; cursor: pointer;
  font-family: inherit; transition: .16s;
}
.sbtn:hover { background: #fff; color: #0b2b47; }
.sbtn--buy { border-color: #fff; }

.apay {
  background: #05101f; border: 1px solid #163350; color: #fff; border-radius: 4px;
  padding: 12px; font-size: .9rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: .16s;
}
.apay:hover { border-color: #6a8bad; }

.pays--shop { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pays--shop .pay {
  background: #fff; color: #0a1a2c; border-radius: 4px; min-width: 48px; height: 24px;
  display: grid; place-items: center; font-size: .62rem; font-weight: 700;
  padding: 0 8px; border: 1px solid #ddd;
}

.scard--bundle { gap: 10px; }
.bundle__head { display: grid; gap: 2px; }
.bundle__head b { font-size: 1rem; }
.bundle__head span { font-size: .74rem; color: #c6dcf2; }
.brow {
  display: grid; grid-template-columns: 22px 40px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.bcheck {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid #8fb8dd;
  display: grid; place-items: center; font-size: .64rem; color: transparent;
  cursor: pointer; transition: .16s;
}
.bcheck.on { background: #3d8fe0; border-color: #3d8fe0; color: #fff; }
.bthumb {
  width: 40px; height: 40px; border-radius: 4px; overflow: hidden; background: #10314f;
  display: grid; place-items: center; font-size: 1rem;
}
.bthumb img { width: 100%; height: 100%; object-fit: cover; }
.bname { font-size: .82rem; line-height: 1.5; }
.bprice { font-size: .82rem; white-space: nowrap; }
.bundle__cta {
  margin-top: 6px; background: #1e5fa8; border: 1px solid #3d8fe0; color: #fff;
  border-radius: 4px; padding: 11px; font-size: .86rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: .16s;
}
.bundle__cta:hover { background: #2a72c2; }

.qty {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 3px;
}
.qty button {
  width: 32px; height: 32px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--card2); color: var(--text); font-size: 1rem;
}
.qty button:hover { background: var(--accent); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.qty--sm button { width: 26px; height: 26px; font-size: .85rem; }
.qty--sm span { min-width: 26px; font-size: .85rem; }

/* ───────── السلة ───────── */
.cart { display: grid; gap: 12px; }
.crow {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px;
}
.crow__img {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: var(--bg2); display: grid; place-items: center; font-size: 1.6rem;
}
.crow__img img { width: 100%; height: 100%; object-fit: cover; }
.crow__txt { display: grid; gap: 2px; }
.crow__txt b { font-size: .92rem; }
.crow__txt span { color: var(--gold); font-size: .85rem; }
.crow__del {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
}
.crow__del:hover { border-color: var(--danger); color: var(--danger); }
.cart__foot {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  justify-content: space-between; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cart__total { font-size: 1.1rem; }
.cart__total b { color: var(--gold); font-size: 1.35rem; }

/* ───────── الصفحات النصية ───────── */
.page__body {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 14px; max-width: 900px;
}
.page__h { font-size: 1.15rem; margin-top: 10px; color: var(--accent2); }
.page__p { color: var(--muted); font-size: .92rem; }
.page__list { padding-inline-start: 22px; color: var(--muted); font-size: .92rem; display: grid; gap: 7px; }
.faq {
  border-bottom: 1px solid var(--line); padding-bottom: 14px; display: grid; gap: 6px;
}
.faq:last-child { border-bottom: 0; padding-bottom: 0; }
.faq h3 { font-size: 1rem; color: var(--text); }
.faq p { color: var(--muted); font-size: .88rem; }

/* ───────── بانر ───────── */
.cta {
  background:
    radial-gradient(70% 120% at 20% 0%, rgba(43, 140, 255, .3), transparent 70%),
    linear-gradient(135deg, #081729, #071427);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 26px; text-align: center; display: grid; gap: 12px; justify-items: center;
}
.cta h2 { font-size: 1.5rem; }
.cta p { color: var(--muted); font-size: .92rem; }

/* ───────── الفوتر ───────── */
.ftr {
  background: var(--bg2); border-top: 1px solid var(--line);
  padding: 44px 0 22px; margin-top: 50px;
}
.ftr__in {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 26px;
}
.ftr__brand p { color: var(--muted); font-size: .84rem; margin-top: 12px; }
.ftr h4 { font-size: .95rem; margin-bottom: 12px; }
.ftr ul { list-style: none; display: grid; gap: 7px; }
.ftr li, .ftr li a { color: var(--muted); font-size: .84rem; }
.ftr li a:hover { color: var(--accent2); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); font-size: .95rem; transition: .18s;
}
.socials a:hover { border-color: var(--accent); transform: translateY(-2px); }
.ftr__bottom {
  border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: .8rem;
}
.pays { display: flex; gap: 8px; flex-wrap: wrap; }
.pays span {
  background: var(--card); border: 1px solid var(--line); border-radius: 7px;
  padding: 2px 10px; font-size: .72rem; color: var(--muted);
}
.wa-link { color: var(--wa) !important; font-weight: 700; }

/* ───────── زر واتساب ───────── */
.wa-float {
  position: fixed; bottom: 22px; left: 22px; z-index: 70; width: 54px; height: 54px;
  border-radius: 50%; background: var(--wa); display: grid; place-items: center;
  color: #fff; font-size: 1.4rem; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: .18s;
}
.wa-float:hover { transform: scale(1.08); }

/* ═════════ شريط التعديل ═════════ */
.editor {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  display: grid; justify-items: end; gap: 10px;
}
.editor__toggle {
  background: linear-gradient(135deg, var(--accent), #1560d8); color: #fff;
  border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700;
  cursor: pointer; font-size: .85rem; box-shadow: 0 8px 24px rgba(43, 140, 255, .45);
  transition: .18s;
}
.editor__toggle:hover { transform: translateY(-2px); }
.editor__toggle.on { background: linear-gradient(135deg, #1db954, #0f8f3f); }

.editor__panel {
  width: min(340px, 92vw); background: #081729; border: 1px solid var(--accent);
  border-radius: 16px; padding: 16px; display: grid; gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  max-height: 76vh; overflow: auto;
}
.editor__head { display: flex; justify-content: space-between; align-items: center; }
.editor__head b { font-size: .95rem; }
.editor__head button {
  background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem;
}
.editor__hint { font-size: .78rem; color: var(--muted); line-height: 1.7; }
.editor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-btn {
  padding: 9px 8px; border-radius: 9px; cursor: pointer; font-size: .78rem;
  background: var(--card2); border: 1px solid var(--line); color: var(--text);
  transition: .18s;
}
.ed-btn:hover { border-color: var(--accent); color: var(--accent2); }
.ed-btn--on { background: rgba(29, 185, 84, .16); border-color: #1db954; color: #62e08a; }
.ed-btn--danger { background: rgba(255, 77, 109, .12); border-color: rgba(255,77,109,.5); color: #ff8fa3; }
.ed-btn--danger:hover { background: var(--danger); color: #fff; }
.editor__nav { display: grid; gap: 6px; font-size: .78rem; color: var(--muted); }
.editor__nav select {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 8px 10px; font-family: inherit; font-size: .8rem;
}
.editor__status {
  font-size: .74rem; color: var(--muted); background: var(--card);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
  min-height: 34px; line-height: 1.6;
}

/* عناصر قابلة للتعديل */
body.editing [data-k] {
  outline: 1px dashed rgba(43, 140, 255, .55);
  outline-offset: 2px; border-radius: 4px;
  transition: background .12s, outline-color .12s;
  cursor: text;
}
body.editing [data-k]:hover { background: rgba(43, 140, 255, .14); }
body.editing [data-k]:focus {
  outline: 2px solid var(--accent); background: rgba(43, 140, 255, .2);
}
body.editing [data-img] {
  outline: 2px dashed var(--gold); outline-offset: 2px; cursor: pointer;
}
body.editing [data-img].img-edit:hover { opacity: .75; }
body.editing .wa-float { display: none; }

/* إدارة القوائم */
.editor__panel[hidden] { display: none; }
.manager { width: min(850px, calc(100% - 24px)); max-height: 90dvh; padding: 20px; margin: auto; overflow-y: auto; background: var(--bg, #081729); color: var(--text); border: 1px solid var(--line); border-radius: 16px; }
.manager::backdrop { background: rgba(0, 0, 0, .75); }
.manager-head, .manager-actions, .manager-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.manager-head { justify-content: space-between; }
.manager h2 { font-size: 1.2rem; }
.manager h3 { font-size: 1rem; margin-block: 12px; }
.manager p { color: var(--muted); font-size: .85rem; line-height: 1.8; }
.manager-section, .manager-field label { display: grid; gap: 6px; }
.manager select, .manager textarea, .manager input { width: 100%; min-width: 0; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.manager textarea { resize: vertical; }
.manager input[type="checkbox"] { width: 22px; height: 22px; }
.manager-field, .manager-list { margin-block: 12px; min-width: 0; }
.manager-item { padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-block: 10px; overflow-wrap: anywhere; }
.manager summary { cursor: pointer; padding-block: 6px; }
.manager-actions { margin-block: 10px; }
.manager button:disabled { opacity: .35; cursor: default; }
.manager-foot { position: sticky; bottom: -20px; background: var(--bg, #081729); border-top: 1px solid var(--line); padding-block: 12px; }
.manager-foot p { flex: 1; min-width: 180px; }
.price-row { display: grid; grid-template-columns: 1fr 140px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.price-row span { font-size: .88rem; line-height: 1.6; }
.price-row input { text-align: center; }
@media (max-width: 640px) { .price-row { grid-template-columns: 1fr 110px; } }

/* ───────── توست ───────── */
.toast {
  position: fixed; bottom: 90px; right: 22px; z-index: 100;
  background: #0e2439; border: 1px solid var(--accent); color: var(--text);
  padding: 11px 18px; border-radius: 11px; font-size: .84rem;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: .25s; box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ───────── استجابة ───────── */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .search { max-width: none; flex: 1 1 auto; }
  .mobile-nav {
    display: none; flex-direction: column; gap: 4px;
    padding: 10px 0 14px; border-top: 1px solid var(--line);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 10px 6px; color: var(--muted); font-size: .9rem; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hdr__in { flex-wrap: wrap; }
  .brand__txt small { display: none; }
  .search { order: 3; flex: 1 0 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ftr__in { grid-template-columns: 1fr; }
  .ftr__bottom { flex-direction: column; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .crow { grid-template-columns: 52px 1fr auto; }
  .crow__img { width: 52px; height: 52px; }
  .crow__del { grid-column: span 3; justify-self: end; }
  .page__body { padding: 18px; }
}

/* ───────── شريط الترتيب (صفحة القسم) ───────── */
.sortbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0 0 18px;
}
.sortbar__n { color: var(--muted); font-size: 14px; }
.sortbar__l { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sortbar select {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.sortbar select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ───────── التقييم ───────── */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; line-height: 1; }
.stars--sm { font-size: 13px; }

.p-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0 10px;
  font-family: inherit;
}
.p-rating b { color: var(--text); font-size: 15px; }
.p-rating__c { font-size: 13px; }
.p-rating:hover .p-rating__c { color: var(--accent2); }

/* ───────── المراجعات ───────── */
.reviews {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 22px;
  scroll-margin-top: 90px;
}
.reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.reviews__head h2 { font-size: 20px; }
.reviews__avg { display: flex; align-items: center; gap: 8px; }
.reviews__avg b { font-size: 24px; color: var(--gold); }
.reviews__avg small { color: var(--muted); font-size: 13px; }

.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.review__top b { font-size: 15px; }
.review__top time { color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.review p { color: var(--muted); font-size: 14px; }

/* ?????? ??? ????: ????? ?????? ????? ????????? */
.ftr, .adbar, .wa-float { display: none !important; }

