/* =========================================================
   Rawda — نسق الروضة (Shami vintage menu)
   قالب متجر: موارد CSS فقط، لا يعتمد على Bootstrap
   ========================================================= */

:root {
    --rw-paper: #f3e5c4;
    --rw-paper-2: #ecd9b0;
    --rw-paper-3: #e3cd9f;
    --rw-ink: #3e3122;
    --rw-ink-soft: #6b5941;
    --rw-rust: #a94a2b;
    --rw-rust-deep: #8c3a20;
    --rw-brand: #a94a2b;
    --rw-teal: #2f7a76;
    --rw-ochre: #cf9a3f;
    --rw-gold: #c9a86a;
    --rw-band: rgba(201, 168, 106, .26);
    --rw-line: rgba(120, 92, 52, .35);

    --rw-font-display: 'Aref Ruqaa', 'Amiri', serif;
    --rw-font-body: 'Amiri', 'Times New Roman', serif;
    --rw-font-ui: 'Cairo', 'Segoe UI', sans-serif;

    --rw-frame: 1px solid var(--rw-gold);
    --rw-shadow: 0 10px 30px rgba(62, 49, 34, .16);
    --rw-max: 980px;
}

/* ---------- القاعدة: ورق قديم ---------- */
body {
    margin: 0;
    background-color: var(--rw-paper);
    background-image:
        /* حبيبات الورق */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E"),
        /* شبكة نجوم ثمانية باهتة */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23a94a2b' stroke-opacity='.085' stroke-width='1'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='4'/%3E%3Cpath d='M0 32h16M48 32h16M32 0v16M32 48v16'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .5), transparent 42%),
        radial-gradient(circle at 82% 68%, rgba(197, 160, 100, .28), transparent 46%),
        radial-gradient(circle at 50% 100%, rgba(140, 105, 60, .18), transparent 55%),
        repeating-linear-gradient(0deg, rgba(120, 92, 52, .035) 0 2px, transparent 2px 4px);
    color: var(--rw-ink);
    font-family: var(--rw-font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.rawda {
    max-width: var(--rw-max);
    margin: 0 auto;
    padding: 0 14px 130px;
    position: relative;
}

/* الشريط الأرابيسك الجانبي */
.rawda::before,
.rawda::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 34px;
    z-index: 0;
    background-color: var(--rw-paper-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='68' viewBox='0 0 34 68'%3E%3Crect width='34' height='68' fill='%23e9d5ac'/%3E%3Cg%3E%3Crect x='7' y='7' width='20' height='20' fill='%23a94a2b'/%3E%3Crect x='7' y='7' width='20' height='20' transform='rotate(45 17 17)' fill='%232f7a76'/%3E%3Ccircle cx='17' cy='17' r='4' fill='%23cf9a3f'/%3E%3Crect x='7' y='41' width='20' height='20' transform='rotate(45 17 51)' fill='%23a94a2b'/%3E%3Crect x='7' y='41' width='20' height='20' fill='%23cf9a3f'/%3E%3Ccircle cx='17' cy='51' r='4' fill='%232f7a76'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 34px 68px;
    box-shadow: inset 0 0 0 1px rgba(120, 92, 52, .25);
}

.rawda::before {
    inset-inline-start: 0;
}

.rawda::after {
    inset-inline-end: 0;
}

@media (max-width: 1199.98px) {
    .rawda::before,
    .rawda::after {
        display: none;
    }
}

/* ---------- الشريط العلوي ---------- */
.rw-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 0 -14px 18px;
    background: linear-gradient(180deg, var(--rw-paper-2), var(--rw-paper-3));
    border-bottom: var(--rw-frame);
    box-shadow: 0 6px 18px rgba(62, 49, 34, .12);
}

.rw-topbar__brand {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--rw-ink);
}

.rw-topbar__logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    padding: 3px;
    box-sizing: border-box;
    border: 2px solid var(--rw-gold);
    background: var(--rw-paper);
    flex: 0 0 auto;
}

.rw-topbar__name {
    font-family: var(--rw-font-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--rw-rust-deep);
}

/* إطار مزدوج داخلي لصفحات القائمة */
.rw-sheet::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(201, 168, 106, .55);
    pointer-events: none;
}

/* ---------- صورة الغلاف بكامل العرض ---------- */
.rw-hero {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 -14px 26px;
    padding: 0;
    background: #fffaee;
    border-block: var(--rw-frame);
    box-shadow: var(--rw-shadow);
}

