/* =====================================================================
   freemenus - الصفحة التعريفية، دليل المطاعم، صفحة المنيو (رابط الـ QR)
   موبايل الأول، وبيكبر على التابلت والكمبيوتر. الألوان من متغيرات platform.css
   ===================================================================== */
:root {
    --theme: var(--lms-brand);
}

.qm-flip { display: inline-block; }
[dir="ltr"] .qm-flip { transform: scaleX(-1); }
.qm-muted { color: var(--lms-muted); }
.qm-btn--light { background: #fff; color: var(--lms-text); border: 1px solid var(--lms-border); }
.qm-btn--light:hover { background: var(--lms-bg); color: var(--lms-text); }
.qm-btn--theme { background: var(--theme) !important; border-color: var(--theme) !important; }

.qm-section { padding-block: 56px; }
.qm-section--soft { background: #fff; border-block: 1px solid var(--lms-border); }
.qm-section--tight { padding-block: 24px 56px; }
.qm-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.qm-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 8px; color: var(--lms-text); }
.qm-head p { color: var(--lms-muted); line-height: 1.8; }
.qm-head--row { display: flex; align-items: center; justify-content: space-between; max-width: none; text-align: start; gap: 12px; }
.qm-head--row h2 { margin: 0; }
.qm-more { color: var(--lms-brand); font-weight: 700; text-decoration: none; white-space: nowrap; }

.qm-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #ffd79a; font-weight: 700; font-size: .9rem; border: 1px solid rgba(255, 255, 255, .18); }
.qm-badge { position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.qm-badge--accent { background: var(--lms-accent); color: #fff; }

/* ---------- اختيار الدولة جنب اللوجو ---------- */
.qm-brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex-shrink: 0; }
/* الهيدر على الكمبيوتر: لوجو + دولة | روابط في سطر واحد | الدخول وأضف مطعمك */
.lms-header__bar { gap: 18px; }
.lms-nav { flex-wrap: nowrap; }
.lms-nav__link { white-space: nowrap; }
.lms-header__actions { flex-shrink: 0; }
/* الدولة جنب زرار اللغة: علم بس + سهم، والقايمة بتفتح ناحية الطرف */
.lms-header__actions .qm-country summary { height: 40px; padding: 0 10px; gap: 4px; }
.lms-header__actions .qm-country .qm-country__name { display: none; }
.lms-header__actions .qm-country__menu { inset-inline-start: auto; inset-inline-end: 0; }
@media (min-width: 993px) and (max-width: 1150px) {
    .lms-nav { gap: 0; }
    .lms-nav__link { padding-inline: 10px; font-size: .92rem; }
    .qm-country__name { display: none; }
}
.qm-country { position: relative; }
.qm-country summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--lms-border); background: var(--lms-bg); cursor: pointer; font-weight: 800; font-size: .88rem; color: var(--lms-text); white-space: nowrap; user-select: none; transition: border-color .15s; }
.qm-country summary::-webkit-details-marker { display: none; }
.qm-country summary:hover, .qm-country[open] summary { border-color: var(--lms-brand); }
.qm-country summary .fa-chevron-down { font-size: 10px; color: var(--lms-muted); transition: transform .2s; }
.qm-country[open] summary .fa-chevron-down { transform: rotate(180deg); }
.qm-country__flag { font-size: 1.25rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.qm-country__menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 1100; min-width: 210px; background: #fff; border: 1px solid var(--lms-border); border-radius: 16px; box-shadow: var(--lms-shadow-hover); padding: 8px; display: grid; gap: 2px; animation: qm-pop .15s ease-out; }
.qm-country__menu small { padding: 6px 10px; color: var(--lms-muted); font-weight: 700; }
.qm-country__menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--lms-text); text-decoration: none; font-weight: 700; }
.qm-country__menu a:hover { background: var(--lms-bg); }
.qm-country__menu a.is-on { background: var(--lms-brand-soft); color: var(--lms-brand); }
.qm-country__menu a .fa-check { margin-inline-start: auto; }
@keyframes qm-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) {
    .qm-country__name { display: none; }
    .qm-country summary { padding: 0 10px; height: 36px; }
}
html.qm-dark .qm-country summary, html.qm-dark .qm-country__menu { background: var(--lms-surface); }

