/* ============================================================
   Food Zone — Figma Design System
   Fonts: Plus Jakarta Sans (700) + Be Vietnam Pro (400-700)
   Palette: #1A1C1C text, #BD0001 accent, #E32619 red,
            #FE9D00 amber, #5D5C5C muted, #5D3F3B brown,
            #E2E2E2/#E8E8E8/#F3F3F3/#F9F9F9 surfaces, #FFFDFF
   ============================================================ */

:root {
  --fz-shell: 375px;
  --fz-pad: 16px;
  --fz-hero-h: 260px;
  --fz-menu-cols: 2;
  --fz-offer-w: 86%;
  --fz-cart-bar: min(340px, calc(100% - 24px));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: #F4F4F4;
  color: #1A1C1C;
}

a { text-decoration: none; }

/* ============================================================
   HOME (index.html)
   ============================================================ */
.app {
  max-width: var(--fz-shell);
  margin: 0 auto;
  background: #FFFFFF;
  min-height: 100vh;
  padding-bottom: 24px;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
}

/* ---- Location Permission Popup ---- */
.loc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 28, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.loc-overlay.show { opacity: 1; visibility: visible; }
.loc-overlay.hide { opacity: 0; visibility: hidden; }
.loc-popup {
  width: 320px;
  max-width: 86%;
  background: #FFFDFF;
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.loc-popup.promo-popup { background: transparent; }
.loc-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #FDE7E5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-icon svg { width: 30px; height: 30px; }
.loc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1A1C1C;
  margin: 0 0 6px;
}
.loc-text {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #5D5C5C;
  margin: 0 0 20px;
}
.loc-allow {
  width: 100%;
  border: none;
  background: #BD0001;
  color: #FFFDFF;
  border-radius: 9999px;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.loc-deny {
  width: 100%;
  border: none;
  background: transparent;
  color: #5D5C5C;
  padding: 12px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

/* ---- Promotional Announcement Popup (image only) ---- */
#promoOverlay { z-index: 300; }
.promo-popup { position: relative; overflow: hidden; padding: 0; }
.loc-overlay.show .promo-popup { animation: promoIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
@keyframes promoIn {
  from { transform: scale(0.72) translateY(24px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.promo-full-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
}
.promo-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: none;
  background: rgba(0,0,0,0.35);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.promo-x svg { width: 18px; height: 18px; stroke: #FFFFFF; }

/* ---- Snowfall animation over the promo popup ---- */
.snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.promo-x { z-index: 3; }
.snow .flake {
  position: absolute;
  top: -10%;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation-name: snowFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes snowFall {
  0%   { top: -10%; margin-left: 0; opacity: 0; }
  8%   { opacity: var(--o, 0.8); }
  90%  { opacity: var(--o, 0.8); }
  100% { top: 108%; margin-left: 26px; opacity: 0; }
}

/* ---- Promotional Banner ---- */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}
.banner-bg {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  color: #FFFDFF;
}
.banner-discount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: #FFFDFF;
}
.banner-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  margin-top: 4px;
}
.banner-sub {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.95;
  margin-top: 10px;
}

/* ---- Search Bar ---- */
.search-section {
  padding: 16px 16px 0;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 9999px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  color: #1A1C1C;
}
.search-input::placeholder {
  color: #5D5C5C;
  opacity: 0.8;
}
.search-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 9999px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Tab Switcher (Restaurant / Grocery) ---- */
.tab-switcher {
  display: flex;
  gap: 8px;
  padding: 14px 16px 4px;
}
.tab-btn {
  flex: 1;
  border: none;
  background: #EEEEEE;
  color: #5D5C5C;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 13px;
  border-radius: 9999px;
  padding: 11px;
  cursor: pointer;
  transition: .2s;
}
.tab-btn.active {
  background: #BD0001;
  color: #FFFDFF;
}

/* ---- Categories ---- */
.categories {
  padding: 20px 16px 8px;
}
.categories-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.categories-scroll::-webkit-scrollbar {
  display: none;
}
.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.category-icon {
  width: 76px;
  height: 76px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.category-label {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #1A1C1C;
}

/* ---- Popular Restaurants ---- */
.restaurants {
  padding: 8px 16px 0;
}
.restaurants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.restaurants-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #1A1C1C;
}
.see-all {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #BD0001;
}
.see-all-icon {
  width: 14px;
  height: 14px;
}

.restaurants-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.restaurant-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #F0F0F0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: default;
}
.restaurant-card:hover {
  transform: none;
}
.card-media {
  position: relative;
  background: #E2E2E2;
}
.card-img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.offer-pill,
.offer-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E32619;
  color: #FFFDFF;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 9px;
  line-height: 1;
  border-radius: 9999px;
  padding: 5px 9px;
  max-width: 90%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9999px;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fav-btn svg {
  width: 16px;
  height: 16px;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.card-name {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #1A1C1C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #E8E8E8;
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.rating-star {
  width: 12px;
  height: 12px;
}
.rating {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  color: #1A1C1C;
}
.reviews {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  color: #5D5C5C;
  white-space: nowrap;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-tier {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #5D3F3B;
}
.dot {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: #C8C6C5;
  flex-shrink: 0;
}
.cuisine {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #5D3F3B;
}
.card-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.info-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #5D5C5C;
}
.info-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================================
   WELCOME / AUTH (welcome.html)
   ============================================================ */
.welcome-body {
  background: #F4F4F4;
}
.welcome-app {
  max-width: var(--fz-shell);
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
}
.welcome-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 24px 24px;
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 9999px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.badge-icon {
  width: 16px;
  height: 16px;
}
.promo-badge span {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #1A1C1C;
}
.welcome-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  text-align: center;
  color: #1A1C1C;
  max-width: 280px;
}
.welcome-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}
.hero-bg {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 9999px;
  background: #F2EBDC;
}
.welcome-hero .hero-img {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  z-index: 1;
}
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px 32px;
  margin-top: auto;
}
.welcome-actions .actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border: 1px solid #E5E5E5;
  border-radius: 9999px;
  background: #FFFFFF;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1A1C1C;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
}
.action-btn svg {
  width: 18px;
  height: 18px;
}
.legal-text {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: #5D5C5C;
}

/* ---- Auth phone form (mobile_register) ---- */
.welcome-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 8px;
}
.phone-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 9999px;
  padding: 13px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.phone-code {
  font-weight: 700;
  font-size: 15px;
  color: #1A1C1C;
}
.phone-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  color: #1A1C1C;
}
.welcome-form .action-btn {
  background: #BD0001;
  border-color: #BD0001;
  color: #FFFDFF;
}
.form-error {
  font-size: 12px;
  color: #BD0001;
  text-align: center;
}

