:root {
    color-scheme: light;
    --bg: #f6efe4;
    --surface: #fffaf3;
    --surface-strong: #efe4d4;
    --ink: #332a24;
    --muted: #786c61;
    --line: rgba(88, 68, 52, 0.16);
    --orange: #d85a28;
    --orange-dark: #ae3e17;
    --orange-soft: #f7d7c6;
    --yellow: #f5be3d;
    --green: #28745a;
    --shadow: 0 24px 70px rgba(70, 47, 30, 0.12);
    --sans: Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "EB Garamond", Georgia, "Times New Roman", serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --phone-max: 480px;
    --page-gutter: clamp(14px, 4.6vw, 22px);
    --section-gap: clamp(24px, 7vw, 36px);
    --card-radius: clamp(20px, 6vw, 30px);
    --hero-size: clamp(2.85rem, 13.4vw, 4rem);
    --tap-height: clamp(58px, 16vw, 66px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 6% 8%, rgba(245, 190, 61, 0.18), transparent 34rem),
        radial-gradient(circle at 95% 92%, rgba(216, 90, 40, 0.12), transparent 36rem),
        var(--bg);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
    display: flex;
    justify-content: center;
}

button, a {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    touch-action: manipulation;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 20;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.page-shell {
    min-width: 0;
    width: 100%;
    max-width: var(--phone-max);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding:
        max(var(--page-gutter), env(safe-area-inset-top))
        max(var(--page-gutter), env(safe-area-inset-right))
        max(var(--page-gutter), env(safe-area-inset-bottom))
        max(var(--page-gutter), env(safe-area-inset-left));
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--section-gap);
    overflow-x: hidden;
    overflow-x: clip;
}

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

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.language-picker {
    min-height: 36px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.88);
}

.language-picker select {
    max-width: 72px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: .72rem;
    font-weight: 800;
    outline: 0;
}

html[dir="rtl"] .action-arrow,
html[dir="rtl"] .cart-checkout span[aria-hidden="true"],
html[dir="rtl"] .review-order span[aria-hidden="true"] { transform: scaleX(-1); }

@media (max-width: 390px) {
    .source-pill { display: none; }
}

@media (max-width: 520px) {
    .header-tools .source-pill { display: none; }
}

@media (max-width: 420px) {
    :root { --hero-size: clamp(2.65rem, 12vw, 3.25rem); }
}

.brand {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px 13px 18px 18px;
    color: #fff;
    background: var(--orange);
    box-shadow: inset 0 -4px 0 rgba(105, 36, 12, 0.16);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 700;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-family: var(--serif);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.source-pill {
    min-height: 36px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 250, 243, 0.68);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

main {
    min-width: 0;
    display: grid;
    align-items: center;
}

.landing-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: var(--section-gap);
    padding: clamp(20px, 6vh, 44px) 0 clamp(28px, 8vh, 52px);
}

.hero-copy {
    min-width: 0;
    width: 100%;
    text-align: center;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--orange-dark);
    font-family: var(--mono);
    font-size: clamp(0.72rem, 1.4vw, 0.82rem);
    font-weight: 800;
    letter-spacing: 0.14em;
}

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

h1 {
    margin-bottom: 20px;
    font-family: var(--serif);
    font-size: var(--hero-size);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.9;
    overflow-wrap: break-word;
}

h1 em {
    color: var(--orange);
    font-weight: 600;
}

.hero-text {
    max-width: 420px;
    margin-bottom: 28px;
    margin-right: auto;
    margin-left: auto;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
}

.primary-action {
    width: 100%;
    min-height: var(--tap-height);
    padding: 14px 18px 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--orange-dark);
    border-radius: 18px;
    color: #fff;
    background: var(--orange);
    box-shadow: 0 14px 30px rgba(174, 62, 23, 0.24);
    cursor: pointer;
    font-weight: 850;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.action-arrow {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--ink);
    background: var(--yellow);
    font-size: 1.25rem;
}

