/* =====================================================================
 * RTS — تصميم منيو الزبون
 * نظام مبيعات من ROYAL TECHNOLOGY SOLUTIONS
 * يُحمّل بعد تنسيقات الهيدر القديمة، ويغطي: الهيدر، المنيو، الفوتر، شريط السلة
 * ===================================================================== */

:root {
    --brand: #48115b;
    --brand-700: #350c44;
    --brand-100: #efe6f3;
    --brand-50: #f7f2f9;
    --ink: #1d1523;
    --ink-2: #4a4150;
    --muted: #7b7181;
    --line: #ebe5ef;
    --canvas: #f7f5f9;
    --surface: #ffffff;
    --success: #1d7a4c;
    --success-bg: #e9f6ef;
    --danger: #b42318;
    --danger-bg: #fdecea;

    /* متغيرات الصفحات القديمة → الهوية */
    --primary: var(--brand);
    --primary-text: var(--brand);
    --accent: var(--brand);
    --accent-color: var(--brand);
    --accent-dark: var(--brand-700);
    --category-color: var(--brand);
    --main-bg: var(--canvas);
    --secondary-color: var(--ink);
    --border-color: var(--line);
    --border: var(--line);
    --radius: 14px;
    --shadow: 0 1px 2px rgba(29, 21, 35, 0.04), 0 2px 8px rgba(29, 21, 35, 0.05);
}

html, html body {
    background-color: var(--canvas) !important;
    color: var(--ink);
    font-family: 'Cairo', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- شريط الموظف (يظهر للموظفين فقط) ---------- */
.staff-bar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82em;
}
.staff-bar-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.staff-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 6px;
}
.staff-bar a:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- الهيدر ---------- */
.mh {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.mh-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.mh-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
    flex: 1;
}
.mh-logo {
    height: 42px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.mh-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mh-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mh-brand-text strong {
    font-size: 1.02em;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mh-status { font-size: 0.78em; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.mh-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mh-status.open { color: var(--success); }
.mh-status.closed { color: var(--danger); }

.mh-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mh-mode {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand-50);
    color: var(--brand);
    border: 1px solid var(--brand-100);
    border-radius: 999px;
    padding: 7px 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.86em;
    cursor: pointer;
    white-space: nowrap;
}
.mh-mode:hover { border-color: var(--brand); }
.mh-mode .fa-chevron-down { font-size: 0.75em; opacity: 0.7; }
.mh-cart {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.05em;
    box-shadow: none !important;
    padding: 0 !important;
}
.mh-cart:hover { background: var(--brand-700); }
.mh-cart .cart-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    border: 2px solid var(--brand);
    font-size: 0.68em;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.mh-closed {
    background: var(--danger-bg);
    color: var(--danger);
    text-align: center;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 0.88em;
    border-bottom: 1px solid #f6cdc8;
}
.mh-closed span { font-weight: 600; opacity: 0.85; }

/* ---------- صفحة المنيو ---------- */
.mn { max-width: 1200px; margin: 0 auto; padding: 18px 16px 110px; }

.mn-cover {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 1;
    background: var(--brand-50);
}
.mn-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mn-store {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 2px 6px;
}
.mn-store-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    object-fit: contain;
    padding: 6px;
    flex-shrink: 0;
}
.mn-cover + .mn-store .mn-store-logo { margin-top: -44px; box-shadow: 0 6px 18px rgba(29, 21, 35, 0.12); }
.mn-store h1 { font-size: 1.45em; font-weight: 800; margin: 0; color: var(--ink); line-height: 1.3; }
.mn-store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    color: var(--muted);
    font-size: 0.86em;
    margin-top: 2px;
}
.mn-store-meta i { color: var(--brand); margin-left: 4px; }

