/* ==========================================================================
   DoorDash replica — view styles (home, search, restaurant, cart, checkout,
   tracking, orders)
   ========================================================================== */

/* ============================= HOME ====================================== */
.hero {
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(235, 23, 0, .075), transparent 60%),
    radial-gradient(900px 380px at 95% 0%, rgba(255, 48, 8, .06), transparent 55%),
    linear-gradient(#fff, #FFF9F8);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.02em; max-width: 620px; }
.hero .hero-sub { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 540px; }
.hero-search {
  margin-top: 28px; display: flex; gap: 10px; max-width: 760px;
  background: #fff; padding: 10px; border-radius: 16px; box-shadow: var(--shadow-2);
}
.hero-search .hs-loc {
  flex: 0 1 250px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-right: 1px solid var(--line); min-width: 0;
}
.hero-search .hs-loc .pin { color: var(--red); display: inline-flex; }
.hero-search .hs-loc input { border: none; outline: none; width: 100%; font-size: 15px; min-width: 0; background: transparent; }
.hero-search .hs-q { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 10px; min-width: 0; }
.hero-search .hs-q .search-icon { color: var(--ink-3); display: inline-flex; flex: none; }
.hero-search .hs-q input { border: none; outline: none; width: 100%; font-size: 16px; background: transparent; }
.hero-search .btn { flex: none; }
.hero-tags { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero-tags .tag-lbl { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.hero-tag {
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.hero-tag:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }

.section { padding: 36px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); margin-bottom: 6px; }
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.section-head .see-all { font-size: 14px; font-weight: 600; color: var(--red); }
.section-head .see-all:hover { text-decoration: underline; }

.rail-wrap { position: relative; }
.rail-btn {
  position: absolute; top: 84px; z-index: 20;
  width: 38px; height: 38px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-2);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
  transition: transform .12s var(--ease), opacity .15s;
}
.rail-btn:hover { transform: scale(1.08); }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
.rail-btn.prev { left: 2px; }
.rail-btn.next { right: 2px; }

/* Category tiles */
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 92px; text-align: center; border-radius: 12px; padding: 6px 0; }
.cat-tile:hover { background: var(--bg-2); text-decoration: none; }
.cat-emoji {
  width: 68px; height: 68px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
  transition: transform .18s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}
.cat-tile:hover .cat-emoji { transform: scale(1.08); }
.cat-label { font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.25; }
.cat-tile:hover .cat-label { color: var(--ink); }

/* Promo banners */
.promo-card {
  position: relative; width: 400px; border-radius: var(--r-lg); overflow: hidden;
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff; isolation: isolate;
}
.promo-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(120deg, var(--pc1, #EB1700), var(--pc2, #FF6A3D));
}
.promo-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; z-index: -1;
  width: 220px; height: 220px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}
.promo-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.promo-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-top: 4px; }
.promo-sub { font-size: 13px; opacity: .9; margin-top: 6px; max-width: 300px; }
.promo-cta {
  margin-top: 14px; align-self: flex-start; background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 999px; transition: transform .12s;
}
.promo-cta:hover { transform: translateY(-1px); text-decoration: none; }
.promo-art { position: absolute; right: 18px; bottom: 58px; width: 96px; height: 96px; opacity: .95; }

