/* =============================================================
   menu.css  –  Styles for the Menu page
   Relies on CSS custom properties defined in style.css (:root)
   Supports: RTL (default) and LTR via html[dir=ltr] overrides
   Supports: Dark mode via body.theme-night class
   ============================================================= */

:root{
  --menuGridColumns: 4;
}

/* ── Page Layout ─────────────────────────────────────────────── */

.welcome-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--colorBg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--colorText);
    transition: background var(--transitionSpeed) ease, color var(--transitionSpeed) ease;
}
.welcome-page .custom-container{
    position: relative;
}
#welcomeVideoBg {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}
.welcome-overly-color{
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--colorWelcomeOverlyRGB),.7);
}
/* ── Header ──────────────────────────────────────────────────── */

.welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    position: relative;
    z-index: 10;
}

/* In RTL: header-start is on the right side (start = right in RTL).
   The design shows the toggle on the visual LEFT side, which in RTL
   is actually the "end" side — we swap justify-content accordingly */
.welcome-header .header-start {
    order: 2; /* visual left in RTL layout */
}

.welcome-header .header-end {
    order: 1; /* visual right in RTL layout */
}

/* LTR override: restore natural order */
html[dir=ltr] .welcome-header .header-start {
    order: 1;
}

html[dir=ltr] .welcome-header .header-end {
    order: 2;
}



/* ── Theme Toggle Button ─────────────────────────────────────── */

.btn-theme-toggle {
    line-height: 0;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--colorCardBg);
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusMd);
    color: var(--colorText);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--transitionSpeed) ease,
    border-color var(--transitionSpeed) ease,
    color var(--transitionSpeed) ease;
}

.btn-theme-toggle i {
    font-size: 15px;
}

.btn-theme-toggle:hover {
    border-color: var(--colorPrimary);
    color: var(--colorPrimary);
}

/* Icon visibility is toggled by the theme class on <body> */
.btn-theme-toggle .icon-moon {
    display: block;
}

.btn-theme-toggle .icon-sun {
    display: none;
}

body.theme-night .btn-theme-toggle .icon-moon {
    display: none;
}

body.theme-night .btn-theme-toggle .icon-sun {
    display: block;
}

.theme-toggle-icon {
    display: flex;
    align-items: center;
}


/* ── Language Selector Button ────────────────────────────────── */

.btn-lang-selector {
    height: 40px;
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 8px;
    padding: 8px 16px;
    background: var(--colorCardBg);
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusMd);
    color: var(--colorText);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--transitionSpeed) ease,
    border-color var(--transitionSpeed) ease,
    color var(--transitionSpeed) ease;
}

.btn-lang-selector:hover {
    border-color: var(--colorPrimary);
}

.banta-lang-dropdown {
    background: var(--colorCardBg);
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusMd);
    color: var(--colorText);
    transition: 300ms;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    max-width: 250px;
    z-index: 10;
}
html[dir=ltr] .banta-lang-dropdown{
    left: auto;
    right: 0;
}
.banta-lang-dropdown li {
    display: flex;
    align-items: center;
    justify-content: start;
}

.banta-lang-dropdown li a {
    color: var(--colorText);
    display: flex;
    align-items: center;
    gap: 4px;
}

.banta-lang-dropdown li a:hover {
    opacity: 0.7;
}

.btn-lang-selector:hover .banta-lang-dropdown {
    visibility: visible;
    opacity: 1;
    top: 100%;
}

.flag-icon {
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.icon-chevron {
    flex-shrink: 0;
}

/* RTL: flag on the right, text then chevron on left */
html[dir=ltr] .btn-lang-selector {
    flex-direction: row;
}


/* ── Main Content Area ───────────────────────────────────────── */

.welcome-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 0 0 40px;
}


/* ── Brand Logo ──────────────────────────────────────────────── */

.welcome-brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {

}

.welcome-brand img {
    width: 200px;
    height: auto;
    max-width: 100%;
}


/* ── Welcome Intro Text ──────────────────────────────────────── */

.welcome-intro {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-title {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    color: var(--colorText);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color var(--transitionSpeed) ease;
}

.welcome-subtitle {
    font-size: 15px;
    color: var(--colorTextMuted);
    line-height: 1.7;
    transition: color var(--transitionSpeed) ease;
}

/* Decorative divider */
.welcome-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.divider-line {
    display: block;
    width: 100px;
    height: 1px;
    background: var(--colorPrimary);
    opacity: 0.5;
}

.divider-diamond {
    display: block;
    width: 10px;
    height: 10px;
    background: var(--colorPrimary);
    transform: rotate(45deg);
    flex-shrink: 0;
}


/* ── Menu Cards Grid ─────────────────────────────────────────── */

.menu-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1050px;
    margin: 0 auto;
}


/* ── Single Menu Card ────────────────────────────────────────── */

.menu-card {
    display: block;
    border-radius: var(--borderRadiusMd);
    overflow: hidden;
    text-decoration: none;
    background: var(--colorCardBg);
    border: 1px solid var(--colorPrimary);
    cursor: pointer;
    user-select: none;
}

.menu-card:after {
    content: '';
    height: 4px;
    transition: var(--transitionSpeed);
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to right, var(--colorPrimaryDarker), var(--colorPrimaryLighter), var(--colorPrimaryDarker));
    width: 30px;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    z-index: 1;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(var(--colorPrimaryRGB), 0.18);
    border-color: var(--colorPrimary);
}

.menu-card:hover:after {
    width: 160px;
}

