/* ═══════════════════════════════════════════
   NIC MENU GRID — Style Sheet
   Inspired by the restaurant menu layout
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700&display=swap');

:root {
    --nmg-font: 'Heebo', sans-serif;
    --nmg-radius: 12px;
    --nmg-trans: .35s cubic-bezier(.4,0,.2,1);
}

/* ── Wrapper ── */
.nmg-wrap {
    font-family: var(--nmg-font);
    direction: rtl;
}

/* ── Grid ── */
.nmg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ── Card ── */
.nmg-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: var(--nmg-radius);
    padding: 18px 18px 18px 14px;
    gap: 14px;
    transition: border-color var(--nmg-trans), box-shadow var(--nmg-trans);
    position: relative;
    overflow: hidden;
}
.nmg-card:hover {
    border-color: #555;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

/* ── Info (text side — right in RTL) ── */
.nmg-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* ── Badges ── */
.nmg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}
.nmg-badge-new {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    letter-spacing: .3px;
}
.nmg-badge-sale {
    font-size: 11px;
    font-weight: 700;
    color: #e63329;
    letter-spacing: .3px;
}

/* ── Product name ── */
.nmg-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: block;
}

/* ── Price ── */
.nmg-price {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
}
.nmg-price del,
.nmg-price del * { color: #888 !important; font-size: inherit !important; margin-left: 6px; }
.nmg-price ins,
.nmg-price ins * { text-decoration: none !important; color: #e63329 !important; font-weight: 700; font-size: inherit !important; }

/* ── ATC Button ── */
.nmg-atc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 9px 20px;
    background: #e63329;
    color: #fff;
    border: 2px solid #e63329;
    border-radius: 6px;
    font-family: var(--nmg-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--nmg-trans), transform .15s, box-shadow .15s;
    white-space: nowrap;
    width: fit-content;
    letter-spacing: .3px;
}
.nmg-atc-btn:hover {
    background: #c9221a;
    border-color: #c9221a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(230,51,41,.4);
}
.nmg-atc-btn:active { transform: translateY(0); }

/* ── Out of stock ── */
.nmg-out-of-stock {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    font-style: italic;
}

/* ── Image side ── */
.nmg-img-wrap {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    flex-shrink: 0;
}
.nmg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.nmg-card:hover .nmg-img-wrap img {
    transform: scale(1.04);
}

/* ════════════════════════════════
   OVERLAY
════════════════════════════════ */
.nmg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    backdrop-filter: blur(2px);
}
.nmg-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ════════════════════════════════
   POPUP (bottom sheet on mobile, centered on desktop)
════════════════════════════════ */
.nmg-popup {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: min(520px, 100vw);
    max-height: 90vh;
    background: #1e1e1e;
    color: #fff;
    z-index: 9001;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 60px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    transition: transform .4s cubic-bezier(.32,0,.67,0);
    font-family: var(--nmg-font);
    direction: rtl;
    overflow: hidden;
}
.nmg-popup.open {
    transform: translateX(-50%) translateY(0);
}

/* Desktop: centered card style */
@media (min-width: 768px) {
    .nmg-popup {
        top: 50%;
        bottom: auto;
        left: 50%;
        transform: translate(-50%, -50%) scale(.94);
        border-radius: 20px;
        width: min(540px, 90vw);
        max-height: 85vh;
        transition: transform .35s cubic-bezier(.32,0,.67,0), opacity .35s;
        opacity: 0;
        pointer-events: none;
    }
    .nmg-popup.open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: all;
    }
}

/* ── Popup Header ── */
.nmg-pop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}
.nmg-pop-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
}
.nmg-pop-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.nmg-pop-close:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
}

/* ── Popup Body ── */
.nmg-pop-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}

