/* ---- MENU PAGE: white navbar ---- */
.page-menu .navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.page-menu .navbar-inner {
    background: #fff !important;
    border-bottom: none;
}
.page-menu .nav-link {
    color: #222;
}
.page-menu .nav-link:hover,
.page-menu .nav-link.active {
    color: #EB4800;
}
.page-menu .nav-link.highlight {
    color: #EB4800;
}
.page-menu .hamburger span {
    background-color: #222;
}
.page-menu .cart-icon svg {
    color: #222;
}
.page-menu #cartBadge {
    background: #EB4800;
}

/* ============================================
   JOKER BURGER - MENU PAGE STYLES
   ============================================ */

/* ---- PAGE LAYOUT ---- */
.page-menu {
    background: #fff;
    min-height: 100vh;
}

.menu-page-wrapper {
    display: flex;
    padding-top: 134px; /* navbar height */
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
}

/* ---- SIDEBAR ---- */
.menu-sidebar {
    width: 120px;
    flex-shrink: 0;
    padding: 16px 0;
    border-right: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 134px;
    height: calc(100vh - 134px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 8px;
    transition: all 0.2s;
    color: #888;
}

.sidebar-item:hover {
    background: #fff5ee;
    color: #EB4800;
}

.sidebar-item.active {
    background: #fff5ee;
    color: #EB4800;
}

.sidebar-item.active .sidebar-icon svg {
    stroke: #EB4800;
}

.sidebar-item:hover .sidebar-icon svg {
    stroke: #EB4800;
}

.sidebar-icon svg {
    stroke: #888;
    transition: stroke 0.2s;
}

.sidebar-item.active .sidebar-icon svg,
.sidebar-item:hover .sidebar-icon svg {
    stroke: #EB4800;
}

.sidebar-label {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

/* ---- MAIN CONTENT ---- */
.menu-main {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

/* ---- SECTION HEADER ---- */
.menu-section {
    display: none;
}
.menu-section.active {
    display: block;
}

.section-header {
    margin-bottom: 28px;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 .fire-icon {
    font-size: 22px;
}

.section-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #777;
    max-width: 600px;
    line-height: 1.5;
}

/* ---- BURGER GRID ---- */
.burger-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.burger-card {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.burger-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    border-color: #EB4800;
}

.burger-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
}

.burger-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.burger-card:hover .burger-card-img img {
    transform: scale(1.05);
}

.burger-card-body {
    padding: 10px 10px 12px;
    text-align: center;
}

.burger-num-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.3;
}

.burger-price {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #EB4800;
}

/* ---- LIST ITEMS (wraps, snacks, dranken) ---- */
.list-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.list-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
}

.list-item-card:hover {
    background: #fffaf7;
}

.list-item-img {
    width: 72px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-img.drink-img {
    background: #f6f6f6;
}

.list-item-img.drink-img img {
    object-fit: contain;
    padding: 6px;
}

.list-item-info {
    flex: 1;
    min-width: 0;
}

.list-item-num {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #222;
    line-height: 1.4;
}

.list-item-num strong {
    font-weight: 700;
}

.list-item-desc,
.list-item-sub {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.list-item-price {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #EB4800;
    flex-shrink: 0;
    margin-right: 12px;
}

.btn-add-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EB4800;
    color: #fff;
    border: none;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.1s;
    line-height: 1;
}

.btn-add-round:hover {
    background: #c93e00;
    transform: scale(1.08);
}

/* ---- FLOATING CART ---- */
.floating-cart-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #EB4800;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(235, 72, 0, 0.45);
    z-index: 900;
    transition: all 0.2s;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.floating-cart-btn.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.floating-cart-btn:hover {
    background: #c93e00;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(235, 72, 0, 0.55);
}

.floating-cart-count {
    background: #fff;
    color: #EB4800;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

/* ---- ITEM DETAIL MODAL ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.item-modal {
    background: #fff;
    border-radius: 16px;
    width: 92%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.25s;
}

.modal-overlay.open .item-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,0.12);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #333;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.22);
}

.modal-fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.12);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

.modal-fav-btn:hover {
    background: rgba(0,0,0,0.22);
}

.modal-fav-btn.active {
    color: #EB4800;
}

.modal-fav-btn.active svg {
    fill: #EB4800;
}

.item-modal-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #f8f8f8;
}

.item-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-modal-body {
    padding: 20px 24px;
    flex: 1;
}

.item-modal-body h2 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
    text-align: center;
}

.modal-price {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #EB4800;
    text-align: center;
    margin-bottom: 10px;
}

.modal-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Toppings row */
.toppings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.topping-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    color: #555;
}

.topping-chip-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    overflow: hidden;
}

.topping-chip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Order type */
.order-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.order-type-options {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.order-type-option {
    flex: 1;
    cursor: pointer;
}

.order-type-option input {
    display: none;
}

.order-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    position: relative;
}

.order-type-option input:checked + .order-type-card,
.order-type-option.active .order-type-card {
    border-color: #EB4800;
    background: #fff8f5;
}

.order-type-name {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.order-type-sub {
    font-size: 11px;
    color: #888;
    text-align: center;
    line-height: 1.3;
}

.order-type-price {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #EB4800;
}

.menu-extra-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #EB4800;
    letter-spacing: 0.3px;
}

.menu-icons {
    font-size: 18px;
}

/* Drinks section */
.drink-section {
    margin-bottom: 20px;
}

.drink-options {
    display: flex;
    gap: 10px;
}

.drink-option {
    flex: 1;
    cursor: pointer;
}

.drink-option input {
    display: none;
}