.menu-card-sm{
    padding: 20px;
    display: flex!important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;

}
.menu-card-sm:after{
    content: '';
    background: var(--colorCardBg);
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: calc(50% + 40px);
    border-radius: var(--borderRadiusLg) var(--borderRadiusLg) var(--borderRadiusMd) var(--borderRadiusMd);
    transition: var(--transitionSpeed);
}
.menu-card-sm-img-wrapper{
    width:calc(100% - 40px);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: 2s;
    box-shadow: -2px 3px 20px rgba(0,0,0,.3);
}
.menu-card-sm-image{
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
}
.menu-card-sm-body{
    position: relative;
    z-index: 1;
}
.menu-card-sm-label{
    font-weight: bold;
    font-size: 17px;
    margin-top: 20px;
    color: var(--colorText);
    display: block;
    transition: var(--transitionSpeed);
    text-align: center;
}
.menu-card-sm-cta{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: var(--borderRadiusMd);
    border: 1px solid var(--colorText);
    color: var(--colorText);
    gap: 4px;
    margin-top: 15px;
    transition: var(--transitionSpeed);
}
html[dir=ltr] .menu-card-sm-cta i{
    transform: rotate(180deg);
    line-height: normal;
}
.menu-card-sm:hover .menu-card-sm-cta{
    background: var(--colorText);
    color: var(--colorCardBg);
}
.menu-card-sm:hover .menu-card-sm-label{
    color: var(--colorPrimary);
}
.menu-card-sm:hover:after{
    height: 100%;
    border-radius:var(--borderRadiusMd);

}
.menu-card-sm:hover .menu-card-sm-img-wrapper{
    transform: rotate(20deg);
}


    /* Food photo area */
.menu-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 62%; /* aspect ratio ~3:2 */
    overflow: hidden;
}

.menu-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image {
    transform: scale(1.06);
}

/* Dark chevron-shaped overlay at the bottom of the image */
.menu-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, var(--colorSecondary) 0%, transparent 100%);
    pointer-events: none;
}

/* Card body: icon + label + cta */
.menu-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px 30px;
    background: var(--colorCardBg);
    position: relative;
}

.menu-card-shape path {
    fill: var(--colorCardBg);
}

svg.menu-card-shape {
    position: absolute;
    bottom: calc(100% - 30px);
    right: 0;
    height: 65px;
    width: 100%;
    transition: var(--transitionSpeed);
}

.menu-card-icon {
    color: var(--colorPrimary);
    margin-bottom: 10px;
    font-size: 40px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.menu-card:hover .menu-card-icon {
    transform: scale(1.12);
}

.menu-card-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--colorText);
    margin-bottom: 12px;
    transition: color var(--transitionSpeed) ease;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* "View Menu" CTA pill at the bottom of each card */
.menu-card-cta {
    width: 160px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--colorPrimary);
    border: 1px solid var(--colorPrimary);
    border-radius: var(--borderRadiusLg);
    padding: 5px 20px;
    opacity: 0.8;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

html[dir=ltr] .menu-card-cta {
    flex-direction: row-reverse;
}

.menu-card-cta i {
    font-size: 17px;
}

.menu-card:hover .menu-card-cta {
    opacity: 1;
    background: var(--colorPrimary);
    color: #fff;
}


/* ── Footer Tagline ──────────────────────────────────────────── */

.welcome-footer {
    text-align: center;
    padding: 20px 24px 28px;
    position: relative;
}

.footer-tagline {
    font-size: 13px;
    color: var(--colorTextMuted);
    transition: color var(--transitionSpeed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.footer-tagline i {
    color: var(--colorPrimary);
}


.menu-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.menu-social a {
    display: flex;
    width: 40px;
    height: 40px;
    border: 1px solid var(--colorBorder);
    border-radius: var(--borderRadiusSm);
    color: var(--colorPrimary);
    font-size: 20px;
    align-items: center;
    justify-content: center;
    transition: var(--transitionSpeed);
    flex-shrink: 0;
}

.menu-social a:hover {
    border-color: var(--colorPrimary);
    background: rgba(var(--colorPrimaryRGB), .2);
}

.menu-social a:hover i {
    transform: scale(1.09);
}

/* ── Card Entrance Animation ─────────────────────────────────── */
/* Cards start hidden; JS adds .menu-card--visible with a delay */

.menu-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
    /* Note: override the shorthand 'transition' set earlier */
}

.menu-card--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover overrides (applied AFTER visibility, so no conflict) */
.menu-card--visible:hover {
    transform: translateY(-6px);
}


/* ── Night Mode Overrides ────────────────────────────────────── */
/* All color changes use CSS variables defined in theme.css/style.css,
   so no extra selectors needed here — the variables do the work.
   Only structural night-mode exceptions go below. */

body.theme-night .menu-card-overlay {
    /* Deeper overlay on dark background */
    background: linear-gradient(to top, #0a1a18 0%, transparent 100%);
}


/* ── menu styles ────────────────────────────────────── */
.menu-header {
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 15px 0;
    gap: 10px;
}

.menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--colorCardBg);
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusMd);
    color: var(--colorText);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--transitionSpeed) ease,
    border-color var(--transitionSpeed) ease,
    color var(--transitionSpeed) ease;
}

.menu-button i {
    font-size: 20px;
}

.menu-button:hover {
    border-color: var(--colorPrimary);
    color: var(--colorPrimary);
}

.menu-brand {
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

.menu-brand img {
    height: 100%;
    width: auto;
    max-width: 100%;
}

ul.dropdown-menu {
    background: var(--colorCardBg);
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusMd);
    color: var(--colorText);
    transition: 300ms;
    padding: 10px;
}

ul.dropdown-menu a {
    transition: 200ms;
    border-radius: var(--borderRadiusSm);
    color: var(--colorText) !important;
    font-size: 14px;
    padding: 7px 10px;
    display: block;
}

ul.dropdown-menu a:hover {
    background: var(--colorBg);
}

.menu-categories {
    display: flex;
    align-items: center;
    background: var(--colorCardBg);
    border-radius: var(--borderRadiusMd);
    padding: 20px;
    gap: 20px;
}