/* ============================================================
   RESTAURANT MENU (menu.html)
   ============================================================ */
.menu-body {
  background: #F4F4F4;
}
.menu-app {
  max-width: var(--fz-shell);
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: #FFFFFF;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
body.cart-bar-open .menu-app {
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
}

/* Delivery Info */
.delivery-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F3F3F3;
  border-radius: 12px;
  margin: 12px var(--fz-pad);
  padding: 12px 14px;
}

/* Zomato-style delivery address bar on restaurant menu */
.menu-addr-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - (var(--fz-pad) * 2));
  margin: 12px var(--fz-pad) 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(26, 28, 28, 0.06), 0 6px 18px rgba(26, 28, 28, 0.06);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.menu-addr-bar:active {
  transform: scale(0.985);
}
.menu-addr-pin {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(227, 38, 25, 0.1);
  color: #E32619;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-addr-pin svg {
  width: 18px;
  height: 18px;
}
.menu-addr-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-addr-label {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7A8194;
}
.menu-addr-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1A1C1C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-addr-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #E32619;
}
.menu-addr-change svg {
  width: 14px;
  height: 14px;
}
.menu-addr-toast {
  margin: 8px var(--fz-pad) 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #E8F7EE;
  color: #146C2E;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 500;
}
.delivery-info--below-addr {
  margin-top: 8px;
}

.delivery-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.delivery-clock {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #E32619;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.delivery-clock svg {
  width: 16px;
  height: 16px;
}
.delivery-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.delivery-text span {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #1A1C1C;
}

/* Hero Header */
.hero {
  position: relative;
}
.hero-img {
  display: block;
  width: 100%;
  height: var(--fz-hero-h);
  object-fit: cover;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
}
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--fz-pad);
}
.topbar-right {
  display: flex;
  gap: 8px;
}
.topbar-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 9999px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.topbar-btn svg {
  width: 18px;
  height: 18px;
}
.restaurant-id {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  padding: 0 var(--fz-pad);
  color: #FFFFFF;
}
.menu-app .rest-logo {
  display: inline-flex;
  margin-bottom: 8px;
}
.menu-app .rest-logo img {
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  border: 2px solid #FFFFFF;
  background: #FFFFFF;
}
.rest-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}
.rest-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.rest-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
}
.rest-rating .star {
  width: 15px;
  height: 15px;
}
.rest-rating b {
  font-weight: 700;
}
.rest-rating span {
  font-weight: 400;
  opacity: 0.9;
}
.rest-tag {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.22);
}

/* Offers — slide carousel */
.offers-slider {
  padding: 12px 0 8px;
  position: relative;
}
.offers-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px var(--fz-pad) 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.offers-track:active {
  cursor: grabbing;
}
.offers-track::-webkit-scrollbar {
  display: none;
  height: 0;
}

/* legacy .offers alias (grocery pages etc.) */
.offers {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px;
  padding-right: 28px;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.offers::-webkit-scrollbar {
  display: none;
  height: 0;
}

.offer-card {
  flex: 0 0 var(--fz-offer-w);
  width: var(--fz-offer-w);
  min-width: var(--fz-offer-w);
  max-width: none;
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  scroll-snap-align: center;
  box-sizing: border-box;
}
.offers-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 2px 0 4px;
  min-height: 16px;
}
.offers-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #D8D8D8;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.offers-dot.active {
  width: 18px;
  background: #BD0001;
}
.offer-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.offer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.offer-text b {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1A1C1C;
  word-break: break-word;
}
.offer-text > span:not(.offer-badge):not(.menu-offer-badge) {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #5D5C5C;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.menu-offer-badge {
  align-self: flex-start;
  margin-top: 4px;
  background: #FFDAD6;
  color: #BD0001;
  border-radius: 9999px;
  padding: 4px 10px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 11px;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(var(--fz-menu-cols), 1fr);
  gap: 12px;
  padding: 4px var(--fz-pad);
  margin-bottom: 8px;
}
.menu-grid-title {
  grid-column: 1 / -1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1A1C1C;
  margin-bottom: 4px;
}
.menu-item {
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.menu-img {
  position: relative;
  background: #F3F3F3;
}
.menu-img img {
  display: block;
  width: 100%;
  height: 124px;
  object-fit: cover;
}
.menu-add-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 9999px;
  background: #BD0001;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  -webkit-tap-highlight-color: transparent;
}
.menu-add-btn svg {
  width: 16px;
  height: 16px;
}
.menu-text {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-text h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #1A1C1C;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.3;
  min-height: 2.6em;
}
.price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-now {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1A1C1C;
}
.price-was {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #5D5C5C;
  text-decoration: line-through;
}

