/* ============================================================
   EatOutDiary demo UI: BEM block: pm-
   Light cream theme · Card-style menu items with food images
   Fonts: Inter (UI + item emphasis)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* ── Cream light palette ── */
    --pm-bg:        #faf8f4;
    --pm-surface:   #ffffff;
    --pm-surface2:  #f4f0ea;
    --pm-border:    #e8e0d4;
    --pm-accent:    #7a4a28;
    --pm-accent2:   #b07843;
    --pm-gold:      #9a6830;
    --pm-text:      #1a1410;
    --pm-muted:     #7a6e64;
    --pm-error:     #c44444;
    --pm-success:   #3a8a5c;
    --pm-radius:    16px;
    --pm-radius-sm: 10px;
    --pm-touch:     54px;
    --pm-max:       520px;

    --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--pm-bg);
    color: var(--pm-text);
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Layout shell ── */
.pm-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ── Top bar ── */
.pm-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.pm-topbar--opaque {
    background: var(--pm-surface);
    border-bottom: 1px solid var(--pm-border);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.pm-topbar--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(250,248,244,0.85) 0%, transparent 100%);
}

/* EatOutDiary wordmark + icon (menu shell, info panel, etc.) */
.pm-brand-logo {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pm-text);
    line-height: 1.15;
}
.pm-brand-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: #4a2810;
    color: #f0a030;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(74, 40, 16, 0.3);
}
.pm-brand-logo__text span {
    color: var(--pm-accent);
}
.pm-brand-logo__snap {
    font-weight: 800;
    color: #f0a030;
}

.pm-topbar__logo {
    font-family: var(--font-body);
}

.pm-topbar__tag {
    font-size: 0.62rem;
    background: var(--pm-accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-left: auto;
}

.pm-topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pm-muted);
    text-decoration: none;
    transition: color 0.15s;
    margin-left: auto;
}
.pm-topbar__back:hover { color: var(--pm-accent); }
.pm-topbar__back svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

/* ── Wrap ── */
.pm-wrap {
    flex: 1;
    width: 100%;
    max-width: var(--pm-max);
    margin: 0 auto;
    padding: 1rem 1.25rem 5.5rem;
}

/* ── Buttons ── */
.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--pm-touch);
    padding: 0 1.75rem;
    background: var(--pm-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
    white-space: nowrap;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.pm-btn:hover  {
    background: #944f2a;
    box-shadow: 0 4px 20px rgba(122,74,40,0.35);
}
.pm-btn:active { transform: scale(0.97); }
.pm-btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none; box-shadow: none; }

.pm-btn--full { width: 100%; justify-content: center; }

.pm-btn--ghost {
    background: transparent;
    border: 1.5px solid var(--pm-border);
    color: var(--pm-muted);
}
.pm-btn--ghost:hover {
    border-color: var(--pm-accent);
    color: var(--pm-accent);
    background: transparent;
    box-shadow: none;
}

.pm-btn--hero-camera {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.85);
    color: #fff;
    box-shadow: none;
}
.pm-btn--hero-camera:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    box-shadow: none;
}

/* Spinner shown inside button while image is being processed */
.pm-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pm-btn-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}
@keyframes pm-btn-spin { to { transform: rotate(360deg); } }

.pm-btn--sm {
    min-height: 36px;
    padding: 0 0.9rem;
    font-size: 0.82rem;
}

