:root {
    --pm-bg: #faf8f5;
    --pm-surface: #ffffff;
    --pm-surface-2: #f3f0eb;
    --pm-text: #1a1614;
    --pm-muted: #6b6560;
    --pm-border: rgba(26, 22, 20, 0.08);
    --pm-accent: #b8324d;
    --pm-accent-foreground: #ffffff;
    --pm-accent-soft: color-mix(in srgb, var(--pm-accent) 10%, transparent);
    --pm-accent-shadow-sm: 0 4px 12px color-mix(in srgb, var(--pm-accent) 30%, transparent);
    --pm-accent-shadow-md: 0 6px 20px color-mix(in srgb, var(--pm-accent) 40%, transparent);
    --pm-accent-shadow-lg: 0 4px 16px color-mix(in srgb, var(--pm-accent) 35%, transparent);
    --pm-like: #2d8a4e;
    --pm-like-soft: rgba(45, 138, 78, 0.12);
    --pm-dislike: #c53030;
    --pm-dislike-soft: rgba(197, 48, 48, 0.12);
    --pm-shadow: 0 4px 24px rgba(26, 22, 20, 0.06);
    --pm-toolbar-expanded-h: 6.5rem;
    --pm-cat-h: 2.75rem;
    --pm-sticky-header-h: calc(var(--pm-toolbar-expanded-h) + var(--pm-cat-h));
    --pm-font: "DM Sans", system-ui, sans-serif;
    --pm-display: "Playfair Display", Georgia, serif;
    --pm-max: 520px;
    --pm-page-gutter: 0.75rem;
    --pm-sticky-top: 0px;
    --pm-toolbar-btn-h: 42px;
    --pm-toolbar-gap: 0.35rem;
    --pm-toolbar-radius: 12px;
    --pm-toolbar-shadow: 0 1px 4px rgba(26, 22, 20, 0.07);
    --pm-sticky-bg: rgba(250, 248, 245, 0.97);
    --pm-hero-cover-fade: linear-gradient(180deg, rgba(250, 248, 245, 0) 62%, rgba(250, 248, 245, 0.8) 88%, var(--pm-surface) 100%);
    --pm-welcome-cover-fade: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(250, 248, 245, 0.85) 100%);
    --pm-backdrop: rgba(26, 22, 20, 0.45);
    --pm-sheet-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    --pm-locale-panel-shadow: 0 10px 28px rgba(28, 25, 23, 0.14);
    --pm-category-grid-overlay: linear-gradient(to top, rgba(26, 22, 20, 0.72) 0%, rgba(26, 22, 20, 0.1) 55%, transparent 100%);
    --pm-surface-elevated: rgba(0, 0, 0, 0.04);
    --pm-text-secondary: #6b6560;
    --pm-toast-bg: rgba(26, 22, 20, 0.92);
    --pm-toast-fg: #ffffff;
    --pm-popup-scrim: rgba(15, 12, 10, 0.55);
    --pm-popup-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    --pm-hero-cover-h: 140px;
    --pm-hero-logo-size: 72px;
    --pm-hero-body-offset: 3.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body.public-menu-body {
    margin: 0;
    font-family: var(--pm-font);
    font-size: 15px;
    background: var(--pm-bg);
    color: var(--pm-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-sheet-open {
    overflow: hidden;
}

.menu-app {
    max-width: var(--pm-max);
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--pm-bg);
    display: flex;
    flex-direction: column;
    width: 100%;
    /* overflow-x: hidden sticky header'ı bozar; yatay taşmayı body keser */
    overflow-x: visible;
}

/* --- Hero --- */
.menu-hero {
    position: relative;
    overflow: hidden;
    background: var(--pm-surface);
    border-bottom: 1px solid var(--pm-border);
}

.menu-hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pm-hero-cover-h);
    overflow: hidden;
    pointer-events: none;
}

.menu-hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.85);
    transform: scale(1.05);
}

.menu-hero-cover-fade {
    position: absolute;
    inset: 0;
    background: var(--pm-hero-cover-fade);
}

.menu-hero-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem var(--pm-page-gutter) 1.5rem;
    text-align: center;
}

.menu-hero-cover + .menu-hero-body {
    padding-top: var(--pm-hero-body-offset);
}

.menu-hero-logo {
    width: var(--pm-hero-logo-size);
    height: var(--pm-hero-logo-size);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    display: block;
    box-shadow: var(--pm-shadow), 0 0 0 4px var(--pm-surface);
    border: 1px solid var(--pm-border);
}

.menu-hero-logo--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--pm-hero-logo-size);
    height: var(--pm-hero-logo-size);
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
    font-size: calc(var(--pm-hero-logo-size) * 0.4);
}

.menu-hero-title {
    font-family: var(--pm-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 1rem 0 0.2rem;
    line-height: 1.2;
}

.menu-hero-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pm-accent);
    margin: 0 0 0.5rem;
}

