:root {
    --green: #125539;
    --green-dark: #0a3d27;
    --green-soft: #eaf5ee;
    --green-soft-2: #f3fbf6;

    --cream: #f7f4ec;
    --cream-2: #fffaf0;
    --gold: #f4c95d;
    --gold-soft: #fff3c4;

    --ink: #111827;
    --text: #17201a;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.10);
    --soft: #f3f4f6;
    --card: rgba(255, 255, 255, 0.88);

    --danger: #b91c1c;
    --danger-bg: #fee2e2;

    --radius-sm: 16px;
    --radius: 24px;
    --radius-lg: 34px;
    --radius-xl: 44px;

    --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 22px 70px rgba(15, 23, 42, 0.12);
    --shadow-green: 0 24px 70px rgba(18, 85, 57, 0.26);

    --safe-bottom: env(safe-area-inset-bottom);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family:
        "Manrope",
        "Aptos",
        "Segoe UI",
        Arial,
        sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(244, 201, 93, 0.28), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(18, 85, 57, 0.22), transparent 34%),
        linear-gradient(180deg, #fbfaf5 0%, #f3f5ef 48%, #eef2ea 100%);
    overflow-x: hidden;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

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

.hidden {
    display: none !important;
}

.kiosk-shell {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.55;
}

.orb-green {
    width: 360px;
    height: 360px;
    right: -120px;
    top: 90px;
    background: radial-gradient(circle, rgba(18, 85, 57, 0.28), transparent 68%);
}

.orb-gold {
    width: 300px;
    height: 300px;
    left: -110px;
    top: 340px;
    background: radial-gradient(circle, rgba(244, 201, 93, 0.30), transparent 68%);
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(18, 85, 57, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 85, 57, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.premium-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: calc(14px + env(safe-area-inset-top)) 14px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: rgba(247, 244, 236, 0.78);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.brand-zone {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
  width: 180px;
  height: 65px;
  /* border-radius: 20px; */
  /* background: white; */
  display: grid;
  place-items: center;
  padding: 8px;
  /* box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10); */
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.brand-copy span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
}

.brand-copy strong {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-action,
.refresh-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green-dark);
    font-size: 22px;
    font-weight: 950;
    box-shadow: var(--shadow-soft);
}

.cart-pill {
    min-height: 46px;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    padding: 10px 12px 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
}

.cart-pill strong {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: var(--ink);
    font-size: 12px;
}

.journey-bar {
    position: sticky;
    top: 73px;
    z-index: 90;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(247, 244, 236, 0.72);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.journey-step,
.progress-step {
    min-width: 42px;
    display: grid;
    justify-items: center;
    gap: 3px;
    color: var(--muted);
}

.journey-step span,
.progress-step {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: white;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.journey-step small {
    display: none;
    font-size: 10px;
    font-weight: 900;
}

.journey-step.active span,
.progress-step.active {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    box-shadow: 0 12px 26px rgba(18, 85, 57, 0.24);
}

.journey-step.active small {
    color: var(--green-dark);
}

.journey-line,
.progress-line {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.10);
}

.app-stage,
.screens {
    /* width: min(1380px, 100%); */
    margin: 0 auto;
    padding: 16px;
}

.screen {
    display: none;
    animation: fadeSlide 0.28s ease both;
}

.screen.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 950;
}

.section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold);
}

.landing-layout {
    display: grid;
    gap: 16px;
}

.restaurant-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: var(--radius-xl);
    padding: 28px;
    color: white;
    background:
        radial-gradient(circle at 78% 12%, rgba(244, 201, 93, 0.35), transparent 28%),
        linear-gradient(135deg, rgba(18, 85, 57, 0.98), rgba(10, 61, 39, 0.98));
    box-shadow: var(--shadow-green);
}

.restaurant-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 330px;
    height: 330px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
}

.hero-chip {
    width: fit-content;
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--gold);
    font-size: 12px;
    font-weight: 950;
}

.restaurant-hero h1 {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    /* max-width: 780px; */
    font-size: 72px;
    line-height: 1;
    letter-spacing: -0.085em;
    font-weight: 950;
}

.restaurant-hero h1 span {
    /* display: block; */
    color: var(--gold);
}

.restaurant-hero p {
    position: relative;
    z-index: 1;
    /* max-width: 560px; */
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.55;
}