.rw-hero__img {
    display: block;
    width: 100%;
    height: clamp(190px, 44vw, 340px);
    object-fit: cover;
    filter: sepia(.14) saturate(.95) contrast(1.04) brightness(.99);
}

/* إطار داخلي + تظليل حواف */
.rw-hero::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 168, 106, .8);
    box-shadow: inset 0 0 70px rgba(62, 49, 34, .34);
    pointer-events: none;
}

.rw-hero .rw-corner {
    color: var(--rw-gold);
    opacity: .95;
}

.rw-hero .rw-corner--tl,
.rw-hero .rw-corner--tr { top: 14px; }

.rw-hero .rw-corner--bl,
.rw-hero .rw-corner--br { bottom: 14px; }

/* ميدالية صغيرة على حافة الصورة */
.rw-hero__keystone {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    padding: 4px;
    box-sizing: border-box;
    color: var(--rw-rust);
    background: var(--rw-paper);
    border: var(--rw-frame);
    border-radius: 50%;
}

.rw-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    font-family: var(--rw-font-ui);
    font-size: 12.5px;
}

.rw-meta span,
.rw-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--rw-gold);
    border-radius: 999px;
    background: rgba(255, 252, 243, .6);
    color: var(--rw-ink-soft);
    text-decoration: none;
}

.rw-meta i {
    color: var(--rw-rust);
}

/* فواصل زخرفية */
.rw-orn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rw-gold);
    font-size: 12px;
}

.rw-orn::before,
.rw-orn::after {
    content: "";
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rw-gold), transparent);
}

/* ---------- شريط التصنيفات ---------- */
.rw-cats {
    position: sticky;
    top: 58px;
    z-index: 30;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 4px;
    margin: 0 -4px 22px;
    background: linear-gradient(180deg, var(--rw-paper) 62%, rgba(243, 229, 196, 0));
    scrollbar-width: none;
}

.rw-cats::-webkit-scrollbar {
    display: none;
}

.rw-cat {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 84px;
    padding: 6px 4px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    font-family: var(--rw-font-ui);
    transition: .18s ease;
}

.rw-cat__img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rw-gold);
    background: #fffaee;
    padding: 2px;
}

/* تصنيف بلا صورة مُصوّرة: اسم فقط داخل حبوب، دون مربّع بديل */
.rw-cat--text {
    width: auto;
    min-height: 58px;
    padding: 8px 14px;
    justify-content: center;
}

.rw-cat--text .rw-cat__name {
    font-size: 12.5px;
    max-height: 2.7em;
    white-space: nowrap;
}

.rw-cat__name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--rw-ink-soft);
    text-align: center;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
}

.rw-cat.is-active {
    border-color: var(--rw-gold);
    background: rgba(255, 252, 243, .75);
}

.rw-cat.is-active .rw-cat__name {
    color: var(--rw-rust-deep);
}

.rw-cat.is-active .rw-cat__img {
    border-color: var(--rw-rust);
}

/* ---------- صفحة القائمة (القسم) ---------- */
.rw-sheet {
    position: relative;
    z-index: 1;
    margin: 0 0 26px;
    padding: 26px 16px 22px;
    background:
        linear-gradient(180deg, rgba(255, 252, 243, .62), rgba(255, 252, 243, .22)),
        var(--rw-paper);
    border: var(--rw-frame);
    box-shadow: var(--rw-shadow);
}

/* الشريط المزخرف على حافة الصفحة */
.rw-sheet::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='44' viewBox='0 0 22 44'%3E%3Crect x='5' y='5' width='12' height='12' fill='%23a94a2b'/%3E%3Crect x='5' y='5' width='12' height='12' transform='rotate(45 11 11)' fill='%232f7a76'/%3E%3Crect x='5' y='27' width='12' height='12' transform='rotate(45 11 33)' fill='%23cf9a3f'/%3E%3Crect x='5' y='27' width='12' height='12' fill='%23a94a2b' opacity='.75'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 22px 44px;
    opacity: .9;
    pointer-events: none;
}

.rw-sheet--alt::after {
    inset-inline-end: auto;
    inset-inline-start: 0;
}

.rw-sheet {
    padding-inline-end: 34px;
}

.rw-sheet--alt {
    padding-inline-end: 16px;
    padding-inline-start: 34px;
}

/* زوايا مزخرفة */
.rw-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    color: var(--rw-gold);
    pointer-events: none;
    opacity: .9;
}

.rw-corner--tl { top: 3px; inset-inline-start: 3px; }
.rw-corner--tr { top: 3px; inset-inline-end: 3px; transform: scaleX(-1); }
.rw-corner--bl { bottom: 3px; inset-inline-start: 3px; transform: scaleY(-1); }
.rw-corner--br { bottom: 3px; inset-inline-end: 3px; transform: scale(-1, -1); }

