/* =========================================================================
   متجر فكرة — التنسيقات
   الألوان من اللوجو: أصفر اللمبة + الرمادي الغامق بتاع الحروف.
   كل الألوان والخطوط متعرّفة هنا بس — أي تعديل في الهوية بيبدأ من :root.
   ========================================================================= */

:root {
    /* الهوية */
    --brand: #F6C031;        /* أصفر اللمبة */
    --brand-deep: #DDA51C;   /* hover وحدود على الأصفر */
    --brand-soft: #FDF3D6;   /* خلفية شارة/تنبيه خفيف */
    --ink: #252524;          /* رمادي حروف اللوجو */
    --ink-2: #5B5A56;
    --ink-3: #8A8984;

    /* الأسطح */
    --bg: #F7F7F4;
    --surface: #FFFFFF;
    --sunk: #EFEEEA;
    --line: #E3E2DD;
    --dark: #1D1D1C;         /* الهيرو والفوتر وصفحة «قريبًا» */
    --on-dark: #F5F4F0;
    --on-dark-2: #B9B8B2;

    /* الحالة */
    --ok: #1E7B4F;
    --bad: #A4381D;
    --wa: #178A48;           /* واتساب — غامق كفاية للكلام الأبيض */

    /* الحيطة */
    --wall: #ECEAE4;
    --floor: #CFC8BC;

    /* الخطوط */
    --font: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
    --font-display: "Readex Pro", "IBM Plex Sans Arabic", Tahoma, sans-serif;

    --radius: 10px;
    --radius-lg: 16px;
    --wrap: 1180px;

    /* الخانات والظلال */
    --field-bg: #FCFCFA;
    --field-line: #E0DFD8;
    --shadow-sm: 0 1px 2px rgba(37, 37, 36, .05), 0 2px 8px rgba(37, 37, 36, .04);
    --shadow-md: 0 2px 4px rgba(37, 37, 36, .04), 0 12px 28px rgba(37, 37, 36, .08);
    --shadow-y: 0 6px 18px rgba(221, 165, 28, .35);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.35;
    text-wrap: balance;
    margin: 0;
}
h2 { font-size: clamp(22px, 3vw, 28px); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 16px;
}
.muted { color: var(--ink-2); }
.link { font-weight: 600; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.icon { flex: none; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--brand); padding: 8px 14px; border-radius: 8px; z-index: 50; font-weight: 600; }
.skip:focus { top: 8px; }

/* ── الزراير ─────────────────────────────────────────────── */
/* الأصفر عليه كتابة غامقة دايمًا (الأبيض على الأصفر مش بيتقري) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    background: var(--brand);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--brand-deep);
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--lg { padding: 13px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--ghost { background: var(--surface); border-color: var(--line); }
.btn--ghost:hover { background: var(--sunk); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn--wa:hover { background: #127a3e; }

.badge {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.7;
}
.badge--offer { background: var(--ink); color: var(--brand); }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-current="page"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* ── الهيدر ──────────────────────────────────────────────── */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; flex: none; }
.brand__logo { height: 48px; width: auto; }
.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav__list a { text-decoration: none; font-weight: 500; padding-block: 6px; display: inline-block; }
.nav__list a:hover, .nav__list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-header__tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.cart-btn, .nav-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    text-decoration: none;
    cursor: pointer;
}
.cart-btn__count {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 8px 16px 16px;
        display: none;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
    }
    .nav.is-open { display: block; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__list a { padding-block: 10px; display: block; }
    .brand__logo { height: 42px; }
}

.site-main { min-height: 60vh; }
.page-body { padding-block: 28px 64px; }

/* ── مسار التنقل + رأس الصفحة ─────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); }
.page-head p { margin: 0; color: var(--ink-2); max-width: 65ch; }
.page-head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── الأقسام ─────────────────────────────────────────────── */
.section { padding-block: 48px 0; }
.section--tight { padding-block: 32px 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }

.empty {
    text-align: center;
    padding: 48px 16px;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--ink-2);
}
.empty p { margin: 0; max-width: 50ch; }
.empty--404 h1 { color: var(--ink); font-size: clamp(26px, 4vw, 34px); }
.empty__code { font-family: var(--font-display); font-size: 64px; font-weight: 700; color: var(--brand-deep); line-height: 1; }
.empty__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── الهيرو ──────────────────────────────────────────────── */
.hero { background: var(--dark); color: var(--on-dark); }
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 40px;
    align-items: center;
    padding-block: 48px 56px;
}
.hero__eyebrow { margin: 0 0 10px; color: var(--brand); font-weight: 600; font-size: 14px; }
.hero__title { font-size: clamp(32px, 5vw, 52px); line-height: 1.25; }
.hero__title mark { background: var(--brand); color: var(--ink); padding-inline: 10px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__lead { color: var(--on-dark-2); font-size: 17px; max-width: 48ch; margin: 16px 0 24px; }
.hero__cap { margin: 10px 0 0; font-size: 13px; color: var(--on-dark-2); text-align: center; }
@media (max-width: 860px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: 32px 40px; gap: 28px; }
}

.quick {
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: grid;
    gap: 12px;
    max-width: 480px;
}
.quick__row { display: flex; align-items: flex-end; gap: 10px; }
.quick__f { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.quick__x { padding-bottom: 10px; color: var(--ink-3); font-size: 20px; }
/* خانات الكتابة بس — مربعات الاختيار والملفات ليها شكلها (كان بيتطبق عليها العرض 100٪ فبتبوّظ الاختيارات) */
.quick input, .quick select, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1.5px solid var(--field-line);
    border-radius: 12px;
    background: var(--field-bg);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.quick input:hover, .quick select:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: #C9C7BE; }
.quick input:focus, .quick select:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand-deep);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(246, 192, 49, .28);
}
.quick input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #A9A8A2; }
/* سهم القوايم المنسدلة ناحية الشمال (RTL) */
.quick select, .field select {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B5A56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    cursor: pointer;
}

