/* Shared dialog styling */
#menu-dialog,
#dish-dialog {
    border: 0;
    padding: 0;
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 30px 100px #0006;
}

/* Full-screen menu dialog */
#menu-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    overflow: auto;
}

/* Dim and blur the page behind open dialogs */
dialog::backdrop {
    background: #081a44bb;
    backdrop-filter: blur(7px);
}

/* Animate dialogs when they open */
dialog[open] {
    animation: menu-enter 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Sticky menu header */
.menu-top {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 4%;
    background: var(--blue);
    color: var(--cream);
}

.menu-brand {
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.menu-top-note {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

/* Dialog close buttons */
.close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 20px;
    padding: 7px 17px;
    border: 1px solid currentColor;
    border-radius: 30px;
    background: none;
    font-size: 1.7rem;
    line-height: 1.2;
}

.close span {
    font-size: 0.8rem;
}

.close:hover {
    background: #ffffff20;
}

/* Menu category sidebar and dish browser layout */
.menu-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    max-width: 1600px;
    margin: 0 auto;
}

.menu-sidebar {
    position: sticky;
    top: 86px;
    align-self: start;
    max-height: calc(100dvh - 86px);
    overflow: auto;
    padding: 45px 30px;
    border-right: 1px solid var(--line);
}

.menu-sidebar > .eyebrow {
    color: var(--muted);
    font-size: 0.6rem;
}

.menu-sidebar h2 {
    margin: 15px 0 32px;
    font-size: 4rem;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    text-align: left;
    font-size: 0.88rem;
    transition: color 0.2s, padding 0.2s;
}

.category[aria-pressed="true"] {
    padding-left: 12px;
    border-left: 3px solid var(--blue);
    color: var(--blue);
    font-weight: 750;
}

.sidebar-note {
    margin: 45px 0 10px;
    color: #7b8495;
    font: italic 1.6rem/1.2 var(--display);
}

.menu-browser {
    min-width: 0;
    padding: 40px 4%;
}

/* Menu search field */
.menu-search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.menu-search-row label {
    font: 1.8rem/1.2 var(--display);
    letter-spacing: -0.04em;
}

#menu-search {
    width: 270px;
    max-width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.9rem;
}

#menu-search::placeholder {
    color: var(--muted);
}

.price-note {
    margin: 18px 0 28px;
    color: var(--muted);
    font-size: 0.78rem;
}

/* Menu dish cards */
.dish-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dish-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--line);
    background: #fffaf1;
    transition: box-shadow 0.3s, transform 0.3s;
}

.dish-card:hover {
    box-shadow: 0 10px 25px #112b5610;
    transform: translateY(-3px);
}

/* Dish image preview in each menu card */
.dish-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1.2;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #e2eaf1;
    color: var(--cream);
}

.dish-preview img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    transition: transform 0.5s;
}

.dish-preview:hover img {
    transform: scale(1.04);
}