.primary-action:hover {
    background: var(--orange-dark);
    box-shadow: 0 18px 36px rgba(174, 62, 23, 0.3);
    transform: translateY(-2px);
}

.primary-action:active {
    transform: translateY(0);
}

.primary-action:focus-visible,
.back-action:focus-visible,
.brand:focus-visible,
.customer-product-card:focus-visible,
.composer-option:focus-visible,
.composer-add:focus-visible,
.composer-clear:focus-visible,
.draft-cart:focus-visible,
.cart-item-edit:focus-visible,
.cart-quantity button:focus-visible,
.cart-remove:focus-visible,
.cart-continue:focus-visible,
.cart-checkout:focus-visible,
.checkout-choice input:focus-visible + span,
.checkout-form input:focus-visible,
.checkout-form textarea:focus-visible,
.review-order:focus-visible,
.review-card-heading button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.decision-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.77rem;
}

.order-preview {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(88, 68, 52, 0.12);
    border-radius: var(--card-radius);
    background: rgba(255, 250, 243, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.order-preview::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -90px;
    right: -60px;
    border-radius: 50%;
    background: var(--orange-soft);
}

.preview-topline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
}

.preview-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(40, 116, 90, 0.1);
}

.flow-list {
    position: relative;
    margin: 28px 0;
    padding: 0;
    display: grid;
    list-style: none;
}

.flow-list li {
    min-height: 72px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.flow-list li:last-child {
    border-bottom: 0;
}

.flow-list strong,
.flow-list small {
    display: block;
}

.flow-list strong {
    font-family: var(--serif);
    font-size: 1.35rem;
}

.flow-list small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

.flow-number {
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 800;
}

.fulfilment-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.fulfilment-strip span {
    min-height: 42px;
    padding: 8px 5px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--muted);
    background: var(--surface-strong);
    font-size: clamp(0.68rem, 2vw, 0.78rem);
    font-weight: 850;
    text-align: center;
}

.next-step-view {
    min-width: 0;
    width: 100%;
    margin: auto;
    animation: reveal 240ms ease both;
}

.catalog-header {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.catalog-header .eyebrow {
    margin-bottom: 4px;
}

.catalog-header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.back-action {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
    font-weight: 800;
}

.catalog-status,
.catalog-error {
    min-height: 210px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    color: var(--muted);
    background: var(--surface);
    text-align: center;
}

.catalog-loader {
    width: 32px;
    height: 32px;
    border: 3px solid var(--surface-strong);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 720ms linear infinite;
}

.catalog-error strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.4rem;
}

.catalog-error span {
    font-size: 0.82rem;
}

.catalog-error button {
    min-height: 44px;
    margin-top: 8px;
    padding: 9px 18px;
    border: 1px solid var(--orange-dark);
    border-radius: 12px;
    color: #fff;
    background: var(--orange);
    cursor: pointer;
    font-weight: 800;
}