.menu-hero-desc {
    font-size: 0.9rem;
    color: var(--pm-muted);
    margin: 0 auto 0.75rem;
    max-width: 28rem;
    line-height: 1.5;
}

.menu-hero-stats {
    font-size: 0.8rem;
    color: var(--pm-muted);
}

.menu-hero-stats strong {
    color: var(--pm-text);
    font-weight: 600;
}

.menu-hero-stats-dot {
    margin: 0 0.35rem;
}

/* --- Sticky header (toolbar + kategori şeridi tek blok) --- */
.menu-sticky-header {
    position: -webkit-sticky;
    position: sticky;
    top: var(--pm-sticky-top);
    z-index: 200;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    background: var(--pm-sticky-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pm-border);
}

.menu-toolbar {
    width: 100%;
}

.menu-sticky-header .menu-toolbar {
    border-bottom: none;
}

.menu-toolbar-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem max(var(--pm-page-gutter), env(safe-area-inset-right, 0px)) 0.55rem max(var(--pm-page-gutter), env(safe-area-inset-left, 0px));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.menu-toolbar-controls {
    display: flex;
    align-items: center;
    gap: var(--pm-toolbar-gap);
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.menu-toolbar-locales {
    display: flex;
    align-items: center;
    gap: var(--pm-toolbar-gap);
    flex: 0 0 auto;
    min-width: 0;
}

.menu-toolbar-utilities {
    display: flex;
    align-items: stretch;
    gap: var(--pm-toolbar-gap);
    flex: 1 1 0%;
    min-width: 0;
}

.menu-toolbar-back.menu-back-root {
    width: var(--pm-toolbar-btn-h);
    height: var(--pm-toolbar-btn-h);
    flex-shrink: 0;
    border: none;
    box-shadow: none;
}

/* Dil / para: ayrı kompakt tetikleyiciler, panelde pill switch */
.menu-locale-dropdown {
    position: relative;
    flex-shrink: 0;
}

.menu-locale-trigger {
    width: auto;
    min-width: 2.75rem;
    height: var(--pm-toolbar-btn-h);
    padding: 0 0.45rem 0 0.55rem;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-toolbar-radius);
    background: var(--pm-surface);
    box-shadow: var(--pm-toolbar-shadow);
    color: var(--pm-text);
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    line-height: 1;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.menu-locale-trigger:hover,
.menu-locale-trigger.is-open {
    border-color: var(--pm-accent);
    color: var(--pm-accent);
}

.menu-locale-trigger-value {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.menu-locale-trigger--currency .menu-locale-trigger-value {
    font-size: 1rem;
    font-weight: 600;
}

.menu-locale-trigger-caret {
    font-size: 0.6rem;
    margin-top: 0.1rem;
    margin-left: 0.2rem;
    opacity: 0.55;
    flex-shrink: 0;
    line-height: 1;
}

.menu-locale-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 320;
    min-width: min(100%, 12rem);
    padding: 0.45rem;
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: 14px;
    box-shadow: var(--pm-locale-panel-shadow);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.menu-locale-panel[hidden] {
    display: none !important;
}

.menu-locale-panel .menu-lang-switch {
    width: 100%;
    justify-content: center;
}

.menu-search-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.menu-search-back.menu-toolbar-back,
.menu-search-action {
    flex-shrink: 0;
}

.menu-toolbar-controls--no-utilities > .menu-toolbar-info-fill {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none;
    justify-content: center;
    border-radius: var(--pm-toolbar-radius);
}

.menu-toolbar-info-end {
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.menu-search-action {
    width: var(--pm-toolbar-btn-h);
    height: var(--pm-toolbar-btn-h);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--pm-text);
}

.menu-search-action:hover {
    border-color: var(--pm-accent);
    color: var(--pm-accent);
}

.menu-search-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: 999px;
    padding: 0 0.85rem;
    box-shadow: var(--pm-toolbar-shadow);
    min-width: 0;
}

.menu-search-icon {
    color: var(--pm-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.menu-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.7rem 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--pm-text);
    min-width: 0;
}

.menu-search-input:focus {
    outline: none;
}

.menu-search-input::placeholder {
    color: var(--pm-muted);
}

.menu-search-clear {
    border: none;
    background: var(--pm-surface-2);
    color: var(--pm-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-icon-btn {
    width: var(--pm-toolbar-btn-h);
    height: var(--pm-toolbar-btn-h);
    flex-shrink: 0;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-toolbar-radius);
    background: var(--pm-surface);
    color: var(--pm-text);
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--pm-toolbar-shadow);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.menu-icon-btn:hover {
    border-color: var(--pm-accent);
}

.menu-icon-btn--labeled:hover {
    color: var(--pm-accent);
}

.menu-icon-btn--waiter,
.menu-icon-btn--waiter .menu-icon-btn-label {
    color: var(--pm-accent);
}

.menu-icon-btn--waiter:hover {
    border-color: var(--pm-accent);
    background: var(--pm-surface);
}

.menu-icon-btn--waiter:hover,
.menu-icon-btn--waiter:hover .menu-icon-btn-label {
    color: var(--pm-accent);
}

.menu-icon-btn--labeled {
    width: auto;
    height: var(--pm-toolbar-btn-h);
    min-width: 0;
    padding: 0 0.5rem;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
}

.menu-icon-btn--labeled > i {
    font-size: 1rem;
    flex-shrink: 0;
}

.menu-icon-btn--toolbar-fill {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none;
    justify-content: center;
}

.menu-icon-btn--toolbar-fill .menu-icon-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.menu-toolbar-utilities > .menu-icon-btn--labeled {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none;
    justify-content: center;
    padding: 0 0.55rem;
}

.menu-toolbar-utilities > .menu-icon-btn--labeled .menu-icon-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.menu-icon-btn--labeled .menu-icon-btn-label {
    line-height: 1.15;
    flex: 0 1 auto;
}

/* --- Category bar --- */
.menu-cat-bar {
    width: 100%;
    max-width: 100%;
    background: inherit;
    box-sizing: border-box;
}

.menu-cat-bar-inner {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.55rem var(--pm-page-gutter);
    box-sizing: border-box;
    scroll-padding-inline: var(--pm-page-gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.menu-cat-bar-inner::-webkit-scrollbar {
    display: none;
}

.menu-cat-chip {
    flex-shrink: 0;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--pm-muted);
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.menu-cat-chip:hover {
    color: var(--pm-accent);
    border-color: var(--pm-accent);
}

.menu-cat-chip.is-active {
    background: var(--pm-accent);
    border-color: var(--pm-accent);
    color: var(--pm-accent-foreground);
    box-shadow: var(--pm-accent-shadow-sm);
}

/* --- Main --- */
.menu-main {
    padding: 0.75rem var(--pm-page-gutter) 2rem;
    flex: 1;
    width: 100%;
    min-width: 0;
}

.menu-search-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--pm-muted);
}

.menu-search-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.menu-section {
    margin-bottom: 1.5rem;
    scroll-margin-top: calc(var(--pm-sticky-header-h) + 12px);
}

.menu-section.is-hidden {
    display: none;
}

.menu-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem 0.35rem;
}

.menu-section-title {
    font-family: var(--pm-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
}

.menu-section-count {
    font-size: 0.75rem;
    color: var(--pm-muted);
    white-space: nowrap;
}

.menu-section-lead {
    font-size: 0.875rem;
    color: var(--pm-muted);
    margin: 0 0.5rem 0.75rem;
    padding: 0 0.25rem;
    line-height: 1.55;
}

.menu-product-list {
    background: var(--pm-surface);
    border-radius: 16px;
    border: 1px solid var(--pm-border);
    box-shadow: var(--pm-shadow);
    overflow: hidden;
}

/* --- Product item (Tabpad tarzı liste) --- */
.menu-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem;
    border-bottom: 1px solid var(--pm-border);
    transition: background 0.15s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item.is-hidden {
    display: none;
}

.menu-item-media {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--pm-surface-2);
}

.menu-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-item-content {
    flex: 1;
    min-width: 0;
}

.menu-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.2rem;
}