.preview-caption {
    position: absolute;
    bottom: 12px;
    left: 13px;
    padding: 4px 8px;
    background: var(--cream);
    color: var(--ink);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

/* Text artwork shown when a dish has no photo */
.dish-typography {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 1.4;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 25px 20px;
    border: 0;
    background: var(--blue);
    color: var(--cream);
    text-align: left;
}

.dish-typography .dish-index {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.dish-typography .dish-title-art {
    max-width: 90%;
    overflow-wrap: anywhere;
    font: italic 2rem/0.97 var(--display);
    letter-spacing: -0.05em;
}

.dish-typography .preview-plus {
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-size: 1.3rem;
}

.dish-card:nth-child(3n + 2) .dish-typography {
    background: #dce7e3;
    color: var(--deep);
}

.dish-card:nth-child(3n + 3) .dish-typography {
    background: #173364;
}

/* Dish title, category, price, and action */
.dish-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.dish-category {
    color: var(--muted);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dish-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
}

.dish-heading h3 {
    margin: 0;
    font: 400 1.35rem/1.1 var(--display);
    letter-spacing: -0.03em;
}

.price {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.dish-copy p {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.card-actions {
    margin-top: auto;
}

.card-actions button {
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid var(--blue);
    background: none;
    color: var(--blue);
    font-size: 0.75rem;
}

/* Prevent the page behind the menu from scrolling */
body.menu-open {
    overflow: hidden;
}

/* Dish details dialog */
#dish-dialog {
    width: min(900px, 92vw);
    max-width: 92vw;
    height: auto;
    max-height: 90dvh;
    overflow: auto;
}

.detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 25px;
}

.detail-top .eyebrow {
    margin: 0;
    font-size: 0.65rem;
}

.detail-top .close {
    color: var(--ink);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 30px 35px;
}

.detail-layout.no-media {
    grid-template-columns: 1fr;
}

/*
 * Bright blue backdrop behind the opened dish photo.
 * The gradient adds depth without introducing the yellow cast.
 */
.detail-media {
    display: grid;
    min-width: 0;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 18%, #ffffff35, transparent 35%),
        linear-gradient(135deg, #2f74ff 0%, #1749b5 60%, #0d2c70 100%);
}

/* Keep the complete dish photo visible without cropping */
.detail-media > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    aspect-ratio: 1 / 1;
    padding: clamp(16px, 3vw, 36px);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 14px 18px #071d5650);
}

/* Dish details text */
.detail-copy {
    align-self: center;
    padding: 20px 0;
}

.detail-copy .small-label {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.6rem;
}

.detail-copy h2 {
    margin: 0 0 22px;
    font-size: 3rem;
    line-height: 1;
}

.detail-copy > p {
    color: var(--muted);
    font-size: 0.95rem;
}

.detail-copy .price-note,
.detail-note {
    font-size: 0.78rem;
}

.detail-copy .dark-button {
    margin-bottom: 18px;
}

#dish-price {
    font-size: 1.6rem;
    font-weight: 400;
}

/* 3D and AR viewer messages and controls */
#viewer-status {
    margin: 0;
    padding: 15px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

#show-photo {
    display: flex;
    margin-bottom: 18px;
}

model-viewer {
    width: 100%;
    height: 400px;
}

/* Empty search results */
#no-results {
    margin-top: 40px;
    font-family: var(--display);
    font-size: 1.5rem;
}

/* Menu dialog entrance animation */
@keyframes menu-enter {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Tablet layout */
@media (max-width: 1200px) {
    .dish-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-layout {
        grid-template-columns: 230px 1fr;
    }

    .menu-search-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    #menu-search {
        width: 100%;
    }
}

