:root {
    --o1: #2e5c4e;
    /* Dark green */
    --o2: #d4c0a8;
    /* Light beige */
    --grad: linear-gradient(90deg, var(--o1) 0%, var(--o2) 100%);
    --muted: #6b7280;
    --ring: rgba(46, 92, 78, 0.28);

    /* Light Mode Defaults */
    --bg-card: #ffffff;
    --text-main: #111827;
    --border-color: #e5e7eb;
    --secondary-50: #f8fafc;
}

/* Dark Mode Overrides for Modal specific colors */
.dark {
    --o1: #4ade80;
    /* Brighter green for dark mode */
    --o2: #fbbf24;
    --muted: #9ca3af;
    --ring: rgba(74, 222, 128, 0.28);

    /* Dark Mode Values */
    --bg-card: #1e293b;
    /* slate-800 */
    --text-main: #ffffff;
    --border-color: #334155;
    /* slate-700 */
    --secondary-50: #334155;
    /* slate-700 */
}

/* EXPLICIT DARK MODE OVERRIDES (To guarantee it works) */
html.dark #productModal .card-like {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

html.dark #productModal .title {
    color: #ffffff !important;
}

html.dark #productModal .desc {
    color: #9ca3af !important;
}

html.dark #productModal .section {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark #productModal .cta-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

html.dark #productModal .meta .value {
    color: #ffffff !important;
}

html.dark #productModal .meta .value {
    color: #ffffff !important;
}

html.dark #productModal .stepper .btn-step {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

html.dark #productModal .stepper input {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

html.dark #productModal .input {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

html.dark #productModal #modalCta {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark #productModal #modalPriceFooter {
    color: #ffffff !important;
}

html.dark #productModal .btn-primary,
html.dark #productModal .btn-outline-primary {
    background-color: #1e293b !important;
    color: var(--o1) !important;
    border-color: var(--o1) !important;
}

html.dark #productModal .btn-primary:hover,
html.dark #productModal .btn-outline-primary:hover {
    background: var(--grad) !important;
    color: #fff !important;
}

html.dark #productModal label {
    color: #ffffff !important;
}

html.dark #cart-sidebar {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    z-index: 100000;
}

html.dark #cart-sidebar .border-b,
html.dark #cart-sidebar .border-t {
    border-color: #1e293b !important;
}

html.dark #cart-sidebar .bg-white {
    background-color: #0f172a !important;
}

html.dark #cart-sidebar .text-slate-900 {
    color: #ffffff !important;
}

/* Cart Items */
html.dark #cartList .rounded-xl {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark #cartList h4 {
    color: #ffffff !important;
}

html.dark #cartList .text-slate-600 {
    color: #cbd5e1 !important;
}

/* Total Section */
html.dark #totalPrices {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

html.dark #totalPrices span {
    color: #ffffff !important;
}

html.dark #totalPrices span {
    color: #ffffff !important;
}

html.dark #totalPrices .text-primary-600 {
    color: var(--o1) !important;
}

/* EXPLICIT DARK MODE OVERRIDES FOR ABOUT & MAP */
html.dark #about {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

html.dark #about h2,
html.dark #about h3 {
    color: #ffffff !important;
}

html.dark #about p {
    color: #9ca3af !important;
}

html.dark #about .bg-slate-50 {
    background-color: #1e293b !important;
}

html.dark #about .hover\:bg-white:hover {
    background-color: #334155 !important;
}

html.dark #contact {
    background-color: #020617 !important;
}

/* slate-950 */
html.dark #contact h2,
html.dark #contact h3,
html.dark #contact h4 {
    color: #ffffff !important;
}

html.dark #contact p,
html.dark #contact span {
    color: #9ca3af !important;
}

html.dark #contact .bg-white {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html.dark #contact .text-slate-900 {
    color: #ffffff !important;
}

#productModal .card-like {
    background: var(--bg-card, #fff);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    color: var(--text-main, #111827);
}