/* ---------- الفوتر ---------- */
.qm-footer { position: relative; overflow: hidden; background: radial-gradient(600px 300px at 100% 0%, rgba(214, 64, 43, .22), transparent 60%), radial-gradient(500px 260px at 0% 100%, rgba(242, 163, 58, .12), transparent 60%), #17130f; color: rgba(255, 255, 255, .72); padding-top: 56px; border-top: 4px solid var(--lms-brand); }
.qm-footer__grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
.qm-footer__logo { display: inline-block; margin-bottom: 14px; }
.qm-footer__logo img { height: 40px; width: auto; display: block; }
.qm-footer__brand p { max-width: 380px; }
.qm-footer h3 { color: #fff; font-size: 1rem; font-weight: 800; margin: 0 0 16px; position: relative; padding-bottom: 10px; }
.qm-footer h3::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--lms-brand); }
.qm-footer ul a { transition: color .15s, padding .15s; }
.qm-footer ul a:hover { color: #fff; padding-inline-start: 4px; }
.qm-footer .lms-social a:hover { background: var(--lms-brand); color: #fff; }
.qm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: .88rem; }
.qm-footer__bottom-in { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.qm-footer__countries { display: flex; gap: 8px; flex-wrap: wrap; }
.qm-footer__countries a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 700; }
.qm-footer__countries a:hover, .qm-footer__countries a.is-on { background: var(--lms-brand); color: #fff; }
/* البراند دايمًا لوحده من فوق في الشاشات الصغيرة والمتوسطة، والأعمدة جنب بعض تحته */
.qm-footer .qm-footer__brand { text-align: start; grid-column: 1 / -1; }
.qm-footer .qm-footer__brand p { margin-inline: 0; }
.qm-footer .lms-social { justify-content: flex-start; }
@media (min-width: 576px) { .qm-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; } }
@media (min-width: 992px) {
    .qm-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
    .qm-footer .qm-footer__brand { grid-column: auto; }
}
@media (max-width: 575px) {
    .qm-footer { padding-top: 40px; }
    .qm-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
    .qm-footer__grid > div:last-child { grid-column: 1 / -1; }
    .qm-footer__bottom-in { justify-content: center; text-align: center; }
}

/* ---------- تواصل معنا ---------- */
.qm-contact { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .qm-contact { grid-template-columns: 380px minmax(0, 1fr); gap: 32px; } }
.qm-contact__info h2, .qm-contact__form h2 { font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; color: var(--lms-text); }
.qm-contact__info > p { margin-bottom: 16px; line-height: 1.8; }
.qm-contact__list { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.qm-contact__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--lms-border); border-radius: 16px; color: var(--lms-text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.qm-contact__item:hover { border-color: var(--lms-brand); transform: translateY(-1px); color: var(--lms-text); }
.qm-contact__item > i { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--lms-brand-soft); color: var(--lms-brand); }
.qm-contact__item--wa > i { background: #e6f9ee; color: #1fae55; }
.qm-contact__item span { display: grid; min-width: 0; }
.qm-contact__item small { color: var(--lms-muted); font-size: .82rem; }
.qm-contact__item b { font-weight: 800; overflow-wrap: anywhere; }
.qm-contact__cta { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--lms-brand), #8e2416); color: #fff; text-decoration: none; }
.qm-contact__cta:hover { color: #fff; }
.qm-contact__cta > i:first-child { font-size: 22px; }
.qm-contact__cta span { flex: 1; display: grid; }
.qm-contact__cta small { opacity: .85; }
.qm-contact__form { padding: 24px; display: grid; gap: 14px; }
.qm-field { display: grid; gap: 6px; }
.qm-field label { font-weight: 800; font-size: .92rem; }
.qm-field input, .qm-field textarea { width: 100%; border: 1px solid var(--lms-border); border-radius: 12px; padding: 12px 14px; font: inherit; background: var(--lms-bg); color: var(--lms-text); transition: border-color .15s, box-shadow .15s, background .15s; }
.qm-field input:focus, .qm-field textarea:focus { outline: 0; border-color: var(--lms-brand); background: #fff; box-shadow: 0 0 0 4px rgba(214, 64, 43, .1); }
[dir="rtl"] .qm-field input[dir="ltr"] { text-align: right; }
.qm-field__error { color: var(--lms-red); font-weight: 700; }
.qm-captcha { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qm-captcha img { height: 46px; border-radius: 10px; border: 1px solid var(--lms-border); display: block; }
.qm-captcha__reload { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--lms-border); background: #fff; color: var(--lms-muted); cursor: pointer; }
.qm-captcha__reload:hover { color: var(--lms-brand); border-color: var(--lms-brand); }
.qm-captcha input { flex: 1; min-width: 140px; }
.qm-contact__send { justify-self: start; padding-inline: 28px; }
@media (max-width: 575px) { .qm-contact__form { padding: 18px; } .qm-contact__send { justify-self: stretch; justify-content: center; } }

/* ---------- الهيرو ---------- */
.qm-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding-block: 56px 72px;
    background:
        radial-gradient(700px 380px at 90% 0%, rgba(242, 163, 58, .28), transparent 60%),
        radial-gradient(600px 420px at 0% 100%, rgba(214, 64, 43, .45), transparent 60%),
        linear-gradient(135deg, #2a2420 0%, #17130f 100%);
}
.qm-hero__grid { display: grid; gap: 40px; align-items: center; }
.qm-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 900; line-height: 1.25; margin: 18px 0 14px; }
.qm-hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .78); line-height: 1.9; max-width: 560px; }
.qm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.qm-hero__visual { position: relative; display: flex; justify-content: center; }

/* موبايل وهمي في الهيرو */
.qm-phone { width: min(320px, 100%); background: #fff; color: var(--lms-text); border-radius: 34px; padding: 18px 16px 22px; border: 8px solid #0f0c0a; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); transform: rotate(-3deg); }
[dir="ltr"] .qm-phone { transform: rotate(3deg); }
.qm-phone__head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.qm-phone__head strong { display: block; }
.qm-phone__head small { color: var(--lms-accent-text); }
.qm-phone__logo { width: 46px; height: 46px; border-radius: 14px; background: var(--lms-brand); color: #fff; display: grid; place-items: center; font-size: 20px; }
.qm-phone__tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow: hidden; }
.qm-phone__tabs span { padding: 5px 12px; border-radius: 999px; background: var(--lms-bg); font-size: 12px; white-space: nowrap; }
.qm-phone__tabs .is-on { background: var(--lms-brand); color: #fff; }
.qm-phone__item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--lms-border); }
.qm-phone__item strong { display: block; font-size: 14px; }
.qm-phone__item small { color: var(--lms-muted); font-size: 12px; }
.qm-phone__item small i { color: #ef6c00; }
.qm-phone__item b { color: var(--lms-brand); font-size: 14px; white-space: nowrap; }
.qm-phone__img { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #ffe0b2, #ffab91); display: grid; place-items: center; color: #bf360c; }
.qm-qr-float { position: absolute; bottom: -12px; inset-inline-start: 6%; background: #fff; color: var(--lms-text); border-radius: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; box-shadow: 0 16px 34px rgba(0, 0, 0, .3); }
.qm-qr-float i { font-size: 30px; color: var(--lms-brand); }

/* ---------- البحث ---------- */
.qm-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--lms-border); border-radius: 16px; padding: 6px 6px 6px 6px; padding-inline-start: 16px; box-shadow: var(--lms-shadow); max-width: 640px; }
.qm-search > i { color: var(--lms-muted); }
.qm-search > input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; padding: 10px 4px; color: var(--lms-text); }
.qm-search--hero { color: var(--lms-text); }

/* قوايم المكان المتسلسلة */
.qm-locsel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qm-locsel--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qm-locsel__item { position: relative; }
.qm-locsel__item > i { position: absolute; top: 50%; inset-inline-start: 12px; transform: translateY(-50%); color: var(--lms-muted); pointer-events: none; font-size: 13px; }
.qm-locsel select { width: 100%; height: 44px; border: 1px solid var(--lms-border); border-radius: 12px; background: var(--lms-bg); font: inherit; font-size: .92rem; color: var(--lms-text); padding-inline: 12px 8px; cursor: pointer; }
.qm-locsel__item > i + select { padding-inline-start: 32px; }
.qm-locsel select:disabled { opacity: .55; cursor: not-allowed; }
.qm-locsel__item.is-empty { display: none; }
.qm-search .qm-locsel--bar { flex: 0 0 100%; order: 5; padding-top: 6px; border-top: 1px solid var(--lms-border); }
.qm-search:has(.qm-locsel--bar) { flex-wrap: wrap; padding: 8px; padding-inline-start: 16px; }
.qm-page-head__place { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: #ffd79a; margin-inline-start: 8px; vertical-align: middle; }
@media (max-width: 575px) {
    .qm-locsel { grid-template-columns: 1fr 1fr; }
    .qm-locsel--3 .qm-locsel__item:first-child { grid-column: 1 / -1; }
    .qm-locsel select { height: 42px; font-size: .88rem; }
}

/* ---------- الأرقام ---------- */
.qm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: -36px; position: relative; z-index: 2; }
.qm-stats > div { background: #fff; border: 1px solid var(--lms-border); border-radius: var(--lms-radius); padding: 18px; text-align: center; box-shadow: var(--lms-shadow); }
.qm-stats strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--lms-brand); }
.qm-stats span { color: var(--lms-muted); font-size: .9rem; }

/* ---------- يثقون بنا (شريط اللوجوهات) ---------- */
.qm-eyebrow { display: block; color: var(--lms-accent-text); font-weight: 800; margin-bottom: 6px; }
.qm-accent { color: var(--lms-brand); }
.qm-trusted { padding-bottom: 40px; overflow: hidden; }
.qm-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.qm-marquee__track { display: flex; gap: 16px; width: max-content; padding: 6px 0 10px; animation: qm-marquee 45s linear infinite; }
[dir="rtl"] .qm-marquee__track { animation-name: qm-marquee-rtl; }
.qm-marquee:hover .qm-marquee__track { animation-play-state: paused; }
@keyframes qm-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
@keyframes qm-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(calc(50% + 8px)); } }
@media (prefers-reduced-motion: reduce) {
    .qm-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .qm-marquee__track [aria-hidden="true"] { display: none; }
}
.qm-logo-card { flex: 0 0 auto; width: 150px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px 18px; background: #fff; border: 1px solid var(--lms-border); border-radius: 18px; text-decoration: none; color: var(--lms-text); transition: transform .2s, box-shadow .2s; }
.qm-logo-card:hover { transform: translateY(-3px); box-shadow: var(--lms-shadow-hover); color: var(--lms-brand); }
.qm-logo-card__img { width: 76px; height: 76px; border-radius: 18px; overflow: hidden; border: 1px solid var(--lms-border); background: #fff; }
.qm-logo-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qm-logo-card__name { font-weight: 800; font-size: .9rem; text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575px) {
    .qm-logo-card { width: 118px; padding: 16px 8px 14px; border-radius: 16px; }
    .qm-logo-card__img { width: 60px; height: 60px; border-radius: 14px; }
}

/* ---------- ليه تختارنا ---------- */
.qm-why { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.qm-why__card { background: #fff; border: 1px solid var(--lms-border); border-radius: 22px; padding: 26px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.qm-why__card:hover { transform: translateY(-3px); box-shadow: var(--lms-shadow-hover); border-color: var(--lms-accent); }
.qm-why__card.is-main { border-color: var(--lms-accent); background: linear-gradient(180deg, #fffaf0, #fff); }
.qm-why__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--lms-accent-soft); color: var(--lms-accent-text); margin-bottom: 18px; }
.qm-why__card.is-main .qm-why__icon { background: var(--lms-accent); color: #fff; }
.qm-why__card h3 { font-size: 1.1rem; font-weight: 900; color: var(--lms-brand-dark); margin-bottom: 8px; }
.qm-why__card p { color: var(--lms-muted); line-height: 1.85; }
@media (min-width: 576px) { .qm-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .qm-why { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- الباقات (الكروت نفسها في css/plans.css) ---------- */
.qm-pricing-country { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 6px; padding: 2px 10px; border-radius: 999px; background: var(--lms-accent-soft); color: var(--lms-accent-text); font-weight: 800; }
.qm-pricing-note { text-align: center; color: var(--lms-muted); margin-top: 22px; }
html.qm-dark .pl-card { background: var(--lms-surface); border-color: var(--lms-border); }

/* ---------- الخطوات ---------- */
.qm-steps { display: grid; gap: 16px; }
.qm-step { position: relative; background: #fff; border: 1px solid var(--lms-border); border-radius: var(--lms-radius); padding: 28px 22px; text-align: center; box-shadow: var(--lms-shadow); }
.qm-step > i { font-size: 30px; color: var(--lms-brand); margin-bottom: 12px; display: block; }
.qm-step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.qm-step p { color: var(--lms-muted); line-height: 1.8; }
.qm-step__num { position: absolute; top: 14px; inset-inline-start: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--lms-brand-soft); color: var(--lms-brand); display: grid; place-items: center; font-weight: 800; }

/* ---------- المميزات ---------- */
.qm-features { display: grid; gap: 24px; }
.qm-features__title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; color: var(--lms-text); }
.qm-features__title i { color: var(--lms-brand); }
.qm-features__col { display: grid; gap: 12px; align-content: start; }
.qm-feature { display: flex; gap: 14px; background: var(--lms-bg); border: 1px solid var(--lms-border); border-radius: var(--lms-radius); padding: 16px; }
.qm-feature > i { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--lms-brand-soft); color: var(--lms-brand); display: grid; place-items: center; font-size: 18px; }
.qm-feature h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }
.qm-feature p { color: var(--lms-muted); line-height: 1.7; font-size: .95rem; }
.qm-free-box { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, var(--lms-brand), #f2683a); color: #fff; border-radius: var(--lms-radius); padding: 18px; }
.qm-free-box > i { font-size: 32px; }
.qm-free-box p { opacity: .9; line-height: 1.7; }

/* ---------- الأقسام ---------- */
.qm-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qm-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px; background: #fff; border: 1px solid var(--lms-border); border-radius: var(--lms-radius); text-decoration: none; color: var(--lms-text); text-align: center; transition: transform .2s, box-shadow .2s; }
.qm-cat:hover { transform: translateY(-2px); box-shadow: var(--lms-shadow-hover); color: var(--lms-text); }
.qm-cat > i { width: 56px; height: 56px; border-radius: 50%; background: var(--lms-accent-soft); color: var(--lms-accent-text); display: grid; place-items: center; font-size: 22px; }
.qm-cat img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.qm-cat small { color: var(--lms-muted); }

/* ---------- كارت المطعم ---------- */
.qm-rgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.qm-rcard { display: block; background: #fff; border: 1px solid var(--lms-border); border-radius: var(--lms-radius); overflow: hidden; text-decoration: none; color: var(--lms-text); box-shadow: var(--lms-shadow); transition: transform .2s, box-shadow .2s; }
.qm-rcard:hover { transform: translateY(-3px); box-shadow: var(--lms-shadow-hover); color: var(--lms-text); }
.qm-rcard__cover { position: relative; display: block; aspect-ratio: 16 / 7; max-height: 170px; width: 100%; background: linear-gradient(135deg, var(--theme), #2a2420); }
.qm-rcard__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qm-rcard__body { display: flex; align-items: center; gap: 12px; padding: 0 14px 14px; }
.qm-rcard__logo { flex: 0 0 64px; height: 64px; margin-top: -26px; border-radius: 16px; background: #fff; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); overflow: hidden; display: grid; place-items: center; color: var(--lms-brand); font-size: 24px; position: relative; }
.qm-rcard__logo img { width: 100%; height: 100%; object-fit: cover; }
.qm-rcard__info { flex: 1; min-width: 0; padding-top: 10px; }
.qm-rcard__info strong { display: block; font-size: 1.05rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qm-rcard__info small { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--lms-muted); font-size: .85rem; }
.qm-rating { align-self: flex-end; display: inline-flex; gap: 4px; align-items: center; background: var(--lms-accent-soft); color: var(--lms-accent-text); padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: .9rem; white-space: nowrap; }
.qm-rating small { font-weight: 600; }

/* ---------- دعوة ---------- */
.qm-cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: space-between; margin-block: 56px 0; padding: 32px 24px; border-radius: 24px; color: #fff; background: radial-gradient(500px 260px at 100% 0%, rgba(242, 163, 58, .5), transparent 60%), linear-gradient(135deg, var(--lms-brand), #8e2416); }
.qm-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: 6px; }
.qm-cta p { opacity: .9; line-height: 1.8; }

/* ---------- أسئلة ---------- */
.qm-faq { max-width: 820px; }
.qm-faq__item { background: #fff; border: 1px solid var(--lms-border); border-radius: var(--lms-radius-sm); margin-bottom: 10px; padding: 0 18px; }
.qm-faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.qm-faq__item summary::-webkit-details-marker { display: none; }
.qm-faq__item summary::after { content: '+'; color: var(--lms-brand); font-size: 1.3rem; line-height: 1; }
.qm-faq__item[open] summary::after { content: '−'; }
.qm-faq__item p { color: var(--lms-muted); line-height: 1.8; padding-bottom: 16px; }

/* ---------- دليل المطاعم ---------- */
.qm-page-head { padding-block: 36px 30px; background: linear-gradient(135deg, #2a2420, #17130f); color: #fff; }
.qm-page-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 6px; }
.qm-page-head p { color: rgba(255, 255, 255, .75); margin-bottom: 18px; }
.qm-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.qm-chips::-webkit-scrollbar { display: none; }
.qm-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--lms-border); color: var(--lms-text); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; transition: background .15s, color .15s; }
.qm-chip small { color: var(--lms-muted); font-weight: 600; }
.qm-chip:hover { color: var(--theme); border-color: var(--theme); }
.qm-chip.is-on { background: var(--theme); border-color: var(--theme); color: #fff; }
.qm-chip.is-on small { color: rgba(255, 255, 255, .8); }
.qm-chips--sub .qm-chip { font-size: .85rem; padding: 6px 12px; }
.qm-result-note { color: var(--lms-muted); margin-bottom: 14px; }
.qm-result-note a { color: var(--lms-brand); font-weight: 700; margin-inline-start: 8px; }
.qm-empty { text-align: center; padding: 48px 16px; color: var(--lms-muted); }
.qm-empty > i { font-size: 44px; color: var(--lms-brand); opacity: .5; margin-bottom: 12px; }
.qm-empty h3 { color: var(--lms-text); font-weight: 800; margin-bottom: 6px; }
.qm-empty p { margin-bottom: 16px; }
.qm-empty--sm { padding: 24px; }
.qm-pagination { margin-top: 24px; display: flex; justify-content: center; }
.qm-pagination .pagination { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; justify-content: center; }
.qm-pagination .page-link { display: block; min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--lms-border); color: var(--lms-text); text-decoration: none; }
.qm-pagination .active .page-link { background: var(--lms-brand); color: #fff; border-color: var(--lms-brand); }
.qm-pagination .disabled .page-link { opacity: .5; }

/* =====================================================================
   صفحة المطعم والمنيو
   ===================================================================== */
.qm-preview-bar { background: #fff4e0; color: #8a5a00; text-align: center; padding: 10px 16px; font-weight: 700; }
.qm-rhead { background: #fff; border-bottom: 1px solid var(--lms-border); }
.qm-rhead__cover { height: 170px; background: linear-gradient(135deg, var(--theme), #2a2420); overflow: hidden; }
.qm-rhead__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qm-rhead__bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: end; padding-bottom: 16px; }
.qm-rhead__logo { width: 88px; height: 88px; margin-top: -44px; border-radius: 22px; background: #fff; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); overflow: hidden; display: grid; place-items: center; color: var(--theme); font-size: 34px; position: relative; }
.qm-rhead__logo img { width: 100%; height: 100%; object-fit: cover; }
.qm-rhead__info h1 { font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 900; line-height: 1.3; }
.qm-rhead__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--lms-muted); font-size: .9rem; margin-top: 4px; }
.qm-rhead__meta a { color: var(--lms-text); text-decoration: none; font-weight: 800; }
.qm-star { color: #f5a623; }
.qm-featured { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--lms-accent-soft); color: var(--lms-accent-text); font-weight: 800; font-size: .8rem; }
.qm-open { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.qm-open::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.qm-open.is-open { background: #e4f6ed; color: #17643f; }
.qm-open.is-closed { background: #fdecec; color: #a1262e; }
.qm-rhead__actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qm-action { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--lms-bg); border: 1px solid var(--lms-border); color: var(--lms-text); text-decoration: none; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.qm-action i { font-size: 18px; color: var(--theme); }
.qm-action--wa i { color: #1fae55; }
.qm-action:hover { border-color: var(--theme); color: var(--lms-text); }

/* التبويبات اللي بتلزق فوق */
.qm-ptabs { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lms-border); }
.qm-ptabs__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.qm-ptabs__in::-webkit-scrollbar { display: none; }
.qm-ptabs a { flex: 0 0 auto; padding: 14px 12px; color: var(--lms-muted); text-decoration: none; font-weight: 800; font-size: .92rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.qm-ptabs a.is-on { color: var(--theme); border-color: var(--theme); }

.qm-rmain { padding-block: 18px 40px; }
.qm-block { scroll-margin-top: 64px; padding-block: 14px; }
.qm-block__title { font-size: 1.3rem; font-weight: 900; margin-bottom: 14px; }
.qm-block__title small { color: var(--lms-muted); font-weight: 600; font-size: .9rem; }
.qm-card { background: #fff; border: 1px solid var(--lms-border); border-radius: var(--lms-radius); padding: 16px; box-shadow: var(--lms-shadow); }

/* المنيو */
.qm-menu-tools { position: sticky; top: 50px; z-index: 800; background: var(--lms-bg); padding: 10px 0 6px; margin-bottom: 4px; }
.qm-search--menu { max-width: none; box-shadow: none; margin-bottom: 10px; padding-block: 2px; }
.qm-sections { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.qm-sections::-webkit-scrollbar { display: none; }
.qm-msection { scroll-margin-top: 170px; margin-top: 18px; }
.qm-msection__title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 900; margin-bottom: 10px; }
.qm-msection__title img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.qm-items { display: grid; gap: 10px; }
.qm-item { position: relative; display: flex; gap: 12px; background: #fff; border: 1px solid var(--lms-border); border-radius: var(--lms-radius); padding: 12px; }
.qm-item[hidden], .qm-msection[hidden] { display: none; }
.qm-item__img { flex: 0 0 96px; height: 96px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--lms-bg); order: 2; }
.qm-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qm-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qm-item h3 { font-size: 1rem; font-weight: 800; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qm-item p { color: var(--lms-muted); font-size: .88rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qm-item__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.qm-price { font-weight: 900; color: var(--theme); font-size: 1.08rem; }
.qm-price small { font-size: .78rem; font-weight: 700; }
.qm-price del { color: var(--lms-muted); font-weight: 600; font-size: .85rem; margin-inline-start: 6px; }
.qm-cal { display: inline-flex; gap: 4px; align-items: center; font-size: .8rem; color: #b45309; background: #fff7ed; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.qm-sizes { list-style: none; display: grid; gap: 4px; margin-top: 2px; }
.qm-sizes li { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 6px 10px; background: var(--lms-bg); border-radius: 10px; }
.qm-sizes small { color: #b45309; font-size: .75rem; }
.qm-sizes b { color: var(--theme); white-space: nowrap; }
.qm-tag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; }
.qm-tag--star { background: #fff4d6; color: #b7791f; }
.qm-tag--spicy { background: #fdecec; color: #c62828; }
.qm-tag--veg { background: #e4f6ed; color: #1f9d63; }
.qm-item.is-off { opacity: .55; }
.qm-off-label { align-self: flex-start; font-size: .75rem; font-weight: 800; color: #a1262e; background: #fdecec; padding: 2px 8px; border-radius: 999px; }

/* عن المطعم */
.qm-about { line-height: 1.9; color: var(--lms-text); margin-bottom: 12px; }
.qm-contacts { list-style: none; display: grid; gap: 8px; }
.qm-contacts li { display: flex; gap: 10px; align-items: center; }
.qm-contacts i { width: 20px; color: var(--theme); text-align: center; }
.qm-contacts a { color: var(--lms-text); text-decoration: none; font-weight: 700; }
.qm-social { margin-top: 14px; }

/* الفروع */
.qm-branches { display: grid; gap: 14px; }
.qm-branch { display: flex; flex-direction: column; gap: 12px; }
.qm-branch__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.qm-branch__head h3 { font-size: 1.05rem; font-weight: 800; }
.qm-branch__head p { color: var(--lms-muted); font-size: .9rem; margin-top: 4px; line-height: 1.6; }
.qm-branch__head p i { color: var(--theme); }
.qm-map { border-radius: 14px; overflow: hidden; height: 190px; background: repeating-linear-gradient(45deg, #f4efe9, #f4efe9 10px, #efe8e0 10px, #efe8e0 20px); display: grid; place-items: center; }
.qm-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.qm-map__load { border: 0; background: #fff; padding: 10px 16px; border-radius: 999px; font: inherit; font-weight: 800; color: var(--lms-text); box-shadow: var(--lms-shadow); cursor: pointer; }
.qm-map__load i { color: var(--theme); }
.qm-hours summary { cursor: pointer; font-weight: 800; padding: 4px 0; }
.qm-hours summary i { color: var(--theme); }
.qm-hours ul { list-style: none; margin-top: 8px; display: grid; gap: 2px; }
.qm-hours li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; font-size: .9rem; }
.qm-hours li.is-today { background: var(--lms-brand-soft); font-weight: 800; }
.qm-closed-day { color: #a1262e; font-weight: 700; }
.qm-branch__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* أرقام الفرع والتوصيل */
.qm-branch__badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qm-delivery { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: #eef4ff; color: #1d4ed8; white-space: nowrap; }
.qm-phones { list-style: none; display: grid; gap: 6px; }
.qm-phone-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--lms-bg); border: 1px solid var(--lms-border); color: var(--lms-text); text-decoration: none; }
.qm-phone-link:hover { border-color: var(--theme); color: var(--lms-text); }
.qm-phone-link i { width: 18px; text-align: center; color: var(--theme); }
.qm-phone-link span { flex: 1; min-width: 0; color: var(--lms-muted); font-size: .88rem; }
.qm-phone-link b { font-weight: 800; }
.qm-phone-link--delivery i { color: #1d4ed8; }
.qm-phone-link--whatsapp i { color: #1fae55; }

/* الصور */
.qm-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qm-gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--lms-bg); }
.qm-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.qm-gallery button:hover img { transform: scale(1.05); }
.qm-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(10, 8, 7, .92); display: grid; place-items: center; padding: 16px; }
.qm-lightbox[hidden] { display: none; }
.qm-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.qm-lightbox button { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; cursor: pointer; }

/* التقييمات */
.qm-reviews { display: grid; gap: 12px; }
.qm-rsum { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qm-rsum strong { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.qm-rsum small { color: var(--lms-muted); }
.qm-stars { --rate: 0; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; font-family: Arial, sans-serif; background: linear-gradient(90deg, #f5a623 calc(var(--rate) / 5 * 100%), #e2dcd6 calc(var(--rate) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .qm-stars { background: linear-gradient(270deg, #f5a623 calc(var(--rate) / 5 * 100%), #e2dcd6 calc(var(--rate) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; }
.qm-stars::before { content: '★★★★★'; }
.qm-rlist { display: grid; gap: 10px; }
.qm-review__head { display: flex; align-items: center; gap: 10px; }
.qm-review__head > div { flex: 1; min-width: 0; }
.qm-review__head strong { display: block; }
.qm-review__head small { color: var(--lms-muted); font-size: .8rem; }
.qm-review p { margin-top: 10px; line-height: 1.8; color: var(--lms-text); }
.qm-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lms-brand-soft); color: var(--theme); display: grid; place-items: center; font-weight: 900; }
.qm-review-form { margin-top: 14px; display: grid; gap: 10px; }
.qm-review-form h3 { font-weight: 900; font-size: 1.1rem; }
.qm-review-form input, .qm-review-form textarea { width: 100%; border: 1px solid var(--lms-border); border-radius: 12px; padding: 12px 14px; font: inherit; background: var(--lms-bg); color: var(--lms-text); }
.qm-review-form input:focus, .qm-review-form textarea:focus { outline: 0; border-color: var(--theme); background: #fff; }
.qm-form-row { display: grid; gap: 10px; }
.qm-rate-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
[dir="rtl"] .qm-rate-input { flex-direction: row-reverse; justify-content: flex-start; }
.qm-rate-input { position: relative; }
.qm-rate-input input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qm-rate-input label { font-size: 30px; color: #e2dcd6; cursor: pointer; transition: color .15s, transform .15s; }
.qm-rate-input label:hover, .qm-rate-input label:hover ~ label, .qm-rate-input input:checked ~ label { color: #f5a623; }
.qm-rate-input input:focus-visible + label { transform: scale(1.15); }
.qm-powered { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 30px; color: var(--lms-muted); font-size: .8rem; }

/* بار صفحة المطعم: الاتصال في النص بلون المطعم */
.qm-rtabbar .lms-tabbar__wa { color: var(--theme); }
.qm-rtabbar .lms-tabbar__wa i { background: var(--theme); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.qm-rtabbar .lms-tabbar__item.is-active, .qm-rtabbar .lms-tabbar__item.is-active i { color: var(--theme); }
.qm-tabbar__search i { background: var(--lms-brand) !important; box-shadow: 0 6px 16px rgba(214, 64, 43, .35) !important; }
.lms-tabbar .qm-tabbar__search { color: var(--lms-brand); }
/* على الكمبيوتر بار المطعم مش محتاجينه (التبويبات فوق) */
@media (min-width: 993px) {
    .qm-rtabbar { display: none !important; }
}
/* صفحة المنيو: هيدر المنصة مش لازق عشان تبويبات المطعم تاخد مكانه فوق */
.qm-menu-page .lms-header { position: relative; }

/* صفحة المنيو بتخفي زرار الواتساب العائم بتاع المنصة (عشان مايتلخبطش مع واتساب المطعم) */
.qm-menu-page .floating-whatsapp { display: none !important; }

/* =====================================================================
   الوضع الليلي لصفحة المنيو (html.qm-dark): بيتبع إعداد الموبايل، وزرار القمر بيغيّره ويتحفظ
   ===================================================================== */
.qm-rhead__cover { position: relative; }
.qm-theme-btn { position: absolute; top: 12px; inset-inline-end: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); color: #fff; font-size: 17px; cursor: pointer; display: grid; place-items: center; }
.qm-theme-btn .fa-sun { display: none; }
html.qm-dark .qm-theme-btn .fa-sun { display: inline; }
html.qm-dark .qm-theme-btn .fa-moon { display: none; }
html.qm-dark {
    color-scheme: dark;
    --lms-bg: #141110;
    --lms-surface: #1e1a17;
    --lms-border: #312a26;
    --lms-text: #f3ece6;
    --lms-muted: #b0a49c;
    --lms-brand-soft: rgba(214, 64, 43, .2);
    --lms-accent-soft: rgba(242, 163, 58, .16);
    --lms-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
html.qm-dark body.lms { background: var(--lms-bg); }
html.qm-dark .lms-header { background: rgba(20, 17, 16, .94); }
html.qm-dark .lms-header__logo img, html.qm-dark .qm-powered img { content: url('/logo-white.svg'); }
html.qm-dark .qm-rhead, html.qm-dark .qm-card, html.qm-dark .qm-item, html.qm-dark .qm-chip, html.qm-dark .qm-search,
html.qm-dark .qm-rhead__logo, html.qm-dark .qm-map__load, html.qm-dark .lms-icon-btn { background: var(--lms-surface); color: var(--lms-text); }
html.qm-dark .qm-rhead__logo { border-color: var(--lms-surface); }
html.qm-dark .qm-ptabs { background: rgba(20, 17, 16, .96); }
html.qm-dark .qm-action, html.qm-dark .qm-phone-link, html.qm-dark .qm-sizes li, html.qm-dark .qm-review-form input, html.qm-dark .qm-review-form textarea, html.qm-dark .qm-search--menu { background: #26201c; color: var(--lms-text); }
html.qm-dark .qm-chip.is-on { background: var(--theme); color: #fff; }
html.qm-dark .qm-cal { background: rgba(245, 158, 11, .15); color: #fbbf24; }
html.qm-dark .qm-open.is-open { background: rgba(31, 157, 99, .2); color: #6ee7a8; }
html.qm-dark .qm-open.is-closed { background: rgba(198, 40, 40, .2); color: #fca5a5; }
html.qm-dark .qm-delivery { background: rgba(59, 130, 246, .18); color: #93c5fd; }
html.qm-dark .qm-hours li.is-today { background: rgba(214, 64, 43, .2); }
html.qm-dark .qm-map { background: repeating-linear-gradient(45deg, #221d1a, #221d1a 10px, #1b1714 10px, #1b1714 20px); }
html.qm-dark .lms-tabbar { background: rgba(20, 17, 16, .96); border-color: var(--lms-border); }
html.qm-dark .lms-tabbar__wa i { border-color: var(--lms-bg); }
html.qm-dark .qm-stars { background: linear-gradient(270deg, #f5a623 calc(var(--rate) / 5 * 100%), #4a403a calc(var(--rate) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; }
html.qm-dark .lms-drawer__panel { background: var(--lms-surface); color: var(--lms-text); }

/* =====================================================================
   الشاشات الأكبر
   ===================================================================== */
@media (min-width: 576px) {
    .qm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .qm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qm-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qm-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qm-form-row { grid-template-columns: 1fr 1fr; }
    .qm-item__img { flex-basis: 116px; height: 116px; }
}

@media (min-width: 768px) {
    .qm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qm-features { grid-template-columns: 1fr 1fr; gap: 32px; }
    .qm-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .qm-cta { flex-direction: row; align-items: center; padding: 40px; }
    .qm-rhead__cover { height: 260px; }
    .qm-rhead__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
    .qm-rhead__logo { width: 120px; height: 120px; margin-top: -60px; border-radius: 28px; }
    .qm-rhead__actions { grid-column: auto; display: flex; }
    .qm-action { flex-direction: row; padding: 10px 14px; font-size: .88rem; }
    .qm-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qm-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qm-reviews { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
    .qm-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .qm-hero { padding-block: 80px 100px; }
    .qm-hero__grid { grid-template-columns: 1.15fr .85fr; }
    .qm-rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qm-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .qm-ptabs { top: 0; }
}

@media (min-width: 1200px) {
    .qm-rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* الموبايل الصغير: الصورة على جنب أصغر */
@media (max-width: 380px) {
    .qm-item__img { flex-basis: 80px; height: 80px; }
    .qm-hero__actions .lms-btn { width: 100%; justify-content: center; }
}