.menu-item-head {
    flex: 1;
    min-width: 0;
}

.menu-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.product-detail-badges {
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

.menu-product-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.3;
}

.menu-product-badge--popular {
    background: #fff3e6;
    color: #c45c00;
}

.menu-product-badge--chef {
    background: rgba(26, 92, 78, 0.12);
    color: #1a5c4e;
}

.menu-product-badge--new {
    background: #e8f5e9;
    color: #2e7d32;
}

.menu-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.menu-item-price {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--pm-accent);
    white-space: nowrap;
}

.menu-item-text {
    font-size: 0.8125rem;
    color: var(--pm-muted);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Footer & FAB --- */
.menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem var(--pm-page-gutter) 1.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pm-muted);
}

.menu-footer-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--pm-border);
    background: var(--pm-surface);
    color: var(--pm-text);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: none;
    cursor: pointer;
}

.menu-footer-brand {
    font-size: 0.65rem;
    color: var(--pm-muted);
}

.menu-sheet--tall {
    max-height: min(92vh, 720px);
}

.menu-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-feedback-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.menu-feedback-type {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--pm-border);
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.menu-feedback-type:has(input:checked) {
    border-color: var(--pm-accent);
    background: color-mix(in srgb, var(--pm-accent) 8%, transparent);
}

.menu-feedback-type input {
    accent-color: var(--pm-accent);
}

.menu-feedback-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-feedback-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pm-text);
}