/* Restaurant card */
.rest-card {
  display: block; width: 288px; background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.grid-rest .rest-card { width: auto; }
.rest-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: transparent; text-decoration: none; }
.rc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.rc-media .art { width: 100%; height: 100%; transition: transform .3s var(--ease); }
.rest-card:hover .rc-media .art { transform: scale(1.04); }
.rc-media .badge { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .95); }
.rc-media .badge-offer { background: var(--red); color: #fff; }
.rc-closed-overlay {
  position: absolute; inset: 0; background: rgba(20, 20, 20, .45);
  display: flex; align-items: center; justify-content: center;
}
.rc-closed-overlay .badge { position: static; font-size: 12px; padding: 6px 12px; }
.rc-body { padding: 12px 14px 14px; }
.rc-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--star); flex: none; }
.rc-rating .rc-reviews { color: var(--ink-3); font-weight: 500; }
.rc-meta { margin-top: 4px; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-times { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; flex-wrap: wrap; }
.rc-times .dot { width: 3px; height: 3px; border-radius: 99px; background: var(--line-2); }
.rc-offer { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.rc-badges { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

.grid-rest {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px;
  padding: 0 var(--gutter);
}

/* ============================= SEARCH ==================================== */
.search-toolbar {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.search-toolbar .container { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.search-toolbar .container::-webkit-scrollbar { display: none; }
.st-count { font-size: 14px; color: var(--ink-2); flex: none; }
.st-count b { color: var(--ink); }
.sort-select { height: 36px; border-radius: 999px; border: 1px solid var(--line-2); padding: 0 12px 0 14px; font-size: 13px; font-weight: 500; background: #fff; flex: none; }
.applied-chips { display: flex; gap: 8px; padding: 0 0 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.applied-chips::-webkit-scrollbar { display: none; }

.empty-state { text-align: center; padding: 72px 24px; max-width: 520px; margin: 0 auto; }
.empty-state .es-art { width: 160px; height: 160px; margin: 0 auto 18px; }
.empty-state h2 { font-size: 22px; font-weight: 700; }
.empty-state p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.empty-state .btn { margin-top: 20px; }
.search-alt { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ========================= RESTAURANT PAGE ================================ */
.rest-hero { position: relative; height: clamp(180px, 28vw, 280px); overflow: hidden; }
.rest-hero .art { width: 100%; height: 100%; }
.rest-hero .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.28)); }

.rest-head { padding: 20px 0 4px; }
.rest-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.rest-rating-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; font-size: 14px; }
.rest-rating-row .rating-main { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--star); }
.rest-rating-row a.rating-main:hover { text-decoration: underline; }
.rest-rating-row .sep { width: 1px; height: 14px; background: var(--line-2); }
.rest-meta-row { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.rest-info-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.info-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.info-chip .ico { display: inline-flex; color: var(--ink); }
.info-chip.dashpass { border-color: #BFE3D2; color: var(--dashpass); background: var(--dashpass-soft); }
.hours-btn { cursor: pointer; }

.closed-banner {
  margin: 16px var(--gutter) 0; border: 1px solid #F3D6A9; background: var(--amber-soft);
  border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start;
}
.closed-banner .ico { color: var(--amber); display: inline-flex; margin-top: 1px; }
.closed-banner b { font-size: 14px; }
.closed-banner p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.closed-banner select { margin-top: 10px; }

/* Sticky category nav */
.menu-nav-wrap {
  position: sticky; top: var(--header-h); z-index: 95;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); margin-top: 18px;
}
.menu-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0; }
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: none; padding: 13px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color .12s;
}
.menu-nav a:hover { color: var(--ink); text-decoration: none; }
.menu-nav a.active { color: var(--red); border-bottom-color: var(--red); }

.menu-body { padding: 8px 0 40px; }
.menu-section { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + 56px); }
.menu-section h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; padding: 0 var(--gutter); }
.menu-section .ms-desc { color: var(--ink-2); font-size: 14px; margin-top: 4px; padding: 0 var(--gutter); max-width: 640px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; padding: 14px var(--gutter) 8px; }