.rw-section-title {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 0 6px;
}

.rw-section-title h2 {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 6px 30px;
    font-family: var(--rw-font-display);
    font-size: clamp(22px, 4.6vw, 32px);
    font-weight: 700;
    color: var(--rw-rust-deep);
    line-height: 1.5;
}

/* شريط خلف العنوان كما في الصور */
.rw-section-title h2::before {
    content: "";
    position: absolute;
    inset: 4px 0;
    background: var(--rw-band);
    border-radius: 3px;
    transform: skewX(-6deg);
    z-index: -1;
}

.rw-section-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--rw-gold);
    font-size: 11px;
}

.rw-section-rule::before,
.rw-section-rule::after {
    content: "";
    height: 1px;
    width: 90px;
    background: linear-gradient(90deg, transparent, var(--rw-gold));
}

.rw-section-rule::after {
    background: linear-gradient(90deg, var(--rw-gold), transparent);
}

.rw-section-note {
    text-align: center;
    font-family: var(--rw-font-ui);
    font-size: 12.5px;
    color: var(--rw-ink-soft);
    margin: -10px 0 18px;
}

/* ---------- الأصناف ---------- */
.rw-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
    z-index: 1;
}

@media (min-width: 720px) {
    .rw-items {
        grid-template-columns: 1fr 1fr;
        gap: 12px 22px;
    }
}

.rw-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px dashed var(--rw-line);
    background: none;
    transition: background .18s ease;
}

.rw-item:last-child {
    border-bottom: 0;
}

.rw-item:hover {
    background: rgba(255, 252, 243, .55);
}

.rw-item__media {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    position: relative;
    display: grid;
    place-items: center;
}

.rw-item__img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fffaee;
    box-shadow: 0 0 0 1px var(--rw-gold), 0 6px 14px rgba(62, 49, 34, .18);
    background: #fffaee;
    cursor: zoom-in;
}

/* الصنف بلا صورة: صف نصي كامل العرض دون أي مربّع بديل */
.rw-item--text {
    padding-inline-start: 4px;
}

.rw-item--text .rw-item__name::before {
    content: "❖";
    margin-inline-end: 7px;
    font-size: 11px;
    color: var(--rw-gold);
    vertical-align: 2px;
}

/* لمسة حية على صورة الصنف */
.rw-item__img {
    transition: transform .22s ease, box-shadow .22s ease;
}

.rw-item__img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 1px var(--rw-ochre), 0 10px 22px rgba(62, 49, 34, .26);
}

/* معيّنات ذهبية على حافتي عنوان القسم */
.rw-section-title::before,
.rw-section-title::after {
    content: "❖";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rw-gold);
    font-size: 13px;
    opacity: .85;
}

.rw-section-title::before {
    inset-inline-start: 10px;
}

.rw-section-title::after {
    inset-inline-end: 10px;
}

.rw-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.rw-item__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rw-item__name {
    font-family: var(--rw-font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--rw-ink);
    line-height: 1.5;
    padding: 0 8px;
    background: var(--rw-band);
    border-radius: 3px;
}

.rw-item__dots {
    flex: 1 1 auto;
    min-width: 18px;
    border-bottom: 2px dotted var(--rw-line);
    transform: translateY(-5px);
}

.rw-item__price {
    flex: 0 0 auto;
    font-family: var(--rw-font-ui);
    font-size: 16px;
    font-weight: 800;
    color: var(--rw-rust-deep);
    white-space: nowrap;
}

.rw-item__price .rw-cur {
    font-size: 11px;
    font-weight: 600;
    color: var(--rw-ink-soft);
    margin-inline-start: 3px;
}

.rw-item__desc {
    font-size: 14px;
    color: var(--rw-ink-soft);
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rw-item__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.rw-allergies {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rw-allergies img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* زر الإضافة */
.rw-add {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--rw-rust);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--rw-rust), var(--rw-rust-deep));
    color: #fff6e6;
    font-family: var(--rw-font-ui);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(140, 58, 32, .28);
    transition: transform .14s ease, box-shadow .14s ease;
}

.rw-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(140, 58, 32, .34);
}

.rw-add:active {
    transform: scale(.96);
}

.rw-add--ghost {
    background: none;
    color: var(--rw-rust-deep);
    box-shadow: none;
}

/* ---------- حالة الفراغ ---------- */
.rw-empty {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 46px 20px;
    border: var(--rw-frame);
    background: rgba(255, 252, 243, .5);
    color: var(--rw-ink-soft);
    font-family: var(--rw-font-ui);
}