/* ── الحيطة: اليافطة بمقاسها الحقيقي جنب إنسان 170 سم ─────── */
.fks-wall {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .55), transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(0, 0, 0, .04), transparent 50%),
        var(--wall);
    color: var(--ink);
}
.fks-wall__scene { position: absolute; inset: 0 0 7% 0; }
.fks-wall__floor {
    position: absolute;
    inset: auto 0 0 0;
    height: 7%;
    background: linear-gradient(var(--floor), #bfb7a9);
    border-top: 3px solid #f4f2ee;
}
.fks-wall__person { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; }
/* العرض والارتفاع بيتحسبوا بالسنتي في store.js (46×170) — الرسمة بتملاهم بالظبط */
.fks-wall__person svg { height: 100%; width: 100%; fill: rgba(37, 37, 36, .22); }
.fks-wall__person span { position: absolute; top: -18px; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.fks-wall__sign { position: absolute; display: flex; align-items: center; justify-content: center; transition: all .25s ease; }
.fks-wall__art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.fks-wall__art img { max-width: 80%; max-height: 74%; object-fit: contain; }
.fks-wall__ph { font-family: var(--font-display); font-weight: 700; color: var(--ink); opacity: .75; text-align: center; line-height: 1.2; padding: 4px; }
.fks-wall__dim { position: absolute; color: var(--ink-2); font-size: 11.5px; font-variant-numeric: tabular-nums; pointer-events: none; transition: all .25s ease; }
.fks-wall__dim--w { height: 0; border-top: 1px dashed var(--ink-3); }
.fks-wall__dim--w span { position: absolute; inset-inline: 0; bottom: 2px; text-align: center; white-space: nowrap; }
.fks-wall__dim--h { width: 0; border-left: 1px dashed var(--ink-3); }
.fks-wall__dim--h span { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .fks-wall__sign, .fks-wall__dim { transition: none; } }

/* مسامير التثبيت (أكريليك وبديله والخشب) — لونها من --screw */
/* المقاس والمكان بالسنتي من store.js: --sd القطر (2 سم) و --sx/--sy البعد عن الحرف — كلهم نسبة من اليافطة */
.fks-screw { display: none; position: absolute; z-index: 2; width: max(3px, var(--sd, 3%)); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .55), transparent 58%), var(--screw, #C9CCD0);
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25), .5px 1px 1.5px rgba(0, 0, 0, .28); transform: translate(-50%, -50%); }
.fks-sign--acrylic .fks-screw, .fks-sign--acrylic_alt .fks-screw, .fks-sign--wood .fks-screw { display: block; }
.fks-screw--1 { left: var(--sx, 6%); top: var(--sy, 6%); }
.fks-screw--2 { left: calc(100% - var(--sx, 6%)); top: var(--sy, 6%); }
.fks-screw--3 { left: var(--sx, 6%); top: calc(100% - var(--sy, 6%)); }
.fks-screw--4 { left: calc(100% - var(--sx, 6%)); top: calc(100% - var(--sy, 6%)); }
/* دايرة: المسامير على القطرين */
.fks-wall__sign.is-circle { border-radius: 50% !important; }
.is-circle .fks-screw--1 { left: 50%; top: var(--sy, 6%); }
.is-circle .fks-screw--2 { left: calc(100% - var(--sx, 6%)); top: 50%; }
.is-circle .fks-screw--3 { left: 50%; top: calc(100% - var(--sy, 6%)); }
.is-circle .fks-screw--4 { left: var(--sx, 6%); top: 50%; }
.is-circle .fks-wall__art img { max-width: 64%; max-height: 64%; }
/* لون الحروف/الكلام */
.fks-wall__sign .fks-wall__ph { color: var(--sign-ink, var(--ink)); opacity: 1; }
.fks-wall__ph--sub { display: block; margin-top: 2px; font-size: 10px; }
.fks-wall__art:has(img) { flex-direction: column; }
.fks-sign--acrylic {
    background: linear-gradient(135deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .4) 42%, rgba(255, 255, 255, .7) 58%, rgba(255, 255, 255, .5) 100%);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 6px 10px 18px rgba(0, 0, 0, .16), inset 0 0 0 1px rgba(0, 0, 0, .05);
    border-radius: 3px;
}
.fks-sign--acrylic_alt {
    background: #F8F8F6;
    box-shadow: 5px 8px 14px rgba(0, 0, 0, .14);
    border-radius: 2px;
}
.fks-sign--wood {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .12)),
        repeating-linear-gradient(90deg, #B47D48 0 7px, #A9713D 7px 10px, #BD8854 10px 17px, #A56C39 17px 19px);
    box-shadow: 5px 9px 16px rgba(0, 0, 0, .22);
    border-radius: 3px;
}
.fks-sign--wood .fks-wall__art img { mix-blend-mode: multiply; filter: contrast(1.1); }
.fks-sign--wood .fks-wall__ph { color: var(--sign-ink, #3b2412); }
.fks-sign--printed { background: #fff; box-shadow: 3px 5px 10px rgba(0, 0, 0, .14); }
/* لون الضهر اللي العميل اختاره (فوقه لمعة خفيفة للأكريليك) */
.fks-sign--acrylic.has-bg { background: linear-gradient(135deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .16) 58%, rgba(255, 255, 255, 0) 100%), var(--sign-bg); border-color: rgba(255, 255, 255, .5); }
.fks-sign--acrylic_alt.has-bg, .fks-sign--printed.has-bg { background: var(--sign-bg); }
.fks-sign--printed .fks-wall__art img { max-width: 92%; max-height: 88%; }
.fks-sign--raised { background: transparent; }
.fks-sign--raised .fks-wall__art img { max-width: 100%; max-height: 100%; filter: drop-shadow(4px 6px 4px rgba(0, 0, 0, .35)); }
.fks-sign--raised .fks-wall__ph { text-shadow: 3px 4px 4px rgba(0, 0, 0, .3); opacity: .9; }

/* ── كروت المنتجات ───────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid--catalogs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }

.pcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pcard:hover { border-color: var(--ink-3); box-shadow: 0 10px 24px rgba(0, 0, 0, .06); }
/* overflow: hidden لازم — من غيره الصورة الطويلة بتمط المربع وتكسر نسبة 4:3 */
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sunk); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__noimg { display: flex; align-items: center; justify-content: center; height: 100%; }
.pcard__noimg .pcard__ph { width: 45%; height: auto; object-fit: contain; opacity: .35; }
.pcard__media .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__name { font-size: 18px; }
.pcard__name a { text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; } /* الكارت كله بيفتح المنتج */
.pcard { position: relative; }
.pcard__tag { margin: 0; color: var(--ink-2); font-size: 14px; }
.pcard__price { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.pcard__price b { font-family: var(--font-display); font-size: 17px; }
.pcard__price span { font-size: 13px; color: var(--ink-3); }

.kcard { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.kcard__cover {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sunk);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}
.kcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.kcard__cover .icon { width: 40px; height: 40px; }
.kcard__title { font-weight: 600; }
.kcard__meta { font-size: 13px; color: var(--ink-3); }

/* ── العروض ──────────────────────────────────────────────── */
.offer-band {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--brand-soft);
    border: 1px solid #F1DFA9;
    text-decoration: none;
    flex-wrap: wrap;
}
.offer-band__img { width: 180px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.offer-band__body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; flex: 1; min-width: 220px; }
.offer-band__body b { font-family: var(--font-display); font-size: 20px; }
.offer-band__body small { color: var(--ink-2); }
.offer-band__more { font-weight: 600; font-size: 14px; }

.offers { display: flex; flex-direction: column; gap: 18px; }
.offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.offer:not(:has(.offer__img)) { grid-template-columns: minmax(0, 1fr); }
.offer__img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.offer__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.offer__body p { margin: 0; color: var(--ink-2); }
.offer__terms { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 700px) { .offer { grid-template-columns: minmax(0, 1fr); } }

/* ── الخطوات ─────────────────────────────────────────────── */
.section--steps h2 { margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li {
    counter-increment: s;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.steps li::before {
    content: counter(s);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 8px;
}
.steps b { font-family: var(--font-display); font-size: 17px; }
.steps span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.cta {
    background: var(--dark);
    color: var(--on-dark);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.cta p { margin: 6px 0 0; color: var(--on-dark-2); }

/* ── صفحة المنتج ─────────────────────────────────────────── */
.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: start;
}
.product__visual { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
/* موبايل (زي أي متجر): الصور ← الاسم والسعر ← المقاس ← الحيطة (تحت المقاس على طول) ← باقي الخانات */
@media (max-width: 900px) {
    .product { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
    .product > .product__config, .product > .product__visual { display: contents; }
    .product > .product__config > * { order: 6; }
    .product > .product__visual > .gallery { order: 1; }
    .product > .product__config > .product__title,
    .product > .product__config > .product__tag,
    .product > .product__config > .product__offer { order: 2; }
    .product > .product__config > .price-box { order: 3; }
    .product > .product__visual > .visual-card { order: 4; }
    .product .product__tag { margin-top: -10px; }
    .product__title { font-size: 26px; }
    .gallery__thumbs button { width: 60px; height: 60px; }
}
.product__config { display: flex; flex-direction: column; gap: 18px; }
.product__title { font-size: clamp(28px, 4vw, 38px); }
.product__tag { margin: -12px 0 0; color: var(--ink-2); font-size: 17px; }
.product__offer { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.product__offer small { color: var(--ink-2); font-weight: 400; }

/* السعر: الإجمالي والسعر القديم والشارة في سطر واحد، والحسبة تحت */
.price-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    box-shadow: var(--shadow-sm);
}
.fks-price__total { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.fks-price__was { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); white-space: nowrap; }
.fks-price__was s { font-size: 16px; }
.fks-price__was .fks-badge { background: var(--ink); color: var(--brand); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; line-height: 1.6; }
.fks-price__calc { flex-basis: 100%; font-size: 13.5px; color: var(--ink-2); padding-top: 8px; border-top: 1px dashed var(--line); }
.fks-price__note { flex-basis: 100%; font-size: 13.5px; color: #8A6412; background: var(--brand-soft); border-radius: 8px; padding: 4px 10px; }
@media (max-width: 560px) { .fks-price__total { font-size: 28px; } }

/* شريط الطلب الثابت (موبايل بس) */
.buybar { display: none; }
@media (max-width: 900px) {
    .buybar {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 45;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(37, 37, 36, .08);
        transform: translateY(110%);
        transition: transform .2s ease;
    }
    .buybar.on { transform: none; }
    .buybar__price { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
    .buybar__price small { font-size: 12px; color: var(--ink-3); }
    .buybar__price b { font-family: var(--font-display); font-size: 21px; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .buybar .btn { flex: 1; min-height: 50px; }
    body.has-buybar .wa-float { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
    body.has-buybar .fks-toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
    body.has-buybar .site-footer { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .buybar { transition: none; } }

.field-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field-group legend, .field-group__label { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 2px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; }
.field--block textarea { resize: vertical; }
.size-row { display: flex; align-items: flex-end; gap: 10px; }
.size-row__x { padding-bottom: 10px; color: var(--ink-3); font-size: 20px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.field-hint { margin: 0; font-size: 13.5px; color: var(--bad); }

.fks-qty { display: inline-flex; align-items: stretch; border: 1px solid #D4D3CD; border-radius: var(--radius); overflow: hidden; align-self: flex-start; background: var(--surface); }
.fks-qty button { width: 44px; border: 0; background: var(--sunk); font-size: 20px; cursor: pointer; }
.fks-qty button:hover { background: var(--line); }
.fks-qty input { width: 64px; border: 0; text-align: center; font-size: 16px; -moz-appearance: textfield; appearance: textfield; }
.fks-qty input::-webkit-inner-spin-button, .fks-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fks-qty span { min-width: 40px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.fks-qty--sm button { width: 34px; font-size: 17px; }

.upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px dashed #C9C7BF;
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    position: relative;
}
.upload:hover { border-color: var(--brand-deep); }
.upload:focus-within { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.upload span { display: flex; flex-direction: column; line-height: 1.5; }
.upload small { color: var(--ink-3); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fks-logo-status { margin: 0; font-size: 14px; color: var(--ink-2); min-height: 1em; }
.fks-logo-status:empty { display: none; }
.fks-logo-status.ok { color: var(--ok); font-weight: 600; }
.fks-logo-status.bad { color: var(--bad); font-weight: 600; }

.product__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product__actions .btn--lg { flex: 1 1 220px; }
.product__facts { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 14.5px; }
.product__facts li { display: flex; align-items: center; gap: 10px; }

.visual-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; }

/* 🎨 «صمّم يافطتك»: المعاينة + تبويبات + لوحة واحدة مفتوحة (كله في شاشة موبايل واحدة) */
.studio__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-inline: -2px; }
.studio__tabs::-webkit-scrollbar { display: none; }
.studio__tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--field-line); background: var(--field-bg); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.studio__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.studio__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sunk); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 0 0 2.5px rgba(0, 0, 0, .15); flex: none; }
.look { display: flex; flex-direction: column; min-height: 96px; }
.studio__panel { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 2px; }
.studio__panel[hidden] { display: none; }
.studio .size-row .field { gap: 4px; font-size: 13px; }
.studio .presets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.studio .presets::-webkit-scrollbar { display: none; }
.studio .presets .chip { flex: none; }
.look__row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.look__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.look__opts { display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 4px 3px 6px; }
.look__opts::-webkit-scrollbar { display: none; }
.look__opts > * { flex: none; }
.sw { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; transition: box-shadow .15s ease, transform .15s ease; }
.sw:hover { transform: scale(1.08); }
.sw.on { box-shadow: 0 0 0 2px var(--ink); }
.sw.on::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .7)); }
.sw--clear { background: repeating-conic-gradient(#E6E5E0 0 25%, #fff 0 50%) 50% / 10px 10px; }
.sw--custom { background: conic-gradient(#e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c); overflow: hidden; }
.sw--custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.sw--custom.on { background: var(--c); }
.sw:focus-visible, .sw--custom:focus-within { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.look__shape { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--field-bg); font-size: 14px; font-weight: 500; cursor: pointer; }
.look__shape.on { border-color: var(--brand-deep); background: var(--brand-soft); font-weight: 600; }
.look__sq, .look__ci { width: 18px; height: 13px; border: 2px solid currentColor; border-radius: 3px; }
.look__ci { width: 15px; height: 15px; border-radius: 50%; }
.field input:disabled { background: var(--sunk); color: var(--ink-3); cursor: not-allowed; }
/* موبايل: المعاينة أوطى شوية عشان الكارت كله يبان في شاشة واحدة */
@media (max-width: 560px) {
    .studio { padding: 10px; gap: 10px; }
    .studio .visual-card__head span { display: none; }
}
.visual-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; padding-inline: 4px; }
.visual-card__head b { font-family: var(--font-display); }
.visual-card__head span { font-size: 13px; color: var(--ink-3); }

.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--sunk); }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: none; }
.gallery__thumbs button.on { border-color: var(--brand-deep); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.details { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.details h2 { font-size: 22px; margin-bottom: 10px; }
@media (max-width: 800px) { .details { grid-template-columns: minmax(0, 1fr); } }
.prose p { margin: 0 0 12px; max-width: 68ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* ── الكتالوج ────────────────────────────────────────────── */
.catalog-pages { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.catalog-page { margin: 0; max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.catalog-page img { width: 100%; border-radius: 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, .12); background: #fff; }
.catalog-page figcaption { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── السلة ───────────────────────────────────────────────── */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .cart { grid-template-columns: minmax(0, 1fr); } }
.cart__lines { display: flex; flex-direction: column; gap: 12px; }
.cart__lines[aria-busy="true"] { opacity: .6; }
.fks-line {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 12px;
}
.fks-line.is-bad { border-color: #F0C9BC; }
.fks-line__img { width: 76px; height: 76px; border-radius: var(--radius); overflow: hidden; background: var(--sunk); }
.fks-line__img img { width: 100%; height: 100%; object-fit: contain; }
.fks-line__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fks-line__body a { text-decoration: none; }
.fks-line__meta { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.fks-line__meta a { text-decoration: underline; }
.fks-line__body .fks-qty { margin-top: 6px; }
.fks-line__price { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fks-line__price s { color: var(--ink-3); font-size: 13px; }
.fks-line__price b { font-family: var(--font-display); }
.fks-line__rm { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 6px; }
.fks-line__rm:hover { background: var(--sunk); color: var(--bad); }
@media (max-width: 560px) {
    .fks-line { grid-template-columns: 60px minmax(0, 1fr) auto; }
    .fks-line__img { width: 60px; height: 60px; }
    .fks-line__price { grid-column: 2; align-items: flex-start; }
    .fks-line__rm { grid-row: 1; grid-column: 3; }
}
.fks-err { color: var(--bad); margin: 0; font-size: 14px; }

.cart__sum {
    position: sticky;
    top: 90px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) { .cart__sum { position: static; } }
.fks-sum__row { display: flex; justify-content: space-between; gap: 10px; }
.fks-sum__row.is-off { color: var(--ok); }
.fks-sum__row.is-total { font-family: var(--font-display); font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.fks-sum__dep { background: var(--brand-soft); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.fks-sum__dep div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.fks-sum__note, .cart__hint { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.cart__hint { margin: 0; }

.product__pay-note { margin: -6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.product__ask { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }

/* ── إتمام الطلب ─────────────────────────────────────────── */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 900px) {
    .checkout { grid-template-columns: minmax(0, 1fr); }
    .checkout__sum { order: -1; } /* ملخص الطلب فوق على الموبايل */
}
.checkout__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .field--block { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field small { font-weight: 400; color: var(--ink-3); }
.field [aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 4px rgba(164, 56, 29, .14) !important; }
/* فخ البوتات: مخفي من غير ما يتزق برا الشاشة (left:-9999px في صفحة عربي كان بيعمل تمرير أفقي ويبيّض الصفحة) */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.checkout__trust { margin: 0; font-size: 13.5px; color: var(--ink-2); text-align: center; }
.checkout__sum-title { font-size: 18px; }
.co-lines { display: flex; flex-direction: column; gap: 8px; }
.co-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.co-line small { color: var(--ink-3); }

/* ── بعد الطلب ───────────────────────────────────────────── */
.thanks { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.thanks__mark { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; }
.thanks h1 { font-size: clamp(26px, 4vw, 34px); }
.thanks__num { margin: 0; color: var(--ink-2); }
.thanks__next { list-style: none; counter-reset: t; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: start; }
.thanks__next li { counter-increment: t; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.thanks__next li::before { content: counter(t); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--sunk); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.thanks__next span { color: var(--ink-2); font-size: 14.5px; }
.thanks__order { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; text-align: start; font-variant-numeric: tabular-nums; }
.thanks__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.thanks__line small { color: var(--ink-3); }
.thanks__line b { white-space: nowrap; }
.thanks__line.is-off { color: var(--ok); }
.thanks__line.is-total { border-top: 1px solid var(--line); padding-top: 8px; font-family: var(--font-display); font-size: 17px; }

.thanks__track { width: 100%; background: var(--brand-soft); border: 1px solid #F1DFA9; border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.thanks__track span { font-size: 14px; color: var(--ink-2); }

/* ── صفحة متابعة الطلب ───────────────────────────────────── */
.portal { display: flex; flex-direction: column; gap: 22px; }
.portal__head h1 { font-size: clamp(28px, 4vw, 36px); }
.portal__head p { margin: 0; }
.portal__hi { color: var(--brand-deep); font-weight: 600; }
.notice { padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.notice--ok { background: #E5F4EC; color: var(--ok); }
.notice--bad { background: #FBE9E2; color: var(--bad); }
.notice--info { background: var(--brand-soft); color: var(--ink); }

.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; position: relative; }
.stages__step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.stages__step::before { content: ""; position: absolute; top: 17px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.stages__step:last-child::before { display: none; }
.stages__step.is-done::before { background: var(--brand); }
.stages__dot { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.stages__step.is-done .stages__dot { background: var(--brand); border-color: var(--brand-deep); }
.stages__step.is-now .stages__dot { background: var(--ink); border-color: var(--ink); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.stages__label { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.stages__step.is-now .stages__label { color: var(--ink); font-weight: 700; }
.stages__step.is-done .stages__label { color: var(--ink-2); }
@media (max-width: 620px) {
    .stages { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .stages__step { flex-direction: row; gap: 12px; text-align: start; padding-block: 6px; }
    .stages__step::before { top: 42px; inset-inline-start: 17px; width: 3px; height: calc(100% - 36px); }
    .stages__label { font-size: 15px; }
}

.portal__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .portal__grid { grid-template-columns: minmax(0, 1fr); } }
.portal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.portal-card h2 { font-size: 20px; }
.portal-card p { margin: 0; }
.portal-card--main { border-top: 4px solid var(--brand); }
.portal__items { border: 0; padding: 0; }
.portal__links { display: flex; flex-wrap: wrap; gap: 16px; }
.portal-form { display: flex; flex-direction: column; gap: 10px; }

.design { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.design img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--sunk); }
.design figcaption { font-size: 13px; color: var(--ink-3); }
.design__acts { display: flex; flex-direction: column; gap: 10px; }
.design__acts > form .btn, .design__edit > summary { width: 100%; }
.design__edit > summary { list-style: none; cursor: pointer; }
.design__edit > summary::-webkit-details-marker { display: none; }
.design__edit[open] > summary { margin-bottom: 12px; }
.design__old summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.design__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.design__thumbs a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; text-decoration: none; }
.design__thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pay { background: var(--brand-soft); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.smart-box { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.smart-box__item { display: flex; flex-direction: column; gap: 6px; background: var(--brand-soft); border-radius: var(--radius); padding: 12px; }
.smart-box__item span { font-size: 14px; color: var(--ink-2); }
.smart-box__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.thanks__smart .btn { width: 100%; }
.pay__ways { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pay__way { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--surface); border-radius: 8px; padding: 10px 12px; }
.pay__way > span { font-size: 13px; color: var(--ink-2); min-width: 80px; }
.pay__val { font-size: 16px; font-variant-numeric: tabular-nums; }

/* ── صفحة العرض (لينك الإعلان) ───────────────────────────── */
.offer-hero { background: var(--dark); color: var(--on-dark); }
.offer-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 40px; }
.offer-hero__inner:not(:has(.offer-hero__img)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 800px) { .offer-hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: 28px; } }
.offer-hero__copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.offer-hero__copy h1 { font-size: clamp(30px, 5vw, 46px); }
.offer-hero__copy p { margin: 0; color: var(--on-dark-2); font-size: 17px; }
.offer-hero__badge { background: var(--brand); color: var(--ink); font-size: 15px; padding: 4px 14px; }
.offer-hero__terms { color: var(--on-dark-2); }
.offer-hero__img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; }

/* ── الباقات ─────────────────────────────────────────────── */
.grid--bundles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bcard .pcard__tag { font-size: 13.5px; }
.bcard .pcard__price s { color: var(--ink-3); }
.bundle-page__badge { align-self: flex-start; background: var(--brand); color: var(--ink); }
.bundle-page__desc { margin-top: 12px; }
.bundle-items { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.bundle-items ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bundle-items li { display: flex; align-items: center; gap: 10px; }
.bundle-items img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.bundle-items li span { display: flex; flex-direction: column; line-height: 1.5; }
.bundle-items a { text-decoration: none; font-weight: 600; }
.bundle-items small { color: var(--ink-3); }
.fks-line__save { color: var(--ok); font-weight: 600; }

/* ── للشركات ─────────────────────────────────────────────── */
.biz-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(246, 192, 49, .16), transparent 42%),
        radial-gradient(circle at 90% 90%, rgba(246, 192, 49, .08), transparent 40%),
        var(--dark);
    color: var(--on-dark);
    padding-block: 52px 110px;
}
.biz-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.biz-hero__copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.biz-hero__copy h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.3; }
.biz-hero__copy h1 mark { background: none; color: var(--brand); }
.biz-hero__copy p { margin: 0; color: var(--on-dark-2); font-size: 18px; max-width: 46ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--brand); background: rgba(246, 192, 49, .12); border: 1px solid rgba(246, 192, 49, .3); border-radius: 999px; padding: 4px 14px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.perks li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 2px 12px; align-items: center; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px; }
.perks .icon { grid-row: span 2; width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--brand); color: var(--ink); }
.perks b { font-family: var(--font-display); font-size: 15.5px; color: var(--on-dark); }
.perks span { font-size: 13px; color: var(--on-dark-2); }
@media (max-width: 860px) {
    .biz-hero { padding-block: 32px 84px; }
    .biz-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 420px) { .perks { grid-template-columns: minmax(0, 1fr); } }
/* الفورم بيطلع فوق الهيرو شوية */
.biz-body { margin-top: -72px; padding-bottom: 64px; position: relative; }
/* صفحة الشركات: الفورم الأول على الموبايل (عكس ملخص صفحة الطلب) */
#fks-rfq .checkout__sum { order: 0; }
@media (max-width: 900px) { .product > .product__config > .bundle-page__badge { order: 1; } }
.biz-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
@media (max-width: 900px) { .biz-side { position: static; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.side-card h2 { font-size: 18px; }
.side-card--wa { flex-direction: row; align-items: center; gap: 12px; background: #EAF6EF; border-color: #CBE8D6; text-decoration: none; color: #0F5C31; }
.side-card--wa .icon { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--wa); color: #fff; flex: none; }
.side-card--wa b { display: block; font-family: var(--font-display); }
.side-card--wa:hover { border-color: var(--wa); }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tl; display: flex; flex-direction: column; }
.timeline li { counter-increment: tl; position: relative; display: flex; flex-direction: column; padding: 0 44px 18px 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(tl); position: absolute; right: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--ink); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; right: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.timeline b { font-size: 15px; }
.timeline span { color: var(--ink-2); font-size: 13.5px; }
.biz-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.biz-work img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.biz-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-radius: var(--radius-lg); border: 2px solid var(--ink); text-decoration: none; background: var(--surface); }
.biz-band b { display: block; font-family: var(--font-display); font-size: 20px; }
.biz-band > span:first-child { color: var(--ink-2); max-width: 60ch; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { margin-top: 5px; accent-color: var(--ink); }

/* ── نظام الفورم ─────────────────────────────────────────── */
.fcard { padding: 28px; box-shadow: var(--shadow-md); gap: 22px; }
@media (max-width: 560px) { .fcard { padding: 20px 16px; } }
.fcard__head h2 { font-size: 24px; }
.fcard__head p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.req { color: var(--bad); font-weight: 700; }
.fsec { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.fsec + .fsec { border-top: 1px solid var(--line); padding-top: 22px; }
.fsec > legend { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 700; padding: 0; margin: 0; float: right; width: 100%; }
.fsec > legend + * { clear: both; }
.fsec > legend small { font-family: var(--font); font-weight: 400; font-size: 13px; color: var(--ink-3); }
.fsec__n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--brand); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.field { gap: 7px; font-size: 14px; }
.field > span:first-child { color: var(--ink); }

/* اختيارات بكروت (مربع صح مخصص) */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--field-bg); cursor: pointer; font-size: 14.5px; font-weight: 500; line-height: 1.5; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.opt:hover { border-color: #C9C7BE; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #C9C7BE; background: var(--surface); display: flex; align-items: center; justify-content: center; transition: all .15s ease; }
.opt__box::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.opt:has(input:checked) { border-color: var(--brand-deep); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(246, 192, 49, .18); }
.opt:has(input:checked) .opt__box { background: var(--brand); border-color: var(--brand-deep); }
.opt:has(input:checked) .opt__box::after { opacity: 1; }
.opt:has(input:focus-visible) { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.opt--line { border-style: dashed; background: transparent; font-size: 14px; color: var(--ink-2); }
.opt__txt small { color: var(--ink-3); }

/* رفع ملف */
.upload { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 22px 16px; border: 2px dashed #D6D4CC; border-radius: 14px; background: var(--field-bg); transition: border-color .15s ease, background-color .15s ease; }
.upload:hover, .upload.is-drag { border-color: var(--brand-deep); background: var(--brand-soft); }
.upload span { align-items: center; }
.upload b { font-weight: 600; }
.upload__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--ink); display: flex !important; align-items: center; justify-content: center; }
.upload:hover .upload__icon { background: var(--brand); }

/* زرار الإرسال */
.btn--go { min-height: 56px; font-size: 17px; box-shadow: var(--shadow-y); }
.btn--go::after { content: "←"; font-size: 20px; line-height: 1; transition: transform .15s ease; }
.btn--go:hover::after { transform: translateX(-4px); }
.btn--go:disabled::after { content: none; }
.checkout__trust { display: flex; align-items: center; justify-content: center; gap: 8px; }
.checkout__trust .icon { color: var(--ok); width: 18px; height: 18px; flex: none; }

/* ── لمسات عامة ──────────────────────────────────────────── */
.btn { box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.btn:not(.btn--ghost):not(.btn--wa):hover { box-shadow: var(--shadow-y); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.pcard, .steps li, .cart__sum, .checkout__form, .portal-card, .offer, .bundle-items, .info__nav, .contact__card, .branch, .why > div, .faq__item, .track { box-shadow: var(--shadow-sm); }
.pcard { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.pcard__noimg { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(37, 37, 36, .025) 14px 28px), var(--sunk); }
.section__head h2, .section--steps h2 { position: relative; padding-inline-start: 16px; }
.section__head h2::before, .section--steps h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 5px; border-radius: 3px; background: var(--brand); }
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav__list a { padding: 6px 10px; border-radius: 8px; text-decoration: none !important; transition: background-color .15s ease; }
.nav__list a:hover { background: var(--sunk); }
.nav__list a[aria-current="page"] { background: var(--brand-soft); }
@media (prefers-reduced-motion: reduce) { .btn, .pcard, .btn--go::after { transition: none; transform: none !important; } }

/* ── من شغلنا ────────────────────────────────────────────── */
.work-grid { columns: 3 260px; column-gap: 14px; }
.work-grid--home { columns: 3 220px; }
.work-item { margin: 0 0 14px; break-inside: avoid; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.work-item img { width: 100%; display: block; }
.work-item figcaption { padding: 10px 12px; display: flex; flex-direction: column; font-size: 14px; }
.work-item figcaption span { color: var(--ink-3); font-size: 13px; }

/* ── تنبيه «اتضافت للسلة» + واتساب العايم ────────────────── */
.fks-toast {
    position: fixed;
    inset-inline: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    margin-inline: auto;
    max-width: 420px;
    background: var(--ink);
    color: var(--on-dark);
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    font-weight: 600;
    text-align: center;
    transform: translateY(150%);
    transition: transform .25s ease;
    z-index: 60;
}
.fks-toast.on { transform: none; }
.fks-toast a { color: var(--brand); margin-inline-start: 8px; }
.wa-float {
    position: fixed;
    inset-inline-end: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    z-index: 40;
}
.wa-float .icon { width: 28px; height: 28px; }

/* ── الفوتر ──────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: var(--on-dark-2); margin-top: 72px; font-size: 14.5px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 40px 28px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .site-footer__grid { gap: 24px 16px; }
    .site-footer__brand, .site-footer__grid > div:last-child { grid-column: 1 / -1; }
}
.site-footer__logo { width: 140px; height: auto; }
.site-footer__brand p { margin: 12px 0 0; max-width: 36ch; }
.site-footer__h { font-size: 16px; color: var(--on-dark); margin-bottom: 10px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__contact li { display: flex; align-items: center; gap: 8px; }
.site-footer__social { display: flex; gap: 16px; margin-top: 12px; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 16px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.site-footer__base nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__base a { color: var(--on-dark-2); }

/* صفحات عامة */
.entry { display: flex; flex-direction: column; gap: 16px; max-width: 70ch; }

/* ── الصفحات الأساسية (من إحنا، الأسئلة، السياسات...) ─────── */
.info { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.info__main { min-width: 0; }
.info__nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.info__group h2 { font-size: 13px; color: var(--ink-3); font-family: var(--font); font-weight: 600; margin-bottom: 4px; }
.info__group ul { list-style: none; margin: 0; padding: 0; }
.info__group a { display: block; padding: 5px 10px; margin-inline: -10px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.info__group a:hover { background: var(--sunk); }
.info__group a[aria-current="page"] { background: var(--brand-soft); font-weight: 600; box-shadow: inset -3px 0 0 var(--brand); }
.info__help { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.info__help span { color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
.info__h2 { margin: 32px 0 14px; }
@media (max-width: 900px) {
    .info { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .info__nav { position: static; }
}

.prose { max-width: 72ch; }
.prose h2 { font-size: 20px; margin: 30px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--brand-deep); }
.prose__lead { font-size: 17.5px; color: var(--ink); }
.prose__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ticks { list-style: none; padding: 0 !important; }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand-deep); border-bottom: 2.5px solid var(--brand-deep); transform: rotate(-45deg); }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.why > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.why b { font-family: var(--font-display); }
.why span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 560px) { .why { grid-template-columns: minmax(0, 1fr); } }

.steps--flow { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
@media (max-width: 520px) { .steps--flow { grid-template-columns: minmax(0, 1fr); } }

.faq { max-width: 72ch; }
.faq h2 { font-size: 20px; margin: 26px 0 10px; }
.faq h2:first-child { margin-top: 0; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.faq__item summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 20px; line-height: 1.3; color: var(--brand-deep); flex: none; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0; padding: 0 16px 14px; color: var(--ink-2); }

.track { max-width: 560px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 8px; }
.track .form-grid { width: 100%; }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.contact__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
a.contact__card:hover { border-color: var(--brand-deep); }
.contact__card .icon { width: 26px; height: 26px; color: var(--brand-deep); margin-bottom: 4px; }
.contact__card b { font-family: var(--font-display); font-size: 17px; }
.contact__card span { color: var(--ink-2); font-size: 14.5px; overflow-wrap: anywhere; }
.contact__card--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.contact__card--wa .icon, .contact__card--wa span { color: #fff; }
a.contact__card--wa:hover { border-color: #127a3e; background: #127a3e; }
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px; }
.branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.branch__name { font-family: var(--font-display); font-size: 18px; display: block; margin-bottom: 6px; }
.branch p { margin: 0 0 4px; display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; }
.branch .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--ink-3); }

.policy-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 14px; }
.policy-steps__item { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ok); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.policy-steps__item--bad { border-top-color: var(--bad); }
.policy-steps__item > b { font-family: var(--font-display); }
.policy-steps__item span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 700px) { .policy-steps { grid-template-columns: minmax(0, 1fr); } }

.checkout__legal { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.checkout__legal a { color: var(--ink-2); }

/* ── صفحة «قريبًا» ───────────────────────────────────────── */
.coming-soon {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* العمود ما يكبرش عن الشاشة على الموبايل */
    place-items: center;
    padding: 32px 16px;
    background: var(--dark);
    color: var(--on-dark);
}
.coming-soon__box {
    width: 100%;
    max-width: 560px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.coming-soon__logo { width: min(280px, 70vw); height: auto; }
.coming-soon__box h1 { font-size: clamp(28px, 6vw, 42px); }
.coming-soon__lead { margin: 0; color: var(--on-dark-2); font-size: 17px; }
.coming-soon__materials { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.coming-soon__materials li { border: 1px solid rgba(246, 192, 49, .45); color: var(--brand); border-radius: 999px; padding: 3px 14px; font-size: 14px; }

/* =========================================================================
   الهيدر والفوتر (v2) — آخر الملف عشان يغطّوا على اللي فوق
   ========================================================================= */

/* ── شريط الرسائل ─────────────────────────────────────────── */
.topbar { background: var(--ink); color: var(--on-dark); font-size: 13.5px; position: relative; z-index: 21; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__msgs { position: relative; flex: 1; min-width: 0; height: 38px; }
.topbar__msg { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__msg.is-on { opacity: 1; transform: none; pointer-events: auto; }
.topbar__msg .icon { width: 16px; height: 16px; color: var(--brand); flex: none; }
a.topbar__msg:hover { color: var(--brand); }
.topbar__side { display: flex; align-items: center; gap: 18px; flex: none; }
.topbar__side a { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark-2); text-decoration: none; }
.topbar__side a:hover { color: var(--brand); }
.topbar__side .icon { width: 15px; height: 15px; }
@media (max-width: 700px) {
    .topbar__side { display: none; }
    .topbar__msg { justify-content: center; font-size: 13px; }
}

/* ── الهيدر ──────────────────────────────────────────────── */
.site-header { transition: box-shadow .2s ease, background-color .2s ease; }
.site-header__inner { min-height: 76px; gap: 20px; transition: min-height .2s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(37, 37, 36, .08); border-bottom-color: transparent; }
.site-header.is-scrolled .site-header__inner { min-height: 62px; }
.brand__logo { transition: height .2s ease; }
.site-header.is-scrolled .brand__logo { height: 40px; }
.nav__list { gap: 2px; }
.nav__list a { position: relative; font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; background: none !important; }
.nav__list a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transition: transform .2s ease; }
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--ink); }
.nav__head, .nav__foot { display: none; }
.hdr-cta { padding: 9px 16px; font-size: 14.5px; white-space: nowrap; }
.hdr-cta .icon { width: 18px; height: 18px; }
.cart-btn { transition: border-color .15s ease, background-color .15s ease; }
.cart-btn:hover { border-color: var(--ink-3); background: var(--sunk); }
.cart-btn__count { animation: fkt-pop .3s ease; }
@keyframes fkt-pop { from { transform: scale(.4); } to { transform: none; } }
@media (max-width: 1120px) { .hdr-cta { display: none; } }

/* موبايل: قايمة جانبية من اليمين */
@media (max-width: 860px) {
    .site-header__inner { min-height: 64px; }
    .nav {
        position: fixed;
        top: 0; bottom: 0; right: 0; left: auto;
        width: min(86vw, 360px);
        height: 100dvh;
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        background: var(--surface);
        border: 0;
        box-shadow: -18px 0 40px rgba(0, 0, 0, .18);
        transform: translateX(105%);
        transition: transform .28s ease, visibility 0s linear .28s;
        z-index: 70;
        overflow-y: auto;
        visibility: hidden;
    }
    .nav.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
    .nav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
    .nav__logo { height: 40px; width: auto; }
    .nav__close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
    .nav__list { flex-direction: column; gap: 2px; }
    .nav__list a { display: flex; font-size: 18px; font-family: var(--font-display); color: var(--ink); padding: 12px 14px; border-radius: 12px; }
    .nav__list a::after { display: none; }
    .nav__list a:hover, .nav__list a[aria-current="page"] { background: var(--brand-soft) !important; }
    .nav__foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
    .nav__sub { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-radius: 10px; }
    .nav__sub:hover { background: var(--sunk); }
    .nav__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(20, 20, 19, .45); z-index: 65; }
    html.nav-locked { overflow: hidden; }
    /* القايمة جوه الهيدر: الهيدر يطلع فوق الخلفية المعتّمة، ومن غير backdrop-filter
       (الفلتر ده بيخلي الهيدر «حاوية» للعناصر الثابتة فالقايمة بتتحبس جوّاه وتبان تحت الخلفية) */
    html.nav-locked .site-header { z-index: 80; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
}
@media (prefers-reduced-motion: reduce) { .nav, .topbar__msg, .site-header__inner, .brand__logo { transition: none; } }

/* ── الفوتر ──────────────────────────────────────────────── */
.btn--dark, .site-footer .btn--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.site-footer .btn--light { color: var(--ink); }
.site-footer .btn { text-decoration: none; }
.btn--dark:hover { background: #000 !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .25) !important; }
.btn--light { background: rgba(255, 255, 255, .7); border-color: rgba(37, 37, 36, .15); color: var(--ink); }
.btn--light:hover { background: #fff !important; box-shadow: var(--shadow-md) !important; }

.site-footer { position: relative; overflow: hidden; margin-top: 96px; padding-top: 1px; background: var(--dark); }
/* البلوك الأصفر طالع لفوق (مش متقصوص)، وكلمة «فكرة» متقصوصة جوه .site-footer__deco */
.site-footer.has-cta { margin-top: 170px; overflow: visible; }
.site-footer__deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

/* «عندك فكرة؟» — بلوك أصفر نصه فوق الفوتر */
.idea {
    position: relative;
    margin-top: -110px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 34px 40px;
    border-radius: 24px;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 30%, rgba(255, 255, 255, .55), transparent 35%),
        radial-gradient(rgba(37, 37, 36, .07) 1.2px, transparent 1.3px) 0 0 / 16px 16px,
        linear-gradient(120deg, #F8CB4A, var(--brand) 55%, #EDB323);
    box-shadow: 0 24px 50px rgba(221, 165, 28, .35);
    overflow: hidden;
}
.idea__bulb { position: relative; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.idea__bulb .icon { width: 48px; height: 48px; stroke-width: 1.6; position: relative; z-index: 1; }
.idea__rays { position: absolute; inset: -18px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(37, 37, 36, .22) 0 6deg, transparent 6deg 30deg); -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%, #000 70%, transparent 71%); mask: radial-gradient(circle, transparent 54%, #000 55%, #000 70%, transparent 71%); animation: fkt-spin 30s linear infinite; }
@keyframes fkt-spin { to { transform: rotate(360deg); } }
.idea__copy h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; }
.idea__copy h2 span { display: inline-block; background: var(--ink); color: var(--brand); padding: 0 12px; border-radius: 10px; transform: rotate(-1.5deg); }
.idea__copy p { margin: 8px 0 0; font-size: 16px; color: rgba(37, 37, 36, .8); max-width: 52ch; }
.idea__acts { display: flex; flex-direction: column; gap: 10px; }
.idea__acts .btn { justify-content: center; }
@media (max-width: 960px) {
    .idea { grid-template-columns: auto minmax(0, 1fr); padding: 28px 24px; }
    .idea__acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .idea__acts .btn { flex: 1 1 200px; }
}
@media (max-width: 560px) {
    .idea { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; gap: 18px; margin-top: -90px; }
    .idea__bulb { width: 76px; height: 76px; }
    .idea__bulb .icon { width: 40px; height: 40px; }
    .site-footer.has-cta { margin-top: 140px; }
}
@media (prefers-reduced-motion: reduce) { .idea__rays { animation: none; } }

/* شريط الثقة */
.trust { list-style: none; margin: 40px 0 0; padding: 0 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.trust li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.trust .icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: rgba(246, 192, 49, .14); color: var(--brand); flex: none; }
.trust span { display: flex; flex-direction: column; font-size: 13px; color: var(--on-dark-2); line-height: 1.5; }
.trust b { font-family: var(--font-display); font-size: 15px; color: var(--on-dark); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* الأعمدة */
.site-footer__grid { padding-block: 36px 24px; position: relative; z-index: 1; }
.site-footer__h { font-size: 15px; letter-spacing: 0; color: var(--brand); margin-bottom: 14px; }
.site-footer__h a { color: var(--brand) !important; }
.site-footer__list { gap: 9px; }
.site-footer__list a { color: var(--on-dark-2); transition: color .15s ease, padding .15s ease; }
.site-footer__list a:hover { color: var(--on-dark); text-decoration: none; padding-inline-start: 4px; }
.site-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark); transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.site-footer__social a:hover { background: var(--brand); color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.site-footer__social .icon { width: 19px; height: 19px; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__contact a, .site-footer__contact .site-footer__ci { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; color: var(--on-dark-2); text-decoration: none; }
.site-footer__contact .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--brand); flex: none; }
.site-footer__contact span { display: flex; flex-direction: column; line-height: 1.55; font-size: 14px; }
.site-footer__contact small { font-size: 12px; color: rgba(185, 184, 178, .7); }
.site-footer__contact b { color: var(--on-dark); font-weight: 600; }
.site-footer__contact a:hover b { color: var(--brand); }

/* كلمة «فكرة» الضخمة في الخلفية */
.site-footer__word { position: absolute; left: 50%; bottom: -0.32em; transform: translateX(-50%); font-family: var(--font-display); font-weight: 700; font-size: clamp(140px, 26vw, 340px); line-height: 1; color: rgba(246, 192, 49, .045); white-space: nowrap; pointer-events: none; user-select: none; z-index: 0; }
.site-footer__base { position: relative; z-index: 1; border-top-color: rgba(255, 255, 255, .08); color: rgba(185, 184, 178, .75); padding-block: 18px 22px; }

/* =========================================================================
   صفحة المنتج — 3 خطوات
   ========================================================================= */

/* ── ① قصة المنتج (الصفحة الأولى) ───────────────────────── */
.story { --hdr: 76px; }
.site-footer.is-flush { margin-top: 0; }
.story-kicker { display: inline-flex; align-self: flex-start; font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--brand); border-radius: 999px; padding: 4px 14px; }

/* الظهور واحدة واحدة */
.story--anim [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 120ms); }
.story--anim [data-reveal="zoom"] { transform: scale(1.06); }
.story--anim [data-reveal].is-in { opacity: 1; transform: none; }

/* الافتتاحية: صورة يمين كبيرة + اسم ضخم شمال */
.story-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100svh - var(--hdr) - 38px); background: var(--surface); }
.story-hero__media { position: relative; overflow: hidden; border-end-end-radius: 36px; background: var(--sunk); }
.story-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px clamp(24px, 6vw, 96px); }
.story-hero__copy h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.12; letter-spacing: -.5px; }
.story-hero__tag { margin: 0; font-size: clamp(17px, 1.6vw, 22px); color: var(--ink-2); max-width: 30ch; }
.story-scroll { margin-top: 18px; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 700; color: var(--ink); align-self: flex-start; }
.story-scroll i { position: relative; width: 28px; height: 46px; border: 2px solid var(--ink); border-radius: 16px; }
.story-scroll i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--brand-deep); animation: fkt-wheel 1.6s ease-in-out infinite; }
@keyframes fkt-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
.story-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 30%, rgba(246, 192, 49, .25), transparent 55%), var(--dark); }
.story-ph__logo { width: 42%; height: auto; opacity: .8; }

/* الفصول: الصورة ثابتة يمين وبتتبدّل — الكلام بيتحرك شمال */
.story-chapters { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); position: relative; }
.story-sticky { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); padding: 28px 0 28px 28px; }
.story-frames { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: var(--sunk); box-shadow: var(--shadow-md); }
.story-frame { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.08); transition: opacity .9s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.story-frame.is-on { opacity: 1; transform: none; }
.story-frame img { width: 100%; height: 100%; object-fit: cover; }
.story-progress { position: absolute; inset-inline: 24px; bottom: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .45); overflow: hidden; z-index: 2; }
.story-progress span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 4px; transition: width .6s ease; }
.story-texts { padding-inline: clamp(24px, 5vw, 88px); }
.story-ch { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; transition: opacity .5s ease; }
.story--anim .story-ch:not(.is-active) { opacity: .28; }
.story-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 7vw, 104px); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--brand-deep); }
.story-ch h2 { font-size: clamp(28px, 3.3vw, 50px); line-height: 1.28; max-width: 16ch; }
.story-ch p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); max-width: 42ch; line-height: 1.9; }

/* الفيديو: غامق، الفيديو يمين والكلام شمال */
.story-video { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 0; background: var(--dark); color: var(--on-dark); padding: clamp(40px, 7vw, 100px) 0; }
.story-video__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; padding-inline: clamp(20px, 4vw, 56px); }
.story-video__media .video { box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.story-video__copy { display: flex; flex-direction: column; gap: 14px; padding-inline: clamp(24px, 5vw, 88px); }
.story-video__copy h2 { font-size: clamp(30px, 3.6vw, 52px); }
.story-video__copy p { margin: 0; color: var(--on-dark-2); font-size: 18px; max-width: 36ch; }

/* معرض الشغل: بيظهر واحدة ورا التانية */
.story-work { padding: clamp(48px, 7vw, 110px) clamp(16px, 4vw, 56px); }
.story-work__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: 34px; }
.story-work__head .story-kicker { align-self: center; }
.story-work__head h2 { font-size: clamp(28px, 3.4vw, 48px); }
.story-work__grid { columns: 3 280px; column-gap: 16px; max-width: 1280px; margin: 0 auto; }
.story-work__item { position: relative; margin: 0 0 16px; break-inside: avoid; border-radius: 22px; overflow: hidden; background: var(--sunk); }
.story-work__item img { width: 100%; display: block; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.story-work__item:hover img { transform: scale(1.05); }
.story-work__item figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-size: 14px; font-weight: 600; }

/* الختام */
.story-cta { position: relative; overflow: hidden; min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 80px 20px; background: var(--dark); color: var(--on-dark); }
.story-cta__glow { position: absolute; width: 900px; height: 900px; max-width: 160vw; border-radius: 50%; background: radial-gradient(circle, rgba(246, 192, 49, .32), transparent 60%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: fkt-pulse 6s ease-in-out infinite; }
@keyframes fkt-pulse { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .75; } }
.story-cta > *:not(.story-cta__glow) { position: relative; }
.story-cta .story-kicker { align-self: center; }
.story-cta h2 { font-size: clamp(36px, 5.4vw, 76px); line-height: 1.15; }
.story-cta h2 span { color: var(--brand); }
.story-cta p { margin: 0; color: var(--on-dark-2); font-size: clamp(16px, 1.5vw, 20px); max-width: 44ch; }
.story-cta__btn { margin-top: 10px; min-width: min(100%, 440px); min-height: 64px; font-size: 19px; }

@media (max-width: 900px) {
    .story { --hdr: 64px; }
    .story-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .story-hero__media { height: 58svh; border-radius: 0 0 28px 28px; }
    .story-hero__copy { padding: 26px 20px 34px; gap: 12px; }
    .story-scroll { margin-top: 6px; }
    .story-chapters { display: block; }
    .story-sticky { top: var(--hdr); height: 46svh; padding: 10px 12px; z-index: 2; background: var(--bg); }
    .story-frames { border-radius: 24px; }
    .story-texts { padding-inline: 22px; }
    .story-ch { min-height: 52svh; gap: 10px; }
    .story-num { font-size: 52px; }
    .story-video { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .story-video__copy { order: -1; }
    .story-work__grid { columns: 2 150px; column-gap: 10px; }
    .story-work__item { margin-bottom: 10px; border-radius: 16px; }
    .story-cta { min-height: 72svh; }
}
@media (prefers-reduced-motion: reduce) {
    .story-scroll i::after, .story-cta__glow { animation: none; }
    .story-frame { transition: opacity .3s; transform: none; }
}

/* ① اتعرّف على المنتج (القديم) */
.pdp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pdp-media .gallery { position: sticky; top: 90px; }
.gallery__main--empty { display: flex; align-items: center; justify-content: center; }
.gallery__main--empty .pcard__ph { width: 40%; opacity: .3; }
.pdp-info { display: flex; flex-direction: column; gap: 16px; }
.pdp-info .product__tag { margin: -8px 0 0; }
.pdp-from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; box-shadow: var(--shadow-sm); }
.pdp-from span { color: var(--ink-3); font-size: 14px; }
.pdp-from b { font-family: var(--font-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.pdp-from small { flex-basis: 100%; color: var(--ink-2); font-size: 13.5px; }
.pdp-ticks { gap: 6px; }
.pdp-sec { margin-top: 8px; }
@media (max-width: 900px) {
    .pdp-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .pdp-media .gallery { position: static; }
    .product__title { font-size: 26px; }
}

/* فيديوهات */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; align-items: start; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.video--tall { aspect-ratio: 9 / 16; max-height: 640px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* آخر الصفحة: الخطوات + الزرار */
.pdp-final { display: flex; flex-direction: column; align-items: center; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px; box-shadow: var(--shadow-md); text-align: center; }
.pdp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 820px; counter-reset: ps; }
.pdp-steps li { counter-increment: ps; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.pdp-steps li::before { content: counter(ps); width: 38px; height: 38px; border-radius: 50%; background: var(--sunk); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 4px; }
.pdp-steps li.is-done::before { content: "✓"; background: var(--brand); border-color: var(--brand-deep); }
.pdp-steps li:nth-child(2)::before { background: var(--ink); border-color: var(--ink); color: var(--brand); }
.pdp-steps b { font-family: var(--font-display); font-size: 15.5px; }
.pdp-steps span { font-size: 13px; color: var(--ink-2); }
.pdp-final__btn { min-width: min(100%, 420px); }
@media (max-width: 560px) { .pdp-steps { grid-template-columns: minmax(0, 1fr); text-align: start; } .pdp-steps li { flex-direction: row; flex-wrap: wrap; column-gap: 10px; } .pdp-steps li::before { margin: 0; } .pdp-steps span { flex-basis: 100%; padding-inline-start: 48px; margin-top: -8px; } }

/* الزرار الثابت تحت (موبايل) */
.buybar .btn { white-space: nowrap; }
html.flow-open { overflow: hidden; }
html.flow-open .buybar, html.flow-open .wa-float { display: none !important; }

/* ②③ الشاشة الكاملة */
.flow { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; animation: fkt-flow-in .22s ease; }
.flow[hidden] { display: none; }
@keyframes fkt-flow-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.flow__bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.flow__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.flow__icon:hover { background: var(--sunk); }
[data-flow-back] .icon { transform: scaleX(-1); }
.flow__title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flow__title b { font-family: var(--font-display); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.flow__dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; font-size: 12px; color: var(--ink-3); }
.flow__dots li { display: flex; align-items: center; gap: 6px; }
.flow__dots li + li::before { content: ""; width: 14px; height: 2px; background: var(--line); border-radius: 2px; }
.flow__dots li.is-done { color: var(--ok); }
.flow__dots li.is-on { color: var(--ink); font-weight: 700; }
.flow__body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.flow__panel { max-width: 1280px; margin: 0 auto; padding: 18px 16px 24px; }
.flow__panel[hidden] { display: none; }
.flow__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.flow__stage { position: sticky; top: 0; }
.flow__stage .fks-wall { box-shadow: var(--shadow-md); }
.flow__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.flow__controls { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.flow__controls .studio { display: flex; flex-direction: column; gap: 10px; }
.flow__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow__note { margin: 0; display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); border: 1px solid #F1DFA9; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.7; color: #5c4a14; }
.flow__note .icon { flex: none; color: #8A6412; margin-top: 3px; }
.flow__note b { color: var(--ink); }
.flow__foot { flex: none; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(37, 37, 36, .06); }
.flow__foot[hidden] { display: none; }
.flow__foot .btn { flex: 1; max-width: 520px; margin-inline-start: auto; }
.flow__price { display: flex; flex-direction: column; line-height: 1.3; }
.flow__price small { font-size: 12px; color: var(--ink-3); }
.flow__price b { font-family: var(--font-display); font-size: 22px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flow__grid--form { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.flow__form h2 { font-size: 22px; }
.flow__form > p { margin: 4px 0 14px; }
@media (max-width: 900px) {
    .flow__panel { padding: 12px 12px 18px; }
    .flow__grid, .flow__grid--form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .flow__stage { position: sticky; top: 0; z-index: 2; background: var(--bg); padding-bottom: 6px; }
    .flow__controls { padding: 12px; gap: 12px; }
    .flow__controls .price-box { padding: 12px 14px; }
    .flow__controls .fks-price__total { font-size: 24px; }
    .flow__foot .btn { font-size: 14.5px; padding-inline: 12px; min-height: 52px; }
    .flow__price b { font-size: 19px; }
    .flow__summary { order: -1; }
    .flow__form h2 { font-size: 19px; }
}
@media (max-width: 900px) { .flow__note { font-size: 12.5px; padding: 9px 12px; line-height: 1.6; } }
@media (max-width: 380px) { .flow__dots li:not(.is-on) { display: none; } .flow__dots li + li::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } }

/* ملخص الطلب (الخطوة 3) */
.sum-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.sum-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.sum-card__name { font-family: var(--font-display); font-size: 17px; }
.sum-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 14px; }
.sum-card dt { color: var(--ink-3); }
.sum-card dd { margin: 0; }
.sum-card__price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 10px; }
.sum-card__price b { font-family: var(--font-display); font-size: 22px; }
.sum-card p { margin: 0; font-size: 13px; color: var(--ink-2); }
.sum-card .link { align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .sum-card img { display: none; } }

/* فورم التواصل المختصر */
.lead { gap: 16px; }
.upload--sm { flex-direction: row; justify-content: flex-start; text-align: start; padding: 12px 14px; }
.upload--sm span { align-items: flex-start; }
.upload--sm .upload__icon { width: 38px; height: 38px; flex: none; }
.bundle-lead { display: flex; flex-direction: column; gap: 12px; }
.bundle-lead h2 { font-size: 20px; }

/* نص القسم التعريفي (سيو) — آخر صفحة القسم */
.seo-text { border-top: 1px solid var(--line); padding-top: 28px; color: var(--ink-2); }
.seo-text h2 { color: var(--ink); }

/* فقرات المنتج: فيديو مكان الصورة — الفريم اللي مش ظاهر ما ياخدش ضغطات */
.story-frame { pointer-events: none; }
.story-frame.is-on { pointer-events: auto; }
.story-progress { pointer-events: none; }
.story-frame--video { background: #0f0f0e; display: flex; align-items: center; justify-content: center; }
.story-frame iframe, .story-frame video { width: 100%; height: 100%; border: 0; display: block; }
.story-frame video { object-fit: contain; background: #000; }
.story-frame--tall iframe { width: auto; aspect-ratio: 9 / 16; max-width: 100%; }
.story-ch h2 + p, .story-ch p + p { margin-top: 0; }
