/* =========================================================
   MENU PAGINA – LAYOUT
   ====================================================== */

.menu-page {
    padding-block: 1.5rem 3rem;
    max-width: 1200px;
    margin-inline: auto;
}

.menu-header {
    margin-bottom: 1.5rem;
}

.menu-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 .35rem;
}

.menu-subtitle {
    margin: 0;
    color: var(--muted);
}

/* root-container voor de secties */
.menu-root {
    width: 100%;
}

/* =========================================================
   MENU SECTIES + GRID
   ====================================================== */

.menu-section {
    padding-block: 1.5rem 2.25rem;
}

.menu-section__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.menu-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 720px) {
    .menu-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MENU NAV – DESKTOP/TABLET
   ====================================================== */

.menu-nav {
    position: sticky;
    top: 4rem; /* onder de hoofd-header (.nav) op desktop */
    z-index: 20;
    background: rgba(15,15,16,.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding-block: .55rem;
    margin-bottom: 1rem;
}

.menu-nav__inner {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* chip-links (desktop/tablet) */
.menu-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-nav__list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: #151515;
    border: 1px solid #232323;
    color: #f5f5f5;
    font-size: .9rem;
    white-space: nowrap;
    transition:
        background .15s ease,
        border .15s ease,
        transform .05s ease;
}

.menu-nav__list a:hover {
    background: #1d1d1d;
    transform: translateY(-1px);
}

.menu-nav__list a.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* dropdown-wrapper standaard uit op desktop */
.menu-nav__select-wrapper {
    display: none;
}

/* =========================================================
   MENU NAV – MOBIEL (DROPDOWN)
   ====================================================== */

@media (max-width: 640px) {
    .menu-nav {
        position: sticky;
        top: 0; /* op mobiel is header niet fixed, dus direct tegen bovenkant */
        z-index: 20;
        background: rgba(15,15,16,.96);
        border-bottom: 1px solid var(--line);
        padding-block: .35rem;
        margin-bottom: .75rem;
    }

    /* chips uit op mobiel */
    .menu-nav__list {
        display: none !important;
    }

    /* dropdown aan */
    .menu-nav__select-wrapper {
        display: block;
        width: 100%;
    }

    #menu-category-select {
        width: 100%;
        padding: .5rem .9rem;
        border-radius: 999px;
        background: #121315;
        border: 1px solid var(--line);
        color: var(--fg);
        font-size: .9rem;
        line-height: 1.4;
        appearance: none;

        /* chevron rechts */
        background-image:
            linear-gradient(45deg, #fff 50%, transparent 50%),
            linear-gradient(135deg, #fff 50%, transparent 50%);
        background-position:
            calc(100% - 1.3rem) 50%,
            calc(100% - .9rem) 50%;
        background-size: 6px 6px;
        background-repeat: no-repeat;
    }

    #menu-category-select:focus-visible {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(228,61,48,.25);
        outline: none;
    }
}

/* =========================================================
   MENU CARDS
   ====================================================== */

.menu-card {
    background-color: #101010;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    border: 1px solid #212121;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        border-color 0.12s ease,
        background-color 0.12s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
    border-color: #2f2f2f;
    background-color: #141414;
}

.menu-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.menu-card__desc {
    margin: 0.1rem 0 0.25rem;
    font-size: 0.9rem;
    color: #c4c4c4;
}

.menu-card__price {
    margin: 0.1rem 0 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

/* =========================================================
   MODAL (MENU ITEM DETAILS)
   ====================================================== */

/* Body locken wanneer menu-modal open is (ook iOS-proof) */
body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    touch-action: none;
}

/* voorkom scroll-chaining naar de achtergrond */
.menu-modal,
.menu-modal__dialog,
.menu-modal__options {
    overscroll-behavior: contain;
}


.menu-modal[hidden] {
    display: none;
}

.menu-modal {
   position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;   /* midden in beeld */
    justify-content: center;
    padding: 0;            /* GEEN ruimte rond de popup -> geen kader */
}

.menu-modal__backdrop {
    position: absolute;
    inset: 0;
background: #000;}

/* === DEZE DIALOOG IS DE ENIGE SCROLLCONTAINER === */
.menu-modal__dialog {
    position: relative;
    width: min(90vw, 520px);
    max-height: 90vh;
    background: #111;
    border-radius: 12px;
    padding: 1.4rem 1.5rem 1.2rem;
    box-shadow: 0 18px 60px rgba(0,0,0,.85);
    z-index: 1;

    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


.menu-modal__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    font-size: 1.4rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.menu-modal__title {
    margin: 0 0 .35rem;
    font-size: 1.4rem;
    font-weight: 650;
}

.menu-modal__desc {
    margin: 0 0 .6rem;
    font-size: .95rem;
    color: #ccc;
}

.menu-modal__price {
    margin: 0 0 1.2rem;
    font-size: 1.05rem;
    font-weight: 650;
}

/* =========================================================
   OPTIE-GROEPEN – GEEN SCROLL, ALLES OPEN, POPUP GROEIT
   ====================================================== */

.menu-modal__options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.4rem;

    /* GEEN scroll hier */
}

/* Optiegroep-kaart */
.opt-details {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
}

/* Header */
.opt-details > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem .95rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    list-style: none;
}

.opt-details > summary::after {
    content: "▾";
    font-size: .8rem;
    opacity: .8;
}

.opt-details[open] > summary::after {
    content: "▴";
}

/* Binnenkant van opties */
.opt-group {
    padding: .55rem .95rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;

    /* GEEN max-height, GEEN scroll */
}

.opt-group label {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .65rem;
    border-radius: .65rem;
    background: #191919;
    border: 1px solid #2b2b2b;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
}

.opt-group label:hover {
    background: #1f1f1f;
    border-color: var(--brand);
}

.opt-group input[type="radio"],
.opt-group input[type="checkbox"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid #3a3a3a;
    background: #0f0f0f;
    position: relative;
    flex-shrink: 0;
}

.opt-group input[type="checkbox"] {
    border-radius: .25rem;
}

.opt-group input[type="radio"]::after,
.opt-group input[type="checkbox"]::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: transparent;
    border-radius: inherit;
}

.opt-group input:checked {
    border-color: var(--brand);
    background: #1a0a09;
}

.opt-group input:checked::after {
    background: var(--brand);
}

/* =========================================================
   SPECIALE WENSEN + ACTIES
   ====================================================== */

.menu-modal__special {
    margin-bottom: 1.2rem;
}

.menu-modal__special label {
    font-size: .9rem;
    font-weight: 500;
    display: block;
    margin-bottom: .4rem;
}

.menu-modal__special textarea {
    width: 100%;
    min-height: 3rem;
    resize: vertical;
    padding: .7rem .85rem;
    border-radius: .65rem;
    background: #121315;
    border: 1px solid #2b2b2b;
    color: #fff;
}

/* knoppen onderaan blijven altijd */
.menu-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: auto; /* duwt knoppen naar onder */
	  /* BELANGRIJK */
    margin-bottom: 5rem;  /* ruimte onderaan voor iPhone balk */
}

/* =========================================================
   MOBIEL
   ====================================================== */
@media (max-width: 600px) {
    .menu-modal {
        padding: 0;
        align-items: stretch;
    }

    .menu-modal__dialog {
        border-radius: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
    }
}
.opt-details,
.opt-group,
.opt-details:focus,
.opt-details summary:focus,
.opt-group:focus,
.opt-details[open] {
    outline: none !important;
    box-shadow: none !important;
	border: none;
} @supports (-webkit-touch-callout: none) {
    /* iPhone/iOS detectie */
    .menu-modal__special textarea,
    .opt-group input,
    .opt-group label,
    .opt-group label span {
        font-size: 16px !important;
    }
}

