/* ═══════════════════════════════════════════════════════════════════
   B3b "Honey + Ink" — banhbo.vip mobile redesign
   Hand-drawn, sketchy mobile UI · honey/amber accent
   Mobile-first, designed at 390×844
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Shantell+Sans:wght@400;600;700&family=Caveat:wght@400;700&family=Patrick+Hand&display=swap');

:root {
  --ink: #1a1410;       /* primary text & borders — deep ink */
  --paper: #f5e9c8;     /* page background — honey cream */
  --card: #fdf6dc;      /* card surface — lighter paper */
  --accent: #d99a2b;    /* honey/amber — primary brand accent */
  --accent-fg: #1a1410; /* text on accent — ink for legibility on honey */
  --red: #a63c2a;       /* alert / featured stamp — kept */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Shantell Sans', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ─── App shell ────────────────────────────────────────── */
.matcha-app {
  max-width: 430px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  position: relative;
  padding-bottom: 90px; /* space for tab bar */
  overflow-x: hidden;
}

/* ─── Typography ───────────────────────────────────────── */
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.05;
}

.hand-script {
  font-family: var(--font-hand);
  font-weight: 400;
}

.mono-meta {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  opacity: 0.6;
}

.mono-meta--accent {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  color: var(--accent);
}

/* ─── Top bar ──────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 4px;
}

.top-bar__icons {
  display: flex;
  gap: 12px;
  font-size: 16px;
}

.top-bar__icons a { display: inline-flex; align-items: center; }

/* ─── Ribbon header ────────────────────────────────────── */
.ribbon {
  position: relative;
  padding: 16px 18px 18px;
}

.ribbon::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -8px;
  right: -8px;
  height: 44px;
  background: var(--accent);
  transform: skewY(-1.5deg);
  box-shadow: 0 3px 0 var(--ink);
}

.ribbon__inner {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-fg);
}

.ribbon__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.ribbon__brand small {
  display: block;
  font-size: 13px;
  font-style: normal;
  opacity: 0.85;
  font-family: var(--font-hand);
  margin-top: 2px;
}

.ribbon__divider {
  flex: 1;
  border-bottom: 1.5px dashed rgba(26,20,16,0.4);
  margin-top: 8px;
}

.ribbon__num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.85;
}

.ribbon__tagline {
  margin-top: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.4;
}

.ribbon__tagline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
}

/* ─── Image placeholder (hatched pattern) ──────────────── */
.bb-img {
  position: relative;
  background: #fbf5d8;
  overflow: hidden;
  border: 1.5px dashed var(--ink);
}

.bb-img--ochre { background-image: repeating-linear-gradient(45deg, rgba(184,131,60,0.4) 0 1px, transparent 1px 5px); }
.bb-img--green { background-image: repeating-linear-gradient(45deg, rgba(95,122,62,0.4) 0 1px, transparent 1px 5px); }
.bb-img--red { background-image: repeating-linear-gradient(45deg, rgba(166,60,42,0.4) 0 1px, transparent 1px 5px); }
.bb-img--cream { background-image: repeating-linear-gradient(45deg, rgba(138,109,62,0.4) 0 1px, transparent 1px 5px); }

.bb-img__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.55;
}

.bb-img--photo {
  background: none;
  border: 1.5px solid var(--ink);
}

.bb-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Filter chips (Courier monospace) ─────────────────── */
.chips-row {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.chips-row::-webkit-scrollbar { display: none; }

.chip {
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-transform: uppercase;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}

.chip--active {
  background: var(--ink);
  color: var(--paper);
}

/* ─── Featured strip card ──────────────────────────────── */
.featured-strip {
  margin: 0 16px 14px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.featured-strip__img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.featured-strip__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
}

.featured-strip__sub {
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 0.75;
}

.featured-strip__arrow {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--accent);
}