/* Mobile layout */
@media (max-width: 700px) {
    .menu-top {
        padding: 15px 5%;
    }

    .menu-brand {
        font-size: 0.95rem;
    }

    .menu-top-note {
        display: none;
    }

    .close {
        gap: 12px;
        padding: 6px 12px;
    }

    .menu-layout {
        display: block;
    }

    .menu-sidebar {
        position: static;
        max-height: none;
        padding: 25px 5% 0;
        border: 0;
    }

    .menu-sidebar > .eyebrow,
    .sidebar-note {
        display: none;
    }

    .menu-sidebar h2 {
        margin: 0 0 20px;
        font-size: 3rem;
    }

    .menu-sidebar h2 br {
        display: none;
    }

    .categories {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .category {
        padding: 9px 12px;
        border: 1px solid var(--line);
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .category[aria-pressed="true"] {
        padding-left: 12px;
        border: 1px solid var(--blue);
        background: var(--blue);
        color: var(--cream);
    }

    .menu-browser {
        padding: 20px 5% 35px;
    }

    .menu-search-row label {
        font-size: 1.4rem;
    }

    .dish-list {
        gap: 12px;
    }

    .dish-copy {
        padding: 14px;
    }

    .dish-heading {
        display: block;
    }

    .dish-heading h3 {
        margin-bottom: 8px;
        font-size: 1.25rem;
    }

    .dish-copy p {
        font-size: 0.8rem;
    }

    .dish-typography {
        aspect-ratio: 0.95;
        padding: 17px 13px;
    }

    .dish-typography .dish-title-art {
        max-width: 95%;
        font-size: 1.7rem;
    }

    .dish-preview {
        aspect-ratio: 0.95;
    }

    .dish-typography .preview-plus {
        right: 10px;
        bottom: 9px;
        font-size: 1rem;
    }

    .preview-caption {
        bottom: 7px;
        left: 7px;
        font-size: 0.5rem;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 22px 25px;
    }

    .detail-top {
        padding: 18px 20px;
    }

    .detail-media > img {
        max-height: 290px;
    }

    .detail-copy h2 {
        font-size: 2.4rem;
    }

    .detail-copy {
        padding-top: 15px;
    }

    model-viewer {
        height: 300px;
    }

    .price-note {
        font-size: 0.72rem;
    }
}

/* Small phone layout */
@media (max-width: 380px) {
    .dish-list {
        grid-template-columns: 1fr;
    }

    .dish-typography,
    .dish-preview {
        aspect-ratio: 1.8;
    }

    .dish-typography .dish-title-art {
        max-width: 80%;
        font-size: 2rem;
    }
}

/* Respect reduced-motion accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    dialog[open],
    .dish-card,
    .dish-preview img {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   CUSTOMER ORDERING: MENU HERO, CATEGORY RAIL, AND CART
   ============================================================ */

/* Admin-managed, responsive 16:9 image/video carousel. */
.menu-hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 6px solid var(--yellow);
    background: var(--deep);
}

.menu-hero-track,
.menu-hero-slide {
    position: absolute;
    inset: 0;
}

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

.menu-hero-slide img,
.menu-hero-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-hero-slide::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(0deg, #06142fe0, transparent);
    content: "";
    pointer-events: none;
}

.menu-hero-heading {
    position: absolute;
    z-index: 1;
    bottom: clamp(35px, 6vw, 76px);
    left: clamp(20px, 5vw, 72px);
    max-width: min(760px, 78%);
    color: #fff;
    font: 900 clamp(2rem, 6vw, 5.8rem) / 0.92 Impact, "Arial Black", Arial, sans-serif;
    text-shadow: 3px 3px 0 var(--red);
    text-transform: uppercase;
}

.menu-hero-controls {
    position: absolute;
    z-index: 2;
    right: clamp(14px, 4vw, 50px);
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.menu-hero-controls button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 1.2rem;
}

.menu-hero-controls button:hover {
    background: var(--red);
}

/* High-contrast category strip below the carousel. */
.menu-category-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px 4%;
    border-bottom: 4px solid var(--red);
    background: var(--yellow);
}

.menu-category-bar h2 {
    flex: 0 0 190px;
    margin: 0;
    color: var(--deep);
    font: 900 2rem / 0.92 Impact, "Arial Black", Arial, sans-serif;
    text-transform: uppercase;
}

.menu-category-bar h2 em {
    color: var(--red);
    font-style: normal;
}

.menu-category-bar .categories {
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: 9px;
    overflow-x: auto;
    padding: 5px 2px;
    scrollbar-width: thin;
}

.menu-category-bar .category {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 2px solid var(--deep);
    border-radius: 999px;
    background: #fff;
    color: var(--deep);
    font-weight: 900;
    white-space: nowrap;
}

.menu-category-bar .category[aria-pressed="true"] {
    padding-left: 16px;
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    box-shadow: 3px 3px 0 var(--red);
}

.menu-browser {
    max-width: 1600px;
    margin: 0 auto;
}

/* Keep dish details and ordering actions clear and easy to tap. */
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.card-actions .add-to-cart {
    min-height: 42px;
    padding: 10px 13px;
    border: 2px solid var(--red);
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
}

.card-actions .add-to-cart:hover {
    border-color: var(--blue);
    background: var(--blue);
}

.card-actions .add-to-cart:disabled {
    border-color: #aebbd0;
    background: #e6eaf1;
    color: #5b6678;
    cursor: not-allowed;
}