/* شريط البحث والفئات (يثبت فوق عند التمرير) */
.mn-toolbar {
    position: sticky;
    top: 64px;
    z-index: 800;
    background: var(--canvas);
    padding: 12px 0 10px;
    margin-top: 8px;
}
.mn-search {
    position: relative;
    margin-bottom: 10px;
}
.mn-search i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}
.mn-search input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0 44px 0 16px;
    font-family: inherit;
    font-size: 0.98em;
    color: var(--ink);
}
.mn-search input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(72, 17, 91, 0.12);
}
.mn-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.mn-cats::-webkit-scrollbar { display: none; }
.mn-cat {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.mn-cat:hover { border-color: var(--brand-100); color: var(--brand); }
.mn-cat.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.mn-section { padding-top: 18px; scroll-margin-top: 190px; }
.mn-section h2 {
    font-size: 1.15em;
    font-weight: 800;
    color: var(--ink);
    margin: 0 2px 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.mn-section h2 small { color: var(--muted); font-weight: 600; font-size: 0.72em; }

.mn-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* بطاقة الصنف */
.mn-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-height: 128px;
}
.mn-card:hover { border-color: var(--brand-100); box-shadow: 0 6px 18px rgba(72, 17, 91, 0.08); }
.mn-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mn-card-body h3 {
    font-size: 1em;
    font-weight: 800;
    color: var(--ink);
    margin: 2px 0 4px;
    line-height: 1.45;
}
.mn-card-body p {
    color: var(--muted);
    font-size: 0.84em;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mn-price {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.mn-price strong { color: var(--brand); font-size: 1.08em; font-weight: 800; }
.mn-price small { color: var(--muted); font-size: 0.78em; font-weight: 600; }
.mn-price del { color: var(--muted); font-size: 0.82em; }
.mn-price .mn-sale {
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 0.72em;
    font-weight: 800;
    border-radius: 6px;
    padding: 1px 7px;
}

.mn-card-media {
    position: relative;
    width: 112px;
    flex-shrink: 0;
}
.mn-card-media img,
.mn-card-media .mn-noimg {
    width: 112px;
    height: 104px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    background: var(--brand-50);
}
.mn-noimg { display: flex !important; align-items: center; justify-content: center; color: #cdb8d6; font-size: 1.6em; }
.mn-add {
    position: absolute;
    bottom: -4px;
    left: -4px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--line);
    box-shadow: 0 3px 10px rgba(29, 21, 35, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
}
.mn-card:hover .mn-add { background: var(--brand); color: #fff; border-color: var(--brand); }
.rts-view-only .mn-add { display: none; }

.mn-empty {
    text-align: center;
    color: var(--muted);
    padding: 60px 20px;
}
.mn-empty i { font-size: 2em; color: #cdb8d6; margin-bottom: 10px; display: block; }

/* ---------- شريط السلة العائم ---------- */
.mn-cartbar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 32px));
    z-index: 950;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--brand);
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(72, 17, 91, 0.35);
}
.mn-cartbar.show { display: flex; }
.mn-cartbar-count {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.9em;
}
.mn-cartbar span:last-child { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- الفوتر ---------- */
.mf {
    background: #fff;
    border-top: 1px solid var(--line);
    margin-top: 30px;
}
.mf-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.mf-store strong { font-size: 1.1em; color: var(--ink); display: block; margin-bottom: 8px; }
.mf-store img { height: 40px; width: auto; margin-bottom: 8px; display: block; }
.mf-contact { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 0.92em; }
.mf-contact a { color: inherit; text-decoration: none; font-weight: 700; }
.mf-contact a:hover { color: var(--brand); }
.mf-contact i { color: var(--brand); width: 18px; text-align: center; margin-left: 6px; }
.mf-bottom {
    border-top: 1px solid var(--line);
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.82em;
}
.mf-credit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.mf-credit img { height: 16px; width: auto; }
.mf-credit b { color: var(--brand); font-weight: 700; letter-spacing: 0.3px; }

.floating-whatsapp-btn {
    background: #25D366 !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35) !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 26px !important;
}
.floating-whatsapp-btn:hover { transform: none !important; }
body.has-cartbar .floating-whatsapp-btn { bottom: 86px !important; }

/* ---------- الجوال ---------- */
@media (max-width: 860px) {
    .mn-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .mh-in { padding: 8px 12px; gap: 8px; }
    .mh-logo { height: 36px; max-width: 90px; }
    .mh-mode { padding: 7px 10px; font-size: 0.8em; }
    .mh-mode .mh-mode-label { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
    .mh-cart { width: 40px; height: 40px; }
    .mn { padding: 12px 12px 110px; }
    .mn-cover { aspect-ratio: 16 / 9; border-radius: 14px; }
    .mn-store h1 { font-size: 1.2em; }
    .mn-store-logo { width: 56px; height: 56px; }
    .mn-toolbar { top: 58px; }
    .mn-card { min-height: 116px; padding: 10px; gap: 12px; }
    .mn-card-media, .mn-card-media img, .mn-card-media .mn-noimg { width: 96px; }
    .mn-card-media img, .mn-card-media .mn-noimg { height: 96px; }
}

/* ---------- السلة وإتمام الطلب ---------- */
.ck { max-width: 1100px; margin: 0 auto; padding: 22px 16px 120px; }
.ck-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ck-head h1 { margin: 0; font-size: 1.6em; font-weight: 800; color: var(--ink); line-height: 1.25; }
.ck-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.9em; }
.ck-link { color: var(--brand); font-weight: 700; text-decoration: none; font-size: 0.92em; white-space: nowrap; }
.ck-link:hover { text-decoration: underline; }

.ck-alert {
    display: flex; gap: 12px; align-items: center;
    background: var(--danger-bg); color: var(--danger); border: 1px solid #f6cdc8;
    border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.ck-alert i { font-size: 1.3em; }
.ck-alert strong { display: block; }
.ck-alert span { font-size: 0.88em; opacity: 0.85; }

.ck-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.ck-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ck-summary { padding: 20px; position: sticky; top: 84px; }
.ck-summary h2 { margin: 0 0 14px; font-size: 1.08em; font-weight: 800; color: var(--ink); }
.ck-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--ink-2); font-size: 0.93em; }
.ck-line strong { color: var(--ink); font-weight: 700; white-space: nowrap; }
.ck-discount, .ck-discount strong { color: var(--success); }
.ck-note span:last-child { color: var(--muted); font-size: 0.9em; }
.ck-grand {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid var(--line); margin: 8px 0 16px; padding-top: 14px;
    font-weight: 800; font-size: 1.05em;
}
.ck-grand strong { color: var(--brand); font-size: 1.35em; white-space: nowrap; }

.ck-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand); color: #fff !important; border: 0; border-radius: 12px;
    padding: 13px 22px; font-family: inherit; font-weight: 800; font-size: 1em;
    text-decoration: none; cursor: pointer; transition: background-color 0.15s;
}
.ck-btn:hover { background: var(--brand-700); }
.ck-btn:disabled { background: #9b8fa3; cursor: not-allowed; }
.ck-btn-block { width: 100%; }
.ck-btn-wa { background: #1d7a4c; }
.ck-btn-wa:hover { background: #155c39; }
.ck-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
    padding: 11px 16px; font-family: inherit; font-weight: 700; font-size: 0.92em;
    text-decoration: none; cursor: pointer;
}
.ck-ghost:hover { border-color: var(--brand); color: var(--brand); }
.ck-fine { color: var(--muted); font-size: 0.8em; text-align: center; margin: 10px 0 0; }

.ck-empty {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 56px 20px; text-align: center; color: var(--muted);
}
.ck-empty i { font-size: 2.2em; color: #cdb8d6; margin-bottom: 6px; }
.ck-empty strong { color: var(--ink); font-size: 1.15em; }
.ck-empty .ck-btn { margin-top: 10px; }

/* أصناف السلة */
.ck-items { padding: 4px 18px; }
.ck-row {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transition: opacity 0.15s;
}
.ck-row:last-child { border-bottom: 0; }
.ck-row.busy { opacity: 0.5; pointer-events: none; }
.ck-img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--brand-50); display: block; }
.ck-noimg { display: flex; align-items: center; justify-content: center; color: #cdb8d6; font-size: 1.4em; }
.ck-info { min-width: 0; }
.ck-name { font-weight: 800; color: var(--ink); line-height: 1.45; }
.ck-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 0.82em; margin-top: 3px; }
.ck-chip { background: var(--brand-50); color: var(--brand); font-weight: 700; border-radius: 6px; padding: 0 8px; }
.ck-unit { color: var(--muted); font-size: 0.8em; margin-top: 4px; }
.ck-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: 30px; }
.ck-total { font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ck-qty { display: inline-flex; align-items: center; border: 1px solid #ddd5e2; border-radius: 10px; overflow: hidden; }
.ck-qty button {
    width: 34px; height: 34px; border: 0; background: #fff; color: var(--brand);
    cursor: pointer; font-size: 0.8em;
}
.ck-qty button:hover { background: var(--brand-50); }
.ck-qty span { min-width: 28px; text-align: center; font-weight: 800; }
.ck-remove {
    position: absolute; top: 14px; left: -4px;
    width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent;
    color: #9b8fa3; cursor: pointer;
}
.ck-remove:hover { background: var(--danger-bg); color: var(--danger); }

.ck-mobilebar { display: none; }

/* إتمام الطلب */
.ck-form { padding: 22px; }
.ck-step-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05em; color: var(--ink); margin: 4px 0 14px; }
.ck-step-title span {
    width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff;
    font-size: 0.8em; display: inline-flex; align-items: center; justify-content: center;
}
.ck-step-title ~ .ck-step-title { margin-top: 24px; }
.ck-types { display: grid; gap: 10px; }
html body .type-option-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
    padding: 16px 10px; cursor: pointer; text-align: center; color: var(--ink-2);
    transition: border-color 0.15s, background-color 0.15s;
}
html body .type-option-card i { font-size: 1.3em; color: var(--muted); margin-bottom: 4px; }
html body .type-option-card strong { font-size: 0.98em; color: var(--ink); }
html body .type-option-card small { font-size: 0.8em; color: var(--muted); }
html body .type-option-card:hover { border-color: var(--brand-100); }
html body .type-option-card.active { border: 2px solid var(--brand); background: var(--brand-50); padding: 15px 9px; }
html body .type-option-card.active i { color: var(--brand); }
.ck-note {
    display: flex; align-items: center; gap: 10px; margin-top: 12px;
    background: var(--brand-50); color: var(--brand); border-radius: 12px; padding: 11px 14px; font-size: 0.9em; font-weight: 600;
}
.ck-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ck-field { margin-bottom: 14px; }
.ck-field label { display: block; font-weight: 700; color: var(--ink-2); font-size: 0.9em; margin-bottom: 6px; }
.ck-field label em { color: var(--danger); font-style: normal; }
.ck-field label small { color: var(--muted); font-weight: 600; }
.ck-input {
    width: 100%; border: 1px solid #ddd5e2; border-radius: 12px; background: #fff;
    padding: 12px 14px; font-family: inherit; font-size: 1em; color: var(--ink); resize: vertical;
}
.ck-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(72, 17, 91, 0.12); }
.ck-input-short { width: 120px; text-align: center; font-weight: 800; }
.ck-inline { display: flex; gap: 10px; align-items: center; }

