/**
 * QuickQR modern menu — UI refresh (desktop grid + top bar)
 * Loaded after style.css — overrides layout only; keeps all functional classes/IDs.
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --qr-topbar-height: 52px;
    --qr-nav-height: 56px;
    /* Combined fixed/sticky header stack (top bar + menu navbar) — for scroll-padding & safe offsets */
    --qr-header-stack: calc(var(--qr-topbar-height) + var(--qr-nav-height));
    --qr-bg-page: #f4f4f5;
    --qr-bg-card: #ffffff;
    --qr-header-dark: #2b2b2b;
    --qr-font: 'Montserrat', 'Roboto', system-ui, sans-serif;
}

body.qr-menu-redesign {
    font-family: var(--qr-font);
    background: var(--qr-bg-page);
    /* Anchor / in-page links don’t hide under fixed top + nav */
    scroll-padding-top: var(--qr-header-stack);
}

.qr-menu-app {
    min-height: 100vh;
}

/* ---------- Top bar ---------- */
.qr-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: var(--qr-topbar-height);
    background: var(--qr-header-dark);
    color: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.qr-top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 0 14px;
}

.qr-top-bar__social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.qr-top-bar__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    color: #fff !important;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
}

.qr-top-bar__social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
}

.qr-top-bar__search-wrap {
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

.qr-top-bar__search {
    width: 100%;
    height: 36px;
    border-radius: 20px;
    border: none;
    padding: 0 40px 0 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
}

.qr-top-bar__search::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.qr-top-bar__search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qr-top-bar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.qr-top-bar__title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 38vw;
}

.qr-top-bar__end-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qr-top-bar__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    font-size: 18px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.qr-top-bar__cart:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
}

.qr-top-bar__cart:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.qr-top-bar__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    border-radius: 8px;
    background: #25d366;
    color: #fff !important;
    font-size: 20px;
    flex-shrink: 0;
}

.qr-top-bar__whatsapp:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

/* ---------- Workspace grid ---------- */
.qr-menu-workspace {
    display: flex;
    flex-direction: column;
    padding-top: var(--qr-topbar-height);
    min-height: 100vh;
}

.qr-menu-main-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/*
 * Base style.css sets .bg-header { position: fixed !important; top: 0 } which stacks the menu
 * navbar over the top bar and over content. Force sticky placement under the top bar instead.
 */
body.qr-menu-redesign .navbar.bg-header {
    position: sticky !important;
    top: var(--qr-topbar-height) !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    z-index: 1050;
    background: #fff !important;
    color: #333 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    min-height: var(--qr-nav-height);
}

body.qr-menu-redesign .navbar.bg-header .btn,
body.qr-menu-redesign .navbar.bg-header .btn-default {
    color: inherit;
}

body.qr-menu-redesign .qr-navbar-actions {
    gap: 4px;
}

body.qr-menu-redesign .qr-top-bar .qr-header-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--theme-color-1, #6c5ce7);
    box-shadow: 0 0 0 2px var(--qr-header-dark, #2b2b2b);
    display: none;
}

body.qr-menu-redesign .qr-top-bar .qr-header-cart-count.is-visible {
    display: inline-block;
}

body.qr-menu-redesign #content {
    padding-top: 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--qr-bg-page);
    flex: 1;
}

/* Slim hero / header strip */
/* Active category title only (no grid of all categories) */
body.qr-menu-redesign .qr-active-category-banner {
    margin-bottom: 12px;
    padding: 12px 16px 8px;
    text-align: center;
}

body.qr-menu-redesign .qr-active-category-name {
    margin: 0;
    font-size: clamp(1.05rem, 3.2vw, 1.35rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-color-1);
    line-height: 1.25;
    word-break: break-word;
}

body.qr-menu-redesign .single-page-header.detail-header {
    padding: 18px 0 !important;
    min-height: 0 !important;
    background-size: cover !important;
    background-position: center !important;
}

body.qr-menu-redesign .single-page-header .header-image img {
    max-height: 56px;
    border-radius: 8px;
}

body.qr-menu-redesign .single-page-header-inner .left-side {
    gap: 14px;
}

body.qr-menu-redesign .single-page-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

body.qr-menu-redesign .single-page-header h3 span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

/* Sidebar — mobile: drawer; desktop: sticky column */
body.qr-menu-redesign #sidebarleft {
    background: var(--qr-bg-card);
    border-right: 1px solid #e6e6e6;
}

body.qr-menu-redesign #sidebarleft .sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

body.qr-menu-redesign #sidebarleft .sidebar-header .sidebar-header-logo {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    line-height: 0;
}

