/* Customer app — light "menu paper" theme, mobile-first. */

body.customer {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: 110px;
  background:
    radial-gradient(120% 60% at 80% -10%, rgba(111, 125, 99, 0.10), transparent 60%),
    radial-gradient(90% 50% at 0% 0%, rgba(169, 140, 107, 0.10), transparent 55%),
    var(--cream);
}

/* ---------- header ---------- */
.masthead {
  padding: 26px 22px 10px;
  animation: rise 0.5s ease both;
}

.masthead .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.5px;
  line-height: 0.95;
}

.wordmark em {
  font-style: italic;
  color: var(--terra);
}

.wordmark .sub {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
}

.hours {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--palm);
}

.hours span {
  display: block;
  color: var(--ink-faint);
  font-weight: 400;
}

/* ---------- loyalty strip ---------- */
.loyalty {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  padding: 14px 18px 4px;
  animation: rise 0.5s 0.08s ease both;
}

.lcard {
  background: #fffdf8;
  border: 1px solid rgba(49, 45, 38, 0.09);
  border-radius: 18px;
  padding: 14px 16px 13px;
  box-shadow: 0 4px 16px rgba(49, 45, 38, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lcard h3 {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.rewards .count {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 3px;
}

.rewards .count span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
}

.segs {
  display: flex;
  gap: 4px;
  margin: 8px 0 8px;
}

.seg {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--cream-deep);
}

.seg.hit {
  background: var(--terra);
  animation: pop 0.3s ease both;
}

.rewards small {
  font-size: 11px;
  color: var(--ink-faint);
}

.wallet .bal {
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.3px;
  margin: 3px 0 9px;
}

.wallet button {
  align-self: flex-start;
  white-space: nowrap;
  background: rgba(111, 125, 99, 0.13);
  color: var(--terra-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 6px 11px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.wallet button:active { background: rgba(111, 125, 99, 0.25); }

/* ---------- menu ---------- */
.menu { padding: 10px 22px 20px; }

.cat {
  margin-top: 26px;
  animation: rise 0.55s ease both;
}

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
}

.cat-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.3px;
}

.cat-head .note {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--terra);
}

.item {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(43, 28, 18, 0.12);
  transition: transform 0.15s ease;
}

.item:active { transform: scale(0.985); }

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(49, 45, 38, 0.14);
}

.sheet .hero {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 16px;
  margin: 4px 0 12px;
}

.item h4 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.1px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--terra);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 7px;
}

.item p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.price {
  font-weight: 700;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink-soft);
}

/* ---------- cart bar ---------- */
.cart-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(420px, calc(100% - 32px));
  background: var(--terra);
  color: var(--cream);
  border-radius: 18px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(87, 100, 78, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cart-bar.hide { transform: translateX(-50%) translateY(120px); opacity: 0; pointer-events: none; }

.cart-bar .n {
  background: var(--cream);
  color: var(--terra-deep);
  border-radius: 999px;
  padding: 2px 9px;
  margin-right: 9px;
  font-size: 13px;
}

/* ---------- sheets ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(32, 21, 16, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

.scrim.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(105%);
  bottom: 0;
  width: min(460px, 100%);
  background: var(--cream);
  border-radius: 26px 26px 0 0;
  padding: 22px 22px 28px;
  z-index: 60;
  transition: transform 0.32s cubic-bezier(0.32, 0.9, 0.35, 1);
  max-height: 86dvh;
  overflow-y: auto;
}

.sheet.on { transform: translateX(-50%) translateY(0); }

.sheet .handle {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: rgba(43, 28, 18, 0.2);
  margin: 0 auto 16px;
}

.sheet h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
}

.sheet .desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 4px 0 4px;
}

.opt-group { margin-top: 16px; }

.opt-group h5 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  border: 1.5px solid rgba(43, 28, 18, 0.3);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.chip .d { color: var(--terra); font-weight: 800; }
.chip.on .d { color: var(--gold-soft); }

.sheet .cta {
  width: 100%;
  margin-top: 22px;
  background: var(--terra);
  color: var(--cream);
  font-size: 16px;
  font-weight: 800;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
}

.sheet .cta:active { background: var(--terra-deep); }

/* checkout */
.pickup-times { display: flex; gap: 8px; flex-wrap: wrap; }

.line {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px dashed rgba(43, 28, 18, 0.18);
}

.line b { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums lining-nums; }

.pay-toggle {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(140deg, #cdb795, #b09a76);
  border-radius: var(--radius);
  padding: 13px 15px;
  font-weight: 800;
  font-size: 13.5px;
}

.pay-toggle small { display: block; font-weight: 600; opacity: 0.75; }

.switch {
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: rgba(32, 21, 16, 0.35);
  position: relative;
  transition: background 0.2s;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--cream);
  transition: left 0.2s;
}

.switch.on { background: var(--ink); }
.switch.on::after { left: 22px; }

/* confirmation */
.confirm { text-align: center; padding: 10px 6px 6px; }

.confirm .mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--palm);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 30px;
  animation: pop 0.45s ease both;
}

.confirm h2 { font-size: 30px; }

.confirm .when {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--terra);
  margin: 6px 0 18px;
}

.steps { display: flex; gap: 6px; justify-content: center; }

.step {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(43, 28, 18, 0.25);
  color: var(--ink-faint);
}

.step.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-soft);
}

/* ---------- demo footer ---------- */
.demo-foot {
  text-align: center;
  padding: 26px 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-faint);
}

.demo-foot a { color: var(--terra-deep); text-decoration: none; }

/* ---------- your usual ---------- */
.usual {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 13px;
  align-items: center;
  width: calc(100% - 36px);
  margin: 14px 18px 0;
  text-align: left;
  background: var(--ink);
  color: var(--cream);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(49, 45, 38, 0.22);
  animation: rise 0.5s 0.04s ease both;
  transition: transform 0.15s ease;
}

.usual:active { transform: scale(0.98); }

.usual img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.usual .u-txt small {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 2px;
}

.usual .u-txt b { font-size: 15px; font-weight: 800; }
.usual .u-txt em { display: block; font-style: normal; font-size: 11.5px; color: rgba(242, 238, 229, 0.65); margin-top: 1px; }

.usual .u-cta { text-align: right; }
.usual .u-cta span { display: block; font-weight: 800; font-size: 14px; }

.usual .u-cta i {
  display: inline-block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  background: var(--terra);
  color: var(--cream);
  border-radius: 999px;
  padding: 4px 11px;
  margin-top: 4px;
}