.menu-item {
  display: flex; gap: 14px; align-items: stretch; padding: 12px; border-radius: 12px;
  border: 1px solid transparent; text-align: left; width: 100%;
  transition: background .13s, border-color .13s, transform .13s;
}
.menu-item:hover { background: var(--bg-2); border-color: var(--line); text-decoration: none; }
.menu-item:active { transform: scale(.995); }
.mi-body { flex: 1; min-width: 0; }
.mi-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mi-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.mi-desc { margin-top: 4px; font-size: 13px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mi-price-row { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.mi-thumb { flex: none; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; align-self: center; }
.mi-thumb .art { width: 100%; height: 100%; }
.menu-item.sold-out { cursor: not-allowed; }
.menu-item.sold-out:hover { background: none; border-color: transparent; }
.menu-item.sold-out .mi-name, .menu-item.sold-out .mi-price-row { color: var(--ink-3); }
.menu-item.sold-out .mi-thumb { filter: grayscale(1); opacity: .55; position: relative; }

.menu-info { padding: 6px var(--gutter) 0; font-size: 13px; color: var(--ink-3); }
.menu-foot { padding: 34px var(--gutter) 10px; font-size: 13px; color: var(--ink-3); line-height: 1.7; border-top: 1px solid var(--line); margin: 30px var(--gutter) 0; }

/* ============================ ITEM MODAL ================================== */
.item-modal .modal-card { width: min(600px, 100%); }
.im-scroll { overflow-y: auto; flex: 1; }
.im-media { position: relative; height: 220px; }
.im-media .art { width: 100%; height: 100%; }
.im-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-1); display: inline-flex; align-items: center; justify-content: center; }
.im-head { padding: 18px 22px 6px; }
.im-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.im-head .im-desc { margin-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.im-body { padding: 6px 22px 22px; }
.opt-group { margin-top: 18px; }
.og-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.og-name { font-size: 15px; font-weight: 700; }
.og-hint { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.og-hint.required { color: var(--red); }
.og-error { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--red); }
.opt-group.invalid .og-error { display: block; }
.opt-group.invalid .og-name { color: var(--red); }
.opt-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.opt-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px;
  text-align: left; width: 100%; transition: background .1s;
}
.opt-row:hover { background: var(--bg-2); }
.opt-row .o-check {
  flex: none; width: 20px; height: 20px; border: 1.6px solid var(--line-2); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: all .12s var(--ease); background: #fff;
}
.opt-row.multi .o-check { border-radius: 6px; }
.opt-row .o-name { flex: 1; font-size: 14px; font-weight: 500; min-width: 0; }
.opt-row .o-desc { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.opt-row .o-price { font-size: 13px; font-weight: 600; color: var(--ink-2); flex: none; }
.opt-row.selected { background: #FFF6F5; }
.opt-row.selected .o-check { background: var(--red); border-color: var(--red); }
.opt-row.disabled { opacity: .45; cursor: not-allowed; }
.im-instructions { margin-top: 18px; }
.im-instructions .textarea { min-height: 74px; }
.im-char-count { text-align: right; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.im-footer {
  position: sticky; bottom: 0; background: #fff; padding: 14px 22px;
  border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center;
  box-shadow: 0 -6px 16px rgba(0,0,0,.05);
}
.qty-stepper {
  display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px;
  height: 48px; overflow: hidden; flex: none;
}
.qty-stepper button { width: 44px; height: 100%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: background .1s; }
.qty-stepper button:hover:not([disabled]) { background: var(--bg-2); }
.qty-stepper button[disabled] { color: #C9C9C9; cursor: not-allowed; }
.qty-stepper .q-val { width: 40px; text-align: center; font-weight: 700; font-size: 15px; }
.im-footer .btn { flex: 1; height: 48px; }

/* ============================= CART DRAWER ================================ */
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 18px; font-weight: 700; }
.cart-store { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-store .cs-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: none; flex: none; }
.cart-store .cs-thumb .art { width: 100%; height: 100%; }
.cart-store .cs-name { font-size: 14px; font-weight: 700; }
.cart-store .cs-eta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cart-scroll { flex: 1; overflow-y: auto; padding: 4px 18px 18px; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cl-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; }
.cl-thumb .art { width: 100%; height: 100%; }
.cl-main { flex: 1; min-width: 0; }
.cl-name { font-size: 14px; font-weight: 600; }
.cl-opts { margin-top: 3px; font-size: 12px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-note { margin-top: 3px; font-size: 12px; color: var(--ink-3); font-style: italic; }
.cl-qty-price { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cl-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 32px; }
.cl-stepper button { width: 32px; height: 100%; display: inline-flex; align-items: center; justify-content: center; }
.cl-stepper button:hover:not([disabled]) { background: var(--bg-2); }
.cl-stepper .q-val { width: 28px; text-align: center; font-size: 13px; font-weight: 700; }
.cl-price { font-weight: 700; font-size: 14px; }
.cl-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: none; }
.cl-actions button { color: var(--ink-3); display: inline-flex; padding: 4px; border-radius: 6px; }
.cl-actions button:hover { color: var(--ink); background: var(--bg-2); }
.cart-remove-toast { text-decoration: underline; font-weight: 600; }

.dashpass-strip {
  margin: 14px 0 4px; border: 1px solid #BFE3D2; background: var(--dashpass-soft);
  border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center;
}
.dashpass-strip .dp-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--dashpass-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; flex: none; }
.dashpass-strip .dp-txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
.dashpass-strip .dp-txt b { color: var(--dashpass); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); transition: background .18s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-1); transition: transform .18s var(--ease); }
.switch.on { background: var(--dashpass-teal); }
.switch.on::after { transform: translateX(18px); }