/* ─── Product grid (2-column) ──────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 20px;
}

.product-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  padding: 10px;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card__img {
  height: 82px;
}

.product-card__stamp {
  position: absolute;
  top: 6px;
  right: 6px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  transform: rotate(-8deg);
  opacity: 0.85;
  background: var(--card);
}

.product-card__tag {
  position: absolute;
  top: 16px;
  left: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-hand);
  font-size: 12px;
  padding: 1px 8px;
  transform: rotate(-3deg);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 10px;
}

.product-card__en {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.55;
  letter-spacing: 1px;
  margin-top: 2px;
  text-transform: uppercase;
}

.product-card__footer {
  margin-top: 8px;
  border-top: 1.5px dashed var(--ink);
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card__price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
}

.product-card__weight {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.55;
  margin-top: 2px;
}

.product-card__btn {
  border: 1.5px solid var(--ink);
  background: var(--accent);
  color: var(--accent-fg);
  padding: 4px 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  cursor: pointer;
}

/* ─── Buttons (matcha style) ───────────────────────────── */
.btn-matcha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
}

.btn-matcha--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--accent);
}

.btn-matcha--accent {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-matcha--ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-matcha:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--accent);
}

.btn-matcha--sm {
  padding: 6px 12px;
  font-size: 12px;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ─── Stamp / Scribble flourishes ──────────────────────── */
.stamp {
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  transform: rotate(6deg);
  background: var(--card);
  text-align: center;
  line-height: 1.1;
  display: inline-block;
}

.stamp--accent {
  border-color: var(--accent);
  color: var(--accent);
}

.scribble-tag {
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-hand);
  font-size: 13px;
  padding: 1px 10px;
  transform: rotate(-3deg);
  display: inline-block;
}

.scribble-tag--red {
  background: var(--red);
}

/* ─── Generic card ─────────────────────────────────────── */
.m-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  padding: 12px;
}

.m-card--shadow { box-shadow: 3px 3px 0 var(--ink); }
.m-card--shadow-accent { box-shadow: 3px 3px 0 var(--accent); }
.m-card--dashed { border-style: dashed; }

/* ─── Section title ─────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
}

/* ─── Bottom tab bar ───────────────────────────────────── */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--card);
  border-top: 2px solid var(--ink);
  display: flex;
  padding: 10px 12px 14px;
  align-items: center;
  gap: 10px;
  z-index: 50;
  box-shadow: 0 -3px 8px rgba(0,0,0,0.06);
}

.tab-btn {
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.6;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.tab-btn:active {
  transform: scale(0.92);
}

.tab-btn__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.tab-btn--active {
  opacity: 1;
  color: var(--accent);
}

.tab-btn--active .tab-btn__label {
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(217,154,43,0.2);
}

.tab-btn--small { width: 40px; font-size: 22px; }

.tab-cart {
  flex: 1;
  height: 52px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--accent);
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s;
}

.tab-cart:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--accent);
}

.tab-cart__count {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid var(--paper);
}

.tab-cart__label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* ════════════════════════════════════════════════════════ */
/* MASCOT — Bé Bánh Bò 3D (drag-to-move + toggle)          */
/* ════════════════════════════════════════════════════════ */
.banhbo-mascot {
  position: fixed;
  /* Position set by JS via left/top % of viewport.
     Anchor is bottom-center of the mascot box (feet), so use translate. */
  left: 82%;
  top: 78%;
  transform: translate(-50%, -100%);
  z-index: 60;
  width: 195px;
  height: 270px;
  pointer-events: none;        /* parent ignores; only handle catches */
  transition: left 0.18s ease-out, top 0.18s ease-out;
  touch-action: none;          /* prevent page scroll while dragging */
}
.banhbo-mascot--dragging {
  transition: none;
}