.menu-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.menu-cat-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--colorPrimary);
    border-radius: 50%;
    color: var(--colorPrimary);
    font-size: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: var(--transitionSpeed);
}

.menu-cat-item:hover i {
    background: var(--colorPrimary);
    color: white;
}


/* ════════════════════════════════════════════════════════════
   MENU PAGE SHELL
   ════════════════════════════════════════════════════════════ */

.menu-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--colorBg);
    color: var(--colorText);
    transition: background var(--transitionSpeed) ease,
    color var(--transitionSpeed) ease;
    /* Extra bottom padding so bottom-bar never overlaps last card */
    padding-bottom: 80px;
}

/* Prevent page scroll when a modal/sheet is open */
body.mp-no-scroll {
    overflow: hidden;
}


/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */

.mp-header {
    position: sticky;
    top: 0;
    height: 64px;
    z-index: 100;
    background: var(--colorBg);
    transition: background var(--transitionSpeed) ease,
    border-color var(--transitionSpeed) ease;
}

.mp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
}
html[dir=ltr] .mp-header__inner{
    flex-direction: row-reverse;
}
/* Start: burger + lang (visual right in RTL) */
.mp-header__start {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 3; /* RTL: push to visual right */
}

/* Centre: logo */
.mp-header__brand {
    flex: 1;
    display: flex;
    justify-content: center;
    order: 2;
}

/* End: theme toggle + table (visual left in RTL) */
.mp-header__end {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 1; /* RTL: push to visual left */
}

/* LTR override */
html[dir=ltr] .mp-header__start {
    order: 1;
}

html[dir=ltr] .mp-header__end {
    order: 3;
}

.mp-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: opacity var(--transitionSpeed) ease;
}

/* Generic icon button used in header */
.mp-icon-btn {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--colorCardBg);
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusMd);
    color: var(--colorText);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--transitionSpeed) ease,
    color var(--transitionSpeed) ease,
    background var(--transitionSpeed) ease;
}

.mp-icon-btn:hover {
    border-color: var(--colorPrimary);
    color: var(--colorPrimary);
}

.mp-icon-btn i {
    font-size: 20px;
}

/* Moon / Sun icons in theme toggle */
.mp-icon-btn .icon-moon {
    display: block;
}

.mp-icon-btn .icon-sun {
    display: none;
}

body.theme-night .mp-icon-btn .icon-moon {
    display: none;
}

body.theme-night .mp-icon-btn .icon-sun {
    display: block;
}

/* Table badge in header */
.mp-table-badge {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--colorCardBg);
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusMd);
    color: var(--colorText);
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transitionSpeed) ease;
}

.mp-table-badge i {
    font-size: 15px;
}

/* Burger dropdown */
.mp-dropdown {
    background: var(--colorCardBg) !important;
    border: 1.5px solid var(--colorBorder) !important;
    border-radius: var(--borderRadiusMd) !important;
    padding: 8px !important;
    transition: background var(--transitionSpeed) ease;
    min-width: 180px;
}

.mp-dropdown li a,
.mp-dropdown .dropdown-item {
    color: var(--colorText) !important;
    border-radius: var(--borderRadiusSm);
    padding: 8px 12px;
    font-size: 14px;
    transition: background 0.15s ease;
}
html[dir=ltr] .mp-dropdown li a,
html[dir=ltr] .mp-dropdown .dropdown-item{
    text-align: left;
}

.mp-dropdown li a:hover,
.mp-dropdown .dropdown-item:hover {
    background: var(--colorBg) !important;
}

.menu-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.large-menu-content {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

/* ════════════════════════════════════════════════════════════
   CATEGORIES BAR
   Horizontally scrollable row of icon + label items.
   ════════════════════════════════════════════════════════════ */
.mp-cats {
    overflow: hidden;
    width: 140px;
    position: sticky;
    top: 64px;
    flex-shrink: 0;
}

.mp-cats-container {
    border-radius: var(--borderRadiusMd);
    background: var(--colorCardBg);
    padding: 20px 0;
}

.mp-cats__inner {
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
}

.mp-cats__inner::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */


/* Single category item */
.mp-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 90px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
    flex-shrink: 0;
    position: relative;
}

.mp-cat-item:hover {
    background: rgba(var(--colorPrimaryRGB), 0.08);
}

.mp-cat-item:hover .mp-cat-icon {
    border-color: var(--colorPrimary);
    background: rgba(var(--colorPrimaryRGB), 0.08);
}

.mp-cat-item:after {
    height: 0;
    background: var(--colorPrimary);
    border-radius: 4px 0 0 4px;
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    margin: auto;
    content: '';
    width: 6px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transitionSpeed);
}

.mp-cat-item--active:after {
    opacity: 1;
    height: 80%;
    visibility: visible;
}

.mp-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--colorBorder);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--colorText);
    transition: border-color var(--transitionSpeed) ease,
    background var(--transitionSpeed) ease,
    color var(--transitionSpeed) ease;
}

.mp-cat-name {
    font-size: 14px;
    color: var(--colorText);
    text-align: center;
    white-space: normal;
    transition: color var(--transitionSpeed) ease;
}

/* Active state */
.mp-cat-item--active .mp-cat-icon {
    border-color: var(--colorPrimary) !important;
    background: var(--colorPrimary) !important;
    color: #fff !important;
}

.mp-cat-item--active .mp-cat-name {
    color: var(--colorPrimary);
    font-weight: 600;
}

/* Skeleton placeholders */
.mp-cats__skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px 0;
}

