/* ────────────────────────────────────────────
   APP SHELL
──────────────────────────────────────────── */
    #view-app {
      flex-direction: column;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: calc(16px + env(safe-area-inset-top)) 20px 12px;
      background: var(--cream);
      position: sticky;
      top: 0;
      z-index: 50;
    }

    .topbar-brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .topbar-logo {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      flex-shrink: 0;
    }

    .topbar-logo span {
      color: var(--rust);
    }

    .topbar-brand-text {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    .topbar-brand-name {
      font-family: var(--serif);
      font-size: 17px;
      font-weight: 700;
      letter-spacing: -.3px;
      color: var(--ink);
    }

    .topbar-brand-sub {
      font-size: 11px;
      color: var(--ink3);
      margin-top: 1px;
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .icon-btn {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: var(--white);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      transition: all 0.15s;
      position: relative;
    }

    .icon-btn:hover {
      transform: scale(1.05);
    }

    .notif-dot {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 8px;
      height: 8px;
      background: var(--rust);
      border-radius: 50%;
      border: 2px solid var(--cream);
      display: none;
    }

    .notif-dot.show {
      display: block;
      animation: pop 0.3s ease;
    }

    .topbar-cart-badge {
      position: absolute;
      top: 2px;
      right: 2px;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      background: var(--rust);
      color: white;
      font-size: 10px;
      font-weight: 800;
      border-radius: 99px;
      display: none;
      align-items: center;
      justify-content: center;
      line-height: 1;
      border: 2px solid var(--cream);
      font-family: var(--sans);
    }

    .topbar-cart-badge.visible {
      display: flex;
      animation: pop 0.3s ease;
    }

    .icon-btn.topbar-cart-btn.has-items {
      box-shadow: 0 0 0 2px rgba(200, 75, 47, 0.4), var(--shadow-sm);
    }

    /* ── BOTTOM NAV ── */
    .bottom-nav {
      display: flex;
      background: var(--white);
      border-top: 1px solid var(--cream3);
      position: sticky;
      bottom: 0;
      z-index: 50;
      padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-tab {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      padding: 10px 4px 8px;
      border: none;
      background: transparent;
      cursor: pointer;
      color: var(--ink4);
      font-size: 10px;
      font-weight: 600;
      font-family: var(--sans);
      letter-spacing: 0.3px;
      transition: color 0.15s;
      position: relative;
    }

    .nav-tab.active {
      color: var(--rust);
    }

    .nav-tab-icon {
      width: 22px;
      height: 22px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .nav-tab-icon .app-icon,
    .nav-tab-icon.app-icon {
      width: 22px;
      height: 22px;
    }

    .nav-badge {
      position: absolute;
      top: 6px;
      right: calc(50% - 18px);
      background: var(--rust);
      color: white;
      font-size: 9px;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: var(--radius-full);
      min-width: 16px;
      text-align: center;
    }

    /* ── PAGE CONTENT ── */
    .page-content {
      flex: 1;
      overflow-y: auto;
    }

    .tab-page {
      display: none;
    }

    .tab-page.active {
      display: block;
      animation: fadeUp 0.25s ease;
    }

    /* ── FOOD LIST TAB ── */
    .food-tab-head {
      padding: 8px 20px 12px;
    }

    .food-tab-title {
      font-family: var(--serif);
      font-size: 26px;
      font-weight: 700;
      letter-spacing: -0.5px;
      color: var(--ink);
    }

    .food-tab-sub {
      font-size: 13px;
      color: var(--ink3);
      margin-top: 4px;
      margin-bottom: 14px;
    }

    .food-search-wrap {
      margin: 0 0 4px;
    }

    .food-search-input {
      width: 100%;
      padding: 12px 14px 12px 40px;
      border-radius: var(--radius);
      border: 1.5px solid var(--cream3);
      background: var(--white);
      font-size: 15px;
      font-family: var(--sans);
      box-sizing: border-box;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23999' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: 12px center;
    }

    .food-search-input:focus {
      outline: none;
      border-color: var(--rust);
    }

    .food-list-section {
      padding: 0 20px 100px;
    }

    .food-browse-row .food-from-rest {
      font-size: 12px;
      font-weight: 600;
      color: var(--green);
      margin-top: 4px;
    }

    .food-browse-row .food-item-cat {
      display: inline-block;
      margin-top: 6px;
      font-size: 11px;
      font-weight: 600;
      color: var(--ink3);
      background: var(--cream2);
      padding: 2px 8px;
      border-radius: var(--radius-full);
    }

    /* Free-packaging badge — shown on both food browse and restaurant menu */
    .free-pkg-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      margin-top: 6px;
      font-size: 11px;
      font-weight: 700;
      color: #1b6b35;
      background: #e6f4ea;
      border: 1px solid #a8d5b5;
      padding: 2px 8px;
      border-radius: var(--radius-full);
      letter-spacing: 0.01em;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    @keyframes pop {
      0% {
        transform: scale(0);
      }

      80% {
        transform: scale(1.2);
      }

      100% {
        transform: scale(1);
      }
    }
