/* ==========================================================================
   CUSTOMER ORDERING PAGE — phone first, thumb friendly
   ========================================================================== */

body.customer {
  background: var(--cream-soft);
  padding-bottom: calc(96px + var(--safe-b)); /* clears the basket bar */
}

/* ------------------------------------------------------------- header ---- */

.c-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, var(--cream) 0%, #f3e5c9 100%);
  border-bottom: 1px solid var(--cream-deep);
  box-shadow: 0 1px 8px rgba(43, 33, 24, .06);
}
.c-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.c-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.c-logo {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 1px 4px rgba(43, 33, 24, .18);
}
.c-brand-text { min-width: 0; }
.c-shop-zh {
  font-size: 19px;
  font-weight: 700;
  color: var(--pink);
  line-height: 1.1;
  letter-spacing: .12em;
}
.c-shop-en {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.c-table-chip {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1.5px solid var(--pink-line);
  line-height: 1.15;
}
.c-table-chip strong { font-size: 18px; color: var(--pink-deep); }

/* -------------------------------------------------- popular dish slider -- */

.c-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 6px;
}
.c-hero-label { text-align: center; margin-bottom: 10px; }
.c-hero-label .pill { font-size: 12.5px; padding: 5px 14px; letter-spacing: .06em; }

.c-slider {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  max-height: 340px;
}
.c-slides {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.3, .8, .25, 1);
  will-change: transform;
}
.c-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.c-slide .photo-wrap { position: absolute; inset: 0; }

/* Dark scrim so white text stays readable over any photo. */
.c-slide-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 18px;
  background: linear-gradient(180deg, rgba(20, 14, 8, 0) 0%, rgba(20, 14, 8, .82) 62%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.c-slide-titles { min-width: 0; }
.c-slide-zh {
  font-family: var(--font-zh);
  font-size: clamp(20px, 6.2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.c-slide-en {
  font-size: clamp(12.5px, 3.6vw, 15px);
  font-weight: 600;
  opacity: .93;
  margin-top: 2px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.c-slide-price {
  font-size: clamp(15px, 4.4vw, 19px);
  font-weight: 800;
  margin-top: 6px;
  color: #ffd9e5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.c-slide-add {
  flex: none;
  min-height: 46px;
  padding: 11px 20px;
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(217, 43, 98, .5);
  transition: transform .1s ease, background .15s ease;
}
.c-slide-add:hover { background: var(--pink-deep); }
.c-slide-add:active { transform: scale(.96); }

.c-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 253, 248, .86);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  padding-bottom: 3px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}
.c-slide-nav:hover { background: #fff; }
.c-slide-nav.prev { left: 10px; }
.c-slide-nav.next { right: 10px; }

.c-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 12px 0 4px;
}
.c-dot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.c-dot.on { width: 26px; border-radius: 999px; background: var(--pink); }

/* ------------------------------------------------------- category tabs -- */

.c-cats {
  position: sticky;
  top: 68px;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: linear-gradient(180deg, var(--cream-soft) 70%, rgba(253, 248, 238, 0));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.c-cats::-webkit-scrollbar { display: none; }

.c-cat {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
}
.c-cat:hover { border-color: var(--pink-line); color: var(--ink); }
.c-cat.on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 2px 10px rgba(217, 43, 98, .32);
}
.c-cat .zh { font-size: 13px; opacity: .9; }

/* -------------------------------------------------------------- menu ---- */

.c-menu { max-width: 1080px; margin: 0 auto; padding: 4px 16px 24px; }

.c-loading { padding: 60px 20px; display: grid; place-items: center; gap: 12px; }

.c-section { margin-bottom: 26px; scroll-margin-top: 122px; }
.c-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px 2px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-deep);
}
.c-section-head h2 { font-size: 17px; }
.c-section-head .zh { font-size: 15px; color: var(--pink); font-weight: 700; }
.c-section-head .count { margin-left: auto; font-size: 12px; color: var(--ink-faint); }