.menu-feedback-field textarea,
.menu-feedback-field input[type="text"] {
    width: 100%;
    border: 1px solid var(--pm-border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    background: var(--pm-surface);
    color: var(--pm-text);
    resize: vertical;
}

.menu-feedback-rating {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-feedback-stars {
    display: flex;
    gap: 0.25rem;
}

.menu-feedback-star {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--pm-border);
    cursor: pointer;
    padding: 0 0.1rem;
}

.menu-feedback-star.is-active {
    color: #e6a817;
}

.menu-feedback-status {
    font-size: 0.85rem;
    margin: 0;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
}

.menu-feedback-status.is-success {
    background: rgba(34, 139, 34, 0.12);
    color: #1d6b1d;
}

.menu-feedback-status.is-error {
    background: color-mix(in srgb, var(--pm-accent) 12%, transparent);
    color: var(--pm-accent);
}

.menu-feedback-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.menu-feedback-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.menu-fab {
    position: fixed;
    border: none;
    cursor: pointer;
    z-index: 150;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.menu-fab--scroll {
    right: max(1rem, calc(50% - var(--pm-max) / 2 + 1rem));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
    font-size: 1.2rem;
    box-shadow: var(--pm-accent-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.menu-waiter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-fab.is-visible,
.menu-fab--scroll.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Bottom sheets --- */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: var(--pm-backdrop);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: var(--pm-max);
    max-height: 85dvh;
    background: var(--pm-surface);
    border-radius: 20px 20px 0 0;
    z-index: 310;
    transform: translate(-50%, 100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--pm-sheet-shadow);
}

.menu-sheet.is-open {
    transform: translate(-50%, 0);
}

.menu-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--pm-border);
    border-radius: 4px;
    margin: 0.65rem auto 0;
    flex-shrink: 0;
}

.menu-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--pm-border);
    flex-shrink: 0;
}

.menu-sheet-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.menu-sheet-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--pm-surface-2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-text);
}

.menu-sheet-body {
    padding: 1rem 1.25rem 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    flex: 1;
}

.menu-sheet-lead {
    font-family: var(--pm-display);
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.menu-sheet-note {
    font-size: 0.8rem;
    margin-top: 1rem;
}

.text-muted-style {
    color: var(--pm-muted);
}

.menu-hours-details {
    margin: 0 1rem 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--pm-bg);
    border-radius: 12px;
    font-size: 0.85rem;
}

.menu-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.menu-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.menu-hours-day {
    color: var(--pm-muted);
}

.menu-hours-time {
    font-weight: 600;
    color: var(--pm-text);
    text-align: right;
}

.menu-hours-time--closed {
    font-weight: 500;
    color: var(--pm-muted);
}

.menu-action-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-action-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--pm-surface-2);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--pm-border);
    transition: border-color 0.15s, background 0.15s;
}

.menu-action-card:hover {
    border-color: var(--pm-accent);
    background: var(--pm-accent-soft);
}

.menu-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--pm-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.menu-action-text {
    flex: 1;
    min-width: 0;
}

.menu-action-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pm-muted);
}

.menu-action-value {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-word;
}

.menu-action-chevron {
    color: var(--pm-muted);
    flex-shrink: 0;
}

.menu-picker-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--pm-border);
    text-decoration: none;
    color: var(--pm-text);
    font-weight: 500;
    transition: background 0.15s;
}

.menu-picker-item:last-child {
    border-bottom: none;
}

.menu-picker-item:hover {
    background: var(--pm-accent-soft);
}

.menu-picker-item.is-current {
    background: var(--pm-accent-soft);
    color: var(--pm-accent);
}

.menu-picker-check {
    color: var(--pm-accent);
    font-size: 1.25rem;
}

.menu-lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 42px;
    padding: 3px;
    border: 1px solid var(--pm-border);
    border-radius: 999px;
    background: var(--pm-surface);
    flex-shrink: 0;
    box-sizing: border-box;
}

.menu-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 100%;
    margin: 0;
    padding: 0 0.55rem;
    border: none;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    color: var(--pm-muted);
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.menu-currency-switch .menu-lang-btn {
    min-width: 2.15rem;
    font-size: 1rem;
    padding: 0 0.4rem;
    /* Sembollerin optik dikey ortası */
    padding-bottom: 1px;
}

.menu-lang-btn.is-active {
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
}

.menu-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.menu-item-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: var(--pm-muted);
    background: var(--pm-bg);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
}

.menu-item-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.menu-allergen-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
}

.menu-allergen-chip .bi {
    font-size: 0.75rem;
}

.menu-item--unavailable {
    opacity: 0.72;
}

.menu-item--unavailable .menu-item-img {
    filter: grayscale(0.35);
}

.menu-item--unavailable .menu-item-title,
.menu-item--unavailable .menu-item-text {
    color: var(--pm-muted);
}

.menu-item--unavailable .menu-item-price {
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, 0.25);
}

.menu-item-link {
    display: flex;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-item-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--pm-shadow);
}

.menu-item-link:focus-visible {
    outline: 2px solid var(--pm-accent);
    outline-offset: 2px;
}

/* --- Product detail --- */
.product-detail-sticky-header .menu-toolbar-inner {
    padding-bottom: 0.55rem;
}