/* ── Product row ── */
.nmg-pop-product {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.nmg-pop-img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    background: #2a2a2a;
    flex-shrink: 0;
}
.nmg-pop-meta {
    flex: 1;
    min-width: 0;
}
.nmg-pop-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 6px;
}
.nmg-pop-price {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}
.nmg-pop-price del,
.nmg-pop-price del * { color: #888 !important; font-size: inherit !important; }
.nmg-pop-price ins,
.nmg-pop-price ins * { text-decoration: none !important; color: #e63329 !important; font-weight: 700; font-size: inherit !important; }
.nmg-pop-desc {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    line-height: 1.5;
}

/* ── Divider ── */
.nmg-pop-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 0 -24px;
    flex-shrink: 0;
}

/* ── Attribute sections ── */
.nmg-pop-attr-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nmg-pop-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    text-align: right;
}
.nmg-pop-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    direction: rtl;
}
/* ── Option button with price ── */
.nmg-pop-option {
    padding: 8px 18px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 8px;
    font-family: var(--nmg-font);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s, transform .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 72px;
    text-align: center;
}
.nmg-pop-option:hover {
    border-color: #e63329;
    color: #e63329;
}
.nmg-pop-option.selected {
    background: #e63329;
    border-color: #e63329;
    color: #fff;
    font-weight: 700;
}
.nmg-pop-option:active { transform: scale(.97); }

.nmg-opt-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}
.nmg-opt-price {
    font-size: 11px;
    font-weight: 400;
    opacity: .8;
    line-height: 1;
}
.nmg-opt-price * { font-size: 11px !important; color: inherit !important; text-decoration: none !important; }
.nmg-pop-option.selected .nmg-opt-price { opacity: .9; }

/* ── Card "החל מ" price ── */
.nmg-price-from {
    font-size: 11px;
    font-weight: 400;
    opacity: .7;
    margin-left: 2px;
}