.category-list {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 2px 0 8px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

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

.category-tab {
    min-height: 48px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 850;
    scroll-snap-align: start;
}

.category-tab[aria-selected="true"] {
    color: #fff;
    border-color: var(--orange-dark);
    background: var(--orange);
}

.category-tab-count {
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: currentColor;
    background: rgba(88, 68, 52, 0.08);
    font-family: var(--mono);
    font-size: 0.66rem;
}

.category-tab[aria-selected="true"] .category-tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.product-list {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.customer-product-card {
    min-width: 0;
    min-height: 148px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(70, 47, 30, 0.06);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform 130ms ease, border-color 180ms ease, background 180ms ease;
}

.customer-product-card:active:not(:disabled) {
    transform: scale(0.985);
}

.customer-product-card--composer {
    grid-column: 1 / -1;
    min-height: 132px;
    border-color: rgba(216, 90, 40, 0.36);
    background: linear-gradient(135deg, var(--surface), #fae8dc);
}

.customer-product-card--sold-out {
    opacity: 0.58;
    cursor: not-allowed;
}

.customer-product-card.is-added {
    border-color: #c99115;
    background: var(--yellow);
    transform: scale(0.985);
}

.product-card-topline,
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-category-name,
.product-state {
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-state {
    color: var(--orange-dark);
}

.product-name {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 5vw, 1.45rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.03;
}

.product-price {
    color: var(--orange-dark);
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 850;
}

.product-compose-label,
.product-sold-out-label {
    padding: 5px 7px;
    border-radius: 8px;
    color: var(--orange-dark);
    background: var(--orange-soft);
    font-size: 0.61rem;
    font-weight: 850;
}

.product-sold-out-label {
    color: var(--muted);
    background: var(--surface-strong);
}

.product-list-empty {
    grid-column: 1 / -1;
    padding: 40px 18px;
    color: var(--muted);
    text-align: center;
}

.wok-composer {
    min-width: 0;
    animation: reveal 200ms ease both;
}

.wok-composer:focus {
    outline: 0;
}

.composer-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.composer-header .eyebrow {
    margin-bottom: 3px;
}

.composer-header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.composer-progress {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 4;
    min-height: 52px;
    margin-bottom: 10px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 250, 243, 0.96);
    box-shadow: 0 8px 24px rgba(70, 47, 30, 0.08);
    backdrop-filter: blur(10px);
}

.composer-progress span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.composer-progress strong {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-family: var(--mono);
    font-size: 0.9rem;
}

.composer-groups {
    display: grid;
    gap: 9px;
}

.composer-group {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.composer-group-heading {
    margin-bottom: 9px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.composer-group-heading h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.05;
}

.composer-group-heading small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 800;
}

.composer-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.composer-option {
    min-width: 0;
    min-height: 46px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: var(--bg);
    cursor: pointer;
    text-align: left;
}

.composer-option span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    font-weight: 780;
    line-height: 1.12;
}

.composer-option small {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 800;
}

.composer-option.is-selected {
    border-color: #c99115;
    background: var(--yellow);
    box-shadow: inset 0 -3px 0 rgba(125, 82, 4, 0.13);
}

.composer-actions {
    position: sticky;
    bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 5;
    margin-top: 12px;
    padding: 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 250, 243, 0.96);
    box-shadow: 0 14px 34px rgba(70, 47, 30, 0.16);
    backdrop-filter: blur(10px);
}

.composer-clear,
.composer-add {
    min-height: 52px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 850;
}

.composer-clear {
    padding: 9px 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface-strong);
    font-size: 0.68rem;
}

.composer-add {
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--orange-dark);
    color: #fff;
    background: var(--orange);
}

.composer-add span:last-child {
    font-family: var(--mono);
    font-size: 0.76rem;
}

.composer-clear:disabled,
.composer-add:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.composer-actions.needs-attention {
    animation: composerAttention 520ms ease 2;
}

.draft-cart {
    position: sticky;
    bottom: max(6px, env(safe-area-inset-bottom));
    width: 100%;
    min-height: 54px;
    margin-top: 14px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 850;
    cursor: pointer;
}

.draft-cart strong {
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--orange);
    font-family: var(--mono);
}

.cart-view {
    min-width: 0;
    animation: reveal 200ms ease both;
}

.cart-view:focus {
    outline: 0;
}

.cart-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cart-header .eyebrow {
    margin-bottom: 3px;
}

.cart-header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

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

.cart-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(70, 47, 30, 0.06);
}

.cart-item-edit,
.cart-item-copy {
    width: 100%;
    padding: 14px;
    display: grid;
    gap: 8px;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.cart-item-copy {
    cursor: default;
}

.cart-item-edit:active {
    background: var(--bg);
}

.cart-item-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.cart-item-heading strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: var(--serif);
    font-size: 1.18rem;
    line-height: 1.05;
}

.cart-item-heading b {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-family: var(--mono);
    font-size: 0.82rem;
}