/* ── Flash toast ── */
.pm-flash {
    position: fixed;
    bottom: max(1.75rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    width: calc(100vw - 2rem);
    max-width: 28rem;
    background: var(--pm-text);
    color: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: var(--pm-radius);
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
    z-index: 9999;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transition: opacity 0.4s;
}
.pm-flash--error   { background: var(--pm-error); }
.pm-flash--success { background: var(--pm-success); }
.pm-flash[hidden]  { display: none; }

/* ── Cards ── */
.pm-card {
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ── Error box ── */
.pm-error-box {
    background: rgba(196,68,68,0.06);
    border: 1px solid rgba(196,68,68,0.25);
    border-radius: var(--pm-radius-sm);
    padding: 0.9rem 1.25rem;
    color: var(--pm-error);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.pm-error-box[hidden] { display: none; }

/* ── Spinners ── */
.pm-spinner-lg {
    width: 52px;
    height: 52px;
    border: 3px solid var(--pm-border);
    border-top-color: var(--pm-accent);
    border-radius: 50%;
    animation: pm-spin 0.85s linear infinite;
    margin: 0 auto 1.75rem;
}
.pm-spinner-sm {
    width: 18px;
    height: 18px;
    border: 2px solid var(--pm-border);
    border-top-color: var(--pm-accent);
    border-radius: 50%;
    animation: pm-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes pm-spin { to { transform: rotate(360deg); } }

/* ── Section heading ── */
.pm-heading {
    font-family: var(--font-body);
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    color: var(--pm-text);
}
.pm-subheading {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: var(--pm-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

/* ── Divider ── */
.pm-divider {
    height: 1px;
    background: var(--pm-border);
    margin: 1.5rem 0;
}

/* =============================================================
   LANDING PAGE: index.php
   ============================================================= */

.pm-hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pm-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/webpage/scan-menu-chef.webp');
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}

.pm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15,13,10,0.45) 0%,
        rgba(15,13,10,0.35) 30%,
        rgba(15,13,10,0.70) 60%,
        rgba(10,8,5,0.96) 100%
    );
    z-index: 1;
}

.pm-hero__nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
}

.pm-hero__nav-logo {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.pm-hero__nav-logo span { color: #f0b870; }

.pm-hero__nav-tag {
    font-size: 0.62rem;
    background: var(--pm-accent);
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-left: auto;
}

.pm-hero__body {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem 1.5rem;
    max-width: var(--pm-max);
    width: 100%;
    margin: 0 auto;
}

.pm-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f0b870;
    margin-bottom: 0.5rem;
}

.pm-hero__title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 7.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.65rem;
}
.pm-hero__title em {
    font-style: italic;
    color: #f0b870;
}

.pm-hero__desc {
    font-size: 0.95rem;
    color: rgba(255,252,245,0.80);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 340px;
}

.pm-hero__cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pm-hero__cta-hint {
    font-size: 0.78rem;
    color: rgba(255,252,245,0.55);
    text-align: center;
    line-height: 1.4;
    margin-top: -0.1rem;
}

.pm-hero__steps {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.pm-hero__step {
    flex: 1;
    text-align: center;
}

.pm-hero__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(240,184,112,0.18);
    border: 2px solid #f0b870;
    color: #f0b870;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 auto 0.55rem;
}

.pm-hero__step-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,252,245,0.82);
    line-height: 1.35;
}

/* =============================================================
   CAPTURE PAGE: capture.php
   ============================================================= */

.pm-capture-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pm-capture-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    max-width: var(--pm-max);
    margin: 0 auto;
    width: 100%;
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--pm-bg) 75%, transparent 100%);
}
/* .pm-btn uses display:flex; author CSS beats UA [hidden] on buttons */
.pm-capture-dock .pm-btn--capture[hidden],
.pm-capture-dock .pm-btn--build-menu[hidden],
.pm-capture-dock .pm-btn--library[hidden] {
    display: none !important;
}

/* Full-screen lightbox while venue name is required (above fixed dock z-index 100) */
.pm-venue-layer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(15, 13, 10, 0.52);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    pointer-events: auto;
}
.pm-venue-layer-backdrop[hidden] {
    display: none !important;
}

body.pm-body--venue-overlay {
    overflow: hidden;
    touch-action: none;
}

.pm-shell--venue-overlay .pm-topbar--opaque {
    z-index: 270;
}

.pm-wrap--capture {
    padding-bottom: max(10rem, calc(8rem + env(safe-area-inset-bottom, 0px)));
}
.pm-capture-hint {
    font-size: 0.84rem;
    color: var(--pm-muted);
    line-height: 1.45;
    text-align: center;
    margin: 0;
    padding: 0 0.35rem;
}
.pm-capture-hint[hidden] {
    display: none !important;
}
.pm-btn--build-menu {
    background: var(--pm-surface);
    color: var(--pm-accent);
    border: 2px solid var(--pm-accent);
    box-shadow: 0 2px 12px rgba(122, 74, 40, 0.12);
}
.pm-btn--build-menu:hover {
    background: var(--pm-surface2);
    color: var(--pm-accent);
    box-shadow: 0 4px 16px rgba(122, 74, 40, 0.18);
}
.pm-btn--build-menu:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}
.pm-capture-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(26, 20, 16, 0.48);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.pm-capture-confirm-backdrop[hidden] {
    display: none !important;
}
.pm-capture-confirm {
    width: 100%;
    max-width: 22rem;
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 1.2rem 1.15rem 1.1rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}
.pm-capture-confirm__msg {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--pm-text);
    margin: 0 0 1.1rem;
    text-align: center;
}
.pm-capture-confirm__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pm-capture-confirm__actions .pm-btn--ghost {
    order: 1;
}
.pm-capture-confirm__actions .pm-btn:not(.pm-btn--ghost) {
    order: 2;
}
.pm-capture-dock[style*="display: none"],
.pm-capture-dock[hidden] { display: none !important; }