/* ── Quantity ── */
.nmg-pop-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 8px;
}
.nmg-pop-qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,.1);
    border-radius: 50px;
    padding: 3px;
}
.nmg-pop-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    border-radius: 50%;
    font-family: var(--nmg-font);
    line-height: 1;
    flex-shrink: 0;
}
.nmg-pop-qty-btn:hover {
    background: #e63329;
    color: #fff;
}
.nmg-pop-qty-num {
    min-width: 36px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

/* ── Addon quantity stepper (e.g. Soy Sauce x3) ── */
.nmg-addon-opt-qty {
    padding: 8px 14px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 8px;
    font-family: var(--nmg-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 92px;
    text-align: center;
    transition: border-color .2s, background .2s;
}
.nmg-addon-opt-qty.selected {
    border-color: #e63329;
    background: rgba(230,51,41,.12);
}
.nmg-addon-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nmg-addon-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, opacity .2s;
    font-family: var(--nmg-font);
    flex-shrink: 0;
}
.nmg-addon-qty-btn:hover:not(:disabled) {
    background: #e63329;
    color: #fff;
}
.nmg-addon-qty-btn:disabled {
    opacity: .3;
    cursor: default;
}
.nmg-addon-qty-num {
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* ── Loading ── */
.nmg-pop-loading {
    color: rgba(255,255,255,.4);
    font-size: 13px;
    text-align: center;
    padding: 16px 0;
}

/* ── Popup Footer ── */
.nmg-pop-footer {
    padding: 16px 24px 28px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (max-width: 767px) {
    .nmg-pop-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

.nmg-pop-err {
    font-size: 12px;
    color: #e63329;
    display: none;
    text-align: center;
    padding: 4px 0;
}
.nmg-pop-err.show { display: block; }

.nmg-pop-atc {
    width: 100%;
    padding: 16px 0;
    background: #e63329;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--nmg-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.nmg-pop-atc:hover {
    background: #c9221a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230,51,41,.4);
}
.nmg-pop-atc:active { transform: translateY(0); }
.nmg-pop-atc.done {
    background: #3a7d44 !important;
    transform: none !important;
    box-shadow: none !important;
}
.nmg-pop-atc:disabled { opacity: .6; cursor: not-allowed; }

.nmg-pop-view-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.4);
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: .5px;
    transition: color .2s;
}
.nmg-pop-view-link:hover { color: rgba(255,255,255,.7); }

/* ════════════════════════════════
   TOAST
════════════════════════════════ */
.nmg-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: #1a1a1a;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--nmg-font);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all .3s cubic-bezier(.32,0,.67,0);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.nmg-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
    .nmg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .nmg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nmg-card {
        flex-direction: column-reverse;
        align-items: stretch;
        padding: 0;
        gap: 0;
        overflow: hidden;
    }
    /* Use !important to override Elementor's inline style on .nmg-img-wrap */
    .nmg-img-wrap {
        width: 100% !important;
        height: 120px !important;
        border-radius: 0 !important;
        flex-shrink: 0;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .nmg-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .nmg-info {
        padding: 10px 10px 12px;
        min-width: 0;
    }
    .nmg-name {
        font-size: 13px;
        line-height: 1.3;
    }
    .nmg-price {
        font-size: 13px;
    }
    .nmg-atc-btn {
        font-size: 11px;
        padding: 7px 10px;
        width: 100%;
        justify-content: center;
    }
    .nmg-badge-new,
    .nmg-badge-sale {
        font-size: 10px;
    }
}

/* ════════════════════════════════
   ENTRY ANIMATION
════════════════════════════════ */
.nmg-card {
    opacity: 0;
    transform: translateY(20px);
    animation: nmgFadeUp .5s ease forwards;
}
.nmg-card:nth-child(1)  { animation-delay: .04s; }
.nmg-card:nth-child(2)  { animation-delay: .08s; }
.nmg-card:nth-child(3)  { animation-delay: .12s; }
.nmg-card:nth-child(4)  { animation-delay: .16s; }
.nmg-card:nth-child(5)  { animation-delay: .20s; }
.nmg-card:nth-child(6)  { animation-delay: .24s; }
.nmg-card:nth-child(7)  { animation-delay: .28s; }
.nmg-card:nth-child(8)  { animation-delay: .32s; }
.nmg-card:nth-child(9)  { animation-delay: .36s; }
.nmg-card:nth-child(10) { animation-delay: .40s; }
.nmg-card:nth-child(11) { animation-delay: .44s; }
.nmg-card:nth-child(12) { animation-delay: .48s; }

@keyframes nmgFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Multi-select indication ── */
.nmg-pop-option.multi-hint::after {
    content: '✓';
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 10px;
    opacity: 0;
    transition: opacity .15s;
}
.nmg-pop-option.selected.multi-hint::after {
    opacity: 1;
}
.nmg-pop-section-multi-label {
    font-size: 9px;
    color: rgba(255,255,255,.3);
    letter-spacing: 1px;
    margin-right: 6px;
}

/* ── Go to cart link ── */
.nmg-pop-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 10px;
    font-family: var(--nmg-font);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
    text-align: center;
}
.nmg-pop-cart-link:hover {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    background: rgba(255,255,255,.06);
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY TABS BAR — Wolt-style sticky tabs
   ═══════════════════════════════════════════════════════════ */

.nmg-tabs-bar {
    width: 100%;
    background: var(--nmg-tab-bg, #1a1a1a);
    z-index: 99;
    overflow-x: auto;
    overflow-y: hidden;
    transition: box-shadow .25s;
}

.nmg-tabs-bar.nmg-tabs-stuck {
    position: fixed;
    left: 0;
    right: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,.35);
    /* top set by JS */
}

.nmg-tabs-inner {
    display: flex;
    flex-direction: row-reverse; /* RTL: right-to-left */
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.nmg-tabs-inner::-webkit-scrollbar {
    display: none;
}

.nmg-tab-btn {
    position: relative;
    flex: 0 0 auto;
    padding: 14px 20px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--nmg-font, 'Heebo', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--nmg-tab-txt, rgba(255,255,255,.55));
    opacity: .6;
    white-space: nowrap;
    transition: color .2s, opacity .2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nmg-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background .2s;
}

.nmg-tab-btn:hover {
    opacity: .85;
}

.nmg-tab-btn.active {
    color: var(--nmg-tab-txt, #ffffff);
    opacity: 1;
}

.nmg-tab-btn.active::after {
    background: var(--nmg-tab-active, #e63329);
}

/* Tab panels — hidden by default */
.nmg-tab-panel {
    display: none;
}
.nmg-tab-panel.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   STICKY CART BAR — bottom bar "לביצוע הזמנה"
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   STICKY CART BAR — redesigned
   ═══════════════════════════════════════════════ */

.nmg-sticky-cart {
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    padding: 10px 16px 14px; /* extra bottom for safe area */
    transform: translateY(110%);
    transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
    background: transparent;
}

.nmg-sticky-cart.nmg-sc-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* The actual button */
.nmg-sc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px 0 16px;
    height: 56px;
    background: #e63329;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    font-family: var(--nmg-font, 'Heebo', sans-serif);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    gap: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 24px rgba(230,51,41,.45), 0 2px 8px rgba(0,0,0,.3);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.nmg-sc-btn:hover {
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(230,51,41,.5), 0 2px 10px rgba(0,0,0,.35);
}

.nmg-sc-btn:active {
    transform: translateY(0);
}

/* Icon + badge wrapper */
.nmg-sc-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.18);
    border-radius: 10px;
    flex: 0 0 40px;
}

.nmg-sc-icon svg {
    display: block;
}

/* Item count badge */
.nmg-sc-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    min-width: 18px;
    height: 18px;
    background: #fff;
    color: #e63329;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    display: none;
}

