﻿/* Quick System — الموقع: أزرق، أبيض، برتقالي */
:root {
    --blue: #1d4ed8; --blue-d: #1e3a8a; --blue-l: #eff6ff; --blue-m: #dbeafe;
    --orange: #f97316; --orange-d: #ea580c; --orange-l: #fff7ed;
    --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --soft: #f8fafc;
    --ok: #16a34a; --err: #dc2626; --r: 14px; --sh: 0 6px 24px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange-d); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* الأزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; border: 2px solid var(--blue); background: #fff; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; transition: .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--blue-l); color: var(--blue-d); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.orange:hover { background: var(--orange-d); border-color: var(--orange-d); color: #fff; }
.btn.white { background: #fff; border-color: #fff; color: var(--blue); }
.btn.ghost-w { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost-w:hover { background: rgba(255,255,255,.12); }
.btn.sm { padding: 6px 12px; font-size: .9em; border-radius: 8px; }
.btn.lg { padding: 13px 28px; font-size: 1.05em; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* الشريط العلوي */
.topline { background: var(--blue-d); color: #cbd5e1; font-size: .85em; }
.topline .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.topline a { color: #fff; }
.topline .tl-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(15,23,42,.04); }
header.site .wrap { display: flex; align-items: center; gap: 20px; min-height: 86px; }
.logo img { height: 72px; width: auto; }
nav.main { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
nav.main a { color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
nav.main a:hover, nav.main a.on { color: var(--blue); background: var(--blue-l); }
.hdr-acts { display: flex; gap: 8px; align-items: center; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-l); color: var(--blue); font-size: 1.15em; }
.cart-btn .n { position: absolute; top: -4px; inset-inline-end: -4px; background: var(--orange); color: #fff; font-size: .7em; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; padding: 0 5px; }
.menu-tg { display: none; background: none; border: 0; font-size: 1.5em; color: var(--blue); cursor: pointer; }

/* البانر */
.hero { background: linear-gradient(135deg, var(--blue-d), var(--blue) 60%, #2563eb); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--orange); opacity: .12; top: -180px; inset-inline-start: -160px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 64px 0; position: relative; z-index: 1; }
.hero .badge { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 14px; border-radius: 99px; font-size: .9em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.8em, 4vw, 2.9em); font-weight: 800; }
.hero p { font-size: 1.1em; color: #dbeafe; margin: 0 0 24px; }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .art { background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero .stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero .stats b { display: block; font-size: 1.7em; color: #fff; line-height: 1.1; }
.hero .stats span { color: #bfdbfe; font-size: .9em; }

/* السلايدر */
.slider { position: relative; overflow: hidden; border-radius: var(--r); margin: 28px auto 0; }
.slide { display: none; position: relative; min-height: 260px; background-size: cover; background-position: center; color: #fff; }
.slide.on { display: block; animation: fade .5s; }
.slide .in { position: relative; z-index: 1; padding: 48px 40px; max-width: 640px; }
.slide h2 { font-size: 2em; font-weight: 800; }
.slide p { color: #e0e7ff; font-size: 1.1em; }
.slider .dots { position: absolute; bottom: 14px; inset-inline-end: 20px; display: flex; gap: 8px; z-index: 2; }
.slider .dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.slider .dots button.on { background: var(--orange); width: 28px; border-radius: 6px; }
@keyframes fade { from { opacity: .3 } to { opacity: 1 } }

/* الأقسام */
section.sec { padding: 64px 0; }
section.sec.soft { background: var(--soft); }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.sec-head h2 { font-size: 2em; font-weight: 800; }
.sec-head h2::after { content: ""; display: block; width: 60px; height: 4px; background: var(--orange); border-radius: 2px; margin: 10px auto 0; }
.sec-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }

/* كروت البرامج */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: .2s; display: flex; flex-direction: column; gap: 10px; color: var(--ink); position: relative; overflow: hidden; }
.pcard::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--c, var(--blue)); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--blue-m); color: var(--ink); }
.pcard .ic { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6em; color: #fff; background: var(--c, var(--blue)); }
.pcard h3 { font-size: 1.15em; margin: 4px 0 0; }
.pcard p { color: var(--muted); margin: 0; font-size: .95em; flex: 1; }
.pcard .more { color: var(--blue); font-weight: 700; font-size: .95em; }
.pcard .price { color: var(--orange-d); font-weight: 800; }

/* كروت المنتجات */
.prod { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.prod:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.prod .ph { aspect-ratio: 4/3; background: var(--blue-l); position: relative; display: block; }
.prod .ph img { width: 100%; height: 100%; object-fit: contain; }
.prod .tag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--orange); color: #fff; font-size: .8em; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.prod .tag.out { background: var(--muted); }
.prod .bd { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod .cat { font-size: .82em; color: var(--muted); }
.prod h3 { font-size: 1.05em; margin: 0; }
.prod h3 a { color: var(--ink); }
.prod .sh { color: var(--muted); font-size: .9em; margin: 0; flex: 1; }
.prod .pr { display: flex; align-items: baseline; gap: 10px; }
.prod .pr b { color: var(--blue); font-size: 1.2em; }
.prod .pr s { color: var(--muted); font-size: .9em; }
.prod .ft { padding: 0 16px 16px; }

/* المميزات */
.why { text-align: center; padding: 26px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.why .ic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--orange-l); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.6em; }
.why h3 { font-size: 1.1em; }
.why p { color: var(--muted); margin: 0; font-size: .95em; }

/* آراء العملاء */
.tst { background: #fff; border-radius: var(--r); padding: 22px; border: 1px solid var(--line); }
.tst .stars { color: #f59e0b; margin-bottom: 8px; }
.tst p { margin: 0 0 14px; }
.tst .who { display: flex; gap: 10px; align-items: center; }
.tst .av { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.tst .who span { display: block; color: var(--muted); font-size: .85em; line-height: 1.3; }

/* شريط برتقالي */
.cta { background: linear-gradient(135deg, var(--orange), var(--orange-d)); color: #fff; border-radius: 20px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { margin: 0 0 4px; font-size: 1.7em; }
.cta p { margin: 0; color: #ffedd5; }

/* عناوين الصفحات */
.page-head { background: linear-gradient(135deg, var(--blue-d), var(--blue)); color: #fff; padding: 40px 0; }
.page-head h1 { font-size: 2em; margin: 0; }
.page-head p { color: #dbeafe; margin: 6px 0 0; }
.crumbs { font-size: .9em; color: #bfdbfe; margin-bottom: 6px; }
.crumbs a { color: #fff; }

/* الاستور */
.store { display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding: 32px 0 64px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: sticky; top: 90px; }
.side h4 { font-size: 1em; margin: 0 0 10px; }
.side a.cat-l { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.side a.cat-l:hover, .side a.cat-l.on { background: var(--blue-l); color: var(--blue); }
.side a.cat-l i { width: 20px; text-align: center; color: var(--blue); }
.side .sep { height: 1px; background: var(--line); margin: 14px 0; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); margin-inline-end: auto; }

/* الفورمات */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .95em; }
.inp, input.inp, select.inp, textarea.inp { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.inp:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-m); }
textarea.inp { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.msg.ok { background: #dcfce7; color: #166534; }
.msg.err { background: #fee2e2; color: #991b1b; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { font-size: 1.15em; }

/* صفحة المنتج */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px 0; }
.gal .main { aspect-ratio: 4/3; background: var(--blue-l); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.gal .main img { width: 100%; height: 100%; object-fit: contain; }
.gal .th { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gal .th img { width: 74px; height: 56px; object-fit: contain; border: 2px solid var(--line); border-radius: 8px; background: var(--blue-l); cursor: pointer; }
.gal .th img.on { border-color: var(--orange); }
.pd .price-big { font-size: 2em; font-weight: 800; color: var(--blue); }
.pd .price-big s { font-size: .5em; color: var(--muted); font-weight: 400; margin-inline-start: 10px; }
.stock-ok { color: var(--ok); font-weight: 700; } .stock-no { color: var(--err); font-weight: 700; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: var(--blue-l); color: var(--blue); font-size: 1.2em; cursor: pointer; }
.qty input { width: 56px; text-align: center; border: 0; font: inherit; }
table.specs, table.t { width: 100%; border-collapse: collapse; }
table.specs td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.specs td:first-child { color: var(--muted); width: 40%; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; }
.feat-list li i { color: var(--orange); margin-top: 6px; }

/* السلة */
table.t th, table.t td { padding: 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
table.t th { background: var(--soft); font-size: .9em; color: var(--muted); }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 64px; height: 48px; object-fit: contain; background: var(--blue-l); border-radius: 8px; }
.sum { position: sticky; top: 90px; }
.sum .ln { display: flex; justify-content: space-between; padding: 6px 0; }
.sum .tot { border-top: 2px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.2em; font-weight: 800; color: var(--blue); }
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; padding: 32px 0 64px; align-items: start; }
.pay-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-l); }
.pay-opt small { display: block; color: var(--muted); }
.st { display: inline-block; padding: 2px 12px; border-radius: 99px; font-size: .85em; font-weight: 700; }
.st0 { background: var(--orange-l); color: var(--orange-d); } .st1 { background: var(--blue-m); color: var(--blue-d); }
.st2 { background: #e0e7ff; color: #3730a3; } .st3 { background: #dcfce7; color: #166534; } .st4 { background: #fee2e2; color: #991b1b; }

/* أسئلة */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; color: var(--orange); font-size: 1.3em; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* الفوتر */
footer.site { background: var(--ink); color: #94a3b8; padding: 50px 0 0; margin-top: 0; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
footer.site h4 { color: #fff; font-size: 1.05em; margin-bottom: 14px; }
footer.site a { color: #cbd5e1; display: block; padding: 3px 0; }
footer.site a:hover { color: var(--orange); }
footer.site .soc { display: flex; gap: 10px; margin-top: 12px; }
footer.site .soc a { width: 38px; height: 38px; border-radius: 50%; background: #1e293b; display: flex; align-items: center; justify-content: center; padding: 0; }
footer.site .bottom { border-top: 1px solid #1e293b; margin-top: 36px; padding: 16px 0; text-align: center; font-size: .9em; }
.wa-float { position: fixed; bottom: 20px; inset-inline-start: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8em; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 60; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 3em; color: var(--blue-m); margin-bottom: 10px; display: block; }

/* الموبايل */
@media (max-width: 980px) {
    .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); }
    .hero .wrap, .pd, .cart-grid, .store { grid-template-columns: 1fr; }
    .side, .sum { position: static; }
    footer.site .cols { grid-template-columns: 1fr 1fr; }
    .menu-tg { display: block; }
    nav.main { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--sh); }
    nav.main.open { display: flex; }
    header.site .wrap { position: relative; }
    .hdr-acts { margin-inline-start: auto; }
}
@media (max-width: 600px) {
    .g4, .g3, .g2, .row2, .feat-list { grid-template-columns: 1fr; }
    .prod-grid.g3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .prod .bd { padding: 10px; } .prod .ft { padding: 0 10px 10px; } .prod .sh { display: none; }
    section.sec { padding: 44px 0; }
    .hero .wrap { padding: 40px 0; }
    .cta { padding: 26px; }
    .slide .in { padding: 30px 22px; } .slide h2 { font-size: 1.5em; }
    footer.site .cols { grid-template-columns: 1fr; }
    .topline .tl-hide { display: none; }
    .logo img { height: 54px; }
    .hdr-acts .btn { display: none; }
    table.t.resp thead { display: none; }
    table.t.resp tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
    table.t.resp td { display: flex; justify-content: space-between; border: 0; padding: 6px 4px; }
    table.t.resp td::before { content: attr(data-l); color: var(--muted); font-size: .9em; }
}
@media print { header.site, footer.site, .topline, .wa-float, .no-print { display: none !important; } }

/* شاشات البرامج + تكبير الصور */
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.shot .shot-img { display: block; aspect-ratio: 16/10; background: var(--soft); overflow: hidden; cursor: zoom-in; }
.shot .shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: .3s; }
.shot:hover .shot-img img { transform: scale(1.04); }
.shot figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.shot figcaption b { font-size: .98em; }
.shot figcaption span { color: var(--muted); font-size: .88em; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g4.shots .shot figcaption { padding: 8px 10px; }
.lb { position: fixed; inset: 0; background: rgba(15,23,42,.9); z-index: 100; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; gap: 10px; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; }
.lb .cap { color: #fff; font-weight: 700; }
.lb button { position: absolute; top: 14px; inset-inline-end: 18px; background: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.3em; cursor: pointer; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.9); border: 0; font-size: 1.4em; cursor: pointer; }
.lb .prev { inset-inline-start: 14px; } .lb .next { inset-inline-end: 14px; }
/* حلول المراقبة والأمان */
.sol { position: relative; border-radius: var(--r); overflow: hidden; color: #fff; padding: 26px 22px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: linear-gradient(160deg, var(--c1), var(--c2)); transition: .2s; }
.sol:hover { transform: translateY(-4px); box-shadow: var(--sh); color: #fff; }
.sol .ic { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 2.6em; opacity: .9; }
.sol h3 { margin: 0; font-size: 1.2em; }
.sol p { margin: 0; color: rgba(255,255,255,.85); font-size: .92em; }
.sol .go { font-weight: 700; color: #fff; font-size: .9em; }