.hero-stats {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.hero-stats div {
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats strong {
    display: block;
    font-size: 22px;
    font-weight: 950;
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 18px;
    font-weight: 600;
}

.order-mode-panel,
.sidebar-card,
.status-card,
.checkout-card,
.cart-summary-panel .sticky-summary,
.trust-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

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

.panel-heading span {
    color: var(--green);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.panel-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 7vw, 44px);
    line-height: 1;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.mode-selection-grid {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.mode-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 132px;
    border-radius: 32px;
    background: white;
    padding: 18px;
    display: grid;
    grid-template-columns: 72px 1fr 34px;
    gap: 14px;
    align-items: center;
    text-align: left;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mode-card:active {
    transform: scale(0.985);
}

.mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
}

.mode-visual {
    width: 72px;
    height: 72px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
}

.mode-visual span {
    font-size: 38px;
}

.mode-content strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.mode-content p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.42;
}

.mode-arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: white;
    font-weight: 950;
}

.menu-layout,
.cart-layout,
.checkout-layout {
    display: grid;
    gap: 18px;
}

.menu-sidebar {
    display: grid;
    gap: 14px;
}

.sidebar-card {
    padding: 22px;
}

.sidebar-card h2,
.menu-top h2,
.page-title-row h2 {
    margin: 7px 0 0;
    font-size: 30px;
    line-height: 0.96;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.sidebar-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.status-card {
    padding: 12px;
}

.status {
    padding: 13px 14px;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.07);
    color: #374151;
    font-size: 13px;
    font-weight: 850;
}

.status.success {
    background: #dcfce7;
    color: #166534;
}

.status.error {
    background: #fee2e2;
    color: #991b1b;
}

.menu-top,
.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.desktop-cart {
    display: none;
}

.category-dock,
.category-shell {
    position: sticky;
    top: 127px;
    z-index: 60;
    margin: 0 -16px 16px;
    padding: 10px 0;
    background: rgba(247, 244, 236, 0.80);
    backdrop-filter: blur(22px);
    border-top: 1px solid rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.categories-bar {
    display: flex;
    gap: 10px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    color: #374151;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 950;
    /* box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07); */
    transition: transform 0.16s ease, background 0.16s ease;
}

.category-btn.active {
    background: var(--ink);
    color: white;
}

.category-btn:active {
    transform: scale(0.96);
}

.products-grid,
.modern-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.product-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border-radius: 30px;
    background: rgba(255,255,255,0.90);
    padding: 0;
    text-align: left;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.75);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 66px rgba(15, 23, 42, 0.14);
}