.c-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) { .c-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .c-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ------------------------------------------------------------ dish card -- */

.dish {
  display: flex;
  gap: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.dish:hover { box-shadow: var(--shadow-md); border-color: var(--pink-line); }
.dish.in-basket { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), var(--shadow-sm); }
.dish.sold-out { opacity: .55; }

.dish .photo-wrap {
  width: 108px;
  flex: none;
  align-self: stretch;
  min-height: 108px;
}
.dish-body {
  flex: 1;
  min-width: 0;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dish-zh {
  font-family: var(--font-zh);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.dish-en {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
}
.dish-desc {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.4;
  margin-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dish-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--pink-deep);
}
.dish-tags { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }

/* quantity stepper --------------------------------------------------------- */

.stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--pink-soft);
  border: 1.5px solid var(--pink-line);
}
.stepper button {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--paper);
  color: var(--pink-deep);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .12s ease;
}
.stepper button:hover { background: #fff; }
.stepper button:active { transform: scale(.92); }
.stepper .qty {
  min-width: 30px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--pink-deep);
}

.add-btn {
  min-height: 38px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.add-btn:hover { background: var(--pink-deep); }
.add-btn:active { transform: scale(.95); }
.add-btn:disabled { background: var(--line-strong); cursor: not-allowed; }

/* -------------------------------------------------------- basket bar ---- */

.c-basket-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 70;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, rgba(253, 248, 238, 0) 0%, var(--cream-soft) 38%);
}
.c-basket-btn {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px 10px 10px;
  border: none;
  border-radius: var(--r-lg);
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(217, 43, 98, .42);
  transition: background .15s ease, transform .1s ease;
}
.c-basket-btn:hover { background: var(--pink-deep); }
.c-basket-btn:active { transform: translateY(1px); }

.c-basket-count {
  flex: none;
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .22);
  font-size: 17px;
  font-weight: 800;
}
.c-basket-label { flex: 1; text-align: left; font-size: 15.5px; font-weight: 700; }
.c-basket-total { font-size: 18px; font-weight: 800; }

/* ------------------------------------------------------- basket sheet ---- */

.basket-line {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.basket-line:last-of-type { border-bottom: none; }
.basket-line .photo-wrap {
  width: 58px; height: 58px;
  flex: none;
  border-radius: var(--r-md);
}
.basket-line-body { flex: 1; min-width: 0; }
.basket-line-zh { font-family: var(--font-zh); font-size: 15px; font-weight: 700; line-height: 1.25; }
.basket-line-en { font-size: 12.5px; color: var(--ink-soft); }
.basket-line-math { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.basket-line-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex: none;
}
.basket-line-total { font-size: 15px; font-weight: 800; color: var(--pink-deep); }

.note-input {
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--cream-soft);
  font-size: 13px;
  resize: none;
}
.note-input:focus { outline: none; border-color: var(--pink); border-style: solid; background: var(--paper); }

.totals { margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--cream-deep); }
.totals-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.totals-row.grand {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.totals-row.grand .amount { color: var(--pink-deep); }

.pay-notice {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  background: var(--amber-soft);
  border: 1px solid #f0dcb4;
  font-size: 13.5px;
  line-height: 1.5;
  color: #7a4a00;
}
.pay-notice .icon { font-size: 20px; flex: none; line-height: 1; }

/* table number picker ----------------------------------------------------- */

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.table-opt {
  min-height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .12s ease;
}
.table-opt:hover { border-color: var(--pink-line); color: var(--ink); }
.table-opt.on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 2px 10px rgba(217, 43, 98, .3);
}

.type-toggle { display: flex; gap: 8px; }
.type-toggle button {
  flex: 1;
  min-height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.type-toggle button.on { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ------------------------------------------------------ success screen --- */

.done {
  text-align: center;
  padding: 8px 4px 4px;
}
.done-tick {
  width: 74px; height: 74px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 38px;
  animation: pop .38s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

.done h2 { font-size: 22px; margin-bottom: 6px; }
.done .ticket {
  display: inline-block;
  margin: 16px 0 6px;
  padding: 10px 26px;
  border-radius: var(--r-md);
  background: var(--pink-soft);
  border: 2px dashed var(--pink-line);
}
.done .ticket .n {
  font-size: 34px;
  font-weight: 800;
  color: var(--pink-deep);
  line-height: 1.1;
}
.done-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  text-align: left;
}

.c-footer { max-width: 620px; margin: 0 auto; padding: 8px 20px 20px; }