.mp-cat-skeleton {
    width: 64px;
    height: 72px;
    border-radius: var(--borderRadiusSm);
    background: var(--colorBorder);
    opacity: 0.5;
    animation: mpPulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

/* ── Category Arrow Overlays (vertical scroll) ─────────────────── */

.mp-cats-container {
    position: relative;
    overflow: hidden;
}

.mp-cats-arrow-bg {
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity var(--transitionSpeed) ease;
}

.mp-cats-arrow-bg--prev {
    top: 0;
    background: linear-gradient(to bottom, var(--colorCardBg), transparent);
}

.mp-cats-arrow-bg--next {
    bottom: 0;
    background: linear-gradient(to top, var(--colorCardBg), transparent);
}

.mp-cats-arrow-bg .mp-filters-arrow {
    pointer-events: all;
}

/* Hidden state */
.mp-cats-arrow-bg--hidden {
    opacity: 0;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   FILTERS BAR
   Horizontally scrollable filter chips below categories.
   ════════════════════════════════════════════════════════════ */

.mp-filters-bar {
    background: var(--colorCardBg);
    border-radius: var(--borderRadiusMd);
    position: sticky;
    top: 64px; /* header height (mp-header) */
    z-index: 50;
    /* shadow to visually separate when stuck */
    transition: box-shadow var(--transitionSpeed) ease,
    background var(--transitionSpeed) ease;
    margin-bottom: 20px;
}

.mp-filters-bar__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    position: relative;
}

.mp-filters-bar--stuck {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--borderRadiusSm) var(--borderRadiusSm);
}

/* Horizontal scrollable chip container */
.mp-filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    padding: 2px 0;
}

.mp-filter-chips::-webkit-scrollbar {
    display: none;
}

/* Single filter chip */
.mp-filter-chip {
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--borderRadiusSm);
    border: 1.5px solid var(--colorBorder);
    background: var(--colorCardBg);
    color: var(--colorText);
    font-family: inherit;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mp-filter-chip i {
    font-size: 15px;
}

.mp-filter-chip:hover {
    border-color: var(--colorPrimary);
    color: var(--colorPrimary);
}

.mp-filter-chip--active {
    border-color: var(--colorPrimary) !important;
    background: rgba(var(--colorPrimaryRGB), 0.12) !important;
    color: var(--colorPrimary) !important;
    font-weight: 600 !important;
}

/* Scroll arrows */
.mp-filters-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: var(--colorCardBg);
    border-radius: 50%;
    color: var(--colorText);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
    transition: opacity 0.2s ease;
}

.mp-filters-arrow--hidden {
    opacity: 0;
    pointer-events: none;
}

.filter-scrollbar {
    display: flex;
    position: relative;
    overflow-x: auto;
    margin-left: 50px;
}

html[dir=ltr] .filter-scrollbar {

}

.mp-filters-arrow-bg {
    background: linear-gradient(to left, var(--colorCardBg), transparent);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: start;
    width: 70px;
}

.mp-filters-arrow-bg.next {
    justify-content: end;
    background: linear-gradient(to right, var(--colorCardBg), transparent);
    right: auto;
    left: 0;
}
html[dir=ltr] .mp-filters-arrow-bg.next{
    justify-content: start;
}
html[dir=ltr] .mp-filters-arrow-bg{
    justify-content: end;
}
/* Filters label (right side label "فیلترها:") */
.mp-filters-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--colorText);
    opacity: 0.7;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Search toggle button in filter bar */
.mp-filter-search-btn {
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusSm);
    background: var(--colorPrimaryTint);
    color: var(--colorPrimary);
    cursor: pointer;
    flex-shrink: 0;
    font-size: 18px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
html[dir=ltr] .mp-filter-search-btn{
    margin: 0 0 0 auto;
}
.mp-filter-search-btn:hover {
    border-color: var(--colorPrimary);
    color: var(--colorPrimary);
}

/* Search bar (inline, below filters row) */
.mp-search-bar {
    border-top: 1px solid var(--colorBorder);
    background: var(--colorCardBg);
    padding: 10px;
    transition: background var(--transitionSpeed) ease;
    border-radius: 0 0 var(--borderRadiusMd) var(--borderRadiusMd);
}

.mp-search-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--colorCardBg);
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusMd);
    padding: 8px 16px;
    transition: border-color 0.2s ease, background var(--transitionSpeed) ease;
}

.mp-search-bar__inner:focus-within {
    border-color: var(--colorPrimary);
}

.mp-search-bar__icon {
    color: var(--colorText);
    opacity: 0.5;
    font-size: 18px;
    flex-shrink: 0;
}

.mp-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--colorText);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    direction: inherit; /* follows page dir */
}

.mp-search-input::placeholder {
    color: var(--colorText);
    opacity: 0.4;
}

.mp-search-clear {
    background: none;
    border: none;
    color: var(--colorText);
    opacity: 0.5;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.mp-search-clear:hover {
    opacity: 1;
}


/* ════════════════════════════════════════════════════════════
   FOOD GRID
   3 columns desktop → 2 columns tablet → 1 list on mobile
   ════════════════════════════════════════════════════════════ */

.mp-main {
    flex: 1;
    padding-bottom: 40px;
}

.mp-food-grid {
    display: grid;
    grid-template-columns: repeat(var(--menuGridColumns), 1fr);
    gap: 16px;
}

/* Skeleton grid while loading */
.mp-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mp-food-skeleton {
    border-radius: var(--borderRadiusMd);
    background: var(--colorCardBg);
    height: 260px;
    animation: mpPulse 1.4s ease-in-out infinite;
    border: 1px solid var(--colorBorder);
}

/* Empty state */
.mp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
    color: var(--colorText);
    opacity: 0.45;
}

.mp-empty i {
    font-size: 48px;
}

.mp-empty p {
    font-size: 15px;
}

/* ── Food Card ─────────────────────────────────────────────── */

.mp-food-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--colorCardBg);
    border-radius: var(--borderRadiusMd);
    border: 1.5px solid var(--colorBorder);
    overflow: hidden;
    cursor: pointer;
    /* Entrance animation: starts invisible */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.38s ease,
    transform 0.38s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background var(--transitionSpeed) ease;
}