.pm-btn--capture {
    font-size: 1rem;
    min-height: 50px;
    gap: 0.55rem;
    box-shadow: 0 4px 20px rgba(122,74,40,0.3);
}
.pm-btn--capture svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.pm-btn--library {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--pm-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    text-decoration: underline;
    text-decoration-color: rgba(122,110,100,0.4);
    text-underline-offset: 3px;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.pm-btn--library:hover { color: var(--pm-accent); }

.pm-upload-zone {
    background: var(--pm-surface);
    border: 1.5px dashed var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 2rem 1.5rem 2.25rem;
    text-align: center;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.pm-upload-zone:hover,
.pm-upload-zone.is-dragover {
    border-color: var(--pm-accent);
    background: var(--pm-surface2);
}

.pm-upload-zone__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(122,74,40,0.08);
    border: 1px solid rgba(176,120,67,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.pm-upload-zone__icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--pm-accent);
    fill: none;
}

.pm-upload-zone__label {
    font-size: 0.9rem;
    color: var(--pm-muted);
    margin-bottom: 1.5rem;
    line-height: 1.55;
}
.pm-upload-zone__label strong {
    display: block;
    font-size: 1rem;
    color: var(--pm-text);
    margin-bottom: 0.25rem;
}

.pm-upload-zone__btns {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pm-uploading-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--pm-surface);
    border-radius: var(--pm-radius-sm);
    font-size: 0.85rem;
    color: var(--pm-muted);
    margin-bottom: 1rem;
    border: 1px solid var(--pm-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.pm-uploading-bar[hidden] { display: none; }

.pm-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 80px));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    justify-content: start;
}
.pm-thumb {
    position: relative;
    border-radius: var(--pm-radius-sm);
    overflow: hidden;
    background: var(--pm-surface2);
    aspect-ratio: 1;
    width: 100%;
    max-width: 80px;
    border: 1px solid var(--pm-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.pm-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pm-thumb__del {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 50%;
    color: var(--pm-text);
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}
.pm-thumb__del:hover { background: var(--pm-error); color: #fff; border-color: transparent; }

.pm-thumb__placeholder {
    position: absolute;
    inset: 0;
    background: var(--pm-surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-accent);
    font-size: 1.5rem;
}

.pm-counter {
    font-size: 0.82rem;
    color: var(--pm-muted);
    margin-bottom: 0.6rem;
}
.pm-counter strong { color: var(--pm-accent); }

/* Capture page: counter under thumbs, larger type */
.pm-counter--capture {
    font-size: 1.64rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
}
.pm-counter--capture strong {
    font-size: 1.1em;
    font-weight: 800;
}

.pm-process-strip {
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pm-process-strip__info { flex: 1; min-width: 0; }
.pm-process-strip__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pm-text);
}
.pm-process-strip__note {
    font-size: 0.74rem;
    color: var(--pm-muted);
    margin-top: 0.15rem;
}

.pm-venue-prompt {
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 0.85rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
/* Floated above lightbox; keyboard may push viewport on iOS */
.pm-venue-prompt--modal {
    position: fixed !important;
    left: 1.25rem;
    right: 1.25rem;
    max-width: var(--pm-max);
    margin-left: auto;
    margin-right: auto;
    bottom: max(1rem, calc(0.65rem + env(safe-area-inset-bottom, 0px)));
    z-index: 260;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}
.pm-venue-prompt__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pm-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.pm-venue-prompt__input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--pm-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--pm-text);
    outline: none;
    margin-bottom: 0.6rem;
    transition: border-color 0.15s;
}
.pm-venue-prompt__input:focus {
    border-color: var(--pm-accent);
}
.pm-venue-prompt__build {
    width: 100%;
    justify-content: center;
    margin-top: 0.15rem;
}
.pm-venue-prompt__build:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Venue-name step: dock has no camera / no main Build Menu row */
.pm-capture-dock--awaiting-venue {
    gap: 0.35rem;
}

/* =============================================================
   LOCATION PROMPT: index.php
   ============================================================= */

.pm-location-prompt,
.pm-location-found {
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 1.1rem 1rem 1rem;
    margin: 0 0 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pm-location-prompt__msg,
.pm-location-found__msg {
    font-size: 0.95rem;
    color: var(--pm-text);
    line-height: 1.45;
    margin: 0 0 0.85rem;
    text-align: center;
}
.pm-location-prompt__hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: var(--pm-muted);
    line-height: 1.45;
    text-align: center;
}

/* Optional location tag on capture when user landed without GPS */
.pm-loc-strip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    background: var(--pm-surface2);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-sm);
}
.pm-loc-strip[hidden] { display: none !important; }
.pm-loc-strip__text {
    margin: 0;
    font-size: 0.84rem;
    color: var(--pm-muted);
    line-height: 1.45;
    text-align: center;
}

