/* إظهار الفلتر (السايدبار) في الجوال */
@media (max-width: 991.98px) {
    .meals-sidebar {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        position: relative !important;
        float: none !important;
        visibility: visible !important;
    }

        .meals-sidebar .theiaStickySidebar {
            position: static !important;
            transform: none !important;
            top: auto !important;
        }
}
/* إظهار فلتر الأقسام في الجوال */
/* ========== الأساس (ديسكتوب وما فوق) ========== */
/* ========== ديسكتوب: يمين كما هو ========== */
#filtermain,
.widget-callapse {
    direction: rtl;
    text-align: right;
}

/* ========== موبايل: عرض كشبكة Grid بدل عمود واحد ========== */
@media (max-width: 991.98px) {

    /* الفلتر نفسه */
    #filtermain,
    .widget-callapse {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        opacity: 1 !important;
        text-align: center; /* عنوان الفلتر فقط */
    }

        /* قائمة الفئات => GRID */
        #filtermain .catagory-menu {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr); /* عمودين */
            gap: 6px; /* مسافة بين العناصر */
            padding: 0;
            margin: 5px 0;
            list-style: none;
        }

        /* عنصر كل فئة */
        #filtermain .checkbox-item {
            text-align: right; /* داخل الخانة RTL */
            background: #f7f7f7;
            border-radius: 8px;
            padding: 5px;
            border: 1px solid #ddd;
        }

        /* النص RTL والخانة كاملة */
        #filtermain .label {
            display: inline-block;
            direction: rtl;
            text-align: right;
            width: 100%;
            font-size: 14px;
        }
}
/* النصوص فقط RTL */
.checkout-page,
.checkout-page * {
    direction: rtl !important;
    text-align: right !important;
}
/* النصوص داخل محتويات السلة فقط RTL */
.cart-summary,
.cart-summary * {
    direction: rtl !important;
    text-align: right !important;
}

    /* حتى d-flex justify-content-between لا تعكس الاتجاه */
    .cart-summary .d-flex {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

/* قسم بيانات التواصل RTL */
.contact-form,
.contact-form * {
    direction: rtl !important;
    text-align: right !important;
}

    /* لجعل Placeholder RTL أيضاً */
    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        text-align: right !important;
    }
/* جعل أسطر ملخص السلة RTL مع اللّيبل يمين */
.summary-line {
    direction: rtl; /* يخلي أول span (الليبل) على اليمين والثاني على اليسار */
    text-align: right; /* النص نفسه يمين */
}
/* تحريك الخط العمودي 15px لليمين */
.catagory-sidebar.all-catagory-option
ul.catagory-submenu.collapse.show::after {
    right: 15px; /* ← هذا هو المطلوب */
    left: auto;
}
.catagory-submenu {
    position: relative;
}
ul.catagory-submenu::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}
.catagory-sidebar.all-catagory-option
ul.catagory-submenu.collapse.show > li::before {
    right: 15px;
    left: auto;
}
.catagory-sidebar.all-catagory-option
ul.catagory-submenu.collapse.show::after {
    width: 1px;
    background-color: rgba(0,0,0,0.08);
}
/* 1️⃣ ضبط حاوية القائمة */
.catagory-sidebar.all-catagory-option
ul.catagory-submenu.collapse.show {
    padding-left: 0 !important; /* ❌ لا يسار */
    padding-right: 20px !important; /* ✅ مسافة للنص */
    position: relative;
}

    /* 2️⃣ تثبيت عناصر li */
    .catagory-sidebar.all-catagory-option
    ul.catagory-submenu.collapse.show > li {
        padding-right: 10px;
        padding-left: 0;
    }

    /* 3️⃣ تحريك الخط العمودي 15px يمين */
    .catagory-sidebar.all-catagory-option
    ul.catagory-submenu.collapse.show::after {
        right: 15px;
        left: auto;
    }
