﻿/* =========================================================
   menu-new.css  –  New Menu Design (FrontPagesNew)
   ========================================================= */

/* === Reset / Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.mnew-app {
    font-family: "Cairo-Medium", sans-serif;
    direction: rtl;
    min-height: 100vh;
    background: #f5f5f5;
    color: #222;
}

.mnew-app button,
.mnew-app input,
.mnew-app textarea,
.mnew-app select {
    font-family: inherit;
}

/* === Splash Loader === */
.mnew-splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 9999;
}

.mnew-splash-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--mnew-primary, #DA5F00);
    border-radius: 50%;
    animation: mnew-spin 0.7s linear infinite;
}

@keyframes mnew-spin { to { transform: rotate(360deg); } }

/* === Page-Entry Animation (top → down, staggered) === */
@keyframes mnew-enter {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Subscribe Ended === */
.mnew-ended {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 12px;
    padding: 32px;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

/* === Welcome Page === */
.mnew-welcome {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #fff;
    text-align: center;
    gap: 16px;
}

.mnew-welcome-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.mnew-welcome-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.mnew-welcome-sub {
    font-size: .95rem;
    color: #888;
    margin: 0;
}

.mnew-welcome-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.mnew-welcome-btn {
    margin-top: 8px;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    transition: opacity .2s, transform .1s;
}

.mnew-welcome-btn:hover { opacity: .9; }
.mnew-welcome-btn:active { transform: scale(.97); }

.mnew-welcome-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
}

.mnew-welcome-social a {
    color: #555;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color .2s;
}

.mnew-welcome-social a:hover { color: var(--mnew-primary, #DA5F00); }

/* === STICKY TOP BAR === */
.mnew-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    padding: 10px 16px;
    animation: mnew-enter 0.45s ease both;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    border-bottom: 1px solid #f0f0f0;
}

.mnew-topbar-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
}

.mnew-topbar-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid #eee;
}

.mnew-topbar-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mnew-topbar-search-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
    cursor: pointer;
    flex-shrink: 0;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.mnew-topbar-search-btn:hover { background: #e8e8e8; }

/* ---- Social icons (desktop) ---- */
.mnew-topbar-social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Hide desktop social row on small screens */
.mnew-topbar-social-desktop {
    display: none;
}

@media (min-width: 576px) {
    .mnew-topbar-social-desktop { display: flex; }
    .mnew-topbar-social-mobile  { display: none !important; }
}

.mnew-topbar-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #444;
    font-size: 1rem;
    text-decoration: none;
    background: #f5f5f5;
    transition: background .2s, color .2s;
}

.mnew-topbar-social-link:hover {
    background: var(--mnew-primary, #DA5F00);
    color: #fff;
}

/* ---- Mobile social dropdown ---- */
.mnew-topbar-social-mobile {
    position: relative;
    flex-shrink: 0;
}

.mnew-topbar-social-toggle {
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.mnew-topbar-social-toggle:hover,
.mnew-topbar-social-mobile.open .mnew-topbar-social-toggle {
    background: var(--mnew-primary, #DA5F00);
    color: #fff;
}

.mnew-topbar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    min-width: 180px;
    z-index: 500;
    overflow: hidden;
    animation: mnew-enter 0.18s ease both;
}

.mnew-topbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    text-decoration: none;
    color: #222;
    font-size: 0.92rem;
    transition: background .15s;
    border-bottom: 1px solid #f3f3f3;
}

.mnew-topbar-dropdown-item:last-child { border-bottom: none; }

.mnew-topbar-dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--mnew-primary, #DA5F00);
    font-size: 1rem;
}

.mnew-topbar-dropdown-item:hover { background: #faf5f1; }

/* === HERO SLIDER (CSS-only, keyframe injected per N slides) === */
.mnew-hero {
    position: relative;
    width: 100%;
    height: 42vh;
    min-height: 200px;
    max-height: 360px;
    overflow: hidden;
    background: #1a1a1a;
    animation: mnew-enter 0.5s ease 0.1s both;
    touch-action: pan-y;
    user-select: none;
}

.mnew-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity .8s ease;
}

.mnew-slide.active {
    opacity: 1;
    z-index: 1;
}

.mnew-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mnew-slide-caption {
    position: absolute;
    bottom: 22px;
    right: 0;
    left: 0;
    z-index: 3;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.mnew-slide-badge {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    backdrop-filter: blur(6px);
}

.mnew-slide-label {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,.75);
    letter-spacing: .01em;
    background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.55));
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 14px;
    padding: 10px 16px;
    max-width: min(92%, 520px);
    backdrop-filter: blur(6px);
}