/* Sticky cart summary stays reachable while the guest browses dishes. */
.order-cart {
    position: sticky;
    z-index: 5;
    bottom: 0;
    border-top: 4px solid var(--yellow);
    background: var(--deep);
    color: #fff;
    box-shadow: 0 -8px 24px #06152f30;
}

.order-cart-bar {
    display: flex;
    max-width: 1500px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
    padding: 12px 4%;
}

.order-cart-bar > span {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.order-cart-bar strong {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.order-cart-bar small {
    color: var(--yellow);
    font-size: 1.15rem;
    font-weight: 900;
}

.order-cart-bar button,
.checkout-form > button {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.order-cart-bar button:hover,
.checkout-form > button:hover:not(:disabled) {
    background: var(--blue);
}

.order-cart-details {
    max-height: 65dvh;
    overflow: auto;
    padding: 18px max(4%, calc((100% - 1000px) / 2)) 28px;
    background: #fff;
    color: var(--ink);
}

.cart-lines {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.cart-line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.cart-line > strong {
    color: var(--deep);
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cart-quantity button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--blue);
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font-weight: 900;
}

.cart-quantity button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cart-quantity span {
    min-width: 16px;
    text-align: center;
    font-weight: 900;
}

.cart-empty {
    color: var(--muted);
}

.checkout-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.checkout-form .eyebrow,
.checkout-form > button,
.checkout-form > small,
#checkout-message {
    grid-column: 1 / -1;
}

.checkout-form label {
    display: grid;
    gap: 5px;
    color: var(--deep);
    font-size: 0.7rem;
    font-weight: 900;
}

.checkout-form label span {
    color: var(--muted);
    font-weight: 400;
}

.checkout-form input:not([type="checkbox"]) {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #aebbd0;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
}

.checkout-form > button {
    justify-self: start;
}

.checkout-form > button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.checkout-form > small,
#checkout-message {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.checkout-form .checkout-consent {
    display: flex;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 9px;
    font-weight: 500;
}

.checkout-consent input {
    flex: 0 0 auto;
    width: 17px;
    min-height: 17px;
    accent-color: var(--blue);
}

/* Compact category rail and checkout on phones. */
@media (max-width: 700px) {
    .menu-category-bar {
        display: block;
        padding: 18px 5%;
    }

    .menu-category-bar h2 {
        margin-bottom: 12px;
        font-size: 1.8rem;
    }

    .menu-category-bar h2 br {
        display: none;
    }

    .menu-category-bar .categories {
        margin: 0 -5%;
        padding: 6px 5% 12px;
    }

    .menu-category-bar .category {
        padding: 8px 12px;
        font-size: 0.74rem;
    }

    .menu-category-bar .category[aria-pressed="true"] {
        padding-left: 12px;
    }

    .checkout-form {
        grid-template-columns: 1fr;
    }

    .checkout-form .eyebrow,
    .checkout-form > button,
    .checkout-form > small,
    #checkout-message,
    .checkout-form .checkout-consent {
        grid-column: auto;
    }

    .order-cart-bar {
        padding: 10px 5%;
    }

    .order-cart-details {
        padding: 16px 5% 22px;
    }

    .cart-line {
        grid-template-columns: 1fr auto;
        gap: 9px;
    }

    .cart-quantity {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-hero-slide,
    .menu-hero-controls button,
    .card-actions .add-to-cart {
        scroll-behavior: auto;
        transition: none !important;
    }
}
/* ============================================================
   PAPARIKAS CART — MATCH THE SITE'S BOLD COLOUR AND SHADOWS
   ============================================================ */
.order-cart {
    border-top: 6px solid var(--yellow);
    background: var(--blue);
    color: #fff;
    box-shadow: 0 -5px 0 var(--red), 0 -12px 28px #06152f35;
}

.order-cart-bar {
    max-width: 1500px;
    padding: 13px 4%;
}

.order-cart-bar > span {
    gap: 13px;
}

.order-cart-bar strong {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 7px 12px;
    border: 2px solid var(--yellow);
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .06em;
    box-shadow: 3px 3px 0 var(--deep);
    text-transform: uppercase;
}

.order-cart-bar small {
    color: var(--yellow);
    font: 900 clamp(1.2rem, 2.8vw, 1.65rem)/1 Impact, 'Arial Black', Arial, sans-serif;
    letter-spacing: .015em;
    white-space: nowrap;
}

.order-cart-bar button {
    min-height: 46px;
    padding: 10px 18px;
    border: 2px solid var(--deep);
    border-radius: 4px;
    background: var(--yellow);
    color: var(--deep);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .055em;
    box-shadow: 4px 4px 0 var(--red);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.order-cart-bar button:hover {
    transform: translate(2px, 2px);
    background: #fff;
    box-shadow: 2px 2px 0 var(--red);
}

.order-cart-bar button:focus-visible,
.cart-quantity button:focus-visible,
.checkout-form > button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.order-cart-details {
    max-width: 100%;
    max-height: 68dvh;
    padding: 22px max(4%, calc((100% - 1120px) / 2)) 30px;
    border-top: 5px solid var(--red);
    background: var(--cream);
    color: var(--ink);
}

.cart-lines {
    gap: 11px;
    margin-bottom: 22px;
}

.cart-line {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    padding: 13px 15px;
    border: 2px solid var(--deep);
    border-left: 7px solid var(--red);
    border-radius: 5px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--yellow);
}

.cart-line > strong {
    color: var(--deep);
    font-size: .9rem;
    line-height: 1.3;
}

.cart-quantity {
    gap: 10px;
}

.cart-quantity button {
    width: 34px;
    height: 34px;
    border: 2px solid var(--blue);
    border-radius: 4px;
    background: var(--yellow);
    color: var(--deep);
    box-shadow: 2px 2px 0 var(--red);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.cart-quantity button:hover:not(:disabled) {
    transform: translate(1px, 1px);
    background: #fff;
    box-shadow: 1px 1px 0 var(--red);
}

.cart-quantity button:disabled {
    border-color: #aebbd0;
    background: #e6eaf1;
    box-shadow: none;
}

.cart-quantity span {
    color: var(--deep);
    font-variant-numeric: tabular-nums;
}

.cart-empty {
    margin: 0;
    padding: 16px;
    border: 2px dashed var(--blue);
    border-radius: 5px;
    background: var(--yellow);
    color: var(--deep);
    font-weight: 800;
    text-align: center;
}

.checkout-form {
    gap: 14px;
    padding: clamp(16px, 3vw, 26px);
    border: 3px solid var(--deep);
    border-top: 7px solid var(--yellow);
    border-radius: 6px;
    background: #fff;
    box-shadow: 6px 6px 0 var(--red);
}

.checkout-form .eyebrow {
    width: fit-content;
    margin: 0 0 3px;
    padding: 8px 11px;
    border-radius: 3px;
    background: var(--blue);
    color: #fff;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.checkout-form label {
    gap: 6px;
    color: var(--deep);
    font-size: .73rem;
    font-weight: 900;
}

.checkout-form input:not([type='checkbox']),
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 2px solid #bdc9da;
    border-radius: 4px;
    background: #fffdf7;
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
}

.checkout-form textarea {
    min-height: 88px;
    resize: vertical;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    border-color: var(--blue);
    outline: 3px solid #0756d928;
}

.checkout-form .checkout-consent {
    padding: 12px;
    border: 1px solid #f2d64b;
    border-radius: 4px;
    background: #fff8d6;
    color: var(--ink);
    line-height: 1.45;
}

.checkout-consent input {
    margin-top: 2px;
    accent-color: var(--red);
}

.checkout-form > button {
    min-height: 50px;
    padding: 12px 20px;
    border: 2px solid var(--deep);
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .055em;
    box-shadow: 5px 5px 0 var(--yellow);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.checkout-form > button:hover:not(:disabled) {
    transform: translate(2px, 2px);
    background: var(--blue);
    box-shadow: 3px 3px 0 var(--yellow);
}

.checkout-form > button:disabled {
    box-shadow: none;
}

.checkout-form > small,
#checkout-message {
    line-height: 1.55;
}

@media (max-width: 700px) {
    .order-cart {
        border-top-width: 5px;
    }

    .order-cart-bar {
        gap: 10px;
        padding: 11px 5% calc(11px + env(safe-area-inset-bottom));
    }

    .order-cart-bar > span {
        flex-wrap: wrap;
        gap: 5px 9px;
    }

    .order-cart-bar strong {
        min-height: 30px;
        padding: 5px 9px;
        font-size: .66rem;
    }

    .order-cart-bar small {
        font-size: 1.2rem;
    }

    .order-cart-bar button {
        min-height: 42px;
        padding: 9px 12px;
        font-size: .66rem;
        box-shadow: 3px 3px 0 var(--red);
    }

    .order-cart-details {
        max-height: 70dvh;
        padding: 17px 5% 25px;
    }

    .cart-line {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 9px 12px;
        padding: 12px;
        box-shadow: 3px 3px 0 var(--yellow);
    }

    .cart-quantity {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .checkout-form {
        gap: 12px;
        padding: 15px;
        box-shadow: 4px 4px 0 var(--red);
    }

    .checkout-form > button {
        width: 100%;
        justify-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .order-cart-bar button,
    .cart-quantity button,
    .checkout-form > button {
        transition: none !important;
    }
}

/* =========================================
   DELIVERY ADDRESS AND QUOTE CONTROLS
========================================= */

.checkout-fulfilment-fields:not([hidden]) {
    display: grid;
    grid-column: 1 / -1;
    gap: 11px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fffdf7;
}

.checkout-fulfilment-fields > label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--deep);
    font-size: .73rem;
    font-weight: 900;
}

.checkout-form label > small,
.delivery-location-help {
    display: block;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 500;
    line-height: 1.5;
}

.checkout-form #delivery-address {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 2px solid #b9c7dc;
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font-size: .92rem;
    line-height: 1.35;
    box-shadow: inset 0 1px 2px #102a5208;
}

.checkout-form #delivery-address::placeholder {
    color: #77849a;
    opacity: 1;
}