.cart-totals { padding: 14px 0 4px; font-size: 14px; }
.ct-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); }
.ct-row .ct-lbl { display: inline-flex; align-items: center; gap: 6px; }
.ct-row .strike { text-decoration: line-through; color: var(--ink-3); margin-right: 6px; }
.ct-row .free { color: var(--dashpass); font-weight: 700; }
.ct-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; color: var(--ink); font-weight: 700; font-size: 16px; }
.ct-help { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.cart-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.cart-foot .cf-eta { font-size: 12px; color: var(--ink-3); text-align: center; margin-bottom: 8px; }

/* ============================= CHECKOUT =================================== */
.checkout-wrap { max-width: 1040px; margin: 0 auto; padding: 28px var(--gutter) 40px; }
.checkout-wrap > h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 20px; }
.panel > h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel > h2 .h-ico { color: var(--ink-3); display: inline-flex; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.mode-banner { display: flex; gap: 10px; align-items: center; background: var(--bg-2); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.mode-banner b { color: var(--ink); }

.pay-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.pay-option:hover { border-color: var(--ink-3); }
.pay-option.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pay-option .o-check { flex: none; width: 20px; height: 20px; border: 1.6px solid var(--line-2); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all .12s; }
.pay-option.selected .o-check { background: var(--ink); border-color: var(--ink); }
.pay-option .po-main { flex: 1; }
.pay-option .po-name { font-size: 14px; font-weight: 600; }
.pay-option .po-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.pay-option .po-card-art { width: 40px; height: 28px; border-radius: 5px; flex: none; }
.pay-list { display: flex; flex-direction: column; gap: 10px; }
.new-card-form { margin-top: 12px; border-top: 1px dashed var(--line-2); padding-top: 14px; }

.tip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tip-chip {
  flex: 1; min-width: 76px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: all .12s;
}
.tip-chip:hover { border-color: var(--ink-3); }
.tip-chip.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tip-chip .t-pct { font-weight: 700; font-size: 14px; }
.tip-chip .t-amt { font-size: 12px; color: var(--ink-3); }
.tip-custom { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.tip-custom .input { height: 40px; width: 130px; }

.summary-lines { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 3px 0; }
.summary-line .sl-name { color: var(--ink-2); }
.summary-line .sl-name b { color: var(--ink); }
.place-order-sticky { position: sticky; top: calc(var(--header-h) + 16px); margin-bottom: 8px; }
.checkout-grid { padding-bottom: 220px; }

/* ============================= TRACKING =================================== */
.track-wrap { max-width: 980px; margin: 0 auto; padding: 28px var(--gutter) 40px; }
.track-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.track-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.track-eta-big { font-size: 15px; color: var(--ink-2); }
.track-eta-big b { color: var(--ink); font-size: 18px; }
.track-map {
  position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: #EAF0F4; height: 380px;
}
.track-map svg { width: 100%; height: 100%; }
.map-overlay-card {
  position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-2); padding: 12px 16px; max-width: 300px;
}
.map-overlay-card .moc-status { font-weight: 800; font-size: 15px; }
.map-overlay-card .moc-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.courier-strip {
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; margin-top: 16px; background: #fff;
}
.courier-avatar { width: 46px; height: 46px; border-radius: 999px; flex: none; overflow: hidden; }
.courier-avatar .art { width: 100%; height: 100%; }
.courier-info { flex: 1; }
.courier-info .c-name { font-weight: 700; font-size: 15px; }
.courier-info .c-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.track-steps { display: flex; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 14px; background: #fff; }
.t-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; }
.t-step:not(:first-child)::before {
  content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--line);
}
.t-step.done:not(:first-child)::before, .t-step.current:not(:first-child)::before { background: var(--red); }
.t-dot {
  width: 26px; height: 26px; border-radius: 999px; background: #fff; border: 2px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; color: #fff; z-index: 1; position: relative;
}
.t-step.done .t-dot { background: var(--red); border-color: var(--red); }
.t-step.current .t-dot { border-color: var(--red); }
.t-step.current .t-dot::after {
  content: ""; position: absolute; inset: 4px; border-radius: 999px; background: var(--red);
  animation: t-pulse 1.6s ease-in-out infinite;
}
@keyframes t-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.t-label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); max-width: 110px; }
.t-step.done .t-label, .t-step.current .t-label { color: var(--ink); }
.t-time { font-size: 11px; color: var(--ink-3); }
.track-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; margin-top: 20px; align-items: start; }
.track-map-col { min-width: 0; }

