/* ────────────────────────────────────────────
   RESTAURANT DETAIL
──────────────────────────────────────────── */
    #view-restaurant {
      background: var(--cream);
    }

    .rest-hero {
      width: 100%;
      height: 200px;
      background: var(--cream2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 72px;
      position: relative;
      flex-shrink: 0;
    }

    .rest-hero img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      inset: 0;
    }

    .back-btn {
      position: absolute;
      top: 16px;
      left: 16px;
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(8px);
      border: none;
      border-radius: 12px;
      font-size: 20px;
      cursor: pointer;
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-sm);
    }

    .rest-detail-body {
      flex: 1;
      overflow-y: auto;
    }

    .rest-detail-header {
      padding: 20px 20px 16px;
      background: var(--white);
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      margin-bottom: 8px;
    }

    .rest-detail-name {
      font-family: var(--serif);
      font-size: 26px;
      font-weight: 700;
      letter-spacing: -0.5px;
      margin-bottom: 8px;
    }

    .rest-detail-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      font-size: 13px;
      color: var(--ink3);
      margin-bottom: 10px;
    }

    .rest-detail-desc {
      font-size: 14px;
      color: var(--ink3);
      line-height: 1.5;
    }

    .menu-section {
      padding: 0 16px 100px;
    }

    .menu-cat-title {
      font-family: var(--serif);
      font-size: 18px;
      font-weight: 700;
      padding: 16px 0 10px;
      color: var(--ink);
    }

    .menu-cat-scroll {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 12px 16px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

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

    .menu-cat-chip {
      flex-shrink: 0;
      padding: 8px 16px;
      background: var(--white);
      border: 1.5px solid var(--cream3);
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink3);
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

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

    .menu-cat-chip.active {
      background: var(--rust);
      border-color: var(--rust);
      color: var(--white);
    }

    .menu-item-row {
      background: var(--white);
      border-radius: var(--radius);
      padding: 14px;
      margin-bottom: 10px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      cursor: pointer;
      transition: box-shadow 0.2s;
      box-shadow: var(--shadow-sm);
    }

    .menu-item-row:hover {
      box-shadow: var(--shadow);
    }

    .menu-item-info {
      flex: 1;
    }

    .menu-item-name {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .menu-item-desc {
      font-size: 12px;
      color: var(--ink3);
      line-height: 1.4;
      margin-bottom: 8px;
    }

    .menu-item-price {
      font-size: 15px;
      font-weight: 700;
      color: var(--rust);
    }

    .menu-item-img {
      width: 80px;
      height: 80px;
      border-radius: 12px;
      object-fit: cover;
      background: var(--cream2);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 30px;
    }

    .item-qty-ctrl {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
    }

    /* Inline quantity stepper (after item is in cart) */
    .item-qty-ctrl.item-qty-ctrl--stepper {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      padding: 4px 6px;
      background: linear-gradient(180deg, var(--cream2) 0%, var(--cream3) 100%);
      border-radius: var(--radius-full);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    }

    .qty-btn {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: none;
      background: var(--white);
      font-size: 17px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: var(--ink);
      box-shadow: var(--shadow-sm);
      transition: background 0.15s, transform 0.12s ease, box-shadow 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

    .qty-btn:hover {
      background: var(--cream);
      box-shadow: var(--shadow);
    }

    .qty-btn:active {
      transform: scale(0.92);
    }

    .qty-btn.qty-btn--stepper {
      width: 32px;
      height: 32px;
    }

    .qty-btn.qty-btn--add-mini {
      background: linear-gradient(145deg, var(--rust) 0%, var(--rust2) 100%);
      color: #fff;
      box-shadow: 0 2px 8px rgba(200, 75, 47, 0.35);
    }

    .qty-btn.qty-btn--add-mini:hover {
      filter: brightness(1.06);
      box-shadow: 0 3px 12px rgba(200, 75, 47, 0.42);
    }

    .qty-num {
      font-size: 15px;
      font-weight: 800;
      min-width: 28px;
      text-align: center;
      color: var(--ink);
      font-variant-numeric: tabular-nums;
    }

    /* Primary “Add” — high-contrast CTA */
    .food-add-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 11px 20px 11px 14px;
      border: none;
      border-radius: var(--radius-full);
      cursor: pointer;
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, #d45538 0%, var(--rust2) 45%, #b84328 100%);
      box-shadow:
        0 6px 20px rgba(200, 75, 47, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.22) inset;
      transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
        box-shadow 0.2s ease,
        filter 0.2s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .food-add-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(200, 75, 47, 0.48);
      filter: brightness(1.04);
    }

    .food-add-btn:active {
      transform: translateY(0) scale(0.97);
      box-shadow: 0 3px 14px rgba(200, 75, 47, 0.38);
    }

    .food-add-btn-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.28);
      font-size: 18px;
      font-weight: 800;
      line-height: 1;
    }

    .food-add-btn-text {
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    /* Floating cart bar (compact: smaller type + padding — avoids scale() blur/tap issues) */
    .cart-bar {
      position: fixed;
      bottom: calc(76px + env(safe-area-inset-bottom));
      left: 20px;
      right: 20px;
      max-width: 440px;
      margin-left: auto;
      margin-right: auto;
      background: var(--ink);
      color: var(--cream);
      border-radius: var(--radius-full);
      padding: 10px 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: var(--shadow-lg);
      cursor: pointer;
      z-index: 55;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
      transform: translateY(120px);
      opacity: 0;
      pointer-events: none;
    }

    .cart-bar.visible {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
      box-shadow: 0 10px 40px rgba(30, 30, 30, 0.4), 0 0 0 2px rgba(200, 75, 47, 0.35);
    }

    .cart-bar:hover {
      background: var(--ink2);
    }

    .cart-bar:active {
      transform: translateY(0) scale(0.98);
    }

    .cart-bar-count {
      background: var(--rust);
      color: white;
      min-width: 24px;
      height: 24px;
      padding: 0 5px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 800;
      flex-shrink: 0;
    }

    .cart-bar-textual {
      flex: 1;
      min-width: 0;
    }

    .cart-bar-label {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .cart-bar-restaurant {
      font-size: 11px;
      font-weight: 600;
      color: rgba(245, 240, 232, 0.82);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 1px;
    }

    .cart-bar-restaurant:empty {
      display: none;
    }

    .cart-bar-total {
      font-family: var(--serif);
      font-size: 15px;
      font-weight: 700;
      color: var(--cream);
      flex-shrink: 0;
    }

    .cart-bar-clear {
      background: none;
      border: none;
      color: var(--cream);
      font-size: 18px;
      padding: 8px;
      cursor: pointer;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease;
    }

    .cart-bar-clear:hover {
      transform: scale(1.1);
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
    }

    .cart-bar-clear:active {
      transform: scale(0.95);
    }

    .cart-conflict-banner {
      display: none;
      flex-direction: column;
      gap: 10px;
      margin: 0 16px 14px;
      padding: 12px 14px;
      background: rgba(200, 75, 47, 0.1);
      border: 1px solid rgba(200, 75, 47, 0.35);
      border-radius: var(--radius);
    }

    .cart-conflict-banner.show {
      display: flex;
    }

    .cart-conflict-banner .cart-conflict-text {
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      line-height: 1.45;
    }

    .cart-conflict-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .cart-conflict-actions button {
      flex: 1;
      min-width: 120px;
      padding: 10px 12px;
      border-radius: var(--radius-full);
      font-size: 13px;
      font-weight: 700;
      font-family: var(--sans);
      cursor: pointer;
      border: none;
    }

    .cart-conflict-clear {
      background: var(--rust);
      color: white;
    }

    .cart-conflict-view {
      background: var(--white);
      color: var(--ink);
      border: 1.5px solid var(--cream3) !important;
    }

    .cart-from-restaurant {
      font-size: 13px;
      font-weight: 600;
      color: var(--green);
      margin-top: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .cart-from-restaurant:empty {
      display: none;
    }