.drink-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    transition: all 0.2s;
}

.drink-option input:checked + .drink-card {
    border-color: #EB4800;
    background: #fff8f5;
}

.drink-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Extras */
.extras-section {
    margin-bottom: 8px;
}

.extras-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.extra-item input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #EB4800;
    cursor: pointer;
    flex-shrink: 0;
}

.extra-name {
    flex: 1;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #222;
}

.extra-price {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #EB4800;
}

/* Modal footer */
.item-modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 0 0 16px 16px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    width: 36px;
    height: 44px;
    background: none;
    border: none;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    color: #EB4800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #fff5ee;
}

.qty-val {
    min-width: 32px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.btn-add-to-cart {
    flex: 1;
    background: #EB4800;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-to-cart:hover {
    background: #c93e00;
}

/* ---- CART PANEL ---- */
/* Cart styles → cart-shared.css */

.page-menu .mobile-menu {
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.page-menu .mobile-nav-link {
    color: #222;
    border-bottom: 1px solid #f0f0f0;
}

.page-menu .mobile-nav-link:hover,
.page-menu .mobile-nav-link.active {
    color: #EB4800;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .burger-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .burger-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .menu-main {
        padding: 24px 24px;
    }
}

@media (max-width: 768px) {
    .menu-page-wrapper {
        flex-direction: column;
        padding-top: 128px;
    }

    .menu-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        position: sticky;
        top: 128px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        z-index: 100;
        scrollbar-width: none;
        gap: 0;
    }

    .menu-sidebar::-webkit-scrollbar {
        display: none;
    }

    .sidebar-item {
        flex-direction: row;
        gap: 8px;
        padding: 14px 16px;
        border-radius: 0;
        margin: 0;
        white-space: nowrap;
        border-bottom: 3px solid transparent;
        min-width: max-content;
    }

    .sidebar-item.active {
        background: transparent;
        border-bottom-color: #EB4800;
    }

    .sidebar-label {
        font-size: 11px;
    }

    .menu-main {
        padding: 20px 16px;
    }

    .burger-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .floating-cart-btn {
        bottom: 16px;
        right: 16px;
        padding: 12px 16px;
    }

    .cart-panel {
        width: 100vw;
    }
}

@media (max-width: 480px) {
    .burger-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .order-type-options {
        flex-direction: column;
    }

    .item-modal-footer {
        flex-wrap: wrap;
    }

    .btn-add-to-cart {
        font-size: 12px;
    }
}

/* Hide add btn on desktop */
.burger-card-add-btn { display: none; }

/* ============================================
   MOBILE APP-STYLE OVERRIDES (≤768px)
   Match the app mockup design
   ============================================ */

@media (max-width: 768px) {

    /* Show add btn on mobile */
    .burger-card-add-btn { display: flex; }

    /* Burger grid → vertical list on mobile */
    .burger-grid {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }

    .burger-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #f2f2f2;
        padding: 12px 0;
        gap: 14px;
        background: #fff;
    }

    .burger-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #f2f2f2;
    }

    .burger-card-img {
        width: 72px;
        height: 72px;
        border-radius: 10px;
        flex-shrink: 0;
        aspect-ratio: 1/1;
    }

    .burger-card-body {
        flex: 1;
        text-align: left;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .burger-num-name {
        font-family: 'Oswald', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: #111;
    }

    .burger-price {
        font-size: 15px;
        font-weight: 700;
        color: #EB4800;
    }

    /* + button on mobile burger cards */
    .burger-card-add-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #EB4800;
        color: #fff;
        font-size: 22px;
        font-weight: 300;
        line-height: 1;
        flex-shrink: 0;
        margin-right: 4px;
        box-shadow: 0 2px 8px rgba(235,72,0,0.3);
        border: none;
        cursor: pointer;
        transition: background 0.2s, transform 0.15s;
    }
    .burger-card-add-btn:hover {
        background: #d43f00;
        transform: scale(1.1);
    }

    /* List items stay as is but ensure proper spacing */
    .list-item-card {
        padding: 12px 0;
    }

    /* Section header */
    .section-header {
        padding: 0 0 16px 0;
        margin-bottom: 0;
        border-bottom: 2px solid #f0f0f0;
    }

    .section-header h2 {
        font-size: 20px;
    }

    /* Menu main padding */
    .menu-main {
        padding: 16px 16px 0;
    }
}

/* ============================================
   CART PANEL MOBILE - override menu.css old styles
   ============================================ */
@media (max-width: 768px) {
    /* Remove old conflicting cart styles */
    .cart-panel {
        width: 100vw !important;
    }
}

/* ============================================
   UITVERKOCHT (sold out) STYLING
   ============================================ */
.sold-out-badge{
    position:absolute; top:8px; left:8px;
    background:#e23434; color:#fff;
    font-size:.68rem; font-weight:700; letter-spacing:.3px;
    padding:4px 10px; border-radius:20px;
    z-index:5; text-transform:uppercase;
}
.burger-card-img, .list-item-img{ position:relative; }
.burger-card.is-sold-out, .list-item-card.is-sold-out{
    cursor:not-allowed;
}
.burger-card.is-sold-out .burger-card-img img,
.list-item-card.is-sold-out .list-item-img img{
    filter: grayscale(70%);
    opacity:0.55;
}
.burger-card.is-sold-out .burger-card-add-btn,
.list-item-card.is-sold-out .btn-add-round{
    background:#ccc !important;
    cursor:not-allowed;
    pointer-events:none;
}
.burger-card.is-sold-out .burger-price,
.list-item-card.is-sold-out .list-item-price{
    opacity:0.5;
}