/* ============================= ORDERS ===================================== */
.orders-wrap { max-width: 760px; margin: 0 auto; padding: 28px var(--gutter) 40px; }
.orders-wrap h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.order-row { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; align-items: center; }
.order-row .or-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex: none; }
.order-row .or-thumb .art { width: 100%; height: 100%; }
.order-row .or-main { flex: 1; min-width: 0; }
.order-row .or-name { font-weight: 700; font-size: 16px; }
.order-row .or-sub { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.order-row .or-status { font-size: 13px; font-weight: 600; margin-top: 3px; }
.order-row .or-status.delivered { color: var(--dashpass); }
.order-row .or-status.active { color: var(--red); }
.order-row .btn { flex: none; }

/* ============================ RESPONSIVE ================================== */
@media (max-width: 960px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .place-order-sticky { position: static; }
  .track-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 34px 0 30px; }
  .hero-search { flex-direction: column; padding: 8px; }
  .hero-search .hs-loc { border-right: none; border-bottom: 1px solid var(--line); padding: 10px 8px; flex-basis: auto; }
  .hero-search .hs-q { padding: 10px 8px; }
  .hero-search .btn { width: 100%; }
  .promo-card { width: 300px; min-height: 160px; padding: 18px; }
  .rail-btn { display: none; }
  .section-head h2 { font-size: 19px; }
  .rest-card { width: 246px; }
  .search-toolbar .st-count { display: none; }
  .mi-thumb { width: 72px; height: 72px; }
  .im-media { height: 170px; }
  .item-modal .modal-root, .modal-root.bottom-sheet { padding: 0; align-items: flex-end; }
  .modal-root.bottom-sheet .modal-card {
    width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; transform: translateY(40px);
  }
  .modal-root.bottom-sheet .modal-card.show { transform: translateY(0); }
  .drawer { width: 100vw; }
  .track-steps { flex-direction: column; gap: 0; padding: 10px; }
  .t-step { flex-direction: row; text-align: left; gap: 12px; padding: 10px 6px; }
  .t-step:not(:first-child)::before { top: 0; left: 13px; right: auto; width: 2px; height: 100%; }
  .t-label { max-width: none; }
  .t-dot { flex: none; }
  .t-time { margin-left: auto; }
  .form-row { grid-template-columns: 1fr; }
  .track-map { height: 300px; }
  .cart-line .cl-thumb { width: 46px; height: 46px; }
}