.product-image {
    position: relative;
    /* aspect-ratio: 1 / 0.86; */
    background:
        radial-gradient(circle at top left, rgba(18,85,57,0.12), transparent 36%),
        var(--soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}

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

.no-image {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 950;
    text-align: center;
    padding: 12px;
}

.product-info {
    padding: 13px;
}

.product-info h3 {
    margin: 0;
    min-height: 40px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.22;
    letter-spacing: -0.025em;
    font-weight: 950;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

.product-tags span {
    border-radius: 999px;
    padding: 5px 7px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 10px;
    font-weight: 950;
}

.product-tags .tag-option {
    background: var(--green-soft);
    color: var(--green-dark);
}

.product-tags .tag-combo {
    background: var(--ink);
    color: white;
}

.product-bottom {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 950;
}

.product-id {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 850;
}

.product-command-bar {
    position: sticky;
    top: 127px;
    z-index: 70;
    margin: -2px -16px 16px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: rgba(247, 244, 236, 0.86);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(17,24,39,0.06);
}

.ghost-action,
.back-btn {
    min-height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: var(--green-dark);
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.product-immersive-shell {
    max-width: 1220px;
    margin: 0 auto;
}

.product-page {
    display: grid;
    gap: 16px;
}

.product-hero {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.86);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.74);
}

.product-hero-image {
    width: 100%;
    height: 100%;
    background: var(--soft);
    display: grid;
    place-items: center;
}

.product-hero-content {
    padding: 20px;
}

.product-hero-content h2 {
    margin: 0;
    font-size: clamp(34px, 8vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.product-hero-price {
    margin-top: 12px;
    color: var(--green-dark);
    font-size: 30px;
    font-weight: 950;
}

.product-description {
    margin-top: 13px;
    border-radius: 24px;
    padding: 14px;
    background: rgba(243, 244, 246, 0.72);
    color: #4b5563;
    font-size: 14px;
    line-height: 1.48;
}

.product-step-tabs {
    position: sticky;
    top: 188px;
    z-index: 50;
    display: flex;
    gap: 9px;
    margin: 0 -16px 14px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(247, 244, 236, 0.86);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(17,24,39,0.06);
}

.product-step-tabs::-webkit-scrollbar {
    display: none;
}

.product-step-tab {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 11px 14px;
    background: white;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.product-step-tab.active {
    background: var(--green);
    color: white;
}

.product-step-tab.done {
    background: var(--green-soft);
    color: var(--green-dark);
}

.product-config-card {
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.74);
    box-shadow: var(--shadow-card);
    padding: 18px;
}

.step-label {
    color: var(--green);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 950;
}

.step-heading {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: clamp(28px, 7vw, 44px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 950;
}

.step-subtitle {
    margin: 9px 0 16px;
    color: var(--muted);
    font-size: 14px;
}

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

.choice-product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 2px solid rgba(17,24,39,0.08);
    background: white;
    padding: 9px;
    text-align: left;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.choice-product-card:active {
    transform: scale(0.97);
}

.choice-product-card.selected {
    border-color: var(--green);
    background:
        radial-gradient(circle at top left, rgba(18, 85, 57, 0.12), transparent 36%),
        #f0fdf4;
}

.choice-product-card.disabled {
    opacity: 0.45;
}

.choice-product-image {
    width: 100%;
    /* aspect-ratio: 1 / 0.82; */
    border-radius: 22px;
    background: var(--soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.choice-product-info {
    padding: 11px 5px 4px;
}

.choice-product-name {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.23;
    font-weight: 950;
    word-break: break-word;
}

.choice-product-extra {
    margin-top: 6px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 950;
}

.choice-selected-dot {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: white;
    border: 2px solid var(--line);
    color: transparent;
    font-size: 13px;
    font-weight: 950;
}

.choice-product-card.selected .choice-selected-dot {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.attribute-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.attribute-option-card {
    position: relative;
    width: 100%;
    min-height: 76px;
    border-radius: 26px;
    border: 2px solid rgba(17,24,39,0.08);
    background: white;
    padding: 12px 48px 12px 12px;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    text-align: left;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.attribute-option-card:active {
    transform: scale(0.98);
}

.attribute-option-card.selected {
    border-color: var(--green);
    background:
        radial-gradient(circle at top left, rgba(18, 85, 57, 0.12), transparent 38%),
        #f0fdf4;
}

.attribute-option-icon {
    width: 52px;
    height: 52px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 950;
}

.attribute-option-card.selected .attribute-option-icon {
    background: var(--green);
    color: white;
}

.attribute-option-label {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 950;
}

.attribute-option-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.attribute-option-check {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: white;
    border: 2px solid var(--line);
    color: transparent;
    font-size: 13px;
    font-weight: 950;
}

.attribute-option-card.selected .attribute-option-check {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.final-config-box {
    display: grid;
    gap: 16px;
}

.final-config-box textarea {
    width: 100%;
    min-height: 110px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 15px;
    background: rgba(255,255,255,0.86);
    color: var(--ink);
    font-size: 16px;
    outline: none;
}

.final-config-box textarea:focus,
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(18, 85, 57, 0.10);
}

.qty-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 10px 0;
}

.qty-row button {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 28px;
    font-weight: 950;
}

.qty-row strong {
    min-width: 38px;
    text-align: center;
    font-size: 30px;
    font-weight: 950;
}

.product-page-footer {
    position: sticky;
    bottom: 0;
    z-index: 75;
    margin: 18px -16px -16px;
    padding: 12px 16px calc(14px + var(--safe-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(22px);
    border-top: 1px solid rgba(17,24,39,0.08);
}

.product-page-actions {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 10px;
}

.product-page-actions.single {
    grid-template-columns: 1fr;
}

.product-added-card {
    max-width: 540px;
    margin: 30px auto;
    border-radius: var(--radius-xl);
    padding: 30px 20px;
    text-align: center;
    background: white;
    box-shadow: var(--shadow-card);
}

.product-added-card .check {
    width: 76px;
    height: 76px;
    margin: 0 auto 15px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: var(--green-dark);
    font-size: 40px;
    font-weight: 950;
}

.product-added-card h3 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.product-added-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.product-added-actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.cart-layout {
    align-items: start;
}

.cart-main,
.checkout-main {
    min-width: 0;
}

.cart-lines {
    display: grid;
    gap: 12px;
}

.empty-cart {
    border-radius: var(--radius-xl);
    padding: 38px 22px;
    background: rgba(255,255,255,0.84);
    color: var(--muted);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.cart-line {
    border-radius: 30px;
    padding: 16px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-soft);
}

.cart-line-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cart-title {
    color: var(--ink);
    font-size: 16px;
    font-weight: 950;
}

.cart-sub {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.remove-line {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 20px;
    font-weight: 950;
}

.cart-detail {
    margin-top: 10px;
    color: #374151;
    font-size: 12px;
    line-height: 1.45;
}

.cart-detail div {
    margin-bottom: 4px;
}

.cart-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
}

.cart-summary-panel .sticky-summary {
    padding: 18px;
}

.sticky-summary h3 {
    margin: 7px 0 12px;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.summary-card,
.premium-summary {
    border-radius: 28px;
    padding: 16px;
    display: grid;
    gap: 11px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(17,24,39,0.06);
}

.summary-card div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-card span {
    color: var(--muted);
    font-weight: 850;
}

.summary-card strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
}

.summary-total {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.summary-total span,
.summary-total strong {
    color: var(--ink);
    font-size: 22px;
    font-weight: 950;
}

.cart-actions,
.premium-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.checkout-layout {
    align-items: start;
}

.checkout-card,
.premium-checkout {
    padding: 16px;
    display: grid;
    gap: 14px;
}

.checkout-mode-card,
.premium-mode {
    border-radius: 28px;
    padding: 16px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(18,85,57,0.10), transparent 36%),
        rgba(249,250,251,0.84);
}

.checkout-icon,
.checkout-mode-card > div:first-child {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: white;
    font-size: 28px;
}

.checkout-mode-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
}

.checkout-mode-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 15px;
    background: rgba(255,255,255,0.88);
    color: var(--ink);
    font-size: 16px;
    outline: none;
}

.form-field textarea {
    min-height: 92px;
    resize: vertical;
}

.conditional-fields {
    display: grid;
    gap: 12px;
}

.location-btn {
    border-radius: 22px;
    padding: 15px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 950;
}

.location-status {
    border-radius: 18px;
    padding: 12px;
    background: rgba(255,255,255,0.80);
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.payment-methods-card {
    display: grid;
    gap: 11px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(249, 250, 251, 0.76);
    border: 1px solid rgba(17,24,39,0.06);
}

.payment-heading h3 {
    margin: 7px 0 0;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 950;
}

.payment-methods-box {
    display: grid;
    gap: 10px;
}

.payment-method-card {
    position: relative;
    width: 100%;
    min-height: 72px;
    border-radius: 24px;
    border: 2px solid rgba(17,24,39,0.08);
    background: white;
    padding: 12px 48px 12px 12px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
    text-align: left;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.payment-method-card.selected {
    border-color: var(--green);
    background:
        radial-gradient(circle at top left, rgba(18,85,57,0.12), transparent 36%),
        #f0fdf4;
}

.payment-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    font-size: 24px;
}

.payment-method-label {
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
}

.payment-method-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
}

.payment-method-check {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: white;
    border: 2px solid var(--line);
    color: transparent;
    font-size: 13px;
    font-weight: 950;
}

.payment-method-card.selected .payment-method-check {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.pay-summary,
.premium-pay-summary {
    border-radius: 26px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ink);
    color: white;
}

.pay-summary span {
    color: rgba(255,255,255,0.76);
    font-weight: 900;
}

.pay-summary strong {
    color: white;
    font-size: 24px;
    font-weight: 950;
}

.checkout-submit-btn {
    min-height: 58px;
}

.checkout-trust-panel {
    display: none;
}

.trust-card {
    padding: 20px;
}

.trust-card img {
    width: 180px;
    margin-bottom: 18px;
}

.trust-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.trust-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.trust-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.trust-list div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--green-dark);
}

.trust-list span {
    width: 25px;
    height: 25px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    font-size: 13px;
    font-weight: 950;
}

.primary-btn,
.secondary-btn,
.danger-btn {
    width: 100%;
    border-radius: 24px;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 950;
}

.primary-btn {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    box-shadow: 0 18px 40px rgba(18, 85, 57, 0.25);
}

.primary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.secondary-btn {
    background: white;
    color: var(--green-dark);
    box-shadow: var(--shadow-soft);
}

.danger-btn {
    background: var(--danger-bg);
    color: var(--danger);
}

@media (min-width: 560px) {
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

@media (min-width: 860px) {
    .journey-step small {
        display: block;
    }

    .app-stage,
    .screens {
        padding: 22px;
    }

    .landing-layout {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: stretch;
    }

    .order-mode-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px;
    }

    .menu-layout {
        grid-template-columns: 310px 1fr;
        align-items: start;
    }

    .menu-sidebar {
        position: sticky;
        top: 150px;
    }

    .desktop-cart {
        display: inline-flex;
    }

    .floating-cart-trigger {
        display: none;
    }

    .category-dock,
    .category-shell {
        top: 127px;
        margin: 0 0 18px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.7);
        box-shadow: 0 14px 34px rgba(15,23,42,0.06);
    }

    .products-grid,
    .modern-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 18px;
    }

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

    .product-page {
        grid-template-columns: 440px 1fr;
        align-items: start;
    }

    .product-hero {
        position: sticky;
        top: 155px;
    }

    .product-step-tabs {
        top: 127px;
        margin: 0 0 16px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.7);
        box-shadow: 0 14px 34px rgba(15,23,42,0.06);
    }

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

    .product-page-footer {
        margin: 18px 0 0;
        border-radius: 30px;
        border: 1px solid rgba(17,24,39,0.08);
    }

    .cart-layout {
        grid-template-columns: 1fr 360px;
    }

    .cart-summary-panel .sticky-summary {
        position: sticky;
        top: 145px;
    }

    .checkout-layout {
        grid-template-columns: 1fr 360px;
    }

    .checkout-trust-panel {
        display: block;
    }

    .trust-card {
        position: sticky;
        top: 145px;
    }
}

@media (min-width: 1180px) {
    .choice-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 420px;
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 400px;
    }
}

@media (max-width: 380px) {
    .brand-copy strong {
        font-size: 17px;
    }

    .brand-copy span {
        font-size: 10px;
    }

    .cart-pill span {
        display: none;
    }

    .restaurant-hero {
        padding: 22px;
    }

    .mode-card {
        grid-template-columns: 58px 1fr 28px;
    }

    .mode-visual {
        width: 58px;
        height: 58px;
        border-radius: 22px;
    }

    .mode-visual span {
        font-size: 30px;
    }
}
/* =========================================================
   FINAL RESPONSIVE CLEANUP — CRISP KIOSK
   Keep this as the LAST block in kiosk.css
========================================================= */

/* Global safety */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    overflow-y: auto;
}