/* 1️⃣ ضبط ul */
.catagory-sidebar.all-catagory-option
ul.catagory-submenu.collapse.show {
    padding-left: 0 !important;
    padding-right: 20px !important;
    position: relative;
}

    /* 2️⃣ ضبط li */
    .catagory-sidebar.all-catagory-option
    ul.catagory-submenu.collapse.show > li {
        padding: 0 !important;
        margin: 0 !important;
    }

        /* 3️⃣ ضبط الرابط a (هذا المهم) */
        .catagory-sidebar.all-catagory-option
        ul.catagory-submenu.collapse.show > li > a {
            display: block;
            padding: 8px 10px 8px 10px !important; /* تحكم كامل */
            margin: 0 !important;
            text-align: right;
        }

    /* 4️⃣ تحريك الخط العمودي 15px يمين */
    .catagory-sidebar.all-catagory-option
    ul.catagory-submenu.collapse.show::after {
        right: 15px;
        left: auto;
    }
@media (max-width: 767px) {
    .mobile-header {
        padding: 3px 8px !important;
        min-height: 38px !important;
    }

    .mobile-logo-wrapper .logo img {
        width: 30px !important;
        height: 30px !important;
    }

    .mobile-site-title {
        font-size: 14px !important;
        line-height: 1 !important;
    }
}
@media (max-width: 767px) {

    .header .header-top {
        padding: 0 !important;
    }

    .mobile-header {
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 6px !important;
        margin: 0 !important;
        overflow: hidden !important;
        line-height: 1 !important;
    }

    .mobile-logo-wrapper .logo img {
        width: 24px !important;
        height: 24px !important;
    }

    .mobile-site-title {
        font-size: 12px !important;
        line-height: 1 !important;
    }

    .mobile-header a,
    .mobile-header span,
    .mobile-header i {
        font-size: 12px !important;
        line-height: 1 !important;
    }
}
.category-tabs-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 14px;
    margin-bottom: 15px;
    direction: rtl;
}

.category-tab-input {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    padding: 7px 16px;
    border-radius: 999px;
    background: #f3f3f3;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.category-tab-input:checked + .category-tab {
    background: #23253c;
    border-color: #23253c;
    color: #fff;
}

.category-tabs-wrapper::-webkit-scrollbar {
    height: 4px;
}

.category-tabs-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

@media (max-width: 1199px) {

    .mobile-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 56px !important;
        background: #fff !important;
        border-top: 1px solid #e5e5e5 !important;
        z-index: 999999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 14px !important;
    }

    #cart-icon-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }

        #cart-icon-wrapper * {
            white-space: nowrap !important;
            line-height: 1.2 !important;
        }

    body {
        padding-bottom: 65px !important;
    }
}

@media (max-width: 1199px) {

    .mobile-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #ffffff;
        border-top: 1px solid #ddd;
        z-index: 9999999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
    }

    .mobile-cart-btn {
        width: 100%;
        height: 44px;
        background: #23253c;
        color: #fff;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }

    body {
        padding-bottom: 70px;
    }
}
@media (max-width: 1199px) {
    .mobile-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 72px !important;
        background: #fff !important;
        z-index: 9999999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 18px !important;
        box-shadow: 0 -2px 14px rgba(0,0,0,0.08) !important;
        border-radius: 18px 18px 0 0 !important;
    }

        .mobile-footer .btn-order {
            background: #23253c !important;
            color: #fff !important;
            border: none !important;
            border-radius: 999px !important;
            padding: 10px 20px !important;
            font-size: 15px !important;
            font-weight: 700 !important;
        }

    .mobile-cart-total {
        text-align: center !important;
        line-height: 1.2 !important;
    }

        .mobile-cart-total .amount {
            color: #222 !important;
            font-size: 20px !important;
            font-weight: 800 !important;
            direction: ltr !important;
            unicode-bidi: isolate !important;
        }

        .mobile-cart-total .label {
            color: #23253c !important;
            font-size: 14px !important;
            font-weight: 700 !important;
        }

    .mobile-footer .cart-btn {
        width: 50px !important;
        height: 50px !important;
        background: #fff !important;
        color: #23253c !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.18) !important;
        font-size: 24px !important;
    }

        .mobile-footer .cart-btn .badge {
            position: absolute !important;
            top: -5px !important;
            right: -5px !important;
            background: #23253c !important;
            color: #fff !important;
            width: 22px !important;
            height: 22px !important;
            border-radius: 50% !important;
            font-size: 12px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

    body {
        padding-bottom: 82px !important;
    }
}