.ck-mini { list-style: none; margin: 0 0 10px; padding: 0 0 6px; border-bottom: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.ck-mini li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 0.92em; }
.ck-mini-qty { color: var(--brand); font-weight: 800; min-width: 26px; }
.ck-mini-name { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; }
.ck-mini-name small { display: block; color: var(--muted); font-weight: 500; font-size: 0.85em; }
.ck-mini strong { white-space: nowrap; font-weight: 700; }

/* نافذة النجاح */
.ck-modal {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(29, 21, 35, 0.6); align-items: center; justify-content: center; padding: 16px;
}
.ck-modal-box {
    background: #fff; border-radius: 20px; width: min(420px, 100%); padding: 28px 22px 22px;
    text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.ck-modal-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success);
    display: flex; align-items: center; justify-content: center; font-size: 1.6em; margin-bottom: 4px;
}
.ck-modal-box h3 { margin: 0; font-size: 1.35em; font-weight: 800; color: var(--ink); }
.ck-modal-box p { margin: 0; color: var(--muted); }
.ck-modal-merged { background: var(--success-bg); color: var(--success); border-radius: 12px; padding: 10px 12px; font-size: 0.9em; width: 100%; }
.ck-modal-pill { background: var(--brand-50); color: var(--brand); font-weight: 800; border-radius: 999px; padding: 6px 16px; margin: 4px 0 8px; }