.product-detail-nav-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.product-detail-nav-row > .menu-toolbar-info-fill {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none;
    justify-content: center;
    border-radius: var(--pm-toolbar-radius);
}

.product-detail-main {
    flex: 1;
}

.product-detail-main--unavailable {
    opacity: 0.85;
}

.product-detail-hero {
    background: var(--pm-surface-2);
}

.product-detail-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.product-detail-body {
    padding: 1.25rem var(--pm-page-gutter) 2rem;
}

.product-detail-title {
    font-family: var(--pm-display);
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.product-reactions {
    display: flex;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
}

.product-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--pm-border);
    background: var(--pm-surface);
    color: var(--pm-muted);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.product-reaction-btn--like:hover {
    border-color: var(--pm-like);
    color: var(--pm-like);
}

.product-reaction-btn--dislike:hover {
    border-color: var(--pm-dislike);
    color: var(--pm-dislike);
}

.product-reaction-btn--like.is-active {
    border-color: var(--pm-like);
    color: var(--pm-like);
    background: var(--pm-like-soft);
}

.product-reaction-btn--dislike.is-active {
    border-color: var(--pm-dislike);
    color: var(--pm-dislike);
    background: var(--pm-dislike-soft);
}

.product-reaction-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.product-reaction-count {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.product-detail-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pm-accent);
    margin: 0.5rem 0 0.75rem;
}

.product-detail-desc {
    color: var(--pm-muted);
    margin: 1rem 0 0;
    line-height: 1.55;
}

.product-detail-variants {
    margin-top: 1.25rem;
}

.product-detail-variants-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pm-muted);
    margin: 0 0 0.5rem;
}

.product-variant-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-variant-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--pm-border);
    border-radius: 12px;
    background: var(--pm-surface);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.product-variant-option input {
    accent-color: var(--pm-accent);
}

.product-variant-option.is-selected,
.product-variant-option:has(input:checked) {
    border-color: var(--pm-accent);
    background: var(--pm-accent-soft);
}

.product-variant-name {
    flex: 1;
    font-weight: 500;
}

.product-variant-price {
    font-weight: 600;
    color: var(--pm-accent);
}

.menu-item-badge-unavailable {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 999px;
}

.menu-action-card--button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.menu-wifi-details {
    margin: 0 1rem 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--pm-bg);
    border-radius: 12px;
    font-size: 0.85rem;
}

.menu-wifi-details p {
    margin: 0 0 0.35rem;
}

.menu-wifi-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--pm-border);
    border-radius: 999px;
    background: var(--pm-surface);
    color: var(--pm-accent);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.menu-social-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.2rem, 2vw, 0.5rem);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pm-border);
    width: 100%;
    min-width: 0;
}

.menu-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pm-accent-soft);
    color: var(--pm-accent);
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.15s, background 0.15s;
}

.menu-social-row .menu-social-btn {
    flex: 1 1 0;
    min-width: 1.75rem;
    max-width: 2.5rem;
    width: auto;
    height: auto;
    aspect-ratio: 1;
    font-size: clamp(0.78rem, 2.8vw, 1.1rem);
}

.menu-social-btn:hover {
    transform: scale(1.05);
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
}

/* --- Root category grid --- */
.menu-back-root {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pm-surface-2);
    color: var(--pm-text);
    text-decoration: none;
}

.menu-category-grid-section {
    padding: 0 0 1.25rem;
    width: 100%;
}

.menu-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.menu-category-grid-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-category-grid-card.is-hidden {
    display: none;
}

.menu-category-grid-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--pm-surface-2);
    box-shadow: var(--pm-shadow);
    border: 1px solid var(--pm-border);
}

.menu-category-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-category-grid-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-muted);
    font-size: 2rem;
    background: linear-gradient(145deg, var(--pm-surface-2), var(--pm-surface));
}

.menu-category-grid-overlay {
    position: absolute;
    inset: 0;
    background: var(--pm-category-grid-overlay);
    pointer-events: none;
}

