:root {
    --color-brand-cream: #fffaf6;
    --color-brand-surface: #fffdfb;
    --color-brand-ink: #342618;
    --color-brand-muted: #776755;
    --color-brand-accent: #cf5a2a;
    --color-brand-accent-deep: #973d1e;
    --color-brand-gold: #f5cb85;
    --color-brand-sage: #70835a;
    --color-brand-border: #efdfcf;
    --color-brand-blush: #fef1e6;
    --shadow-shell: 0 30px 70px -38px rgba(63, 41, 18, 0.18);
    --shadow-card: 0 18px 40px -30px rgba(63, 41, 18, 0.16);
    --font-sans: "Aptos", "Segoe UI Variable Text", "Segoe UI", "Candara", "Trebuchet MS", sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Constantia", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 203, 133, 0.28), transparent 24%),
        radial-gradient(circle at top right, rgba(112, 131, 90, 0.12), transparent 22%),
        linear-gradient(180deg, #fffcf8 0%, #fdf3e8 50%, #fff9f3 100%);
    color: var(--color-brand-ink);
    font-family: var(--font-sans);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

a,
button {
    transition: all 180ms ease;
}

a {
    color: inherit;
}

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

input,
select,
textarea,
button {
    font: inherit;
}

.page-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.page-header,
.page-content,
.page-footer {
    padding: 20px 0;
}

.page-header {
    padding-top: 14px;
}

.active-order-ribbon {
    border-bottom: 1px solid rgba(151, 61, 30, 0.12);
    background:
        linear-gradient(135deg, rgba(151, 61, 30, 0.97), rgba(207, 90, 42, 0.94)),
        linear-gradient(180deg, rgba(245, 203, 133, 0.12), rgba(255, 255, 255, 0.02));
}

.active-order-ribbon-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    color: #fff;
}

.active-order-ribbon-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.active-order-ribbon-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 243, 234, 0.84);
}

.active-order-ribbon-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.active-order-ribbon-title strong {
    color: #fff6ee;
}

.active-order-ribbon-subtitle {
    color: rgba(255, 244, 236, 0.82);
    font-size: 0.88rem;
    line-height: 1.35;
}

.active-order-ribbon .btn-secondary {
    flex: 0 0 auto;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-brand-accent-deep);
    padding: 10px 18px;
    white-space: nowrap;
}

.active-order-ribbon .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.48);
}

.site-header,
.section-shell {
    border: 1px solid var(--color-brand-border);
    border-radius: 2rem;
    box-shadow: var(--shadow-shell);
    backdrop-filter: blur(14px);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 249, 242, 0.9)),
        linear-gradient(180deg, rgba(245, 203, 133, 0.08), rgba(207, 90, 42, 0.03));
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}

.brand-copy {
    min-width: 0;
}

.brand-mark {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 1.25rem;
    border: 1px solid rgba(243, 201, 128, 0.65);
}