/* Center label */
.nmg-sc-label {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.2px;
}

/* Right side: price + chevron */
.nmg-sc-price-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    background: rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 4px 8px 4px 4px;
}

.nmg-sc-total {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: embed;
}

.nmg-sc-chevron {
    display: block;
    opacity: .85;
    flex: 0 0 auto;
}

/* Safe area bottom padding on iOS */
.nmg-sticky-cart {
    padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
}

body:has(.nmg-sticky-cart.nmg-sc-visible) {
    padding-bottom: 84px;
}


/* ═══════════════════════════════════════════════════════════
   CATEGORY TABS — pill/chip style (text only, no circle)
   ═══════════════════════════════════════════════════════════ */

/* Override tab button layout for pill style */
.nmg-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    margin: 8px 4px;
    border-radius: 20px;
    background: rgba(255,255,255,.09);
    border: 1.5px solid rgba(255,255,255,.13);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    transition: background .2s, border-color .2s, color .2s, opacity .2s;
    min-width: unset;
    gap: 0;
    flex-direction: row;
    opacity: 1;
}

.nmg-tab-btn:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
    opacity: 1;
}

.nmg-tab-btn.active {
    background: var(--nmg-tab-active, #e63329);
    border-color: var(--nmg-tab-active, #e63329);
    color: #fff !important;
    opacity: 1;
}

/* Hide the underline bar — replaced by pill background */
.nmg-tab-btn::after {
    display: none !important;
}

/* Hide circles entirely — pill style is text only */
.nmg-tab-circle,
.nmg-tab-circle-all,
.nmg-tab-circle-initial {
    display: none !important;
}

/* Tab name — bigger since it's the only element */
.nmg-tab-name {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
}

/* Adjust tabs inner for circle layout */
.nmg-tabs-inner {
    gap: 4px;
    padding: 8px 12px 4px;
}

/* ═══════════════════════════════════════════════════════════
   ADDONS — in popup
   ═══════════════════════════════════════════════════════════ */

.nmg-addon-section {
    /* same as attr-section */
}

.nmg-addon-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.nmg-addon-required {
    font-size: 10px;
    font-weight: 700;
    background: #e63329;
    color: #fff;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: .5px;
}

.nmg-addon-hint {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    margin-right: auto;
}

.nmg-addon-options {
    /* inherits nmg-pop-options flex-wrap layout */
}

/* Multi-select: show checkmark indicator */
.nmg-addon-opt.selected::before {
    content: '✓ ';
    font-size: 11px;
    font-weight: 800;
}


/* ═══════════════════════════════════════════════
   POPUP TOTAL + ATC BUTTON WITH PRICE
   ═══════════════════════════════════════════════ */

.nmg-pop-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px 6px;
    margin-bottom: 6px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.nmg-pop-total-label {
    font-size: 14px;
    font-weight: 600;
    opacity: .7;
    font-family: var(--nmg-font, 'Heebo', sans-serif);
}

.nmg-pop-total-val {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--nmg-font, 'Heebo', sans-serif);
    direction: ltr;
}

/* ATC button with inline price */
.nmg-pop-atc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nmg-pop-atc-label {
    flex: 1;
    text-align: center;
}

.nmg-pop-atc-total {
    font-size: 15px;
    font-weight: 800;
    background: rgba(255,255,255,.2);
    border-radius: 6px;
    padding: 2px 8px;
    direction: ltr;
    display: none; /* shown by JS */
}


/* ── Wolt-style: category sections ── */
.nmg-cat-section {
    margin-bottom: 32px;
    scroll-margin-top: 120px;
}

.nmg-cat-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--nmg-txt, #fff);
    padding: 16px 4px 12px;
    margin: 0;
    font-family: var(--nmg-font, 'Heebo', sans-serif);
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 12px;
    direction: rtl;
}