.mnew-slide-default {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

.mnew-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.mnew-slide-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 4;
}

.mnew-slide-dot {
    appearance: none;
    border: none;
    padding: 0;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    opacity: 0.35;
    background: #fff;
    cursor: pointer;
    transition: opacity .25s ease, width .25s ease;
}

.mnew-slide-dot.active {
    opacity: 1;
    width: 20px;
}

.mnew-slide-dot:hover { opacity: 0.9; }

.mnew-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.mnew-slide-nav:hover {
    background: rgba(0,0,0,.55);
    transform: translateY(-50%) scale(1.04);
}

.mnew-slide-nav-prev { right: 12px; }
.mnew-slide-nav-next { left: 12px; }

/* === Category Bar === */
.mnew-sticky-bar {
    position: relative;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border-bottom: 1px solid #f0f0f0;
    animation: mnew-enter 0.5s ease 0.2s both;
}

.mnew-cats {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
}

.mnew-cats::-webkit-scrollbar { display: none; }

.mnew-cats.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.mnew-cat-btn {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 4px 13px;
    border-radius: 10px;
    border: 1.5px solid #ebebeb;
    background: #fff;
    color: #555;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .22s ease;
    line-height: 1.4;
    font-family: inherit;
    position: relative;
}

.mnew-cat-thumb-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    padding: 2px;
    background: #f5f5f5;
    transition: all .22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mnew-cat-thumb {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    border: none;
    background: #fff;
}

.mnew-cat-label {
    display: inline-block;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .22s ease;
}

