:root {
            --restaurant-bg: #fff7fa;
            --restaurant-surface: #ffffff;
            --restaurant-surface-soft: #fff0f5;
            --restaurant-text: #1f1f1f;
            --restaurant-muted: #8f6f7b;
            --restaurant-line: #f8dbe6;
            --restaurant-accent: #f277a2;
            --restaurant-accent-deep: #d9467b;
            --restaurant-danger: #ff4f40;
            --restaurant-danger-soft: #fff1ef;
            --restaurant-shadow: 0 10px 26px rgba(185, 74, 112, 0.1);
            --restaurant-radius: 20px;
            --restaurant-radius-soft: 16px;
            --restaurant-max-width: 1080px;
            --restaurant-font: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: var(--restaurant-font);
            color: var(--restaurant-text);
            background: var(--restaurant-bg);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            padding: 16px 16px 48px;
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        body.has-bottom-nav {
            padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
        }

        .app-shell,
        .page-header,
        .page-header > *,
        .surface-card,
        .chip-row,
        .floating-menu-panel,
        .drawer-panel,
        .cart-toast {
            min-width: 0;
            max-width: 100%;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

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

        img,
        video,
        svg {
            max-width: 100%;
        }

        button {
            cursor: pointer;
        }

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

        .app-shell {
            width: min(var(--restaurant-max-width), 100%);
            margin: 0 auto;
            display: grid;
            gap: 18px;
            max-width: 100%;
        }

        .app-shell.narrow {
            width: min(780px, 100%);
        }

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

        .page-header.compact {
            align-items: center;
        }

        .page-title {
            display: grid;
            gap: 8px;
            min-width: 0;
        }

        .page-title h1 {
            margin: 0;
            font-size: clamp(2.6rem, 6vw, 4rem);
            line-height: 0.96;
            font-weight: 900;
            letter-spacing: -0.05em;
            overflow-wrap: anywhere;
        }

        .page-header.compact .page-title h1 {
            font-size: clamp(2rem, 4.8vw, 2.5rem);
            line-height: 1;
        }

        .page-title p {
            margin: 0;
            color: var(--restaurant-muted);
            font-size: 1rem;
            line-height: 1.45;
            font-weight: 500;
            overflow-wrap: anywhere;
        }

        .page-header.compact .page-title p {
            font-size: 0.95rem;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: flex-end;
            flex-wrap: wrap;
            position: relative;
            min-width: 0;
        }

        html[dir='rtl'] .header-actions {
            justify-content: flex-start;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--restaurant-text);
            font-size: 1rem;
            font-weight: 500;
        }

        .back-link svg {
            width: 34px;
            height: 34px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.3;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .icon-button {
            width: 54px;
            height: 54px;
            border: 0;
            border-radius: 18px;
            background: transparent;
            color: var(--restaurant-text);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            flex-shrink: 0;
        }

        .icon-button svg {
            width: 31px;
            height: 31px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2.1;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .count-badge {
            position: absolute;
            top: 3px;
            inset-inline-end: 2px;
            min-width: 26px;
            height: 26px;
            padding: 0 6px;
            border-radius: 999px;
            background: var(--restaurant-accent);
            color: var(--restaurant-text);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            font-weight: 500;
            box-shadow: 0 2px 8px rgba(31, 31, 31, 0.12);
        }

        .surface-card {
            background: var(--restaurant-surface);
            border: 1px solid var(--restaurant-line);
            border-radius: var(--restaurant-radius);
            box-shadow: var(--restaurant-shadow);
        }

        .section-card {
            padding: 20px;
        }

        .section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }

        .section-head h2,
        .section-head h3 {
            margin: 0;
            font-size: 1.55rem;
            line-height: 1.1;
            font-weight: 800;
            letter-spacing: -0.03em;
        }

        .section-head p {
            margin: 6px 0 0;
            color: var(--restaurant-muted);
            font-size: 0.95rem;
            line-height: 1.45;
            font-weight: 500;
        }

        .inline-pill,
        .muted-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 42px;
            padding: 0 16px;
            border-radius: 999px;
            font-size: 0.95rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .inline-pill {
            background: #f1f1f1;
            color: var(--restaurant-text);
        }

        .muted-pill {
            background: #f5f3f0;
            color: var(--restaurant-muted);
        }

        .chip-row {
            display: flex;
            gap: 14px;
            overflow-x: auto;
            padding-inline: 2px;
            padding-bottom: 4px;
            scrollbar-width: none;
        }

        .chip-row::-webkit-scrollbar {
            display: none;
        }

        .chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 56px;
            padding: 0 28px;
            border-radius: 999px;
            background: #e7e5e3;
            color: var(--restaurant-text);
            font-size: 1.05rem;
            font-weight: 500;
            white-space: nowrap;
            border: 0;
        }

        .chip.active {
            background: var(--restaurant-accent);
        }

        .text-button,
        .secondary-button,
        .primary-button,
        .danger-button {
            min-height: 58px;
            padding: 0 28px;
            border-radius: 999px;
            border: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 1rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .text-button {
            min-height: 44px;
            padding: 0;
            background: transparent;
            color: var(--restaurant-text);
            justify-content: flex-start;
        }

        .secondary-button {
            background: var(--restaurant-surface);
            color: var(--restaurant-text);
            border: 1px solid var(--restaurant-line);
            box-shadow: 0 6px 16px rgba(31, 31, 31, 0.04);
        }

        .primary-button {
            background: var(--restaurant-accent);
            color: var(--restaurant-text);
            box-shadow: 0 10px 20px rgba(242, 119, 162, 0.28);
        }

        .danger-button {
            background: var(--restaurant-danger);
            color: #fff;
            box-shadow: 0 10px 20px rgba(255, 79, 64, 0.18);
        }

        .primary-button.full,
        .secondary-button.full,
        .danger-button.full {
            width: 100%;
        }

        .field-control,
        .field-select,
        .field-textarea {
            width: 100%;
            border: 1px solid var(--restaurant-line);
            border-radius: 18px;
            background: var(--restaurant-surface);
            color: var(--restaurant-text);
            font-size: 1rem;
            font-weight: 500;
        }

        .field-control,
        .field-select {
            min-height: 58px;
            padding: 0 18px;
        }

        .field-textarea {
            min-height: 110px;
            padding: 16px 18px;
            resize: none;
        }

        .field-control::placeholder,
        .field-textarea::placeholder {
            color: #9f9c97;
        }

        .drawer-scrim {
            position: fixed;
            inset: 0;
            background: rgba(31, 31, 31, 0.44);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            z-index: 210;
        }

        .drawer-scrim.open {
            opacity: 1;
            pointer-events: auto;
        }

        .drawer-panel {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            width: min(560px, calc(100vw - 20px));
            height: min(88vh, calc(100vh - 12px));
            max-height: min(88vh, calc(100vh - 12px));
            display: flex;
            flex-direction: column;
            gap: 0;
            background: var(--restaurant-surface);
            border-radius: 30px 30px 0 0;
            box-shadow: 0 -18px 48px rgba(31, 31, 31, 0.18);
            margin-inline: auto;
            overflow: hidden;
            transform: translateY(100%);
            transition: transform 0.24s ease;
            z-index: 220;
        }

        @supports (height: 100dvh) {
            .drawer-panel {
                height: min(88dvh, calc(100dvh - 12px));
                max-height: min(88dvh, calc(100dvh - 12px));
            }
        }

        .drawer-panel.open {
            transform: translateY(0);
        }

        .drawer-handle {
            width: 116px;
            height: 11px;
            border-radius: 999px;
            background: #cccccc;
            margin: 14px auto 8px;
            flex-shrink: 0;
        }

        .drawer-section {
            padding: 0 18px 18px;
            flex-shrink: 0;
        }

        .drawer-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .drawer-head h2 {
            margin: 0;
            font-size: 2rem;
            line-height: 1.02;
            font-weight: 900;
            letter-spacing: -0.04em;
        }

        .drawer-head p {
            margin: 4px 0 0;
            color: var(--restaurant-muted);
            font-size: 0.95rem;
            line-height: 1.45;
            font-weight: 500;
        }

        .drawer-body {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            padding: 0 18px 18px;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            scrollbar-gutter: stable both-edges;
        }

        .drawer-footer {
            position: relative;
            flex-shrink: 0;
            border-top: 1px solid var(--restaurant-line);
            padding: 16px 18px 20px;
            display: grid;
            gap: 16px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), #ffffff);
        }

        .empty-state {
            padding: 28px 18px;
            text-align: center;
            color: var(--restaurant-muted);
            font-size: 1rem;
            line-height: 1.5;
            font-weight: 500;
        }

        .status-note {
            padding: 14px 16px;
            border-radius: 18px;
            background: #faf8f5;
            color: var(--restaurant-muted);
            font-size: 0.95rem;
            line-height: 1.45;
            font-weight: 500;
            border: 1px solid var(--restaurant-line);
        }

        .cart-toast {
            position: fixed;
            left: 10px;
            right: 10px;
            bottom: 22px;
            transform: translateY(18px);
            width: auto;
            max-width: 520px;
            margin-inline: auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 18px;
            background: rgba(34, 34, 34, 0.96);
            color: #fff;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
            z-index: 240;
        }

        .cart-toast.show {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .restaurant-bottom-nav {
            position: fixed;
            left: 12px;
            right: 12px;
            bottom: calc(10px + env(safe-area-inset-bottom, 0px));
            width: min(520px, calc(100vw - 24px));
            margin-inline: auto;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            padding: 8px;
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid var(--restaurant-line);
            border-radius: 28px;
            box-shadow: 0 16px 34px rgba(31, 31, 31, 0.12);
            backdrop-filter: blur(14px);
            z-index: 205;
        }

        .restaurant-bottom-nav__link {
            position: relative;
            min-height: 56px;
            border-radius: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #8c8984;
            transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
        }

        .restaurant-bottom-nav__link svg {
            width: 24px;
            height: 24px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .restaurant-bottom-nav__link.is-active {
            background: rgba(242, 119, 162, 0.18);
            color: var(--restaurant-text);
        }

        .restaurant-bottom-nav__link.is-active::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 7px;
            width: 5px;
            height: 5px;
            border-radius: 999px;
            background: var(--restaurant-accent-deep);
            transform: translateX(-50%);
        }

        .restaurant-bottom-nav__link:focus-visible {
            outline: none;
            box-shadow: inset 0 0 0 2px rgba(31, 31, 31, 0.12);
        }

        body.has-bottom-nav .cart-toast {
            bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        }

        body.has-bottom-nav .cta-bar {
            bottom: calc(92px + env(safe-area-inset-bottom, 0px));
        }

        .cart-toast-text {
            font-size: 0.92rem;
            line-height: 1.4;
            font-weight: 500;
        }

        .cart-toast-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 0 18px;
            border-radius: 999px;
            background: var(--restaurant-accent);
            color: var(--restaurant-text);
            font-size: 0.92rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .floating-menu {
            position: relative;
        }

        .floating-menu-panel {
            position: absolute;
            top: calc(100% + 8px);
            inset-inline-end: 0;
            width: min(320px, calc(100vw - 20px));
            min-width: 0;
            max-width: calc(100vw - 20px);
            display: none;
            gap: 8px;
            padding: 12px;
            background: var(--restaurant-surface);
            border: 1px solid var(--restaurant-line);
            border-radius: 18px;
            box-shadow: 0 14px 28px rgba(31, 31, 31, 0.12);
            z-index: 180;
            overflow-y: auto;
            overscroll-behavior: contain;
        }

        .floating-menu.open .floating-menu-panel {
            display: grid;
        }

        .floating-menu-panel form {
            margin: 0;
            display: grid;
            gap: 10px;
            min-width: 0;
        }

        .floating-menu-panel .secondary-button,
        .floating-menu-panel .primary-button,
        .floating-menu-panel .danger-button,
        .floating-menu-panel .field-control,
        .floating-menu-panel .field-select,
        .floating-menu-panel .field-textarea {
            min-width: 0;
        }

        .floating-menu-title {
            color: var(--restaurant-muted);
            font-size: 0.84rem;
            line-height: 1.35;
            font-weight: 700;
        }

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

        .segment-chip {
            position: relative;
            min-height: 56px;
            border-radius: 18px;
            border: 1px solid var(--restaurant-line);
            background: var(--restaurant-surface-soft);
            color: var(--restaurant-text);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 14px;
            text-align: center;
            font-size: 1rem;
            line-height: 1.3;
            font-weight: 500;
            overflow: hidden;
        }

        .segment-chip input {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
        }

        .segment-chip:has(input:checked) {
            background: var(--restaurant-accent);
            border-color: transparent;
            box-shadow: 0 10px 20px rgba(242, 119, 162, 0.2);
        }

        .card.store-footer {
            background: var(--restaurant-surface);
            border: 1px solid var(--restaurant-line);
            border-radius: var(--restaurant-radius);
            box-shadow: var(--restaurant-shadow);
            padding: 20px;
        }

        .store-footer-grid {
            display: grid;
            gap: 12px;
        }

        .store-footer-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .store-footer-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 0 16px;
            border-radius: 999px;
            background: #f1efec;
            color: var(--restaurant-text);
            font-size: 0.95rem;
            line-height: 1;
            font-weight: 500;
        }

        .store-footer-social {
            display: grid;
            gap: 8px;
        }

        .store-footer-social strong {
            color: var(--restaurant-muted);
            font-size: 0.92rem;
            font-weight: 700;
        }

        @media (max-width: 720px) {
            body {
                padding: 10px 10px 40px;
            }

            body.has-bottom-nav {
                padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
            }

            .app-shell {
                gap: 14px;
            }

            .page-header {
                flex-direction: column;
                align-items: stretch;
            }

            .page-title h1 {
                font-size: clamp(2rem, 12vw, 3rem);
            }

            .page-title p,
            .section-head p,
            .status-note {
                font-size: 0.9rem;
            }

            .page-header {
                gap: 10px;
            }

            .page-header.compact {
                align-items: flex-start;
                flex-direction: column;
            }

            .header-actions {
                width: 100%;
                justify-content: flex-end;
                position: static;
                align-self: flex-end;
            }

            html[dir='rtl'] .header-actions {
                justify-content: flex-start;
            }

            .icon-button {
                width: 50px;
                height: 50px;
                border-radius: 16px;
            }

            .icon-button svg {
                width: 28px;
                height: 28px;
            }

            .count-badge {
                min-width: 24px;
                height: 24px;
                font-size: 0.92rem;
            }

            .section-card {
                padding: 16px;
            }

            .chip {
                min-height: 50px;
                padding: 0 22px;
                font-size: 0.95rem;
            }

            .text-button,
            .secondary-button,
            .primary-button,
            .danger-button {
                min-height: 54px;
                padding: 0 22px;
                font-size: 0.95rem;
            }

            .field-control,
            .field-select {
                min-height: 54px;
                font-size: 0.95rem;
            }

            .field-textarea {
                font-size: 0.95rem;
            }

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

            .drawer-panel {
                width: calc(100vw - 20px);
            }

            .drawer-head h2 {
                font-size: 1.7rem;
            }

            .cart-toast {
                width: calc(100vw - 20px);
            }

            .restaurant-bottom-nav {
                left: 10px;
                right: 10px;
                width: calc(100vw - 20px);
            }

            .floating-menu-panel {
                position: fixed;
                top: 74px;
                left: 10px;
                right: 10px;
                inset-inline-end: auto;
                width: auto;
                max-width: none;
                max-height: calc(100vh - 94px);
                z-index: 260;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 8px 8px 36px;
            }

            body.has-bottom-nav {
                padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
            }

            .page-title h1 {
                font-size: clamp(1.65rem, 9vw, 2.15rem);
            }

            .chip {
                min-height: 46px;
                padding: 0 18px;
                font-size: 0.9rem;
            }

            .text-button,
            .secondary-button,
            .primary-button,
            .danger-button {
                min-height: 50px;
                padding: 0 18px;
                font-size: 0.92rem;
            }

            .icon-button {
                width: 46px;
                height: 46px;
                border-radius: 14px;
            }

            .icon-button svg {
                width: 24px;
                height: 24px;
            }

            .floating-menu-panel {
                top: 68px;
            }

            .restaurant-bottom-nav {
                left: 8px;
                right: 8px;
                width: calc(100vw - 16px);
                gap: 6px;
                padding: 7px;
                border-radius: 24px;
            }

            .restaurant-bottom-nav__link {
                min-height: 52px;
                border-radius: 16px;
            }

            .restaurant-bottom-nav__link svg {
                width: 22px;
                height: 22px;
            }
        }

        @media (max-width: 420px) {
            .segment-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 360px) {
            body {
                padding: 6px 6px 32px;
            }

            body.has-bottom-nav {
                padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px));
            }

            .app-shell {
                gap: 10px;
            }

            .page-title h1 {
                font-size: 1.55rem;
            }

            .page-title p,
            .section-head p,
            .status-note {
                font-size: 0.84rem;
            }

            .header-actions {
                gap: 6px;
            }

            .icon-button {
                width: 42px;
                height: 42px;
                border-radius: 12px;
            }

            .icon-button svg {
                width: 22px;
                height: 22px;
            }

            .chip {
                min-height: 42px;
                padding: 0 14px;
                font-size: 0.84rem;
            }

            .floating-menu-panel {
                top: 62px;
                left: 6px;
                right: 6px;
                width: auto;
            }

            .drawer-panel {
                width: calc(100vw - 12px);
            }

            .cart-toast {
                left: 6px;
                right: 6px;
            }

            .restaurant-bottom-nav {
                left: 6px;
                right: 6px;
                width: calc(100vw - 12px);
                gap: 4px;
                padding: 6px;
            }

            .restaurant-bottom-nav__link {
                min-height: 48px;
            }
        }