body.qr-menu-redesign #sidebarleft .sidebar-header img {
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    max-height: 72px;
    max-width: 100%;
    width: auto !important;
    height: auto;
    object-fit: contain;
    object-position: center;
}

body.qr-menu-redesign #sidebarleft .heading .title {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: #888 !important;
}

body.qr-menu-redesign #sidebarleft ul li a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
}

body.qr-menu-redesign #sidebarleft ul li a.menu-category {
    padding: 14px 18px;
}

/* Category blocks + grid cards */
body.qr-menu-redesign .content-wrap {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 575.98px) {
    body.qr-menu-redesign .content-wrap {
        padding: 12px clamp(10px, 3.5vw, 16px);
    }
}

/* Category blocks: same grid for .card-body and plain .accordion lists.
   Markup uses one element: class="card-body menu-category-item" (not nested). */
body.qr-menu-redesign .card-body.menu-category-item,
body.qr-menu-redesign .menu-category-item .card-body,
body.qr-menu-redesign .accordion.menu-category-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 !important;
    background: transparent !important;
    width: 100%;
    min-width: 0;
}

@media (min-width: 576px) {
    body.qr-menu-redesign .card-body.menu-category-item,
    body.qr-menu-redesign .menu-category-item .card-body,
    body.qr-menu-redesign .accordion.menu-category-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    body.qr-menu-redesign .card-body.menu-category-item,
    body.qr-menu-redesign .menu-category-item .card-body,
    body.qr-menu-redesign .accordion.menu-category-item {
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    body.qr-menu-redesign .card-body.menu-category-item,
    body.qr-menu-redesign .menu-category-item .card-body,
    body.qr-menu-redesign .accordion.menu-category-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

body.qr-menu-redesign .accordion.menu-category-item > .section-menu,
body.qr-menu-redesign .card-body.menu-category-item > .section-menu,
body.qr-menu-redesign .menu-category-item .card-body > .section-menu {
    min-width: 0;
}

body.qr-menu-redesign .section-menu {
    margin-bottom: 0;
}

body.qr-menu-redesign .menu-item.list.qr-product-card {
    flex-direction: column;
    background: var(--qr-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    height: 100%;
    min-height: 0;
    border: 1px solid #ececec;
}

body.qr-menu-redesign .menu-item.list.qr-product-card .menu-image {
    margin: 0 !important;
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    min-height: clamp(120px, 32vw, 180px);
    max-height: 220px;
    border: none !important;
    border-radius: 0 !important;
    background: #2e2e2e;
}

body.qr-menu-redesign .menu-item.list.qr-product-card .menu-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0 !important;
    object-fit: cover;
}

body.qr-menu-redesign .menu-item.list.qr-product-card .menu-content {
    padding: clamp(10px, 3vw, 14px) clamp(12px, 3.5vw, 14px) clamp(12px, 3vw, 16px);
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body.qr-menu-redesign .menu-item.list.qr-product-card .menu-content .menu-detail {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 10px;
    row-gap: 10px;
}

body.qr-menu-redesign .menu-item.list.qr-product-card .menu-title {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
}

body.qr-menu-redesign .menu-item.list.qr-product-card .menu-title h4 {
    font-size: clamp(0.88rem, 2.8vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-color-1);
    margin: 0 0 4px;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

body.qr-menu-redesign .menu-item.list.qr-product-card .menu-price {
    font-weight: 600;
    color: #333;
    font-size: clamp(11px, 2.6vw, 13px);
}

body.qr-menu-redesign .menu-item.list.qr-product-card .add-menu {
    flex-shrink: 0;
    margin-inline-start: auto;
    align-self: flex-start;
}

body.qr-menu-redesign .menu-item.list.qr-product-card .add-btn {
    min-height: 2rem;
    padding: 4px 12px;
}

@media (max-width: 400px) {
    body.qr-menu-redesign .menu-item.list.qr-product-card .menu-content .menu-detail {
        flex-direction: column;
        align-items: stretch;
    }

    body.qr-menu-redesign .menu-item.list.qr-product-card .add-menu {
        margin-inline-start: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
    }
}

body.qr-menu-redesign .menu-item.list.qr-product-card .menu-recipe {
    font-size: clamp(11px, 2.5vw, 12px);
    line-height: 1.45;
    color: #666;
    margin-top: 8px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

@supports not ((-webkit-line-clamp: 4) or (line-clamp: 4)) {
    body.qr-menu-redesign .menu-item.list.qr-product-card .menu-recipe {
        display: block;
        max-height: 5.8em;
        overflow: hidden;
    }
}

/* Cart: header bag only — hide duplicate bottom strip (keep #viewOrderBtn in DOM for handlers) */
body.qr-menu-redesign #view-order-wrapper.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 99;
    display: none !important;
    visibility: hidden;
    pointer-events: none;
    height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none;
    background: transparent;
}

body.qr-menu-redesign #view-order-wrapper .order-footer {
    padding: 12px 14px;
}

body.qr-menu-redesign #view-order-wrapper .view-order {
    flex-wrap: wrap;
    gap: 8px;
}

body.qr-menu-redesign #view-order-wrapper .order-btn {
    border-radius: 8px;
    font-weight: 600;
}

body.qr-menu-redesign .bg-dark {
    margin-top: 24px;
    border-radius: 0;
}

/* Desktop / tablet layout */
@media (min-width: 992px) {
    .qr-menu-workspace {
        flex-direction: row;
        align-items: stretch;
        padding-top: var(--qr-topbar-height);
    }

    body.qr-menu-redesign #sidebarleft {
        position: sticky;
        top: var(--qr-topbar-height);
        left: 0 !important;
        height: calc(100vh - var(--qr-topbar-height));
        width: min(280px, 32vw);
        flex-shrink: 0;
        z-index: 900;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
    }

    body.qr-menu-redesign #sidebarleft.active {
        left: 0 !important;
    }

    .qr-menu-main-col {
        flex: 1;
        min-width: 0;
    }

    body.qr-menu-redesign #sidebarleftbutton {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    :root {
        /* More room when toolbar wraps (hamburger + waiter + lang) */
        --qr-nav-height: 64px;
        --qr-header-stack: calc(var(--qr-topbar-height) + var(--qr-nav-height));
    }

    body.qr-menu-redesign {
        scroll-padding-top: var(--qr-header-stack);
    }

    /* Drawer starts below fixed top bar, not under it */
    body.qr-menu-redesign #sidebarleft {
        top: var(--qr-topbar-height) !important;
        height: calc(100vh - var(--qr-topbar-height)) !important;
        max-height: calc(100vh - var(--qr-topbar-height)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .qr-top-bar__title {
        max-width: 28vw;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    :root {
        --qr-nav-height: 72px;
        --qr-header-stack: calc(var(--qr-topbar-height) + var(--qr-nav-height));
    }
}

/* Product hidden by search */
.section-menu.qr-search-hidden {
    display: none !important;
}

/* Lightbox modal polish */
.lg-outer .lg-sub-html {
    background: rgba(255, 255, 255, 0.97);
    color: #333;
    padding: 16px 20px;
}

.lg-outer .lg-sub-html h4 {
    color: var(--theme-color-1);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
}

/* Drawers above fixed top bar */
body.qr-menu-redesign .sidenav.bottom.active,
body.qr-menu-redesign .sidenav.right.active {
    z-index: 1200;
}

body.qr-menu-redesign .overlay.active {
    z-index: 1150;
}

/*
 * Dim overlay must stay BELOW drawers / sidebar — base style.css uses #sidebarleft / #viewOrder { z-index: 1000 } (ID),
 * which loses to .overlay.active (1150) and blocks all taps on the cart, customize sheet, waiter box, and mobile menu.
 */
@media (max-width: 991.98px) {
    body.qr-menu-redesign #sidebarleft.active {
        z-index: 1300 !important;
    }
}