.mp-food-card--special {
    border-color: var(--colorPrimary) !important;
}

.mp-food-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.mp-food-card--visible:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(var(--colorPrimaryRGB), 0.15);
    border-color: var(--colorPrimary);
}

/* Unavailable card: desaturate */
.mp-food-card--unavailable {
    opacity: 0.7;
    cursor: default;
}

.mp-food-card--unavailable:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--colorBorder);
}

.mp-food-card--unavailable .mp-food-price-wrap{
    display: none!important;
}

/* Card image wrapper */
.mp-food-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 100%;
    background: var(--colorBorder);
}
.food-swiper .mp-food-img-wrap{
    aspect-ratio: 16 / 9;
    padding-bottom: 0;
}
.food-swiper .mp-food-body{
    height: 130px;
}
.mp-food-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    aspect-ratio: 16 / 9;
    object-position: center;
}

.mp-food-card--visible:hover .mp-food-img {
    transform: scale(1.05);
}

/* Special offer badge on image */
.mp-food-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--colorPrimary);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: var(--borderRadiusLg);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(var(--colorPrimaryRGB), .5);
}

html[dir=ltr] .mp-food-badge {
    right: auto;
    left: 10px;
}

/* Video play icon overlay on card */
.mp-food-video-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    z-index: 2;
    cursor: pointer;
    padding-left: 2px;
    transition: var(--transitionSpeed);
}

html[dir=rtl] .mp-food-video-icon {
    left: auto;
    right: 10px;
}

/* Unavailable overlay */
.mp-food-unavailable {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    z-index: 3;
}

.mp-food-unavailable i {
    font-size: 26px;
}

/* Card body */
.mp-food-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.mp-food-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--colorText);
    margin: 0 0 7px 0;
    line-height: 1.4;
    transition: color var(--transitionSpeed) ease;
}

.mp-food-excerpt {
    font-size: 12px;
    color: var(--colorText);
    opacity: 0.6;
    margin: 0;
    line-height: 1.5;
    /* Two-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transitionSpeed) ease;
}

/* Ingredients list below food title on cards.
   Clamped to 2 lines; overflow shown as ellipsis. */
.mp-food-ingredients {
    font-size: 12px;
    color: var(--colorText);
    opacity: 0.55;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transitionSpeed) ease;
}

/* Footer row: add button + price */
.mp-food-footer {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top:auto;
}

/* Quick add button */
.mp-food-add {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--colorPrimary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-food-add:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(var(--colorPrimaryRGB), 0.4);
}

/* Price block on card */
.mp-food-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: relative;
    margin-left: auto;
}
html[dir=ltr] .mp-food-price-wrap {
    margin-left: 0!important;
}

html[dir=ltr] .mp-food-price-wrap {
    align-items: flex-start;
}

.mp-food-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--colorPrimary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mp-food-price small {
    font-size: 8px;
    font-weight: 600;
    transform: rotate(-90deg) translate(3px, 7px);
    display: inline-block;
}
html[dir=ltr] .mp-food-price small{
    display: none;
}

.mp-food-price--discounted {
    color: var(--colorPrimary);
}

.mp-food-price--original {
    font-size: 12px;
    color: var(--colorText);
    opacity: 0.45;
    text-decoration: line-through;
    padding-right: 45px;
}

.mp-food-discount-badge {
    font-size: 14px;
    background: #ff00000d;
    color: #ff0000;
    padding: 1px 6px;
    border-radius: var(--borderRadiusMd);
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


/* ════════════════════════════════════════════════════════════
   BOTTOM ACTION BAR
   Sticky at page bottom.
   ════════════════════════════════════════════════════════════ */

.mp-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 10px 0 max(10px, env(safe-area-inset-bottom));
    background: transparent;
    pointer-events: none; /* Only buttons inside are clickable */
}

.mp-bottom-bar__inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: all;
}

.mp-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--borderRadiusLg);
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-bottom-btn i {
    font-size: 20px;
}

/* Cart button */
.mp-cart-btn {
    background: var(--colorPrimary);
    color: #fff;
    position: relative;
    box-shadow: 0 4px 16px rgba(var(--colorPrimaryRGB), 0.45);
}

.mp-cart-btn:hover {
    transform: translateY(-2px);
}

/* Flash animation when item is added */
.mp-cart-btn--flash {
    animation: mpCartFlash 0.4s ease;
}

@keyframes mpCartFlash {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Item count badge on cart button */
.mp-cart-badge {
    position: absolute;
    top: -6px;
    left: -6px; /* RTL: visual right side */
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

html[dir=ltr] .mp-cart-badge {
    left: auto;
    right: -6px;
}

/* Waiter button */
.mp-waiter-btn {
    background: var(--colorCardBg);
    color: var(--colorText);
    border: 1.5px solid var(--colorBorder);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transitionSpeed);
}

.mp-waiter-btn:hover {
    transform: translate(0, -3px);
}

.mp-waiter-btn:active {
    border-color: var(--colorPrimary);
    color: var(--colorPrimary);
    transform: translate(0, 0);

}


/* ════════════════════════════════════════════════════════════
   FOOD DETAIL BOTTOM SHEET
   ════════════════════════════════════════════════════════════ */

/* Overlay */
.mp-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.32s ease;
}

.mp-sheet-overlay--visible {
    opacity: 1;
}

/* Sheet panel */
.mp-sheet {
    overflow: hidden;
    width: 550px;
    margin: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 201;
    background: var(--colorCardBg);
    border-radius: var(--borderRadiusLg) var(--borderRadiusLg) 0 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    /* Start below viewport */
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
    background var(--transitionSpeed) ease;
}

.mp-sheet--open {
    transform: translateY(0);
}

