:root {
    --burgundy: #5E1914;
    --burgundy-hover: #4a130f;
    --cream: #FAF8F3;
    --cream-deep: #F1E8DC;
    --gold: #D4A76A;
    --ink: #2B1A18;
    --muted: #7A6461;
    --line: #EADFD3;
    --line-strong: #D9C9B6;
    --photo-bg: #EFE3D2;
    --veg-bg: #E4EFD9;
    --veg-ink: #27500A;
    --danger: #A32D2D;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --radius-card: 12px;
    --radius-pill: 999px;
    --page-max: 1180px;
    --cart-width: 360px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--burgundy);
}

button {
    font: inherit;
    color: inherit;
}

.site-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.site-bar-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--burgundy);
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.site-brand img {
    width: 40px;
    height: 40px;
}

.site-links {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-links a:hover {
    color: var(--burgundy);
}

.store-banner {
    background: var(--burgundy);
    color: var(--cream);
}

.store-banner-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 28px 24px 26px;
}

.store-eyebrow {
    margin: 0 0 4px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

#orderHeader {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.15;
}

.order-page {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 20px 24px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--cart-width);
    gap: 32px;
    align-items: start;
}

.event-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--burgundy);
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
}

.chip svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

button.chip {
    cursor: pointer;
}

button.chip:hover,
a.chip:hover {
    border-color: var(--burgundy);
}

.chip[hidden] {
    display: none;
}

.menu-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 14px;
}

.menu-section-head h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.45rem;
    color: var(--burgundy);
}

.menu-section-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

#itemsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.item-card {
    display: flex;
    gap: 16px;
    width: 100%;
    padding: 14px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.item-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 4px 14px rgba(94, 25, 20, 0.08);
}

.item-card:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
}

.item-card.in-cart {
    border-color: var(--burgundy);
}

.item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
}

.item-description {
    margin-top: 4px;
    font-size: 0.86rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.95rem;
    color: var(--ink);
}

.veg-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    background: var(--veg-bg);
    color: var(--veg-ink);
    font-size: 0.7rem;
    font-weight: 400;
    vertical-align: 2px;
}

.item-photo {
    position: relative;
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--photo-bg);
}

.item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.item-photo img.item-photo-logo {
    object-fit: contain;
    padding: 18px;
    opacity: 0.85;
}

.item-add {
    position: absolute;
    right: -8px;
    bottom: -8px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(43, 26, 24, 0.12);
}

.item-card.in-cart .item-add {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.order-help {
    margin: 32px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--muted);
}

.ordering-disabled-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 400;
}

#itemsContainer > p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.btn-primary,
.order-summary-sidebar button.btn-primary,
.modal-content button.btn-primary {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--burgundy);
    color: var(--cream);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--burgundy-hover);
}

.btn-primary:disabled,
.order-summary-sidebar button.btn-primary:disabled,
.modal-content button.btn-primary:disabled {
    background: var(--cream-deep);
    color: var(--muted);
    cursor: not-allowed;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--burgundy);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.88rem;
}

.order-summary-sidebar {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 20px;
}

.cart-title {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--burgundy);
}

.pickup-block {
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--cream);
    border-radius: 10px;
    font-size: 0.88rem;
}

.pickup-block p {
    margin: 0 0 4px;
}

.pickup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pickup-block a {
    font-size: 0.85rem;
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.cart-count-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.cart-empty {
    margin: 4px 0 12px;
    padding: 18px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.cart-empty[hidden],
.cart-footer[hidden],
.cart-message[hidden],
.limit-note[hidden] {
    display: none;
}

.cart-message {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #F0C4C4;
    border-radius: 10px;
    background: #FCEBEB;
    color: #791F1F;
    font-size: 0.86rem;
}

.cart-message a {
    color: inherit;
    font-weight: 700;
}

.cart-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-line {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cart-line:first-child {
    padding-top: 4px;
}

.cart-line-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.cart-line-price {
    white-space: nowrap;
}

.cart-line-addons {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.cart-line-controls {
    margin-top: 8px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin: 14px 0 4px;
    font-weight: 700;
}

.cart-total:empty {
    display: none;
}

.cart-note {
    margin: 0 0 14px;
    font-size: 0.78rem;
    color: var(--muted);
}

.secure-note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
}

.order-summary-button {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow: auto;
    background: rgba(43, 26, 24, 0.55);
}

.modal-content {
    position: relative;
    margin: 8vh auto;
    width: calc(100% - 32px);
    max-width: 520px;
    padding: 24px;
    background: var(--cream);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(43, 26, 24, 0.25);
}

.modal-content h2 {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--burgundy);
}

.close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    border-color: var(--burgundy);
}

.stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
}