/* ---------- الفوتر ---------- */
.rw-footer {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding: 24px 16px;
    text-align: center;
    border: var(--rw-frame);
    background: linear-gradient(180deg, rgba(255, 252, 243, .55), rgba(227, 205, 159, .45));
    font-family: var(--rw-font-ui);
    font-size: 13px;
    color: var(--rw-ink-soft);
}

.rw-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.rw-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--rw-gold);
    color: var(--rw-rust-deep);
    background: rgba(255, 252, 243, .7);
    transition: .16s ease;
}

.rw-social a:hover {
    background: var(--rw-rust);
    color: #fff6e6;
}

/* ---------- شريط الطلب العائم ---------- */
.floating-checkout {
    position: fixed;
    z-index: 60;
    inset-inline: 14px;
    bottom: 14px;
    max-width: var(--rw-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid var(--rw-rust-deep);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--rw-rust), var(--rw-rust-deep));
    color: #fff6e6;
    font-family: var(--rw-font-ui);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(62, 49, 34, .35);
}

.floating-checkout i {
    margin-inline-end: 8px;
}

.checkout-price {
    padding-inline-start: 14px;
    border-inline-start: 1px solid rgba(255, 246, 230, .4);
    font-variant-numeric: tabular-nums;
}

/* ---------- النوافذ المنبثقة ---------- */
.rw-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 24px auto;
    padding: 22px 18px 24px;
    background:
        linear-gradient(180deg, #fffaee, var(--rw-paper));
    border: 1px solid var(--rw-gold);
    box-shadow: 0 24px 60px rgba(30, 22, 12, .45);
}

.rw-dialog::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(201, 168, 106, .5);
    pointer-events: none;
}

.rw-dialog.mfp-hide {
    display: none !important;
}

.rw-dialog__head {
    text-align: center;
    margin-bottom: 14px;
}

.rw-dialog__title {
    font-family: var(--rw-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--rw-rust-deep);
    margin: 0;
}

.rw-dialog__sub {
    font-family: var(--rw-font-ui);
    font-size: 12.5px;
    color: var(--rw-ink-soft);
    margin: 2px 0 0;
}

/* رأس الصنف داخل النافذة */
.rw-popup-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--rw-line);
    margin-bottom: 14px;
}

.rw-popup-item .rw-item__media {
    width: 68px;
    height: 68px;
}

.rw-popup-item__title {
    font-family: var(--rw-font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--rw-ink);
}

.rw-popup-item__price {
    font-family: var(--rw-font-ui);
    font-weight: 800;
    color: var(--rw-rust-deep);
}

.rw-popup-item__desc {
    font-size: 13.5px;
    color: var(--rw-ink-soft);
    margin: 4px 0 0;
}

.rw-group {
    margin-bottom: 16px;
}

.rw-group__title {
    font-family: var(--rw-font-ui);
    font-size: 13px;
    font-weight: 800;
    color: var(--rw-teal);
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--rw-gold);
}

.rw-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 4px;
    font-family: var(--rw-font-ui);
    font-size: 14px;
}

.rw-choice input {
    accent-color: var(--rw-rust);
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.rw-choice__label {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rw-choice__price {
    font-weight: 700;
    color: var(--rw-rust-deep);
    white-space: nowrap;
}

.rw-choice.is-disabled {
    opacity: .45;
}

/* العدّاد */
.rw-qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 0;
}

.rw-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--rw-gold);
    border-radius: 999px;
    overflow: hidden;
    background: #fffaee;
}

.rw-qty button {
    width: 38px;
    height: 38px;
    border: 0;
    background: none;
    color: var(--rw-rust-deep);
    font-size: 18px;
    font-family: var(--rw-font-ui);
    cursor: pointer;
}

.rw-qty button:hover {
    background: var(--rw-band);
}

.rw-qty input {
    width: 44px;
    height: 38px;
    border: 0;
    text-align: center;
    background: none;
    font-family: var(--rw-font-ui);
    font-size: 15px;
    font-weight: 800;
    color: var(--rw-ink);
}

.rw-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--rw-rust-deep);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--rw-rust), var(--rw-rust-deep));
    color: #fff6e6;
    font-family: var(--rw-font-ui);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(140, 58, 32, .3);
    transition: transform .14s ease;
}

.rw-btn:hover {
    transform: translateY(-1px);
}

.rw-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.rw-btn--block {
    width: 100%;
}