body.qr-menu-redesign #viewOrder.active,
body.qr-menu-redesign #menuCustomize.active,
body.qr-menu-redesign #call-waiter-box.active {
    z-index: 1400 !important;
}

/* ---------- Product detail modal ---------- */
.qr-product-modal {
    position: fixed;
    inset: 0;
    z-index: 1450;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.28s ease, visibility 0.28s;
}

.qr-product-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.qr-product-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.qr-product-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 96vh;
    overflow: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.qr-product-modal.is-open .qr-product-modal__dialog {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .qr-product-modal {
        align-items: center;
        padding: 0;
    }

    .qr-product-modal__dialog {
        border-radius: 20px;
        max-height: 90vh;
        transform: translateY(16px) scale(0.96);
        opacity: 0;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }

    .qr-product-modal.is-open .qr-product-modal__dialog {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.qr-product-modal__media {
    position: relative;
    flex-shrink: 0;
    background: #1a1a1a;
    overflow: hidden;
}

.qr-product-modal__media-frame {
    width: 100%;
    max-height: 42vh;
    height: min(42vh, 320px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

.qr-product-modal__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .qr-product-modal__media-frame:hover img {
        transform: scale(1.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qr-product-modal__media img {
        transition: none;
    }

    .qr-product-modal__media-frame:hover img {
        transform: none;
    }
}

@media (hover: none), (pointer: coarse) {
    .qr-product-modal__media-frame:active img {
        transform: scale(1.06);
        transition: transform 0.2s ease;
    }
}

.qr-product-modal__fab {
    position: absolute;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s, background 0.15s;
}

.qr-product-modal__fab:hover {
    transform: scale(1.05);
}

.qr-product-modal__close {
    top: 12px;
}

.qr-product-modal__share {
    top: 58px;
}

.qr-product-modal__fav {
    top: 104px;
}

.qr-product-modal__fav.is-active {
    color: #f5a623;
}

.qr-product-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 14px;
    text-align: center;
}

.qr-product-modal__title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-color-1);
    margin: 0 0 12px;
    letter-spacing: 0.04em;
}

.qr-product-modal__desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #555;
    margin-bottom: 14px;
    max-height: min(28vh, 220px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.qr-product-modal__desc:empty {
    display: none;
}

.qr-product-modal__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0;
}

.qr-product-modal__foot {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    text-align: center;
}

.qr-product-modal__qty-row {
    margin-bottom: 12px;
}

.qr-product-modal__qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
}

.qr-product-modal__qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.qr-product-modal__qty-btn:hover {
    background: #ebebeb;
}

.qr-product-modal__qty-val {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.qr-product-modal__cta {
    width: 100%;
    max-width: none;
    margin: 0;
    display: block;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--theme-color-1);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.qr-product-modal__cta:hover {
    filter: brightness(1.05);
}

.qr-product-modal__body .qr-product-modal__hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 10px;
}

.qr-cart-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 1300;
    background: #1e1e1e;
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

.qr-cart-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Full-width marketing content inside QR shell (e.g. localized home /en) */
body.qr-menu-redesign .qr-layout-main-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Home page (classic home/index): full-width slider only */
body.qr-menu-redesign.home-site-refresh .content-wrap.qr-layout-main-content {
    padding: 0;
    max-width: 100%;
}

body.qr-menu-redesign.home-site-refresh .qr-home-slider-wrap {
    margin: 0;
}

body.qr-menu-redesign.home-site-refresh .qr-home-carousel {
    background: #1a1a1a;
    overflow: hidden;
}

body.qr-menu-redesign.home-site-refresh .qr-home-carousel .carousel-inner {
    background: #1a1a1a;
}

body.qr-menu-redesign.home-site-refresh .qr-home-carousel__img {
    max-height: min(85vh, 720px);
    min-height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

body.qr-menu-redesign.home-site-refresh .qr-home-carousel .carousel-indicators li {
    background-color: rgba(255, 255, 255, 0.55);
}

body.qr-menu-redesign.home-site-refresh .qr-home-carousel .carousel-indicators .active {
    background-color: #fff;
}

/* Slim marketing footer (layouts/app.blade.php) */
.qr-app-footer {
    border-top: 1px solid #e2e8f0;
    background: #f1f5f9;
    padding: 0.875rem 1rem;
    font-family: var(--qr-font, 'Montserrat', system-ui, sans-serif);
    font-size: 0.8125rem;
    color: #64748b;
}

.qr-app-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem 1.5rem;
    max-width: 100%;
}

.qr-app-footer__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    flex: 1 1 auto;
    min-width: min(100%, 12rem);
}