@media (max-width: 1199px) {

    .mobile-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: #fff;
        z-index: 9999999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        box-shadow: 0 -3px 15px rgba(0,0,0,0.08);
        border-radius: 18px 18px 0 0;
    }

    .btn-order {
        background: #23253c;
        color: #fff;
        border: none;
        border-radius: 999px;
        padding: 10px 20px;
        font-size: 15px;
        font-weight: 700;
    }

    .mobile-cart-total {
        text-align: center;
        line-height: 1.2;
    }

        .mobile-cart-total .amount {
            font-size: 18px;
            font-weight: 800;
            direction: ltr;
        }

        .mobile-cart-total .label {
            color: #23253c;
            font-size: 13px;
            font-weight: 700;
        }

    .cart-btn {
        width: 48px;
        height: 48px;
        background: #fff;
        color: #23253c;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        font-size: 20px;
    }

        .cart-btn .badge {
            position: absolute;
            top: -4px;
            right: -4px;
            background: #23253c;
            color: #fff;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    body {
        padding-bottom: 80px;
    }
}
@media (max-width: 1199px) {
    .mobile-footer,
    .mobile-footer-simple {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 56px !important;
        background: #fff !important;
        z-index: 2147483647 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 18px !important;
        border-top: 1px solid #eee !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .mobile-footer-cart {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        color: #4b566b !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        direction: rtl !important;
    }

        .mobile-footer-cart i {
            font-size: 18px !important;
            color: #4b566b !important;
        }

    body {
        padding-bottom: 60px !important;
    }
}
@media (max-width: 1199px) {
    .mobile-footer-simple {
        position: fixed !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 348px !important;
        max-width: 100% !important;
        height: 56px !important;
        background: #fff !important;
        z-index: 2147483647 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 18px !important;
        border-top: 1px solid #eee !important;
    }

    .mobile-footer-cart {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        color: #4b566b !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    body {
        padding-bottom: 60px !important;
    }
}

@media (max-width: 767px) {

    #sitebar-cart.sitebar-cart {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 5cm !important;
        max-width: 5cm !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 999999 !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        box-shadow: 4px 0 14px rgba(0,0,0,0.15) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
    }

        #sitebar-cart.sitebar-cart.open-side {
            transform: translateX(0) !important;
        }

    #sitebar-cart .sc-head {
        height: 40px !important;
        padding: 0 6px !important;
        font-size: 10px !important;
    }

    #sitebar-cart .cart-product-container {
        padding: 4px !important;
        max-height: calc(100vh - 130px) !important;
        overflow-y: auto !important;
    }

    #sitebar-cart .cart-product-item {
        padding: 6px 2px !important;
        margin-bottom: 5px !important;
    }

    #sitebar-cart .thumb img {
        width: 44px !important;
        height: 44px !important;
        object-fit: contain !important;
    }

    #sitebar-cart .product-title {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    #sitebar-cart .product-cart-info,
    #sitebar-cart .product-price {
        font-size: 9px !important;
    }

    #sitebar-cart .price-increase-decrese-group {
        width: 60px !important;
        height: 22px !important;
    }

        #sitebar-cart .price-increase-decrese-group button,
        #sitebar-cart .price-increase-decrese-group input {
            height: 22px !important;
            line-height: 22px !important;
            font-size: 12px !important;
            padding: 0 !important;
        }

    #sitebar-cart .cart-footer {
        padding: 6px !important;
    }

    #sitebar-cart .procced-checkout {
        height: 32px !important;
        line-height: 32px !important;
        font-size: 10px !important;
        padding: 0 !important;
    }
}
@media (max-width: 767px) {
    #sitebar-cart.sitebar-cart:not(.open-side) {
        transform: translateX(100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    #sitebar-cart.sitebar-cart.open-side {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
@media (max-width: 767px) {

    #sitebar-cart .cart-footer {
        padding: 4px !important;
        font-size: 9px !important;
    }

        #sitebar-cart .cart-footer p {
            margin-bottom: 3px !important;
            font-size: 9px !important;
            line-height: 1.2 !important;
        }

    #sitebar-cart .cart-total .total-price {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }

    #sitebar-cart .procced-checkout {
        height: 28px !important;
        line-height: 28px !important;
        font-size: 9px !important;
        padding: 0 !important;
        border-radius: 4px !important;
    }
}


    .sitebar-cart.open-side {
        transform: translateX(0);
    }