/* Drag handle */
.mp-sheet__handle {
    width: 44px;
    height: 4px;
    background: var(--colorBorder);
    border-radius: 2px;
    margin: 10px auto;
    cursor: grab;
    flex-shrink: 0;
}

/* Close button */
.mp-sheet__close {
    position: absolute;
    top: 60px;
    left: 70px;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: var(--borderRadiusMd);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.mp-sheet__close:hover {
    background: rgba(0, 0, 0, 0.65);
    color: var(--colorPrimary);
}

html[dir=ltr] .mp-sheet__close {
    left: auto;
    right: 14px;
}

/* Scrollable body */
.mp-sheet__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 40px;
}
/* Scrollbar — minimal style */
.mp-sheet__body {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

/* WebKit (Chrome, Safari, Edge) */
.mp-sheet__body::-webkit-scrollbar {
    width: 4px;
}

.mp-sheet__body::-webkit-scrollbar-track {
    background: transparent;
}

.mp-sheet__body::-webkit-scrollbar-thumb {
    background-color: var(--border-strong);
    border-radius: 99px;
}

.mp-sheet__body::-webkit-scrollbar-thumb:hover {
    background-color: var(--border-stronger);
}

/* Gallery */
.mp-sheet__gallery {
    position: relative;
}

.mp-gallery-main {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mp-gallery-main__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
    border-radius: var(--borderRadiusMd);
}

/* Gallery counter: 1/5 */
.mp-gallery-counter {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--borderRadiusLg);
}

html[dir=ltr] .mp-gallery-counter {
    left: auto;
    right: 14px;
}

/* Thumbnails row */
.mp-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mp-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.mp-gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--borderRadiusSm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.mp-gallery-thumb--active {
    border-color: var(--colorPrimary);
    opacity: 1;
}

/* Video button */
 .mp-video-btn {
     flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--colorPrimary);
    border-radius: var(--borderRadiusMd);
    background: transparent;
    color: var(--colorPrimary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mp-video-btn:hover {
    background: var(--colorPrimary);
    color: #fff;
}

.mp-sheet-play-price{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

/* Info section */
.mp-sheet__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Price row */
.mp-sheet__price-row {
    display: flex;
    flex-direction: column;
    align-items: start;
}



.mp-sheet__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--colorPrimary);
}

.mp-sheet__price small {
    font-size: 13px;
    opacity: 0.7;
}

.mp-sheet__price-orig {
    font-size: 14px;
    color: var(--colorText);
    opacity: 0.45;
    text-decoration: line-through;
}

.mp-sheet__discount {
    background: #e53935;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 5px;
}

/* Title */
.mp-sheet__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--colorText);
    margin: 0;
    line-height: 1.4;
    text-align: right;
    transition: color var(--transitionSpeed) ease;
}

html[dir=ltr] .mp-sheet__title {
    text-align: left;
}

/* Ingredients */
.mp-sheet__ingredients {
    font-size: 13px;
    color: var(--colorText);
    opacity: 0.7;
    margin: 0;
    line-height: 1.6;
    text-align: right;
}

html[dir=ltr] .mp-sheet__ingredients {
    text-align: left;
}

/* Filter tags */
.mp-sheet__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mp-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: var(--borderRadiusLg);
    border: 1.5px solid rgba(var(--colorPrimaryRGB), .5);
    background: rgba(var(--colorPrimaryRGB), .1);
    color: var(--colorText);
    font-size: 12px;
    font-weight: 600;
    user-select: none;
    transition: background var(--transitionSpeed) ease;
}

.mp-filter-tag i {
    font-size: 14px;
    color: var(--colorPrimary);
}

/* Description */
.mp-sheet__desc-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--colorText);
    margin: 10px 0 8px;
    transition: color var(--transitionSpeed) ease;
}

.mp-sheet__desc {
    font-size: 13px;
    color: var(--colorText);
    opacity: 0.8;
    line-height: 1.8;
    transition: color var(--transitionSpeed) ease;
}

.mp-sheet__desc p {
    margin: 0 0 8px;
}

/* Sheet footer: qty + add button */
.mp-sheet__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--colorBorder);
    background: var(--colorCardBg);
    flex-shrink: 0;
    transition: background var(--transitionSpeed) ease;
}

/* Quantity control */
.mp-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--colorBg);
    border: 1.5px solid var(--colorBorder);
    border-radius: var(--borderRadiusMd);
    height: 50px;
    padding: 6px 14px;
    transition: background var(--transitionSpeed) ease;
}

.mp-qty-btn {
    background: none;
    border: none;
    color: var(--colorText);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s ease;
}

.mp-qty-btn:hover {
    color: var(--colorPrimary);
}

.mp-qty-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--colorText);
    min-width: 24px;
    text-align: center;
    transition: color var(--transitionSpeed) ease;
}

/* Add to order button */
.mp-add-btn {
    flex: 1;
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 12px;
    background: var(--colorPrimary);
    color: #fff;
    border: none;
    border-radius: var(--borderRadiusMd);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mp-add-btn:hover {
    opacity: 0.88;
    transform: scale(1.02);
}

.mp-add-btn--disabled {
    background: var(--colorBorder);
    color: var(--colorText);
    opacity: 0.5;
    cursor: default;
}

/* Skeleton state for sheet */
.mp-sheet--skeleton .mp-gallery-main__img,
.mp-sheet--skeleton .mp-sheet__title,
.mp-sheet--skeleton .mp-sheet__price,
.mp-sheet--skeleton .mp-sheet__ingredients {
    background: var(--colorBorder);
    color: transparent;
    border-radius: 6px;
    animation: mpPulse 1.4s ease-in-out infinite;
}


/* ════════════════════════════════════════════════════════════
   CART PANEL (sidebar)
   ════════════════════════════════════════════════════════════ */

.mp-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mp-cart-overlay--visible {
    opacity: 1;
}

.mp-cart-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    /* RTL: slides from right; LTR: slides from left */
    right: 0;
    width: min(400px, 92vw);
    z-index: 201;
    background: var(--colorCardBg);
    display: flex;
    flex-direction: column;
    transform: translateX(110%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
    background var(--transitionSpeed) ease;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}

html[dir=ltr] .mp-cart-panel {
    right: auto;
    left: 0;
    transform: translateX(-110%);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
}

.mp-cart-panel--open {
    transform: translateX(0) !important;
}

.mp-cart-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--colorBorder);
    flex-shrink: 0;
}