/* ── Popup notes field ── */
.nmg-pop-notes-row {
    padding: 0 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nmg-pop-notes {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 10px;
    color: inherit;
    font-family: var(--nmg-font, 'Heebo', sans-serif);
    font-size: 14px;
    padding: 10px 12px;
    resize: none;
    direction: rtl;
    transition: border-color .2s;
    outline: none;
}

.nmg-pop-notes:focus {
    border-color: rgba(255,255,255,.4);
}

.nmg-pop-notes::placeholder {
    color: rgba(255,255,255,.35);
}

/* Clear notes on popup open */

/* ══════════════════════════════════════════════
   Built-in Side Cart Drawer — Dark theme (#121111)
   ══════════════════════════════════════════════ */
.nmg-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--nmg-trans), visibility var(--nmg-trans);
    z-index: 99998;
}
.nmg-drawer-overlay.open { opacity: 1; visibility: visible; }

.nmg-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 380px;
    max-width: 90vw;
    background: #121111;
    color: #f2f2f2;
    box-shadow: -8px 0 32px rgba(0,0,0,.55);
    transform: translateX(100%);
    transition: transform var(--nmg-trans);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    font-family: var(--nmg-font, 'Heebo', sans-serif);
    direction: rtl;
}
.nmg-drawer.open { transform: translateX(0); }

.nmg-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    flex: 0 0 auto;
}
.nmg-drawer-title { font-size: 19px; font-weight: 700; color: #fff; }
.nmg-drawer-close {
    background: rgba(255,255,255,.08);
    border: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #ccc;
    transition: background .2s, color .2s;
}
.nmg-drawer-close:hover { background: #e63329; color: #fff; }

.nmg-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 16px;
}
.nmg-drawer-body::-webkit-scrollbar { width: 7px; }
.nmg-drawer-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }
.nmg-drawer-loading,
.nmg-drawer-empty {
    text-align: center;
    color: #888;
    padding: 60px 20px;
    font-size: 17px;
    line-height: 1.8;
}

.nmg-di {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    align-items: flex-start;
}
.nmg-di-img {
    width: 62px; height: 62px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 auto;
    background: #1f1d1d;
}
.nmg-di-main { flex: 1 1 auto; min-width: 0; }
.nmg-di-name { font-weight: 600; font-size: 15px; color: #fff; margin-bottom: 4px; }
.nmg-di-meta { font-size: 12.5px; color: #9a9a9a; line-height: 1.5; }
.nmg-di-meta b { color: #c4c4c4; font-weight: 600; }
.nmg-drawer .nmg-di-price { font-weight: 700; font-size: 15px; color: #ffffff !important; white-space: nowrap; }

.nmg-di-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.nmg-drawer .nmg-di-minus,
.nmg-drawer .nmg-di-plus {
    width: 30px !important;
    height: 30px !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28) !important;
    background: transparent !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer;
    color: #ffffff !important;
    padding: 0 !important;
    transition: background .15s, border-color .15s;
}
.nmg-drawer .nmg-di-minus:hover,
.nmg-drawer .nmg-di-plus:hover { background: rgba(255,255,255,.12) !important; border-color: #ffffff !important; color: #ffffff !important; }
.nmg-drawer .nmg-di-num { min-width: 26px; text-align: center; font-weight: 600; font-size: 15px; color: #ffffff !important; }
.nmg-drawer .nmg-di-remove {
    margin-right: auto;
    background: none !important;
    border: none !important;
    color: #9a9a9a !important;
    font-size: 13px !important;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px !important;
    border-radius: 0 !important;
}
.nmg-drawer .nmg-di-remove:hover { color: #ffffff !important; }

.nmg-drawer-foot {
    flex: 0 0 auto;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.09);
    background: #0d0c0c;
}
.nmg-drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}
.nmg-drawer .nmg-drawer-total { color: #ffffff !important; }
.nmg-drawer-checkout {
    display: block;
    text-align: center;
    background: #e63329;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: filter .2s;
}
.nmg-drawer-checkout:hover { filter: brightness(1.08); }
.nmg-drawer-viewcart {
    display: block;
    text-align: center;
    color: #9a9a9a !important;
    font-size: 14px;
    text-decoration: underline;
    margin-top: 10px;
}
.nmg-drawer-viewcart:hover { color: #ccc !important; }
