    /* ==========================================
       RESPONSIVE LUXURY DARK ENGINE (MOBILE & PC)
       ========================================== */
    :root {
      --bg-body: var(--menu-dark-bg, #08090c);
      --bg-shell: color-mix(in srgb, var(--menu-dark-bg, #08090c) 72%, #0e1118);
      --bg-card: var(--menu-dark-surface, #151922);
      --bg-card-hover: color-mix(in srgb, var(--menu-dark-surface, #151922) 82%, #ffffff);
      --accent: var(--menu-dark-accent, #d4af37);
      --accent-soft: color-mix(in srgb, var(--menu-dark-accent, #d4af37) 15%, transparent);
      --text-main: var(--menu-dark-text, #ffffff);
      --text-sub: #9ea4b0;
      --border-line: rgba(255, 255, 255, 0.08);
      --radius-lg: 20px;
      --radius-md: 14px;
      --container-max-w: 1200px;
      --bg: var(--bg-body);
      --bg-soft: var(--bg-card);
      --text: var(--text-main);
      --text-soft: var(--text-sub);
      --border: var(--border-line);
      --gold: var(--accent);
      --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    }

    html[data-theme="light"] {
      --bg-body: var(--menu-light-bg, #dfe8eb);
      --bg-shell: color-mix(in srgb, var(--menu-light-bg, #dfe8eb) 72%, #edf3f2);
      --bg-card: var(--menu-light-surface, #d4e1df);
      --bg-card-hover: color-mix(in srgb, var(--menu-light-surface, #d4e1df) 82%, #26343a);
      --accent: var(--menu-light-accent, #92701b);
      --accent-soft: color-mix(in srgb, var(--menu-light-accent, #92701b) 15%, transparent);
      --text-main: var(--menu-light-text, #26343a);
      --text-sub: #5d6d72;
      --border-line: rgba(38, 52, 58, 0.18);
      --bg: var(--bg-body);
      --bg-soft: var(--bg-card);
      --text: var(--text-main);
      --text-soft: var(--text-sub);
      --border: var(--border-line);
      --gold: var(--accent);
      --shadow: 0 12px 32px rgba(38, 52, 58, 0.14);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--menu-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); -webkit-tap-highlight-color: transparent; }
    
    body { background: var(--bg-body); color: var(--text-main); min-height: 100vh; }

    .container { width: 100%; max-width: var(--container-max-w); margin: 0 auto; }
    .main-header {
      background: rgba(8, 9, 12, 0.96); border-bottom: 1px solid var(--border-line);
      position: relative; z-index: 110; color: var(--text-main);
    }
    .nav-wrap {
      min-height: 60px; padding: 10px 20px; display: flex; align-items: center;
      justify-content: space-between; gap: 16px;
    }
    .brand { color: var(--accent); font-weight: 800; text-decoration: none; white-space: nowrap; }
    .main-nav { display: flex; align-items: center; gap: 14px; }
    .main-nav a, .admin-login-link {
      color: var(--text-sub); text-decoration: none; font-size: 0.82rem; font-weight: 600;
    }
    .main-nav a.active, .main-nav a:hover, .admin-login-link:hover { color: var(--accent); }
    .header-actions { display: flex; align-items: center; gap: 10px; }
    .theme-toggle {
      width: 34px; height: 34px; border: 1px solid var(--border-line); border-radius: 50%;
      background: var(--bg-card); color: var(--text-main); cursor: pointer;
    }
    .main-footer { background: var(--bg-shell); border-top: 1px solid var(--border-line); color: var(--text-sub); }
    .footer-content {
      min-height: 64px; padding: 14px 20px; display: flex; justify-content: space-between;
      align-items: center; gap: 14px; font-size: 0.78rem;
    }
    .footer-content p { margin: 0; }
    .designer-credit { color: var(--accent); text-decoration: none; }
    .brand-credit { display: inline-flex; align-items: center; gap: 6px; }
    .brand-credit-mark { width: 18px; height: 18px; flex: none; }
    .brand-credit-name { font-weight: 700; }
    .contact-card, .map-wrap { margin: 24px auto; padding: 22px; border: 1px solid var(--border-line); border-radius: 8px; background: var(--bg-card); }
    .contact-card h1, .contact-card h2 { margin-bottom: 14px; color: var(--accent); }
    .contact-card p { margin: 8px 0; color: var(--text-sub); }
    .map-wrap { padding: 0; overflow: hidden; }
    .map-wrap iframe { display: block; }
    .contact-socials { display: flex; flex-wrap: wrap; gap: 10px; }
    .contact-social-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 13px; border: 1px solid var(--border-line); border-radius: 8px; background: var(--bg-shell); color: var(--text-main); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
    .contact-social-link:hover { color: var(--accent); border-color: var(--accent); }
    .contact-social-link i { font-size: 1.2rem; }
    .admin-content { min-width: 0; }
    .admin-card { color: var(--text); }
    .admin-card h2, .admin-card h3 { color: var(--text); }
    .admin-card p { color: var(--text-sub); line-height: 1.6; }
    .table-wrap { width: 100%; overflow-x: auto; }
    .admin-image-preview-wrap {
      min-height: 100px; display: flex; align-items: center; justify-content: center;
      background: rgba(0, 0, 0, 0.16); border: 1px dashed var(--border-line);
      border-radius: 10px; padding: 10px; margin-bottom: 10px;
    }
    .admin-image-preview-wrap img { max-width: 100%; max-height: 180px; object-fit: contain; }
    .form-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .form-group label { color: var(--text); }
    .admin-card input[type="file"] { padding: 6px; }
    .admin-card button, .admin-card a.btn { font: inherit; }
    @media (max-width: 639px) {
      .nav-wrap, .footer-content { flex-wrap: wrap; }
      .main-nav { order: 3; width: 100%; justify-content: center; }
    }
    @media (max-width: 900px) {
      .admin-content { padding: 14px; }
      .admin-sidebar { padding: 12px; }
      .admin-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .admin-sidebar a { text-align: center; }
    }

    /* Outer Shell Container (Responsive for PC & Mobile) */
    .app-shell {
      width: 100%; max-width: var(--container-max-w);
      background: var(--bg-shell); min-height: 100vh;
      position: relative; padding-bottom: 60px;
      box-shadow: 0 0 60px rgba(0,0,0,0.9);
      transition: all 0.3s ease;
    }

    /* Hero Banner */
    .hero-banner { width: 100%; height: 180px; position: relative; background: #000; overflow: hidden; }
    .hero-banner .hero-slide {
      position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
      opacity: 0; transform: scale(1.04); transition: opacity 0.7s ease, transform 0.7s ease;
      pointer-events: none;
    }
    .hero-banner .hero-slide.is-active {
      opacity: 0.72; transform: scale(1); z-index: 1;
    }
    .hero-banner .hero-slide.is-exiting {
      opacity: 0; transform: scale(1.06);
    }
    .hero-slider-dots {
      position: absolute; right: 50%; transform: translateX(50%); bottom: 12px; z-index: 2;
      display: flex; gap: 7px; align-items: center; justify-content: center;
    }
    .hero-slider-dot {
      width: 10px; height: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.5);
      cursor: pointer; transition: transform 0.2s ease, background 0.2s ease;
    }
    .hero-slider-dot.is-active {
      background: var(--accent, #d4af37); transform: scale(1.2);
    }
    @media (prefers-reduced-motion: reduce) {
      .hero-banner .hero-slide { transition: none; }
      .hero-slider-dot { transition: none; }
    }
    @media (min-width: 768px) { .hero-banner { height: 260px; } }

    /* Profile Header Card */
    .profile-card { padding: 0 20px 16px; margin-top: -40px; position: relative; z-index: 5; }
    .profile-row { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
    .avatar-wrap { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--bg-shell); overflow: hidden; flex-shrink: 0; }
    .avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
    .profile-titles h1 { font-size: 1.35rem; font-weight: 800; color: #fff; }
    .profile-titles p { font-size: 0.85rem; color: var(--text-sub); margin-top: 2px; }

    @media (min-width: 768px) {
      .profile-card { padding: 0 32px 20px; margin-top: -50px; }
      .avatar-wrap { width: 100px; height: 100px; }
      .profile-titles h1 { font-size: 1.7rem; }
    }

    /* CONTROLS TOOLBAR (RESPONSIVE PC & MOBILE) */
    .toolbar-wrap {
      padding: 0 20px 16px;
      display: flex; flex-direction: column; gap: 10px;
    }
    @media (min-width: 768px) {
      .toolbar-wrap {
        padding: 0 32px 20px;
        flex-direction: row; justify-content: space-between; align-items: center;
      }
    }

    .switcher-group {
      display: flex; background: var(--bg-card); border-radius: 12px;
      padding: 4px; border: 1px solid var(--border-line); gap: 4px;
    }

    .switch-btn {
      flex: 1; padding: 10px 14px; border: none; background: transparent;
      color: var(--text-sub); font-size: 0.82rem; font-weight: 600;
      border-radius: 8px; cursor: pointer; transition: all 0.2s ease;
      display: flex; align-items: center; justify-content: center; gap: 6px;
      white-space: nowrap;
    }
    .switch-btn.active {
      background: var(--accent); color: #000; font-weight: 700;
      box-shadow: 0 2px 10px var(--accent-soft);
    }

    /* Sticky Scrollspy Navigation (For All Items Mode) */
    .category-sticky-bar {
      position: sticky; top: 0; z-index: 90;
      background: rgba(14, 17, 24, 0.95); backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-line);
      padding: 10px 20px; display: none;
    }
    @media (min-width: 768px) { .category-sticky-bar { padding: 12px 32px; } }
    .category-scroll-container { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
    .category-scroll-container::-webkit-scrollbar { display: none; }
    .cat-pill {
      white-space: nowrap; padding: 8px 18px; background: rgba(255,255,255,0.05);
      color: var(--text-sub); border-radius: 25px; font-size: 0.85rem;
      text-decoration: none; transition: all 0.2s; border: 1px solid transparent; cursor: pointer;
    }
    .cat-pill.active { background: var(--accent); color: #000; font-weight: 700; }

    /* ==========================================
       1. CATEGORIES VIEW (RESPONSIVE GRID)
       ========================================== */
    .category-view-container { padding: 12px 20px; }
    @media (min-width: 768px) { .category-view-container { padding: 16px 32px; } }

    .category-grid {
      display: grid;
      grid-template-columns: repeat(var(--mobile-cols, 2), 1fr);
      gap: 14px;
    }
    @media (min-width: 640px) {
      .category-grid { grid-template-columns: repeat(var(--tablet-cols, 3), 1fr); gap: 16px; }
    }
    @media (min-width: 1024px) {
      .category-grid { grid-template-columns: repeat(var(--desktop-cols, 4), 1fr); gap: 20px; }
    }

    .category-card {
      height: 140px; border-radius: var(--radius-lg); overflow: hidden;
      position: relative; border: 1px solid var(--border-line);
      cursor: pointer; transition: transform 0.2s ease, border-color 0.2s;
      display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
    }
    @media (min-width: 768px) { .category-card { height: 180px; } }
    .category-card:hover { border-color: var(--accent); }
    .category-card:active { transform: scale(0.97); }
    .category-card img {
      position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
      filter: brightness(0.55); transition: transform 0.4s ease;
      z-index: 0;
    }
    .category-card:hover img { transform: scale(1.08); }
    .category-card-content { position: relative; z-index: 2; }
    .category-card-title { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
    .category-card, .category-card * { pointer-events: auto; }
    .category-card-count { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
    .menu-admin-edit-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 5px;
      border: 1px solid rgba(255,255,255,0.35); border-radius: 7px; padding: 5px 8px;
      background: rgba(0,0,0,0.62); color: #fff; font: inherit; font-size: 0.72rem; cursor: pointer;
    }
    .menu-admin-edit-btn:hover { color: var(--accent); border-color: var(--accent); }
    .menu-admin-edit-icon { font-size: 1rem; line-height: 1; }
    .menu-category-admin-wrap, .menu-item-admin-wrap { min-width: 0; }
    .menu-admin-edit-row { position: relative; z-index: 5; display: flex; justify-content: flex-start; padding: 8px 12px 0; }
    /* Admin item actions (edit / hide-show / delete) and hidden-item state; visitors never see these. */
    .menu-item-actions { flex-wrap: wrap; gap: 6px; }
    .menu-admin-edit-btn:disabled { opacity: .5; cursor: progress; }
    .menu-admin-edit-btn.is-danger:hover { color: #ff9b9b; border-color: #ff9b9b; }
    .popular-item-card .menu-item-actions { padding: 0 10px 10px; }
    .item-card.is-hidden-item .card-thumb img, .item-card.is-hidden-item .card-info { opacity: .45; filter: grayscale(.8); }
    .hidden-item-badge {
      position: absolute; top: 8px; inset-inline-start: 8px; z-index: 3; padding: 3px 9px; border-radius: 999px;
      background: rgba(0,0,0,.78); color: #fff; border: 1px dashed rgba(255,255,255,.7); font-size: .7rem; font-weight: 700;
    }
    /* After an admin action the page reloads back to the same card and marks it briefly. */
    .admin-just-updated { outline: 2px solid var(--accent); outline-offset: 3px; animation: admin-just-updated 2.2s ease-out forwards; }
    @keyframes admin-just-updated { 0%, 60% { outline-color: var(--accent); } 100% { outline-color: transparent; } }
    .sheet-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-line); }
    .sheet-admin-actions[hidden] { display: none; }
    .search-result-item.is-hidden-item .search-result-thumb, .search-result-item.is-hidden-item .search-result-title { opacity: .55; }
    .search-result-hidden { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--border-line); color: var(--text-sub); font-size: .7rem; }
    .menu-admin-add-toolbar, .menu-admin-add-row { display: flex; position: relative; justify-content: flex-start; margin-bottom: 12px; }
    .menu-admin-add-toolbar { grid-column: 1 / -1; }
    .menu-admin-add-btn { border: 1px solid var(--accent); border-radius: 8px; padding: 7px 11px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: .78rem; cursor: pointer; opacity: 1; transition: opacity .2s, background .2s, transform .2s; }
    .menu-admin-add-btn:hover { transform: translateY(-1px); }
    .menu-admin-add-options { position: absolute; top: calc(100% + 5px); right: 0; z-index: 20; display: grid; min-width: 150px; padding: 5px; border: 1px solid var(--border-line); border-radius: 8px; background: var(--bg-card); box-shadow: 0 12px 28px rgba(0,0,0,.3); }
    .menu-admin-add-options[hidden] { display: none; }
    .menu-admin-add-options button { border: 0; border-radius: 6px; padding: 8px 10px; background: transparent; color: var(--text-main); font: inherit; font-size: .78rem; text-align: right; cursor: pointer; }
    .menu-admin-add-options button:hover { background: var(--accent-soft); color: var(--accent); }
    .menu-admin-add-btn:hover { background: var(--accent); color: #111; }
    .feed-cat-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .feed-cat-heading .menu-admin-add-btn { flex-shrink: 0; }

    /* Category Items Sub-View Header */
    .cat-items-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-line);
    }
    .back-btn {
      background: rgba(255,255,255,0.08); color: var(--text-main); border: 1px solid var(--border-line);
      padding: 8px 16px; border-radius: 20px; font-size: 0.82rem; cursor: pointer; font-weight: 600;
      transition: background 0.2s;
    }
    .back-btn:hover { background: rgba(255,255,255,0.15); }

    .menu-floating-navigation {
      position: fixed; left: 18px; bottom: 18px; z-index: 1400;
      display: grid; gap: 8px; justify-items: end;
    }
    .menu-floating-navigation[hidden] { display: none; }
    .menu-floating-button {
      display: inline-flex; align-items: center; gap: 8px; min-height: 42px;
      border: 1px solid var(--border-line); border-radius: 8px; padding: 8px 12px;
      background: var(--bg-card); color: var(--text-main); box-shadow: 0 8px 24px rgba(0,0,0,.45);
      font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
    }
    #backToCategoriesButton { background: var(--accent); border-color: var(--accent); color: #111; }
    #backToCategoriesButton:hover { background: var(--text-main); border-color: var(--text-main); color: var(--bg-card); }
    .menu-floating-button:hover { border-color: var(--accent); color: var(--accent); }
    @media (max-width: 767px) {
      .menu-floating-navigation { left: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); }
      .menu-floating-button { min-height: 44px; padding: 8px 12px; }
    }

    /* ==========================================
       2. DYNAMIC ITEM LAYOUTS (GRID VS LIST)
       ========================================== */
    .menu-feed { padding: 12px 20px; }
    @media (min-width: 768px) { .menu-feed { padding: 16px 32px; } }

    .feed-cat-title {
      font-size: 1.15rem; font-weight: 800; color: var(--text-main);
      margin: 20px 0 12px; display: flex; align-items: center; gap: 8px;
    }

    /* --- LAYOUT A: GRID / CARDS DISPLAY MODE --- */
    .items-wrapper.display-grid {
      display: grid;
      grid-template-columns: repeat(var(--mobile-cols, 2), 1fr);
      gap: 12px;
      margin-bottom: 24px;
    }
    @media (min-width: 640px) {
      .items-wrapper.display-grid { grid-template-columns: repeat(var(--tablet-cols, 3), 1fr); gap: 16px; }
    }
    @media (min-width: 1024px) {
      .items-wrapper.display-grid { grid-template-columns: repeat(var(--desktop-cols, 4), 1fr); gap: 20px; }
    }

    .items-wrapper.display-grid .item-card {
      background: var(--bg-card); border-radius: var(--radius-md);
      border: 1px solid var(--border-line); overflow: hidden;
      display: flex; flex-direction: column; cursor: pointer; transition: transform 0.2s, border-color 0.2s;
    }
    .items-wrapper.display-grid .item-card:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-2px); }
    .items-wrapper.display-grid .card-thumb { width: 100%; aspect-ratio: 1 / 1; position: relative; }
    .items-wrapper.display-grid .card-thumb img { width: 100%; height: 100%; object-fit: contain; background: rgba(0,0,0,0.12); }

    /* Make cards reliably clickable (click anywhere on the card) */
    .items-wrapper .item-card { pointer-events: auto; position: relative; }
    .items-wrapper .item-card * { pointer-events: auto; }
    .category-card::before,
    .items-wrapper .item-card::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: transparent;
      pointer-events: auto;
    }

    .items-wrapper.display-grid .card-info { padding: 12px; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 2; }
    .items-wrapper.display-grid .card-thumb { position: relative; z-index: 2; }
    .items-wrapper.display-grid .card-info h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
    .items-wrapper.display-grid .card-info .desc {
      font-size: 0.75rem; color: var(--text-sub); line-height: 1.35;
      display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
      margin-bottom: 10px; flex-grow: 1;
    }

    /* --- LAYOUT B: LIST DISPLAY MODE --- */
    .items-wrapper.display-list {
      display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px;
    }
    @media (min-width: 768px) {
      .items-wrapper.display-list {
        display: grid; grid-template-columns: repeat(var(--tablet-cols, 2), 1fr); gap: 14px;
      }
    }

    .items-wrapper.display-list .item-card {
      background: var(--bg-card); border-radius: var(--radius-md);
      border: 1px solid var(--border-line); padding: 10px 12px;
      display: flex; gap: 14px; cursor: pointer; transition: background 0.2s, border-color 0.2s;
      align-items: center;
    }
    .items-wrapper.display-list .item-card:hover { border-color: rgba(212, 175, 55, 0.4); background: var(--bg-card-hover); }
    .items-wrapper.display-list .card-thumb {
      width: 86px; height: 86px; border-radius: 10px; overflow: hidden; flex-shrink: 0; position: relative;
    }
    .items-wrapper.display-list .card-thumb img { width: 100%; height: 100%; object-fit: contain; background: rgba(0,0,0,0.12); }
    .items-wrapper.display-list .card-info { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
    .items-wrapper.display-list .card-thumb { position: relative; z-index: 2; }
    .items-wrapper.display-list .card-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
    .items-wrapper.display-list .card-info .desc {
      font-size: 0.76rem; color: var(--text-sub); line-height: 1.35;
      display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
      margin-bottom: 6px;
    }

    /* Common Price Row Styling */
    .price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
    .price { font-size: 0.9rem; font-weight: 800; color: var(--accent); }
    .badge-tag { font-size: 0.65rem; background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 6px; }

    /* Modal Sheet (Slide-Up on Mobile, Centered Dialog on Desktop) */
    .sheet-backdrop {
      position: fixed; inset: 0; background: rgba(0,0,0,0.8);
      backdrop-filter: blur(8px); z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.25s;
    }
    .sheet-backdrop.active { opacity: 1; visibility: visible; }
    
    .sheet-drawer {
      position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
      width: 100%; max-width: 520px; background: var(--bg-card);
      border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);
      z-index: 1001; transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
      max-height: 85vh; overflow-y: auto; border: 1px solid var(--border-line); pointer-events: none;
    }
    .sheet-drawer.open { transform: translateX(-50%) translateY(0); pointer-events: auto; }

    @media (min-width: 768px) {
      .sheet-drawer {
        top: 50%; bottom: auto; border-radius: var(--radius-lg);
        transform: translate(-50%, -40%) scale(0.95); opacity: 0;
      }
      .sheet-drawer.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }

    .sheet-img { width: 100%; height: 240px; object-fit: contain; background: rgba(0,0,0,0.12); padding: 10px; }
    .sheet-close-x {
      position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
      border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer;
      font-size: 1rem; font-weight: bold;
    }
    .sheet-body { padding: 20px; }
    .sheet-body h2 { font-size: 1.3rem; margin-bottom: 8px; }
    .sheet-body p { color: var(--text-sub); font-size: 0.9rem; line-height: 1.5; margin-bottom: 24px; }
    .menu-item-edit-form[hidden] { display: none; }
    .menu-item-edit-form { display: grid; gap: 6px; }
    .menu-item-edit-form label { color: var(--text-main); font-size: 0.85rem; font-weight: 600; margin-top: 5px; }
    .menu-item-edit-form input, .menu-item-edit-form select, .menu-item-edit-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border-line); border-radius: 8px; padding: 10px; background: var(--bg); color: var(--text-main); font: inherit; }
    .menu-item-edit-status { min-height: 1.3em; color: var(--text-sub); font-size: 0.82rem; }
    .menu-item-edit-status.success { color: #77d69a; }
    .menu-item-edit-status.error { color: #ff9b9b; }
    .menu-item-edit-form[hidden] { display: none; }
    .menu-admin-editor[hidden] { display: none; }
    .menu-admin-editor { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; }
    .menu-admin-editor-backdrop { position: absolute; inset: 0; z-index: 0; border: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); cursor: default; }
    .menu-admin-editor-dialog { position: relative; z-index: 1; width: min(520px, 100%); max-height: min(720px, calc(100vh - 32px)); overflow-y: auto; padding: 22px; border: 1px solid var(--accent); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: 0 24px 70px rgba(0,0,0,0.5); }
    .menu-admin-editor-dialog h2 { margin: 0 0 8px; color: var(--text-main); }
    .menu-admin-editor-close { position: absolute; top: 10px; left: 10px; width: 32px; height: 32px; border: 1px solid var(--border-line); border-radius: 50%; background: transparent; color: var(--text-main); font-size: 1.2rem; cursor: pointer; }
    .menu-admin-editor form { display: grid; gap: 6px; }
    .menu-admin-editor label { color: var(--text-main); font-size: 0.85rem; font-weight: 600; margin-top: 5px; }
    .menu-admin-editor input, .menu-admin-editor select, .menu-admin-editor textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border-line); border-radius: 8px; padding: 10px; background: var(--bg); color: var(--text-main); font: inherit; }
    .menu-admin-save-btn { margin-top: 10px; border: 1px solid var(--accent); border-radius: 8px; padding: 10px 14px; background: var(--accent); color: #111; font: inherit; font-weight: 700; cursor: pointer; }
    .menu-admin-save-btn:disabled { opacity: 0.6; cursor: wait; }
    .menu-admin-editor-status { min-height: 1.3em; color: var(--text-sub); font-size: 0.82rem; }
    .menu-admin-editor-status.success { color: #77d69a; }
    .menu-admin-editor-status.error { color: #ff9b9b; }
    .event-banner{
      margin: 14px 20px 0;
      background: var(--bg-card);
      border: 1px solid var(--border-line);
      border-radius: var(--radius-lg);
      overflow: hidden;
      display: flex;
      align-items: stretch;
      min-height: 92px;
    }
    @media (min-width: 768px){
      .event-banner{ margin: 16px 32px 0; }
    }
    .event-banner-img{
      width: 140px;
      object-fit: cover;
      opacity: 0.9;
    }
    .event-banner-text{
      padding: 14px 16px;
      flex: 1;
      color: var(--text-main);
      font-weight: 800;
      line-height: 1.35;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    .event-banner-popup {
      position: fixed; inset: 0; z-index: 1400; place-items: center; padding: 20px;
    }
    .event-banner-popup-backdrop {
      position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(8px); cursor: pointer;
    }
    .event-banner-popup-dialog {
      position: relative; z-index: 1; width: min(520px, 100%); overflow: hidden;
      border: 1px solid var(--accent); border-radius: var(--radius-lg);
      background: var(--bg-card); box-shadow: 0 24px 80px rgba(0,0,0,.55);
      animation: eventBannerPopupIn .24s ease-out;
    }
    .event-banner-popup-img { display: block; width: 100%; max-height: 280px; object-fit: cover; }
    .event-banner-popup-body { position: relative; padding: 28px 22px 22px; }
    .event-banner-popup-body p { margin: 0; color: var(--text-main); font-size: 1.05rem; font-weight: 800; line-height: 1.55; text-align: center; }
    .event-banner-popup-close {
      position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0;
      border-radius: 50%; background: rgba(255,255,255,.1); color: var(--text-main);
      cursor: pointer; font-size: 1.35rem; line-height: 1;
    }
    @keyframes eventBannerPopupIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
    /* justify-items: right (not "end"): in RTL "end" is the left side, which let the hint's width push the button away from the edge. */
    .survey-floating { position: fixed; right: 20px; bottom: 20px; z-index: 1300; display: grid; justify-items: right; gap: 10px; transition: opacity .2s ease, visibility .2s ease; }
    .survey-floating-main, .survey-floating-action {
      display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent);
      border-radius: 999px; background: var(--bg-card); color: var(--text-main); text-decoration: none;
      box-shadow: 0 10px 28px rgba(0,0,0,.35); font: inherit; font-weight: 700; cursor: pointer;
    }
    .survey-floating-main { width: 48px; height: 48px; padding: 0; color: var(--accent); justify-content: center; }
    .survey-floating-main-icon, .survey-floating-action-icon { color: var(--accent); }
    .survey-floating-main-icon { font-size: 1.15rem; }
    .survey-floating-action-icon { width: 1.1em; font-size: 1rem; text-align: center; flex-shrink: 0; }
    .survey-floating-menu { display: grid; justify-items: right; gap: 8px; }
    .survey-floating-menu[hidden] { display: none; }
    .survey-floating-action { max-width: min(240px, calc(100vw - 28px)); padding: 9px 13px; font-size: .82rem; background: var(--bg-shell); }
    /* The hint floats above the button instead of taking layout space, so its text length never moves the button. */
    .survey-floating-hint { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: min(260px, calc(100vw - 28px)); color: var(--text-sub); font-size: .72rem; text-align: right; opacity: .45; pointer-events: none; animation: surveyHintFade 4.5s ease-in-out infinite; }
    /* Floating buttons step aside while an item sheet is open so they never cover its price or buttons. */
    html.sheet-open .survey-floating,
    html.sheet-open .menu-floating-navigation { opacity: 0; visibility: hidden; pointer-events: none; }
    .survey-floating.open .survey-floating-hint { display: none; }
    .survey-floating-main:hover, .survey-floating-action:hover { background: var(--accent-soft); transform: translateY(-1px); }
    @keyframes surveyHintFade { 0%, 100% { opacity: .22; } 50% { opacity: .9; } }
    @media (max-width: 639px) {
      .survey-floating { right: 14px; bottom: 14px; }
      .survey-floating-main { width: 44px; height: 44px; }
    }

    .sheet-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-line); padding-top: 16px; }
    .sheet-price { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.sheet-btn { background: var(--accent); color: #000; font-weight: 700; padding: 10px 26px; border-radius: 20px; border: none; cursor: pointer; }

/* ==========================================
   SEARCH BAR
   ========================================== */
.menu-search-container {
  position: relative;
  z-index: 100;
  margin: 0 20px 14px;
}
@media (min-width: 768px) {
  .menu-search-container {
    margin: 0 32px 16px;
  }
}

/* Mobile: search button only, input hidden */
.menu-search-input-wrap {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 0 16px;
  min-height: 50px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.menu-search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.menu-search-icon-svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.menu-search-toggle .menu-search-icon-svg {
  opacity: 1;
}

.menu-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: 0.95rem;
  padding: 14px 0;
  outline: none;
  width: 100%;
  min-width: 0;
}
.menu-search-input::placeholder {
  color: var(--text-sub);
  opacity: 0.65;
}

/* Mobile toggle button */
.menu-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-line);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}
.menu-search-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* Tablet and up: inline search bar */
@media (min-width: 640px) {
  .menu-search-toggle {
    display: none;
  }
  .menu-search-input-wrap {
    display: flex;
  }
}

/* Mobile expanded state */
.menu-search-container.search-expanded .menu-search-input-wrap {
  display: flex;
}
.menu-search-container.search-expanded .menu-search-toggle {
  display: none;
}

/* Search results dropdown */
.menu-search-results,
.menu-search-noresults {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 20;
}
.menu-search-results.search-results-visible,
.menu-search-noresults.search-noresults-visible {
  display: block;
}

/* Result count header */
.search-results-count {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-line);
  font-weight: 600;
}

/* Individual result item */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-line);
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-result-item:last-child {
  border-bottom: 0;
}
.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.12);
}
.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-desc {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* Highlight matching text */
.search-highlight {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 2px;
}

/* No results panel */
.search-noresults-message {
  padding: 16px 16px 12px;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  text-align: center;
}
.search-noresults-message strong {
  color: var(--accent);
}
.search-noresults-hint {
  padding: 8px 16px 14px;
  font-size: 0.72rem;
  color: var(--text-sub);
  text-align: center;
  border-top: 1px solid var(--border-line);
  margin-top: 4px;
}

/* Fallback result items inside no-results panel */
.search-result-fallback {
  opacity: 0.85;
}
.search-result-fallback:hover {
  opacity: 1;
}

/* ==========================================
   POPULAR ITEMS SLIDER
   ========================================== */
.popular-slider-section {
  margin: 0 12px 14px;
}
@media (min-width: 640px) {
  .popular-slider-section {
    margin: 0 20px 14px;
  }
}
@media (min-width: 768px) {
  .popular-slider-section {
    margin: 0 32px 16px;
  }
}
.popular-slider-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 10px 0;
  padding: 0 4px;
}
.popular-slider-controls {
  position: relative;
}
.popular-slider-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 4px 8px;
}
.popular-slider-track::-webkit-scrollbar {
  display: none;
}
.popular-slider-track .popular-item-card {
  flex: 0 0 auto;
  width: 140px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.popular-slider-track .popular-item-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}
.popular-slider-track .popular-item-card .card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.08);
}
.popular-slider-track .popular-item-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.popular-slider-track .popular-item-card .card-info {
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.popular-slider-track .popular-item-card .card-info h3 {
  font-size: .82rem;
  font-weight: 700;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popular-slider-track .popular-item-card .price-row {
  margin-top: auto;
}
.popular-slider-track .popular-item-card .price {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
}
@media (min-width: 640px) {
  .popular-slider-track .popular-item-card {
    width: 170px;
  }
  .popular-slider-track .popular-item-card .card-info {
    padding: 10px 12px;
  }
  .popular-slider-track .popular-item-card .card-info h3 {
    font-size: .85rem;
  }
  .popular-slider-track .popular-item-card .price {
    font-size: .82rem;
  }
}
.popular-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.popular-slider-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.popular-slider-prev {
  left: -4px;
}
.popular-slider-next {
  right: -4px;
}
@media (min-width: 640px) {
  .popular-slider-arrow {
    display: flex;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
  .popular-slider-prev {
    left: -6px;
  }
  .popular-slider-next {
    right: -6px;
  }
}
.popular-item-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--accent);
  color: #000;
  font-size: .6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1.3;
  z-index: 2;
}
.popular-item-cat {
  display: block;
  font-size: .62rem;
  color: var(--text-sub);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .popular-item-cat {
    font-size: .68rem;
    margin: -2px 0 6px 0;
  }
  .popular-item-badge {
    font-size: .65rem;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
  }
}

/* ==========================================
   CATEGORY ICONS (app/Config/menu_icons.php)
   Shown instead of a photo on categories without an image and on items
   without their own photo. Colours follow the menu's accent, so the light,
   dark and template palettes all recolour them.
   ========================================== */
.menu-icon-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; }
.thumb-icon {
  --mi-bg: color-mix(in srgb, var(--accent) 13%, var(--bg-card));
  --mi-cut: var(--mi-bg);
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; background: var(--mi-bg); color: var(--accent);
}
.thumb-icon .menu-icon { font-size: 2.4rem; line-height: 1; }
.category-card .thumb-icon { position: absolute; inset: 0; z-index: 0; padding-bottom: 34px; transition: transform .4s ease; }
.category-card .thumb-icon .menu-icon { font-size: 2.8rem; }
.category-card:hover .thumb-icon { transform: scale(1.04); }
.category-card:has(.thumb-icon) .category-card-title { color: var(--text-main); }
.items-wrapper.display-list .card-thumb .thumb-icon .menu-icon { font-size: 1.8rem; }
.sheet-icon { display: flex; align-items: center; justify-content: center; height: 240px; padding: 0;
  background: color-mix(in srgb, var(--accent) 13%, var(--bg-card)); color: var(--accent); --mi-cut: color-mix(in srgb, var(--accent) 13%, var(--bg-card)); }
.sheet-icon[hidden], .sheet-img[hidden] { display: none; }
.sheet-icon .menu-icon { font-size: 5rem; }
.search-result-thumb.thumb-icon { color: var(--accent); }
.search-result-thumb.thumb-icon .menu-icon { font-size: 1.3rem; }
.cat-pill-icon { display: none; }

    /* Push notifications opt-in bar (assets/js/push-optin.js) */
    .push-optin { display: flex; align-items: center; gap: 10px; margin: 12px max(16px, calc((100% - 720px) / 2)); padding: 10px 14px;
      border-radius: 14px; background: var(--accent-soft); color: var(--text-main); font-size: 0.9rem; line-height: 1.5; }
    .push-optin[hidden] { display: none; }
    .push-optin { opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; }
    .push-optin.is-in { opacity: 1; transform: none; }
    /* Small bell chip left in place of a dismissed bar: one gentle ring when it appears, then still. */
    .push-reask { display: flex; align-items: center; gap: 6px; margin: 8px max(16px, calc((100% - 720px) / 2)); margin-inline-start: auto;
      padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); color: var(--text-sub);
      font: inherit; font-size: 0.82rem; cursor: pointer; width: fit-content; }
    .push-reask[hidden] { display: none; }
    .push-reask > i { color: var(--accent); animation: push-ring 1.2s ease 1.5s 1; transform-origin: 50% 0; }
    @keyframes push-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
    @media (prefers-reduced-motion: reduce) { .push-optin { transition: none; } .push-reask > i { animation: none; } }
    .push-optin > i { color: var(--accent); flex-shrink: 0; }
    .push-optin-text { flex: 1; }
    .push-optin-btn { flex-shrink: 0; border: 0; border-radius: 999px; padding: 6px 14px; background: var(--accent); color: #fff;
      font: inherit; font-weight: 600; cursor: pointer; }
    .push-optin-btn:disabled { opacity: 0.6; cursor: default; }
    .push-optin-close { flex-shrink: 0; border: 0; background: transparent; color: var(--text-sub); font-size: 1.2rem; cursor: pointer; padding: 0 4px; }

    /* «Add to home screen» prompt for iPhone Safari (assets/js/home-screen-prompt.js) */
    .home-prompt { position: fixed; z-index: 1200; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
      max-width: 460px; margin-inline: auto; padding: 16px 16px 12px; border-radius: 18px; background: var(--bg-card); color: var(--text-main);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28); font-size: 0.92rem; line-height: 1.6; direction: rtl; text-align: start;
      transform: translateY(24px); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; }
    .home-prompt[hidden] { display: none; }
    .home-prompt.is-open { transform: none; opacity: 1; }
    .home-prompt-head { display: flex; align-items: center; gap: 10px; padding-inline-end: 28px; }
    .home-prompt-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0;
      border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
    .home-prompt-body { margin: 8px 0 6px; color: var(--text-sub); }
    .home-prompt-steps { margin: 0; padding-inline-start: 1.3em; }
    .home-prompt-steps li { margin: 2px 0; }
    .home-prompt-share { vertical-align: -3px; color: var(--accent); }
    .home-prompt-close { position: absolute; top: 8px; inset-inline-end: 10px; border: 0; background: transparent; color: var(--text-sub);
      font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px; }
    .home-prompt-later { display: block; margin: 10px 0 0; margin-inline-start: auto; border: 0; background: transparent; color: var(--accent);
      font: inherit; font-weight: 600; cursor: pointer; padding: 6px 4px; }
    @media (prefers-reduced-motion: reduce) { .home-prompt { transition: none; } }
