:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f4f4f4;
    --text: #171717;
    --muted: #6a6a70;
    --line: rgba(23, 23, 23, 0.12);
    --primary: #159447;
    --primary-dark: #0f7438;
    --warning-bg: #fff4cc;
    --warning-text: #755300;
    --shadow: 0 14px 32px rgba(0, 0, 0, 0.10);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

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

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

a {
    color: inherit;
}

.container {
    width: min(1100px, calc(100% - 24px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-lockup span:last-child {
    display: grid;
    gap: 1px;
}

.brand-lockup strong {
    font-size: 20px;
    line-height: 1;
}

.brand-lockup small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--surface-soft);
    font-size: 20px;
}

.header-cart-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.header-cart-link {
    min-height: 40px;
    gap: 8px;
    padding: 8px 13px;
}

.mode-pill {
    display: grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px 12px;
}

.mode-pill span {
    color: var(--muted);
    font-size: 13px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 4px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}

h2 {
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.1;
}

h3 {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.2;
}

.muted,
.section-heading p {
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.public-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 28px;
    align-items: start;
    padding: 22px 0 42px;
}

.menu-section {
    min-width: 0;
}

.hero-banner {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.hero-slide {
    display: none;
}

.hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 34%);
}

.hero-slide > div {
    display: grid;
    align-content: center;
    padding: 20px;
}

.hero-slide h2 {
    margin-bottom: 8px;
}

.hero-slide p {
    margin-bottom: 0;
    color: var(--muted);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.alert {
    border-radius: var(--radius);
    margin: 0 0 16px;
    padding: 12px 14px;
    font-weight: 750;
}

.alert:empty {
    display: none;
}

.alert-warning {
    border: 1px solid rgba(117, 83, 0, 0.14);
    background: var(--warning-bg);
    color: var(--warning-text);
}

.category-shortcuts {
    position: sticky;
    top: 72px;
    z-index: 8;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    padding: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    scrollbar-width: thin;
}

.category-shortcut {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    text-decoration: none;
}

.category-shortcut:hover {
    background: var(--surface-soft);
}

.category-shortcut-icon {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-size: 21px;
    line-height: 1;
}

.product-category-group {
    display: grid;
    gap: 12px;
    scroll-margin-top: 90px;
}

.product-category-group + .product-category-group {
    margin-top: 26px;
}

.category-heading {
    display: block;
}

.category-heading h3 {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.category-empty {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    margin-bottom: 0;
    padding: 12px;
    color: var(--muted);
}

.product-list {
    display: grid;
    gap: 10px;
}

.product-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 0;
    border-radius: var(--radius);
    background: #ffffff;
}

.product-image {
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--primary);
    font-size: 26px;
}

.product-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.product-info h3 {
    font-size: 17px;
}

.product-info p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-actions strong {
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
}

.add-to-cart {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(21, 148, 71, 0.24);
    border-radius: 999px;
    background: rgba(21, 148, 71, 0.08);
    color: var(--primary);
    padding: 0;
    cursor: pointer;
}

.add-to-cart span[aria-hidden="true"] {
    display: block;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-1px);
}

.add-to-cart:hover {
    border-color: rgba(21, 148, 71, 0.40);
    background: rgba(21, 148, 71, 0.14);
}

.custom-flavor-box {
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding-top: 12px;
}

.flavor-title {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.custom-flavor-box label {
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.button {
    min-height: 42px;
    gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
}

.button-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.button-secondary {
    border-color: var(--line);
    background: #ffffff;
    color: var(--text);
}

.order-panel {
    position: sticky;
    top: 78px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.order-panel form {
    padding: 18px;
}

.order-panel-header {
    margin-bottom: 14px;
}

.order-panel-header .eyebrow {
    display: none;
}

.order-panel-header h2 {
    font-size: 24px;
}

.cart-items {
    display: grid;
    gap: 10px;
    max-height: 220px;
    overflow: auto;
    margin-bottom: 14px;
}

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

.cart-item strong,
.cart-item span {
    display: block;
}

.cart-item small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.cart-item span {
    color: var(--muted);
    font-size: 14px;
}

.quantity-control {
    display: grid;
    grid-template-columns: 32px 34px 32px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border: 0;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-weight: 900;
    cursor: pointer;
}

.quantity-control span {
    color: var(--text);
    text-align: center;
    font-weight: 800;
}

.totals {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 16px 0;
    padding: 12px 0;
}

.totals > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.totals span {
    color: var(--muted);
}

.total-row {
    color: var(--text);
    font-size: 18px;
}

.total-row span {
    color: var(--text);
    font-weight: 850;
}

.form-grid {
    display: grid;
    gap: 12px;
}

label,
fieldset {
    display: grid;
    gap: 7px;
    margin: 0;
    color: var(--text);
    font-weight: 820;
}

fieldset {
    border: 0;
    padding: 0;
}

legend {
    margin-bottom: 8px;
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 11px;
    color: var(--text);
    outline: none;
}

textarea {
    resize: vertical;
}

.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-option {
    display: flex;
    flex: 0 1 auto;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    background: #ffffff;
    font-weight: 800;
    white-space: nowrap;
}

.radio-option:has(input:checked) {
    border-color: rgba(21, 148, 71, 0.34);
    background: rgba(21, 148, 71, 0.08);
    color: var(--primary-dark);
}

.radio-option input {
    width: auto;
    accent-color: var(--primary);
}

.order-button {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
}

.empty-state,
.system-error {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow);
}

.system-error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.system-error {
    width: min(620px, 100%);
}

.hidden {
    display: none !important;
}

.app-alert {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: rgba(23, 23, 23, 0.44);
    padding: 18px;
}

.app-alert-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    width: min(430px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 18px;
    box-shadow: var(--shadow);
}

.app-alert-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-weight: 900;
}

.app-alert h2 {
    margin-bottom: 4px;
    font-size: 20px;
}

.app-alert p {
    margin-bottom: 0;
    color: var(--muted);
}

.app-alert .button {
    grid-column: 1 / -1;
    justify-self: end;
    min-width: 116px;
}

.floating-cart {
    display: none;
}

@media (max-width: 900px) {
    .site-header {
        position: static;
    }

    .public-layout {
        grid-template-columns: 1fr;
    }

    .order-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 20px, 1100px);
    }

    .hero-slide.is-active {
        grid-template-columns: 1fr;
    }

    .hero-slide img {
        max-height: 220px;
    }

    .category-shortcuts {
        top: 10px;
    }

    .floating-cart {
        position: fixed;
        right: 14px;
        bottom: 16px;
        z-index: 20;
        display: grid;
        width: 58px;
        height: 58px;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #ffffff;
        color: var(--text);
        box-shadow: var(--shadow);
        text-decoration: none;
    }

    .floating-cart svg {
        width: 31px;
        height: 31px;
    }

    .floating-cart-count {
        position: absolute;
        top: -9px;
        right: -9px;
        display: grid;
        min-width: 28px;
        height: 28px;
        place-items: center;
        border: 2px solid #ffffff;
        border-radius: 999px;
        background: var(--primary);
        color: #ffffff;
        font-size: 14px;
        font-weight: 850;
        line-height: 1;
    }

    .floating-cart.is-empty .floating-cart-count {
        display: none;
    }
}

@media (max-width: 520px) {
    .header-content {
        gap: 10px;
    }

    .brand-lockup strong {
        font-size: 18px;
    }

    .product-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .product-image {
        width: 74px;
        height: 74px;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .quantity-control {
        width: 98px;
    }
}