/* نموذج الطلب */
.rw-field {
    width: 100%;
    margin-bottom: 10px;
    padding: 11px 14px;
    border: 1px solid var(--rw-gold);
    border-radius: 8px;
    background: #fffaee;
    font-family: var(--rw-font-ui);
    font-size: 14px;
    color: var(--rw-ink);
}

.rw-field:focus {
    outline: none;
    border-color: var(--rw-rust);
    box-shadow: 0 0 0 3px rgba(169, 74, 43, .14);
}

.rw-label {
    display: block;
    font-family: var(--rw-font-ui);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--rw-ink-soft);
    margin: 0 0 4px 2px;
}

select.rw-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a94a2b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-inline-end: 34px;
}

textarea.rw-field {
    min-height: 62px;
    resize: vertical;
}

.rw-form-error {
    display: none;
    margin: 4px 0 10px;
    padding: 8px 12px;
    border: 1px solid var(--rw-rust);
    border-radius: 6px;
    background: rgba(169, 74, 43, .1);
    font-family: var(--rw-font-ui);
    font-size: 13px;
    color: var(--rw-rust-deep);
}

/* عناصر السلة */
.rw-cart {
    max-height: 42vh;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-inline-end: 4px;
}

.rw-cart__item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--rw-line);
}

.rw-cart__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rw-cart__name {
    flex: 1 1 auto;
    font-family: var(--rw-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--rw-ink);
}

.rw-cart__name small {
    font-family: var(--rw-font-ui);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--rw-ink-soft);
}

.rw-cart__price {
    font-family: var(--rw-font-ui);
    font-size: 14px;
    font-weight: 800;
    color: var(--rw-rust-deep);
    white-space: nowrap;
}

.rw-del {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--rw-gold);
    border-radius: 50%;
    background: none;
    color: var(--rw-rust);
    font-size: 12px;
    cursor: pointer;
}

.rw-del:hover {
    background: var(--rw-rust);
    color: #fff6e6;
}

.rw-cart__extras {
    margin: 6px 0 0;
    padding: 0 0 0 18px;
    list-style: none;
    font-family: var(--rw-font-ui);
    font-size: 12px;
    color: var(--rw-ink-soft);
}

.rw-cart__extras li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0;
}

.rw-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 16px;
    padding: 10px 14px;
    border: 1px solid var(--rw-gold);
    border-radius: 8px;
    background: var(--rw-band);
    font-family: var(--rw-font-ui);
    font-weight: 800;
}

.rw-total .your-order-price,
.rw-total .rw-total__value {
    font-size: 18px;
    color: var(--rw-rust-deep);
}

/* رسالة النجاح */
.order-success-message {
    text-align: center;
    padding: 26px 10px;
}

.order-success-message i {
    font-size: 46px;
    color: var(--rw-teal);
}

.order-success-message h4 {
    font-family: var(--rw-font-display);
    font-size: 24px;
    color: var(--rw-rust-deep);
    margin: 12px 0 0;
}

/* مشغّل الزر */
.button-progress {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.button-progress::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 246, 230, .45);
    border-top-color: #fff6e6;
    border-radius: 50%;
    animation: rw-spin .7s linear infinite;
}

@keyframes rw-spin {
    to { transform: rotate(360deg); }
}

/* ---------- معاينة الصورة ---------- */
.rw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(30, 22, 12, .88);
    cursor: zoom-out;
}

.rw-lightbox.is-open {
    display: grid;
}

.rw-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border: 6px solid var(--rw-paper);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

/* ---------- هوية المطعم اللونية ---------- */
@supports (color: color-mix(in srgb, red 50%, blue)) {
    .rw-topbar__name { color: color-mix(in srgb, var(--rw-brand) 66%, #2a1d12); }

    .rw-section-title h2 { color: color-mix(in srgb, var(--rw-brand) 60%, #2a1d12); }

    .rw-item__price { color: color-mix(in srgb, var(--rw-brand) 76%, #2a1d12); }

    .rw-hero__keystone,
    .rw-meta i { color: color-mix(in srgb, var(--rw-brand) 82%, #2a1d12); }
}

/* ---------- طباعة ---------- */
@media print {
    .rw-topbar,
    .rw-cats,
    .floating-checkout,
    .rw-add,
    .rw-footer,
    .rw-dialog {
        display: none !important;
    }

    .rw-sheet {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* ---------- شاشات صغيرة جداً ---------- */
@media (max-width: 400px) {
    .rw-item__media {
        width: 68px;
        height: 68px;
    }

    .rw-item__name {
        font-size: 17px;
    }

    .rw-dialog {
        padding: 18px 12px 20px;
    }
}