#productModal .image-box {
    height: 220px;
    background-size: cover;
    background-position: center;
}

#productModal .title {
    font-weight: 800;
    color: var(--text-main, #111827);
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

#productModal .desc {
    color: var(--text-muted, #6b7280);
    font-size: 14px;
    margin-top: 0.5rem;
}

#productModal .price {
    color: var(--o1);
    font-weight: 800;
    font-size: 18px;
}

#productModal .section {
    border: 1px solid var(--border-color, #f0f0f0);
    border-radius: 16px;
    padding: 12px;
    background: var(--bg-card, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) inset;
}

/* ===== حاويات الخيارات وتبديل ظهورها ===== */
.option-block {
    display: block;
}

.option-block.is-hidden {
    display: none !important;
}

/* ترتيب الحبوب */
#variants-area-inside,
#exrtas-area-inside {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ====== حالات الحبوب القديمة (span/div) ====== */
.variant-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.variant-pill {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: var(--secondary-50, #f5f6f7);
    color: var(--text-main, #333);
    font-weight: 600;
    border: 1px solid var(--border-color, #ececec);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.variant-pill:hover {
    filter: brightness(0.98);
}

.variant-pill.is-active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(46, 92, 78, 0.22);
}

/* ====== تحويل أي عنصر داخل الحاويتين لبيل (لو مش label+radio) ====== */
#variants-area-inside > *:not(script):not(style):not(input),
#exrtas-area-inside > *:not(script):not(style):not(input) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    margin: 0.25rem 0.25rem 0 0;
    border-radius: 9999px;
    background: transparent;
    border: 1.5px solid var(--o1);
    color: var(--o1);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    line-height: 1.1;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
        box-shadow 0.22s ease, transform 0.06s ease;
}

#variants-area-inside > *:hover,
#exrtas-area-inside > *:hover {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    filter: brightness(0.98);
}

#variants-area-inside > *.active,
#exrtas-area-inside > *.active,
#variants-area-inside > *.is-active,
#exrtas-area-inside > *.is-active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(46, 92, 78, 0.22);
}

#variants-area-inside > *:active,
#exrtas-area-inside > *:active {
    transform: translateY(1px) scale(0.98);
}

/* ====== Radio + Label ====== */
#variants-area-inside input[type="radio"],
#exrtas-area-inside input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* الليبل بعد الراديو */
#variants-area-inside input[type="radio"] + label,
#exrtas-area-inside input[type="radio"] + label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    margin: 0.25rem 0.25rem 0 0;
    border-radius: 9999px;
    background: transparent;
    border: 1.5px solid var(--o1);
    color: var(--o1);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    line-height: 1.1;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
        box-shadow 0.22s ease, transform 0.06s ease;
}

#variants-area-inside input[type="radio"] + label:hover,
#exrtas-area-inside input[type="radio"] + label:hover {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    filter: brightness(0.98);
}

#variants-area-inside input[type="radio"]:checked + label,
#exrtas-area-inside input[type="radio"]:checked + label {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(46, 92, 78, 0.22);
}

#variants-area-inside input[type="radio"] + label:active,
#exrtas-area-inside input[type="radio"] + label:active {
    transform: translateY(1px) scale(0.98);
}

#variants-area-inside input[type="radio"] + label::before,
#exrtas-area-inside input[type="radio"] + label::before {
    content: none !important;
}

/* ===== إزالة الأزرق الافتراضي للـ Bootstrap داخل المودال ===== */
#productModal .btn:focus,
#productModal .btn.focus,
#productModal .btn-primary:focus,
#productModal .btn-outline-primary:focus,
#productModal .btn-check:focus + .btn {
    outline: none !important;
    box-shadow: none !important;
}

/* الحالة العادية: أبيض + حدود/نص برتقالي */
#productModal .btn-primary,
#productModal .btn-outline-primary,
#productModal .btn-group .btn,
#productModal .btn-group-toggle .btn {
    background: var(--bg-card, #fff) !important;
    color: var(--o1) !important;
    border-color: var(--o1) !important;
    border-radius: 9999px !important;
}