/* =============================================================
   PROCESSING PAGE: processing.php
   ============================================================= */

.pm-processing {
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.pm-processing__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pm-accent);
    margin-bottom: 1.5rem;
}

.pm-processing__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
    color: var(--pm-text);
}

.pm-processing__note {
    font-size: 0.95rem;
    color: var(--pm-muted);
    max-width: 300px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.pm-processing__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 0.25rem;
}
.pm-processing__dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pm-accent);
    animation: pm-bounce 1.2s infinite;
}
.pm-processing__dots span:nth-child(2) { animation-delay: 0.18s; }
.pm-processing__dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes pm-bounce {
    0%, 80%, 100% { transform: scale(0.55); opacity: 0.35; }
    40%           { transform: scale(1);    opacity: 1;    }
}

/* =============================================================
   MENU VIEW PAGE: menu.php
   ============================================================= */

.pm-menu-header {
    padding: 1.5rem 0 1.25rem;
    border-bottom: 2px solid var(--pm-border);
    margin-bottom: 1.5rem;
}
.pm-menu-header__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pm-accent);
    margin-bottom: 0.45rem;
}
.pm-menu-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 0.2rem;
    color: var(--pm-text);
}
.pm-menu-header__sub {
    font-size: 0.88rem;
    color: var(--pm-muted);
}

.pm-menu-header__tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.pm-notes-btn,
.pm-share-btn {
    background: var(--pm-surface2, #f0ebe4);
    border: 1.5px solid var(--pm-border, #e0d8ce);
    border-radius: 12px;
    min-height: 44px;
    padding: 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pm-text);
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pm-notes-btn:active,
.pm-share-btn:active {
    opacity: 0.65;
}

.pm-menu-hint {
    font-size: clamp(0.72rem, 2.6vw, 0.82rem);
    color: var(--pm-muted, #7a6e64);
    line-height: 1.35;
    margin-top: 0.5rem;
    padding-right: 0.25rem;
}

.pm-zoom-btn {
    background: var(--pm-surface2, #f0ebe4);
    border: 1.5px solid var(--pm-border, #e0d8ce);
    border-radius: 12px;
    min-width: 52px;
    min-height: 44px;
    padding: 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--pm-text);
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pm-zoom-btn:active {
    opacity: 0.65;
}

.pm-zoom-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Tab strip: horizontal scroll, snapping */
.pm-tab-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.1rem;
    margin-bottom: 1.5rem;
}
.pm-tab-strip::-webkit-scrollbar { display: none; }

.pm-tab-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.55rem 1.2rem;
    background: var(--pm-surface);
    border: 1.5px solid var(--pm-border);
    border-radius: 999px;
    color: var(--pm-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    scroll-snap-align: start;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.pm-tab-btn:hover { border-color: var(--pm-accent); color: var(--pm-accent); }
.pm-tab-btn.is-active {
    background: var(--pm-accent);
    border-color: var(--pm-accent);
    color: #fff;
    box-shadow: 0 2px 10px rgba(122,74,40,0.28);
}

/* Sub-tab heading */
.pm-sub-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pm-muted);
    font-weight: 700;
    padding: 1rem 0 0.6rem;
    border-bottom: 1px solid var(--pm-border);
    margin-bottom: 0.85rem;
}

/* ── Menu item card (image + body) ── */
.pm-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.75rem;
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.18s, border-color 0.18s;
}
.pm-item:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border-color: rgba(122,74,40,0.2);
}
.pm-item:last-child { margin-bottom: 0; }

/* Food image thumbnail */
.pm-item__img-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--pm-radius-sm);
    overflow: hidden;
    background: var(--pm-surface2);
    border: 1px solid var(--pm-border);
}
.pm-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.pm-item:hover .pm-item__img {
    transform: scale(1.05);
}