.brand-title {
    font-size: clamp(1.8rem, 4vw, 2.1rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--color-brand-muted);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nav-link,
.btn-primary,
.btn-secondary,
.contact-pill,
.badge-chip,
.page-pill,
.price-pill,
.soft-chip {
    border-radius: 999px;
}

.nav-link {
    padding: 10px 14px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: rgba(47, 36, 26, 0.72);
}

.nav-link.is-active,
.nav-link:hover {
    background: rgba(245, 203, 133, 0.18);
    color: var(--color-brand-accent-deep);
}

.contact-pill,
.soft-chip,
.badge-chip {
    display: inline-flex;
    align-items: center;
}

.contact-pill {
    padding: 10px 16px;
    background: rgba(242, 195, 111, 0.22);
    color: var(--color-brand-accent-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

.badge-chip,
.soft-chip {
    padding: 8px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.badge-chip {
    background: rgba(245, 203, 133, 0.22);
    color: var(--color-brand-accent-deep);
}

.soft-chip {
    background: rgba(107, 123, 79, 0.12);
    color: var(--color-brand-sage);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #df7440 0%, var(--color-brand-accent) 52%, var(--color-brand-accent-deep) 100%);
    box-shadow: 0 16px 30px -20px rgba(179, 75, 34, 0.64);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 252, 248, 0.94);
    border-color: rgba(47, 36, 26, 0.12);
    color: var(--color-brand-ink);
}

.btn-secondary:hover {
    border-color: rgba(216, 109, 39, 0.4);
    color: var(--color-brand-accent-deep);
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.flash {
    padding: 14px 18px;
    border-radius: 1.25rem;
    border: 1px solid;
    font-size: 0.95rem;
}

.flash.ok {
    border-color: #cbead6;
    background: #ebfaf0;
    color: #1f6d38;
}

.flash.bad {
    border-color: #f2cccc;
    background: #fff0f0;
    color: #8a2525;
}

.section-shell {
    background: rgba(255, 255, 255, 0.88);
}

.section-pad {
    padding: 28px;
}

.card-grid,
.info-grid,
.summary-grid,
.form-grid,
.split-grid {
    display: grid;
    gap: 20px;
}

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-grid.main-sidebar {
    grid-template-columns: 340px minmax(0, 1fr);
}

.split-grid.balance {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
}

.card-shell,
.menu-card,
.offer-card,
.coupon-card,
.timeline-card {
    background: #fff;
    border: 1px solid var(--color-brand-border);
    border-radius: 1.75rem;
    box-shadow: var(--shadow-card);
}

.card-shell,
.coupon-card,
.timeline-card {
    padding: 22px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-copy {
    margin-top: 10px;
    color: var(--color-brand-muted);
    font-size: 0.96rem;
}

.hidden {
    display: none !important;
}

.offers-carousel-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.offers-carousel-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.offers-carousel-track::-webkit-scrollbar {
    display: none;
}

.offers-carousel-nav {
    position: absolute;
    inset: auto 18px 18px auto;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.offers-carousel-button {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(32, 20, 14, 0.72);
    color: #fff7f0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.offers-carousel-button:hover,
.offers-carousel-button:focus-visible {
    background: rgba(222, 106, 45, 0.9);
    transform: translateY(-2px);
}

.offer-card {
    position: relative;
    min-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    overflow: hidden;
    scroll-snap-align: start;
    background: linear-gradient(135deg, rgba(87, 46, 25, 0.86), rgba(22, 14, 10, 0.48));
    color: #fff;
}

.offer-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.offer-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(32, 20, 14, 0.12), rgba(32, 20, 14, 0.72));
}

.offer-card-content {
    position: relative;
    z-index: 1;
    min-height: 368px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 38px;
}

.offer-card-title {
    color: #fff;
}

.offer-card-copy {
    max-width: 640px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
    .offers-carousel-nav {
        inset: auto 14px 14px auto;
    }

    .offers-carousel-button {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
}

.menu-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    border-color: rgba(222, 106, 45, 0.28);
    box-shadow: 0 24px 54px -30px rgba(92, 54, 28, 0.24);
}

.menu-card-media {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(243, 201, 128, 0.18), rgba(216, 109, 39, 0.12));
}

.menu-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.menu-card:hover .menu-card-image {
    transform: scale(1.03);
}

.menu-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: #fff;
}

.menu-card-content {
    min-width: 0;
}

.menu-card-footer {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(239, 223, 207, 0.9);
}

.menu-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-card-title {
    margin-top: 10px;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.menu-card-copy {
    margin-top: 6px;
    color: rgba(52, 38, 24, 0.7);
    font-size: 0.9rem;
    line-height: 1.38;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.menu-card-price-row,
.menu-card-price-block,
.summary-line,
.item-row,
.mini-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.menu-card-price {
    color: var(--color-brand-accent-deep);
    font-size: 1.3rem;
    font-weight: 700;
}

.menu-card-price.is-final-price {
    color: #b44418;
}

.menu-card-compare-price {
    color: rgba(52, 38, 24, 0.48);
    font-size: 0.94rem;
    text-decoration: line-through;
}

.menu-offer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(191, 82, 27, 0.12);
    color: #8b3510;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.menu-card-form,
.stack-form,
.field-stack {
    display: grid;
    gap: 12px;
}

.menu-card-action {
    width: 100%;
}

.menu-card-action-button {
    width: 100%;
}

.menu-card-quantity-controls {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 6px 8px;
    border: 1px solid var(--color-brand-border);
    border-radius: 999px;
    background: #fff;
}

.quantity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(243, 201, 128, 0.2);
    color: var(--color-brand-accent-deep);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.quantity-button:hover {
    background: rgba(216, 109, 39, 0.14);
}

.quantity-readout {
    min-width: 28px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

.quantity-input {
    width: 56px;
    border: 0;
    background: transparent;
    color: var(--color-brand-ink);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.input-shell {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--color-brand-border);
    border-radius: 1rem;
    background: rgba(255, 250, 246, 0.92);
    color: var(--color-brand-ink);
}

.input-shell:focus {
    outline: none;
    border-color: rgba(216, 109, 39, 0.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(216, 109, 39, 0.08);
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 700;
}

.summary-line {
    padding: 9px 0;
    color: var(--color-brand-muted);
    font-size: 0.95rem;
}

.summary-line.total {
    border-top: 1px solid rgba(239, 223, 207, 0.9);
    padding-top: 14px;
    color: var(--color-brand-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.price-pill {
    padding: 8px 12px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-brand-sage) 0%, #50613a 100%);
}

.inline-actions,
.action-wrap,
.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-grid,
.stats-grid,
.two-col-grid,
.three-col-grid {
    display: grid;
    gap: 18px;
}

.footer-grid,
.stats-grid,
.three-col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.muted {
    color: var(--color-brand-muted);
}

.tiny-caps {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(52, 38, 24, 0.54);
}

.empty-state {
    text-align: center;
    padding: 32px 24px;
}

.timeline {
    display: grid;
    gap: 14px;
}

.floating-cart {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-brand-ink) 0%, #4a3724 100%);
    box-shadow: 0 20px 38px -18px rgba(32, 21, 13, 0.55);
}

.cart-panel {
    position: fixed;
    inset: 0;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 140ms ease, visibility 140ms ease;
}

.cart-panel.is-open {
    opacity: 1;
    visibility: visible;
}

.cart-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 36, 26, 0.42);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 140ms ease;
}

.cart-panel-sheet {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 520px);
    height: 100%;
    overflow-y: auto;
    padding: 24px;
    border-left: 1px solid var(--color-brand-border);
    background: var(--color-brand-surface);
    box-shadow: 0 28px 56px -28px rgba(32, 21, 13, 0.68);
    transform: translateX(2rem);
    opacity: 0.96;
    transition: transform 150ms ease, opacity 150ms ease;
}

.cart-panel.is-open .cart-panel-backdrop {
    opacity: 1;
}

.cart-panel.is-open .cart-panel-sheet {
    transform: translateX(0);
    opacity: 1;
}

.menu-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.menu-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.page-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(47, 36, 26, 0.12);
    border-radius: 999px;
    background: rgba(255, 252, 248, 0.94);
    color: var(--color-brand-muted);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.page-pill.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #df7440 0%, var(--color-brand-accent) 52%, var(--color-brand-accent-deep) 100%);
    color: #fff;
}

@media (max-width: 1080px) {
    .card-grid.three,
    .card-grid.four,
    .split-grid.main-sidebar,
    .split-grid.balance,
    .footer-grid,
    .stats-grid,
    .three-col-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-lockup {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
    }

    .header-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .site-header,
    .section-pad {
        padding: 22px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .active-order-ribbon-shell {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .two-col-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100%, calc(100% - 20px));
    }

    .site-header,
    .section-pad,
    .card-shell,
    .coupon-card,
    .timeline-card {
        border-radius: 1.4rem;
    }

    .site-header,
    .section-pad {
        padding: 18px;
    }

    .brand-lockup {
        align-items: flex-start;
    }

    .header-nav {
        gap: 8px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-nav > .btn-primary,
    .header-nav > .contact-pill {
        grid-column: 1 / -1;
    }

    .nav-link,
    .header-nav .btn-primary,
    .contact-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .contact-pill {
        padding-inline: 12px;
    }

    .active-order-ribbon {
        padding: 0;
    }

    .active-order-ribbon-shell {
        padding: 12px 0;
    }

    .active-order-ribbon .btn-secondary {
        width: 100%;
    }

    .floating-cart {
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: space-between;
    }

    .cart-panel-sheet {
        width: 100%;
        padding: 18px;
    }

    .menu-card-media {
        aspect-ratio: 16 / 10;
    }

    .offer-card-content {
        min-height: 300px;
        padding: 26px;
    }

    .offer-card-title {
        line-height: 1.08;
    }

    .item-row,
    .mini-row {
        flex-direction: column;
        align-items: stretch;
    }

    .item-row > *,
    .mini-row > * {
        width: 100%;
        min-width: 0;
    }

    .summary-line {
        gap: 8px;
        flex-wrap: wrap;
    }

    .summary-line span:last-child {
        margin-left: auto;
    }

    .menu-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .menu-pagination > .btn-secondary {
        width: 100%;
    }

    .menu-pagination-pages {
        width: 100%;
    }

    .page-pill {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
    }

    .menu-card-tags {
        gap: 6px;
    }

    .menu-card-title {
        font-size: 1.08rem;
    }

    .menu-card-copy {
        -webkit-line-clamp: 3;
    }

    .cart-panel-sheet {
        border-left: 0;
        border-top-left-radius: 1.2rem;
        border-top-right-radius: 1.2rem;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-subtitle,
    .section-copy,
    .muted {
        font-size: 0.92rem;
    }
}

@media (max-width: 420px) {
    .page-shell {
        width: min(100%, calc(100% - 16px));
    }

    .header-nav {
        grid-template-columns: 1fr;
    }

    .offer-card-content {
        min-height: 280px;
        padding: 22px;
    }

    .offer-card-title {
        font-size: clamp(2rem, 10vw, 2.7rem) !important;
    }

    .offers-carousel-nav {
        inset: auto 12px 12px auto;
    }

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

@media (max-width: 520px) {
    .header-nav {
        grid-template-columns: 1fr;
    }
}