.cart-item-selections {
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.5;
}

.cart-item-edit small {
    color: var(--orange-dark);
    font-size: 0.6rem;
    font-weight: 850;
}

.cart-item-controls {
    min-height: 52px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    background: rgba(239, 228, 212, 0.42);
}

.cart-quantity {
    display: grid;
    grid-template-columns: 38px 34px 38px;
    align-items: center;
}

.cart-quantity button,
.cart-quantity strong {
    height: 36px;
    display: grid;
    place-items: center;
}

.cart-quantity button {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 850;
}

.cart-quantity button:first-child {
    border-radius: 10px 0 0 10px;
}

.cart-quantity button:last-child {
    border-radius: 0 10px 10px 0;
}

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

.cart-quantity strong {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    font-family: var(--mono);
    font-size: 0.76rem;
}

.cart-remove {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid rgba(174, 62, 23, 0.22);
    border-radius: 10px;
    color: var(--orange-dark);
    background: var(--orange-soft);
    cursor: pointer;
    font-size: 0.64rem;
    font-weight: 850;
}

.cart-empty {
    min-height: 210px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
    background: var(--surface);
    text-align: center;
}

.cart-empty strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.35rem;
}

.cart-empty span {
    font-size: 0.75rem;
    line-height: 1.5;
}

.cart-summary {
    position: sticky;
    bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 4;
    min-height: 68px;
    margin-top: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 243, 0.96);
    box-shadow: 0 14px 34px rgba(70, 47, 30, 0.16);
    backdrop-filter: blur(10px);
}

.cart-summary div {
    display: grid;
    gap: 2px;
}

.cart-summary span {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
}

.cart-summary small {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 750;
}

.cart-summary > strong {
    color: var(--orange-dark);
    font-family: var(--mono);
    font-size: 1rem;
}

.cart-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
}

.cart-continue,
.cart-checkout {
    width: 100%;
    min-height: 50px;
    border-radius: 13px;
    cursor: pointer;
    font-weight: 850;
}

.cart-continue {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface-strong);
    font-size: 0.7rem;
}

.cart-checkout {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--orange-dark);
    color: #fff;
    background: var(--orange);
}

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

.cart-next-note {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.65rem;
    text-align: center;
}

.checkout-view {
    min-width: 0;
    animation: reveal 200ms ease both;
}

.checkout-view:focus {
    outline: 0;
}

.checkout-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.checkout-header .eyebrow {
    margin-bottom: 3px;
}

.checkout-header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.checkout-form,
.checkout-review {
    display: grid;
    gap: 10px;
}

.checkout-section,
.review-card {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(70, 47, 30, 0.06);
}

.checkout-section legend,
.review-card h3 {
    margin: 0 0 11px;
    padding: 0;
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: 700;
}

.checkout-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

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

.checkout-choice {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.checkout-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.checkout-choice span {
    min-height: 70px;
    padding: 10px 6px;
    display: grid;
    place-content: center;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--bg);
    text-align: center;
}

.checkout-choice strong,
.checkout-choice small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.checkout-choice strong {
    color: var(--ink);
    font-size: 0.76rem;
}

.checkout-choice small {
    font-size: 0.57rem;
    font-weight: 700;
}

.checkout-choice input:checked + span {
    border-color: #c99115;
    color: var(--ink);
    background: var(--yellow);
    box-shadow: inset 0 -3px 0 rgba(125, 82, 4, 0.13);
}

.delivery-fields {
    padding: 14px;
    display: grid;
    gap: 10px;
    border: 1px solid rgba(216, 90, 40, 0.28);
    border-radius: 17px;
    background: rgba(247, 215, 198, 0.42);
}

.delivery-fields label {
    display: grid;
    gap: 6px;
}

.delivery-fields label > span:first-child {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.delivery-fields input,
.delivery-fields textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: var(--surface);
    font: inherit;
    font-size: 0.78rem;
    resize: vertical;
}

