/* ===== FONTS (shared with main site) ===== */
@font-face {
    font-family: new-spirit;
    src: url(https://use.typekit.net/af/fda8af/00000000000000007735c4bc/31/l?subset_id=2&fvd=n5&v=3) format("woff2"),
         url(https://use.typekit.net/af/fda8af/00000000000000007735c4bc/31/d?subset_id=2&fvd=n5&v=3) format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: new-spirit;
    src: url(https://use.typekit.net/af/1f5fff/00000000000000007735c4c0/31/l?subset_id=2&fvd=n7&v=3) format("woff2"),
         url(https://use.typekit.net/af/1f5fff/00000000000000007735c4c0/31/d?subset_id=2&fvd=n7&v=3) format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: array-mono;
    src: url(https://use.typekit.net/af/4f657e/00000000000000007735cc67/31/l?subset_id=2&fvd=n4&v=3) format("woff2"),
         url(https://use.typekit.net/af/4f657e/00000000000000007735cc67/31/d?subset_id=2&fvd=n4&v=3) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: array-mono;
    src: url(https://use.typekit.net/af/8a0415/00000000000000007735cc6c/31/l?subset_id=2&fvd=n7&v=3) format("woff2"),
         url(https://use.typekit.net/af/8a0415/00000000000000007735cc6c/31/d?subset_id=2&fvd=n7&v=3) format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== DESIGN TOKENS ===== */
:root {
    --red: hsl(357, 85%, 52%);
    --yellow: hsl(48, 98%, 68%);
    --sage: hsl(77, 31%, 76%);
    --cream: hsl(40, 49%, 92%);
    --black: #000;
    --white: #fff;
    --heading-font: new-spirit, Georgia, 'Times New Roman', serif;
    --body-font: array-mono, 'Courier New', Courier, monospace;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--body-font);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: var(--cream);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== HEADER ===== */
.header-spacer {
    height: 92px;
}

.site-header {
    background: var(--sage);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-header .logo {
    height: 60px;
    width: auto;
}

.header-nav {
    position: absolute;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-nav-link {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    color: var(--red);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    border: 2px solid var(--red);
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
}

.header-nav-link:hover {
    background: var(--red);
    color: var(--cream);
}

/* ===== CATERING MODAL ===== */
.catering-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.catering-modal-overlay.open {
    display: flex;
}

.catering-modal {
    background: var(--cream);
    border-radius: 8px;
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
}

.catering-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--red);
    cursor: pointer;
    line-height: 1;
}

.catering-modal h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.catering-modal p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--red);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.catering-modal a {
    color: var(--red);
    font-weight: 700;
}

/* ===== ORDER HERO ===== */
.order-hero {
    background: var(--sage);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.order-hero h1 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--red);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.order-hero p {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--red);
}

.delivery-note {
    margin-top: 0.75rem;
    font-size: 0.8rem !important;
    opacity: 0.8;
}

.delivery-note a {
    color: var(--red);
    font-weight: 700;
}

/* ===== CLOSED BANNER ===== */
.closed-banner {
    background: var(--yellow);
    padding: 2rem;
    text-align: center;
}

.closed-banner h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.closed-banner p {
    font-family: var(--body-font);
    font-size: 0.85rem;
    color: var(--red);
}

/* ===== LOADING ===== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.loading p {
    font-family: var(--body-font);
    color: var(--red);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--cream);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ERROR STATE ===== */
.error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.error-state h2 {
    font-family: var(--heading-font);
    color: var(--red);
    margin-bottom: 1rem;
}

.error-state p {
    font-family: var(--body-font);
    color: var(--black);
    margin-bottom: 1rem;
}

.error-state a {
    color: var(--red);
}

.error-state button {
    font-family: var(--body-font);
    font-weight: 700;
    background: var(--red);
    color: var(--cream);
    border: none;
    padding: 0.75rem 2rem;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* ===== CATEGORY NAV ===== */
.category-nav {
    position: sticky;
    top: 92px;
    z-index: 50;
    background: var(--cream);
    border-bottom: 2px solid var(--red);
    padding: 0 1rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-nav button {
    flex-shrink: 0;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-nav button:hover {
    background: rgba(0,0,0,0.03);
}

.category-nav button.active {
    border-bottom-color: var(--red);
    background: rgba(0,0,0,0.03);
}

/* ===== ORDER LAYOUT ===== */
.order-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.order-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 0;
    min-height: 60vh;
}

/* ===== MENU ===== */
.order-menu {
    padding: 1.5rem 2rem 4rem;
}

.menu-category {
    margin-bottom: 2.5rem;
}

.menu-category-title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--red);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.menu-items-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px dotted rgba(0,0,0,0.12);
    gap: 1rem;
}

.menu-item:last-child {
    border-bottom: none;
}

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

.menu-item-name {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--black);
    line-height: 1.3;
}

.menu-item-desc {
    font-family: var(--body-font);
    font-size: 0.75rem;
    color: rgba(0,0,0,0.55);
    line-height: 1.4;
    margin-top: 0.15rem;
}

.menu-item-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.menu-item-price-original {
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 0.75rem;
    color: rgba(0,0,0,0.4);
    text-decoration: line-through;
    white-space: nowrap;
}

.menu-item-price {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--red);
    white-space: nowrap;
}

.menu-item-add {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cream);
    background: var(--red);
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.menu-item-add:hover {
    opacity: 0.85;
}

.menu-item-sold-out {
    opacity: 0.5;
}

.sold-out-badge {
    display: inline-block;
    background: var(--red, #c41e1e);
    color: #fff;
    font-family: var(--body-font, sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 0.4em;
}

/* ===== CART SIDEBAR ===== */
.order-cart {
    background: var(--yellow);
    padding: 1.5rem;
    position: sticky;
    top: 92px;
    height: calc(100vh - 92px);
    overflow-y: auto;
    border-left: 2px solid var(--red);
}

.order-cart h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.cart-empty p {
    font-family: var(--body-font);
    font-size: 0.85rem;
    color: rgba(0,0,0,0.5);
    font-style: italic;
}

/* Cart Items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    gap: 0.5rem;
}

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

.cart-item-name {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--black);
}

.cart-item-mods {
    font-family: var(--body-font);
    font-size: 0.7rem;
    color: rgba(0,0,0,0.5);
    margin-top: 0.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.cart-item-controls button {
    font-family: var(--body-font);
    font-weight: 700;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--cream);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}

.cart-item-qty {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 1.2rem;
    text-align: center;
}

.cart-item-price {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--red);
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* Cart Summary */
.cart-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--red);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.cart-tax-note {
    font-family: var(--body-font);
    font-size: 0.7rem;
    color: rgba(0,0,0,0.5);
    margin-bottom: 1.25rem;
}

/* Checkout Form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.checkout-form input,
.checkout-form select {
    font-family: var(--body-font);
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid rgba(0,0,0,0.15);
    border-radius: 3px;
    background: var(--white);
    color: var(--black);
    outline: none;
    transition: border-color 0.2s ease;
}

.checkout-form input:focus,
.checkout-form select:focus {
    border-color: var(--red);
}

.checkout-form input::placeholder {
    color: rgba(0,0,0,0.35);
}

.checkout-btn {
    width: 100%;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cream);
    background: var(--red);
    border: none;
    padding: 0.85rem;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.checkout-btn:hover:not(:disabled) {
    opacity: 0.85;
}

.checkout-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.checkout-btn.loading {
    position: relative;
    color: transparent;
}

.checkout-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--cream);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.checkout-error {
    font-family: var(--body-font);
    font-size: 0.8rem;
    color: var(--red);
    background: rgba(220,38,38,0.08);
    padding: 0.6rem 0.75rem;
    border-radius: 3px;
    margin-top: 0.75rem;
}

/* ===== MOBILE CART BAR ===== */
.mobile-cart-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 0.75rem 1rem;
    background: var(--yellow);
    border-top: 2px solid var(--red);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.mobile-cart-bar button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cream);
    background: var(--red);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 3px;
    cursor: pointer;
}

.cart-badge {
    background: var(--yellow);
    color: var(--red);
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--cream);
    border-radius: 6px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    line-height: 1;
}

.modal-content h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--red);
    margin-bottom: 0.25rem;
    padding-right: 2rem;
}

.modal-item-desc {
    font-family: var(--body-font);
    font-size: 0.8rem;
    color: rgba(0,0,0,0.55);
    margin-bottom: 0.25rem;
}

.modal-item-price {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1rem;
    color: var(--red);
    margin-bottom: 1.25rem;
}

.modifier-section {
    margin-bottom: 1.25rem;
}

.modifier-section-title {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.modifier-option {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
}

.modifier-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.6rem;
    accent-color: var(--red);
    cursor: pointer;
}

.modifier-option label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    font-family: var(--body-font);
    font-size: 0.85rem;
    color: var(--black);
    cursor: pointer;
}