/* Placeholder shown while image loads */
.pm-item__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--pm-surface2) 0%, var(--pm-border) 100%);
    color: var(--pm-accent);
}

/* Content area */
.pm-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pm-item__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.pm-item__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pm-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.pm-item__desc {
    font-size: 0.85rem;
    color: var(--pm-muted);
    line-height: 1.5;
}

.pm-item__price {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pm-accent);
    background: rgba(122,74,40,0.08);
    border: 1px solid rgba(122,74,40,0.18);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.4;
    flex-shrink: 0;
}

/* Watermark */
.pm-watermark {
    text-align: center;
    padding: 1.75rem 0 0.5rem;
    font-size: 0.73rem;
    color: var(--pm-muted);
    opacity: 0.55;
    letter-spacing: 0.04em;
}
.pm-watermark a { color: var(--pm-accent2); text-decoration: none; }
.pm-watermark a:hover { color: var(--pm-accent); }

/* Menu action bar */
.pm-menu-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pm-border);
    text-align: center;
}
.pm-menu-actions__label {
    width: 100%;
    margin-bottom: 0.4rem;
}
.pm-menu-actions__label-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pm-text);
    margin-bottom: 0.2rem;
}
.pm-menu-actions__label-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pm-muted);
    text-wrap: balance;
}


/* QR code share section */
.pm-qr-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pm-border);
    text-align: center;
}
.pm-qr-share__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pm-text);
    margin-bottom: 1rem;
}
.pm-qr-share__code {
    display: inline-block;
    padding: 0.75rem;
    background: #fff;
    border-radius: var(--pm-radius);
    border: 1px solid var(--pm-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}
.pm-qr-share__code canvas {
    display: block;
}
.pm-qr-share__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.pm-qr-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.pm-qr-share__btn svg {
    flex-shrink: 0;
}

/* Demo zone wrapper */
.pm-demo-zone {
    margin-top: 2.5rem;
    border: 2px dashed var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 1.25rem 1rem 1rem;
    background: rgba(139,90,43,0.04);
}
.pm-demo-zone__notice {
    text-align: center;
    font-size: 0.78rem;
    color: var(--pm-muted);
    line-height: 1.5;
    padding-bottom: 1rem;
    text-wrap: balance;
}
.pm-demo-zone__notice--foot {
    padding-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--pm-border);
}
.pm-demo-zone .pm-menu-actions {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}
.pm-demo-zone .pm-qr-share {
    margin-top: 1.25rem;
    border-top: 1px solid var(--pm-border);
    padding-top: 1.25rem;
}

/* =============================================================
   PROCESSING MODAL: shown on capture.php while AI works
   ============================================================= */

.pm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,13,10,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1.5rem 1.5rem;
}
.pm-modal-backdrop[hidden] { display: none; }

.pm-modal {
    background: #fdf8f2;
    border: 1px solid var(--pm-border);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}

.pm-modal__head {
    background: var(--pm-accent);
    padding: 2rem 1.75rem;
    text-align: center;
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-modal__body-zone {
    background: #fdf8f2;
    padding: 2rem 1.75rem 1.5rem;
    text-align: center;
    min-height: 17rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Simplified “building menu” wait state (no marketing slide carousel) */
.pm-modal--simple-wait .pm-modal__head--simple {
    min-height: auto;
    padding: 1.5rem 1.25rem;
}
.pm-modal__simple-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    text-wrap: balance;
}
.pm-modal__body-zone--simple {
    min-height: auto;
    justify-content: flex-start;
    gap: 1rem;
    padding-bottom: 2rem;
}
.pm-modal__simple-body {
    font-size: 0.95rem;
    color: #3a2a1a;
    line-height: 1.65;
    text-align: center;
    text-wrap: balance;
    margin: 0;
}
.pm-modal__simple-meta {
    font-size: 0.82rem;
    color: var(--pm-muted);
    line-height: 1.5;
    text-align: center;
    margin: 0;
}
.pm-modal__simple-meta[hidden] { display: none !important; }

.pm-modal__timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
    max-width: 380px;
    font-variant-numeric: tabular-nums;
}

