@import url('../tokens.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #eef1f4; }
body { font-family: var(--font-body); color: var(--ink); }

/* ===== Device stage ===== */
.m-stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1000px 600px at 20% 0%, #e6f1fa 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 100%, #fff7e6 0%, transparent 55%),
    #eef1f4;
}

/* ===== Mobile cart ===== */
.m {
  width: 100%; height: 100%; background: #F7FAFC;
  color: var(--ink); font-family: var(--font-body);
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}

/* Header */
.m-hd {
  position: sticky; top: 0; z-index: 20;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 54px 16px 10px;
}
.m-hd-top { display: flex; align-items: center; gap: 12px; }
.m-hd-top h1 { text-align: center; }
.m-hd-top .spacer { width: 38px; height: 38px; flex-shrink: 0; }
.m-back {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt);
  border: 0; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
}
.m-hd h1 {
  font-family: var(--font-heading); font-weight: 700; font-size: 20px;
  color: var(--ink-2); flex: 1 1 auto; min-width: 0; margin: 0; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-hd h1 small {
  margin-left: 6px; font-family: var(--font-body);
  font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0;
  white-space: nowrap; vertical-align: baseline;
}
.m-hd-help {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt);
  border: 0; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
}

/* Stepper */
.m-stepper {
  display: flex; align-items: center; gap: 6px; margin-top: 12px;
}
.m-step {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.m-step .bar { height: 3px; border-radius: 2px; background: var(--line); }
.m-step.active .bar { background: var(--color-1); }
.m-step.done .bar { background: var(--color-1); }
.m-step .lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.m-step.active .lbl { color: var(--color-1); }

/* Scroll body */
.m-body { flex: 1; overflow-y: auto; padding-bottom: 180px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Rewards ladder — simplified gamified chain */
.m-rewards {
  margin: 12px 12px 0; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 14px 12px;
}
.m-rewards-msg {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink); line-height: 1.3; margin-bottom: 18px;
  font-family: var(--font-body);
}
.m-rewards-msg strong { color: var(--ink-2); font-family: var(--font-heading); font-weight: 700; font-variant-numeric: tabular-nums; }
.m-rewards-msg strong.reward { color: var(--color-1); }
.m-rewards-msg .emoji { font-size: 16px; line-height: 1; }

/* Chain of stops */
.m-chain { position: relative; height: 46px; margin: 0 16px; }
.m-chain-line {
  position: absolute; left: 0; right: 0; top: 14px; height: 4px;
  background: var(--bg-alt); border-radius: 999px; overflow: hidden;
}
.m-chain-fill {
  height: 100%; background: linear-gradient(90deg, var(--color-1-light), var(--color-1));
  border-radius: 999px; transition: width 600ms var(--ease-out);
}
.m-chain-fill.done { background: linear-gradient(90deg, #26BB59, #1a7a3a); }
.m-chain-stop {
  position: absolute; top: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 60px;
}
.m-chain-stop .dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted-2); transition: all 260ms var(--ease-out);
  position: relative; z-index: 1;
}
.m-chain-stop.unlocked .dot {
  background: var(--color-ok); border-color: var(--color-ok); color: #fff;
  box-shadow: 0 2px 8px rgba(38,187,89,.3);
}
.m-chain-stop .amt {
  font-family: var(--font-heading); font-weight: 800; font-size: 11px;
  color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.m-chain-stop.unlocked .amt { color: var(--color-ok); }

/* Gift CTA — appears when gift tier unlocked */
.m-gift-cta {
  position: relative;
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 14px; padding: 14px;
  background: linear-gradient(180deg, #FFF4EC 0%, #FFE4D1 100%);
  border: 1px solid rgba(240,90,15,.22);
  border-radius: 12px; cursor: pointer; font: inherit; text-align: left;
  color: var(--ink-2); transition: all 160ms var(--ease-out);
  box-shadow: 0 2px 0 rgba(240,90,15,.06);
}
.m-gift-cta:hover { background: linear-gradient(180deg, #FFEEDF 0%, #FFD9BE 100%); border-color: rgba(240,90,15,.35); }
.m-gift-cta:active { transform: scale(.995); }
.m-gift-cta.picked { background: linear-gradient(180deg, #fff 0%, #F2FBF6 100%); border-color: var(--color-ok); box-shadow: 0 1px 0 rgba(10,37,64,.03); }

.m-gift-cta .gic {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #FF7A2E 0%, #F05A0F 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(240,90,15,.32), inset 0 1px 0 rgba(255,255,255,.22);
}
.m-gift-cta.picked .gic {
  background: linear-gradient(135deg, var(--color-ok) 0%, #0F7F3E 100%);
  box-shadow: 0 4px 10px rgba(22,163,74,.28), inset 0 1px 0 rgba(255,255,255,.2);
}

.m-gift-cta .label { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-gift-cta .label strong { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--ink-2); line-height: 1.2; letter-spacing: -0.01em; }
.m-gift-cta .label small { font-size: 11px; color: var(--muted); }

.m-gift-cta .cta-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: #F05A0F;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(240,90,15,.15);
}
.m-gift-cta .cta-arrow svg { transform: translateX(1px); }
.m-gift-cta .trail-chev { color: var(--muted); flex-shrink: 0; }

/* Gift chip in items list */
.m-gift {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--color-1-tint);
  border-top: 1px dashed var(--color-1-lighter);
  font-size: 12px;
}
.m-gift-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 999px; background: var(--color-1); color: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: 9px; letter-spacing: .06em;
}
.m-gift-name { flex: 1; font-family: var(--font-heading); font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-gift-price { font-family: var(--font-heading); font-weight: 800; color: var(--color-ok); font-size: 11px; }

/* Gift bottom sheet */
.m-sheet-root {
  position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 180ms var(--ease-out);
}
.m-sheet {
  width: 100%; background: #fff; border-radius: 20px 20px 0 0;
  padding: 8px 16px 24px; max-height: 85%; overflow-y: auto;
  animation: slideUp 260ms var(--ease-out);
}
.m-sheet-handle { width: 40px; height: 4px; background: var(--line); border-radius: 999px; margin: 4px auto 12px; }
.m-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.m-sheet-head h3 { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: var(--ink-2); }
.m-sheet-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.m-sheet-x { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); border: 0; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.m-sheet-gifts { display: flex; flex-direction: column; gap: 8px; }
.m-sheet-gift {
  display: grid; grid-template-columns: 56px 1fr 24px; gap: 12px;
  align-items: center; padding: 10px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; text-align: left; font: inherit; cursor: pointer;
  transition: all 160ms var(--ease-out);
}
.m-sheet-gift:active { transform: scale(.99); }
.m-sheet-gift.picked { border-color: var(--color-1); background: var(--color-1-tint); }
.m-sheet-gift .img {
  width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.m-sheet-gift .img .pack { font-family: var(--font-heading); font-weight: 900; font-size: 10px; letter-spacing: .04em; text-align: center; line-height: 1.1; }
.m-sheet-gift .img .pack small { display: block; font-size: 8px; opacity: .7; margin-top: 2px; font-weight: 700; }
.m-sheet-gift .nm { font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--ink-2); line-height: 1.25; }
.m-sheet-gift .pr { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.m-sheet-gift .pr .orig { text-decoration: line-through; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.m-sheet-gift .pr .free { font-family: var(--font-heading); font-weight: 800; color: var(--color-ok); font-size: 11px; }
.m-sheet-gift .radio {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.m-sheet-gift.picked .radio { background: var(--color-1); border-color: var(--color-1); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Items */
.m-items { margin: 12px 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.m-item {
  display: grid; grid-template-columns: 60px 1fr 102px;
  gap: 10px; padding: 14px; border-bottom: 1px solid var(--line-soft);
  position: relative; transition: background 180ms var(--ease-out);
  align-items: flex-start;
}
.m-item:last-child { border-bottom: 0; }
.m-item.removing { animation: m-out 280ms var(--ease-out) forwards; }
@keyframes m-out { to { opacity: 0; transform: translateX(-12px); max-height: 0; padding: 0; border-color: transparent; } }

.m-item-img {
  width: 64px; height: 64px; border-radius: 10px;
  background: #F7F8FA; border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  padding: 6px; position: relative;
}
.m-item-img .pack {
  font-family: var(--font-heading); font-weight: 900; font-size: 14px;
  color: var(--color-1); text-align: center; line-height: 1; letter-spacing: -0.02em;
}
.m-item-img .pack small { display: block; font-size: 8px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 3px; }
.m-item-img .flag {
  position: absolute; top: -4px; left: -4px; background: var(--color-sale); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 9px;
  padding: 2px 5px; border-radius: 3px;
}
.m-item-img .flag.new { background: var(--color-1); }

.m-item-info { min-width: 0; padding-top: 4px; }
.m-item-name {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  color: var(--ink-2); line-height: 1.3; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere;
}
.m-item-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.m-item-meta .chip {
  background: var(--bg-alt); color: var(--ink-3);
  padding: 3px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}

.m-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; justify-content: space-between; min-height: 72px; flex-shrink: 0; min-width: 100px; white-space: nowrap; }
.m-item-price { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.m-item-price .orig { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); text-decoration: line-through; margin-top: 1px; white-space: nowrap; }
.m-item-remove {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  z-index: 2;
}
.m-item-remove:hover, .m-item-remove:active {
  background: var(--color-sale); border-color: var(--color-sale); color: #fff;
}

.m-qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 10px; overflow: hidden; background: #fff; height: 36px;
}
.m-qty button { width: 36px; height: 100%; background: #fff; border: 0; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.m-qty button:hover { color: var(--color-1); }
.m-qty button:disabled { color: var(--muted-2); }
.m-qty button.danger { color: var(--color-sale); }
.m-qty button.danger:active { background: rgba(221,48,48,.08); }
.m-qty .val {
  width: 34px; height: 100%; text-align: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}

/* Accordion cards */
.m-card {
  margin: 12px 12px 0; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.m-card-head {
  display: flex; align-items: center; gap: 10px; padding: 14px;
  cursor: pointer; user-select: none;
}
.m-card-head .ic { color: var(--color-1); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.m-card-head .title { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--ink-2); flex: 1; }
.m-card-head .val { font-size: 12px; color: var(--muted); }
.m-card-head .val.ok { color: var(--color-ok); font-weight: 600; }
.m-card-head .chev { color: var(--muted); transition: transform 200ms; }
.m-card.open .chev { transform: rotate(90deg); color: var(--color-1); }
.m-card-body { padding: 0 14px 14px; display: none; }
.m-card.open .m-card-body { display: block; }

/* Promo form */
.m-promo { display: flex; gap: 8px; }
.m-promo input {
  flex: 1; height: 40px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-family: var(--font-body); font-size: 14px; background: #fff;
}
.m-promo input:focus { outline: none; border-color: var(--color-1); box-shadow: var(--shadow-focus-ring); }
.m-promo button {
  height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 10px;
  background: #fff; color: var(--ink); font-family: var(--font-heading); font-weight: 700; font-size: 12px;
}
.m-promo-applied {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--color-1-tint); border-radius: 10px; font-size: 12px; color: var(--color-1-darker);
}
.m-promo-applied .tag { font-family: var(--font-heading); font-weight: 700; font-size: 10px; letter-spacing: 0.06em;
  background: #fff; color: var(--color-1); padding: 3px 7px; border-radius: 4px;
  border: 1px dashed var(--color-1-lighter); }
.m-promo-applied .x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }

/* Shipping list */
.m-ship {
  display: flex; align-items: center; gap: 10px; padding: 10px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; margin-bottom: 8px; cursor: pointer; transition: all 150ms;
}
.m-ship:last-child { margin-bottom: 0; }
.m-ship.selected { border-color: var(--color-1); background: var(--color-1-tint); box-shadow: var(--shadow-focus-ring); }
.m-ship .logo-mini {
  width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 900; font-size: 10px; flex-shrink: 0;
}
.m-ship .logo-mini.dpd { background: #DC0032; color: #fff; border-color: #DC0032; }
.m-ship .logo-mini.gls { background: #061AB1; color: #FFD100; border-color: #061AB1; }
.m-ship .logo-mini.pkt { background: #BF1A3B; color: #fff; border-color: #BF1A3B; }
.m-ship .logo-mini.sps { background: #F59A17; color: #fff; border-color: #F59A17; }
.m-ship .logo-mini.box { background: var(--ink-2); color: #F9C80E; border-color: var(--ink-2); }
.m-ship .body { flex: 1; min-width: 0; }
.m-ship .name { font-family: var(--font-heading); font-weight: 700; font-size: 12px; color: var(--ink-2); }
.m-ship .eta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.m-ship .price { font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.m-ship .price.free { color: var(--color-ok); }

/* Summary (inline, above CTA) */
.m-sum {
  margin: 12px 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px;
}
.m-sum-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--ink-3); }
.m-sum-row .v { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.m-sum-row.discount, .m-sum-row.discount .v { color: var(--color-sale); }
.m-sum-row.free, .m-sum-row.free .v { color: var(--color-ok); }
.m-sum-line { height: 1px; background: var(--line-soft); margin: 6px 0; }
.m-saved {
  display: flex; align-items: center; gap: 8px;
  background: rgba(38,187,89,.08); color: var(--color-ok);
  padding: 8px 10px; border-radius: 8px; margin-top: 8px;
  font-size: 12px; font-weight: 600;
}
.m-saved strong { font-family: var(--font-heading); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Cross-sell */
.m-cross { margin: 16px 12px 0; }
.m-cross h2 {
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--ink-2);
  margin: 0 4px 10px; letter-spacing: -0.01em;
}
.m-cross h2 small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.m-cross-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 10px;
  scroll-snap-type: x mandatory;
  margin: 0 -12px; padding-left: 12px; padding-right: 12px;
  -webkit-overflow-scrolling: touch;
}
.m-cross-scroll::-webkit-scrollbar { display: none; }
.m-prod {
  flex: 0 0 160px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column;
}
.m-prod .img {
  aspect-ratio: 1; border-radius: 8px; background: #F7F8FA; border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; padding: 10px; margin-bottom: 8px; position: relative;
}
.m-prod .flag-top { position: absolute; top: 6px; left: 6px; background: var(--color-sale); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 9px; padding: 2px 5px; border-radius: 3px; }
.m-prod .flag-top.new { background: var(--color-1); }
.m-prod .pack { font-family: var(--font-heading); font-weight: 900; font-size: 18px; color: var(--color-1); text-align: center; line-height: 1; }
.m-prod .pack small { display: block; font-size: 8px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 4px; }
.m-prod-brand { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.m-prod-name { font-family: var(--font-heading); font-weight: 700; font-size: 12px; color: var(--ink-2); line-height: 1.3; margin: 3px 0 auto; min-height: 30px; }
.m-prod-rating { font-size: 10px; color: var(--muted); margin: 6px 0 4px; }
.m-prod-rating .s { color: #F9C80E; }
.m-prod-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.m-prod-price { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-prod-orig { display: block; font-size: 10px; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-top: 1px; white-space: nowrap; }
.m-prod-add {
  width: 32px; height: 32px; border-radius: 10px; background: var(--color-1); color: #fff;
  border: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.m-prod-add.added { background: var(--color-ok); }

/* Trust strip */
.m-trust {
  margin: 16px 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.m-trust .t { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-3); }
.m-trust .t svg { color: var(--color-ok); flex-shrink: 0; margin-top: 1px; }
.m-trust .t strong { color: var(--ink-2); font-weight: 700; font-family: var(--font-heading); }

.m-pay { margin: 12px 12px 0; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.m-pay .chip { height: 22px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: 9px; color: var(--ink-2); display: inline-flex; align-items: center; }
.m-pay .chip.visa { color: #1A1F71; }
.m-pay .chip.mc { color: #EB001B; }
.m-pay .chip.apay { background: #000; color: #fff; }
.m-pay .chip.gpay { color: #3C4043; }
.m-pay .chip.tb { background: #0062AE; color: #fff; }
.m-pay .chip.cod { color: var(--muted); }

/* Sticky bottom bar */
.m-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  padding: 12px 16px 20px;
  box-shadow: 0 -10px 24px rgba(0,0,0,.04);
}
.m-bottom-row {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px;
}
.m-bottom-row .lbl { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.m-bottom-row .lbl small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10px; color: var(--muted-2); margin-top: 2px; letter-spacing: 0; text-transform: none; }
.m-bottom-row .lbl small.ok { color: var(--color-ok); font-weight: 700; }
.m-bottom-saved {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  color: var(--color-ok); letter-spacing: 0; text-transform: none;
}
.m-bottom-saved strong { font-family: var(--font-heading); font-weight: 700; font-variant-numeric: tabular-nums; }
.m-bottom-saved svg { color: var(--color-ok); }
.m-bottom-row .total { font-family: var(--font-heading); font-weight: 900; font-size: 24px; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.m-cta {
  width: 100%; height: 52px;
  background: linear-gradient(180deg, #FF7A2E 0%, #F05A0F 100%);
  color: #fff;
  border: 0; border-radius: 12px; font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 16px -4px rgba(240,90,15,.55), inset 0 1px 0 rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: transform 100ms var(--ease-out);
}
.m-cta:hover { background: linear-gradient(180deg, #FF8841 0%, #E85209 100%); }
.m-cta:active { transform: translateY(1px); box-shadow: 0 3px 8px -2px rgba(240,90,15,.45), inset 0 1px 0 rgba(255,255,255,.18); }

/* Toast */
.m-toast-wrap { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.m-toast {
  background: var(--ink-2); color: #fff; padding: 10px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  animation: m-toast-in 260ms var(--ease-out);
}
.m-toast .ic { color: var(--color-success); }
.m-toast.err .ic { color: var(--color-sale); }
@keyframes m-toast-in { from { transform: translateY(10px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

/* Empty */
.m-empty { padding: 48px 24px; text-align: center; }
.m-empty .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--color-1-tint); color: var(--color-1); margin: 0 auto 16px; display: inline-flex; align-items: center; justify-content: center; }
.m-empty h2 { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--ink-2); margin-bottom: 6px; }
.m-empty p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* Home indicator area */
.m-bottom::after {
  content: ''; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; background: #000; border-radius: 3px; opacity: .25;
}