.checkout-form #delivery-address:focus {
    border-color: var(--blue);
    outline: 3px solid #0756d928;
    outline-offset: 1px;
}

.delivery-location-help {
    margin: -4px 0 0;
}

.delivery-quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--deep);
    border-radius: 5px;
    background: var(--yellow);
    color: var(--deep);
    font-size: .68rem;
    font-weight: 1000;
    letter-spacing: .045em;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--deep);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

#delivery-location-button {
    background: var(--blue);
    color: #fff;
    box-shadow: 3px 3px 0 var(--red);
}

.delivery-quote-button:hover:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--deep);
}

#delivery-location-button:hover:not(:disabled) {
    background: var(--deep);
}

.delivery-quote-button:disabled {
    opacity: .58;
    cursor: not-allowed;
    box-shadow: none;
}

#delivery-quote-status {
    min-height: 1.2em;
    margin: 0;
    color: var(--deep);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
}

#delivery-quote-status.error {
    padding: 10px 12px;
    border-left: 4px solid var(--red);
    border-radius: 3px;
    background: #fff0ef;
    color: #92221c;
}

#delivery-summary:not([hidden]) {
    display: grid;
    gap: 7px;
    padding: 13px 14px;
    border: 1px solid #f0d44a;
    border-radius: 5px;
    background: #fff8d7;
    color: var(--deep);
    font-size: .79rem;
    font-weight: 750;
}

