:root { --brand: #0E8A8A; --brand-600: #0B7070; --brand-700: #085656; --brand-50: #E8F5F5; --brand-100: #CDE9E9; --ink: #16201F; --ink-2: #3F4B4A; --muted: #6F7B7A; --line: #DCE5E4; --bg: #F7FAFA; --pnl: #fff; --night: #0F1F1F; --green: #178A52; --red: #C8381F; --wa: #25D366; }
html[data-q-theme="gray"] { --bg: #ECEEF1; --pnl: #F7F8F9; --line: #D3D6DB; --brand-50: #E4EBEB; }
html[data-q-theme="dark"] { --bg: #0F1716; --pnl: #182221; --ink: #E9F0EF; --ink-2: #C5D0CF; --muted: #8FA09E; --line: #2B3836; --brand-50: #12302F; --brand-100: #1A4443; --brand-700: #5FD3D3; }
* { box-sizing: border-box; }
body { margin: 0; font: 400 16.5px/1.8 'Almarai', 'Segoe UI', Tahoma, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-700); text-decoration: none; } a:hover { text-decoration: underline; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.top { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { display: block; font-size: 1.1rem; line-height: 1.3; } .brand small { display: block; color: #9FC9C9; font-size: .75rem; }
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { color: #DDEAEA; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: .92rem; text-decoration: none !important; }
.nav a:hover { background: rgba(255, 255, 255, .1); }
.nav a.cta { background: var(--brand); color: #fff; } .nav a.cta:hover { background: var(--brand-600); }
.hero { background: linear-gradient(135deg, #0F1F1F, #134040); color: #EAF6F6; padding: 34px 0 44px; text-align: center; }
.hero h1 { margin: 0 0 6px; color: #fff; font-size: clamp(1.6rem, 4.4vw, 2.5rem); line-height: 1.4; } .hero h1 em { font-style: normal; color: #5FD3D3; }
.hero p { margin: 0 auto 18px; color: #B9D6D6; max-width: 620px; }
.sbox { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; background: #fff; padding: 8px; border-radius: 16px; max-width: 900px; margin: 0 auto; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .6); }
.sbox input, .sbox select { font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: #16201F; min-width: 0; width: 100%; }
.sbox .btn { white-space: nowrap; }
.hstats { margin: 14px auto 0; color: #9FC9C9; font-size: .88rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 800 .98rem 'Almarai', sans-serif; padding: 11px 20px; border-radius: 12px; border: 0; background: var(--brand); color: #fff !important; cursor: pointer; text-decoration: none !important; }
.btn:hover { background: var(--brand-600); } .btn[disabled] { opacity: .6; cursor: wait; }
.btn.sec { background: var(--pnl); color: var(--ink) !important; border: 1.5px solid var(--line); } .btn.sec:hover { border-color: var(--brand); color: var(--brand-700) !important; }
.btn.wa { background: var(--wa); } .btn.wa:hover { background: #1DA851; }
.btn.sm { padding: 7px 14px; font-size: .88rem; border-radius: 10px; }
.btn.bad { background: var(--red); }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; padding: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 28px 0 10px; } .sec-h h2 { margin: 0; font-size: 1.35rem; } .sec-h small { color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fgrid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--pnl); color: var(--ink); font: 700 .9rem 'Almarai', sans-serif; cursor: pointer; text-align: center; line-height: 1.4; }
.fgrid button i { font-style: normal; font-size: 1.6rem; } .fgrid button small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.fgrid button:hover, .fgrid button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); }
.fgrid[data-more] button:nth-child(n+19) { display: none; } .fgrid.all button { display: flex !important; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 12px; }
.filters select, .filters input { font: inherit; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--pnl); color: var(--ink); }
.filters .chk { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--ink-2); cursor: pointer; } .filters .chk input { accent-color: var(--brand); }
.count { color: var(--muted); font-size: .9rem; margin: 4px 0 10px; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mc { display: flex; gap: 12px; background: var(--pnl); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--ink); transition: .12s; position: relative; }
.mc:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(0, 0, 0, .5); text-decoration: none; }
.mc .lg { flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--brand-50); }
.mc .av { display: grid; place-items: center; font: 800 1.5rem 'Almarai', sans-serif; color: var(--brand-700); }
.mc h3 { margin: 0; font-size: 1.05rem; line-height: 1.5; } .mc h3 a { color: inherit; }
.mc .f { color: var(--brand-700); font-size: .85rem; font-weight: 700; } .mc .f span { color: var(--muted); font-weight: 400; }
.mc .l { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.mc .tg { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; } .mc .tg span { font-size: .74rem; font-weight: 800; padding: 1px 9px; border-radius: 99px; background: var(--brand-50); color: var(--brand-700); }
.mc .ac { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mc .ac a { font-size: .82rem; font-weight: 800; padding: 6px 12px; border-radius: 9px; border: 1.5px solid var(--line); color: var(--ink); background: var(--pnl); text-decoration: none; }
.mc .ac a.ph { border-color: var(--brand); color: var(--brand-700); } .mc .ac a.wa { border-color: var(--wa); color: #128C4A; }
.mc .ac a:hover { background: var(--brand-50); }
.empty { padding: 30px; text-align: center; color: var(--muted); background: var(--pnl); border: 1px dashed var(--line); border-radius: 16px; }
.more { text-align: center; margin: 18px 0 30px; }
.seen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; font-size: .85rem; } .seen b { color: var(--muted); }
.seen a { padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--pnl); color: var(--ink-2); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
.how div { background: var(--pnl); border: 1px solid var(--line); border-radius: 16px; padding: 18px; } .how b { display: block; font-size: 1.05rem; margin-bottom: 4px; } .how i { font-style: normal; font-size: 1.6rem; }
.cta-box { margin: 20px 0 40px; padding: 26px; border-radius: 18px; background: linear-gradient(135deg, #0F1F1F, #134040); color: #EAF6F6; text-align: center; } .cta-box h2 { margin: 0 0 6px; color: #fff; } .cta-box p { margin: 0 0 14px; color: #B9D6D6; }
.card { background: var(--pnl); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin: 20px 0; } .card h1 { margin: 0 0 6px; font-size: 1.5rem; } .card h2 { font-size: 1.15rem; margin: 20px 0 10px; }
.f { display: grid; gap: 5px; margin-bottom: 14px; } .f label, .f > span.lbl { font-weight: 700; font-size: .92rem; } .f small { color: var(--muted); font-size: .8rem; }
.f input, .f select, .f textarea { width: 100%; font: inherit; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 138, 138, .18); }
.f textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.chk { display: inline-flex; gap: 7px; align-items: center; font-size: .95rem; cursor: pointer; } .chk input { accent-color: var(--brand); width: 17px; height: 17px; }
.err { color: var(--red); font-weight: 700; min-height: 1.4em; } .ok { color: var(--green); font-weight: 700; }
.note { padding: 10px 14px; border-radius: 10px; background: var(--brand-50); font-size: .9rem; margin: 10px 0; }
.gate { text-align: center; padding: 40px 20px; } .gate h1 { font-size: 1.6rem; } .gate p { color: var(--ink-2); max-width: 560px; margin: 0 auto 16px; }
.ptable { width: 100%; border-collapse: collapse; } .ptable th, .ptable td { padding: 4px; text-align: start; } .ptable th { font-size: .82rem; color: var(--muted); font-weight: 700; }
.ptable input { width: 100%; padding: 7px 9px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: var(--bg); color: var(--ink); }
.ptable td.x { width: 36px; } .ptable button.del { border: 0; background: none; color: var(--red); cursor: pointer; font-size: 1.1rem; }
.ptable tr.drag { opacity: .5; }
.mystat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; } .mystat div { background: var(--brand-50); border-radius: 12px; padding: 10px 14px; } .mystat b { display: block; font-size: 1.4rem; } .mystat span { color: var(--muted); font-size: .82rem; }
.mylink { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border: 1px dashed var(--brand); border-radius: 12px; background: var(--brand-50); font-size: .92rem; } .mylink code { direction: ltr; font-size: .85rem; }
.logo-ed { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .logo-ed img, .logo-ed .ph { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; background: var(--brand-50); display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.tabs { display: flex; gap: 4px; background: var(--brand-50); padding: 4px; border-radius: 12px; margin: 14px 0; flex-wrap: wrap; } .tabs button { flex: 1; min-width: 120px; border: 0; background: transparent; font: 800 .9rem 'Almarai', sans-serif; padding: 9px; border-radius: 9px; color: var(--ink-2); cursor: pointer; } .tabs button[aria-selected="true"] { background: var(--pnl); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .3); }
.foot { background: var(--night); color: #B9D6D6; padding: 20px 0; font-size: .88rem; margin-top: 30px; } .foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; } .foot a { color: #9FD9D9; } .foot .fn { flex-basis: 100%; color: #7FA3A3; font-size: .8rem; }
/* صفحة التاجر */
.mp { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; padding: 18px 0 30px; }
.crumbs { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.mcard { background: var(--pnl); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.mhead { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.mhead .logo { width: 110px; height: 110px; border-radius: 20px; object-fit: cover; background: var(--brand-50); flex: none; } .mhead .av { display: grid; place-items: center; font: 800 2.6rem 'Almarai', sans-serif; color: var(--brand-700); }
.mhead h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 3.6vw, 2rem); line-height: 1.4; }
.mf { color: var(--brand-700); font-weight: 800; } .mf .spec { color: var(--muted); font-weight: 400; margin-inline-start: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .88rem; margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .tags span { font-size: .8rem; font-weight: 800; padding: 2px 10px; border-radius: 99px; background: var(--brand-50); color: var(--brand-700); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 10px; } .info div { background: var(--brand-50); border-radius: 12px; padding: 10px 14px; } .info dt { font-size: .8rem; color: var(--muted); } .info dd { margin: 0; font-weight: 700; } .info dd:empty::before { content: "—"; color: var(--muted); font-weight: 400; }
.about h2, .prices h2, .branches h2 { font-size: 1.15rem; margin: 22px 0 8px; } .prices h2 small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.prices table { width: 100%; border-collapse: collapse; background: var(--pnl); } .prices th, .prices td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: start; font-size: .95rem; } .prices th { background: var(--brand-50); font-size: .85rem; } .prices td.pr { font-weight: 800; color: var(--brand-700); white-space: nowrap; }
.prices .pg { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; } .prices .pg h3 { margin: 0; padding: 8px 12px; font-size: .95rem; background: var(--brand-100); }
.pnote { color: var(--muted); font-size: .82rem; }
.branches ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .branches li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.rep { margin: 18px 0 0; }
.side { background: var(--pnl); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; position: sticky; top: 80px; } .side h3 { margin: 0 0 6px; } .side p { color: var(--ink-2); font-size: .92rem; }
.toast { position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 800; z-index: 9999; }
[hidden] { display: none !important; }
@media (max-width: 860px) { .sbox { grid-template-columns: 1fr 1fr; } .sbox input { grid-column: 1 / -1; } .how, .mystat { grid-template-columns: 1fr; } .mp { grid-template-columns: 1fr; } .side { position: static; } .row3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .info { grid-template-columns: 1fr; } .nav a:not(.cta) { display: none; } .list { grid-template-columns: 1fr; } }
@media print { .top, .foot, .acts, .side, .rep { display: none !important; } .mp { display: block; } }