.pm-slides { position: relative; overflow: hidden; }
.pm-modal__body-zone .pm-slides {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.pm-slide { display: none; }
.pm-slide.is-active { display: block; }

.pm-slide__headline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-align: center;
    text-wrap: balance;
}

.pm-slide__body {
    font-size: 1rem;
    color: #3a2a1a;
    line-height: 1.65;
    text-align: center;
}

.pm-sold-out-badge {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.2em 0.6em;
    border-radius: 999px;
    vertical-align: middle;
    margin-right: 0.25em;
    position: relative;
    top: -0.1em;
}

.pm-slides__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.pm-slides__dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(58,42,26,0.2);
    transition: background 0.35s, transform 0.35s;
    display: inline-block;
}
.pm-slides__dots span.is-active {
    background: var(--pm-accent);
    transform: scale(1.5);
}

.pm-modal__footer {
    background: #fdf8f2;
    border-top: none;
    padding: 0 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.pm-modal__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pm-muted);
    margin-bottom: 0.5rem;
}

.pm-modal__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.pm-modal__body {
    font-size: 0.9rem;
    color: var(--pm-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.pm-modal__reveal { margin-top: 0; }
/* .pm-btn sets display:flex; without this, [hidden] on the link does not hide (author CSS beats UA). */
.pm-modal__reveal[hidden] {
    display: none !important;
}

.pm-modal__error {
    background: rgba(196,68,68,0.08);
    border: 1px solid rgba(196,68,68,0.25);
    border-radius: var(--pm-radius-sm);
    padding: 0.75rem 1rem;
    color: var(--pm-error);
    font-size: 0.85rem;
    line-height: 1.45;
    margin-top: 1.25rem;
    text-align: left;
}
.pm-modal__error[hidden] { display: none; }

.pm-modal__retry { margin-top: 1rem; width: 100%; }
.pm-modal__retry[hidden] { display: none; }

/* ── Empty state ── */
.pm-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--pm-muted);
}
.pm-empty__icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    line-height: 1;
    opacity: 0.5;
}
.pm-empty__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--pm-text);
}
.pm-empty__text { font-size: 0.9rem; }

/* =============================================================
   INFO PANEL: full-screen overlay triggered by "Learn More"
   ============================================================= */

.pm-hero__nav-tag--btn {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    -webkit-tap-highlight-color: transparent;
}
.pm-hero__nav-tag--btn::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 2l4 3-4 3' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.85;
}

.pm-info-panel {
    position: fixed;
    inset: 0;
    z-index: 500;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--pm-bg);
    -webkit-overflow-scrolling: touch;
}
.pm-info-panel[hidden] { display: none; }

.pm-info-panel__topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(250,248,244,0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pm-border);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.pm-info-panel__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pm-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}
.pm-info-panel__back:hover { color: var(--pm-accent); }
.pm-info-panel__back svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.pm-info-panel__logo {
    margin-left: auto;
}
.pm-info-panel__logo.pm-brand-logo {
    font-size: 1.05rem;
}

.pm-info-panel__body {
    max-width: var(--pm-max);
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

.pm-info-section {
    padding: 2.25rem 0;
}
.pm-info-section + .pm-info-section {
    border-top: 2px solid var(--pm-accent);
    border-top-width: 2px;
    border-image: linear-gradient(to right, var(--pm-accent) 32px, transparent 32px) 1;
}

.pm-info-section__eyebrow {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pm-accent);
    margin-bottom: 0.9rem;
}

.pm-info-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 6vw, 2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--pm-text);
    margin-bottom: 1.1rem;
}
.pm-info-section__title em {
    font-style: normal;
    color: var(--pm-accent);
}

.pm-info-section__body {
    font-size: 1rem;
    color: rgba(26,20,16,0.78);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.pm-info-section__emphasis {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pm-text);
    line-height: 1.5;
    margin-top: 0.9rem;
    margin-bottom: 0.15rem;
}

.pm-info-section__list {
    list-style: none;
    margin: 0.85rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.pm-info-section__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: rgba(26,20,16,0.85);
    line-height: 1.5;
}
/* One flex child for all text; otherwise each text node + <strong> becomes a row flex item and breaks layout on narrow screens */
.pm-info-section__list-text {
    flex: 1;
    min-width: 0;
}
.pm-info-section__list li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background-color: rgba(122,74,40,0.1);
    border: 1.5px solid var(--pm-accent);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%237a4a28' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9px 7px;
}