.delivery-fields textarea {
    min-height: 68px;
}

.address-picker-label textarea {
    resize: vertical;
}

.address-map-button {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(216, 90, 40, 0.32);
    border-radius: 12px;
    color: var(--orange-dark);
    background: var(--orange-soft);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 850;
    cursor: pointer;
}

.address-map-button span:first-child {
    font-family: var(--mono);
    font-size: 1rem;
}

.address-map-button:disabled {
    color: var(--muted);
    background: var(--surface-strong);
    cursor: not-allowed;
    opacity: 0.7;
}

.address-map-button.is-confirmed {
    border-color: rgba(55, 133, 87, 0.45);
    color: #246a42;
    background: rgba(221, 241, 227, 0.92);
}

.address-map-state {
    margin: -4px 2px 0;
    color: var(--muted);
    font-size: 0.6rem;
    line-height: 1.4;
}

body.location-picker-open {
    overflow: hidden;
}

.location-picker-overlay[hidden] {
    display: none;
}

.location-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 10px;
    background: rgba(38, 28, 21, 0.58);
    backdrop-filter: blur(4px);
}

.location-picker-sheet {
    width: min(100%, 560px);
    max-height: calc(100dvh - 20px);
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 25px 25px 18px 18px;
    background: var(--surface);
    box-shadow: 0 -18px 54px rgba(45, 31, 20, 0.25);
}

.location-picker-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 10px;
    display: block;
    border-radius: 99px;
    background: var(--line);
}

.location-picker-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.location-picker-heading h2 {
    margin: 3px 0 0;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1;
}

.location-picker-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.location-picker-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--bg);
    font-size: 1.35rem;
    cursor: pointer;
}

.location-map-shell {
    position: relative;
    height: 280px;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface-strong);
}

.location-map {
    width: 100%;
    height: 100%;
    z-index: 0;
}

.location-map-shell.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 500;
    background: rgba(255, 252, 247, 0.62);
    pointer-events: none;
}

.location-center-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 800;
    width: 38px;
    height: 46px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -100%);
    pointer-events: none;
    transition: transform 160ms ease;
}

.location-center-pin::before {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--orange);
    box-shadow: 0 5px 14px rgba(72, 38, 20, 0.3);
    transform: rotate(-45deg);
}

.location-center-pin span {
    position: absolute;
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
}

.location-center-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 790;
    width: 18px;
    height: 7px;
    border-radius: 50%;
    background: rgba(49, 35, 27, 0.32);
    filter: blur(1px);
    transform: translate(-50%, -15%);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.location-address-summary {
    margin-top: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}

.location-address-summary span {
    color: var(--muted);
    font-size: 0.55rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.location-address-summary strong {
    overflow: hidden;
    font-size: 0.69rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-status {
    min-height: 20px;
    margin: 8px 2px 0;
    color: var(--orange-dark);
    font-size: 0.65rem;
    font-weight: 750;
    line-height: 1.4;
}

.location-privacy {
    margin: 9px 2px 0;
    color: var(--muted);
    font-size: 0.56rem;
    line-height: 1.45;
}

.map-attribution {
    display: inline-block;
    margin: 4px 2px 0;
    color: var(--muted);
    font-size: 0.52rem;
}

.location-picker-actions {
    position: sticky;
    bottom: -16px;
    margin: 14px -16px -16px;
    padding: 11px 16px calc(16px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8px;
    border-top: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.96);
    backdrop-filter: blur(10px);
}

.location-picker-actions button {
    min-height: 49px;
    border-radius: 13px;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
}

.location-cancel {
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--bg);
}

.location-confirm {
    border: 1px solid var(--orange-dark);
    color: #fff;
    background: var(--orange);
}

.location-confirm:disabled {
    border-color: var(--line);
    color: var(--muted);
    background: var(--surface-strong);
    cursor: not-allowed;
}

.delivery-fields input[aria-invalid="true"],
.delivery-fields textarea[aria-invalid="true"] {
    border-color: var(--orange-dark);
    box-shadow: 0 0 0 3px rgba(216, 90, 40, 0.14);
}

.delivery-fields > p,
.payment-note,
.submission-lock-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.62rem;
    line-height: 1.5;
}