/* Category Tabs */
.cat-tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--fz-shell);
  background: #F9F9F9;
  border-top: 1px solid #EEEEEE;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  margin-top: 8px;
  z-index: 100;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #5D5C5C;
  padding: 7px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.cat-tab.active {
  background: #BD0001;
  color: #FFFDFF;
  font-weight: 600;
}

/* Floating cart — sits above category tabs */
.floating-cart {
  position: fixed;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: #1A1C1C;
  color: #fff;
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: var(--fz-cart-bar);
  max-width: calc(var(--fz-shell) - 24px);
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.floating-cart.show {
  opacity: 1;
  pointer-events: auto;
}
.floating-cart .cart-left {
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
}
.floating-cart .cart-left .dot {
  margin: 0 6px;
  opacity: 0.6;
}
.floating-cart .view-cart-btn {
  flex-shrink: 0;
  background: #BD0001;
  border: none;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}

/* ============================================================
   CART (cart.html)
   ============================================================ */
.cart-body {
  background: #F9F9F9;
}
.cart-app {
  max-width: var(--fz-shell);
  width: 100%;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: #F9F9F9;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}
.cart-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cart-header {
  position: relative;
  top: auto;
  flex-shrink: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F9F9F9;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
.cart-header .back-btn,
.cart-header .clear-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: #EEEEEE;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cart-header .back-btn svg,
.cart-header .clear-btn svg {
  width: 18px;
  height: 18px;
}
.cart-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1A1C1C;
}

/* Main */
.cart-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 16px 20px;
  flex: 1 1 auto;
}

/* Restaurant summary */
.rest-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #F0F0F0;
}
.cart-app .rest-logo {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #E2E2E2;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-app .rest-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rest-summary-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rest-summary-text h2 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.rest-delivery {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 12px;
  color: #5D3F3B;
}
.rest-delivery svg {
  width: 13px;
  height: 13px;
}

/* Cart items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.items-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #1A1C1C;
}
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #F0F0F0;
  position: relative;
}
.item-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}
.item-thumb {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #E2E2E2;
  overflow: hidden;
}
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFECEF;
  flex-shrink: 0;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.item-remove svg {
  width: 12px;
  height: 12px;
}
.item-remove:active {
  background: #FFD9D9;
}
.item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.item-name {
  font-weight: 600;
  font-size: 15px;
  color: #1A1C1C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-price {
  font-weight: 700;
  font-size: 15px;
  color: #1A1C1C;
  flex-shrink: 0;
}
.item-note {
  font-weight: 500;
  font-size: 12px;
  color: #5D5C5C;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: #EEEEEE;
  border-radius: 9999px;
  padding: 3px;
  align-self: flex-start;
  margin-top: 4px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.qty-btn svg {
  width: 13px;
  height: 13px;
}
.qty-minus {
  background: #FFFFFF;
}
.qty-plus {
  background: #BD0001;
}
.qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #1A1C1C;
}
.add-more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-weight: 400;
  font-size: 15px;
  color: #1A1C1C;
  cursor: pointer;
  padding: 4px;
}
.add-more svg {
  width: 18px;
  height: 18px;
}

/* Delivery card */
.delivery-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #F0F0F0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.delivery-head h3 {
  font-weight: 600;
  font-size: 14px;
  color: #1A1C1C;
}
.edit-btn {
  border: none;
  background: transparent;
  font-weight: 500;
  font-size: 12px;
  color: #BD0001;
  cursor: pointer;
}
.delivery-addr {
  display: flex;
  align-items: center;
  gap: 10px;
}
.delivery-addr svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.addr-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.addr-main {
  font-weight: 600;
  font-size: 14px;
  color: #1A1C1C;
}
.addr-sub {
  font-weight: 500;
  font-size: 12px;
  color: #5D5C5C;
}