.menu-category-grid-name {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.65rem;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.menu-category-grid-meta {
    margin: 0;
    font-size: 0.75rem;
    color: var(--pm-muted);
    text-align: center;
}

@media (min-width: 480px) {
    .menu-category-grid {
        gap: 1rem;
    }
}

/* --- Responsive: tablet & desktop --- */
@media (min-width: 640px) {
    :root {
        --pm-max: min(100%, calc(100vw - 2rem));
        --pm-page-gutter: 1rem;
    }

    .menu-recommended-scroll {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
        overflow: visible;
        scroll-snap-type: none;
    }

    .menu-recommended-card {
        flex: unset;
        scroll-snap-align: unset;
        min-width: 0;
    }

    .menu-recommended-card:only-child {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        width: 100%;
        max-width: none;
        justify-self: stretch;
        text-align: left;
    }

    .menu-recommended-card:only-child .menu-recommended-media {
        width: 7.5rem;
        flex-shrink: 0;
    }

    .menu-recommended-card:only-child .menu-recommended-name {
        text-align: left;
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }

    .menu-recommended-name {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    :root {
        --pm-max: min(100%, calc(100vw - 2.5rem));
        --pm-page-gutter: 1.25rem;
        --pm-toolbar-expanded-h: 5.75rem;
        --pm-hero-cover-h: 152px;
        --pm-hero-logo-size: 76px;
        --pm-hero-body-offset: 3.75rem;
    }

    body.public-menu-body {
        background: var(--pm-surface-2);
    }

    .menu-app {
        border-left: 1px solid var(--pm-border);
        border-right: 1px solid var(--pm-border);
        box-shadow: var(--pm-shadow);
    }

    .menu-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .menu-category-grid-name {
        font-size: 1rem;
    }

    .menu-main {
        padding-bottom: 2.5rem;
    }

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

    .menu-product-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        padding: 0.75rem;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .menu-item {
        margin: 0;
        border: 1px solid var(--pm-border);
        border-radius: 14px;
        border-bottom: 1px solid var(--pm-border);
        background: var(--pm-surface);
        box-shadow: var(--pm-shadow);
    }

    .menu-item:last-child {
        border-bottom: 1px solid var(--pm-border);
    }

    .welcome-cover {
        max-width: min(100%, 560px);
    }

    .welcome-cover-img {
        height: 180px;
    }

    .welcome-actions {
        max-width: 360px;
    }

    .public-unavailable-card {
        max-width: 420px;
    }

    .menu-campaign-dialog {
        width: min(100%, 28rem);
    }

    .product-detail-img {
        max-height: 420px;
    }
}

@media (min-width: 1024px) {
    :root {
        --pm-max: min(960px, calc(100vw - 3rem));
        --pm-page-gutter: 1.5rem;
    }

    .menu-category-grid {
        gap: 1.25rem;
    }

    .menu-section-title {
        font-size: 1.5rem;
    }

    .menu-recommended-scroll {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .menu-product-list {
        gap: 1rem;
        padding: 1rem;
    }

    .welcome-cover {
        max-width: min(100%, 640px);
    }

    .welcome-title {
        font-size: 2rem;
    }
}

@media (min-width: 1280px) {
    :root {
        --pm-max: min(1080px, calc(100vw - 4rem));
    }

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

    .menu-recommended-scroll {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* --- Recommended products strip --- */
.menu-recommended {
    margin: 0 0 1.25rem;
    padding: 1rem;
    width: 100%;
    background: var(--pm-surface);
    border-radius: 16px;
    box-shadow: var(--pm-shadow);
    border: 1px solid var(--pm-border);
}

.menu-recommended-title {
    font-family: var(--pm-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    color: var(--pm-text);
}

.menu-recommended-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.menu-recommended-scroll::-webkit-scrollbar {
    display: none;
}

.menu-recommended-card {
    flex: 0 0 6.5rem;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.menu-recommended-media {
    width: 100%;
}

.menu-recommended-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: var(--pm-surface-2);
}

.menu-recommended-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-muted);
    font-size: 1.5rem;
}

.menu-recommended-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-recommended-card--unavailable {
    opacity: 0.55;
}

.menu-recommended-card--unavailable .menu-recommended-img {
    filter: grayscale(0.6);
}

.menu-recommended-card.is-hidden {
    display: none;
}

.menu-recommended.is-hidden {
    display: none;
}

/* --- Welcome landing --- */
.welcome-app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.welcome-social-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--pm-surface);
    border-bottom: 1px solid var(--pm-border);
    padding: 0.65rem 1rem;
}

.welcome-social-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(0.25rem, 1.2vw, 0.5rem);
}

.welcome-social-inner .menu-social-btn {
    flex: 0 0 auto;
    width: clamp(2rem, 8.5vw, 2.5rem);
    height: clamp(2rem, 8.5vw, 2.5rem);
    font-size: clamp(0.92rem, 3.8vw, 1.1rem);
}

.welcome-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 3rem;
    text-align: center;
}

.welcome-cover {
    width: 100%;
    max-width: 420px;
    margin: -0.5rem auto 1.25rem;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--pm-shadow);
    border: 1px solid var(--pm-border);
}

.welcome-cover-img {
    width: 100%;
    height: 136px;
    object-fit: cover;
    display: block;
}

.welcome-cover-fade {
    position: absolute;
    inset: 0;
    background: var(--pm-welcome-cover-fade);
    pointer-events: none;
}

.welcome-hero {
    margin-bottom: 2rem;
}

.welcome-logo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: var(--pm-shadow);
    border: 3px solid var(--pm-surface);
}

.welcome-logo--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
    font-size: 2rem;
}