.mp-cart-panel__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--colorText);
    margin: 0;
    transition: color var(--transitionSpeed) ease;
}

.mp-cart-close {
    background: none;
    border: none;
    color: var(--colorText);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.mp-cart-close:hover {
    color: var(--colorPrimary);
}

.mp-cart-panel__items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
}

/* Single cart item row */
.mp-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--colorBorder);
}

.mp-cart-item__img {
    width: 56px;
    height: 56px;
    border-radius: var(--borderRadiusSm);
    object-fit: cover;
    flex-shrink: 0;
}

.mp-cart-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    min-width: 0;
}

html[dir=ltr] .mp-cart-item__info {
    text-align: left;
}

.mp-cart-item__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--colorText);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transitionSpeed) ease;
}

.mp-cart-item__price {
    font-size: 13px;
    color: var(--colorPrimary);
    font-weight: 700;
}

.mp-cart-item__ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mp-cart-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--colorBorder);
    background: var(--colorBg);
    color: var(--colorText);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.mp-cart-qty-btn:hover {
    border-color: var(--colorPrimary);
    color: var(--colorPrimary);
}

.mp-cart-qty-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--colorText);
    min-width: 20px;
    text-align: center;
    transition: color var(--transitionSpeed) ease;
}

.mp-cart-panel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--colorBorder);
    flex-shrink: 0;
    background: var(--colorCardBg);
    transition: background var(--transitionSpeed) ease;
}

.mp-cart-total-label {
    font-size: 14px;
    color: var(--colorText);
    opacity: 0.7;
    transition: color var(--transitionSpeed) ease;
}

.mp-cart-total-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--colorPrimary);
}


/* ════════════════════════════════════════════════════════════
   VIDEO LIGHTBOX
   ════════════════════════════════════════════════════════════ */

.mp-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: linear-gradient(45deg, black, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mp-video-overlay--open {
    opacity: 1;
}

.mp-video-wrap {
    width: min(800px, 94vw);
    aspect-ratio: 16/9;
}

.mp-video-wrap iframe,
.mp-video-wrap video {
    width: 100%;
    height: 100%;
    border-radius: var(--borderRadiusMd);
    border: none;
}

.mp-video-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.mp-video-close:hover {
    background: rgba(255, 255, 255, 0.22);
}


/* ════════════════════════════════════════════════════════════
   SKELETON PULSE ANIMATION
   ════════════════════════════════════════════════════════════ */

@keyframes mpPulse {
    0%, 100% {
        opacity: 0.45;
    }
    50% {
        opacity: 0.2;
    }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px): 2-column grid
   ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .mp-food-grid,
    .mp-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 600px): single-column list layout
   Matches the mobile wireframe exactly.
   ════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    span.mp-food-badge {
        font-size: 11px;
        padding: 3px 6px;
    }

    /* Grid → vertical list */
    .mp-food-grid,
    .mp-skeleton-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Card: side-by-side layout on mobile (image left, info right) */
    .mp-food-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        border-radius: var(--borderRadiusMd);
    }

    .mp-food-img-wrap {
        width: 110px;
        min-width: 110px;
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 1;
        border-radius: 0;
        flex-shrink: 0;
    }

    html[dir=ltr] .mp-food-img-wrap {
        border-radius: 0 var(--borderRadiusMd) var(--borderRadiusMd) 0;
    }

    .mp-food-img{
        aspect-ratio: 1!important;
        height: 100% !important;
    }

    .mp-food-body {
        flex: 1;
        padding: 10px 12px;
        gap: 4px;
    }

    .mp-food-title {
        font-size: 13px;
    }

    .mp-food-excerpt {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .mp-food-footer {
        margin-top: 6px;
    }

    .mp-food-price {
        font-size: 14px;
    }

    /* Category bar: smaller items */
    .mp-cat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .mp-cat-name {
        font-size: 12px;
    }

    .mp-cat-item {
        min-width: 54px;
        padding: 0 7px;
    }

    /* Header */
    .mp-icon-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .mp-toggle-label {
        display: none;
    }

    /* hide text label on small screens */
    /* Bottom bar */
    .mp-bottom-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Sheet: full height on mobile */
    .mp-sheet {
        max-height: 95vh;
    }


    /* Cart panel: full width on mobile */
    .mp-cart-panel {
        width: 100vw;
    }

    /* Skeleton */
    .mp-food-skeleton {
        height: 100px;
    }
}


/* ════════════════════════════════════════════════════════════
   NIGHT MODE EXTRAS
   (Most theming is handled via CSS variables — only structural
    exceptions that can't be solved with variables go here.)
   ════════════════════════════════════════════════════════════ */