.modifier-option .mod-price {
    color: rgba(0,0,0,0.5);
    font-size: 0.8rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-cancel {
    flex: 1;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--red);
    background: none;
    border: 2px solid var(--red);
    padding: 0.65rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-cancel:hover {
    background: var(--red);
    color: var(--cream);
}

.modal-add {
    flex: 2;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cream);
    background: var(--red);
    border: none;
    padding: 0.65rem;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-add:hover {
    opacity: 0.85;
}

/* ===== CONFIRMATION ===== */
.confirmation-content {
    text-align: center;
}

.confirmation-icon {
    font-size: 3rem;
    color: var(--sage);
    background: var(--red);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
}

.confirmation-content h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.confirmation-content p {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.confirmation-note {
    font-size: 0.8rem !important;
    color: rgba(0,0,0,0.5) !important;
    margin-bottom: 1.5rem !important;
}

.confirmation-btn {
    display: inline-block;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cream);
    background: var(--red);
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 3px;
    transition: opacity 0.2s ease;
}

.confirmation-btn:hover {
    opacity: 0.85;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--yellow);
    padding: 4rem 2rem 2rem;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-logo-left,
.footer-logo-right {
    justify-self: center;
}

.footer-logo-left img { width: 180px; }
.footer-logo-right img { width: 160px; }

.footer-center {
    text-align: center;
}

.footer-center .footer-logo-text {
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.footer-center .footer-logo-text img { width: 100%; }

.footer-center .contact-info {
    font-family: var(--body-font);
    font-size: 0.9rem;
    color: var(--red);
    line-height: 1.6;
}

.footer-center .contact-info a {
    color: var(--red);
    text-decoration: none;
    border-bottom: 1px solid var(--red);
    transition: opacity 0.2s ease;
}

.footer-center .contact-info a:hover { opacity: 0.7; }

.footer-credit {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-family: var(--body-font);
    font-size: 0.8rem;
    color: var(--red);
}

.footer-credit a {
    color: var(--red);
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .order-content {
        grid-template-columns: 1fr;
    }

    .order-cart {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 150;
        height: 100vh;
        border-left: none;
        padding-top: 3.5rem;
    }

    .order-cart.mobile-open {
        display: block;
    }

    .order-cart .cart-close-btn {
        display: block;
    }

    .mobile-cart-bar {
        display: block !important;
    }

    .mobile-cart-bar[hidden] {
        display: none !important;
    }

    .order-menu {
        padding: 1.5rem 1rem 6rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

}

@media (max-width: 600px) {
    .header-spacer { height: 100px; }
    .site-header {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.5rem 1rem;
    }
    .site-header .logo { height: 40px; }
    .header-nav {
        position: static;
        gap: 0.35rem;
    }
    .header-nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        letter-spacing: 0.04em;
    }
    .category-nav { top: 100px; }
    .order-hero { padding: 2rem 1rem 1.5rem; }
    .order-hero h1 { font-size: 1.8rem; }
}
