/* ── Design tokens ── */
:root {
  /* Telegram theme passthrough */
  --tg-bg:           var(--tg-theme-bg-color,           #fdf6ef);
  --tg-text:         var(--tg-theme-text-color,         #1a0f0a);
  --tg-hint:         var(--tg-theme-hint-color,         #7a6355);
  --tg-link:         var(--tg-theme-link-color,         #ee7959);
  --tg-btn:          var(--tg-theme-button-color,       #ee7959);
  --tg-btn-text:     var(--tg-theme-button-text-color,  #ffffff);
  --tg-secondary-bg: var(--tg-theme-secondary-bg-color, #f0e4d4);

  /* Brand palette */
  --cream:             #fdf6ef;
  --cream-dark:        #f0e4d4;
  --terracotta:        #ee7959;
  --terracotta-dark:   #cc5e3c;
  --terracotta-light:  #f4a07a;
  --warm-dark:         #1a0f0a;
  --warm-text:         #2c1a0f;
  --muted:             #7a6355;
  --gold:              #c8a84b;
  --green:             #2d7a4f;
  --green-light:       #d4f0e3;
  --red:               #c0392b;
  --red-light:         #fdecea;

  /* Semantic aliases */
  --bg:           var(--tg-bg);
  --text:         var(--tg-text);
  --hint:         var(--tg-hint);
  --link:         var(--tg-link);
  --btn:          var(--tg-btn);
  --btn-text:     var(--tg-btn-text);
  --secondary-bg: var(--tg-secondary-bg);
  --accent:       var(--terracotta);

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 4px 24px rgba(26,15,10,.10);
  --shadow-lg: 0 8px 40px rgba(26,15,10,.18);

  --header-h: 66px;
  --cat-h:    52px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 110px;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.app-header {
  background: var(--terracotta);
  color: #fff;
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(26,15,10,.35);
}

.header-inner  { display: flex; align-items: center; gap: 10px; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.logo { line-height: 1; }
.logo-img { width: 40px; height: 40px; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }

.shop-name {
  font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.2;
}
.shop-sub {
  font-size: .68rem;
  color: var(--terracotta-light);
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-top: 1px;
}

.header-icon-img { width: 20px; height: 20px; object-fit: contain; display: block; filter: brightness(0) invert(1); }

.icon-btn { position: relative; }
.orders-badge {
  position: absolute; top: -4px; right: -4px;
  background: #e53e3e; color: #fff;
  font-size: .6rem; font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--terracotta);
  pointer-events: none;
}

.icon-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.icon-btn:active { background: rgba(255,255,255,.25); }

.member-badge {
  background: var(--gold);
  color: var(--warm-dark);
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .04em;
}


/* ── Category tabs ── */
.category-tabs {
  background: var(--cream);
  border-bottom: 1px solid rgba(26,15,10,.08);
  position: sticky;
  top: var(--header-h);
  z-index: 98;
}

.menu-banners {
  position: sticky;
  top: calc(var(--header-h) + var(--cat-h));
  z-index: 97;
}
.category-scroll {
  display: flex; gap: 6px; padding: 10px 14px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid rgba(26,15,10,.15);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .8rem; font-weight: 600;
  cursor: pointer; color: var(--muted);
  transition: all .18s; letter-spacing: .02em;
  font-family: inherit;
}
.cat-tab.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  box-shadow: 0 2px 10px rgba(238,121,89,.35);
}

/* ── Views ── */
.view { padding: 0 0 80px; }
.view.hidden { display: none; }
.view.active { display: block; }

/* ── Loading ── */
#view-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 60vh; gap: 16px; color: var(--muted);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Banners ── */
.discount-banner {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: #fff; text-align: center; padding: 10px 16px;
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
}
.loyalty-banner {
  background: linear-gradient(135deg, var(--gold), #d4941a);
  color: var(--warm-dark); padding: 8px 16px;
  font-size: .85rem; font-weight: 700; text-align: center; letter-spacing: .02em;
}

/* ── No results ── */
.no-results { text-align: center; color: var(--muted); padding: 60px 20px; font-size: .95rem; }

/* ── Menu grid ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
}

.menu-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  position: relative;
  border: 1px solid rgba(26,15,10,.06);
}
.menu-card:active { transform: scale(.97); box-shadow: 0 2px 10px rgba(26,15,10,.08); }

.menu-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--cream-dark); }
.menu-card-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f5e6d3, #e8c99a);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}

.menu-card-body {
  padding: 10px 10px 12px;
  flex: 1; display: flex; flex-direction: column; gap: 5px;
}
.menu-card-name  { font-size: .8rem; font-weight: 700; line-height: 1.35; flex: 1; color: var(--warm-text); }
.menu-card-price { font-size: .92rem; font-weight: 800; color: var(--terracotta); }
.menu-card-note  { font-size: .7rem; color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.qty-controls { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: var(--terracotta); color: #fff;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s;
}
.qty-btn:active  { background: var(--terracotta-dark); }
.qty-btn:disabled { opacity: .3; }
.qty-num { font-size: .9rem; font-weight: 700; min-width: 20px; text-align: center; color: var(--warm-text); }

/* ── Cart FAB ── */
.cart-fab { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 200; }
.cart-fab button {
  width: 100%;
  background: var(--terracotta); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 15px 20px; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(238,121,89,.45);
  font-family: inherit; letter-spacing: .02em;
  transition: background .15s, box-shadow .15s;
}
.cart-fab button:active { background: var(--terracotta-dark); box-shadow: 0 3px 12px rgba(238,121,89,.3); }
.fab-badge {
  background: #fff; color: var(--terracotta);
  font-size: .75rem; font-weight: 800;
  padding: 2px 7px; border-radius: 20px;
}

/* ── Cart view ── */
.back-btn {
  background: none; border: none;
  color: var(--terracotta); font-size: .9rem; font-weight: 600;
  cursor: pointer; padding: 16px;
  display: flex; align-items: center; gap: 4px;
  font-family: inherit;
}
.section-title {
  padding: 0 16px 14px;
  font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: 1.3rem; font-weight: 700; color: var(--warm-text);
}
.section-subtitle {
  padding: 16px 16px 10px;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
}

.cart-list { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  background: #fff; border-radius: var(--radius); padding: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 12px rgba(26,15,10,.07);
  border: 1px solid rgba(26,15,10,.06);
}
.cart-item-info   { flex: 1; overflow: hidden; }
.cart-item-name   { font-size: .88rem; font-weight: 700; color: var(--warm-text); }
.cart-item-price  { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.cart-item-note   { font-size: .75rem; color: var(--muted); font-style: italic; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-sub    { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.cart-summary {
  margin: 16px 14px 0;
  background: #fff; border-radius: var(--radius); padding: 16px;
  box-shadow: 0 2px 12px rgba(26,15,10,.07);
  border: 1px solid rgba(26,15,10,.06);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: .9rem; color: var(--text);
}
.discount-row { color: var(--green); font-weight: 600; }
.promo-row    { color: var(--green); font-weight: 600; }
.loyalty-row  { color: #9a7b0a; font-weight: 600; }
.total-row {
  font-size: 1.05rem; font-weight: 800;
  border-top: 1.5px solid rgba(26,15,10,.08);
  padding-top: 12px; margin-top: 6px; color: var(--warm-text);
}
.strikethrough { text-decoration: line-through; color: var(--muted); }

/* ── Checkout form ── */
.form-section { padding: 10px 16px 0; }
.form-label {
  display: block; font-size: .74rem; font-weight: 700;
  color: var(--muted); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .07em;
}
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .75em; }
.form-input {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(26,15,10,.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .92rem; color: var(--text);
  outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(238,121,89,.12); }
.form-textarea { resize: none; height: 80px; }

/* ── Payment methods ── */
.payment-methods { display: flex; gap: 10px; padding: 0 16px; flex-wrap: wrap; }
.payment-card {
  flex: 1; min-width: 100px;
  background: #fff; border: 2px solid rgba(26,15,10,.1); border-radius: var(--radius);
  padding: 16px 10px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; cursor: pointer;
  transition: all .18s; text-align: center;
  box-shadow: 0 2px 10px rgba(26,15,10,.06);
}
.payment-card.selected {
  border-color: var(--terracotta);
  background: rgba(238,121,89,.06);
  box-shadow: 0 2px 16px rgba(238,121,89,.2);
}
.payment-icon { font-size: 1.6rem; }
.payment-name { font-size: .82rem; font-weight: 700; color: var(--warm-text); }

/* ── QR section ── */
.qr-section {
  margin: 12px 16px 0; background: #fff; border-radius: var(--radius);
  padding: 18px; text-align: center;
  box-shadow: 0 2px 12px rgba(26,15,10,.07);
  border: 1px solid rgba(26,15,10,.06);
}
.qr-label { font-size: .85rem; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.qr-image { max-width: 200px; width: 100%; border-radius: 12px; display: block; margin: 0 auto; }
.qr-details { margin-top: 12px; font-size: .82rem; color: var(--text); line-height: 1.6; }
.verify-payment-btn {
  display: block; width: 100%; margin-top: 16px; padding: 14px;
  background: var(--green); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; letter-spacing: .02em; transition: background .15s;
}
.verify-payment-btn:active  { background: #235f3e; }
.verify-payment-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Success view ── */
#view-success { display: flex; align-items: center; justify-content: center; min-height: 70vh; }
.success-card { text-align: center; padding: 40px 28px; }
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-card h2 {
  font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 10px; color: var(--warm-text);
}
.success-card p {
  color: var(--muted); font-size: .9rem;
  margin-bottom: 28px; white-space: pre-line; line-height: 1.6;
}
#approval-order-info { font-weight: 600; color: var(--text); }
.success-points { color: #9a7b0a; font-size: .95rem; font-weight: 700; margin-top: 8px; margin-bottom: 16px; }

/* ── Buttons ── */
.primary-btn {
  display: block; width: calc(100% - 32px); margin: 18px auto 0;
  background: var(--terracotta); color: #fff; border: none;
  border-radius: var(--radius); padding: 15px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: inherit; letter-spacing: .03em;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(238,121,89,.3);
}
.primary-btn:active  { background: var(--terracotta-dark); box-shadow: none; }
.primary-btn:disabled { opacity: .5; box-shadow: none; }

.secondary-btn {
  background: var(--cream-dark); color: var(--warm-text);
  border: 1.5px solid rgba(26,15,10,.12);
  border-radius: var(--radius-sm); padding: 11px 16px;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; font-family: inherit; transition: background .15s;
}
.secondary-btn:active { background: #e0d0c0; }

/* ── Promo ── */
.promo-row-input { display: flex; gap: 8px; }
.promo-row-input .form-input { flex: 1; }
.promo-feedback {
  margin-top: 6px; font-size: .82rem;
  padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600;
}
.promo-feedback.success { background: var(--green-light); color: var(--green); }
.promo-feedback.error   { background: var(--red-light);   color: var(--red);   }

/* ── Item detail bottom sheet ── */
.bottom-overlay {
  position: fixed; inset: 0;
  background: rgba(10,5,3,.55);
  z-index: 500; display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.bottom-overlay.hidden { display: none; }
.bottom-sheet {
  background: var(--cream);
  border-radius: 24px 24px 0 0;
  width: 100%; max-height: 90vh; overflow-y: auto;
  padding-bottom: 28px; position: relative;
  animation: slideUp .25s cubic-bezier(.34,1.56,.64,1);
}
.bottom-sheet::before {
  content: '';
  display: block; width: 40px; height: 4px;
  background: rgba(26,15,10,.18); border-radius: 2px;
  margin: 12px auto 0;
}
@keyframes slideUp {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Customize Sharing Box picker ── */
.box-picker { margin: 10px 0; }
.box-picker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.box-picker-label   { font-weight: 700; font-size: .88rem; color: var(--warm-text); }
.box-picker-counter {
  background: var(--terracotta); color: #fff;
  padding: 3px 12px; border-radius: 20px; font-size: .8rem; font-weight: 700;
}
.box-picker-items {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 220px; overflow-y: auto;
}
.box-picker-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
  gap: 8px; border: 1px solid rgba(26,15,10,.06);
}
.box-picker-name { font-size: .83rem; flex: 1; font-weight: 500; }
.preset-select-btn {
  padding: 5px 12px; border-radius: 20px;
  border: 2px solid var(--terracotta);
  background: transparent; color: var(--terracotta);
  font-size: .8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: all .15s; font-family: inherit;
}
.preset-select-btn.active { background: var(--terracotta); color: #fff; }

.qty-display { width: 32px; text-align: center; font-weight: 700; font-size: .95rem; color: var(--text); }
.qty-input {
  width: 44px; text-align: center;
  border: 1.5px solid rgba(26,15,10,.15); border-radius: 8px;
  font-size: .95rem; font-weight: 600; padding: 4px 2px;
  background: var(--bg); color: var(--text);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.close-sheet-btn {
  position: absolute; top: 14px; right: 16px;
  background: rgba(26,15,10,.08); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: .9rem; cursor: pointer;
  z-index: 10; color: var(--warm-text);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.close-sheet-btn:active { background: rgba(26,15,10,.15); }

.detail-image-wrap { width: 100%; }
.detail-image-wrap img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.detail-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #f5e6d3, #e8c99a);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}

.detail-body { padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 14px; }
.detail-name-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.detail-name {
  font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: 1.15rem; font-weight: 700; line-height: 1.3; flex: 1; color: var(--warm-text);
}
.detail-price { font-size: 1.15rem; font-weight: 800; color: var(--terracotta); flex-shrink: 0; }

.detail-qty-row { display: flex; align-items: center; gap: 16px; }
.detail-qty-row .qty-btn  { width: 38px; height: 38px; font-size: 1.3rem; }
.detail-qty-row .qty-num  { font-size: 1.1rem; min-width: 28px; }

/* ── Size / variant selector ── */
.size-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  padding: 8px 20px; border-radius: 20px;
  border: 2px solid rgba(26,15,10,.12); background: #fff;
  font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--warm-text);
  transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: inherit;
}
.size-btn .size-label  { font-size: .9rem; }
.size-btn .size-price  { font-size: .75rem; color: var(--muted); }
.size-btn.active {
  border-color: var(--terracotta); background: rgba(238,121,89,.06); color: var(--terracotta);
  box-shadow: 0 2px 10px rgba(238,121,89,.2);
}
.size-btn.active .size-price { color: var(--terracotta); }

/* ── Drink picker ── */
.drink-picker-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.drink-picker-row:last-child { margin-bottom: 0; }
.drink-picker-item-label {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.drink-select {
  width: 100%; padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(26,15,10,.12);
  background: #fff; color: var(--text);
  font-size: .9rem; font-weight: 500; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6355' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
  font-family: inherit; transition: border-color .15s;
}
.drink-select:focus { border-color: var(--terracotta); outline: none; }

/* ── Detail subsection (drink / toppings) ── */
.detail-subsection { display: flex; flex-direction: column; gap: 8px; }
.detail-subsection-label {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
}

/* ── Topping checkbox rows ── */
.topping-list { display: flex; flex-direction: column; gap: 4px; }
.topping-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: #fff; border: 1.5px solid rgba(26,15,10,.07);
  cursor: pointer; transition: all .15s; user-select: none;
}
.topping-row.active { background: rgba(238,121,89,.06); border-color: rgba(238,121,89,.3); }
.topping-check {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid rgba(26,15,10,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff; flex-shrink: 0;
  transition: all .15s; background: transparent;
}
.topping-row.active .topping-check { border-color: var(--terracotta); background: var(--terracotta); }
.topping-name  { flex: 1; font-size: .88rem; font-weight: 500; color: var(--text); }
.topping-price { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ── Cart sub-lines ── */
/* (defined under .cart-item-sub above) */

/* ── Detail unavailable ── */
.detail-unavailable {
  background: #fff3cd; color: #856404;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600;
}

/* ── Out of stock ── */
.menu-card.out-of-stock { opacity: .5; pointer-events: none; }
.out-of-stock-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(10,5,3,.7); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  pointer-events: none; letter-spacing: .04em;
}
.out-of-stock-text { font-size: .75rem; color: var(--muted); }

/* ── Form select ── */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6355' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

/* ── Checkout total summary ── */
.checkout-total-summary {
  background: #fff; border-radius: var(--radius); padding: 14px 16px;
  margin: 16px 0 4px;
  border: 1px solid rgba(26,15,10,.06);
  box-shadow: 0 2px 10px rgba(26,15,10,.06);
}

/* ── Order history ── */
.orders-list { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.order-history-card {
  background: #fff; border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); border: 1px solid rgba(26,15,10,.06);
  border-left: 4px solid var(--cream-dark);
  display: flex; flex-direction: column; gap: 10px;
}
.order-history-card.status-pending  { border-left-color: #f59e0b; }
.order-history-card.status-ready    { border-left-color: var(--green); }
.order-history-card.status-delivery { border-left-color: #2563eb; }
.order-history-card.status-done     { border-left-color: var(--muted); }

.order-history-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.order-history-status {
  font-size: .72rem; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; letter-spacing: .04em; white-space: nowrap;
}
.status-pill-pending  { background: #fef3c7; color: #92400e; }
.status-pill-ready    { background: var(--green-light); color: var(--green); }
.status-pill-delivery { background: #dbeafe; color: #1e40af; }
.status-pill-done     { background: var(--cream-dark); color: var(--muted); }

.order-history-date   { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.order-history-items {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.order-history-items li {
  font-size: .88rem; color: var(--warm-text); line-height: 1.4;
  padding-left: 14px; position: relative;
}
.order-history-items li::before {
  content: '·'; position: absolute; left: 4px; color: var(--terracotta); font-weight: 700;
}
.item-note { font-size: .8rem; color: var(--muted); font-style: italic; margin-left: 4px; }
.item-qty { font-weight: 700; color: var(--muted); }
.item-topping { color: var(--muted) !important; font-size: .82rem !important; padding-left: 22px !important; }
.item-topping::before { content: '' !important; }
.order-history-scheduled { font-size: .8rem; color: var(--terracotta); font-weight: 600; }

.order-history-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid rgba(26,15,10,.06);
}
.order-history-id    { font-size: .78rem; color: var(--muted); font-weight: 600; }
.order-history-price { font-size: 1rem; font-weight: 800; color: var(--terracotta); }

.orders-empty {
  text-align: center; padding: 60px 20px; color: var(--muted); line-height: 1.7;
}
.orders-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.orders-empty p    { font-size: .9rem; }

.orders-loading { display: flex; justify-content: center; padding: 60px 0; }

.loading-text { text-align: center; color: var(--muted); padding: 40px; }

/* ── Loyalty toggle / savings ── */
.loyalty-toggle-label { display: flex; align-items: center; cursor: pointer; font-size: .9rem; }
.loyalty-savings { margin-top: 4px; font-size: .82rem; color: var(--muted); padding-left: 22px; }


/* ── Utility ── */
.hidden { display: none !important; }