.stepper button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--burgundy);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.stepper button svg {
    width: 16px;
    height: 16px;
}

.stepper button:hover:not(:disabled) {
    background: var(--cream-deep);
}

.stepper button:disabled {
    color: var(--line-strong);
    cursor: not-allowed;
}

.stepper > span {
    min-width: 22px;
    text-align: center;
    font-weight: 700;
}

.stepper-small button {
    width: 30px;
    height: 30px;
}

.btn-split,
.modal-content button.btn-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.checkout-button.is-loading::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 10px;
    vertical-align: -2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body.modal-open {
    overflow: hidden;
}

.modal-content.item-sheet {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    max-height: 88vh;
}

.item-sheet .close {
    top: 12px;
    right: 12px;
}

.item-sheet-photo {
    flex-shrink: 0;
    height: 220px;
    background: var(--photo-bg);
}

.item-sheet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-sheet-photo.is-logo img {
    object-fit: contain;
    padding: 36px;
    opacity: 0.85;
}

.item-sheet-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.item-sheet-scroll {
    overflow-y: auto;
    padding: 20px 22px 8px;
}

.item-sheet h2 {
    margin: 0;
    padding-right: 36px;
}

.item-sheet-description {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.item-sheet-price {
    margin: 8px 0 0;
    font-weight: 700;
}

.addon-group {
    margin: 18px -22px 0;
    padding: 0;
    border: none;
}

.addon-group legend {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding: 9px 22px;
    background: var(--cream-deep);
    font-weight: 700;
}

.addon-optional {
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--muted);
}

.addon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.addon-row:last-child {
    border-bottom: none;
}

.addon-row:hover {
    background: #FFFCF7;
}

.addon-row input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--burgundy);
}

.addon-name {
    flex: 1;
}

.addon-price {
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.addon-loading {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.limit-note {
    margin: 14px 0 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #FAEEDA;
    color: #633806;
    font-size: 0.85rem;
}

.item-modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: var(--cream);
}

.item-modal-footer #addToOrder {
    flex: 1;
}

.toast {
    position: fixed;
    left: 50%;
    top: 20px;
    z-index: 3000;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    text-align: center;
    color: var(--cream);
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(43, 26, 24, 0.25);
    transform: translate(-50%, -8px);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.toast.toast-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.pickup-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}

.pickup-time-item {
    padding: 10px 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    text-align: center;
    cursor: pointer;
}

.pickup-time-item:hover:not(:disabled) {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

.pickup-time-item:disabled {
    color: var(--line-strong);
    text-decoration: line-through;
    cursor: not-allowed;
}

.pickup-time-item.selected {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--cream);
}

#orderSummaryModal .modal-content {
    max-width: 560px;
}

@media (max-width: 975px) {
    .order-page {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 16px 110px;
    }

    .order-summary-sidebar {
        display: none;
    }

    .site-links {
        display: none;
    }

    .site-bar-inner {
        padding: 8px 16px;
    }

    .store-banner-inner {
        padding: 22px 16px 20px;
    }

    #itemsContainer {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-card);
    }

    .item-card {
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
        padding: 16px 18px 16px 14px;
    }

    .item-card:last-child {
        border-bottom: none;
    }

    .item-card.in-cart {
        border-color: var(--line);
        background: #FFFCF7;
    }

    .item-card:hover {
        box-shadow: none;
    }

    .item-photo {
        width: 96px;
        height: 96px;
    }

    .order-summary-button {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        z-index: 1500;
        padding: 15px 20px;
        border: none;
        border-radius: var(--radius-pill);
        background: var(--burgundy);
        color: var(--cream);
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(43, 26, 24, 0.3);
    }

    .order-summary-button:disabled {
        display: none;
    }

    .cart-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 24px;
        height: 24px;
        margin-right: 10px;
        padding: 0 6px;
        border-radius: var(--radius-pill);
        background: var(--cream);
        color: var(--burgundy);
        font-size: 0.85rem;
    }

    .modal-content {
        margin: 0;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        max-height: 92vh;
        overflow-y: auto;
        border-radius: 18px 18px 0 0;
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    }

    #orderSummaryModal .modal-content {
        max-width: none;
    }
}

@media (min-width: 976px) {
    .modal-content.item-sheet {
        max-width: 760px;
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        max-height: 80vh;
    }

    .item-sheet-photo {
        height: auto;
        min-height: 100%;
    }

    .item-sheet-body {
        max-height: 80vh;
    }

    #orderSummaryModal {
        display: none !important;
    }
}