.pm-info-feature-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}
.pm-info-feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.pm-info-feature-card:hover {
    border-color: rgba(122,74,40,0.3);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.pm-info-feature-card__img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--pm-radius-sm);
    flex-shrink: 0;
}
.pm-info-feature-card__label {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--pm-text);
}

.pm-info-cta {
    text-align: center;
    padding: 1.75rem 0;
}
.pm-info-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--pm-text);
    margin-bottom: 0.75rem;
}
.pm-info-cta__body {
    font-size: 0.95rem;
    color: rgba(26,20,16,0.68);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.pm-info-cta__footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pm-border);
    font-size: 0.78rem;
    color: var(--pm-muted);
    opacity: 0.65;
    text-align: center;
}
.pm-info-cta__footer a {
    color: var(--pm-accent2);
    text-decoration: none;
}
.pm-info-cta__footer a:hover { color: var(--pm-accent); }

/* ============================================================
   Image preference modal (menu.php #pm-img-modal)
   ============================================================ */
#pm-img-modal {
    position: fixed;
    inset: 0;
    background: rgba(26,20,16,0.55);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: pm-fade-in 0.2s ease;
}
#pm-img-modal.pm-modal-backdrop--hidden {
    display: none;
}
@keyframes pm-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#pm-img-modal .pm-modal {
    background: var(--pm-surface);
    border-radius: var(--pm-radius);
    padding: 0 0 1.75rem;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.1);
    animation: pm-modal-up 0.25s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden;
}
@keyframes pm-modal-up {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.pm-modal__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 1.5rem;
    height: 110px;
    overflow: hidden;
    border-radius: var(--pm-radius) var(--pm-radius) 0 0;
    background: #fff;
}
.pm-modal__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.pm-modal__photo:first-child {
    object-position: center center;
}

.pm-modal__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pm-text);
    text-align: center;
    margin-bottom: 0.65rem;
    line-height: 1.25;
    padding: 0 1.75rem;
}
.pm-modal__body {
    font-size: 0.92rem;
    color: var(--pm-muted);
    text-align: center;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    padding: 0 1.75rem;
}
.pm-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1.75rem;
}
.pm-modal__btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--pm-radius-sm);
    font-family: var(--font-body);
    font-size: 0.97rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.pm-modal__btn:active { transform: scale(0.98); }
.pm-modal__btn--primary {
    background: var(--pm-accent);
    color: #fff;
}
.pm-modal__btn--primary:hover { background: var(--pm-gold); }
.pm-modal__btn--ghost {
    background: var(--pm-surface2);
    color: var(--pm-text);
    border: 1px solid var(--pm-border);
}
.pm-modal__btn--ghost:hover { background: var(--pm-border); }

.pm-modal__note {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--pm-muted);
    text-align: center;
    opacity: 0.75;
    padding: 0 1.75rem;
}

/* ============================================================
   pm-item--text: Text-only card layout (no image)
   ============================================================ */
.pm-item--text {
    display: block;
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    padding: 1rem 1.1rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pm-item--text:last-child {
    margin-bottom: 0;
}
.pm-item--text .pm-item__body {
    flex: 1;
    min-width: 0;
    padding: 0;
}
.pm-item--text .pm-item__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pm-text);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}
.pm-item--text .pm-item__desc {
    font-size: 0.875rem;
    color: var(--pm-muted);
    line-height: 1.55;
    margin-bottom: 0;
}
.pm-item--text .pm-item__price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pm-accent);
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(122,74,40,0.08);
    border: 1px solid rgba(122,74,40,0.18);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    flex-shrink: 0;
    line-height: 1.4;
}

/* Toggle link in actions bar */
.pm-btn--link {
    background: none;
    border: none;
    color: var(--pm-accent2);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: var(--font-body);
    padding: 0.25rem 0;
    -webkit-tap-highlight-color: transparent;
}
.pm-btn--link:hover { color: var(--pm-accent); }

/* =============================================================
   MENU HERO HEADER: branded shop banner on menu.php
   ============================================================= */
.pm-menu-hero {
    background: var(--pm-accent);
    padding: 0.75rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}
.pm-menu-hero__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}
.pm-menu-hero__logo {
    max-height: 40px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: block;
}
.pm-menu-hero__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.pm-menu-hero__sub {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