/* Promo */
.promo {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.promo-input {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 0 14px;
  min-height: 48px;
  border: 1px solid #F0F0F0;
}
.promo-input span {
  font-weight: 400;
  font-size: 14px;
  color: #1A1C1C;
}
.promo-input svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.apply-btn {
  border: none;
  background: #FE9D00;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 0 20px;
  min-height: 48px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}
.promo-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #1A1C1C;
  min-width: 0;
}
.promo-field::placeholder { color: #A8A8A8; }
.promo-applied { justify-content: flex-start; gap: 8px; border-color: #C7F2D4; background: #F0FDF4; }
.promo-applied .promo-code {
  font-weight: 600;
  font-size: 14px;
  color: #15803D;
  display: flex;
  flex-direction: column;
}
.promo-applied .promo-code small { font-weight: 400; font-size: 12px; color: #4ADE80; }
.remove-promo-btn { background: #F3F3F3; color: #BA1A1A; }
.promo-msg { font-size: 12px; font-weight: 500; margin-top: 2px; padding: 0 2px; }
.promo-msg.error { color: #E32619; }
.promo-msg.success { color: #15803D; }

/* Bill */
.bill {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #F0F0F0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bill-row span {
  font-weight: 400;
  font-size: 14px;
  color: #1A1C1C;
}
.bill-divider {
  height: 1px;
  background: #EEEEEE;
}
.bill-row.discount span {
  font-weight: 600;
  color: #BD0001;
}
.discount-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.discount-label svg {
  width: 16px;
  height: 16px;
}

.bill-row.total span {
  font-weight: 700;
  font-size: 15px;
  color: #1A1C1C;
}

/* Checkout — pinned to cart column bottom */
.checkout {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  width: 100%;
  max-width: none;
  margin-top: 0;
  flex-shrink: 0;
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
  box-sizing: border-box;
}
.checkout-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 0 1 auto;
}
.total-lbl {
  font-weight: 500;
  font-size: 12px;
  color: #5D5C5C;
}
.total-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #1A1C1C;
  line-height: 1.1;
}
.checkout-details {
  display: none;
}
.place-order {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: #BD0001;
  color: #FFFDFF;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
}
.place-order svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   PAYMENT (payment.html)
   ============================================================ */
.pay-body {
  background: #F9F9F9;
}
.pay-app {
  max-width: var(--fz-shell);
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: #F9F9F9;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  padding-bottom: 100px;
}

/* Header */
.pay-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F9F9F9;
  padding: 14px 16px;
}
.pay-header .back-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: #EEEEEE;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pay-header .back-btn svg {
  width: 18px;
  height: 18px;
}
.pay-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #1A1C1C;
}
.header-spacer {
  flex: 1;
}

/* Main */
.pay-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 12px 16px 20px;
}
.method-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.group-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #1A1C1C;
}
.method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
}
.method-card.selected {
  border-color: #BD0001;
}
.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #F9F9F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.method-icon svg {
  width: 20px;
  height: 20px;
}
.method-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.method-name {
  font-weight: 600;
  font-size: 14px;
  color: #1A1C1C;
}
.method-sub {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #5D5C5C;
}
.radio {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 2px solid #C8C6C5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radio:after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: transparent;
}
.radio-on {
  border-color: #BD0001;
}
.radio-on:after {
  background: #BD0001;
}
.method-icon-qr {
  background: #FFF1F0;
}
.qr-panel {
  margin-top: 4px;
}
.qr-card {
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.qr-amount {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #FFF7F6;
  border-radius: 12px;
  font-size: 13px;
  color: #5D5C5C;
}
.qr-amount strong {
  font-size: 20px;
  color: #BD0001;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.qr-frame {
  padding: 12px;
  background: #fff;
  border: 1px solid #EEEEEE;
  border-radius: 14px;
}
.qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
}
.qr-hint {
  font-size: 13px;
  color: #5D5C5C;
  text-align: center;
  margin: 0;
}
.qr-vpa {
  font-size: 12px;
  color: #7A8194;
  text-align: center;
  margin: 0;
  word-break: break-all;
}
.qr-vpa code {
  font-family: ui-monospace, monospace;
  background: #F3F3F3;
  padding: 2px 6px;
  border-radius: 6px;
  color: #1A1C1C;
}
.qr-ref {
  margin: 8px 0 10px;
  font-size: 12px;
  color: #7A8194;
  text-align: center;
}
.qr-ref code {
  font-family: ui-monospace, monospace;
  background: #F3F3F3;
  padding: 2px 6px;
  border-radius: 6px;
  color: #1A1C1C;
}
.qr-steps {
  margin: 0 0 14px;
  padding: 12px 12px 12px 28px;
  background: #FFF8F2;
  border-radius: 12px;
  border: 1px solid #F0E4D8;
}
.qr-steps ol {
  margin: 0;
  padding: 0 0 0 8px;
}
.qr-steps li {
  font-size: 12px;
  color: #5C6478;
  margin-bottom: 6px;
  line-height: 1.4;
}
.qr-steps li:last-child { margin-bottom: 0; }
.method-disabled { opacity: 0.55; }
.pay-alert-warn {
  background: #FFF6E5;
  border: 1px solid #F5C26B;
  color: #7A5A00;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.pay-info-card {
  background: #FFF8F2;
  border: 1px solid #F0E4D8;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
}
.pay-info-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #1A1C1C;
}
.pay-info-card ol {
  margin: 0;
  padding-left: 18px;
}
.pay-info-card li {
  font-size: 13px;
  color: #5C6478;
  margin-bottom: 6px;
  line-height: 1.4;
}
.pay-alert-warn code {
  font-size: 11px;
  background: rgba(0,0,0,0.06);
  padding: 1px 4px;
  border-radius: 4px;
}
.qr-open-upi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  background: #1A1C1C;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
}
.qr-open-upi svg {
  width: 16px;
  height: 16px;
}
.upi-same-phone {
  text-align: center;
  margin-bottom: 12px;
}
.upi-same-phone-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #1A1C1C;
}
.upi-same-phone-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: #5C6478;
  line-height: 1.45;
}
.qr-scan-details {
  margin: 8px 0 14px;
  border: 1px dashed #E5D5C8;
  border-radius: 12px;
  padding: 10px 12px;
  background: #FAFAFA;
}
.qr-scan-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #5C6478;
  list-style: none;
}
.qr-scan-details summary::-webkit-details-marker { display: none; }
.qr-scan-details[open] summary { margin-bottom: 10px; }
.qr-utr-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qr-utr-field label {
  font-size: 13px;
  font-weight: 700;
  color: #1A1C1C;
}
.qr-utr-field .req { color: #BD0001; }
.qr-utr-field input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #E8E8E8;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #FAFBFD;
}
.qr-utr-field input:focus {
  outline: none;
  border-color: #BD0001;
}
.qr-utr-field small {
  font-size: 11px;
  color: #7A8194;
}
.qr-error {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFECEF;
  color: #BA1A1A;
  font-size: 13px;
  font-weight: 600;
}
.pay-alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFECEF;
  color: #BA1A1A;
  font-size: 13px;
  font-weight: 600;
}
.radio-off {
  border-color: #C8C6C5;
}

