/* =========================================================
   MOKO Digital - Shared Design System
   Brand colors from UX flow: #ca030c red, Speedee font
   ========================================================= */
@font-face {
  font-family: 'Speedee';
  src: url('../fonts/Speedee-Regular.otf') format('opentype'),
       url('../fonts/SPEEDEE-REGULAR.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Speedee';
  src: url('../fonts/SPEEDEE-BOLD.TTF') format('truetype'),
       url('../fonts/Speedee-Bold.woff2') format('woff2'),
       url('../fonts/Speedee-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}
:root {
  --red: #ca030c;
  --red-dark: #8b0000;
  --red-deep: #b8102d;
  --green: #27ae60;
  --amber: #ffb02e;
  --text: #1f2937;
  --muted: #6b7280;
  --muted2: #9ca3af;
  --line: #ebeef2;
  --bg: #f5f6f8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 32px rgba(202,3,12,0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Speedee', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
a { color: var(--red); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.red { color: var(--red); }

.btn {
  border: none; cursor: pointer; border-radius: 12px;
  font-weight: 700; text-align: center; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; padding: 14px; width: 100%; font-size: 15px;
  box-shadow: 0 4px 12px rgba(202,3,12,.3);
}
.btn-red:hover { box-shadow: 0 6px 18px rgba(202,3,12,.4); }
.btn-white { background: #fff; color: var(--red); padding: 12px 22px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--red); border: 2px solid var(--red); padding: 12px 22px; font-size: 13px; }
.btn-green { background: var(--green); color: #fff; padding: 12px 22px; font-size: 13px; }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--text); padding: 11px 18px; font-size: 13px; }
.btn-sm { font-size: 12px; padding: 9px 16px; border-radius: 20px; }
.btn-danger { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; padding: 12px; font-size: 13px; box-shadow: 0 4px 12px rgba(225,29,72,.3); }
.btn-block { width: 100%; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fafbfc; color: var(--text); outline: none; transition: border-color .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); background: #fff; }
label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; color: #374151; }
.form-group { margin-bottom: 14px; }

/* checkboxes (ticks) must opt out of the generic input sizing above */
input[type="checkbox"] {
  width: 17px; height: 17px; padding: 0; margin: 0; min-width: 17px;
  border: none; border-radius: 4px; background: none;
  accent-color: var(--red); cursor: pointer; flex-shrink: 0;
  vertical-align: middle; transition: transform .12s ease;
}
input[type="checkbox"]:active { transform: scale(.9); }

/* "I have read and accept the Terms / Privacy" row */
.consent-row { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 16px; }
.consent-row input[type="checkbox"] { margin-top: 1px; }
.consent-row label {
  display: block; flex: 1; min-width: 0;
  font-size: 12px; font-weight: 500; line-height: 1.55;
  margin: 0; padding: 0; color: var(--muted); white-space: normal; cursor: pointer;
}
.consent-row label a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-red { background: #ffe4e6; color: var(--red); }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: #eef0f3; color: #4b5563; }

/* tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 10px 12px; background: #fafbfc; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #fdf6f6; }

/* toasts */
#toast-wrap { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1f2937; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); animation: slidein .25s ease; max-width: 320px; }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.toast-close { margin-left: 10px; cursor: pointer; opacity: .7; }

#cart-toast-wrap { position: fixed; left: 0; right: 0; display: flex; justify-content: center; z-index: 450; padding: 0 12px; pointer-events: none; }
.cart-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 460px; background: #161a22; color: #fff; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 11px 12px; box-shadow: 0 14px 40px rgba(0,0,0,.32), 0 2px 8px rgba(0,0,0,.2); animation: cartUp .34s cubic-bezier(.2,.9,.3,1.15); cursor: pointer; }
.cart-toast.leaving { animation: cartDown .22s ease forwards; }
.cart-toast .ct-icon { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #ff5a5f, #ca030c); display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(202,3,12,.35); }
.cart-toast .ct-info { flex: 1; min-width: 0; }
.cart-toast h5 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .2px; display: flex; align-items: center; gap: 6px; }
.cart-toast h5 .ct-check { color: #4ade80; font-size: 14px; animation: ctPop .3s ease; }
.cart-toast p { margin: 2px 0 0; font-size: 12.5px; color: #eef0f3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-toast p b { color: #fbbf24; margin-left: 3px; }
.cart-toast .ct-meta { display: block; margin-top: 2px; font-size: 11px; color: #9aa0aa; }
.cart-toast .ct-reward { display: block; margin-top: 3px; font-size: 11px; color: #fbbf24; font-weight: 700; line-height: 1.35; }
.reward-banner { margin: 10px 12px 0; background: linear-gradient(135deg, #ca030c, #ff5a5f); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.reward-banner .vicon { width: 22px; height: 22px; flex-shrink: 0; }
.reward-banner small { display: block; font-weight: 600; opacity: .92; font-size: 11px; margin-top: 1px; }
.cart-toast .ct-view { border: 0; background: #fff; color: #111; font-weight: 800; font-size: 12px; padding: 9px 15px; border-radius: 999px; cursor: pointer; flex-shrink: 0; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 14px rgba(255,255,255,.14); }
.cart-toast .ct-view:active { transform: scale(.93); }
@media (min-width: 900px) { .cart-toast { max-width: 420px; } #cart-toast-wrap { bottom: 24px; } }
@keyframes cartUp { from { transform: translateY(64px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cartDown { from { transform: none; opacity: 1; } to { transform: translateY(48px) scale(.97); opacity: 0; } }
@keyframes ctPop { 0% { transform: scale(.2); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 5000; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .22s ease both; }
.modal-backdrop.center { align-items: center; }
.modal { background: #fff; border-radius: 18px 18px 0 0; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; animation: slideup .28s cubic-bezier(.22,.61,.36,1) both; }
.modal.center { border-radius: 18px; animation: modalPop .28s cubic-bezier(.22,.61,.36,1) both; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 18px; }
.modal-x { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); transition: transform .15s ease, color .2s ease; }
.modal-x:hover { color: var(--red); transform: rotate(90deg); }
.modal-backdrop.closing { animation: fadeOut .18s ease both; }
.modal-backdrop.closing .modal { animation: slideDown .18s ease both; }
.modal-backdrop.closing.center .modal { animation: modalPopOut .18s ease both; }
/* top sheets (verification code) stay clear of the on-screen keyboard */
.modal-backdrop.top { align-items: flex-start; padding-top: env(safe-area-inset-top, 0px); }
.modal-backdrop.top .modal { border-radius: 0 0 18px 18px; animation: sheetIn .28s cubic-bezier(.22,.61,.36,1) both; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.modal-backdrop.closing.top .modal { animation: sheetOut .18s ease both; }
@keyframes sheetIn { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetOut { to { transform: translateY(-30px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideDown { from { transform: none; opacity: 1; } to { transform: translateY(40px); opacity: 0; } }
@keyframes modalPop { from { transform: scale(.92) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes modalPopOut { from { transform: none; opacity: 1; } to { transform: scale(.94) translateY(8px); opacity: 0; } }

/* login screen */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 55%, #1f0a0c 100%); padding: 20px; }
.login-card { background: #fff; border-radius: 20px; width: 100%; max-width: 400px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.login-logo { width: 64px; height: 64px; background: var(--red); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 30px; color: white; box-shadow: var(--shadow-lg); overflow: hidden; }
.login-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand img.b-logo { height: 28px; width: 28px; object-fit: contain; border-radius: 8px; background: #fff; vertical-align: middle; margin-right: 4px; }
.admin-side .brand img.b-logo { height: 34px; width: 34px; border-radius: 10px; margin-right: 8px; vertical-align: middle; }
.rc-logo { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid #eee; margin: 0 auto 2px; display: block; }
.login-title { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.login-sub { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 20px; }

/* header bars */
.topbar { background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; display: flex; align-items: center; gap: 14px; padding: 0 18px; height: 58px; position: sticky; top: 0; z-index: 100; }
.topbar .brand { font-weight: 900; font-size: 19px; letter-spacing: 1.5px; display: flex; align-items: center; gap: 8px; }
.topbar .spacer { flex: 1; }
.topbar .btn-logout { background: rgba(255,255,255,.16); color: #fff; border: none; padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; }
.topbar .btn-logout:hover { background: rgba(255,255,255,.28); }

/* stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-card { background: #fff; border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.stat-card .stat-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.stat-card .stat-value { font-size: 22px; font-weight: 800; margin-top: 6px; color: var(--text); }
.stat-card .stat-sub { font-size: 11px; color: var(--muted2); margin-top: 3px; }
.stat-card.accent { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; }
.stat-card.accent .stat-label, .stat-card.accent .stat-sub { color: rgba(255,255,255,.85); }

/* empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--muted2); }
.empty .empty-icon { font-size: 44px; margin-bottom: 10px; }
.empty h4 { color: var(--text); margin-bottom: 4px; }

/* =========================================================
   CUSTOMER APP
   ========================================================= */
.app { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100vh; position: relative; padding-bottom: 74px; }
@media (min-width: 900px) {
  .app.desktop {
    max-width: none;
    display: block;
    min-height: 100vh;
    padding: 0;
  }
  .app.desktop .bottom-nav { display: none !important; }
  .app.desktop .menu-backbar { display: none; }
  .app.desktop .app-main { max-width: 1280px; margin: 0 auto; padding: 0 32px 40px; }
  body { background: #f7f8fa; }
}
.app-main { min-height: 100vh; }

/* customer header */
.c-header { background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); color: white; padding: 16px 16px 12px; }
.c-header.top { padding-top: 26px; }
.c-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.c-brand { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.c-header-icons { display: flex; align-items: center; gap: 10px; background: none; border: none; box-shadow: none; padding: 0; }
.c-header-icons .ic { width: 37px; height: 37px; background: #fff; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; position: relative; color: var(--red); box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.c-header-icons .ic:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.24); }
.c-header-icons .ic:active { transform: scale(.9); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.c-header-icons .ic-avatar { background: #fff; border-color: rgba(255,255,255,.9); color: var(--red); font-weight: 900; font-size: 16px; }
.c-header-icons .ic-avatar:hover { background: #fff; }
.c-header-icons .ic .bub { position: absolute; top: -6px; right: -6px; background: #1d3557; color: #fff; border: 2px solid #fff; min-width: 19px; height: 19px; border-radius: 11px; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 1px 5px rgba(0,0,0,.3); }
.search-bar { background: #fff; border-radius: 24px; padding: 11px 16px; display: flex; align-items: center; gap: 10px; }
.search-bar input { border: none; background: none; padding: 0; flex: 1; font-size: 13px; }
.search-bar input:focus { border: none; background: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.search-band { background: #fff8f1; padding: 16px 12px; }
.search-card { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: #fff; border: 1px solid rgba(231,224,219,.7); border-radius: 20px; box-shadow: 0 14px 34px rgba(13,27,42,.10); max-width: 1216px; margin: 0 auto; }
.search-card__field { position: relative; flex: 1; }
.search-card__field .vicon { position: absolute; top: 50%; left: 16px; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-card__field input { width: 100%; border: 0; border-radius: 14px; padding: 14px 16px 14px 48px; font-size: 15px; color: var(--text); background: #fff; }
.search-card__field input:focus { outline: none; }
.search-card__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; width: auto; border-radius: 12px; padding: 14px 32px; font-size: .875rem; font-weight: 600; background: var(--red); background-image: none; color: #fff; box-shadow: 0 14px 28px -12px rgba(202,3,12,.55); transition: background-color .2s, box-shadow .2s, transform .2s; }
.search-card__btn:hover { background-color: var(--red-deep); }
.search-card__btn:active { transform: translateY(1px); }
@media (min-width: 640px) { .search-card { flex-direction: row; align-items: center; } }
.loc-bar { background: #fff5f5; padding: 9px 16px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #555; }
.loc-bar .pin { color: var(--red); }
.loc-bar .pin-btn { margin-left: auto; border: none; background: var(--red); color: #fff; border-radius: 16px; padding: 5px 12px; font-size: 11px; font-weight: 700; cursor: pointer; }

/* back bar */
.back-bar { background: var(--red); color: white; padding: 14px 12px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 90; }
.back-bar h3 { font-size: 16px; font-weight: 700; flex: 1; }
.back-bar .back-btn { background: none; border: none; color: white; font-size: 22px; cursor: pointer; }
.back-bar .ic { width: 37px; height: 37px; background: #fff; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; position: relative; color: var(--red); box-shadow: 0 3px 10px rgba(0,0,0,.2); flex-shrink: 0; }
.back-bar .ic:active { transform: scale(.9); }
.back-bar .ic .bub { position: absolute; top: -6px; right: -6px; background: #1d3557; color: #fff; border: 2px solid #fff; min-width: 19px; height: 19px; border-radius: 11px; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 1px 5px rgba(0,0,0,.3); }

/* splash screen */
.splash-screen {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, #ca030c 0%, #8b0208 60%, #5a0106 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.splash-img {
  width: 90px; height: 90px; object-fit: contain;
  border-radius: 22px;
  animation: splashPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
  position: relative; z-index: 2;
}
.splash-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  animation: splashRing 1.5s ease-out 0.3s both;
}
.splash-ring2 { animation-delay: 0.6s; }
.splash-brand {
  color: #fff; font-size: 36px; font-weight: 800; letter-spacing: -0.5px;
  margin-top: 20px;
  animation: splashUp 0.6s ease 0.4s both;
}
.splash-brand span { color: #ffffff !important; }
.splash-tag {
  color: rgba(255,255,255,0.75); font-size: 15px; margin-top: 4px;
  animation: splashUp 0.6s ease 0.6s both;
}
@keyframes splashPop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes splashRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes splashUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@media (min-width: 768px) {
  .splash-logo { width: 160px; height: 160px; }
  .splash-img { width: 120px; height: 120px; border-radius: 28px; }
  .splash-brand { font-size: 48px; }
  .splash-tag { font-size: 18px; }
}

/* welcome (matches UX flow screen 1) */
.welcome-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  width: 100%;
  background: linear-gradient(180deg, var(--red) 0%, #c41230 45%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.welcome-screen::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-hero {
  padding: 56px 20px 26px;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.welcome-logo { margin-bottom: 16px; }
.welcome-logo-icon {
  width: 88px; height: 88px; background: #fff; border-radius: 22px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  box-shadow: 0 12px 32px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.1);
  position: relative; overflow: hidden;
}
.welcome-logo-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,0));
  z-index: -1;
}
.welcome-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.welcome-brand { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; letter-spacing: 3px; color: #fff; }
.welcome-tagline { font-size: 15px; opacity: .92; line-height: 1.5; font-weight: 400; }
.welcome-body {
  flex: 1;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 18px 20px 14px;
  margin-top: -16px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.welcome-subtitle { text-align: center; font-size: 16px; color: #6b7280; margin-bottom: 16px; font-weight: 500; letter-spacing: .2px; }
.welcome-cards { display: flex; flex-direction: column; gap: 12px; }
.welcome-card { border-radius: 16px; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; position: relative; overflow: hidden; }
.welcome-card:hover { transform: translateY(-2px); }
.welcome-card:active { transform: translateY(0); }
.welcome-card-inner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.pickup-card, .delivery-card { background: #fff; border: 2px solid rgba(227,24,55,.2); color: #1f2937; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.pickup-card:hover, .delivery-card:hover { border-color: rgba(227,24,55,.4); box-shadow: 0 8px 24px rgba(227,24,55,.12); }
.welcome-card-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pickup-icon { background: #fff0f3; color: var(--red); }
.delivery-icon { background: #fff0f3; }
.welcome-card-text { flex: 1; }
.welcome-card-text h3 { font-size: 19px; font-weight: 700; margin-bottom: 2px; letter-spacing: -.2px; }
.pickup-card .welcome-card-text h3 { color: #1f2937; }
.delivery-card .welcome-card-text h3 { color: #1f2937; }
.welcome-card-text p { font-size: 13.5px; font-weight: 400; }
.pickup-card .welcome-card-text p { color: #9ca3af; }
.delivery-card .welcome-card-text p { color: #9ca3af; }
.welcome-card-arrow {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 50%;
  transition: background .2s ease;
}
.pickup-card .welcome-card-arrow { color: #d1d5db; }
.pickup-card:hover .welcome-card-arrow { background: #fff0f3; color: #ca030c; }
.delivery-arrow { color: #d1d5db; }
.delivery-card:hover .delivery-arrow { background: #fff0f3; color: #ca030c; }
.welcome-footer-text { text-align: center; font-size: 13px; color: #9ca3af; margin-top: 10px; padding-top: 10px; font-weight: 400; letter-spacing: .3px; order: 99; }
.welcome-body::after {
  content: '';
  order: 98;
  flex: 1 1 0;
  min-height: 24px;
  max-height: 210px;
  margin: 14px -20px -14px;
  background-color: #fdecea;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,.45) 45%, rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(227,24,55,.08), transparent 70%),
    radial-gradient(rgba(227,24,55,.30) 1.5px, transparent 2.6px),
    radial-gradient(rgba(227,24,55,.15) 1.5px, transparent 2.6px);
  background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 0, 10px 10px;
}
@media (max-width: 899px) {
  /* welcome: app-like fixed screen, never scrolls */
  html.welcome-lock, html.welcome-lock body { height: 100%; overflow: hidden; }
  /* iOS Safari ignores overflow:hidden alone (rubber-band drag) — pin the body too */
  html.welcome-lock body { position: fixed; top: 0; left: 0; width: 100%; touch-action: manipulation; }
  .app.welcome-mode { position: fixed; top: 0; right: 0; bottom: 0; left: 0; max-width: 480px; margin: 0 auto; padding-bottom: 0; min-height: 0; overflow: hidden; }
  .app.welcome-mode .app-main { min-height: 0; height: 100%; overflow: hidden; }
  .app.welcome-mode .welcome-screen { height: 100%; overflow: hidden; }
  .app.welcome-mode .bottom-nav { display: none !important; }
  .app.welcome-mode ~ .web-nav, .welcome-mode .web-nav { display: none !important; }
  html.welcome-lock .chat-fab { display: none !important; }
}
/* pull-to-refresh hint (welcome only — the page itself never scrolls) */
#ptr-hint { position: fixed; top: 0; left: 50%; width: 38px; height: 38px; margin-left: -19px; z-index: 9999; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--red); opacity: 0; pointer-events: none; }

/* very short mobile screens (iPhone SE / landscape): make everything fit */
@media (max-height: 700px) {
  .welcome-hero { padding: 40px 20px 20px; }
  .welcome-logo-icon { width: 70px; height: 70px; }
  .welcome-logo { margin-bottom: 12px; }
  .welcome-brand { font-size: 1.6rem; margin-bottom: 4px; }
  .welcome-subtitle { margin-bottom: 12px; }
  .welcome-card-inner { padding: 11px 14px; }
  .welcome-card-icon { width: 40px; height: 40px; }
  .welcome-cards { gap: 10px; }
  .welcome-footer-text { margin-top: auto; padding-top: 10px; }
}

/* tablet & small desktop: a little more air, still no scrolling */
@media (min-width: 601px) and (max-width: 899px) {
  .welcome-hero { padding: 72px 20px 32px; }
  .welcome-logo { margin-bottom: 20px; }
  .welcome-logo-icon { width: 110px; height: 110px; border-radius: 26px; }
  .welcome-brand { font-size: 1.9rem; letter-spacing: 4px; margin-bottom: 10px; }
  .welcome-tagline { font-size: 13px; }
  .welcome-body { padding: 26px 40px; border-radius: 32px 32px 0 0; margin-top: -20px; }
  .welcome-subtitle { font-size: 14px; margin-bottom: 24px; }
  .welcome-cards { gap: 16px; }
  .welcome-card-inner { padding: 20px 22px; }
  .welcome-card-icon { width: 54px; height: 54px; }
  .welcome-footer-text { font-size: 12px; margin-top: 24px; }
}

/* =========================================================
   DESKTOP WEBSITE (>=900px): 691-style storefront
   ========================================================= */
#web-nav, #web-footer { display: none; }

@media (min-width: 900px) {
  #web-nav { display: block; position: sticky; top: 0; z-index: 120; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(0,0,0,.06); }
  .web-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .web-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .web-logo { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 3px 12px rgba(202,3,12,.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .web-logo img { width: 100%; height: 100%; object-fit: contain; }
  .web-brand-name { font-size: 1.5rem; font-weight: 900; letter-spacing: 1px; color: #1d3557; }
  .web-tick { color: #ffffff !important; }
  .web-links { display: flex; gap: 6px; }
  .web-links a { font-weight: 600; font-size: .92rem; color: #6b7280; padding: 9px 18px; border-radius: 10px; text-decoration: none; transition: all .2s; }
  .web-links a:hover { color: #1d3557; background: rgba(0,0,0,.04); }
  .web-links a.on { color: #e63946; background: rgba(230,57,70,.08); }
  .web-actions { display: flex; align-items: center; gap: 12px; }
  .wbtn { text-decoration: none; }
  .web-cart { position: relative; background: #1d3557; color: #fff; padding: 11px 22px; border-radius: 12px; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 8px; border: none; cursor: pointer; transition: all .2s; }
  .web-cart:hover { background: #e63946; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(230,57,70,.4); }
  .web-cart-badge { position: absolute; top: -6px; right: -6px; background: #e63946; color: #fff; font-size: .68rem; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid #fff; }
  .web-cart-badge:empty, .web-cart-badge[data-count="0"] { display: none; }

  /* desktop cart drawer */
  .app.desktop .app-cart { position: fixed; top: 68px; right: 0; bottom: 0; width: 392px; max-width: 92vw; background: #fff; box-shadow: -14px 0 44px rgba(13,27,42,.16); z-index: 125; padding: 20px 24px 24px; overflow-y: auto; display: block; }
  .app.desktop .app-cart.hidden { display: none; }
  .dc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
  .dc-close { width: 32px; height: 32px; border-radius: 50%; background: #f1f2f4; border: none; font-size: 14px; cursor: pointer; color: #6b7280; }
  .dc-close:hover { background: #fee2e2; color: #e63946; }
  .app.desktop .app-cart .dc-items { margin-top: 10px; }
  .app.desktop .app-main .mobile-only { display: none; }

  /* desktop delivery-location strip (parity with mobile loc-bar) */
  .web-loc { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 18px; padding: 14px 20px; margin-top: 28px; box-shadow: 0 4px 18px rgba(13,27,42,.06); }
  .web-loc-ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(230,57,70,.1); color: #e63946; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .web-loc-ic .vicon { width: 21px; height: 21px; }
  .web-loc-tx { flex: 1; min-width: 0; }
  .web-loc-tx small { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #9aa0aa; }
  .web-loc-tx b { display: block; font-size: 1rem; font-weight: 700; color: #1d3557; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .web-loc-modes { display: flex; background: #f1f2f4; border-radius: 999px; padding: 4px; gap: 2px; flex-shrink: 0; }
  .web-loc-modes button { border: none; background: none; padding: 8px 18px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #6b7280; cursor: pointer; font-family: inherit; }
  .web-loc-modes button.on { background: #ca030c; color: #fff; box-shadow: 0 3px 10px rgba(202,3,12,.35); }
  .web-loc-change { border: none; background: #1d3557; color: #fff; padding: 10px 22px; border-radius: 12px; font-weight: 700; font-size: .85rem; cursor: pointer; flex-shrink: 0; font-family: inherit; }
  .web-loc-change:hover { background: #e63946; }

  /* hero */
  .app.desktop .app-main .web-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .web-hero { background: linear-gradient(135deg, #7a0208 0%, var(--red) 55%, #e63946 100%); color: #fff; margin: 0; border-radius: 0; padding: 0; position: relative; overflow: hidden; }
  .web-hero .wh-bg { position: absolute; inset: 0; z-index: 0; }
  .web-hero .wh-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .web-hero .wh-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(12,4,6,.95) 0%, rgba(12,4,6,.78) 44%, rgba(12,4,6,.32) 100%); }
  .web-hero .wh-inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 64px 32px 56px; }
  .web-hero::before { content: ''; position: absolute; top: -60%; right: -12%; width: 70%; height: 220%; background: radial-gradient(ellipse, rgba(255,255,255,.07), transparent 70%); pointer-events: none; z-index: 2; }
  .web-hero::after { content: none; }
  .web-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: stretch; }
  .web-hero-inner > div:first-child { display: flex; flex-direction: column; justify-content: center; text-align: left; align-items: flex-start; }
  .web-hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(0,0,0,.24); border: 1px solid rgba(255,255,255,.14); padding: 7px 18px; border-radius: 24px; font-size: .78rem; font-weight: 700; letter-spacing: .4px; margin-bottom: 18px; color: #ff6b6b; text-transform: uppercase; }
  .web-hero h1 { font-size: 2.9rem; font-weight: 900; line-height: 1.08; margin-bottom: 16px; }
  .web-hero h1 .hdg { background: linear-gradient(135deg, #ff6b6b, #e63946); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .web-hero p { font-size: 1.1rem; opacity: .82; margin-bottom: 30px; max-width: 460px; line-height: 1.7; }
  .web-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .web-hero-stats { display: flex; align-items: center; margin-top: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 0; }
  .web-hero-stat { flex: 1; text-align: center; padding: 0 12px; }
  .web-hero-stat b { display: block; font-size: 1.05rem; font-weight: 800; color: #ffb86c; line-height: 1.2; }
  .web-hero-stat span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .7px; color: rgba(255,255,255,.5); margin-top: 3px; font-weight: 500; }
  .web-hero-div { width: 1px; height: 26px; background: rgba(255,255,255,.18); flex-shrink: 0; }
  .web-special { background: rgba(255,255,255,.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; justify-content: center; height: 100%; box-sizing: border-box; }
  .web-special .food-emoji { font-size: 64px; text-align: center; margin-bottom: 16px; }
  .web-special .food-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #ffb86c; margin-bottom: 6px; }
  .web-special h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
  .web-special p { font-size: .95rem; opacity: .72; margin-bottom: 18px; line-height: 1.5; }
  .web-special .food-meta { display: flex; align-items: center; justify-content: space-between; }
  .web-special .food-price { font-size: 1.4rem; font-weight: 800; color: #fff; }
  .web-special .food-rating { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
  .web-hero .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
  .web-hero .btn-ghost:hover { background: rgba(255,255,255,.2); }
  .wh-slider { display: flex; flex-direction: column; height: 100%; min-width: 0; }
  .wh-viewport { overflow: hidden; flex: 1; border-radius: 22px; min-width: 0; }
  .wh-slides { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
  .wh-slide { flex: 0 0 100%; width: 100%; min-width: 0; display: flex; box-sizing: border-box; }
  .wh-slide .web-special { width: 100%; max-width: 100%; min-width: 0; }
  .wh-slide .food-emoji { min-width: 0; }
  .wh-slide .food-emoji img { width: 100%; height: auto; }
  .wh-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .wh-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: all .25s; }
  .wh-dot.on { background: #fff; width: 22px; border-radius: 999px; }

/* mode gate: ask delivery vs pickup first (desktop) */
  .web-gate { margin: 28px 0 0; border-radius: 24px; min-height: calc(100vh - 136px); display: flex; align-items: center; justify-content: center; padding: 56px 40px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% -5%, rgba(255,255,255,.08), transparent 60%), linear-gradient(135deg, #0d1b2a 0%, #1d3557 55%, #457b9d 100%); }
  .web-gate::before { content: ''; position: absolute; bottom: -24%; left: -10%; width: 60%; height: 60%; background: radial-gradient(circle, rgba(230,57,70,.16), transparent 70%); pointer-events: none; }
  .web-gate-inner { position: relative; z-index: 1; max-width: 840px; text-align: center; }
  .web-gate-inner .web-hero-badge { margin-bottom: 20px; }
  .web-gate h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 12px; }
  .web-gate p { font-size: 1.05rem; opacity: .82; margin-bottom: 34px; line-height: 1.7; }
  .web-gate-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
  .web-gate-hint { margin-top: 26px; font-size: .85rem; opacity: .55; font-weight: 500; }

  /* sections */
  .web-section { margin-top: 44px; }
  .web-section-head { margin-bottom: 24px; }
  .web-overline { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.2px; color: #e63946; margin-bottom: 7px; }
  .web-section-head h2 { font-size: 1.8rem; font-weight: 800; color: #1d3557; margin-bottom: 6px; }
  .web-section-head p { color: #6b7280; font-size: .95rem; }

  /* limited-offer slider (desktop, reuses mobile banners) */
  .app.desktop .web-slider-section { margin-top: 28px; margin-left: 0; margin-right: 0; padding: 0; }
  .app.desktop .web-slider-section.web-slider-top { margin-top: 28px; }
  .app.desktop .web-slider-wrap { margin: 0; width: 100%; padding: 0; }
  .app.desktop .web-slider-wrap .slider-track { border-radius: 24px; margin: 0; }
  .app.desktop .web-slider-wrap .slider-slide { padding: 64px 48px; min-height: 280px; border-radius: 24px; margin: 0; }
  .web-slider-wrap .slide-badge { font-size: 11px; padding: 5px 13px; border-radius: 14px; }
  .web-slider-wrap .slide-title { font-size: 2rem; }
  .web-slider-wrap .slide-desc { font-size: 1rem; max-width: 520px; }
  .web-slider-wrap .slider-nav { width: 42px; height: 42px; font-size: 20px; }
  .web-slider-wrap .slider-nav.prev { left: 16px; }
  .web-slider-wrap .slider-nav.next { right: 16px; }

  /* loyalty band (desktop) */
  .web-loyalty { display: flex; align-items: center; gap: 32px; background: linear-gradient(135deg, #ca030c, #7a1418); color: #fff; border-radius: 24px; padding: 40px 48px; position: relative; overflow: hidden; }
  .web-loyalty::before { content: ''; position: absolute; top: -50%; right: -8%; width: 55%; height: 200%; background: radial-gradient(ellipse, rgba(255,255,255,.09), transparent 70%); pointer-events: none; }
  .web-loyalty-text { position: relative; z-index: 1; flex: 1; }
  .web-loyalty h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
  .web-loyalty p { opacity: .85; font-size: .95rem; }
  .web-loyalty-bar { background: rgba(255,255,255,.22); height: 8px; border-radius: 5px; overflow: hidden; margin: 16px 0 8px; max-width: 420px; }
  .web-loyalty-bar > div { height: 100%; background: #fff; border-radius: 5px; }
  .web-loyalty-sub { font-size: .85rem !important; opacity: .9 !important; }
  .web-loyalty .btn-white { margin-top: 16px; border: none; cursor: pointer; font-weight: 800; }
  .web-loyalty-pts { position: relative; z-index: 1; text-align: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 24px 36px; flex-shrink: 0; }
  .web-loyalty-pts span { display: block; font-size: 2rem; font-weight: 900; }
  .web-loyalty-pts small { text-transform: uppercase; letter-spacing: 1px; font-size: .68rem; opacity: .7; }

  /* mode cards (pickup/delivery, keeps UX flow) */
  .web-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
  .web-mode { border-radius: 20px; padding: 30px; display: flex; align-items: center; gap: 20px; cursor: pointer; transition: all .25s; border: none; text-align: left; font-family: inherit; }
  .web-mode:hover { transform: translateY(-3px); }
  .web-mode.red { background: linear-gradient(135deg, #ca030c, #a50a11); color: #fff; box-shadow: 0 14px 34px rgba(202,3,12,.3); }
  .web-mode.red:hover { box-shadow: 0 20px 44px rgba(202,3,12,.42); }
  .web-mode.white { background: #fff; border: 2px solid rgba(202,3,12,.18); color: #1f2937; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
  .web-mode.white:hover { border-color: rgba(202,3,12,.45); box-shadow: 0 14px 34px rgba(202,3,12,.12); }
  .web-mode-icon { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .web-mode-icon svg { width: 42px; height: 42px; }
  .web-mode.red .web-mode-icon { background: rgba(255,255,255,.18); color: #fff; }
  .web-mode.white .web-mode-icon { background: #fff0f3; color: var(--red); }
  .web-mode-text h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
  .web-mode-text p { font-size: .88rem; opacity: .8; }
  .web-mode-arrow { margin-left: auto; font-size: 1.4rem; opacity: .6; display: flex; align-items: center; }
  .web-mode-arrow svg { width: 22px; height: 22px; }
  .web-hero-badge svg { width: 13px; height: 13px; flex-shrink: 0; }

  /* popular + category grids (691 cards) */
  .web-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
  .wcard { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e5e7eb; cursor: pointer; transition: all .25s; }
  .wcard:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.08); }
  .wcard-img { height: 160px; background: linear-gradient(135deg, #457b9d, #1d3557); display: flex; align-items: center; justify-content: center; font-size: 56px; position: relative; overflow: hidden; }
  .wcard-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
  .wcard-badge { position: absolute; top: 12px; right: 12px; background: #e63946; color: #fff; padding: 4px 11px; border-radius: 8px; font-size: .66rem; font-weight: 700; text-transform: uppercase; }
  .wcard-body { padding: 16px 18px 18px; }
  .wcard-cat { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #e63946; margin-bottom: 4px; }
  .wcard-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; color: #1d3557; }
  .wcard-desc { font-size: .8rem; color: #6b7280; margin-bottom: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .wcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .wcard-price { font-size: 1.12rem; font-weight: 800; color: #1d3557; }
  .wcard-add { width: 36px; height: 36px; border-radius: 10px; background: #e63946; color: #fff; border: none; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: all .2s; }
  .wcard-add:hover { background: #c1121f; transform: scale(1.08); }
  .wcard-cat-card { padding: 26px 22px; display: flex; align-items: center; gap: 16px; }
  .wcard-cat-card .wcard-img { width: 70px; height: 70px; border-radius: 16px; font-size: 34px; flex-shrink: 0; }
  .wcard-cat-card .wcard-title { font-size: 1.1rem; margin-bottom: 0; }
  .wcard-cat-card .count { font-size: .8rem; color: #6b7280; }

  /* footer (691-style) */
  #web-footer { display: block; margin-top: 56px; background: #0d1b2a; color: #a9b6cc; }
  .wf-news { border-bottom: 1px solid rgba(255,255,255,.08); }
  .wf-news-inner { max-width: 1216px; margin: 0 auto; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
  .wf-news-text h3 { color: #fff; font-size: 1.15rem; font-weight: 800; margin-bottom: 3px; }
  .wf-news-text p { font-size: .86rem; opacity: .6; }
  .wf-news-form { display: flex; gap: 10px; }
  .wf-news-form input { min-width: 260px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font-size: .88rem; outline: none; transition: border .2s, background .2s; }
  .wf-news-form input::placeholder { color: rgba(255,255,255,.4); }
  .wf-news-form input:focus { border-color: #ff6b6b; background: rgba(255,255,255,.1); }
  .wf-news-btn { background: linear-gradient(135deg, #e63946, #c1121f); color: #fff; padding: 12px 24px; border: none; border-radius: 12px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .2s; }
  .wf-news-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(230,57,70,.45); }
  .web-footer-inner { max-width: 1280px; margin: 0 auto; padding: 52px 32px 40px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; }
  .wf-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .wf-logo .web-logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: none; }
  .wf-brand-name { font-size: 1.25rem; font-weight: 900; letter-spacing: 1px; color: #fff; }
  .wf-brand-name span { color: #ff6b6b; }
  .wf-about { opacity: .62; font-size: .9rem; line-height: 1.65; max-width: 300px; margin-bottom: 18px; }
  .wf-contact { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 11px; }
  .wf-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; line-height: 1.5; }
  .wf-contact .wfic { opacity: .7; font-size: 14px; line-height: 1.4; }
  .wf-contact a { color: #a9b6cc; text-decoration: none; transition: color .15s; }
  .wf-contact a:hover { color: #fff; }
  .wf-social { display: flex; gap: 10px; }
  .wf-social a { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #a9b6cc; transition: all .2s; }
  .wf-social a:hover { background: #e63946; border-color: #e63946; color: #fff; transform: translateY(-2px); }
  .wf-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 18px; color: #ff6b6b; font-weight: 800; }
  .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .9rem; }
  .footer-links li a { color: #a9b6cc; text-decoration: none; transition: color .15s, padding-left .2s; }
  .footer-links li a:hover { color: #fff; padding-left: 4px; }
  .hours { margin: 0; display: grid; gap: 8px; font-size: .84rem; }
  .wf-status { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 16px; padding: 7px 13px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.82); }
  .wf-status b { font-weight: 800; color: rgba(255,255,255,.92); }
  .wf-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex-shrink: 0; }
  .wf-status-sep { opacity: .45; }
  .wf-status-time { color: rgba(255,255,255,.7); }
  .wf-status.is-open .wf-status-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); animation: wfPulse 1.8s ease-in-out infinite; }
  .wf-status.is-open b { color: #4ade80; }
  @keyframes wfPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); } 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
  .hours div { display: flex; justify-content: space-between; gap: 12px; }
  .hours dt { color: #7d8ba6; }
  .hours dd { font-weight: 600; color: #fff; margin: 0; }
  .hours dd.closed { color: #ff6b6b; }
  .web-footer-bottom { max-width: 1280px; margin: 0 auto; padding: 20px 32px 28px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
  .web-footer-bottom > span { opacity: .7; }
  .wf-pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .wf-pay li { display: flex; align-items: center; gap: 6px; background: #fff; color: #0d1b2a; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; }
  .wf-pay li .vicon { width: 14px; height: 14px; }
  .wf-pay-cash { color: #c1121f; }
}

/* hero slider */
.slider-wrap { position: relative; margin: 14px 12px 0; }
.slider-track { display: flex; overflow: hidden; border-radius: 14px; }
.slider-slide { min-width: 100%; border-radius: 14px; padding: 16px 20px; min-height: 120px; color: #fff; flex-shrink: 0; display: flex; align-items: stretch; gap: 14px; transition: transform .5s cubic-bezier(.22,.61,.36,1); position: relative; overflow: hidden; }
.slider-track:not(.anim-ready) .slider-slide { transition: none; }
.slider-slide .slide-inner { position: relative; z-index: 1; flex: 1; min-width: 0; }
.slide-bg, .slide-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,0,0,.62) 10%, rgba(0,0,0,.25) 65%, rgba(0,0,0,.06)); }
.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: #d6d6d6; cursor: pointer; transition: width .3s ease, background .3s ease, border-radius .3s ease; }
.slider-dot.on { width: 24px; border-radius: 5px; background: var(--red); }
.slide-inner { flex: 1; min-width: 0; }
.slider-slide .slide-inner { display: flex; flex-direction: column; align-items: flex-start; }
.slide-cta { margin-top: auto; align-self: flex-start; padding-top: 10px; }

/* promo code row (checkout) */
.promo-row { display: flex; gap: 8px; margin-bottom: 12px; }
.promo-row input { flex: 1; border: 1.5px dashed var(--red); background: #fff5f5; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text); outline: none; min-width: 0; }
.promo-row input:focus { border-style: solid; background: #fff; }
.promo-row button { background: var(--red); color: #fff; border: none; border-radius: 10px; padding: 10px 18px; font-size: 13px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.promo-row button:active { transform: scale(.95); }
.slide-red { background: linear-gradient(135deg, #b8102d, #e63946); }
.slide-orange { background: linear-gradient(135deg, #d9480f, #f76707); }
.slide-green { background: linear-gradient(135deg, #2f9e44, #40c057); }
.slide-blue { background: linear-gradient(135deg, #1d3557, #4361ee); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; background: rgba(255,255,255,.92); color: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); font-weight: 800; border: none; }
.slider-nav.prev { left: 8px; } .slider-nav.next { right: 8px; }
.slide-badge { display: inline-block; background: rgba(255,255,255,.24); padding: 3px 9px; border-radius: 12px; font-size: 9px; font-weight: 800; margin-bottom: 8px; letter-spacing: .6px; }
.slide-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.slide-desc { font-size: 11px; opacity: .92; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide btn { align-self: flex-start; }

/* quick actions */
.qgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 12px 0; }
.qitem { text-align: center; cursor: pointer; }
.qicon { width: 48px; height: 48px; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 5px; font-size: 21px; box-shadow: var(--shadow); }
.qicon.on { background: var(--red); }
.qlbl { font-size: 10px; color: #555; }

/* rewards strip */
.rewards-strip { margin: 12px; background: linear-gradient(135deg, var(--red), var(--red-dark)); border-radius: 14px; padding: 16px; color: #fff; }
.rewards-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rewards-top h4 { font-size: 14px; font-weight: 800; }
.pts-badge { background: rgba(255,255,255,.22); padding: 5px 12px; border-radius: 14px; font-size: 12px; font-weight: 800; }
.progress { background: rgba(255,255,255,.22); height: 7px; border-radius: 4px; overflow: hidden; margin-bottom: 7px; }
.progress > div { height: 100%; background: #fff; border-radius: 4px; }
.rewards-strip p { font-size: 11px; opacity: .92; }

/* sections */
.sec { margin: 18px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; margin-bottom: 10px; }
.sec-head h4 { font-size: 15px; font-weight: 800; }
.sec-head .seeall { font-size: 12px; color: var(--red); font-weight: 700; }

/* deal cards */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 12px 6px; scroll-padding: 0 12px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.deal-card { min-width: 170px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; flex-shrink: 0; cursor: pointer; scroll-snap-align: start; transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease; }
.deal-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.deal-card:active { transform: scale(.96); }
.deal-img { height: 92px; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.deal-info { padding: 11px; }
.deal-info h5 { font-size: 13px; margin-bottom: 3px; }
.deal-hash { color: var(--red); font-weight: 800; font-size: 13px; }
.deal-old { text-decoration: line-through; color: var(--muted2); font-size: 11px; margin-left: 5px; }

/* menu grid */
.mgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px; }
@media (min-width: 700px) { .mgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .mgrid { grid-template-columns: repeat(4, 1fr); } }
.mcard { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease; }
.mcard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.mcard:active { transform: scale(.97); }
.mcard .mimg { height: 86px; display: flex; align-items: center; justify-content: center; font-size: 40px; background: #f8f8f8; }
.mcard .minfo { padding: 10px; flex: 1; display: flex; flex-direction: column; }
.mcard .mname { font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.mcard .mdesc { font-size: 10px; color: var(--muted); line-height: 1.4; flex: 1; }
.mbottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.mprice { color: var(--red); font-weight: 800; font-size: 13px; }
.madd { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; border: none; font-size: 17px; cursor: pointer; line-height: 1; flex-shrink: 0; transition: background .2s ease, transform .18s ease; }
.madd:hover { background: var(--red-dark); }
.madd:active { transform: scale(.82); }
.deal-flag { position: absolute; top: 8px; left: 8px; }

/* category chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip { background: #fff; border: 1.5px solid var(--line); color: var(--text); padding: 8px 15px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .18s ease; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip:active { transform: scale(.93); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.chip.on:hover { color: #fff; }

/* bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; background: #fff; display: none; justify-content: space-around; border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 200; }
.bottom-nav.show { display: flex; }
.nav-item { text-align: center; padding: 4px 8px; color: var(--muted2); cursor: pointer; border: none; background: none; font-size: 19px; transition: color .25s ease, transform .18s ease; }
.nav-item > span { display: inline-block; transition: transform .25s cubic-bezier(.22,.61,.36,1); }
.nav-item .nav-label { font-size: 9px; font-weight: 700; margin-top: 1px; transition: color .25s ease; }
.nav-item.on { color: var(--red); }
.nav-item.on > span { transform: scale(1.18) translateY(-2px); }
.nav-item.on .nav-label { color: var(--red); }
.nav-item:active { transform: scale(.88); }

/* cart page */
.cart-item { display: flex; gap: 12px; background: #fff; border-radius: 12px; padding: 12px; margin: 0 12px 10px; box-shadow: var(--shadow); }
.cart-img { width: 54px; height: 54px; background: #f8f8f8; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }

.mimg, .deal-img, .wcard-img, .detail-img, .food-emoji, .ct-icon, .cart-img { overflow: hidden; }
.mimg img, .deal-img img, .wcard-img img, .detail-img img, .food-emoji img, .ct-icon img, .cart-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-img img, .detail-img img, .wcard-img img { border-radius: inherit; }
.cart-details { flex: 1; min-width: 0; }
.cart-details h5 { font-size: 13px; font-weight: 800; }
.cart-details .price { color: var(--red); font-weight: 800; font-size: 12px; }
.cart-opts { font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.cart-edit { background: none; border: none; color: var(--red); font-size: 11px; font-weight: 800; cursor: pointer; padding: 6px 0 0; text-align: left; display: inline-flex; align-items: center; gap: 5px; }
.cart-edit svg { width: 12px; height: 12px; }
.cc-badge { flex: 1; text-align: left; display: inline-flex; align-items: center; gap: 6px; }
.cc-badge svg { width: 13px; height: 13px; }
.cc-chev { transition: transform .2s; font-size: 10px; display: inline-flex; align-items: center; }
.cc-chev svg { width: 12px; height: 12px; }
/* expandable customization breakdown in cart */
.cart-custom { margin-top: 6px; }
.cart-custom-head { width: 100%; display: flex; align-items: center; gap: 8px; background: #fff5f5; border: 1px solid rgba(202,3,12,.2); border-radius: 8px; padding: 6px 9px; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--red); }
.cc-badge { flex: 1; text-align: left; }
.cc-extras { font-weight: 800; }
.cc-chev { transition: transform .2s; font-size: 10px; }
.cart-custom-head.open .cc-chev { transform: rotate(180deg); }
.cart-custom-body { border: 1px solid var(--line); border-top: none; border-radius: 0 0 8px 8px; padding: 6px 9px; margin-top: -4px; padding-top: 8px; background: #fff; }
.cc-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; padding: 2px 0; color: var(--text); }
.cc-row span:last-child { font-weight: 700; white-space: nowrap; }
.cc-total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 5px; font-weight: 800; color: var(--red); }
/* order-details card on confirm / track screens */
.od-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.od-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: none; padding: 13px 14px; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--text); }
.od-head .od-title { display: inline-flex; align-items: center; gap: 8px; }
.od-head .od-title svg { width: 16px; height: 16px; color: var(--red); }
.od-head .cc-chev { transition: transform .2s; color: var(--red); }
.od-head.open .cc-chev { transform: rotate(180deg); }
.od-body { border-top: 1px solid var(--line); padding: 10px 14px 12px; }
.od-item { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.od-item:last-of-type { border-bottom: none; }
.od-line { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 2px 0; }
.od-line span:last-child { font-weight: 700; white-space: nowrap; }
.od-opt { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); padding: 1px 0 1px 18px; }
.od-opt span:last-child { font-weight: 700; white-space: nowrap; }
.od-total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 7px; font-weight: 900; font-size: 13px; color: var(--red); }
.od-meta { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.od-meta svg { width: 11px; height: 11px; vertical-align: -1px; }
/* ---- shared vector icons (no emoji in UI chrome) ---- */
.vicon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
[data-ic] { display: inline-flex; align-items: center; justify-content: center; }
[data-ic] > .vicon { width: 20px; height: 20px; }
.btn .vicon { width: 15px; height: 15px; vertical-align: -2px; }
.nav-item .vicon { width: 22px; height: 22px; }
.nav-label { font-size: 10px; }
.ic .vicon { width: 18px; height: 18px; }
.web-cart .vicon { width: 16px; height: 16px; }
.chat-fab .vicon { width: 24px; height: 24px; }
.chat-send .vicon { width: 16px; height: 16px; }
.wf-social .vicon { width: 16px; height: 16px; }
.kbtn .vicon, .chip .vicon { width: 15px; height: 15px; vertical-align: -2px; }
.tbl .vicon { width: 15px; height: 15px; }
.vicon.huge { width: 52px; height: 52px; }
.vicon.big { width: 28px; height: 28px; }
.vicon.huge-dim { width: 52px; height: 52px; color: var(--muted); opacity: .5; }
.mimg .vicon { color: #b9bec6; }
.wcard-img .vicon { color: #fff; opacity: .9; }
.wcard-cat-card .wcard-img .vicon { width: 32px; height: 32px; }
.qicon { display: flex; align-items: center; justify-content: center; }
.qicon .vicon { width: 24px; height: 24px; }
.empty-icon .vicon { width: 52px; height: 52px; }
.co-icon { display: flex; align-items: center; justify-content: center; }
.co-icon .vicon { width: 22px; height: 22px; }
.ml-icon .vicon { width: 26px; height: 26px; }
.asi-ic { display: inline-flex; }
.asi-ic .vicon { width: 16px; height: 16px; }
.driver-avatar .vicon { width: 26px; height: 26px; }
.mbx-chip .vicon { width: 14px; height: 14px; vertical-align: -2px; }
.rewards-strip .star .vicon, .rewards-use .star .vicon { width: 26px; height: 26px; }
.pts-badge .vicon { width: 13px; height: 13px; vertical-align: -2px; }
.modal-head h3 .vicon { width: 18px; height: 18px; vertical-align: -3px; }
.summary-row .vicon { width: 14px; height: 14px; vertical-align: -2px; }
.loc-bar .pin .vicon, .wfic .vicon { width: 15px; height: 15px; }
.search-bar .vicon { width: 16px; height: 16px; }
.c-header-icons .vicon { width: 20px; height: 20px; }
/* admin + misc vectors */
.admin-side nav .vicon { width: 16px; height: 16px; vertical-align: -3px; }
.stat-label .vicon { width: 14px; height: 14px; vertical-align: -2px; }
.badge .vicon { width: 12px; height: 12px; vertical-align: -2px; }
.form-label .vicon { width: 16px; height: 16px; }
.card .vicon { vertical-align: -3px; }
/* social login buttons — identical rectangles */
.soc-btn { flex: 1; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; padding: 0 12px; }
.soc-fb { background: #1877f2; border: 1.5px solid #1877f2; color: #fff; }
.soc-btn .vicon { width: 17px; height: 17px; }
/* kitchen panel vectors */
.kstat .vicon { width: 15px; height: 15px; }
.klane-head .vicon { width: 16px; height: 16px; vertical-align: -3px; }
.kstep-ic { display: inline-flex; align-items: center; justify-content: center; }
.kstep-ic .vicon { width: 14px; height: 14px; }
.kitem-opts .vicon { width: 12px; height: 12px; vertical-align: -2px; }
.qty-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--text); transition: transform .18s ease, border-color .2s ease, color .2s ease, background .2s ease; }
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-btn:active { transform: scale(.85); }
.cart-remove { background: none; border: none; color: var(--muted2); cursor: pointer; font-size: 14px; align-self: flex-start; transition: color .2s ease, transform .15s ease; }
.cart-remove:hover { color: var(--red); }
.cart-remove:active { transform: scale(.85); }
.summary-box { background: #fff; border-radius: 14px; padding: 14px; margin: 14px 12px; box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--text); }
.summary-total { font-weight: 800; font-size: 15px; border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 0; }
.summary-total .amt { color: var(--red); }
.rewards-use { margin: 0 12px 14px; background: #fff7f0; border: 1.5px solid #ffe3c6; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.rewards-use .star { font-size: 20px; }
.rewards-use small { color: var(--muted); }
.switch { position: relative; width: 42px; height: 24px; background: #ddd; border-radius: 12px; cursor: pointer; transition: background .2s; flex-shrink: 0; border: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.switch.on { background: var(--red); }
.switch.on::after { left: 21px; }

/* tabs */
.tabs { display: flex; gap: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--red); background: #fff; margin: 0 12px 14px; }
.tabs button { flex: 1; padding: 11px; border: none; background: transparent; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; transition: color .2s ease, background .25s ease, transform .18s ease; }
.tabs button.on { background: var(--red); color: #fff; }
.tabs button:active { transform: scale(.97); }

/* checkout cards */
.co-card { background: #fff; border-radius: 12px; padding: 13px; margin: 0 12px 10px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; cursor: pointer; }
.co-card .co-icon { font-size: 22px; width: 40px; height: 40px; background: #f8f8f8; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.co-card .co-text { flex: 1; }
.co-card .co-text h5 { font-size: 13px; }
.co-card .co-text p { font-size: 11px; color: var(--muted); }
.co-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d6d6d6; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.co-del { border: 0; background: none; font-size: 15px; padding: 4px; cursor: pointer; opacity: .45; flex-shrink: 0; border-radius: 8px; transition: all .15s; }
.co-del:hover { opacity: 1; background: #ffe8e8; transform: scale(1.1); }
.co-del:active { transform: scale(.94); }
.co-card.selected { border: 2px solid var(--red); }
.co-card.selected .co-radio { border-color: var(--red); }
.co-card.selected .co-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* map */
.map-box { height: 190px; border-radius: 14px; overflow: hidden; margin: 0 12px 10px; position: relative; box-shadow: var(--shadow); }
.map-box .leaflet-container { height: 100%; width: 100%; }
.map-box .mapboxgl-map { height: 100%; width: 100%; font: inherit; }
.mbx-pin { font-size: 26px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.mbx-chip { position: absolute; top: 10px; left: 10px; z-index: 5; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 800; color: #1d3557; box-shadow: 0 2px 8px rgba(0,0,0,.18);
  display: flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); }
.mbx-chip.red { color: #fff; background: var(--red); }
.mbx-btn { position: absolute; top: 10px; right: 10px; z-index: 5; background: #fff; border: 0; border-radius: 999px;
  padding: 7px 12px; font-size: 12px; font-weight: 800; color: #1d3557; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.mbx-btn:active { transform: scale(.96); }
.mbx-locate-wrap { border-radius: 999px; box-shadow: 0 3px 12px rgba(0,0,0,.22); }
.mbx-locate-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #fff 0%, #f2efe9 100%);
  animation: mbx-ring 2.1s ease-out infinite; }
.mbx-locate-btn::before { content: ''; width: 11px; height: 11px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 35%, #ff6770, #ca030c 72%);
  box-shadow: 0 0 0 3px rgba(202,3,12,.16), 0 2px 5px rgba(0,0,0,.3);
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: mbx-blink 1.15s ease-in-out infinite; }
.mbx-locate-btn::after { content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 2px dashed rgba(29,53,87,.45);
  animation: mbx-spin 8s linear infinite; }
.mbx-locate-btn.on { animation: none; background: #ca030c; }
.mbx-locate-btn.on::before { background: #fff; box-shadow: none; animation: none; }
.addr-suggest { position: relative; }
.addr-suggest-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; display: none;
  background: #fff; border: 1px solid #f0e6da; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); overflow: hidden;
  max-height: 280px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.addr-suggest-list.open { display: block; animation: modalPop .18s ease; }
.addr-suggest-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; cursor: pointer;
  border-bottom: 1px solid #f4f0ea; transition: background .15s; }
.addr-suggest-item:last-child { border-bottom: 0; }
.addr-suggest-item:hover { background: #faf5ef; }
.addr-suggest-item:active { background: #f3e9dd; }
.addr-suggest-item.asi-muted { cursor: default; }
.asi-ic { font-size: 17px; width: 30px; height: 30px; border-radius: 9px; background: #faf5ef; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.asi-tx { min-width: 0; }
.asi-tx b { display: block; font-size: 13.5px; color: #1d3557; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asi-tx small { display: block; font-size: 11.5px; color: #9aa0aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.asi-tx b em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .4px; }
.asi-tx small { display: block; font-size: 11px; color: #8b857e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes mbx-ring { 0% { box-shadow: 0 0 0 0 rgba(202,3,12,.4), 0 3px 12px rgba(0,0,0,.22); } 75%,100% { box-shadow: 0 0 0 16px rgba(202,3,12,0), 0 3px 12px rgba(0,0,0,.22); } }
@keyframes mbx-blink { 0%,100% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 50% { opacity: .3; transform: translate(-50%,-50%) scale(.82); } }
@keyframes mbx-spin { to { transform: rotate(360deg); } }
.mbx-here { width: 22px; height: 22px; position: relative; }
.mbx-here::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(64,142,255,.22); border: 3px solid rgba(64,142,255,.65);
  animation: mbx-here-ring 2s ease-out infinite; }
.mbx-here::after { content: ''; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px;
  border-radius: 50%; background: #3d8bff; transform: translate(-50%,-50%);
  box-shadow: inset 0 -1px 2px rgba(0,0,0,.35), 0 0 4px rgba(61,139,255,.9);
  animation: mbx-here-blink 1.2s ease-in-out infinite; }
@keyframes mbx-here-ring { 0% { box-shadow: 0 0 0 0 rgba(64,142,255,.5); } 75%,100% { box-shadow: 0 0 0 14px rgba(64,142,255,0); } }
@keyframes mbx-here-blink { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* order confirmed */
.done-hero { text-align: center; padding: 40px 20px 10px; }
.done-circle { width: 90px; height: 90px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 44px; color: #fff; box-shadow: 0 12px 32px rgba(39,174,96,.3); }
.done-hero h2 { font-size: 20px; margin-bottom: 6px; }
.done-hero p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.order-code { background: #fff5f5; border-radius: 10px; padding: 12px; font-size: 13px; margin: 0 20px 14px; text-align: center; }
.order-code b { color: var(--red); }

/* timeline */
.timeline { padding: 6px 16px 14px; margin: 8px 12px 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.tl-item { display: flex; gap: 12px; padding: 12px 0; position: relative; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 7px; top: 30px; bottom: -8px; width: 2px; background: var(--line); }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: #e5e7eb; flex-shrink: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 8px; color: #fff; }
.tl-dot.done { background: var(--green); }
.tl-dot.now { background: var(--red); box-shadow: 0 0 0 4px #ffe4e6; }
.tl-content h5 { font-size: 13px; font-weight: 800; }
.tl-content p { font-size: 11px; color: var(--muted); }

/* driver tracking card */
.driver-card { margin: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.driver-head { display: flex; align-items: center; gap: 11px; }
.driver-avatar { width: 46px; height: 46px; background: linear-gradient(135deg, #ff5a5f, #ca030c); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; position: relative; box-shadow: 0 4px 12px rgba(202,3,12,.3); }
.driver-avatar .dr-dot { position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.driver-info { flex: 1; min-width: 0; }
.driver-info h5 { font-size: 13.5px; margin: 0; }
.driver-info p { font-size: 11px; color: var(--muted); margin: 1px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-badge { font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #1d4ed8; background: #dbeafe; padding: 4px 8px; border-radius: 999px; flex-shrink: 0; }
.driver-actions { display: flex; gap: 8px; margin-top: 12px; }
.chat-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(202,3,12,.4); }

/* -------- ORDER CHAT (customer <-> driver) -------- */
.modal-backdrop.chat-backdrop { padding: 0 12px; }
.chat-modal { display: flex; flex-direction: column; height: min(560px, 82vh); width: 100%; max-width: 420px; border-radius: 18px; overflow: hidden; background: #f4f1ec; }
.chat-head { background: #161a22; color: #fff; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.chat-title b { font-size: 14px; display: block; }
.chat-title .small { color: #a6adb8; font-size: 11px; }
.chat-head .modal-x { color: #fff; opacity: .8; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.cm { display: flex; flex-direction: column; max-width: 80%; }
.cm .cm-b { padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; word-break: break-word; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cm em { font-style: normal; font-size: 10px; color: #a09a90; margin-top: 3px; }
.cm.them { align-self: flex-start; align-items: flex-start; }
.cm.them .cm-b { background: #fff; color: #23272e; border-top-left-radius: 4px; }
.cm.me { align-self: flex-end; align-items: flex-end; }
.cm.me .cm-b { background: linear-gradient(135deg, #e03131, #ca030c); color: #fff; border-top-right-radius: 4px; }
.cm.me em { color: #b9b2a6; }
.chat-sys { align-self: center; font-size: 11px; color: #a09a90; background: #eae5de; padding: 5px 12px; border-radius: 999px; margin: 4px 0; }
.chat-typ { align-self: flex-start; display: none; align-items: center; gap: 8px; background: #f2eee7; border-radius: 14px; padding: 9px 12px; }
.chat-typ-b { display: inline-flex; gap: 3px; }
.chat-typ-b i { width: 6px; height: 6px; border-radius: 50%; background: #8a8378; animation: chatTyp 1.2s infinite ease-in-out; }
.chat-typ-b i:nth-child(2) { animation-delay: .2s; }
.chat-typ-b i:nth-child(3) { animation-delay: .4s; }
.chat-typ em { font-style: normal; font-size: 11px; color: #a09a90; }
@keyframes chatTyp { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-3px); opacity: 1; } }

.fb-stars { display: flex; gap: 4px; }
.fb-star { font-size: 26px; line-height: 1; color: #d1ccc3; background: none; border: 0; padding: 0 2px; cursor: pointer; }
.fb-star:hover { color: #f59e0b; }
.chat-bar { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #efe9e1; }
.chat-bar .chat-input { flex: 1; border: 1px solid #e5ddd2; border-radius: 12px; padding: 10px 13px; font-size: 13.5px; outline: none; background: #fbfaf8; }
.chat-bar .chat-input:focus { border-color: var(--red); background: #fff; }
.chat-bar .btn { width: 46px; border-radius: 12px; font-size: 15px; padding: 0; }
.chat-bar .btn span { margin: 0; }

/* =========================================================
   DESKTOP CART PANEL
   ========================================================= */
.dc-title { display: none; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.dc-items { display: flex; flex-direction: column; gap: 10px; }

/* item detail */
.detail-img { height: 210px; display: flex; align-items: center; justify-content: center; font-size: 100px; }
.custom-group { margin: 14px 12px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.custom-group h4 { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.custom-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.custom-row:last-child { border-bottom: none; }
.custom-label { font-size: 13px; }
.custom-addon { display: flex; align-items: center; gap: 8px; }
.custom-addon .price { font-size: 11px; color: var(--red); font-weight: 700; }
.checkbox { width: 24px; height: 24px; border: 2px solid #d1d5db; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; background: #fff; font-size: 15px; font-weight: 900; line-height: 1; transition: background .15s ease, border-color .15s ease, transform .12s ease; }
.checkbox::after { content: '✓'; color: transparent; display: block; line-height: 1; transform: translateY(-1px) scale(1.05); }
.checkbox:active { transform: scale(.92); }
.checkbox.on { background: var(--red); border-color: var(--red); }
.checkbox.on::after { color: #fff; }
.custom-row.selected { background: #fff5f5; border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.custom-row.selected .custom-label { font-weight: 800; }
.sec-title { font-size: 14px; font-weight: 900; color: var(--red); text-transform: uppercase; letter-spacing: .4px; margin: 18px 0 2px; padding-bottom: 6px; border-bottom: 2px solid var(--red); }
.sec-group:first-child .sec-title { margin-top: 0; }
.sec-hint { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.custom-row { cursor: pointer; }
.radio { width: 24px; height: 24px; border: 2px solid #d1d5db; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; background: #fff; }
.radio::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: transparent; }
.radio.on { border-color: var(--red); }
.radio.on::after { background: var(--red); }
.note-area { width: 100%; min-height: 62px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: inherit; resize: vertical; margin-top: 6px; }
.note-area:focus { outline: none; border-color: var(--red); }
.od-note { font-size: 11px; color: var(--muted); padding: 1px 0 1px 18px; font-style: italic; }
.cc-note { font-size: 11px; color: var(--muted); font-style: italic; padding: 3px 0; }
.kitem-note { font-size: 11px; color: #ffd28a; margin-left: 22px; }
.extra-row { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.extra-row:last-child { border-bottom: none; }
.extra-row img { display: none; }
.qty-stepper { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 24px; padding: 8px 14px; }
.qty-stepper button { width: 26px; height: 26px; border-radius: 50%; border: none; background: #f0f0f0; cursor: pointer; font-size: 16px; font-weight: 800; }
.qty-stepper button:hover { background: var(--red); color: #fff; }
.add-bar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); z-index: 150; }
.detail-cta-desktop { display: none; padding: 0 12px 20px; }
@media (min-width: 900px) {
  .add-bar { display: none; }
  .detail-cta-desktop {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
    padding: 12px 32px calc(12px + env(safe-area-inset-bottom));
    z-index: 150; box-shadow: 0 -8px 24px rgba(13,27,42,.08);
  }
  .detail-cta-desktop .qty-stepper { margin-bottom: 0 !important; flex-shrink: 0; }
  .detail-cta-desktop .btn { width: 100%; max-width: 480px; }
}

/* =========================================================
   PANELS - layout
   ========================================================= */
.panel-shell { min-height: 100vh; background: var(--bg); }
.panel-body { max-width: 1280px; margin: 0 auto; padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.panel-head h2 { font-size: 20px; font-weight: 800; }

/* filter tabs (waiter/kitchen) */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* waiter */
.waiter-layout { display: grid; gap: 16px; }
@media (min-width: 960px) { .waiter-layout { grid-template-columns: 1fr 380px; } }
.waiter-cart-pane { display: flex; flex-direction: column; }
@media (min-width: 960px) { .waiter-cart-pane { position: sticky; top: 74px; height: calc(100vh - 90px); } }
.wcart-list { flex: 1; overflow-y: auto; padding: 4px; }
.waiter-order-type { display: flex; gap: 10px; margin-bottom: 12px; }
.waiter-order-type button { flex: 1; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--muted); }
.waiter-order-type button.on { border-color: var(--red); background: #fff5f5; color: var(--red); }
.waiter-order-type button.on .bid { color: var(--red); }

/* kitchen - dark mode KDS */
.kitchen-shell { background: #121318; min-height: 100vh; color: #e8eaed; padding-bottom: 40px; }
.kitchen-shell .topbar { background: #1c1d22; }
.kitchen-shell .card { background: #1c1d22; box-shadow: none; border: 1px solid #2a2c33; }
.kitchen-shell td { border-bottom-color: #2a2c33; }
.kitchen-shell .tbl th { background: #17181d; color: #8a8f9a; }
.kitchen-shell input, .kitchen-shell select { background: #17181d; border-color: #2a2c33; color: #e8eaed; }
.kitchen-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
/* kitchen kanban board */
.kitchen-shell .panel-body { max-width: none; padding-left: 12px; padding-right: 12px; }
.kboard { display: grid; gap: 8px; align-items: start; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; padding-bottom: 12px; }
.klane { min-width: 0; max-width: none; background: #141519; border: 1px solid #26282f; border-radius: 14px; padding: 10px; min-height: 200px; }
@media (max-width: 1200px) { .kboard { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .kboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.klane-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; color: #fff; font-size: 14px; }
.klane-count { background: #33353d; color: #fff; font-size: 12px; font-weight: 800; min-width: 24px; height: 24px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.klane-cards { display: flex; flex-direction: column; gap: 10px; }
.kcard { background: #1c1d22; border: 1px solid #2a2c33; border-radius: 14px; padding: 14px; min-width: 0; }
.kcard.new { border-color: var(--red); }
.kcard .khead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; cursor: pointer; }
.kcard .khead .kchev { display: inline-block; margin-top: 5px; color: #8a8f9a; font-size: 14px; line-height: 1; transition: transform .18s ease; }
.kcard.open .khead .kchev { transform: rotate(180deg); }
.ksum { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 8px 10px; background: #17181d; border: 1px solid #26282f; border-radius: 10px; cursor: pointer; }
.ksum .ksum-n { color: #e8eaed; font-weight: 800; font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
.ksum .ksum-names { color: #9aa0ac; font-size: 12px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ksum .ksum-total { color: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
.kmore { animation: kMoreIn .18s ease; }
@keyframes kMoreIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.kcard .kcode { font-size: 15px; font-weight: 900; color: #ff6b6b; }
.kcard .kitems { margin: 8px 0; }
.kitem-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 13px; }
.kitem-row .qty { font-weight: 900; color: var(--amber); }
.kitem-opts { font-size: 11px; color: #9aa0ac; margin-left: 22px; }
.kcard .kfoot { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.kcard .kbtn { flex: 1; padding: 10px; border-radius: 10px; border: none; font-size: 12px; font-weight: 800; cursor: pointer; color: #fff; }
.kbtn-green { background: #1d7a44; } .kbtn-green:hover { background: #22984f; }
.kbtn-amber { background: #a15c09; } .kbtn-amber:hover { background: #c2750d; }
.kbtn-red { background: #7a1418; }
.kbtn-gray { background: #33353d; color: #b8bcc4 !important; }
.driver-assign-bar { margin-top: 10px; background: #17181d; border-radius: 10px; padding: 10px; }
.driver-assign-bar select { margin-bottom: 6px; }
.kdrivers { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.kdriver { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid #2a2c33; background: #1e2027; color: #e6e8ec; cursor: pointer; text-align: left; }
.kdriver:disabled { opacity: .5; cursor: not-allowed; }
.kdriver.sel { border-color: #22c55e; background: rgba(34,197,94,.12); }
.kdriver-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: #55585f; box-shadow: 0 0 0 0 rgba(34,197,94,0); }
.kdriver-dot.on { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.9); }
.kdriver-name { flex: 1; font-size: 12.5px; font-weight: 800; }
.kdriver-status { font-size: 10.5px; color: #9aa0ac; }
.kstat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; background: #17181d; color: #9aa0ac; }
.kstat b { font-size: 14px; color: #fff; }
.kstat.hot { background: rgba(202,3,12,.18); color: #ff8080; }

.kprocess { margin: 12px 0 2px; }
.ksteps { display: flex; align-items: flex-start; justify-content: space-between; }
.kstep { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.kstep:not(:last-child)::after { content: ''; position: absolute; top: 13px; left: calc(50% + 17px); width: calc(100% - 34px); height: 3px; background: #2a2c33; border-radius: 2px; }
.kstep.done:not(:last-child)::after { background: var(--red); }
.kstep-ic { width: 28px; height: 28px; border-radius: 50%; background: #24262d; border: 2px solid #33353d; color: #8a8f9a; display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 1; }
.kstep.done .kstep-ic { background: var(--red); border-color: var(--red); color: #fff; }
.kstep.act .kstep-ic { border-color: var(--red); color: var(--red); background: #17181d; animation: kstepPulse 1.4s ease-in-out infinite; }
.kstep-lb { font-size: 9px; color: #8a8f9a; text-align: center; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; max-width: 100%; }
.kstep.done .kstep-lb, .kstep.act .kstep-lb { color: #e8eaed; }
@keyframes kstepPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(255,71,87,.18); } 50% { box-shadow: 0 0 0 7px rgba(255,71,87,.04); } }

/* driver mobile app */
.driver-app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 20px; }
.driver-app .topbar { position: sticky; top: 0; }
.driver-now { margin: 14px 12px; }
.driver-map { border-radius: 16px; height: 240px; overflow: hidden; box-shadow: var(--shadow-lg); }
.driver-status-row { display: flex; align-items: center; gap: 8px; margin: 12px; }
.driver-toggle { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; }
.eta-box { display: flex; justify-content: space-between; align-items: center; }
.eta-box .eta { font-size: 18px; font-weight: 900; color: var(--red); }

/* print receipt — 58mm thermal (fits 58mm + 80mm kitchen printers) */
@media print {
  @page { size: 58mm auto; margin: 0; }
  body.printing * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: fixed; inset: 0; overflow: visible; }
}
.receipt { font-family: 'Courier New', Courier, monospace; background: #fff; color: #000; padding: 2mm; width: 58mm; max-width: 58mm; margin: 0 auto; font-size: 11px; line-height: 1.35; }
.receipt .rc-head { text-align: center; border-bottom: 1px dashed #000; padding-bottom: 4px; margin-bottom: 4px; }
.receipt .rc-head h2 { font-size: 13px; letter-spacing: 1px; margin: 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt table td { padding: 1px 0; border: none; border-bottom: 1px dotted #999; font-size: 10px; }
.receipt .rc-total { border-top: 1px dashed #000; margin-top: 4px; padding-top: 3px; font-weight: bold; font-size: 11px; }
.receipt .rc-total-row { display: flex; justify-content: space-between; font-weight: bold; font-size: 12px; margin-top: 3px; }
.qr { text-align: center; margin: 8px 0; letter-spacing: 3px; font-size: 18px; }

/* responsive helpers */
@media (max-width: 560px) {
  .two-col { grid-template-columns: 1fr; }
  .login-card { padding: 22px; }
}

.scroll-y { max-height: 60vh; overflow-y: auto; }

/* locked order-mode bar (chosen at the start, not re-asked at checkout) */
.mode-lock {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 16px 16px; padding: 12px 14px;
  background: #fff; border: 1.5px solid rgba(202, 3, 12, .16); border-radius: 14px;
}
.ml-icon { width: 40px; height: 40px; border-radius: 12px; background: #fff0f3; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.ml-text { flex: 1; min-width: 0; }
.ml-text b { font-size: .92rem; font-weight: 800; color: #1d3557; display: block; }
.ml-text p { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.ml-badge { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; background: rgba(202, 3, 12, .1); color: #ca030c; padding: 5px 10px; border-radius: 8px; flex-shrink: 0; }

.loading { text-align: center; padding: 40px; color: var(--muted2); }
.spinner { display: inline-block; width: 26px; height: 26px; border: 3px solid #f0f0f0; border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   AI CHATBOT
   ========================================================= */
.chat-fab {
  position: fixed; z-index: 140; right: 22px; bottom: 22px;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(202, 3, 12, .42);
  transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 14px 36px rgba(202, 3, 12, .5); }
.cfab-dot {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: #2bd463; border: 2.5px solid #fff;
  animation: wfPulse 2.2s infinite;
}
@keyframes wfPulse { 0% { box-shadow: 0 0 0 0 rgba(43, 212, 99, .45); } 70% { box-shadow: 0 0 0 9px rgba(43, 212, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 212, 99, 0); } }

.chat-panel {
  position: fixed; z-index: 150; right: 22px; bottom: 22px;
  width: 384px; max-height: 600px; height: min(600px, calc(100vh - 120px));
  background: #fff; border-radius: 18px; border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 24px 70px rgba(13, 27, 42, .3);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, #0d1b2a, #1d3557);
  color: #fff; flex-shrink: 0;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text b { font-size: .95rem; font-weight: 800; display: block; }
.chat-status { font-size: .7rem; opacity: .75; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #2bd463; display: inline-block; }
.chat-close { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: none; color: #fff; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.chat-close:hover { background: rgba(255, 255, 255, .25); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: #f7f8fa; }
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: #d6d9de; border-radius: 4px; }
.msg { max-width: 84%; padding: 10px 14px; font-size: .88rem; line-height: 1.5; border-radius: 14px; white-space: pre-wrap; word-break: break-word; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-bottom-left-radius: 4px; color: #1f2937; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.msg-user { align-self: flex-end; background: linear-gradient(135deg, #ca030c, #a50a11); color: #fff; border-bottom-right-radius: 4px; }
.msg-bot a { color: #ca030c; font-weight: 600; }
.msg-typing { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b6bbc4; animation: blink 1.2s infinite; }
.msg-typing span:nth-child(2) { animation-delay: .2s; }
.msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-chips { display: flex; gap: 8px; padding: 10px 12px 4px; overflow-x: auto; background: #f7f8fa; flex-shrink: 0; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chip {
  flex-shrink: 0; white-space: nowrap; font-size: .76rem; font-weight: 600; color: #1d3557;
  background: #fff; border: 1px solid rgba(0, 0, 0, .1); border-radius: 16px; padding: 7px 13px; cursor: pointer; transition: all .15s;
}
.chat-chip:hover { background: #fff0f3; border-color: rgba(202, 3, 12, .5); color: #ca030c; }
.chat-input-row { display: flex; gap: 10px; padding: 10px 12px 14px; background: #fff; border-top: 1px solid rgba(0, 0, 0, .06); flex-shrink: 0; }
.chat-input {
  flex: 1; padding: 12px 15px; border-radius: 12px; border: 1.5px solid rgba(0, 0, 0, .12);
  font-size: .88rem; font-family: inherit; outline: none; transition: border .15s;
}
.chat-input:focus { border-color: #ca030c; }
.chat-send {
  width: 44px; height: 44px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #e63946, #c1121f); color: #fff; font-size: 17px; flex-shrink: 0;
  transition: transform .15s;
}
.chat-send:hover { transform: scale(1.06); }

/* mobile chat: full-width sheet above bottom-nav */
@media (max-width: 899px) {
  .chat-fab { right: 16px; bottom: 88px; width: 56px; height: 56px; font-size: 24px; }
  .chat-panel {
    left: 10px; right: 10px; bottom: 84px; width: auto;
    max-height: none; height: min(70vh, 600px); border-radius: 16px;
  }
}

/* =========================================================
   MOTION & TRANSITIONS — taps, clicks, view changes
   ========================================================= */

/* view change: every freshly-rendered screen slides & fades in */
#app-main > *, .admin-main > * {
  animation: pageIn .38s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* tap feedback on tappable cards / rows / tiles */
.co-card, .rewards-use, .welcome-card, .wcard, .status-card, .opt-row, .qitem, .row-tap, .list-row {
  transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.co-card:active, .rewards-use:active, .welcome-card:active, .wcard:active, .status-card:active, .opt-row:active, .qitem:active, .row-tap:active, .list-row:active { transform: scale(.97); }
.qitem .qicon { transition: transform .2s cubic-bezier(.22,.61,.36,1), background .15s ease, box-shadow .2s ease; }
.qitem:active .qicon { transform: scale(.88); }

/* quick header icon buttons */
.c-header-icons .ic, .ic {
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.c-header-icons .ic:hover, .ic:hover { box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.c-header-icons .ic:active, .ic:active { transform: scale(.85); }

/* primary buttons: subtle lift on hover, squish on press */
.btn-red:hover, .btn-green:hover, .btn-danger:hover { transform: translateY(-1px); }
.btn:hover { transition: transform .18s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease, background .2s ease, color .2s ease; }

/* chat send + chips */
.chat-chip { transition: transform .18s ease, color .2s ease, background .2s ease, border-color .2s ease; }
.chat-chip:active { transform: scale(.94); }

/* desktop nav link underline sweep */
.web-links a { position: relative; transition: color .2s ease, background .2s ease; }
.web-links a::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px;
  background: #e63946; border-radius: 2px; transform: scaleX(0); transform-origin: center;
  transition: transform .25s cubic-bezier(.22,.61,.36,1);
}
.web-links a:hover::after, .web-links a.on::after { transform: scaleX(1); }

/* admin: sidebar nav transitions */
.admin-side nav button { transition: background .2s ease, color .2s ease, padding-left .2s ease; }
.admin-side nav button.on { box-shadow: inset 3px 0 0 #fff; }

/* honour users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
}

/* =========================================================
   CLIENT REQUEST: red header band on desktop —
   red background from logo/nav down to the "Hi …, what are
   you craving?" greeting, with white logo / menus / icons.
   (Desktop only — mobile untouched.)
   ========================================================= */
@media (min-width: 900px) {
  /* red navbar */
  #web-nav { background: linear-gradient(135deg, #a30209 0%, var(--red) 60%, var(--red-deep) 100%); border-bottom: none; box-shadow: 0 4px 18px rgba(202,3,12,.35); }
  .web-brand-name { color: #fff; }
  .web-tick { color: #fff; }
  .web-logo { box-shadow: 0 3px 12px rgba(0,0,0,.3); }
  .web-links a { color: rgba(255,255,255,.85); }
  .web-links a:hover { color: #fff; background: rgba(255,255,255,.14); }
  .web-links a.on { color: #fff; background: rgba(255,255,255,.18); }
  .web-links a::after { background: #fff; }
  /* login button: white on red */
  #web-auth { background: #fff !important; color: var(--red) !important; font-weight: 800; border: none; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
  /* cart button inverted: white bg, red text/icons */
  .web-cart { background: #fff; color: var(--red); }
  .web-cart:hover { background: #fff; color: var(--red-deep); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
  .web-cart-badge { border-color: var(--red); }

  /* red greeting hero ("Hi …, what are you craving?") */
  .web-hero { background: linear-gradient(135deg, #7a0208 0%, var(--red) 55%, #e63946 100%); }
  .web-hero h1 { color: #fff; }
  .web-hero h1 .hdg { background: none; -webkit-text-fill-color: #fff; color: #fff; }
  .web-hero p { color: rgba(255,255,255,.9); opacity: 1; }
  .web-hero-badge { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.25); color: #fff; }
  /* CTA: white button on red hero */
  .web-hero-actions .btn-red { background: #fff; color: var(--red); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
  .web-hero-stats { background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.22); }
  .web-hero-stat b { color: #fff; }
  .web-hero-stat span { color: rgba(255,255,255,.75); }
  .web-hero-div { background: rgba(255,255,255,.3); }

  /* mode gate (pickup/delivery chooser) matches the red theme */
  .web-gate { background: radial-gradient(900px 500px at 85% -5%, rgba(255,255,255,.12), transparent 60%), linear-gradient(135deg, #7a0208 0%, var(--red) 55%, #e63946 100%); }
  .web-gate-inner > h1, .web-gate-inner > p, .web-gate-hint { color: #fff; }
  .web-gate-inner > p { opacity: .9; }
  .web-mode.white .web-mode-text h3 { color: #1f2937; }
  .web-mode.white .web-mode-text p { color: #4b5563; }
}
/* ---------- Quick item modal (FoodKing-style add to cart) ---------- */
.im-head { align-items: center; }
.im-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.im-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.im-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-title h3 { font-size: 16px; font-weight: 900; line-height: 1.25; }
.im-price { color: var(--red); font-weight: 800; font-size: 13px; margin-top: 2px; }
.im-desc { margin: -2px 0 12px; line-height: 1.55; }
.im-body .custom-group { margin: 0; padding: 0; background: transparent; box-shadow: none; }
.im-body .custom-group > .sec-group:first-child .sec-title { margin-top: 4px; }
.im-footer { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; margin: 18px -18px -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.im-qty { flex-shrink: 0; }
.im-add { flex: 1; min-width: 0; white-space: normal; line-height: 1.2; }
/* keep the add-to-cart popup compact on phones so the page stays visible around it */
.modal.im-modal { max-height: 82vh; }
@media (max-width: 719px) {
  .modal.im-modal { max-height: 74vh; width: calc(100% - 24px); max-width: 440px; }
  .modal.im-modal .modal-body { padding: 14px; }
  .modal.im-modal .im-thumb { width: 48px; height: 48px; font-size: 24px; }
  .modal.im-modal .im-desc { margin: -4px 0 8px; font-size: 12px; }
  .modal.im-modal .custom-row { padding: 8px 0; }
  .modal.im-modal .sec-title { margin-top: 12px; padding-bottom: 5px; }
  .modal.im-modal .im-footer { margin: 12px -14px -14px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .modal.im-modal .im-qty { padding: 8px 10px; gap: 8px; }
  .modal.im-modal .im-add { font-size: 13px; padding: 12px 10px; }
}
/* Prevent mobile browsers auto-zooming the whole page when a text field is focused
   (they zoom whenever the focused field's font-size is under 16px). */
@media (max-width: 899px) {
  input, select, textarea,
  .note-area, .promo-row input, .search-bar input,
  .search-card__field input, .chat-input, .chat-bar .chat-input { font-size: 16px; }
}

/* ---------- MENU PAGE (store layout) ---------- */
.pk-hero { margin: 0 12px; height: 180px; border-radius: 18px; overflow: hidden; background: #f1f1f4; }
.pk-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .pk-hero { height: 280px; } }
.pk-store { position: relative; margin: -36px 12px 0; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pk-logo { width: 84px; height: 84px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; box-shadow: var(--shadow); }
.pk-logo img { width: 72%; height: 72%; object-fit: contain; }
.pk-meta { flex: 1; min-width: 180px; }
.pk-meta h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.pk-addr { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.pk-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pk-tag { background: #f4f4f7; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; color: var(--text); }
.pk-fee { display: flex; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pk-fee > div { padding: 8px 14px; text-align: center; font-size: 12px; color: var(--muted); min-width: 110px; }
.pk-fee > div + div { border-left: 1px solid var(--line); }
.pk-fee b { display: block; color: var(--text); font-size: 15px; font-weight: 800; }
.pk-modes { display: inline-flex; background: #f4f4f7; border-radius: 999px; padding: 4px; margin: 14px 12px 0; }
.pk-modes button { border: 0; background: transparent; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.pk-modes button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.pk-sec { display: flex; align-items: center; gap: 8px; margin: 26px 12px 12px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.pk-sec svg, .pk-sec .vicon { width: 22px; height: 22px; }
.pk-sec small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.pk-grid { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0 12px; }
@media (min-width: 640px) { .pk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pk-grid { grid-template-columns: repeat(3, 1fr); } }
.mcard.pk { flex-direction: row; align-items: stretch; padding: 14px; gap: 12px; border-radius: 16px; }
.mcard.pk .pk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-name { font-size: 15px; font-weight: 800; line-height: 1.25; }
.pk-desc { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.pk-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.pk-price { font-weight: 800; color: var(--red); font-size: 14px; }
.pk-add { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(214,40,40,.3); }
.pk-img { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: #f4f4f7; display: flex; align-items: center; justify-content: center; }
.pk-img img { width: 100%; height: 100%; object-fit: cover; }
.pk-deal { display: inline-block; align-self: flex-start; background: #fde8e8; color: var(--red); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; letter-spacing: .04em; }
.pk-chips { background: var(--bg); }
@media (max-width: 480px) {
  .pk-store { margin: -28px 10px 0; padding: 14px; }
  .pk-logo { width: 68px; height: 68px; }
  .pk-meta h1 { font-size: 20px; }
  .pk-fee { width: 100%; }
  .pk-fee > div { flex: 1; min-width: 0; }
  .pk-img { width: 88px; height: 88px; }
}

/* ---------- MENU: desktop sizing (standard, larger cards) ---------- */
@media (min-width: 1000px) {
  .pk-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 0; }
  #menu-grid-wrap .pk-grid, .pk-grid { max-width: 1280px; }
  .mcard.pk { min-height: 190px; padding: 18px; gap: 18px; border-radius: 18px; }
  .mcard.pk .pk-body { justify-content: space-between; }
  .pk-name { font-size: 18px; }
  .pk-desc { font-size: 14px; -webkit-line-clamp: 3; margin-top: 6px; }
  .pk-price { font-size: 17px; }
  .pk-add { width: 40px; height: 40px; font-size: 24px; }
  .pk-img { width: 150px; height: 150px; border-radius: 16px; }
  .pk-sec { font-size: 24px; margin: 34px 0 14px; }
  .pk-sec small { font-size: 14px; }
  .pk-hero { margin: 0; height: 300px; }
  .pk-store, .pk-modes, .search-band, .chips { }
}
@media (min-width: 1280px) {
  .pk-grid { grid-template-columns: repeat(4, 1fr); }
  .pk-img { width: 130px; height: 130px; }
}

/* Desktop: vertical cards, standard size, large photo on top */
@media (min-width: 1000px) {
  .mcard.pk { flex-direction: column; padding: 0; gap: 0; min-height: 0; }
  .mcard.pk .pk-img { order: -1; width: 100%; height: 200px; border-radius: 0; }
  .mcard.pk .pk-body { padding: 16px 18px 18px; width: 100%; }
  .pk-desc { -webkit-line-clamp: 2; }
  .pk-foot { margin-top: 12px; }
  .pk-grid { gap: 20px; }
}
@media (min-width: 1280px) {
  .pk-grid { grid-template-columns: repeat(4, 1fr); }
  .mcard.pk .pk-img { height: 180px; }
}

/* ---------- FULL-WIDTH SECTIONS (menu hero, track bar) ---------- */
.pk-hero, .trk-bar {
  width: 100vw; max-width: none;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  border-radius: 0;
}
.trk-wrap { padding: 0 16px; }
.trk-bar { background: #fff; padding: 14px 16px; margin-top: 10px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; }
.trk-bar + * { }
.app.desktop .trk-wrap { padding: 0; }
.app.desktop .trk-bar { margin-top: 14px; padding: 18px 28px; }
.app.desktop .pk-hero { height: 380px; margin-top: 0; }
.app.desktop .pk-store { margin: -72px 0 0; }
@media (max-width: 899px) {
  .pk-hero { height: 200px; }
}

/* Desktop home: location strip sits above the nav bar */
#web-top-loc { display: none; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); }
body.on-home #web-top-loc { display: block; }
#web-top-loc .web-loc { margin: 0 auto; max-width: 1280px; border: none; border-radius: 0; box-shadow: none; padding: 12px 32px; }
@media (max-width: 899px) { #web-top-loc { display: none !important; } }

/* ---------- Mobile: Pickup / Delivery choice on home ---------- */
.mode-choose { margin: 12px 12px 4px; }
.mc-title { font-size: 14px; font-weight: 800; margin: 0 2px 8px; color: var(--text); }
.mc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc-card { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.mc-card b { font-size: 15px; font-weight: 800; }
.mc-card small { font-size: 12px; color: var(--muted); }
.mc-ic { width: 36px; height: 36px; border-radius: 12px; background: #f4f4f7; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; color: var(--text); }
.mc-ic svg { width: 20px; height: 20px; }
.mc-card.on { border-color: var(--red); background: #fff5f5; }
.mc-card.on .mc-ic { background: var(--red); color: #fff; }


/* Clean Image-Only Hero Banners (Mobile & Desktop) */
.web-hero-banner { max-width: 1440px; margin: 16px auto 0; padding: 0 24px; }
.web-hero-banner-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 36px rgba(0,0,0,.1); width: 100%; }
.web-hero-banner-wrap .slider-track { display: flex; width: 100%; transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1); border-radius: 16px; }
.web-hero-slide { min-width: 100%; width: 100%; position: relative; height: auto; aspect-ratio: 16 / 5.2; flex-shrink: 0; }
.web-hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.web-hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(15,15,15,.55); backdrop-filter: blur(6px); color: #fff; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.web-hero-nav.prev { left: 18px; } .web-hero-nav.next { right: 18px; }
.web-hero-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.web-hero-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; transition: all .25s; }
.web-hero-dot.on { width: 28px; border-radius: 999px; background: #fff; }

.m-hero-banner { margin: 0; width: 100%; }
.m-hero-banner-wrap { position: relative; border-radius: 0; overflow: hidden; width: 100%; }
.m-hero-banner-wrap .slider-track { display: flex; width: 100%; transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1); border-radius: 0; }
.m-hero-slide { min-width: 100%; width: 100%; height: auto; aspect-ratio: 393 / 196; position: relative; flex-shrink: 0; }
.m-hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.m-hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: rgba(15,15,15,.4); color: #fff; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.m-hero-nav.prev { left: 6px; } .m-hero-nav.next { right: 6px; }
.m-hero-dots { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; }
.m-hero-dot { width: 6px; height: 6px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; }
.m-hero-dot.on { width: 18px; border-radius: 999px; background: #fff; }

/* Banner viewport clips slides; the translating track must retain every slide. */
.web-hero-banner-wrap .slider-track,
.m-hero-banner-wrap .slider-track {
  overflow: visible;
  border-radius: 0;
}
@media (min-width: 900px) {
  .app.desktop .app-main .web-hero + .web-hero-banner {
    margin-top: 32px;
  }
}

/* Align the desktop banner viewport with the Loyalty section content edges. */
@media (min-width: 900px) {
  .app.desktop .app-main .web-hero-banner {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Standalone menu banner: store information sits below it, never over it. */
.menu-banner { margin: 16px 12px 0; }
.menu-banner-viewport { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: #f1f1f4; }
.menu-banner-track { display: flex; width: 100%; overflow: visible; transition: transform .5s ease; }
.menu-banner-slide { flex: 0 0 100%; min-width: 0; aspect-ratio: 1170 / 585; }
.menu-banner-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.menu-banner-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.menu-banner-nav.prev { left: 10px; }
.menu-banner-nav.next { right: 10px; }
.menu-banner-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; }
.menu-banner-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.5); cursor: pointer; }
.menu-banner-dot.on { width: 22px; border-radius: 8px; background: #fff; }
#app-main .pk-store.menu-store { margin: 20px 12px 0; }
@media (min-width: 900px) {
  .menu-banner { margin: 24px 0 0; }
  .menu-banner-slide { aspect-ratio: 1920 / 620; }
  #app-main .pk-store.menu-store { margin: 24px 0 0; }
  .menu-banner-nav { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-banner-track { transition: none; }
}

/* Desktop Track navigation and tracking details. */
@media (min-width: 900px) {
  .desktop-track { padding: 38px 0 24px; color: #20242b; }
  .dt-heading, .dt-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 36px; margin-bottom: 32px; }
  .dt-eyebrow { display: block; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; margin-bottom: 10px; }
  .desktop-track h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.15; letter-spacing: -1px; margin: 0 0 12px; }
  .desktop-track h2 { font-size: 19px; line-height: 1.35; margin: 0 0 8px; }
  .desktop-track p { color: #6b707a; line-height: 1.65; font-size: 14px; margin: 0; }
  .dt-lookup { width: 420px; max-width: 48%; flex-shrink: 0; background: #fff; border: 1px solid #e7e7eb; border-radius: 18px; padding: 18px; }
  .dt-lookup label { font-size: 13px; font-weight: 800; display: block; margin-bottom: 9px; }
  .dt-lookup-row { display: flex; gap: 8px; }
  .dt-lookup input { min-width: 0; flex: 1; width: 100%; border: 1px solid #dedfe4; border-radius: 10px; padding: 11px 12px; font-size: 13px; background: #fbfbfc; }
  .dt-lookup .btn { width: auto; white-space: nowrap; padding: 11px 14px; border-radius: 10px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
  .dt-lookup small { display: block; margin-top: 9px; font-size: 11px; color: #7c818a; }
  .dt-layout, .dt-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .dt-orders, .dt-detail-main, .dt-detail-side { min-width: 0; }
  .dt-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
  .dt-list-head h2 { font-size: 23px; margin: 0; }
  .dt-refresh { border: 0; background: transparent; color: #727781; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 12px; }
  .dt-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
  .dt-filter { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e2e3e8; border-radius: 999px; padding: 9px 14px; color: #626874; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
  .dt-filter span { border-radius: 20px; padding: 2px 7px; background: #f2f3f6; font-size: 11px; }
  .dt-filter.on { border-color: var(--red); color: var(--red); background: #fff5f5; }
  .dt-filter.on span { background: #ffe4e5; }
  .dt-order-list, .dt-side, .dt-detail-main, .dt-detail-side { display: grid; gap: 18px; }
  .dt-panel, .dt-order-card { background: #fff; border: 1px solid #e7e7eb; border-radius: 20px; box-shadow: 0 4px 18px rgba(25,29,36,.025); }
  .dt-panel { padding: 24px; }
  .dt-order-card { display: block; padding: 22px; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
  .dt-order-card:hover { border-color: #e7a6aa; box-shadow: 0 8px 24px rgba(122,2,8,.06); }
  .dt-card-top { display: flex; align-items: center; gap: 12px; }
  .dt-type-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 13px; background: #fff0f1; color: var(--red); align-items: center; justify-content: center; flex-shrink: 0; }
  .dt-type-icon .vicon { width: 22px; height: 22px; }
  .dt-card-name { flex: 1; min-width: 0; }
  .dt-card-name h3 { font-size: 16px; margin: 0 0 5px; overflow-wrap: anywhere; }
  .dt-card-name p { font-size: 11px; }
  .dt-status { display: inline-flex; align-items: center; border-radius: 30px; padding: 7px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
  .dt-status.is-active { background: #fff3e2; color: #a86406; }
  .dt-status.is-done { background: #eaf7ef; color: #247247; }
  .dt-status.is-cancelled { background: #f0f1f4; color: #737884; }
  .dt-card-summary { margin: 20px 0; color: #6e747e; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
  .dt-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #f0f0f3; padding-top: 15px; font-size: 12px; color: #8b8f98; }
  .dt-card-bottom b { color: #242933; margin-left: 12px; font-size: 16px; }
  .dt-card-link { color: var(--red); font-weight: 800; }
  .dt-card-link span { margin-left: 8px; }
  .dt-help-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; }
  .dt-help-steps li { display: flex; gap: 12px; }
  .dt-help-steps li > span { width: 27px; height: 27px; border: 1px solid #f2c9cd; background: #fff7f7; color: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 800; }
  .dt-help-steps b { display: block; font-size: 13px; margin: 2px 0 5px; }
  .dt-help-steps p { font-size: 12px; }
  .dt-support { background: #fff8f4; border-color: #f2e5dd; }
  .dt-support-icon { color: var(--red); display: block; margin-bottom: 14px; }
  .dt-support p { font-size: 12px; margin-bottom: 18px; }
  .dt-support .btn { display: flex; gap: 7px; align-items: center; justify-content: center; font-size: 12px; padding: 11px; }
  .dt-empty { padding: 48px 24px; text-align: center; background: #fff; border: 1px solid #e7e7eb; border-radius: 20px; }
  .dt-empty > span { display: inline-flex; padding: 16px; background: #fff1f2; border-radius: 50%; color: var(--red); margin-bottom: 14px; }
  .dt-empty h3 { margin: 0 0 8px; font-size: 20px; }
  .dt-empty .btn { width: auto; display: inline-flex; margin-top: 20px; font-size: 13px; }
  .dt-back { display: block; color: #747984; text-decoration: none; font-size: 13px; margin-bottom: 22px; }
  .dt-detail-heading { align-items: flex-end; }
  .dt-detail-heading > .dt-status { margin-bottom: 5px; }
  .dt-progress-panel { padding: 28px; }
  .dt-progress { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; margin: 32px 0 0; padding: 0; }
  .dt-progress li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; color: #999ea7; font-size: 11px; }
  .dt-progress li:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: calc(50% + 17px); width: calc(100% - 34px); height: 2px; background: #eceef1; }
  .dt-progress li > span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #f2f3f6; font-size: 12px; font-weight: 800; }
  .dt-progress li.done { color: #26774c; }
  .dt-progress li.done > span { background: #e3f4e9; }
  .dt-progress li.done::after { background: #91c4a4; }
  .dt-progress li.now { color: var(--red); }
  .dt-progress li.now > span { background: var(--red); color: #fff; box-shadow: 0 0 0 5px #fff0f1; }
  .dt-driver { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .dt-driver .dt-eyebrow { margin-bottom: 3px; }
  .dt-driver h2 { margin-bottom: 2px; font-size: 17px; }
  .dt-driver p { font-size: 12px; }
  .dt-driver-actions { margin-left: auto; display: flex; gap: 8px; }
  .dt-driver-actions .btn { width: auto; display: flex; gap: 6px; align-items: center; padding: 10px 13px; font-size: 12px; }
  .desktop-track .dt-map { width: 100%; height: 330px; margin: 22px 0 0; border-radius: 14px; }
  .dt-detail-side > .btn { display: block; text-align: center; }
  .dt-detail-side .od-card { border: 1px solid #e7e7eb; border-radius: 20px; box-shadow: none; }
  .dt-feedback:empty { display: none; }
  .dt-feedback > div { margin: 0 !important; border: 1px solid #e7e7eb; border-radius: 20px !important; }
  .desktop-track button:focus-visible, .desktop-track a:focus-visible, .desktop-track input:focus-visible { outline: 3px solid #df8992; outline-offset: 3px; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .dt-layout, .dt-detail-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
  .dt-heading { gap: 20px; }
  .dt-lookup { width: 360px; }
  .dt-lookup-row { flex-wrap: wrap; }
  .dt-lookup-row .btn { width: 100%; justify-content: center; }
  .dt-card-top { flex-wrap: wrap; }
  .dt-card-top .dt-status { margin-left: 56px; }
}

/* Clear starting prices and selectable portion cards for size-priced items. */
.item-variant-hint { display: block; margin-top: 5px; color: #727782; font-size: 11px; font-weight: 500; line-height: 1.45; }
.pk-add.has-variants { width: auto; min-width: 62px; height: 32px; padding: 0 10px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.pk-foot { gap: 10px; }
.variant-group .sec-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.variant-required { display: inline-flex; padding: 4px 8px; border-radius: 20px; background: #fff0f1; color: var(--red); font-size: 10px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.variant-caption { color: #757a84; font-size: 12px; margin: 8px 0 12px; }
.variant-choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.variant-group .custom-row, .modal.im-modal .variant-group .custom-row { margin: 0; padding: 12px; border: 1.5px solid #e5e5ea; border-radius: 12px; min-height: 80px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; background: #fff; }
.variant-group .custom-row.selected, .modal.im-modal .variant-group .custom-row.selected { background: #fff5f5; border-color: var(--red); }
.variant-group .custom-label { font-size: 13px; font-weight: 700; line-height: 1.45; }
.variant-group .custom-addon { width: 100%; justify-content: space-between; }
.variant-group .custom-addon .price { font-size: 13px; font-weight: 800; }
.variant-row:focus-visible { outline: 3px solid #e4939b; outline-offset: 2px; }
@media (min-width: 900px) {
  .pk-add.has-variants { height: 38px; min-width: 76px; font-size: 13px; }
  .item-variant-hint { font-size: 12px; }
}

/* Mobile Orders: a clearly labelled, touch-friendly order-code search card. */
@media (max-width: 899px) {
  .orders-lookup { margin: 16px 12px; padding: 14px; background: #fff; border: 1px solid #e0e2e7; border-radius: 14px; box-shadow: 0 3px 12px rgba(25,29,36,.05); }
  .orders-lookup label { display: block; margin: 0 0 10px; color: #252a33; font-size: 14px; font-weight: 800; }
  .orders-lookup-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
  .orders-lookup-field { display: flex; align-items: center; flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 10px; gap: 8px; border: 1.5px solid #d1d5dd; border-radius: 10px; background: #f8f9fb; }
  .orders-lookup-field > span { display: flex; flex: 0 0 auto; color: #747b88; }
  .orders-lookup-field .vicon { width: 18px; height: 18px; }
  .orders-lookup input[type="search"] { display: block; flex: 1 1 0; min-width: 0; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; background: transparent; color: #252a33; font-size: 16px; line-height: 1.4; box-shadow: none; }
  .orders-lookup input::placeholder { color: #747b88; opacity: 1; font-size: 14px; }
  .orders-lookup-field:focus-within { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(202,3,12,.1); }
  .orders-lookup .orders-lookup-submit { flex: 0 0 auto; width: auto; min-width: 64px; min-height: 46px; margin: 0; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 800; }
  .orders-lookup-submit:focus-visible { outline: 3px solid #df8992; outline-offset: 2px; }
  .orders-lookup p { margin: 9px 0 0; color: #697180; font-size: 11px; line-height: 1.5; }
}

/* Product hearts and a right-aligned mobile add/size button. */
.wcard, .deal-card { position: relative; }
.product-favorite { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid #e5e7eb; border-radius: 50%; background: #fff; color: #626b78; box-shadow: 0 1px 4px rgba(0,0,0,.1); cursor: pointer; }
.product-favorite::before { content: ''; position: absolute; inset: -8px; }
.product-favorite .vicon { width: 14px; height: 14px; }
.product-favorite.is-favorite { color: var(--red); border-color: #f2b8bd; }
.product-favorite.is-favorite .vicon { fill: currentColor; }
.product-favorite:focus-visible, .pk-media .pk-add:focus-visible { outline: 3px solid #df8992; outline-offset: 2px; }
.pk-media { position: relative; flex-shrink: 0; }
.pk-add.pk-add-mobile { display: none; }
@media (max-width: 999px) {
  .mcard.pk .pk-add-desktop { display: none; }
  .mcard.pk .pk-media { width: 104px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  .mcard.pk .pk-media .pk-img { width: 100%; }
  .mcard.pk .pk-add-mobile { display: flex; min-width: 44px; height: 44px; min-height: 44px; margin: 0 0 0 auto; flex-shrink: 0; }
  .mcard.pk .pk-media .product-favorite { top: 4px; right: 4px; }
}
@media (max-width: 480px) {
  .mcard.pk .pk-media { width: 88px; }
}
@media (min-width: 1000px) {
  .mcard.pk .pk-media { order: -1; width: 100%; }
}

/* Full welcome background and centered content without the bottom white panel. */
body.on-welcome { background: #a50316; }
body.on-welcome #web-footer { display: none; }
@media (max-width: 899px) {
  html.welcome-lock body, .app.welcome-mode { background: #a50316; }
  .app.welcome-mode { max-width: none; }
  .app.welcome-mode .welcome-screen {
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 60%), linear-gradient(160deg, #ca030c 0%, #a50316 60%, #7a0208 100%);
    overflow-y: auto;
  }
  .app.welcome-mode .welcome-hero { flex: 0 0 auto; width: 100%; max-width: 440px; margin: auto 0 0; padding: 0; }
  .app.welcome-mode .welcome-body { flex: 0 0 auto; width: 100%; max-width: 440px; margin: 0 0 auto; padding: 0; border-radius: 0; background: transparent; }
  .app.welcome-mode .welcome-body::after { content: none; display: none; }
  .app.welcome-mode .welcome-subtitle { color: rgba(255,255,255,.9); }
}
@media (min-width: 900px) {
  body.on-welcome .app.desktop { min-height: 0; background: transparent; }
  body.on-welcome .app.desktop .app-main { max-width: none; min-height: 0; padding: 0; }
  body.on-welcome .web-gate { margin: 0; border-radius: 0; min-height: calc(100vh - 69px); min-height: calc(100dvh - 69px); padding: 40px 32px; }
}

/* Welcome consent controls enable the Pickup and Delivery choices. */
.welcome-terms { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 20px; color: #fff; }
.welcome-terms input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; cursor: pointer; }
.welcome-terms-copy { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 4px; }
.welcome-terms label { display: inline; margin: 0; color: #fff; font-size: 13px; font-weight: 400; line-height: 1.6; cursor: pointer; }
.welcome-terms-link { border: 0; padding: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.welcome-terms input:focus-visible, .welcome-terms-link:focus-visible, [data-welcome-choice]:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
button.welcome-card { width: 100%; text-align: left; font: inherit; }
[data-welcome-choice]:disabled { cursor: not-allowed; transform: none; box-shadow: none; }
.welcome-card:disabled .welcome-card-inner, .web-mode:disabled > span { opacity: .6; }