.kiosk-shell,
.app-stage,
.screens,
.screen,
.menu-layout,
.menu-content,
.menu-sidebar,
.cart-layout,
.checkout-layout,
.product-screen,
.product-immersive-shell,
#productPageBody,
.product-page,
.product-hero,
.product-config-card,
.final-config-box {
    max-width: 100%;
    min-width: 0;
}

button,
input,
textarea,
.product-card,
.choice-product-card,
.attribute-option-card,
.payment-method-card {
    min-width: 0;
}

/* Serious font tuning */
.restaurant-hero h1,
.sidebar-card h2,
.menu-top h2,
.page-title-row h2,
.product-hero-content h2,
.step-heading,
.panel-heading h2,
.sticky-summary h3,
.trust-card h3 {
    letter-spacing: -0.045em;
}

.product-info h3,
.cart-title,
.payment-method-label,
.attribute-option-label,
.choice-product-name {
    letter-spacing: -0.015em;
}

/* Horizontal scroll allowed ONLY here */
.categories-bar,
.product-step-tabs,
.journey-bar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar,
.product-step-tabs::-webkit-scrollbar,
.journey-bar::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   MOBILE + TABLET <= 859px
========================================================= */

@media (max-width: 859px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .kiosk-shell,
    .app-stage,
    .screens,
    .screen,
    .screen.active,
    .menu-layout,
    .cart-layout,
    .checkout-layout,
    .product-screen,
    .product-immersive-shell,
    #productPageBody,
    .product-page,
    .product-hero,
    .product-config-card,
    .final-config-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    .app-stage,
    .screens {
        padding: 10px;
    }

    .landing-layout,
    .menu-layout,
    .cart-layout,
    .checkout-layout,
    .product-page {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Hide menu intro/sidebar on mobile/tablet */
    .menu-sidebar {
        display: none !important;
    }

    /* Header */
    .premium-header {
        width: 100%;
        max-width: 100vw;
        padding-left: 10px;
        padding-right: 10px;
        gap: 8px;
    }

    .brand-zone {
        min-width: 0;
        overflow: hidden;
    }

    .brand-mark {
        width: clamp(140px, 46vw, 180px);
        height: 58px;
        padding: 6px;
        flex-shrink: 1;
    }

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

    .brand-copy strong,
    .brand-copy span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        flex-shrink: 0;
    }

    .icon-action,
    .refresh-btn {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .cart-pill {
        min-height: 42px;
        padding: 8px 10px;
    }

    .cart-pill span {
        display: none;
    }

    .cart-pill strong {
        margin: 0;
    }

    /* Journey */
    .journey-bar {
        top: 68px;
        width: 100%;
        max-width: 100vw;
        padding: 8px 10px;
    }

    .journey-step {
        flex: 0 0 auto;
        min-width: 28px;
    }

    .journey-step span {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .journey-step small {
        display: none !important;
    }

    .journey-line {
        min-width: 18px;
    }

    /* Landing */
    .restaurant-hero {
        min-height: auto;
        border-radius: 28px;
        padding: 22px;
    }

    .restaurant-hero h1 {
        font-size: clamp(36px, 10vw, 52px);
        line-height: 0.96;
        letter-spacing: -0.055em;
    }

    .restaurant-hero p {
        font-size: 14px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .order-mode-panel {
        border-radius: 28px;
        padding: 14px;
    }

    .mode-card {
        min-height: 112px;
        grid-template-columns: 56px minmax(0, 1fr) 28px;
        gap: 11px;
        padding: 14px;
        border-radius: 26px;
    }

    .mode-visual {
        width: 56px;
        height: 56px;
        border-radius: 20px;
    }

    .mode-visual span {
        font-size: 30px;
    }

    .mode-content strong {
        font-size: 20px;
    }

    .mode-content p {
        font-size: 13px;
    }

    /* Menu */
    .menu-top,
    .page-title-row {
        align-items: center;
    }

    .menu-top h2,
    .page-title-row h2 {
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1;
        letter-spacing: -0.045em;
    }

    .category-dock,
    .category-shell {
        position: sticky;
        top: 0;
        max-width: 100vw;
        margin: 0 -10px 12px;
        padding: 9px 0;
        border-radius: 0;
        overflow: hidden;
    }

    .categories-bar {
        max-width: 100%;
        padding: 0 10px;
    }

    .category-btn {
        flex: 0 0 auto;
        max-width: 160px;
        padding: 10px 13px;
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .products-grid,
    .modern-products-grid {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .product-card {
        border-radius: 22px;
    }

    .product-image {
        width: 100%;
        min-height: 0;
    }

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

    .product-info {
        padding: 10px;
    }

    .product-info h3 {
        min-height: 34px;
        font-size: 13px;
        line-height: 1.2;
    }

    .product-tags {
        gap: 4px;
    }

    .product-tags span {
        padding: 4px 6px;
        font-size: 9px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-id {
        display: none;
    }

    /* Product page */
    .product-command-bar {
        position: sticky;
        top: 0;
        z-index: 70;
        width: auto !important;
        max-width: none !important;
        margin: -2px -10px 12px;
        padding: 9px 12px;
        overflow: visible !important;
    }

    .ghost-action,
    .back-btn {
        min-height: 42px;
        padding: 10px 13px;
        font-size: 13px;
    }

    .product-page {
        display: block !important;
    }

    /* .product-hero {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 28px;
        overflow: hidden !important;
    } */

    .product-hero {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 28px;
        overflow: hidden !important;
    }

    .product-hero-image {
        width: 100% !important;
        height: 100%    !important;
        overflow: hidden;
        margin-bottom: 20px;
    }

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

    .product-hero-content {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .product-hero-content h2 {
        font-size: clamp(30px, 8vw, 40px);
        line-height: 1;
        letter-spacing: -0.04em;
        overflow-wrap: anywhere;
    }

    .product-description {
        width: 100%;
        max-width: 100%;
        font-size: 14px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .product-step-tabs {
        position: sticky;
        top: 0;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 -10px 12px;
        padding: 9px 10px;
        white-space: nowrap;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .product-step-tab {
        flex: 0 0 auto;
        max-width: 230px;
        padding: 9px 12px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-config-card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        border-radius: 28px;
        overflow: visible !important;
    }

    .step-heading {
        font-size: clamp(30px, 8vw, 38px);
        line-height: 1;
        letter-spacing: -0.04em;
        overflow-wrap: anywhere;
    }

    .choice-grid,
    .attribute-options-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .choice-product-card,
    .attribute-option-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .choice-product-card {
        border-radius: 26px;
        padding: 8px;
    }

    .choice-product-image {
        width: 100% !important;
        max-width: 100% !important;
        /* aspect-ratio: 1 / 0.78; */
        border-radius: 22px;
        overflow: hidden;
    }

    .choice-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 12px;
    }

    .choice-product-name,
    .attribute-option-label {
        font-size: 15px;
        line-height: 1.25;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .choice-product-extra {
        font-size: 15px;
    }

    .product-page-footer {
        position: sticky;
        bottom: 0;
        left: auto;
        right: auto;
        width: auto !important;
        max-width: none !important;
        margin: 18px -10px -10px !important;
        padding: 12px 12px calc(14px + var(--safe-bottom));
        overflow: visible !important;
    }

    .product-page-actions {
        grid-template-columns: 1fr !important;
    }

    /* Cart / checkout */
    .cart-summary-panel .sticky-summary {
        position: static;
    }

    .checkout-trust-panel {
        display: none !important;
    }

    .checkout-card,
    .premium-checkout {
        border-radius: 28px;
        padding: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   SMALL PHONES <= 390px
========================================================= */

@media (max-width: 390px) {
    .products-grid,
    .modern-products-grid {
        grid-template-columns: 1fr !important;
    }

    .choice-grid,
    .attribute-options-grid {
        grid-template-columns: 1fr !important;
    }

    .restaurant-hero h1 {
        font-size: 36px;
    }

    .product-hero-image {
        height: 240px;
    }

    .product-hero-content h2,
    .step-heading {
        font-size: 28px;
    }

    .product-step-tab {
        max-width: 185px;
    }
}

/* =========================================================
   DESKTOP >= 860px
========================================================= */

@media (min-width: 860px) {
    .journey-step small {
        display: block;
    }

    .app-stage,
    .screens {
        padding: 24px;
    }

    .landing-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
        align-items: stretch;
    }

    .order-mode-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px;
    }

    .menu-layout {
        grid-template-columns: 310px minmax(0, 1fr);
        align-items: start;
    }

    .menu-sidebar {
        display: grid;
        position: sticky;
        top: 150px;
    }

    .desktop-cart {
        display: inline-flex;
    }

    .floating-cart-trigger {
        display: none;
    }

    .category-dock,
    .category-shell {
        top: 127px;
        margin: 0 0 18px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.7);
        box-shadow: 0 14px 34px rgba(15,23,42,0.06);
    }

    .products-grid,
    .modern-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 18px;
    }

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

    .product-page {
        display: grid;
        grid-template-columns: 430px minmax(0, 1fr);
        align-items: start;
    }

    .product-hero {
        position: sticky;
        top: 155px;
    }

    .product-step-tabs {
        top: 127px;
        margin: 0 0 16px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.7);
        box-shadow: 0 14px 34px rgba(15,23,42,0.06);
    }

    .choice-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    }

    .attribute-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-page-footer {
        margin: 18px 0 0;
        border-radius: 30px;
        border: 1px solid rgba(17,24,39,0.08);
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .cart-summary-panel .sticky-summary {
        position: sticky;
        top: 145px;
    }

    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .checkout-trust-panel {
        display: block;
        margin-top: 70px;
    }

    .trust-card {
        position: sticky;
        top: 145px;
    }
}

/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1180px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 420px;
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 400px;
    }

    .attribute-options-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* @media (min-width: 1500px) {
    .app-stage,
    .screens {
        max-width: 1380px;
    }
} */
/* Mobile combo choices: multiple items per row */
@media (max-width: 859px) {
    .choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .choice-product-card {
        border-radius: 22px;
        padding: 7px;
    }

    .choice-product-image {
        /* aspect-ratio: 1 / 0.78; */
        border-radius: 18px;
    }

    .choice-product-image img {
        padding: 8px;
    }

    .choice-product-name {
        font-size: 13px;
        line-height: 1.2;
    }

    .choice-product-extra {
        font-size: 13px;
    }
}

/* Very small phones: keep 1 per row to avoid overflow */
@media (max-width: 360px) {
    .choice-grid {
        grid-template-columns: 1fr !important;
    }
}
@media (min-width: 640px) and (max-width: 859px) {
    .choice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* =========================================================
   TRUE FULL WIDTH STICKY FOOTER — CRISP & CO
========================================================= */

body {
    padding-bottom: calc(76px + var(--safe-bottom));
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;

    width: 100vw;
    max-width: 100vw;
    margin: 0;

    padding: 10px 18px calc(10px + var(--safe-bottom));

    background: rgba(247, 244, 236, 0.92);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 -14px 36px rgba(15, 23, 42, 0.08);
}

.site-footer-inner {
    width: 100%;
    max-width: none;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.footer-brand strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.footer-brand span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.footer-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 999px;
    padding: 8px 12px;

    background: rgba(18, 85, 57, 0.09);
    color: var(--green-dark);
    text-decoration: none;

    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.footer-links a:hover {
    background: var(--green);
    color: white;
}

@media (max-width: 859px) {
    body {
        padding-bottom: calc(112px + var(--safe-bottom));
    }

    .site-footer {
        padding: 8px 10px calc(8px + var(--safe-bottom));
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 8px;
    }

    .footer-brand {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }

    .footer-links a {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 7px;
        font-size: 11px;
    }

    .footer-links a span {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
/* =========================================================
   IMAGE DISPLAY FIX — PRODUCTS / COMBO CHOICES
   Keep this block at the very end.
   Product images are loaded from /web/image/.../image_512.
   Attribute images can stay base64.
========================================================= */

.product-image,
.choice-product-image {
    position: relative !important;
    width: 100% !important;
    min-height: 120px !important;
    background:
        radial-gradient(circle at top left, rgba(18, 85, 57, 0.12), transparent 38%),
        var(--soft) !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
}

/* .product-image {
    aspect-ratio: 1 / 0.86 !important;
} */

/* .choice-product-image {
    aspect-ratio: 1 / 0.82 !important;
} */

.product-image img,
.choice-product-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.choice-product-image img {
    object-fit: contain !important;
    padding: 10px !important;
}

.product-hero-image {
    min-height: 300px !important;
}

.product-hero-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 859px) {
    .product-image {
        min-height: 138px !important;
    }

    .choice-product-image {
        min-height: 108px !important;
    }

    .product-image img,
    .choice-product-image img {
        height: 100% !important;
    }

    .choice-product-image img {
        padding: 8px !important;
    }

    .product-hero-image {
        min-height: 260px !important;
    }
}

@media (max-width: 380px) {
    .product-image {
        min-height: 122px !important;
    }

    .choice-product-image {
        min-height: 98px !important;
    }
}

/* =========================================================
   PICKUP TIME UX — +30 MIN TO +1H WINDOW
   Keep this block at the very end.
========================================================= */

.pickup-time-card {
    display: grid;
    gap: 12px;
    border-radius: 28px;
    padding: 16px;
    background:
        radial-gradient(circle at top left, rgba(244, 201, 93, 0.18), transparent 36%),
        rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 24, 39, 0.07);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.pickup-time-heading {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.pickup-time-icon {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 26px;
}

.pickup-time-heading label {
    display: block;
    color: var(--green);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.pickup-time-heading strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.pickup-time-select {
    width: 100%;
    min-height: 58px;
    border: 2px solid rgba(18, 85, 57, 0.14);
    border-radius: 22px;
    padding: 0 16px;
    background: white;
    color: var(--ink);
    font-size: 22px;
    font-weight: 950;
    outline: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.pickup-time-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(18, 85, 57, 0.10);
}

.pickup-time-hint {
    border-radius: 18px;
    padding: 11px 12px;
    background: var(--green-soft-2);
    color: var(--green-dark);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 850;
}

.pickup-time-window {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    border-radius: 18px;
    padding: 10px 12px;
    background: rgba(17, 24, 39, 0.04);
}

.pickup-time-window span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pickup-time-window strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
}

@media (max-width: 480px) {
    .pickup-time-card {
        padding: 14px;
        border-radius: 24px;
    }

    .pickup-time-heading {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .pickup-time-icon {
        width: 48px;
        height: 48px;
        border-radius: 18px;
        font-size: 23px;
    }

    .pickup-time-heading strong {
        font-size: 16px;
    }

    .pickup-time-select {
        min-height: 56px;
        font-size: 20px;
    }

    .pickup-time-window {
        grid-template-columns: auto 1fr;
    }
}

/* =========================================================
   STORE CLOSED STATE
========================================================= */

.store-closed-panel {
    margin-bottom: 16px;
    border-radius: var(--radius-xl);
    padding: 22px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(185, 28, 28, 0.13), transparent 34%),
        rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(185, 28, 28, 0.18);
    box-shadow: var(--shadow-card);
}

.store-closed-icon {
    width: 72px;
    height: 72px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 34px;
}

.store-closed-copy span {
    color: var(--danger);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.store-closed-copy h2 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: clamp(34px, 7vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.store-closed-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 750;
}

.store-hours-box {
    width: fit-content;
    margin-top: 14px;
    border-radius: 18px;
    padding: 10px 12px;
    display: inline-grid;
    gap: 3px;
    background: rgba(17, 24, 39, 0.06);
}

.store-hours-box strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
}

.store-hours-box span {
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 950;
    letter-spacing: normal;
    text-transform: none;
}

.store-is-closed .mode-card,
.store-is-closed #goCheckoutBtn,
.store-is-closed #checkoutBtn {
    opacity: 0.48;
    cursor: not-allowed;
    filter: grayscale(0.18);
}

@media (max-width: 560px) {
    .store-closed-panel {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 20px;
    }

    .store-hours-box {
        width: 100%;
    }
}