/* Add New Card */
.add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: #FFB4A8;
  color: #BD0001;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.add-card svg {
  width: 18px;
  height: 18px;
}

/* Fixed checkout */
.pay-checkout {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 375px;
  max-width: 100%;
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.pay-checkout-left {
  display: flex;
  flex-direction: column;
}
.pay-checkout-label {
  font-weight: 400;
  font-size: 16px;
  color: #1A1C1C;
}
.pay-checkout-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #1A1C1C;
}
.pay-checkout-val .pay-strike {
  font-size: 14px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
  margin-right: 6px;
}
.pay-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: #BD0001;
  color: #FFFDFF;
  border-radius: 9999px;
  padding: 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.pay-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   ORDER SUCCESS (success.html)
   ============================================================ */
body.success-body {
  background: #F4F4F4;
  margin: 0;
}
.success-app {
  position: relative;
  max-width: var(--fz-shell);
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 70% at 100% -5%, rgba(189, 0, 1, 0.14), transparent 50%),
    radial-gradient(90% 50% at 0% 100%, rgba(254, 157, 0, 0.14), transparent 45%),
    #FDF8F5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 36px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.bg-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.blob-pink {
  width: 240px;
  height: 240px;
  background: #FFB4A8;
  top: -70px;
  right: -70px;
}
.blob-orange {
  width: 220px;
  height: 220px;
  background: #FFB869;
  bottom: -40px;
  left: -60px;
}
.blob-soft {
  width: 160px;
  height: 160px;
  background: #FFE0C2;
  top: 40%;
  left: 60%;
  opacity: 0.35;
}

.success-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  z-index: 1;
}
.success-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #BD0001;
  letter-spacing: -0.02em;
}
.success-chip {
  font-size: 11px;
  font-weight: 800;
  color: #15803D;
  background: #E7F8EF;
  border: 1px solid #C7F2D4;
  padding: 6px 10px;
  border-radius: 999px;
}