.welcome-title {
    font-family: var(--pm-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.welcome-tagline {
    color: var(--pm-muted);
    margin: 0;
    font-size: 1rem;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
}

.welcome-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: transform 0.15s, box-shadow 0.15s;
}

.welcome-cta--primary {
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
    box-shadow: var(--pm-accent-shadow-lg);
}

.welcome-cta--secondary {
    background: var(--pm-surface);
    color: var(--pm-text);
    border: 1px solid var(--pm-border);
}

.welcome-cta:hover {
    transform: translateY(-1px);
}

.welcome-lang-switch {
    display: flex;
    gap: 0.35rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
}

.welcome-lang-switch .menu-lang-btn {
    padding: 0.18rem 0.62rem;
    line-height: 1.25;
}

/* --- Product add-ons --- */
.product-detail-addons {
    margin-top: 1.25rem;
}

.product-addon-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-addon-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--pm-border);
    border-radius: 12px;
    background: var(--pm-surface);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.product-addon-option.is-selected {
    border-color: var(--pm-accent);
    background: var(--pm-accent-soft);
}

.product-addon-option input {
    accent-color: var(--pm-accent);
}

.product-addon-name {
    flex: 1;
    font-weight: 500;
}

.product-addon-price {
    font-weight: 600;
    color: var(--pm-accent);
    font-size: 0.9rem;
}

/* --- Unavailable --- */
.public-unavailable {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--pm-bg);
}

.public-unavailable-card {
    max-width: 340px;
    background: var(--pm-surface);
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    box-shadow: var(--pm-shadow);
    border: 1px solid var(--pm-border);
}

.public-unavailable-icon {
    font-size: 3rem;
    color: var(--pm-accent);
    margin-bottom: 1rem;
}

.public-unavailable-title {
    font-family: var(--pm-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pm-text);
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.public-unavailable-message {
    font-family: var(--pm-font);
    color: var(--pm-muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.public-unavailable-brand {
    margin-bottom: 1rem;
}

.public-unavailable-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--pm-border);
}

.public-unavailable-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.public-unavailable-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-family: var(--pm-font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.public-unavailable-btn--primary {
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
    box-shadow: var(--pm-accent-shadow-sm);
}

.public-unavailable-btn--primary:hover {
    filter: brightness(0.95);
}

.public-unavailable-btn--primary:active {
    transform: scale(0.98);
}

.public-unavailable-contact {
    padding-top: 1.25rem;
    border-top: 1px solid var(--pm-border);
}

.public-unavailable-contact-label {
    margin: 0 0 0.65rem;
    font-family: var(--pm-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pm-muted);
}

.public-unavailable-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.public-unavailable-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: var(--pm-font);
    color: var(--pm-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    word-break: break-all;
}

.public-unavailable-contact-link:hover {
    color: var(--pm-accent);
    text-decoration: underline;
}

/* Campaign popup */
body.menu-campaign-open {
    overflow: hidden;
}

.menu-campaign-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.menu-campaign-overlay[hidden] {
    display: none !important;
}

.menu-campaign-backdrop {
    position: absolute;
    inset: 0;
    background: var(--pm-popup-scrim);
    backdrop-filter: blur(2px);
}

.menu-campaign-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    max-height: min(85vh, 32rem);
    overflow: auto;
    background: var(--pm-surface, #fff);
    border-radius: 18px;
    border: 1px solid var(--pm-border, rgba(26, 22, 20, 0.1));
    box-shadow: var(--pm-popup-shadow);
    padding: 1.25rem 1rem 1rem;
}

.menu-campaign-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: var(--pm-surface-2, #f5f2ef);
    color: var(--pm-text, #1a1614);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-campaign-title {
    font-family: var(--pm-font-display, Georgia, serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 2rem 0.75rem 0;
    color: var(--pm-text, #1a1614);
    line-height: 1.3;
}

.menu-campaign-media {
    border-radius: 12px;
    overflow: hidden;
    background: var(--pm-surface-2, #f5f2ef);
}

.menu-campaign-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
}

.menu-campaign-body {
    padding-top: 0.15rem;
}

.menu-campaign-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--pm-text-secondary, #6b6560);
    white-space: pre-wrap;
}

/* --- Cart --- */
.menu-icon-btn--cart i {
    color: var(--pm-accent);
}

.menu-fab--cart {
    right: max(1rem, calc(50% - var(--pm-max) / 2 + 1rem));
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 56px);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
    font-size: 1.35rem;
    box-shadow: var(--pm-accent-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
}

.menu-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.menu-cart-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.menu-cart-empty {
    text-align: center;
    color: var(--pm-text-secondary);
    padding: 2rem 1rem;
}

.menu-cart-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.menu-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.menu-cart-item {
    border: 1px solid var(--pm-border);
    border-radius: 12px;
    padding: 0.75rem;
    background: var(--pm-surface-elevated, var(--pm-surface));
}

.menu-cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.menu-cart-item-meta {
    font-size: 0.85rem;
    color: var(--pm-text-secondary);
    margin-bottom: 0.5rem;
}

.menu-cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.menu-cart-item-start {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    min-width: 0;
}

.menu-cart-item-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.menu-cart-unit-price {
    font-size: 0.9rem;
    color: var(--pm-text-secondary);
    white-space: nowrap;
}

.menu-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--pm-border);
    border-radius: 8px;
    padding: 0.15rem;
}

.menu-cart-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--pm-text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}

.menu-cart-qty-value {
    min-width: 1.25rem;
    text-align: center;
    font-weight: 600;
}

.menu-cart-item-price {
    font-weight: 600;
    white-space: nowrap;
}

.menu-cart-remove {
    border: none;
    background: transparent;
    color: var(--pm-text-secondary);
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.menu-cart-footer {
    border-top: 1px solid var(--pm-border);
    padding-top: 1rem;
    flex-shrink: 0;
}

.menu-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.menu-cart-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-cart-form .menu-feedback-submit {
    margin-top: 0.5rem;
}

.menu-cart-form textarea {
    width: 100%;
    border: 1px solid var(--pm-border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    resize: none;
    max-height: 5.5rem;
    overflow-y: auto;
    background: var(--pm-surface);
    color: var(--pm-text);
}

.product-detail-cart-control {
    --product-cart-control-h: 3.25rem;
    position: relative;
    width: 100%;
    height: var(--product-cart-control-h);
    margin-top: 1.25rem;
}

.product-detail-add-cart,
.product-detail-cart-qty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 12px;
}

.product-detail-add-cart {
    padding: 0 1rem;
    border: none;
    background: var(--pm-accent);
    color: var(--pm-accent-foreground);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: var(--pm-accent-shadow-sm);
}

.product-detail-add-cart:active {
    transform: scale(0.98);
}

.product-detail-add-cart[hidden],
.product-detail-cart-qty[hidden] {
    display: none;
}

.product-detail-cart-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    border: 1px solid var(--pm-border);
    background: var(--pm-surface);
    gap: 0.25rem;
}

.product-detail-cart-qty-btn {
    flex-shrink: 0;
    width: 2.75rem;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--pm-text);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-detail-cart-qty-btn:active {
    background: var(--pm-surface-elevated, rgba(0, 0, 0, 0.04));
}

.product-detail-cart-qty-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pm-text);
    padding: 0;
}