/* عند الـ :hover */
#productModal .btn-primary:hover,
#productModal .btn-outline-primary:hover {
    background: var(--grad) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* عند التفعيل/الاختيار */
#productModal .btn-primary.active,
#productModal .btn-outline-primary.active,
#productModal .btn-group .btn.active,
#productModal .btn-check:checked + .btn,
#productModal .options input:checked + label.btn,
#productModal .item-options input:checked + label.btn {
    background: var(--grad) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(46, 92, 78, 0.22) !important;
}

/* inputs */
/* inputs */
.input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border-color, #e6e7eb);
    border-radius: 12px;
    background: var(--bg-card, #fff);
    color: var(--text-main, #333);
}

.input:focus {
    outline: none;
    border-color: var(--o1);
    box-shadow: 0 0 0 4px var(--ring);
}

/* ===== Sticky footer (السعر + الكمية + الزر) على شكل كارت أبيض ===== */
.modal-cta {
    position: sticky;
    bottom: 0;
    background: transparent;
    padding: 0;
}

.cta-card {
    margin: 10px 12px 6px;
    background: var(--bg-card, #fff);
    border-radius: 28px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
    padding: 16px 16px 14px;
    color: var(--text-main, #111827);
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.meta .col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.meta .sub {
    color: var(--text-muted, #6b7280);
    font-size: 12px;
}

.meta .value {
    font-weight: 900;
    color: var(--text-main, #111827);
    font-size: 28px;
    line-height: 1;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.stepper .btn-step {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #ececec);
    background: var(--secondary-50, #f7f7f9);
    font-size: 22px;
    line-height: 1;
    color: var(--o1);
    cursor: pointer;
}

.stepper input {
    width: 58px;
    text-align: center;
    border: 1px solid var(--border-color, #ececec);
    border-radius: 12px;
    padding: 0.55rem;
    background: var(--bg-card, #fff);
    color: var(--text-main, #333);
}

.btn-grad {
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(46, 92, 78, 0.25);
    cursor: pointer;
    transition: transform 0.06s ease, filter 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.btn-grad:hover {
    filter: brightness(0.98);
}

.btn-grad:active {
    transform: translateY(1px);
}

.btn-grad:focus-visible {
    outline: 3px solid rgba(46, 92, 78, 0.4);
    outline-offset: 2px;
}

.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    background: #121212;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 100000;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

#modalCta.clickable {
    cursor: pointer;
}

#productModal {
    background: rgba(0, 0, 0, 0.35);
    z-index: 10070 !important;
}

#productModal,
#productModal.show,
#productModal[style*="display"],
.modal.show #productModal,
#productModal:not(.hidden) {
    z-index: 10070 !important;
}

#productModal .relative {
    z-index: 10071 !important;
    position: relative !important;
}

.modal-close-button,
.modal-close-button-image {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10080 !important;
}

#productModal .modal-close-button,
#productModal .modal-close-button-image {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10080 !important;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ea580c;
    border-radius: 4px;
}

[v-cloak] {
    display: none;
}

/* Fix Bootstrap/Tailwind conflicts */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0;
}

/* Hide Luxe default elements if they appear */
.btn_reserve_fixed {
    display: none !important;
}

/* Disable Vue transitions in cart to prevent reordering */
#cartList > div {
    transition: none !important;
    animation: none !important;
}

.v-enter-active,
.v-leave-active,
.v-move {
    transition: none !important;
}

/* ===== Desktop Categories Swiper (Original Design with Swiper) ===== */
@media (min-width: 769px) {
    .categories-swiper-wrapper {
        width: 100%;
        overflow: hidden;
        padding: 0;
        position: relative;
    }

    .swiper-container.mySwiperDesktop {
        padding: 0;
        width: 100%;
        margin: 0;
        overflow: hidden !important;
        position: relative;
    }

    .swiper-container.mySwiperDesktop .swiper-wrapper {
        display: flex !important;
        align-items: center;
        transition-timing-function: linear;
        width: auto !important;
    }

    .swiper-container.mySwiperDesktop .swiper-slide {
        width: auto !important;
        flex-shrink: 0 !important;
        height: auto;
        display: flex !important;
        align-items: center;
    }

    .swiper-container.mySwiperDesktop .swiper-slide .filter-btn {
        white-space: nowrap;
        margin: 0;
    }

    /* Ensure Swiper is interactive */
    .swiper-container.mySwiperDesktop {
        touch-action: pan-x;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
    }

    .swiper-container.mySwiperDesktop:active {
        cursor: grabbing;
    }

    .swiper-container.mySwiperDesktop.swiper-rtl {
        direction: rtl;
    }

    /* Force Swiper to be scrollable */
    .swiper-container.mySwiperDesktop.swiper {
        overflow: visible !important;
    }

    .swiper-container.mySwiperDesktop .swiper-wrapper {
        transform: translate3d(0, 0, 0) !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .categorySection {
        margin-top: 20px;
        margin-bottom: 10px;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
        z-index: 30;
    }

    /* شريط الفئات ثابت يتحرك مع التمرير */
    .categorySection.fixed-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 10060 !important;
        background: var(--bg-card, #fff) !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.3s ease !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: transform, box-shadow !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    .dark .categorySection.fixed-nav {
        background: var(--bg-card, #1e293b) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }

    /* عند التمرير: إضافة ظل أقوى */
    .categorySection.fixed-nav.sticky-active {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .dark .categorySection.fixed-nav.sticky-active {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    }

    /* إضافة مسافة في الأعلى عند تفعيل الشريط الثابت */
    body.category-nav-fixed {
        padding-top: 0 !important;
    }

    body.category-nav-fixed .categorySection.fixed-nav {
        margin-top: 0 !important;
    }

    /* إضافة مسافة للمحتوى عند تفعيل sticky */
    body.category-nav-fixed #menu-grid {
        margin-top: 0 !important;
    }

    .categorySection .restaurant-container {
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .categorySection .restaurant-container.swiper-is-end {
        padding-right: 0 !important;
    }

    .categorySection .defaultHeading {
        display: none !important;
    }

    .item-wrapper {
        width: 100%;
        overflow: hidden;
    }

    .topCategory {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .swiper-container.mySwiper {
        padding: 10px 0 3px 15px;
        width: 100%;
        margin: 0;
        margin-bottom: 0 !important;
    }

    .swiper-container.mySwiper.swiper-rtl.is-end {
        padding-left: 0 !important;
        padding-bottom: 3px !important;
    }

    .swiper-wrapper {
        display: flex;
        align-items: stretch;
    }

    .swiper-slide {
        width: auto !important;
        flex-shrink: 0;
        height: auto;
        display: flex;
        align-items: stretch;
    }

    .singleCatItem {
        background: var(--bg-card, #fff);
        border-radius: 12px;
        padding: 15px 10px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        cursor: pointer;
        border: 2px solid transparent;
        width: 100%;
        min-height: 140px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .dark .singleCatItem {
        background: var(--bg-card, #1e293b) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .singleCatItem:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(234, 88, 12, 0.2);
        border-color: var(--primary-600, #ea580c);
    }

    .dark .singleCatItem:hover {
        box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
    }

    .singleCatItem.active:not(.singleCatItem-all) {
        background: linear-gradient(
            135deg,
            rgba(234, 88, 12, 0.15),
            rgba(234, 88, 12, 0.06)
        ) !important;
        border-color: var(--primary-600, #ea580c) !important;
        border-width: 2px !important;
        box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35) !important;
    }

    .dark .singleCatItem.active:not(.singleCatItem-all) {
        background: linear-gradient(
            135deg,
            rgba(234, 88, 12, 0.25),
            rgba(234, 88, 12, 0.15)
        ) !important;
        box-shadow: 0 8px 20px rgba(234, 88, 12, 0.5) !important;
    }

    .singleCatItem.active:not(.singleCatItem-all) h4 {
        color: var(--primary-600, #ea580c) !important;
        font-weight: 700 !important;
    }

    .singleCatItem.active:not(.singleCatItem-all) .catTop {
        border-color: var(--primary-600, #ea580c) !important;
        border-width: 3px !important;
        box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4) !important;
    }

    .dark .singleCatItem.active:not(.singleCatItem-all) .catTop {
        box-shadow: 0 4px 12px rgba(234, 88, 12, 0.6) !important;
    }

    body.category-filtered .singleCatItem-all {
        background: linear-gradient(
            90deg,
            var(--primary-600, #ea580c) 0%,
            var(--primary-500, #f97316) 55%,
            var(--primary-400, #fb923c) 100%
        ) !important;
        border: 2px solid var(--primary-600, #ea580c) !important;
    }

    body.category-filtered .singleCatItem-all.active {
        background: linear-gradient(
            90deg,
            var(--primary-600, #ea580c) 0%,
            var(--primary-500, #f97316) 55%,
            var(--primary-400, #fb923c) 100%
        ) !important;
        border: 2px solid var(--primary-600, #ea580c) !important;
    }

    body.show-all-categories .singleCatItem-all.active {
        background: linear-gradient(
            90deg,
            var(--primary-600, #ea580c) 0%,
            var(--primary-500, #f97316) 55%,
            var(--primary-400, #fb923c) 100%
        ) !important;
        border: 2px solid var(--primary-600, #ea580c) !important;
    }

    .singleCatItem:not(.active):not(.singleCatItem-all) {
        background: var(--bg-card, #fff) !important;
        border-color: transparent !important;
    }

    .dark .singleCatItem:not(.active):not(.singleCatItem-all) {
        background: var(--bg-card, #1e293b) !important;
    }

    .singleCatItem:not(.active):not(.singleCatItem-all) h4 {
        color: var(--text-main, #111827) !important;
        font-weight: 600 !important;
    }

    .dark .singleCatItem:not(.active):not(.singleCatItem-all) h4 {
        color: var(--text-main, #ffffff) !important;
    }

    .singleCatItem:not(.active):not(.singleCatItem-all) .catTop {
        border-color: var(--border-color, rgba(234, 88, 12, 0.1)) !important;
    }

    .dark .singleCatItem:not(.active):not(.singleCatItem-all) .catTop {
        border-color: rgba(234, 88, 12, 0.2) !important;
    }

    .catTop {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin: 0 auto 12px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border: 3px solid var(--border-color, rgba(234, 88, 12, 0.1));
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .dark .catTop {
        border-color: rgba(234, 88, 12, 0.2);
    }

    .singleCatItem:hover .catTop {
        border-color: var(--primary-600, #ea580c);
        transform: scale(1.05);
    }

    .singleCatItem.active .catTop {
        border-color: var(--primary-600, #ea580c);
        box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    }

    .dark .singleCatItem.active .catTop {
        box-shadow: 0 4px 12px rgba(234, 88, 12, 0.5);
    }

    .singleCatItem h4 {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-main, #111827);
        margin: 0;
        text-align: center;
        line-height: 1.4;
        padding: 0 5px;
    }

    .dark .singleCatItem h4 {
        color: var(--text-main, #ffffff);
    }

    .singleCatItem.active h4 {
        color: var(--primary-600, #ea580c);
        font-weight: 700;
    }

    .cat-swiper-link {
        text-decoration: none;
        display: block;
        height: 100%;
        width: 100%;
        pointer-events: auto;
    }

    .singleCatItem-all {
        background: linear-gradient(
            90deg,
            var(--primary-600, #ea580c) 0%,
            var(--primary-500, #f97316) 55%,
            var(--primary-400, #fb923c) 100%
        ) !important;
        border: 2px solid var(--primary-600, #ea580c) !important;
    }

    .singleCatItem-all h4 {
        color: #fff !important;
    }

    .catTop-icon {
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
    }

    .catTop-icon i {
        font-size: 40px;
        color: #fff;
    }

    .catTop.img {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .catTop {
        width: 60px;
        height: 60px;
    }

    .singleCatItem {
        min-height: 110px;
        padding: 10px 6px;
        border-radius: 10px;
        max-width: 120px;
    }

    .singleCatItem h4 {
        font-size: 11px;
        line-height: 1.3;
    }

    .catTop-icon i {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .categorySection .restaurant-container {
        padding: 0 8px;
    }

    .categorySection .restaurant-container.swiper-is-end {
        padding-right: 0 !important;
    }

    .swiper-container.mySwiper {
        padding: 8px 0 2px 10px;
        width: 100%;
        margin: 0;
        margin-bottom: 0 !important;
    }

    .swiper-container.mySwiper.swiper-rtl.is-end {
        padding-left: 0 !important;
        padding-bottom: 2px !important;
    }

    .catTop {
        width: 55px;
        height: 55px;
    }

    .singleCatItem {
        min-height: 100px;
        padding: 8px 5px;
        max-width: 100px;
    }

    .singleCatItem h4 {
        font-size: 10px;
    }

    .catTop-icon i {
        font-size: 28px;
    }
}
/* ============================================================
   ElegantTemplate FIX (Variants / Extras Layout)
   - Prevent the option group wrapper (.variants-area-label) from being styled like a pill
   - Stack variant groups correctly
   ============================================================ */

#variants-area-inside {
    display: block !important;
    margin-top: 0.5rem;
}

#variants-area-inside > .variants-area-label {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 0.75rem 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
    justify-content: flex-start !important;
}

#variants-area-inside > .variants-area-label:hover {
    background: transparent !important;
    color: inherit !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

#variants-area-inside .label-variants {
    display: block;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    color: var(--text-main, #111827);
}

#variants-area-inside .btn-group-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#variants-area-inside .btn-group-toggle .btn {
    margin: 0 !important;
}
/* ============================================================
   ElegantTemplate FIX (Extras Groups like Luxe)
   - Group extras by group_name and show collapsible groups
   ============================================================ */

#exrtas-area-inside {
    display: block !important;
    margin-top: 0.5rem;
}

#exrtas-area-inside > .extra-group {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 0.75rem 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
    justify-content: flex-start !important;
}

#exrtas-area-inside > .extra-group:hover {
    background: transparent !important;
    color: inherit !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

#exrtas-area-inside .extra-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: var(--secondary-50, #f7f7f9);
    border: 1.5px solid var(--border-color, #ececec);
    color: var(--text-main, #111827);
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

#exrtas-area-inside .extra-group-toggle:hover {
    filter: brightness(0.98);
}

#exrtas-area-inside .extra-group-arrow {
    transition: transform 0.2s ease;
    line-height: 1;
}

#exrtas-area-inside
    .extra-group-toggle[aria-expanded="true"]
    .extra-group-arrow {
    transform: rotate(180deg);
}

#exrtas-area-inside .extra-group-body {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#exrtas-area-inside .extra-group-body.is-hidden {
    display: none !important;
}

/* Extras pills with checkboxes (same look as variants) */
#exrtas-area-inside input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#exrtas-area-inside input[type="checkbox"] + label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    margin: 0.25rem 0.25rem 0 0;
    border-radius: 9999px;
    background: transparent;
    border: 1.5px solid var(--o1);
    color: var(--o1);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    line-height: 1.1;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
        box-shadow 0.22s ease, transform 0.06s ease;
}

#exrtas-area-inside input[type="checkbox"] + label:hover {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    filter: brightness(0.98);
}

#exrtas-area-inside input[type="checkbox"]:checked + label {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(46, 92, 78, 0.22);
}

#exrtas-area-inside input[type="checkbox"] + label:active {
    transform: translateY(1px) scale(0.98);
}

#exrtas-area-inside input[type="checkbox"] + label::before {
    content: none !important;
}