.success-hero {
  position: relative;
  margin-bottom: 22px;
  z-index: 1;
  animation: successPop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
@keyframes successPop {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
.hero-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 9999px;
  border: 2px solid rgba(34, 197, 94, 0.35);
  animation: successPulse 2s ease-out infinite;
}
@keyframes successPulse {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.18); opacity: 0; }
}
.hero-ring {
  width: 148px;
  height: 148px;
  border-radius: 9999px;
  background: #FFFFFF;
  box-shadow: 0 16px 40px -12px rgba(30, 36, 51, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  z-index: 1;
}
.hero-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}
.success-badge {
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #34D399, #16A34A);
  border: 4px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35);
  z-index: 2;
  animation: successBadge 0.5s 0.25s both;
}
@keyframes successBadge {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.success-badge svg {
  width: 22px;
  height: 22px;
}

.success-copy {
  text-align: center;
  z-index: 1;
  margin-bottom: 20px;
  animation: addrCardIn 0.45s 0.1s both;
}
.success-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: #1A1C1C;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.success-sub {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: #5D5C5C;
}
.success-sub strong { color: #1A1C1C; font-weight: 700; }

.success-timeline {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
  z-index: 1;
  padding: 0 4px;
  animation: addrCardIn 0.45s 0.15s both;
}
.tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}
.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #E8E8E8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #E8E8E8;
}
.tl-step.done .tl-dot,
.tl-step.active .tl-dot {
  background: #BD0001;
  box-shadow: 0 0 0 2px #FFDAD6;
}
.tl-step.active .tl-dot {
  box-shadow: 0 0 0 4px rgba(189, 0, 1, 0.18);
}
.tl-label {
  font-size: 11px;
  font-weight: 700;
  color: #9AA0AE;
}
.tl-step.done .tl-label,
.tl-step.active .tl-label { color: #BD0001; }
.tl-line {
  flex: 1;
  height: 3px;
  background: #E8E8E8;
  border-radius: 999px;
  margin: 0 4px 18px;
}
.tl-step.done + .tl-line {
  background: linear-gradient(90deg, #BD0001, #FF8A80);
}

.order-card,
.success-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(238, 238, 238, 0.95);
  box-shadow: 0 16px 40px -20px rgba(30, 36, 51, 0.28);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  box-sizing: border-box;
  animation: addrCardIn 0.45s 0.2s both;
}
.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-time {
  font-size: 11px;
  font-weight: 600;
  color: #7A8194;
  background: #F5F6FA;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.order-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.order-stat {
  background: #FAFBFD;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.order-stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1A1C1C;
}
.order-stat span {
  font-size: 11px;
  color: #7A8194;
  font-weight: 600;
}
.order-divider {
  height: 1px;
  background: #F0F0F0;
}
.order-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.order-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.order-icon svg {
  width: 18px;
  height: 18px;
}
.icon-red { background: #FFF1F0; }
.order-amber { background: #FFF4E8; }
.order-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.order-label {
  font-weight: 700;
  font-size: 11px;
  color: #7A8194;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.order-value-lg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #BD0001;
  letter-spacing: -0.02em;
}
.order-value {
  font-weight: 600;
  font-size: 13px;
  color: #1A1C1C;
  line-height: 1.4;
  word-break: break-word;
}
.success-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.success-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.success-item-name {
  font-weight: 700;
  color: #1A1C1C;
  text-transform: capitalize;
  min-width: 0;
}
.success-item-meta {
  color: #7A8194;
  font-weight: 600;
  flex-shrink: 0;
}
.success-more {
  margin: 0;
  font-size: 12px;
  color: #9AA0AE;
  font-weight: 600;
}

.success-app .actions {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  animation: addrCardIn 0.45s 0.28s both;
}
.btn-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: linear-gradient(135deg, #E32619, #BD0001);
  color: #FFFDFF !important;
  border-radius: 14px;
  padding: 16px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 14px 28px -12px rgba(189, 0, 1, 0.55);
}
.btn-track svg {
  width: 18px;
  height: 18px;
}
.btn-home {
  border: none;
  background: transparent;
  color: #1A1C1C;
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .success-title { font-size: 28px; }
  .hero-ring { width: 168px; height: 168px; }
  .success-app { padding-left: 28px; padding-right: 28px; }
}

/* ============================================================
   Overrides for old style.css selectors used on new pages
   ============================================================ */
.offer-pill {
  top: 8px;
  left: 8px;
  bottom: auto;
  background: #E32619;
  border-radius: 9999px;
}

/* ============================================================
   HOME SEARCH SUGGESTIONS DROPDOWN
   ============================================================ */
.search-section { position: relative; }
.search-dropdown {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% - 8px);
  background: #FFFFFF;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  z-index: 50;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}
.search-dropdown.open { display: block; }
.search-dropdown .section-header {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  padding: 8px 16px 4px;
  background: #FAFAFA;
  border-bottom: 1px solid #F0F0F0;
}
.search-dropdown .suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F5F5F5;
  transition: background 0.15s;
}
.search-dropdown .suggestion-item:last-child { border-bottom: none; }
.search-dropdown .suggestion-item:hover,
.search-dropdown .suggestion-item.active { background: #FEF2F0; }
.search-dropdown .suggestion-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #E2E2E2;
}
.search-dropdown .suggestion-info { flex: 1; min-width: 0; }
.search-dropdown .suggestion-name {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1A1C1C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-dropdown .suggestion-name strong { color: #BD0001; }
.search-dropdown .suggestion-sub {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.search-dropdown .suggestion-price {
  font-size: 13px;
  font-weight: 700;
  color: #1A1C1C;
  flex-shrink: 0;
  margin-left: auto;
}
.search-dropdown .suggestion-shop-arrow {
  font-size: 18px;
  color: #CCC;
  flex-shrink: 0;
  margin-left: auto;
}
.search-dropdown .no-results {
  padding: 24px 16px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ============================================================
   CHECKOUT ADDRESS
   ============================================================ */
.addr-app {
  max-width: var(--fz-shell, 375px);
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(189, 0, 1, 0.12), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(254, 157, 0, 0.1), transparent 50%),
    #F7F5F4;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  position: relative;
}
.addr-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 8px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, #F7F5F4 70%, rgba(247, 245, 244, 0));
}
.addr-header .back-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #FFFFFF;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 36, 51, 0.08);
  flex-shrink: 0;
}
.addr-header .back-btn svg { width: 18px; height: 18px; }
.addr-header-copy { min-width: 0; padding-top: 2px; }
.addr-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A1C1C;
  line-height: 1.2;
}
.addr-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #7A8194;
  font-weight: 500;
}
.addr-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 20px 14px;
}
.addr-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #9AA0AE;
}
.addr-step i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #E8E8E8;
  color: #5D5C5C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.addr-step.active { color: #BD0001; }