body.theme-night .mp-sheet {
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

body.theme-night .mp-cart-panel {
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

html[dir=ltr] body.theme-night .mp-cart-panel {
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
}


/* ════════════════════════════════════════════════════════════
   SPA VIEW TRANSITIONS
   ════════════════════════════════════════════════════════════ */

/* App shell */
.mewan-app {
    position: relative;
    min-height: 100vh;
    background: var(--colorBg);
    transition: background var(--transitionSpeed) ease;
}

/* Both views share these base styles */
.mewan-view {
    min-height: 100vh;
}

/* Exit animation — fade + slight slide up */
.mewan-view--exit {
    animation: mpViewExit 0.28s ease forwards;
}

/* Enter animation — fade + slight slide up */
.mewan-view--enter {
    animation: mpViewEnter 0.38s ease forwards;
}

@keyframes mpViewExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

@keyframes mpViewEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 992px) {

    .mp-sheet{
        width: 100%;
    }
    .mp-sheet__body{
        padding: 20px;
    }
    .menu-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }


    .mp-logo {
        height: 30px !important;
    }

    .mp-filter-chip:hover {
        border-color: var(--colorBorder);
        background: var(--colorCardBg);
        color: var(--colorText);
    }

    .welcome-page {
        min-height: auto;
    }

    .welcome-main {
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .mp-add-btn{
        font-size: 14px;
    }
    .mp-sheet__close{
        top: 55px;
        left: 30px;
    }
    .mp-video-btn{
        padding: 5px 7px;
    }
    .menu-cards-grid {
        grid-auto-flow: column;
        overflow-x: auto;
    }
    .menu-cards-grid .menu-card-sm{
        width: 270px;
    }
    .welcome-header #btnLangSelector,
    #mpHeader #btnLangSelector
    {
        width: auto!important;
        padding: 0 10px 0 5px!important;
        gap: 5px !important;
    }

    .menu-cards-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 420px;
        gap: 16px;
    }

    .welcome-brand {
        margin-bottom: 20px;
    }

    .welcome-intro {
        margin-bottom: 28px;
    }

    .divider-line {
        width: 60px;
    }

    .mp-cats {
        width: 80px !important;
    }

    .menu-wrapper {
        gap: 12px;
    }



    .mp-filters-bar__inner {
        padding: 10px 12px !important;
    }

    .mp-cats__inner {
        gap: 0;
    }

    .mp-cat-item:after {
        width: 4px;
    }
}

@media (max-width: 576px) {
    html[dir=ltr] .mp-filters-bar--stuck{
        border-radius: var(--borderRadiusSm) 0 0 var(--borderRadiusSm);
    }

    .mp-header .theme-toggle-label,
    .welcome-header .theme-toggle-label,
    .mp-header .lang-label,
    .welcome-header .lang-label
    {
        display: none;
    }
    .btn-lang-selector{
        gap: 3px!important;
    }
    .mp-food-ingredients {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .menu-card:after {
        left: auto;
        top: 0;
        height: 30px;
        border-radius: 4px 0 0 4px;
        width: 4px !important;
    }

    html[dir=ltr] .menu-card:after {
        left: 0;
        right: auto;
        border-radius: 0 4px 4px 0;
    }

    .menu-card:hover:after {
        height: 80px !important;
    }

    .welcome-brand img {
        width: 130px;
    }

    .menu-card {
        display: flex;
        align-items: center;
        height: 120px;
    }

    .menu-card-image-wrapper {
        height: 100%;
        width: 100%;
        flex-shrink: 0;
    }

    .menu-card-body {
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        padding: 0 20px 0 0;
        position: absolute;
        right: 0;
        top: 0;
        background: rgba(0, 0, 0, 0.1);
    }

    html[dir=ltr] .menu-card-body {
        padding: 0 0 0 20px;
    }

    svg.menu-card-shape {
        display: none !important;
    }

    .menu-card-label {
        color: #fff;
    }

    .menu-card-icon {
        position: absolute;
        right: 10px;
        text-shadow: -1px 2px rgba(0, 0, 0, 0.5);
        bottom: 0;
        top: 0;
        margin: auto;
        height: 40px;
        width: 40px;
        font-size: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    html[dir=ltr] .menu-card-icon {
        right: auto;
        left: 10px;
    }

    .menu-card-cta {
        background: var(--colorPrimary);
        color: #fff;
        opacity: 1;
    }

    html[dir=ltr] svg.menu-card-shape {
        right: auto;
        left: -100px;
        transform: rotate(-90deg);
    }

    .menu-card-overlay {
        height: 100%;
        background: linear-gradient(90deg, rgba(var(--colorSecondaryRGB), .9) 0%, rgba(var(--colorSecondaryRGB), .8) 40%, transparent 100%);
    }

    .mp-main {
        padding-left: 12px;
    }
    html[dir=ltr] .mp-main {
        padding-left: 0;
        padding-right: 12px;
    }

    .mp-filters-label {
        display: none;
    }

    .filter-scrollbar {
        margin-left: 0!important;
    }

    .main-content-container {
        width: 100% !important;
    }

    .mp-cats-container {
        border-radius: var(--borderRadiusMd) 0 0 var(--borderRadiusMd);
    }
    html[dir=ltr] .mp-cats-container {
        border-radius: 0 var(--borderRadiusMd) var(--borderRadiusMd) 0;
    }

    .mp-filters-bar {
        border-radius: 0 var(--borderRadiusMd) var(--borderRadiusMd) 0;
    }

    html[dir=ltr] .mp-filters-bar {
        border-radius:var(--borderRadiusMd) 0 0 var(--borderRadiusMd);
    }

    .btn-square-sm {
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        display: flex;
    }
}

@media (max-width: 480px) {
    .mp-header__end, .mp-header__start {
        gap: 5px !important;
    }

    .mp-table-badge {
        font-size: 12px !important;
    }

    .welcome-header {
        padding: 14px 0;
    }

    .btn-theme-toggle,
    .btn-lang-selector {
        padding: 7px 12px;
        font-size: 12px;
    }

    .menu-cards-grid {
        max-width: 100%;
    }

    .mp-filters-bar__inner {
        padding: 10px;
    }

    .mp-filter-chip {
        padding: 8px;
        font-size: 11px;
    }

    .mp-filter-chip {
        padding: 8px;
        font-size: 11px;
    }

    .mp-filter-chip i {
        font-size: 12px;
    }
}