.qr-app-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.qr-app-footer__link {
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
}

button.qr-app-footer__link {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    text-align: inherit;
}

.qr-app-footer__link:hover,
button.qr-app-footer__link:hover {
    color: #14b8a6;
    text-decoration: underline;
}

body.qr-menu-redesign .modal {
    z-index: 1200;
}

body.qr-menu-redesign .modal-backdrop {
    z-index: 1190;
}

.qr-app-footer-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
}

.qr-app-footer-modal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.qr-app-footer-modal__body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #334155;
}

.qr-app-footer-terms-static__h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.qr-app-footer-terms-static__h3:first-child {
    margin-top: 0;
}

.qr-app-footer-terms-static p {
    margin-bottom: 0.75rem;
}

.qr-app-footer-terms-static p:last-child {
    margin-bottom: 0;
}

.qr-app-footer-privacy-static > .qr-app-footer-terms-static__h3:first-of-type {
    margin-top: 0;
}

.qr-app-footer-privacy-static p {
    margin-bottom: 0.75rem;
}

.qr-app-footer-privacy-static p:last-child {
    margin-bottom: 0;
}

.qr-app-footer-modal__body img {
    max-width: 100%;
    height: auto;
}

.qr-app-footer-modal__body--iframe {
    padding: 0;
    max-height: min(85vh, 720px);
    overflow: hidden;
}

.qr-app-footer-modal__iframe {
    display: block;
    width: 100%;
    min-height: min(70vh, 600px);
    border: 0;
    vertical-align: top;
}

@media (max-width: 767px) {
    .qr-app-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
