/* Ze Store — اطلب منتج v1.1 */
/* الصفحة بعرض كامل من غير العمود الجانبي */
body.zsr-page .sidebar-container, body.zsr-page aside.sidebar-container, body.zsr-page .wd-sidebar { display: none !important; }
body.zsr-page .site-content, body.zsr-page .wd-content-layout > .site-content { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.zsr, .zsr-fab, .zsr-empty {
    --zsr-surface: var(--zl-242428,#242428); --zsr-field: var(--zl-1c1c1f,#1c1c1f); --zsr-line: var(--zl-b4,#36363d);
    --zsr-text: var(--zt-f3f3f5,#f3f3f5); --zsr-muted: var(--zt-b4,#a2a2ab); --zsr-accent: #7b52f5;
    --zsr-ok: #31cf70; --zsr-err: #ff6873;
}
.zsr { direction: rtl; color: var(--zsr-text); display: flex; flex-direction: column; gap: 18px; max-width: 680px; margin: 0 auto; scroll-margin-top: 90px; }
.zsr *, .zsr *::before, .zsr *::after { box-sizing: border-box; }
.zsr-lead { margin: 0; color: var(--zt-b2,#cfcfd4); line-height: 1.8; font-size: 15px; }
.zsr-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.zsr-step { background: var(--zsr-surface); border: 1px solid var(--zsr-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.zsr-step em { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: rgba(123,82,245,.2); color: #c9b8ff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.zsr-step b { font-size: 14px; color: var(--zt-ffffff,#fff); }
.zsr-step span { font-size: 12.5px; color: var(--zsr-muted); line-height: 1.6; }

.zsr-card { background: var(--zsr-surface); border: 1px solid var(--zsr-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.zsr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zsr-f { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--zsr-text); min-width: 0; margin: 0; }
.zsr-f small { font-weight: 400; color: var(--zsr-muted); }
.zsr-req { color: #ff5b66; }
.zsr-hint { font-weight: 400; font-size: 12.5px; color: var(--zsr-muted); }
.zsr input[type=text], .zsr input[type=tel], .zsr input[type=url], .zsr select, .zsr textarea {
    width: 100%; font: inherit; font-weight: 400; color: var(--zt-ffffff,#fff) !important; background: var(--zsr-field) !important;
    border: 1px solid var(--zsr-line) !important; border-radius: 12px !important; padding: 0 14px !important; min-height: 48px; box-shadow: none !important; margin: 0;
}
.zsr textarea { padding: 12px 14px !important; min-height: 90px; resize: vertical; }
.zsr input:focus, .zsr select:focus, .zsr textarea:focus { outline: none; border-color: var(--zsr-accent) !important; box-shadow: 0 0 0 3px rgba(123,82,245,.18) !important; }
.zsr input::placeholder, .zsr textarea::placeholder { color: #6d6d75; }
.zsr .zsr-bad, .zsr .zsr-up.zsr-bad { border-color: var(--zsr-err) !important; }
.zsr-tip { font-size: 12.5px; color: var(--zsr-err); font-weight: 600; }
.zsr .zsr-quiz { max-width: 160px; }
.zsr-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }
.zsr-card { position: relative; }

.zsr-up { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; border: 1px dashed var(--zl-4a4a52,#4a4a52); border-radius: 12px; background: var(--zsr-field); cursor: pointer; margin: 0; }
.zsr-up:hover { border-color: var(--zsr-accent); }
.zsr-up input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.zsr-up-empty { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.zsr-up-done { display: none; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; }
.zsr-up.is-done { border-style: solid; border-color: rgba(49,207,112,.55); }
.zsr-up.is-done .zsr-up-empty { display: none; }
.zsr-up.is-done .zsr-up-done { display: flex; }
.zsr-up-done img { width: 44px !important; height: 44px !important; object-fit: cover; border-radius: 8px; flex: none; }
.zsr-up-name { flex: 1; min-width: 0; color: var(--zsr-ok); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zsr-up-change { color: var(--zsr-muted); font-size: 12px; text-decoration: underline; font-weight: 400; }

.zsr-terms { background: var(--zsr-field); border: 1px solid var(--zsr-line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.85; color: var(--zt-b2,#d8d8dd); }
.zsr-terms strong { display: block; margin-bottom: 4px; color: var(--zt-ffffff,#fff); }
.zsr-terms ol { margin: 0; padding-inline-start: 20px; }
.zsr-terms b { color: var(--zt-ffffff,#fff); }
.zsr-terms li.is-key { color: #ffe08a; }
.zsr-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; cursor: pointer; margin: 0; }
.zsr-check input { width: 18px; height: 18px; accent-color: var(--zsr-accent); margin: 0; }

.zsr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 0; border-radius: 25px; background: var(--zsr-accent) !important; color: #fff !important; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none !important; }
.zsr-btn:hover { filter: brightness(1.08); }
.zsr-btn:focus-visible, .zsr-fab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.zsr-btn.is-ghost { background: var(--zl-2c2c31,#2c2c31) !important; }
.zsr-banner { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 700; }
.zsr-banner.is-err { background: rgba(255,104,115,.12); border: 1px solid rgba(255,104,115,.45); color: #ffb3b9; }
.zsr-banner.is-ok { background: rgba(49,207,112,.12); border: 1px solid rgba(49,207,112,.5); color: #bff3d2; }

/* الزرار العائم */
.zsr-fab {
    position: fixed; z-index: 390; inset-inline-start: 18px; bottom: 22px;
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
    border-radius: 22px; background: var(--zsr-accent); color: #fff !important; font-weight: 800; font-size: 13.5px;
    box-shadow: 0 8px 24px rgba(123,82,245,.45); text-decoration: none !important; direction: rtl;
    transition: transform .15s ease, filter .15s ease;
}
.zsr-fab:hover { transform: translateY(-2px); filter: brightness(1.08); }
@media (max-width: 1024px) {
    /* فوق شريط الموبايل اللي تحت (WoodMart toolbar) */
    .zsr-fab { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 12px; }
}

/* البحث مالقاش */
.zsr-empty { direction: rtl; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; padding: 28px 16px; border: 1px dashed var(--zsr-line); border-radius: 14px; margin: 18px auto; max-width: 560px; color: var(--zsr-text); }
.zsr-empty-ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(123,82,245,.16); display: grid; place-items: center; color: #c9b8ff; }
.zsr-empty h3 { margin: 0; font-size: 18px; color: var(--zt-ffffff,#fff); }
.zsr-empty p { margin: 0; font-size: 14px; color: var(--zsr-muted); line-height: 1.7; }
.zsr-empty .zsr-btn { min-height: 44px; font-size: 14.5px; }

/* علامة "جديد" في المنيو */
.zsr-new { display: inline-block; margin-inline-start: 6px; padding: 0 7px; border-radius: 999px; background: var(--zsr-accent, #7b52f5); color: #fff; font-size: 10.5px; line-height: 18px; vertical-align: middle; }

@media (max-width: 560px) {
    .zsr-row, .zsr-steps { grid-template-columns: 1fr; }
    .zsr-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .zsr-fab { transition: none; } }

/* فورم "تواصل معنا" (Contact Form 7) */
.wpcf7 fieldset.hidden-fields-container { display: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.zs-cf-note { margin: 0 0 16px !important; font-size: 14.5px; color: var(--zt-b2,#d8d8dd); }
.zs-cf-note a { color: #b9a3ff !important; font-weight: 800; text-decoration: underline !important; text-underline-offset: 3px; }

/* صفحة "تواصل معنا" */
.zsr-contact { max-width: 820px; }
.zsr-h2 { margin: 6px 0 -6px; font-size: 19px; font-weight: 800; color: var(--zt-ffffff,#fff); }
.zsr-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zsr-q { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--zsr-surface); border: 1px solid var(--zsr-line); color: var(--zsr-text) !important; text-decoration: none !important; transition: border-color .15s ease, transform .15s ease; min-width: 0; }
.zsr-q:hover { transform: translateY(-1px); border-color: var(--zsr-c); }
.zsr-q:focus-visible, .zsr-cc:focus-visible, .zsr-socials a:focus-visible, .zsr-pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.zsr-q i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--zsr-c) 18%, transparent); color: var(--zsr-c); font-style: normal; }
.zsr-q b { font-size: 15.5px; color: var(--zt-ffffff,#fff); }
.zsr-q span { font-size: 12.5px; color: var(--zsr-muted); line-height: 1.6; }
.zsr-q.is-wa { --zsr-c: #25D366; } .zsr-q.is-req { --zsr-c: #a98bff; } .zsr-q.is-dc { --zsr-c: #7983ff; }
.zsr-cf7 .wpcf7 { margin: 0; }
.zsr-cf7 .zs-cf-note { display: none; } /* الكروت فوق بتغني عنه */
.zsr-community { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zsr-cc { padding: 18px; border-radius: 14px; background: var(--zsr-surface); border: 1px solid var(--zsr-line); display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; color: var(--zsr-text) !important; text-decoration: none !important; }
.zsr-cc b { font-size: 16px; color: var(--zt-ffffff,#fff); }
.zsr-cc span { font-size: 13px; color: var(--zt-b2,#d0d0d6); line-height: 1.7; }
.zsr-cc.is-dc { background: #5865F2; border-color: #5865F2; }
.zsr-cc.is-dc span { color: var(--zt-b2,#e6e8ff); }
.zsr-socials { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.zsr-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--zsr-accent); display: grid; place-items: center; color: #c9b8ff !important; transition: background .15s ease; }
.zsr-socials a:hover { background: rgba(123,82,245,.2); }
.zsr-pill { display: inline-block; margin-top: 4px; padding: 7px 18px; border-radius: 999px; background: #ededf0; color: #141416 !important; font-size: 13px; font-weight: 800; text-decoration: none !important; }
@media (max-width: 760px) { .zsr-quick, .zsr-community { grid-template-columns: 1fr; } }