#delivery-summary p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

@media (max-width: 600px) {
    .checkout-fulfilment-fields:not([hidden]) {
        padding: 12px;
    }

    .delivery-quote-button {
        width: 100%;
        justify-self: stretch;
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .delivery-quote-button {
        transition: none;
    }
}




/* ============================================================
   MENU HERO — VISIBLE, RESPONSIVE, AND SHARP
   ============================================================ */

/* Make the desktop carousel taller; the phone sizing remains separate below. */
.menu-hero {
    width: 100%;
    height: clamp(520px, 62svh, 760px);
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
}

/* Preserve image detail: fill the slide without stretching or zoom animation. */
.menu-hero-slide img,
.menu-hero-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    filter: none;
}

/* Give each new slide a short, clean entrance like the homepage motion. */
.menu-hero-slide:not([hidden]) {
    animation: menu-hero-enter 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes menu-hero-enter {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* On phones, the carousel fills over half the initial screen height. */
@media (max-width: 700px) {
    .menu-hero {
        height: clamp(390px, 64svh, 620px);
        min-height: 50svh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-hero-slide:not([hidden]) {
        animation: none !important;
    }
}


/* Keep every category visible on desktop instead of hiding the final chips
   behind a horizontal scroll. Phones keep their current swipeable category rail. */
@media (min-width: 701px) {
    .menu-category-bar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .menu-category-bar .categories {
        flex-wrap: wrap;
        overflow: visible;
        align-content: flex-start;
    }
}

/* ============================================================
   DISH OPTIONS AND CHECKOUT SUGGESTIONS
   ============================================================ */

/* Customer choice dialog uses the same bold blue, red, yellow and cream palette. */
#dish-options-dialog {
    width: min(620px, 92vw);
    max-width: 92vw;
    max-height: 88dvh;
    margin: auto;
    overflow: auto;
    padding: 0;
    border: 3px solid var(--deep);
    border-top: 8px solid var(--yellow);
    border-radius: 8px;
    background: var(--cream);
    color: var(--ink);
    box-shadow: 8px 8px 0 var(--red), 0 24px 80px #0007;
}

#dish-options-dialog::backdrop {
    background: #081a44bb;
    backdrop-filter: blur(7px);
}

.dish-options-form {
    display: grid;
    gap: 16px;
    padding: clamp(20px, 5vw, 32px);
}

.dish-options-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dish-options-heading .eyebrow {
    margin: 0;
    color: var(--red);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .12em;
}

#dish-options-dialog .close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 2px solid var(--deep);
    border-radius: 50%;
    background: var(--yellow);
    color: var(--deep);
    font-size: 1.4rem;
}