.addr-step.active i {
  background: #BD0001;
  color: #fff;
}
.addr-step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #BD0001, #E8E8E8);
  border-radius: 999px;
}
.addr-form {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.addr-card {
  background: #FFFFFF;
  border: 1px solid rgba(238, 238, 238, 0.9);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px -16px rgba(30, 36, 51, 0.22);
}
.addr-card-in {
  animation: addrCardIn 0.45s ease both;
}
@keyframes addrCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.addr-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.addr-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #FFF1F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.addr-card-icon svg { width: 20px; height: 20px; }
.addr-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1A1C1C;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.addr-card-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #7A8194;
  font-weight: 500;
}
.addr-field { margin-bottom: 14px; }
.addr-field:last-child { margin-bottom: 0; }
.addr-field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #1A1C1C;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.addr-field .opt {
  font-weight: 600;
  color: #9AA0AE;
}
.addr-field input[type="text"],
.addr-field textarea {
  width: 100%;
  border: 1.5px solid #ECECEC;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #FAFBFD;
  color: #1A1C1C;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.addr-field input[type="text"]:focus,
.addr-field textarea:focus {
  border-color: #BD0001;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(189, 0, 1, 0.1);
}
.addr-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FAFBFD;
  border: 1.5px solid #ECECEC;
  border-radius: 14px;
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.addr-search-wrap:focus-within {
  border-color: #BD0001;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(189, 0, 1, 0.1);
}
.addr-search-wrap input {
  border: none !important;
  box-shadow: none !important;
  padding: 13px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  width: 100%;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.addr-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.addr-actions-row {
  margin-top: 10px;
}
.addr-locate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(189, 0, 1, 0.18);
  background: #FFF1F0;
  color: #BD0001;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.addr-locate:active { transform: scale(0.98); }
.addr-locate svg { width: 16px; height: 16px; }
.addr-locate.busy { opacity: 0.65; }
.addr-preview {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF7F6, #FFFFFF);
  border: 1px solid #FFDAD6;
}
.addr-preview.show {
  animation: addrCardIn 0.35s ease both;
}
.addr-preview-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #BD0001;
  box-shadow: 0 0 0 4px rgba(189, 0, 1, 0.15);
  flex-shrink: 0;
}
.addr-preview-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.addr-preview-text strong {
  font-size: 13px;
  color: #1A1C1C;
}
.addr-preview-text span {
  font-size: 12px;
  color: #7A8194;
  line-height: 1.35;
  word-break: break-word;
}
.addr-preview-clear {
  border: none;
  background: #FFECEF;
  color: #BA1A1A;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.addr-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #7A8194;
  line-height: 1.4;
}
.addr-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--fz-shell, 375px);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(247, 245, 244, 0), #F7F5F4 28%);
  z-index: 20;
  box-sizing: border-box;
}
.addr-save {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #E32619, #BD0001);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 28px -10px rgba(189, 0, 1, 0.55);
  transition: transform 0.15s ease;
}
.addr-save:active { transform: scale(0.98); }
.addr-save svg { width: 18px; height: 18px; }
.addr-app .error {
  color: #BA1A1A;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}
.pac-container {
  z-index: 10000 !important;
  border-radius: 14px !important;
  border: 1px solid #EEE !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14) !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  margin-top: 6px !important;
  overflow: hidden;
}
.pac-item {
  padding: 12px 14px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  cursor: pointer;
  border-top: 1px solid #F5F5F5;
}
.pac-item:first-child { border-top: 0; }
.pac-item:hover,
.pac-item-selected {
  background: #FFF7F6 !important;
}
.pac-item-query { font-size: 13px; }

@media (min-width: 768px) {
  .addr-title { font-size: 24px; }
  .addr-form { padding: 0 24px; gap: 16px; }
  .addr-card { padding: 20px; }
}

/* ============================================================
   TABLET / LARGE SCREENS — restaurant + shop shell
   ============================================================ */
@media (min-width: 600px) {
  :root {
    --fz-shell: 560px;
    --fz-pad: 20px;
    --fz-hero-h: 300px;
    --fz-menu-cols: 2;
    --fz-offer-w: 70%;
    --fz-cart-bar: min(420px, calc(100% - 32px));
  }

  .menu-img img {
    height: 140px;
  }

  .rest-name {
    font-size: 28px;
  }

  .menu-grid-title {
    font-size: 22px;
  }

  .menu-text h3 {
    font-size: 15px;
  }

  .menu-add-btn {
    width: 40px;
    height: 40px;
  }

  .delivery-text span {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  :root {
    --fz-shell: 720px;
    --fz-pad: 24px;
    --fz-hero-h: 340px;
    --fz-menu-cols: 3;
    --fz-offer-w: 46%;
    --fz-cart-bar: min(480px, calc(100% - 40px));
  }

  body {
    background: #EAEAEA;
  }

  .menu-app,
  .cart-app,
  .app,
  .welcome-app,
  .pay-app,
  .success-app {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0;
  }

  .menu-grid {
    gap: 16px;
  }

  .menu-img img {
    height: 150px;
  }

  .menu-item {
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .offers-track {
    padding-left: var(--fz-pad);
    padding-right: var(--fz-pad);
    gap: 14px;
  }

  .offer-card {
    padding: 16px;
    scroll-snap-align: start;
  }

  .cat-tabs {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .cat-tab {
    padding: 8px 16px;
    font-size: 15px;
  }

  .floating-cart {
    padding: 14px 18px;
    border-radius: 18px;
  }

  .topbar-btn {
    width: 44px;
    height: 44px;
  }

  .menu-app .rest-logo img {
    width: 64px;
    height: 64px;
  }

  .rest-meta {
    gap: 10px;
  }

  .cart-main {
    padding: 16px var(--fz-pad) 24px;
    gap: 18px;
  }

  .cart-item {
    padding: 14px;
  }

  .item-thumb-wrap,
  .item-thumb {
    width: 76px;
    height: 76px;
  }

  .place-order {
    font-size: 15px;
    padding: 16px 20px;
  }

  .total-val {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --fz-shell: 900px;
    --fz-pad: 28px;
    --fz-hero-h: 380px;
    --fz-menu-cols: 4;
    --fz-offer-w: 36%;
    --fz-cart-bar: min(520px, calc(100% - 48px));
  }

  .menu-grid {
    gap: 18px;
  }

  .menu-img img {
    height: 160px;
  }

  .menu-text {
    padding: 12px 14px 14px;
  }

  .menu-text h3 {
    font-size: 15px;
    min-height: 2.4em;
  }

  .price-now {
    font-size: 16px;
  }

  .rest-name {
    font-size: 32px;
  }

  .delivery-info {
    margin-top: 16px;
    padding: 14px 18px;
  }

  /* Wider cart layout on large tablets */
  .cart-item {
    align-items: center;
  }

  .promo {
    max-width: 480px;
  }
}

@media (min-width: 1280px) {
  :root {
    --fz-shell: 980px;
    --fz-menu-cols: 4;
    --fz-offer-w: 32%;
  }
}

/* Prefer readable line lengths on landscape tablets */
@media (min-width: 768px) and (orientation: landscape) {
  :root {
    --fz-hero-h: 280px;
  }
}

/* ============================================================
   TRACK ORDER
   ============================================================ */
.track-body {
  overflow-x: hidden;
  overflow-y: auto;
}
.track-app {
  align-items: stretch;
  overflow: visible !important;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto !important;
}
.track-back {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #EEE6E0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1A1C1C;
  text-decoration: none;
  box-shadow: 0 4px 12px -8px rgba(30, 36, 51, 0.35);
}
.track-back svg {
  width: 18px;
  height: 18px;
}
.track-hero {
  width: 100%;
  text-align: left;
  margin-bottom: 16px;
  z-index: 1;
}
.track-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6B7280 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.track-title {
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #111827 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.track-sub {
  margin: 0;
  font-size: 14px;
  color: #374151 !important;
  line-height: 1.45;
  font-weight: 500;
}
.track-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #15803D;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.track-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #F0E8E2;
  border-radius: 18px;
  padding: 16px 16px 8px;
  margin-bottom: 12px;
  box-shadow: 0 10px 28px -18px rgba(30, 36, 51, 0.35);
  z-index: 1;
  box-sizing: border-box;
  opacity: 1 !important;
}
.track-card-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  color: #111827 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.track-card-flat {
  margin-bottom: 16px;
  opacity: 1 !important;
  animation: none !important;
}
.track-cancel-card {
  background: #FFF5F5;
  border-color: #FFD0D0;
  padding-bottom: 16px;
}
.track-cancel-card strong {
  display: block;
  color: #BD0001;
  font-size: 15px;
  margin-bottom: 4px;
}
.track-cancel-card p {
  margin: 0;
  font-size: 13px;
  color: #7A8194;
  line-height: 1.45;
}

.track-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.track-step {
  display: flex;
  gap: 12px;
  min-height: 56px;
}
.track-step-rail {
  width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.track-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #D9DEE8;
  background: #FFFFFF;
  margin-top: 2px;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.track-step-line {
  flex: 1;
  width: 2px;
  background: #E8ECF2;
  margin: 4px 0;
  border-radius: 2px;
  transition: background 0.25s ease;
}
.track-step-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
}
.track-step-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: #6B7280 !important;
}
.track-step-copy small {
  font-size: 12px;
  color: #6B7280 !important;
  font-weight: 500;
}
.track-step.done .track-step-dot,
.track-step.active .track-step-dot {
  border-color: #BD0001;
  background: #BD0001;
}
.track-step.active .track-step-dot {
  box-shadow: 0 0 0 4px rgba(189, 0, 1, 0.16);
}
.track-step.done .track-step-line {
  background: #BD0001;
}
.track-step.done .track-step-copy strong,
.track-step.active .track-step-copy strong {
  color: #111827 !important;
}
.track-step.done .track-step-copy small,
.track-step.active .track-step-copy small {
  color: #4B5563 !important;
}

.track-driver {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}
.track-driver-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #FFF0F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.track-driver-avatar svg {
  width: 22px;
  height: 22px;
}
.track-driver-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.track-driver-text strong {
  font-size: 15px;
  color: #1A1C1C;
}
.track-driver-text span {
  font-size: 12px;
  color: #7A8194;
  font-weight: 500;
}
.track-call {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #BD0001;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.track-call svg {
  width: 18px;
  height: 18px;
}
.track-map {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #F0F2F5;
}

.track-app .success-topbar {
  gap: 10px;
}
.track-app .success-brand {
  flex: 1;
  text-align: center;
}
.track-app .success-chip {
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