.product-detail-cart-qty-input:focus {
    outline: none;
}

.menu-cart-toast {
    position: fixed;
    left: 50%;
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 120px);
    transform: translateX(-50%) translateY(12px);
    background: var(--pm-toast-bg);
    color: var(--pm-toast-fg);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    pointer-events: none;
}

.menu-cart-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.menu-icon-btn--theme {
    flex-shrink: 0;
}

.welcome-theme-toggle {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, calc(50% - var(--pm-max) / 2 + 0.75rem));
    z-index: 30;
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    box-shadow: var(--pm-toolbar-shadow);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --pm-bg: #121110;
    --pm-surface: #1c1917;
    --pm-surface-2: #262320;
    --pm-text: #f5f2ef;
    --pm-muted: #a8a29e;
    --pm-text-secondary: #a8a29e;
    --pm-border: rgba(245, 242, 239, 0.1);
    --pm-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --pm-toolbar-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    --pm-sticky-bg: rgba(18, 17, 16, 0.97);
    --pm-hero-cover-fade: linear-gradient(180deg, rgba(18, 17, 16, 0) 62%, rgba(18, 17, 16, 0.85) 88%, var(--pm-surface) 100%);
    --pm-welcome-cover-fade: linear-gradient(180deg, rgba(28, 25, 23, 0) 55%, rgba(18, 17, 16, 0.9) 100%);
    --pm-backdrop: rgba(0, 0, 0, 0.6);
    --pm-sheet-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
    --pm-locale-panel-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    --pm-category-grid-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
    --pm-surface-elevated: rgba(255, 255, 255, 0.06);
    --pm-toast-bg: rgba(245, 242, 239, 0.95);
    --pm-toast-fg: #1a1614;
    --pm-popup-scrim: rgba(0, 0, 0, 0.65);
    --pm-popup-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .menu-product-badge--popular {
    background: rgba(196, 92, 0, 0.18);
    color: #ffb366;
}

html[data-theme="dark"] .menu-product-badge--new {
    background: rgba(45, 138, 78, 0.18);
    color: #7dcea0;
}

html[data-theme="dark"] .menu-product-badge--chef {
    background: rgba(45, 125, 50, 0.18);
    color: #81c784;
}

html[data-theme="dark"] .menu-feedback-status--error,
html[data-theme="dark"] .menu-waiter-status--error {
    color: #fca5a5;
    background: rgba(159, 18, 57, 0.18);
    border-color: rgba(254, 205, 211, 0.25);
}

html[data-theme="dark"] .menu-feedback-status--success,
html[data-theme="dark"] .menu-waiter-status--success {
    color: #fdba74;
    background: rgba(154, 52, 18, 0.18);
    border-color: rgba(254, 215, 170, 0.25);
}

html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    color-scheme: dark;
}
