/* ────────────────────────────────────────────
   HOME TAB — Uber/DoorDash-style redesign
──────────────────────────────────────────── */

    /* ── Home hero header (full-bleed gradient with address + search) ── */
    .home-hero-header {
      background: linear-gradient(160deg, var(--ink) 0%, var(--ink2) 100%);
      padding: calc(4px + env(safe-area-inset-top, 0px)) 20px 28px;
      position: relative;
      overflow: hidden;
    }

    .home-hero-header::before {
      content: '';
      position: absolute;
      top: -60px;
      right: -40px;
      width: 220px;
      height: 220px;
      background: radial-gradient(circle, rgba(200, 75, 47, 0.25) 0%, transparent 70%);
      pointer-events: none;
    }

    .home-hero-header::after {
      content: '';
      position: absolute;
      bottom: -30px;
      left: 20px;
      width: 140px;
      height: 140px;
      background: radial-gradient(circle, rgba(192, 125, 42, 0.15) 0%, transparent 70%);
      pointer-events: none;
    }

    /* Greeting row inside hero */
    .home-greeting {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 0 14px;
      position: relative;
      z-index: 2;
    }

    .greeting-text {
      font-family: var(--serif);
      font-size: 22px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.3px;
      color: var(--cream);
    }

    .greeting-sub {
      font-size: 12px;
      color: rgba(245, 240, 232, 0.6);
      margin-top: 2px;
    }

    /* Address selector — inside hero */
    .address-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 12px;
      padding: 10px 14px;
      cursor: pointer;
      transition: background 0.2s;
      position: relative;
      z-index: 2;
      margin-bottom: 14px;
      backdrop-filter: blur(6px);
    }

    .address-bar:hover {
      background: rgba(255, 255, 255, 0.16);
    }

    .address-icon {
      font-size: 16px;
      flex-shrink: 0;
    }

    .address-info {
      flex: 1;
      overflow: hidden;
    }

    .address-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      color: var(--rust2);
    }

    .address-text {
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: rgba(245, 240, 232, 0.95);
    }

    /* Search — prominent, inside dark hero */
    .search-wrap {
      position: relative;
      z-index: 2;
    }

    .search-box {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--white);
      border-radius: var(--radius-full);
      padding: 14px 18px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    }

    .search-box input {
      flex: 1;
      border: none;
      background: transparent;
      font-family: var(--sans);
      font-size: 15px;
      font-weight: 500;
      color: var(--ink);
      outline: none;
    }

    .search-box input::placeholder {
      color: var(--ink4);
    }

    /* ── Promo chips ── */
    .promo-chips {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 18px 20px 4px;
      scrollbar-width: none;
    }

    .promo-chips::-webkit-scrollbar {
      display: none;
    }

    .promo-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 7px 14px;
      border-radius: var(--radius-full);
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
    }

    .promo-chip:active {
      transform: scale(0.96);
    }

    .promo-chip-free {
      background: rgba(45, 106, 79, 0.12);
      color: var(--green);
      border: 1px solid rgba(45, 106, 79, 0.25);
    }

    .promo-chip-fast {
      background: rgba(200, 75, 47, 0.1);
      color: var(--rust);
      border: 1px solid rgba(200, 75, 47, 0.22);
    }

    .promo-chip-new {
      background: rgba(30, 77, 140, 0.1);
      color: var(--blue);
      border: 1px solid rgba(30, 77, 140, 0.2);
    }

    .promo-chip-top {
      background: rgba(192, 125, 42, 0.12);
      color: var(--amber);
      border: 1px solid rgba(192, 125, 42, 0.25);
    }

    /* ── Categories — large icon tiles (Uber style) ── */
    .categories {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      padding: 0;
    }

    .cat-chip {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 7px;
      cursor: pointer;
      padding: 14px 8px 12px;
      background: var(--white);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      transition: all 0.2s;
      border: 2px solid transparent;
      text-align: center;
    }

    .cat-chip:hover,
    .cat-chip.active {
      border-color: var(--rust);
      background: var(--rust-light);
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    .cat-icon {
      font-size: 26px;
      line-height: 1;
    }

    .cat-name {
      font-size: 11px;
      font-weight: 700;
      color: var(--ink2);
      letter-spacing: 0.01em;
    }

    /* Section */
    .section {
      padding: 0 20px 24px;
    }

    .section-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .section-title {
      font-family: var(--serif);
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.3px;
    }

    .see-all {
      font-size: 13px;
      color: var(--rust);
      font-weight: 600;
      cursor: pointer;
      background: none;
      border: none;
      font-family: var(--sans);
    }

    .order-type-filter {
      font-size: 12px;
      font-weight: 600;
      padding: 6px 12px;
      border: 1.5px solid var(--cream3);
      background: var(--white);
      color: var(--ink3);
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: var(--sans);
    }

    .order-type-filter:hover {
      border-color: var(--rust);
      color: var(--rust);
    }

    .order-type-filter.active {
      background: var(--rust);
      color: var(--white);
      border-color: var(--rust);
    }

    .order-type-badges {
      display: flex;
      gap: 4px;
      margin-top: 6px;
      flex-wrap: wrap;
    }

    .order-type-badge {
      font-size: 10px;
      padding: 2px 6px;
      border-radius: 10px;
      background: var(--cream2);
      color: var(--ink3);
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .order-type-badge.available {
      background: rgba(45, 106, 79, 0.1);
      color: var(--green);
    }

    .order-type-badge.unavailable {
      background: var(--cream3);
      color: var(--ink4);
      opacity: 0.6;
      text-decoration: line-through;
    }

    /* Disabled order type options in cart */
    .tip-opt.disabled {
      opacity: 0.4;
      filter: blur(1px);
      pointer-events: none;
      cursor: not-allowed;
    }

    .tip-opt.disabled::after {
      content: 'Unavailable';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 9px;
      color: var(--rust);
      font-weight: 600;
      background: rgba(245, 240, 232, 0.9);
      padding: 2px 4px;
      border-radius: 4px;
      white-space: nowrap;
    }

    .address-option-gps {
      border: 1.5px solid rgba(200, 75, 47, 0.4) !important;
      background: rgba(200, 75, 47, 0.07) !important;
    }

    .address-option-gps.address-option-picked {
      box-shadow: 0 0 0 2px rgba(200, 75, 47, 0.35);
    }

    /* Categories */
    .categories {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: none;
    }

    .categories::-webkit-scrollbar {
      display: none;
    }

    .cat-chip {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
      cursor: pointer;
      padding: 12px 16px;
      background: var(--white);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      transition: all 0.2s;
      border: 2px solid transparent;
      min-width: 72px;
    }

    .cat-chip:hover,
    .cat-chip.active {
      border-color: var(--rust);
      background: var(--rust-light);
    }

    .cat-icon {
      font-size: 22px;
    }

    .cat-name {
      font-size: 11px;
      font-weight: 600;
      color: var(--ink2);
    }

    /* Restaurant cards */
    .rest-cards {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .rest-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      transition: all 0.2s;
    }

    .rest-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    .rest-card-img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      background: linear-gradient(135deg, var(--cream2), var(--cream3));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 52px;
    }

    .rest-card-body {
      padding: 14px 16px 16px;
    }

    .rest-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }

    .rest-card-name {
      font-family: var(--serif);
      font-size: 17px;
      font-weight: 700;
      letter-spacing: -0.3px;
    }

    .rest-card-rating {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 13px;
      font-weight: 600;
      color: var(--amber);
    }

    .rest-card-meta {
      font-size: 12px;
      color: var(--ink3);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .meta-dot {
      width: 3px;
      height: 3px;
      background: var(--ink4);
      border-radius: 50%;
    }

    .rest-tag {
      display: inline-block;
      background: var(--cream2);
      padding: 3px 8px;
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 500;
      color: var(--ink3);
      margin-top: 8px;
    }

    .rest-closed-badge {
      background: rgba(200, 75, 47, 0.1);
      color: var(--rust);
      padding: 3px 10px;
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 600;
    }

    .rest-card-dist {
      font-size: 12px;
      font-weight: 600;
      color: var(--green);
      margin-top: 6px;
    }

    .menu-load-more-wrap {
      padding: 8px 16px 100px;
      text-align: center;
    }

    .menu-load-more-btn {
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
      padding: 12px 16px;
      border-radius: var(--radius);
      border: 1.5px solid var(--cream3);
      background: var(--white);
      color: var(--ink2);
      font-size: 14px;
      font-weight: 600;
      font-family: var(--sans);
      cursor: pointer;
    }

    .menu-load-more-btn:active {
      transform: scale(0.98);
    }