.payment-note {
    margin-top: 9px;
}

.checkout-total,
.review-total {
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
}

.checkout-total div {
    display: grid;
    gap: 2px;
}

.checkout-total span,
.review-total span {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
}

.checkout-total small {
    color: var(--muted);
    font-size: 0.6rem;
}

.checkout-total strong,
.review-total strong {
    color: var(--orange-dark);
    font-family: var(--mono);
    font-size: 0.9rem;
}

.checkout-validation {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(174, 62, 23, 0.22);
    border-radius: 11px;
    color: var(--orange-dark);
    background: var(--orange-soft);
    font-size: 0.68rem;
    font-weight: 800;
}

.review-order,
.submit-order {
    width: 100%;
    min-height: 54px;
    padding: 10px 15px;
    border-radius: 14px;
    font-weight: 850;
}

.review-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--orange-dark);
    color: #fff;
    background: var(--orange);
    cursor: pointer;
}

.review-order:disabled,
.submit-order:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.review-card-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.review-card-heading button {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--orange-dark);
    background: var(--orange-soft);
    cursor: pointer;
    font-size: 0.64rem;
    font-weight: 850;
}

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

.review-details div {
    padding: 10px;
    display: grid;
    gap: 3px;
    border-radius: 11px;
    background: var(--bg);
}

.review-details dt {
    color: var(--muted);
    font-size: 0.57rem;
    font-weight: 800;
    text-transform: uppercase;
}

.review-details dd {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 850;
}

.review-delivery {
    margin-top: 8px;
    padding: 10px;
    display: grid;
    gap: 3px;
    border-radius: 11px;
    background: rgba(247, 215, 198, 0.42);
    font-size: 0.69rem;
    line-height: 1.45;
}

.review-items {
    display: grid;
}

.review-item {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.review-item div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.review-item strong,
.review-item small {
    overflow-wrap: anywhere;
}

.review-item strong {
    font-size: 0.72rem;
}

.review-item small {
    color: var(--muted);
    font-size: 0.59rem;
    line-height: 1.4;
}

.review-item b {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-family: var(--mono);
    font-size: 0.7rem;
}

.review-total {
    margin-top: 10px;
    padding-right: 0;
    padding-left: 0;
    border-width: 1px 0 0;
    border-radius: 0;
}

.submit-order {
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface-strong);
}

.submission-lock-note {
    padding: 0 10px;
    text-align: center;
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.sr-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

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

@keyframes composerAttention {
    50% {
        border-color: var(--orange);
        box-shadow: 0 0 0 5px rgba(245, 190, 61, 0.28), 0 14px 34px rgba(70, 47, 30, 0.16);
        transform: translateY(-2px);
    }
}

@media (max-width: 760px) {
    .source-pill {
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-height: 720px) {
    :root {
        --section-gap: 20px;
        --hero-size: clamp(2.7rem, 12vw, 3.4rem);
    }

    .landing-view {
        padding-top: 10px;
    }

    .hero-text {
        margin-bottom: 18px;
        line-height: 1.45;
    }

    .flow-list {
        margin: 18px 0;
    }

    .flow-list li {
        min-height: 62px;
    }

    .customer-product-card {
        min-height: 132px;
    }

    .location-map-shell {
        min-height: 165px;
        height: 210px;
    }
}

@media (max-width: 390px) {
    .brand-copy small {
        display: none;
    }

    .order-preview {
        padding: 19px;
        border-radius: 22px;
    }

    .fulfilment-strip {
        gap: 5px;
    }

    .product-list {
        gap: 8px;
    }

    .customer-product-card {
        padding: 12px;
    }

    .composer-option {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