.banhbo-mascot__char {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.banhbo-mascot__char model-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

/* Drag handle — covers whole mascot, captures pointer events */
.banhbo-mascot__handle {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  cursor: grab;
  background: transparent;
  /* For touch devices */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.banhbo-mascot--dragging .banhbo-mascot__handle {
  cursor: grabbing;
}

/* Reacting state — small wobble */
.banhbo-mascot--reacting .banhbo-mascot__char {
  animation: mascotWobble 0.45s ease-out 1;
}
@keyframes mascotWobble {
  0%   { transform: scale(1) rotate(0); }
  25%  { transform: scale(1.08) rotate(-4deg); }
  50%  { transform: scale(0.96) rotate(3deg); }
  75%  { transform: scale(1.04) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ── Toggle button (Ẩn / Gọi về) ── */
.banhbo-mascot-toggle {
  position: fixed;
  left: 12px;
  bottom: 84px;     /* above tabbar */
  z-index: 61;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  transition: transform 0.15s, background 0.2s;
}
.banhbo-mascot-toggle:hover { transform: translateY(-1px); }
.banhbo-mascot-toggle:active { transform: translateY(1px); }

/* When mascot hidden — button becomes "♡ Gọi về" with accent color */
.banhbo-mascot-toggle--show {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Bubble in reaction — red emphasis */
.banhbo-mascot--reacting .banhbo-mascot__bubble {
  border-color: var(--red);
  box-shadow: 2.5px 2.5px 0 var(--red);
  animation: bubbleShake 0.4s ease-out !important;
}
@keyframes bubbleShake {
  0%   { transform: translateX(-50%) scale(0.5) rotate(-5deg); opacity: 0; }
  40%  { transform: translateX(-50%) scale(1.15) rotate(5deg); opacity: 1; }
  60%  { transform: translateX(-50%) scale(0.95) rotate(-3deg); }
  80%  { transform: translateX(-50%) scale(1.05) rotate(2deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0); opacity: 1; }
}
.banhbo-mascot--reacting .banhbo-mascot__bubble-tail {
  border-top-color: var(--red);
}

/* Speech bubble — centered above mascot */
.banhbo-mascot__bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 9px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  width: 178px;
  text-align: center;
  box-shadow: 2.5px 2.5px 0 var(--accent);
  pointer-events: auto;
  border-radius: 4px;
  transform: translateX(-50%);
}
.banhbo-mascot__bubble.is-hiding {
  animation: bubbleOut 0.3s ease-in forwards;
}
@keyframes bubblePop {
  0%   { transform: translateX(-50%) scale(0) translateY(20px); opacity: 0; }
  60%  { transform: translateX(-50%) scale(1.08) translateY(-2px); opacity: 1; }
  100% { transform: translateX(-50%) scale(1) translateY(0); opacity: 1; }
}
@keyframes bubbleOut {
  0%   { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.7); opacity: 0; }
}

/* Bubble tail (pointing down to mascot) — centered */
.banhbo-mascot__bubble-tail {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid var(--ink);
}
.banhbo-mascot__bubble-tail::after {
  content: '';
  position: absolute;
  top: -16px;
  left: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid var(--paper);
}

/* Close button */
.banhbo-mascot__close {
  position: absolute;
  top: -2px;
  left: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--paper);
  font-size: 16px;
  font-weight: 700;
  font-family: sans-serif;
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-shadow: 1px 1px 0 var(--accent);
  transition: transform 0.15s;
}
.banhbo-mascot__close:hover, .banhbo-mascot__close:active {
  transform: scale(1.1);
}

/* Mobile: slightly smaller 3D model (still 1.5x of original baseline) */
@media (max-width: 430px) {
  .banhbo-mascot { width: 165px; height: 225px; }
  .banhbo-mascot__bubble { width: 170px; font-size: 12px; padding: 8px 12px; }
}
@media (max-width: 360px) {
  .banhbo-mascot { width: 144px; height: 195px; }
  .banhbo-mascot__bubble { width: 155px; font-size: 11px; padding: 7px 10px; }
}

/* ─── Zigzag receipt edges ─────────────────────────────── */
.zigzag-top, .zigzag-bottom {
  height: 8px;
  position: relative;
}

.zigzag-top {
  background:
    linear-gradient(135deg, transparent 50%, var(--paper) 50%) 0 0 / 10px 10px,
    linear-gradient(45deg, transparent 50%, var(--paper) 50%) 0 0 / 10px 10px;
  top: -1px;
}

.zigzag-bottom {
  background:
    linear-gradient(135deg, transparent 50%, var(--paper) 50%) 0 100% / 10px 10px,
    linear-gradient(45deg, transparent 50%, var(--paper) 50%) 0 100% / 10px 10px;
  top: 1px;
}

/* ─── Sticky bottom CTA ────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 78px;
  left: 12px;
  right: 12px;
  max-width: 406px;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 8px 10px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 49;
  gap: 10px;
}

.sticky-cta__total {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
}

.sticky-cta__btn {
  background: var(--accent);
  color: var(--accent-fg);
  border: 1.5px solid var(--ink);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* ─── Quantity stepper ─────────────────────────────────── */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty-stepper__btn {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-stepper__btn--lg {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.qty-stepper__count {
  width: 26px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
}

.qty-stepper__count--lg {
  flex: 1;
  font-size: 20px;
}

/* ─── Form / input (matcha style) ──────────────────────── */
.matcha-input {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  background: #fdfbe8;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  border-radius: 0;
}

.matcha-input--dashed {
  border-style: dashed;
}

.matcha-input::placeholder {
  font-family: var(--font-body);
  font-style: normal;
  opacity: 0.5;
  font-size: 13px;
}

.matcha-textarea {
  min-height: 60px;
  resize: vertical;
}

/* ─── Toast ─────────────────────────────────────────────── */
.matcha-toast-container {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 398px;
  margin: 0 auto;
  z-index: 200;
  pointer-events: none;
}

.matcha-toast {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  pointer-events: auto;
  animation: toastIn 0.25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Receipt card (cart) ──────────────────────────────── */
.receipt-card {
  margin: 4px 14px 14px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
}

.receipt-card__masthead {
  padding: 14px 16px 10px;
  text-align: center;
  border-bottom: 1.5px dashed var(--ink);
}

.receipt-card__items {
  padding: 12px 16px;
}

.receipt-card__item {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(31,42,26,0.35);
  align-items: center;
}

.receipt-card__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.receipt-card__totals {
  padding: 10px 16px 12px;
  border-top: 1.5px dashed var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.receipt-card__totals .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  opacity: 0.75;
}

.receipt-card__grand {
  padding: 10px 16px 14px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── Checkout step tracker ────────────────────────────── */
.steps-tracker {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px 14px;
}

.steps-tracker__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.steps-tracker__circle {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
}

.steps-tracker__circle--done {
  background: var(--accent);
  color: var(--accent-fg);
}

.steps-tracker__circle--active {
  background: var(--accent);
  color: var(--accent-fg);
}

.steps-tracker__label {
  font-family: var(--font-hand);
  font-size: 11px;
}

.steps-tracker__line {
  flex: 1;
  height: 1.5px;
  border-top: 1.5px dashed var(--ink);
  margin-bottom: 14px;
  opacity: 0.35;
}

.steps-tracker__line--done {
  opacity: 1;
}

/* ─── Radio cards (delivery / payment) ─────────────────── */
.radio-card {
  padding: 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.radio-card--active {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 2px 2px 0 var(--accent);
}

.radio-card__circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  position: relative;
  flex-shrink: 0;
}

.radio-card--active .radio-card__circle {
  background: var(--accent);
}

.radio-card--active .radio-card__circle::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--paper);
}

.radio-card__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.radio-card__sub {
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 0.7;
}

.radio-card__price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
}

/* ─── Order status / timeline ──────────────────────────── */
.timeline-item {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
  position: relative;
}

.timeline-item__line {
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 0;
  width: 1.5px;
  border-left: 1.5px dashed var(--ink);
  opacity: 0.35;
}

.timeline-item__line--done {
  border-left-style: solid;
  border-left-color: var(--accent);
  opacity: 1;
}

.timeline-item__circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.timeline-item__circle--done {
  background: var(--accent);
  color: var(--accent-fg);
}

.timeline-item__circle--active {
  box-shadow: 0 0 0 4px rgba(122,148,86,0.3);
}

.timeline-item__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
}

.timeline-item--active .timeline-item__title {
  font-weight: 700;
}

.timeline-item:not(.timeline-item--done) .timeline-item__title {
  opacity: 0.55;
}

.timeline-item__sub {
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 0.7;
}

/* ─── Profile page bits ────────────────────────────────── */
.monogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--accent-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
}

.loyalty-stamp {
  flex: 1;
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}

.loyalty-stamp--filled {
  background: var(--accent);
  color: var(--accent-fg);
}

.menu-list-item {
  padding: 12px;
  border-bottom: 1px dashed rgba(31,42,26,0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.menu-list-item__icon {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.menu-list-item__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.menu-list-item__sub {
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 0.7;
}

.menu-list-item__arrow {
  font-family: var(--font-hand);
  font-size: 16px;
  opacity: 0.5;
}

/* ─── Responsive: tablet+ ──────────────────────────────── */
@media (min-width: 600px) {
  .matcha-app {
    box-shadow: 0 0 0 1px rgba(31,42,26,0.08);
  }
}