#dish-options-dialog .close:hover {
    background: #fff;
}

#dish-options-dialog .close span {
    font-size: 1.4rem;
}

#dish-options-title {
    margin: 0;
    color: var(--deep);
    font: 900 clamp(1.8rem, 6vw, 2.6rem) / .98 var(--display);
    letter-spacing: -.035em;
}

#dish-options-description {
    margin: -7px 0 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}

.dish-option-groups {
    display: grid;
    gap: 14px;
}

.dish-option-group {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 2px solid var(--deep);
    border-radius: 6px;
    background: #fff;
    box-shadow: 3px 3px 0 var(--yellow);
}

.dish-option-group legend {
    max-width: 100%;
    padding: 0 7px;
    color: var(--deep);
    font-size: .82rem;
    font-weight: 900;
}

.dish-option-choice {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fffdf7;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}

.dish-option-choice:has(input:checked) {
    border-color: var(--blue);
    background: #eaf1ff;
    box-shadow: inset 4px 0 0 var(--blue);
}

.dish-option-choice input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    accent-color: var(--blue);
}

#dish-options-message {
    min-height: 1.2em;
    margin: 0;
    color: #a2261e;
    font-size: .78rem;
    font-weight: 800;
}

.dish-options-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.dish-options-actions .button {
    min-height: 44px;
    padding: 10px 15px;
    border: 2px solid var(--deep);
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .04em;
    cursor: pointer;
}

.dish-options-actions .button.soft {
    background: #fff;
    color: var(--deep);
}

.dish-options-actions .button.primary {
    background: var(--red);
    color: #fff;
    box-shadow: 3px 3px 0 var(--yellow);
}

.dish-options-actions .button.primary:hover {
    background: var(--blue);
}

/* Drinks and desserts appear inside the expanded cart, above checkout. */
.checkout-suggestions {
    margin: 0 0 20px;
    padding: clamp(15px, 3vw, 22px);
    border: 2px solid var(--deep);
    border-top: 6px solid var(--yellow);
    border-radius: 6px;
    background: #fff;
    box-shadow: 4px 4px 0 var(--red);
}