.mnew-cat-btn:hover {
    border-color: var(--mnew-primary, #DA5F00);
    color: var(--mnew-primary, #DA5F00);
    background: #fff;
}

.mnew-cat-btn:hover .mnew-cat-thumb-wrap {
    background: color-mix(in srgb, var(--mnew-primary, #DA5F00) 12%, transparent);
}

.mnew-cat-btn.active {
    background: var(--mnew-primary, #DA5F00);
    border-color: var(--mnew-primary, #DA5F00);
    color: #fff;
    box-shadow: 0 3px 14px color-mix(in srgb, var(--mnew-primary, #DA5F00) 35%, transparent);
}

.mnew-cat-btn.active .mnew-cat-thumb-wrap {
    background: rgba(255,255,255,.22);
}

.mnew-cat-btn.active .mnew-cat-label {
    color: #fff;
}

/* === Main Content === */
.mnew-main {
    padding: 18px 14px 110px;
    max-width: 960px;
    margin: 0 auto;
    animation: mnew-enter 0.55s ease 0.3s both;
}

.mnew-items-loading {
    display: flex;
    justify-content: center;
    padding: 56px 0;
}

.mnew-empty {
    text-align: center;
    padding: 70px 20px;
    color: #aaa;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* === Items Grid === */
.mnew-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
}

.mnew-pagination-wrap {
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fff8f1 100%);
    border: 1px solid #f0dfcf;
    box-shadow: 0 3px 14px rgba(0,0,0,.05);
}

.mnew-pagination-meta {
    font-size: .79rem;
    color: #8b6b52;
    margin-bottom: 10px;
    font-weight: 700;
}

.mnew-pagination-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mnew-pagination-tabs::-webkit-scrollbar { display: none; }

.mnew-page-tab {
    border: 1px solid #ead8c7;
    background: #fff;
    color: #8a5f3d;
    border-radius: 999px;
    min-width: 38px;
    height: 36px;
    padding: 0 12px;
    font-size: .82rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .18s ease;
}

.mnew-page-tab:hover {
    border-color: var(--mnew-primary, #DA5F00);
    color: var(--mnew-primary, #DA5F00);
    transform: translateY(-1px);
}

.mnew-page-tab.active {
    background: var(--mnew-primary, #DA5F00);
    border-color: var(--mnew-primary, #DA5F00);
    color: #fff;
    box-shadow: 0 4px 14px rgba(218,95,0,.3);
}

.mnew-page-tab.nav {
    min-width: 76px;
    color: #6f4c30;
}

.mnew-page-tab:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.mnew-page-dots {
    color: #be9674;
    font-weight: 900;
    letter-spacing: .12em;
    padding: 0 2px;
}

@media (min-width: 480px) {
    .mnew-items-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
}

@media (min-width: 700px) {
    .mnew-items-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
}

/* === Item Card === */
.mnew-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
    cursor: pointer;
}

.mnew-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.mnew-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.mnew-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
    display: block;
}

.mnew-card:hover .mnew-card-img { transform: scale(1.06); }

.mnew-card-body {
    padding: 10px 11px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.mnew-card-name {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mnew-card-desc {
    font-size: .77rem;
    color: #999;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mnew-card-footer {
    margin-top: auto;
    padding-top: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.mnew-card-price {
    font-size: .92rem;
    font-weight: 800;
    color: var(--mnew-primary, #DA5F00);
    white-space: nowrap;
}

/* === Add Button === */
.mnew-add-btn {
    background: var(--mnew-primary, #DA5F00);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 7px 15px;
    font-size: .81rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .18s, transform .12s;
    font-family: inherit;
    line-height: 1;
}

.mnew-add-btn:active { transform: scale(.93); }
.mnew-add-btn:hover { opacity: .88; }

.mnew-add-btn-sm {
    background: var(--mnew-primary, #DA5F00);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 6px 13px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .18s, transform .12s;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}

.mnew-add-btn-sm:hover { opacity: .88; }

/* === Floating Cart Bar === */
.mnew-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    background: var(--mnew-primary, #DA5F00);
    color: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    z-index: 200;
    transition: transform .15s;
}

.mnew-cart-bar:active { transform: translateX(-50%) scale(.97); }

.mnew-cart-bar-count {
    background: rgba(255,255,255,.25);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.mnew-cart-bar-label {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.mnew-cart-bar-total {
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

/* === Overlay === */
.mnew-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 300;
    backdrop-filter: blur(2px);
}

/* === Search Panel === */
.mnew-search-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 400;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    padding: 16px;
    max-height: 75vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mnew-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 0 14px;
}

.mnew-search-icon { color: #888; flex-shrink: 0; }

.mnew-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 1rem;
    direction: rtl;
    outline: none;
    color: #222;
}

.mnew-search-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    flex-shrink: 0;
    padding: 4px;
}

.mnew-search-empty { color: #888; font-size: .9rem; padding: 8px 4px; }

.mnew-search-results { display: flex; flex-direction: column; gap: 4px; }

.mnew-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: background .15s;
}

.mnew-search-item:hover { background: #f0f0f0; }

.mnew-search-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.mnew-search-item-info { flex: 1; min-width: 0; }

.mnew-search-item-name {
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mnew-search-item-price { font-size: .82rem; color: var(--mnew-primary, #DA5F00); font-weight: 600; }

/* === Item Detail Modal === */
.mnew-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    isolation: isolate;
    background: #fff;
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0,0,0,.18);
}

@media (min-width: 640px) {
    .mnew-modal {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(95vw, 520px);
        border-radius: 20px;
        max-height: 85vh;
    }
}

.mnew-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,.08);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    color: #333;
    z-index: 20;
    pointer-events: auto;
    transition: background .2s;
}

.mnew-modal-close:hover { background: rgba(0,0,0,.15); }

.mnew-modal-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f1f1f1;
    touch-action: pan-y;
    user-select: none;
}

.mnew-modal-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .38s ease;
    z-index: 0;
}

.mnew-modal-slide.active {
    opacity: 1;
    z-index: 1;
}

.mnew-modal-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.mnew-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.mnew-modal-nav:hover {
    background: rgba(0,0,0,.55);
    transform: translateY(-50%) scale(1.05);
}

.mnew-modal-nav-prev { right: 10px; }
.mnew-modal-nav-next { left: 10px; }

.mnew-modal-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 7px;
}

.mnew-modal-dot {
    appearance: none;
    border: none;
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #fff;
    opacity: .45;
    padding: 0;
    cursor: pointer;
    transition: opacity .2s ease, width .2s ease;
}

.mnew-modal-dot.active {
    opacity: 1;
    width: 18px;
}

.mnew-modal-body { padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 8px; }

.mnew-modal-name { font-size: 1.15rem; font-weight: 700; }

.mnew-modal-desc { font-size: .88rem; color: #777; line-height: 1.5; }

.mnew-modal-price { font-size: 1.05rem; font-weight: 700; color: var(--mnew-primary, #DA5F00); }

/* === Additions === */
.mnew-additions { border-top: 1px solid #f0f0f0; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }

.mnew-additions-title { font-size: .85rem; font-weight: 700; color: #444; margin-bottom: 4px; }

.mnew-addition-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background .15s;
}

.mnew-addition-item:hover { background: #f5f5f5; }

.mnew-addition-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--mnew-primary, #DA5F00); cursor: pointer; }

.mnew-addition-price { margin-right: auto; margin-left: 0; color: var(--mnew-primary, #DA5F00); font-size: .82rem; font-weight: 600; }

/* === Note Input === */
.mnew-note-input {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .9rem;
    resize: none;
    min-height: 70px;
    direction: rtl;
    outline: none;
    font-family: inherit;
    transition: border-color .2s;
}

.mnew-note-input:focus { border-color: var(--mnew-primary, #DA5F00); }

/* === Quantity Control (Modal) === */
.mnew-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.mnew-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border-radius: 30px;
    padding: 4px 8px;
}

.mnew-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    line-height: 1;
    transition: background .15s;
}

.mnew-qty-btn:hover { background: #e8e8e8; }

.mnew-qty-val { font-size: 1rem; font-weight: 700; min-width: 20px; text-align: center; }

.mnew-confirm-btn {
    flex: 1;
    background: var(--mnew-primary, #DA5F00);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: opacity .2s;
    font-family: inherit;
    line-height: 1;
}

.mnew-confirm-btn:hover { opacity: .9; }

/* === Checkout Panel === */
.mnew-checkout-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    background: #fff;
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0,0,0,.18);
    padding: 20px 18px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 640px) {
    .mnew-checkout-panel {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(95vw, 520px);
        border-radius: 20px;
        max-height: 85vh;
    }
}

.mnew-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mnew-checkout-header h3 { font-size: 1.1rem; font-weight: 700; }

.mnew-modal-close-inline {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background .2s;
}

.mnew-modal-close-inline:hover { background: #e0e0e0; }

/* === Checkout Items === */
.mnew-checkout-items { display: flex; flex-direction: column; gap: 10px; }

.mnew-checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.mnew-checkout-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mnew-checkout-item-name { font-size: .9rem; font-weight: 600; }
.mnew-checkout-item-adds { font-size: .78rem; color: #888; }
.mnew-checkout-item-note { font-size: .78rem; color: #aaa; font-style: italic; }

.mnew-checkout-item-qty-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mnew-qty-ctrl-sm {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 3px 6px;
}

.mnew-qty-ctrl-sm button {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    transition: background .15s;
    line-height: 1;
}

.mnew-qty-ctrl-sm button:hover { background: #e0e0e0; }

.mnew-qty-ctrl-sm span { min-width: 16px; text-align: center; font-size: .88rem; font-weight: 700; }

.mnew-checkout-item-price { font-size: .88rem; font-weight: 700; color: var(--mnew-primary, #DA5F00); white-space: nowrap; }

.mnew-checkout-item-del {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background .15s;
}

.mnew-checkout-item-del:hover { background: #fff0f1; }

/* === Checkout Total === */
.mnew-checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 4px;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

/* === Checkout Form === */
.mnew-checkout-form { display: flex; flex-direction: column; gap: 10px; }

.mnew-form-group { display: flex; flex-direction: column; gap: 5px; }

.mnew-form-group label { font-size: .84rem; font-weight: 600; color: #555; }

.mnew-form-input {
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: .95rem;
    direction: rtl;
    outline: none;
    font-family: inherit;
    resize: none;
    transition: border-color .2s;
    background: #fff;
    color: #222;
}

.mnew-form-input:focus { border-color: var(--mnew-primary, #DA5F00); }

/* === Checkout Error === */
.mnew-checkout-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 10px 14px;
    color: #856404;
    font-size: .88rem;
}

/* === Checkout Confirm Button === */
.mnew-checkout-confirm-btn {
    width: 100%;
    background: var(--mnew-primary, #DA5F00);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    line-height: 1;
}

.mnew-checkout-confirm-btn:hover:not(:disabled) { opacity: .9; }
.mnew-checkout-confirm-btn:disabled { opacity: .65; cursor: not-allowed; }

/* === Success Panel === */
.mnew-success-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 400;
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    width: min(90vw, 340px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
    text-align: center;
}

.mnew-success-icon {
    font-size: 4rem;
    color: #198754;
    line-height: 1;
}

.mnew-success-panel h3 { font-size: 1.2rem; font-weight: 700; }

.mnew-success-panel p { font-size: .9rem; color: #666; }

.mnew-success-btn {
    margin-top: 8px;
    background: #198754;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 36px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.mnew-success-btn:hover { background: #157347; }

/* ========== TOPBAR ORDERS BUTTON ========== */
.mnew-topbar-orders-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
    cursor: pointer;
    flex-shrink: 0;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.mnew-topbar-orders-btn:hover { background: #e8e8e8; }

/* ========== ORDERS PANEL ========== */
.mnew-orders-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    background: #fff;
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0,0,0,.18);
    padding: 20px 18px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (min-width: 640px) {
    .mnew-orders-panel {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(95vw, 520px);
        border-radius: 20px;
        max-height: 85vh;
    }
}

.mnew-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mnew-order-card {
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background .15s;
}
.mnew-order-card:hover { background: #f8f8f8; }

.mnew-order-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.mnew-order-card-id { font-weight: 700; font-size: .95rem; }

.mnew-order-status-badge {
    font-size: .75rem;
    color: #fff;
    border-radius: 8px;
    padding: 2px 10px;
    font-weight: 600;
}

.mnew-order-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mnew-order-card-total { font-weight: 700; font-size: .9rem; }

.mnew-orders-back-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: .9rem;
    cursor: pointer;
    align-self: flex-start;
    transition: background .2s;
}
.mnew-orders-back-btn:hover { background: #e0e0e0; }

.mnew-order-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mnew-order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
    font-size: .9rem;
}
.mnew-order-detail-row span:first-child { color: #888; }

.mnew-order-detail-items-title {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 4px;
}

.mnew-order-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* ========== FOOTER ========== */
.mnew-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 36px 20px 28px;
    margin-top: 32px;
    /* bottom padding so floating cart bar doesn't cover the footer */
    padding-bottom: 90px;
    direction: rtl;
    text-align: center;
}

.mnew-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mnew-footer-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--footer-accent, #0d6efd);
    box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.mnew-footer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: .02em;
}

.mnew-footer-divider {
    width: 48px;
    height: 3px;
    border-radius: 99px;
    background: var(--footer-accent, #0d6efd);
    margin: 0 auto 24px;
}

.mnew-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 340px;
    margin: 0 auto 28px;
}

.mnew-footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2a2a2a;
    border-radius: 14px;
    padding: 11px 16px;
    color: #ddd;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: background .18s, transform .15s;
}
.mnew-footer-link:hover {
    background: #333;
    transform: translateY(-2px);
    color: #fff;
}

.mnew-footer-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--footer-accent, #0d6efd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.mnew-footer-copy {
    font-size: .75rem;
    color: #555;
    margin: 0 0 20px;
}

.mnew-footer-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.mnew-footer-powered-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #444;
}

.mnew-footer-powered-text {
    font-size: .7rem;
    color: #444;
    letter-spacing: .04em;
    white-space: nowrap;
}

.mnew-footer-powered-text strong {
    color: #666;
    font-weight: 600;
    letter-spacing: .06em;
}

/* ========== CHECKOUT ACTIONS ========== */
.mnew-checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ========== WHATSAPP BUTTON ========== */
.mnew-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: #25d366;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.mnew-whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}
.mnew-whatsapp-btn i { font-size: 1.25rem; }

/* ========== LOCATION PICKER ========== */
.mnew-location-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mnew-location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px dashed #ccc;
    border-radius: 12px;
    background: #f8f8f8;
    color: #444;
    font-size: .88rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    flex-shrink: 0;
}
.mnew-location-btn:hover:not(:disabled) {
    border-color: #888;
    background: #f0f0f0;
}
.mnew-location-btn:disabled { opacity: .65; cursor: default; }

.mnew-location-preview {
    font-size: .8rem;
    color: #1a73e8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.mnew-location-preview:hover { text-decoration: underline; }

.mnew-location-error {
    font-size: .78rem;
    color: #dc3545;
    width: 100%;
}

/* =========================================================
   Performance-Friendly Visual Refresh
   ========================================================= */
:root {
    --mnew-bg-soft: #f7f5f0;
    --mnew-surface: #ffffff;
    --mnew-ink: #1b2430;
    --mnew-muted: #6d7684;
    --mnew-glow: rgba(218, 95, 0, 0.20);
    --mnew-shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.10);
    --mnew-shadow-card: 0 8px 24px rgba(17, 24, 39, 0.11);
}

.mnew-app {
    background:
        radial-gradient(980px 420px at 105% -8%, var(--mnew-glow), transparent 58%),
        radial-gradient(720px 300px at -10% 18%, rgba(255,255,255,.88), transparent 62%),
        var(--mnew-bg-soft);
    color: var(--mnew-ink);
}

.mnew-topbar {
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(13, 19, 31, 0.08);
    box-shadow: 0 7px 26px rgba(13, 19, 31, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mnew-topbar-name {
    letter-spacing: .01em;
    color: #161d27;
}

.mnew-topbar-logo {
    border-color: rgba(14, 20, 32, 0.10);
    box-shadow: 0 3px 10px rgba(13, 19, 31, 0.12);
}

.mnew-topbar-search-btn,
.mnew-topbar-orders-btn,
.mnew-topbar-social-link {
    background: #f3f4f6;
    border: 1px solid rgba(13, 19, 31, 0.06);
}

.mnew-topbar-search-btn:hover,
.mnew-topbar-orders-btn:hover {
    background: #e9edf2;
}

.mnew-hero {
    box-shadow: var(--mnew-shadow-soft);
    border-radius: 0 0 18px 18px;
    isolation: isolate;
}

.mnew-slide-img {
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1.01);
    transition: transform 5.4s linear;
}

.mnew-slide.active .mnew-slide-img {
    transform: translateZ(0) scale(1.07);
}

.mnew-slide-caption {
    bottom: 30px;
}

.mnew-slide-label {
    font-size: clamp(.98rem, 1.8vw, 1.15rem);
    font-weight: 800;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.32);
    background: linear-gradient(145deg, rgba(14, 20, 33, .34), rgba(14, 20, 33, .76));
    box-shadow: 0 8px 22px rgba(5, 8, 14, .35);
    padding: 11px 18px;
    animation: mnew-caption-in .42s ease both;
}

.mnew-slide-badge {
    background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.12));
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 4px 12px rgba(0,0,0,.22);
}

.mnew-slide-nav {
    border-color: rgba(255,255,255,.52);
    background: rgba(12, 18, 28, .36);
    box-shadow: 0 6px 18px rgba(6, 10, 17, .28);
}

.mnew-slide-nav:hover {
    background: rgba(12, 18, 28, .58);
}

.mnew-slide-dot {
    border: 1px solid rgba(255,255,255,.45);
}

.mnew-main {
    padding-top: 20px;
}

.mnew-card {
    background: var(--mnew-surface);
    border: 1px solid rgba(14, 20, 32, 0.06);
    box-shadow: var(--mnew-shadow-card);
    transform: translateZ(0);
    animation: mnew-card-in .45s ease both;
}

.mnew-card:nth-child(2)  { animation-delay: .02s; }
.mnew-card:nth-child(3)  { animation-delay: .04s; }
.mnew-card:nth-child(4)  { animation-delay: .06s; }
.mnew-card:nth-child(5)  { animation-delay: .08s; }
.mnew-card:nth-child(6)  { animation-delay: .10s; }
.mnew-card:nth-child(7)  { animation-delay: .12s; }
.mnew-card:nth-child(8)  { animation-delay: .14s; }

.mnew-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.16);
}

.mnew-card-img {
    transform: translateZ(0);
    transition: transform .42s ease;
}

.mnew-card:hover .mnew-card-img {
    transform: scale(1.035);
}

.mnew-card-name {
    color: #121a25;
}

.mnew-card-desc {
    color: var(--mnew-muted);
}

.mnew-add-btn,
.mnew-add-btn-sm,
.mnew-confirm-btn,
.mnew-checkout-confirm-btn {
    background: linear-gradient(135deg, var(--mnew-primary, #DA5F00), #bf5400);
    box-shadow: 0 6px 14px rgba(218, 95, 0, 0.25);
}

.mnew-whatsapp-btn {
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.22);
}

.mnew-cart-bar {
    background: linear-gradient(140deg, var(--mnew-primary, #DA5F00), #b94c00);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 10px 28px rgba(20, 11, 4, 0.30);
}

.mnew-cart-bar:hover {
    transform: translateX(-50%) translateY(-1px);
}

@keyframes mnew-caption-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes mnew-card-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Accessibility + performance guardrail for low-motion environments */
@media (prefers-reduced-motion: reduce) {
    .mnew-app *,
    .mnew-app *::before,
    .mnew-app *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .mnew-slide.active .mnew-slide-img,
    .mnew-card,
    .mnew-card:hover,
    .mnew-cart-bar:hover {
        transform: none !important;
    }
}