/* Desktop */
@media (min-width: 768px) {
    #sitebar-cart.sitebar-cart {
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

        #sitebar-cart.sitebar-cart.open-side {
            transform: translateX(0);
        }
}

/* Mobile only */
@media (max-width: 767px) {
    #sitebar-cart.sitebar-cart {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 5cm !important;
        max-width: 5cm !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 999999 !important;
        overflow-y: auto !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
    }

        #sitebar-cart.sitebar-cart.open-side {
            transform: translateX(0) !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
}
@media (min-width: 768px) {
    #sitebar-cart.sitebar-cart {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        height: 100vh !important;
        z-index: 999999 !important;
        transform: translateX(100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: all .3s ease !important;
    }

        #sitebar-cart.sitebar-cart.open-side {
            transform: translateX(0) !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
}
#sitebar-cart.no-transition {
    transition: none !important;
}
.mobile-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    text-decoration: none;
}

    .mobile-contact-btn:hover {
        color: #8b1e3f;
        text-decoration: none;
    }

@@media (max-width: 480px) {
    .mobile-contact-btn span {
        display: none;
    }

    .mobile-contact-btn {
        font-size: 16px;
    }
}
@media (max-width: 767px) {

    .product-item {
        margin-bottom: 8px !important;
        border-radius: 12px;
        overflow: hidden;
    }

    .product-thumb {
        height: 115px;
        padding: 0 !important;
        margin-bottom: 6px !important;
    }

        .product-thumb img {
            width: 100%;
            height: 115px;
            object-fit: cover;
        }

    .product-content {
        padding: 6px 7px 8px !important;
    }

        .product-content .cata {
            font-size: 13px;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 3px;
            display: block;
        }

        .product-content h6 {
            display: none;
            margin: 0;
        }

        .product-content .quantity {
            font-size: 11px;
            margin: 0 0 5px 0 !important;
            line-height: 1;
        }

        .product-content .price {
            font-size: 13px;
            font-weight: 800;
            white-space: nowrap;
        }

    .cart-btn-toggle .cart-btn {
        font-size: 11px;
        padding: 5px 7px !important;
        border-radius: 8px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }

        .cart-btn-toggle .cart-btn i {
            font-size: 11px;
        }

    .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

        .row > [class*="col-"] {
            padding-left: 4px !important;
            padding-right: 4px !important;
        }
}
.desktop-footer-signature {
    padding: 14px 10px;
    text-align: center;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    height: 58px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
    flex: 1;
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

    .mobile-nav-item i {
        display: block;
        font-size: 19px;
        margin-bottom: 4px;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item:focus {
        color: #8b1e3f;
        text-decoration: none;
    }

body {
    padding-bottom: 58px;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}
.welcome-section {
    padding: 25px 0 10px;
}

.welcome-box {
    background: linear-gradient(135deg, #7a1f2b, #a83246);
    color: #fff;
    border-radius: 18px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

    .welcome-box h2 {
        margin: 0 0 10px;
        font-size: 28px;
        font-weight: 800;
    }

    .welcome-box p {
        margin: 0;
        font-size: 16px;
        line-height: 1.8;
    }

@@media (max-width: 767px) {
    .welcome-section {
        padding: 15px 0 5px;
    }

    .welcome-box {
        border-radius: 14px;
        padding: 16px 12px;
    }

        .welcome-box h2 {
            font-size: 20px;
        }

        .welcome-box p {
            font-size: 13px;
            line-height: 1.7;
        }
}
.welcome-box h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.welcome-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
}

@@media (max-width: 767px) {
    .welcome-box h2 {
        font-size: 17px;
        color: #fff;
    }

    .welcome-box p {
        font-size: 11px;
        line-height: 1.6;
        color: #fff;
    }
}
@@media (max-width: 767px) {
    .welcome-box {
        transform: scale(0.7);
        transform-origin: top center;
    }
}
@media (max-width: 767px) {
    body {
        padding-bottom: 65px !important;
    }

    main {
        padding-bottom: 65px !important;
    }

    .checkout-section {
        padding-bottom: 70px !important;
    }

    .categories-section,
    .categories-grid,
    .meals-section {
        padding-bottom: 70px !important;
    }

    .checkout-submit-btn {
        margin-bottom: 45px !important;
    }
}