.checkout-suggestions[hidden],
.checkout-suggestion-results[hidden] {
    display: none !important;
}

.checkout-suggestions > .eyebrow {
    margin: 0 0 7px;
    color: var(--red);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.checkout-suggestions h2 {
    margin: 0;
    color: var(--deep);
    font: 900 clamp(1.5rem, 4vw, 2rem) / 1 var(--display);
}

.checkout-suggestions > p:not(.eyebrow) {
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.5;
}

.checkout-suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.checkout-suggestion-actions button {
    min-height: 42px;
    padding: 9px 13px;
    border: 2px solid var(--deep);
    border-radius: 4px;
    background: var(--yellow);
    color: var(--deep);
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .035em;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--red);
}

.checkout-suggestion-actions button:hover,
.checkout-suggestion-actions button[aria-expanded="true"] {
    background: var(--blue);
    color: #fff;
}

.checkout-suggestion-results:not([hidden]) {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.checkout-suggestion-results h3 {
    margin: 0;
    color: var(--deep);
    font-size: .9rem;
    font-weight: 900;
}

.checkout-suggestion-list {
    display: grid;
    gap: 8px;
}

.checkout-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 4px;
    background: #fffdf7;
}

.checkout-suggestion-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.checkout-suggestion-copy strong {
    color: var(--deep);
    font-size: .82rem;
    line-height: 1.35;
}

.checkout-suggestion-copy span {
    color: var(--red);
    font-size: .78rem;
    font-weight: 900;
}

.checkout-suggestion-item .button {
    min-width: 64px;
    min-height: 36px;
    padding: 7px 10px;
    border: 2px solid var(--deep);
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: .65rem;
    font-weight: 900;
    cursor: pointer;
}

.checkout-suggestion-item .button:hover {
    background: var(--blue);
}

@media (max-width: 520px) {
    .dish-options-form {
        gap: 13px;
        padding: 19px;
    }

    .dish-options-actions {
        flex-direction: column-reverse;
    }

    .dish-options-actions .button {
        width: 100%;
    }

    .checkout-suggestion-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .checkout-suggestion-actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #dish-options-dialog,
    .dish-options-actions .button,
    .checkout-suggestion-actions button {
        animation: none !important;
        transition: none !important;
    }
}

/* Checkout add-on cards and continue action used by orders.js. */
.checkout-suggestion-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 5px;
    background: #fffdf7;
}

.checkout-suggestion-card h3 {
    grid-column: 1;
    margin: 0;
    color: var(--deep);
    font-size: .88rem;
    line-height: 1.25;
}

.checkout-suggestion-card small {
    grid-column: 1;
    color: var(--muted);
    font-size: .68rem;
}

.checkout-suggestion-card > strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--red);
    font-size: .85rem;
    white-space: nowrap;
}

.checkout-suggestion-add,
.checkout-suggestions-continue {
    min-height: 40px;
    padding: 9px 12px;
    border: 2px solid var(--deep);
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .035em;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--yellow);
    transition: background .18s ease, transform .18s ease;
}

.checkout-suggestion-add {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.checkout-suggestion-add:hover,
.checkout-suggestions-continue:hover {
    background: var(--blue);
    transform: translateY(-1px);
}

.checkout-suggestions-continue {
    width: 100%;
    margin-top: 14px;
    background: var(--deep);
}

.checkout-suggestions-message {
    margin: 10px 0 0;
    color: var(--green, #16834b);
    font-size: .76rem;
    font-weight: 700;
}

@media (max-width: 520px) {
    .checkout-suggestion-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
        padding: 11px;
    }

    .checkout-suggestion-card h3,
    .checkout-suggestion-card small {
        grid-column: 1;
    }

    .checkout-suggestion-card > strong {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .checkout-suggestion-add {
        grid-column: 1 / -1;
        grid-row: auto;
        width: 100%;
        min-height: 44px;
    }

    .checkout-suggestions-continue {
        min-height: 46px;
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-suggestion-add,
    .checkout-suggestions-continue {
        transition: none;
    }
}