@media (max-width: 900px) {
    .ck-layout { grid-template-columns: minmax(0, 1fr); }
    .ck-summary { position: static; }
}
@media (max-width: 600px) {
    .ck { padding: 16px 12px 110px; }
    .ck-head h1 { font-size: 1.35em; }
    .ck-items { padding: 2px 12px; }
    .ck-row { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
    .ck-img { width: 60px; height: 60px; }
    .ck-info { padding-left: 26px; }
    .ck-side { grid-column: 2; flex-direction: row-reverse; justify-content: space-between; align-items: center; margin-left: 0; }
    .ck-grid2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .ck-form { padding: 16px; }
    .ck-summary a.ck-btn-block { display: none; }
    .ck-mobilebar {
        position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 950;
        display: flex; justify-content: space-between; align-items: center;
        background: var(--brand); color: #fff; border-radius: 14px; padding: 15px 18px;
        text-decoration: none; font-weight: 800; box-shadow: 0 10px 28px rgba(72, 17, 91, 0.35);
    }
    body:has(.ck-mobilebar) .floating-whatsapp-btn { bottom: 84px !important; }
}

/* صنف غير متاح حالياً */
.mn-card.mn-off { cursor: default; background: #faf8fb; }
.mn-card.mn-off:hover { border-color: var(--line); box-shadow: none; }
.mn-card.mn-off .mn-card-body, .mn-card.mn-off img, .mn-card.mn-off .mn-noimg { opacity: 0.5; filter: grayscale(0.6); }
.mn-off-badge {
    position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
    background: rgba(29, 21, 35, 0.85); color: #fff; font-size: 0.72em; font-weight: 700;
    border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
