/* =========================================================
   夜猫食堂 · Web Ordering
   ========================================================= */
:root {
  --ink: #111722;
  --ink-2: #1b202a;
  --ink-3: #242b36;
  --paper: #f3ede1;
  --paper-2: #fffaf2;
  --paper-3: #fbf5ea;
  --cream: #fff8eb;
  --amber: #ffc66e;
  --amber-deep: #c48342;
  --orange: #f06b43;
  --green: #7dcb98;
  --muted: #8e8374;
  --muted-2: #a99b87;
  --line: rgba(91, 68, 40, 0.1);
  --line-strong: rgba(91, 68, 40, 0.16);
  --shadow: 0 20px 50px rgba(61, 42, 22, 0.08);
  --shadow-lg: 0 30px 80px rgba(17, 23, 34, 0.24);
  --radius: 24px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 22%, rgba(255, 255, 255, 0.7), transparent 26%),
    radial-gradient(circle at 96% 8%, rgba(255, 198, 110, 0.12), transparent 28%),
    var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.02em;
}

::selection {
  background: rgba(255, 198, 110, 0.55);
}

:focus-visible {
  outline: 3px solid rgba(240, 107, 67, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--ink);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: block;
  font-family: "Bahnschrift", "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.24em;
  color: var(--amber-deep);
}

/* ============================== Header ============================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 23, 34, 0.94);
  color: var(--cream);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(1240px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--amber);
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-copy small {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(255, 248, 235, 0.42);
}

.store-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 216, 155, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 235, 0.78);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(125, 203, 152, 0.9);
}

.state-hours {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 248, 235, 0.45);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 11px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.text-btn {
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 248, 235, 0.68);
  font-size: 13px;
  transition: color 0.18s ease, background 0.18s ease;
}

.text-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--cream);
}

.bag-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--cream);
  font-size: 13px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.bag-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.bag-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 7px 7px;
  transform: translateY(1px);
}

.bag-icon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 5px;
  width: 8px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.bag-badge {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: "Bahnschrift", sans-serif;
  font-size: 10px;
  font-weight: 800;
}

/* ============================== Hero ============================== */
.hero {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 28%, rgba(255, 157, 83, 0.2), transparent 30%),
    #111722;
  color: var(--cream);
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 209, 140, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.14), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 28px;
  padding: 54px 56px 38px;
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  position: relative;
  display: inline-block;
  color: var(--amber);
}

.hero-copy h1 span::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 4px;
  bottom: 7px;
  height: 7px;
  border-radius: 5px;
  background: rgba(240, 107, 67, 0.45);
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-lead {
  max-width: 470px;
  margin-top: 18px;
  color: rgba(255, 248, 235, 0.67);
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}

.primary-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-btn {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
  background: #ffd58b;
  transform: translateY(-2px);
}

.primary-btn:active,
.outline-btn:active,
.bag-btn:active {
  transform: scale(0.98);
}

.primary-btn span {
  font-size: 20px;
  font-weight: 400;
}

.outline-btn {
  border: 1px solid rgba(255, 248, 235, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 235, 0.8);
}

.outline-btn:hover {
  border-color: rgba(255, 248, 235, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats div {
  display: grid;
  gap: 5px;
}

.hero-stats strong {
  color: var(--amber);
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 27px;
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 248, 235, 0.38);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.hero-art {
  position: relative;
  min-height: 340px;
}

.hero-halo {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(255, 170, 86, 0.3), rgba(255, 170, 86, 0.02) 68%);
}

.hero-orbit {
  position: absolute;
  top: 16%;
  left: 14%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 209, 140, 0.26);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.hero-bowl {
  position: absolute;
  left: 15%;
  bottom: 14%;
  z-index: 3;
  font-size: clamp(110px, 14vw, 176px);
  line-height: 1;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.28));
  transform: rotate(-5deg);
  animation: bowlFloat 5s ease-in-out infinite;
}

.hero-float {
  position: absolute;
  z-index: 4;
  line-height: 1;
  filter: drop-shadow(0 10px 13px rgba(0, 0, 0, 0.22));
  animation: gentleFloat 4.2s ease-in-out infinite;
}

.float-egg {
  top: 12%;
  right: 12%;
  font-size: 42px;
  transform: rotate(12deg);
}

.float-cola {
  top: 42%;
  right: 3%;
  font-size: 52px;
  transform: rotate(12deg);
  animation-delay: 0.8s;
}

.hero-sticker {
  position: absolute;
  right: 15%;
  bottom: 9%;
  z-index: 5;
  display: grid;
  gap: 3px;
  place-items: center;
  width: 104px;
  height: 70px;
  border-radius: 16px;
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
  transform: rotate(-7deg);
}

.hero-sticker strong {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.hero-sticker span {
  font-size: 10px;
  font-weight: 700;
}

.hero-steam {
  position: absolute;
  z-index: 2;
  width: 4px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(255, 247, 229, 0), rgba(255, 247, 229, 0.55));
  filter: blur(1px);
  opacity: 0;
  animation: steam 3.4s ease-in-out infinite;
}

.steam-a {
  left: 28%;
  top: 25%;
}

.steam-b {
  left: 38%;
  top: 20%;
  height: 62px;
  animation-delay: 1s;
}

.steam-c {
  left: 48%;
  top: 28%;
  animation-delay: 1.8s;
}

.hero-info {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.info-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 198, 110, 0.14);
  color: var(--amber);
  font-size: 19px;
}

.info-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--cream);
}

.info-card p {
  color: rgba(255, 248, 235, 0.45);
  font-size: 11px;
  line-height: 1.55;
}

.info-card em {
  color: rgba(255, 198, 110, 0.68);
  font-style: normal;
}

/* ============================== Category rail ============================== */
.category-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  margin-top: 24px;
  border-top: 1px solid rgba(91, 68, 40, 0.07);
  border-bottom: 1px solid rgba(91, 68, 40, 0.09);
  background: rgba(243, 237, 225, 0.9);
  backdrop-filter: blur(16px);
}

.category-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease;
}

.category-tab span {
  color: var(--amber-deep);
  font-family: "Bahnschrift", sans-serif;
  font-size: 10px;
}

.category-tab:hover {
  background: rgba(255, 250, 242, 0.7);
}

.category-tab.is-active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 22px rgba(17, 23, 34, 0.16);
}

.category-tab.is-active span {
  color: var(--amber);
}

.category-tip {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ============================== Layout ============================== */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 30px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 100px;
}

.catalog {
  min-width: 0;
}

.menu-section {
  scroll-margin-top: 150px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin-top: 7px;
  font-size: clamp(32px, 3.7vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head > p {
  max-width: 300px;
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

.loading-note {
  grid-column: 1 / -1;
  padding: 38px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.combo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.snack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.section-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 13px 16px;
  border: 1px dashed rgba(196, 131, 66, 0.3);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.6);
  color: var(--muted);
  font-size: 11px;
}

.section-note span {
  color: var(--amber-deep);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 44px 0;
  color: var(--amber-deep);
  font-size: 18px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* ============================== Product cards ============================== */
.combo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-2);
  box-shadow: 0 12px 30px rgba(61, 42, 22, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.combo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.combo-art {
  position: relative;
  height: 205px;
  overflow: hidden;
}

.combo-art.soup {
  background: linear-gradient(138deg, #ffd9a9, #ffb36b);
}

.combo-art.egg {
  background: linear-gradient(138deg, #ffe8a8, #ffcf61);
}

.combo-art.duck {
  background: linear-gradient(138deg, #ecc7b2, #cb8a67);
}

.combo-art.cola {
  background: linear-gradient(138deg, #c8eaeb, #7cc8d2);
}

.art-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 146px;
  height: 146px;
  margin: -73px 0 0 -73px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.art-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 100px;
  line-height: 1;
  filter: drop-shadow(0 14px 18px rgba(75, 45, 18, 0.16));
  transform: translate(-50%, -50%) rotate(-4deg);
}

.art-side {
  position: absolute;
  top: 18px;
  right: 17px;
  font-size: 34px;
  line-height: 1;
  transform: rotate(12deg);
}

.combo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.combo-badge.orange {
  background: #402018;
  color: #ffd6ad;
}

.combo-badge.yellow {
  background: #4a3512;
  color: #ffe7aa;
}

.combo-badge.brown {
  background: #3a241b;
  color: #f1d1b9;
}

.combo-badge.teal {
  background: #15383c;
  color: #c7f0f0;
}

.combo-no {
  position: absolute;
  right: 15px;
  bottom: 10px;
  color: rgba(43, 30, 18, 0.36);
  font-family: "Bahnschrift", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.combo-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.combo-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.combo-sub {
  min-height: 34px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 25px;
  margin-top: 9px;
}

.tag {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f3ede3;
  color: #887b68;
  font-size: 9px;
  line-height: 1.25;
}

.combo-foot,
.snack-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.price {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.price .currency,
.snack-price .currency {
  margin-right: 1px;
  color: #d26c2c;
  font-family: "Bahnschrift", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.price .amount {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

.price .unit,
.snack-price .unit {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.add-btn {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 9px 17px rgba(17, 23, 34, 0.18);
  transition: transform 0.16s ease, background 0.16s ease;
}

.add-btn:hover {
  background: #2a3342;
  transform: scale(1.05);
}

.add-btn:active {
  transform: scale(0.94);
}

.stepper {
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f7f1e7;
}

.step-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 100%;
  color: #625748;
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
}

.step-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.step-btn.plus {
  background: var(--ink);
  color: var(--cream);
}

.step-num {
  min-width: 27px;
  color: var(--ink);
  font-family: "Bahnschrift", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.snack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  box-shadow: 0 10px 26px rgba(61, 42, 22, 0.035);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.snack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.snack-card.is-ice {
  border-color: rgba(42, 139, 153, 0.32);
}

.snack-photo-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9f4f5;
}

.snack-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.snack-card:hover .snack-photo-wrap img {
  transform: scale(1.045);
}

.snack-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(17, 23, 34, 0.82);
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.snack-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 14px 13px;
}

.snack-name {
  font-size: 17px;
  font-weight: 900;
}

.snack-desc {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snack-foot {
  padding-top: 11px;
}

.snack-price {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.snack-price .amount {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.snack-card .add-btn {
  width: 37px;
  height: 37px;
  font-size: 21px;
}

.snack-card .stepper {
  height: 36px;
}

.snack-card .step-btn {
  width: 32px;
  font-size: 18px;
}

.snack-card .step-num {
  min-width: 23px;
  font-size: 12px;
}

/* ============================== Cart aside ============================== */
.cart-aside {
  position: sticky;
  top: 140px;
}

.cart-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 170px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.cart-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 16px;
}

.cart-panel-head h3 {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
}

.cart-panel-head .eyebrow {
  font-size: 9px;
}

.clear-btn {
  padding: 6px 2px;
  color: var(--muted-2);
  font-size: 11px;
}

.clear-btn:hover {
  color: var(--orange);
}

.cart-items {
  overflow: auto;
  padding: 0 22px;
  overscroll-behavior: contain;
}

.cart-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #eee4d4;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 13px;
  background: #f5ead7;
  font-size: 28px;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-copy {
  min-width: 0;
}

.cart-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-family: "Bahnschrift", sans-serif;
  font-size: 10px;
}

.cart-line-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.cart-line-side .line-total {
  color: var(--ink);
  font-family: "Bahnschrift", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.cart-line .stepper {
  height: 30px;
}

.cart-line .step-btn {
  width: 28px;
  font-size: 16px;
}

.cart-line .step-num {
  min-width: 21px;
  font-size: 11px;
}

.cart-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 36px 22px 32px;
  color: var(--muted);
  text-align: center;
}

.cart-empty .empty-emoji {
  font-size: 48px;
  line-height: 1;
  filter: grayscale(0.15);
}

.cart-empty strong {
  font-size: 15px;
}

.cart-empty span {
  max-width: 210px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
}

.cart-panel-foot {
  padding: 14px 22px 20px;
  border-top: 1px dashed #dcd0bd;
  background: var(--paper-2);
}

.cart-subtotal {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cart-subtotal span {
  color: var(--muted);
  font-size: 10px;
}

.cart-subtotal strong {
  color: var(--ink);
  font-family: "Bahnschrift", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.cart-subtotal strong em {
  margin-right: 2px;
  color: #d26c2c;
  font-size: 14px;
  font-style: normal;
}

.checkout-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  transition: background 0.18s ease, transform 0.16s ease;
}

.checkout-btn:hover {
  background: #283140;
}

.checkout-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cart-perk {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 9px;
}

.cart-perk span {
  color: var(--amber-deep);
}

/* ============================== Footer ============================== */
.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 70px 0 20px;
  color: var(--muted-2);
  text-align: center;
}

.site-footer strong {
  color: #b7a890;
  font-size: 16px;
  letter-spacing: 0.27em;
}

.site-footer > span {
  color: #c7baa5;
  font-family: "Bahnschrift", sans-serif;
  font-size: 8px;
  letter-spacing: 0.22em;
}

.site-footer p {
  margin-top: 10px;
  color: #b3a58f;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.site-footer a {
  margin-top: 16px;
  color: #c7baa5;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.6;
}

.site-footer a:hover {
  opacity: 1;
}

.late-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--ink-2);
  color: var(--cream);
}

.late-moon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 198, 110, 0.12);
  color: var(--amber);
  font-size: 23px;
}

.late-banner div {
  display: grid;
  gap: 4px;
}

.late-banner strong {
  font-size: 14px;
  letter-spacing: 0.03em;
}

.late-banner span {
  color: rgba(255, 248, 235, 0.4);
  font-size: 10px;
}

/* ============================== Mobile bar ============================== */
.mobile-bar {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 9px 9px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 20px 50px rgba(17, 23, 34, 0.35);
  animation: barIn 0.3s ease both;
}

.mobile-bar-main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: inherit;
  text-align: left;
}

.mobile-bar .bag-icon {
  width: 27px;
  height: 25px;
  color: var(--amber);
}

.mobile-bar .bag-icon::before {
  top: -8px;
  left: 7px;
  width: 9px;
  height: 8px;
}

.mobile-bar .bag-icon b {
  position: absolute;
  top: -12px;
  right: -11px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: "Bahnschrift", sans-serif;
  font-size: 8px;
}

.mobile-bar-main > span:last-child {
  display: grid;
  gap: 3px;
}

.mobile-bar-main strong {
  font-family: "Bahnschrift", sans-serif;
  font-size: 21px;
  line-height: 1;
}

.mobile-bar-main small {
  color: rgba(255, 248, 235, 0.4);
  font-size: 9px;
}

.mobile-checkout {
  flex-shrink: 0;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 12px;
}

.mobile-bar.is-empty {
  opacity: 0.6;
}

/* ============================== Overlay / Drawer ============================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 12, 17, 0.62);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease both;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.22);
  animation: drawerIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 25px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 {
  margin-top: 7px;
  font-size: 25px;
  font-weight: 900;
}

.drawer-scroll {
  overflow: auto;
  flex: 1;
  padding: 0 25px calc(24px + env(safe-area-inset-bottom));
}

.drawer-scroll .cart-panel {
  max-height: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.drawer-scroll .cart-panel-head {
  display: none;
}

.drawer-scroll .cart-items {
  padding: 0;
}

.drawer-scroll .cart-line {
  padding: 16px 0;
}

.drawer-scroll .cart-panel-foot {
  margin-top: 8px;
  padding: 17px 0 0;
  background: transparent;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9dfd0;
  color: #5e564b;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  transition: background 0.18s ease;
}

.icon-btn:hover {
  background: #dfd2bf;
}

/* ============================== Modals ============================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  background: rgba(9, 12, 17, 0.66);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease both;
}

.modal-card {
  width: min(620px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  overscroll-behavior: contain;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 27px 28px 16px;
}

.modal-head h3 {
  margin-top: 7px;
  font-size: 28px;
  font-weight: 900;
}

.checkout-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.checkout-card .modal-head {
  flex-shrink: 0;
}

.checkout-card form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

.checkout-scroll {
  min-height: 0;
  overflow: auto;
  padding: 0 28px 4px;
  overscroll-behavior: contain;
}

.checkout-card .form-error {
  flex-shrink: 0;
  margin: 6px 28px 0;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 78px;
  padding: 13px;
  border: 1.5px solid transparent;
  border-radius: 15px;
  background: var(--paper-2);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.mode-card.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.mode-icon {
  flex-shrink: 0;
  font-size: 23px;
  line-height: 1.1;
}

.mode-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.mode-card strong {
  font-size: 12px;
  font-weight: 800;
}

.mode-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.mode-card.is-active small {
  color: rgba(255, 248, 235, 0.48);
}

.mode-check {
  display: none;
  margin-left: auto;
  color: var(--amber);
  font-size: 12px;
}

.mode-card.is-active .mode-check {
  display: block;
}

.checkout-sub {
  margin: 13px 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field > span,
.field-label {
  color: #6c6253;
  font-size: 11px;
  font-weight: 700;
}

.field > span em,
.field-label em {
  color: var(--muted-2);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.field input,
textarea {
  width: 100%;
  border: 1px solid #e4d8c7;
  border-radius: 11px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input {
  height: 43px;
  padding: 0 12px;
}

textarea {
  min-height: 72px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.55;
}

.field input::placeholder,
textarea::placeholder {
  color: #b7aa98;
}

.field input:focus,
textarea:focus {
  border-color: rgba(17, 23, 34, 0.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 198, 110, 0.16);
}

.field.has-error input {
  border-color: #c4553d;
}

.field-error {
  min-height: 12px;
  color: #b64a34;
  font-size: 9px;
  line-height: 1.3;
}

.field-full {
  margin-top: 0;
}

.pickup-info {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
  padding: 13px 14px;
  border-radius: 13px;
  background: #f3e8d8;
}

.pickup-pin {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 13px;
}

.pickup-info div {
  display: grid;
  gap: 3px;
}

.pickup-info strong {
  font-size: 12px;
}

.pickup-info span {
  color: var(--muted);
  font-size: 9px;
}

.quick-note-wrap {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-bottom: 16px;
}

.quick-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-notes button {
  padding: 7px 11px;
  border: 1px solid #e2d6c4;
  border-radius: 999px;
  background: var(--paper-2);
  color: #827562;
  font-size: 10px;
  transition: all 0.16s ease;
}

.quick-notes button:hover {
  border-color: #c9b89f;
}

.quick-notes button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--amber);
}

.char-count {
  justify-self: end;
  color: var(--muted-2);
  font-family: "Bahnschrift", sans-serif;
  font-size: 9px;
}

.checkout-summary {
  margin: 8px 0 14px;
  border-top: 1px dashed #dcd0bd;
  border-bottom: 1px dashed #dcd0bd;
}

.checkout-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 10px;
}

.checkout-summary-item:first-child {
  padding-top: 11px;
}

.checkout-summary-item:last-child {
  padding-bottom: 11px;
}

.checkout-summary-item strong {
  color: var(--ink);
  font-family: "Bahnschrift", sans-serif;
  font-size: 11px;
}

.payment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f3e8d8;
}

.pay-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e8f1e9;
  color: #4f7d5c;
  font-family: "Bahnschrift", sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.payment-row div {
  display: grid;
  flex: 1;
  gap: 2px;
}

.payment-row strong {
  font-size: 11px;
}

.payment-row span {
  color: var(--muted);
  font-size: 9px;
}

.pay-check {
  color: #4f7d5c;
  font-size: 14px;
}

.form-error {
  min-height: 17px;
  margin-top: 6px;
  color: #b64a34;
  font-size: 10px;
}

.checkout-foot {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 28px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.checkout-total {
  display: grid;
  gap: 3px;
}

.checkout-total span {
  color: var(--muted);
  font-size: 10px;
}

.checkout-total strong {
  font-family: "Bahnschrift", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.submit-btn {
  min-width: 170px;
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.fine-print {
  flex-shrink: 0;
  margin: 8px 28px 18px;
  color: var(--muted-2);
  font-size: 9px;
  text-align: right;
}

/* ============================== Success ============================== */
.success-card {
  position: relative;
  width: min(540px, 100%);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 34px 32px 28px;
  text-align: center;
}

.success-glow {
  position: absolute;
  top: -170px;
  left: 50%;
  width: 420px;
  height: 320px;
  margin-left: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 110, 0.26), transparent 70%);
  pointer-events: none;
}

.success-check {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 17px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.16);
  animation: checkPop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}

.success-card h3 {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 34px;
  font-weight: 900;
}

.success-card > .eyebrow {
  position: relative;
  z-index: 2;
}

.success-detail {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  text-align: left;
}

.success-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #dfd3c1;
}

.success-code-row div {
  display: grid;
  gap: 4px;
}

.success-code-row span {
  color: var(--muted-2);
  font-family: "Bahnschrift", sans-serif;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.success-code-row strong {
  font-family: "Bahnschrift", sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.success-code-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.success-kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 10px;
}

.success-kv strong {
  color: var(--ink);
  font-size: 10px;
  text-align: right;
}

.success-items {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0e6d7;
}

.success-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 11px;
  border-top: 1px dashed #dfd3c1;
  color: var(--muted);
  font-size: 10px;
}

.success-total strong {
  color: var(--ink);
  font-family: "Bahnschrift", sans-serif;
  font-size: 24px;
}

.success-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.success-offline {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9e6d8;
  color: #8c5133;
  font-size: 10px;
  line-height: 1.5;
}

.success-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.success-actions > * {
  flex: 1;
}

.success-actions .outline-btn {
  border-color: #d4c5b0;
  background: transparent;
  color: var(--ink);
}

/* ============================== Orders ============================== */
.orders-card {
  width: min(600px, 100%);
  padding-bottom: 24px;
}

#ordersBody {
  padding: 0 28px;
}

.orders-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 42px 20px 52px;
  color: var(--muted);
  text-align: center;
}

.orders-empty span {
  font-size: 48px;
  line-height: 1;
}

.orders-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.orders-empty p {
  max-width: 240px;
  font-size: 10px;
  line-height: 1.6;
}

.order-history-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}

.order-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px 11px;
  border-bottom: 1px solid #f0e6d7;
}

.order-history-head div {
  display: grid;
  gap: 4px;
}

.order-history-head strong {
  font-family: "Bahnschrift", sans-serif;
  font-size: 13px;
}

.order-history-head span {
  color: var(--muted-2);
  font-size: 9px;
}

.status-pill {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1e5d1;
  color: #9a6b36;
  font-size: 8px;
  font-weight: 800;
}

.order-history-items {
  padding: 10px 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.order-history-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px 13px;
  border-top: 1px dashed #e2d6c5;
}

.order-history-foot strong {
  font-family: "Bahnschrift", sans-serif;
  font-size: 16px;
}

.reorder-btn {
  padding: 8px 13px;
  border: 1px solid #d5c6b1;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.reorder-btn:hover {
  background: #f0e8db;
}

/* ============================== Toast ============================== */
.toast {
  position: fixed;
  bottom: 150px;
  left: 50%;
  z-index: 220;
  max-width: min(360px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 999;
  padding: 15px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

/* ============================== Animations ============================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes barIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bowlFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(-13px) rotate(6deg); }
}

@keyframes steam {
  0% { opacity: 0; transform: translateY(16px) scaleY(0.7); }
  30% { opacity: 0.55; }
  75% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-44px) scaleY(1.15); }
}

@keyframes checkPop {
  from { opacity: 0; transform: scale(0.55) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

/* ============================== Responsive ============================== */
@media (max-width: 1100px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
  }

  .snack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    padding: 44px 40px 32px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .topbar-inner {
    width: calc(100% - 32px);
    gap: 12px;
  }

  .store-state {
    margin-left: 0;
  }

  .store-state .state-hours {
    display: none;
  }

  .page-grid {
    display: block;
    width: calc(100% - 32px);
    padding-top: 28px;
    padding-bottom: 120px;
  }

  .cart-aside {
    display: none;
  }

  .mobile-bar {
    display: flex;
  }

  .hero {
    width: calc(100% - 32px);
    border-radius: 26px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 38px 30px 28px;
  }

  .hero-art {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 8vw, 56px);
  }

  .hero-info {
    grid-column: auto;
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .hero-stats {
    gap: 22px;
  }

  .category-bar {
    top: var(--header-h);
    margin-top: 18px;
  }

  .category-inner {
    width: calc(100% - 32px);
  }

  .category-tip {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-head > p {
    max-width: 460px;
    padding: 0;
    text-align: left;
  }

  .snack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .success-card {
    width: min(540px, 100%);
  }
}

@media (max-width: 680px) {
  .topbar .text-btn,
  .bag-label {
    display: none;
  }

  .topbar-inner {
    gap: 8px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 18px;
  }

  .bag-btn {
    width: 43px;
    justify-content: center;
    padding: 0;
  }

  .bag-badge {
    display: none;
  }

  .store-state {
    padding: 7px 9px;
    font-size: 10px;
  }

  .hero {
    width: calc(100% - 20px);
    margin-top: 12px;
    border-radius: 22px;
  }

  .hero-inner {
    padding: 30px 22px 20px;
  }

  .hero-copy h1 {
    font-size: 44px;
    letter-spacing: -0.06em;
  }

  .hero-lead {
    font-size: 12px;
    line-height: 1.7;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 20px;
  }

  .hero-actions .primary-btn,
  .hero-actions .outline-btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 12px;
  }

  .hero-stats {
    gap: 18px;
    margin-top: 26px;
    padding-top: 17px;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .hero-stats span {
    font-size: 9px;
  }

  .hero-info {
    gap: 8px;
  }

  .info-card {
    padding: 12px;
  }

  .info-card p {
    font-size: 10px;
  }

  .category-inner {
    width: calc(100% - 20px);
    gap: 4px;
  }

  .category-tab {
    height: 42px;
    padding: 0 14px;
    font-size: 12px;
  }

  .category-tab span {
    font-size: 9px;
  }

  .page-grid {
    width: calc(100% - 20px);
    padding-top: 24px;
    padding-bottom: 110px;
  }

  .section-head h2 {
    font-size: 38px;
  }

  .combo-grid {
    gap: 10px;
  }

  .combo-art {
    height: 150px;
  }

  .art-ring {
    width: 104px;
    height: 104px;
    margin: -52px 0 0 -52px;
  }

  .art-emoji {
    font-size: 72px;
  }

  .art-side {
    top: 12px;
    right: 12px;
    font-size: 25px;
  }

  .combo-badge {
    top: 10px;
    left: 10px;
    padding: 5px 7px;
    font-size: 8px;
  }

  .combo-no {
    right: 10px;
    bottom: 8px;
    font-size: 15px;
  }

  .combo-body {
    padding: 12px 12px 13px;
  }

  .combo-name {
    font-size: 16px;
  }

  .combo-sub {
    min-height: 32px;
    font-size: 10px;
  }

  .tag-row {
    gap: 3px;
    margin-top: 7px;
  }

  .tag {
    padding: 3px 5px;
    font-size: 8px;
  }

  .price .amount {
    font-size: 24px;
  }

  .add-btn {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .stepper {
    height: 36px;
  }

  .step-btn {
    width: 32px;
    font-size: 18px;
  }

  .step-num {
    min-width: 23px;
    font-size: 11px;
  }

  .snack-grid {
    gap: 10px;
  }

  .snack-body {
    padding: 11px 11px 12px;
  }

  .snack-name {
    font-size: 14px;
  }

  .snack-desc {
    font-size: 9px;
  }

  .snack-price .amount {
    font-size: 20px;
  }

  .snack-card .add-btn {
    width: 34px;
    height: 34px;
  }

  .mobile-bar {
    min-height: 62px;
    padding: 8px 8px 8px 13px;
    border-radius: 18px;
  }

  .mobile-checkout {
    min-height: 46px;
    padding: 0 14px;
    font-size: 11px;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
  }

  .modal-head {
    padding: 22px 20px 12px;
  }

  .modal-head h3 {
    font-size: 25px;
  }

  .checkout-card form {
    padding: 0;
  }

  .checkout-scroll {
    padding: 0 20px 4px;
  }

  .checkout-card .form-error {
    margin: 6px 20px 0;
  }

  .checkout-foot {
    padding: 12px 20px 0;
  }

  .fine-print {
    margin: 8px 20px calc(16px + env(safe-area-inset-bottom));
  }

  .mode-switch {
    gap: 7px;
  }

  .mode-card {
    min-height: 80px;
    padding: 10px;
  }

  .mode-icon {
    font-size: 20px;
  }

  .mode-card small {
    font-size: 8px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-foot {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .checkout-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .submit-btn {
    width: 100%;
  }

  .fine-print {
    text-align: center;
  }

  .success-card {
    padding: 28px 20px calc(22px + env(safe-area-inset-bottom));
  }

  .success-card h3 {
    font-size: 29px;
  }

  .success-detail {
    padding: 15px;
  }

  .success-code-row strong {
    font-size: 30px;
  }

  .success-actions {
    flex-direction: column-reverse;
  }

  .orders-card {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  #ordersBody {
    padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------- Auth gate ---------- */
body.is-auth-locked { overflow: hidden; }

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 198, 110, 0.2), transparent 32%),
    radial-gradient(circle at 92% 82%, rgba(255, 140, 80, 0.12), transparent 30%),
    #111722;
}
.auth-gate[hidden] { display: none; }

.auth-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: stretch;
}

.auth-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 8px;
  color: var(--cream);
}
.auth-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--amber);
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(255, 198, 110, 0.18);
}
.auth-brand strong { display: block; font-size: 22px; letter-spacing: 0.02em; }
.auth-brand small { display: block; margin-top: 4px; color: rgba(255, 248, 235, 0.45); font: 9px/1.4 Bahnschrift, sans-serif; letter-spacing: 0.16em; }

.auth-card {
  padding: 34px;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.36);
}
.auth-kicker { color: var(--amber-deep); font: 9px/1.4 Bahnschrift, sans-serif; letter-spacing: 0.18em; font-weight: 700; }
.auth-card h2 { margin: 8px 0 8px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.03em; }
.auth-sub { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 20px; border-radius: 12px; background: #eee4d4; }
.auth-tab { padding: 10px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-tab.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 4px 12px rgba(59, 42, 22, 0.08); }
.auth-pane[hidden] { display: none; }
.auth-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.auth-field span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.auth-field input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fffdf8; color: var(--ink); font: inherit; font-size: 13px; outline: none; }
.auth-field input:focus { border-color: var(--amber-deep); box-shadow: 0 0 0 3px rgba(255, 198, 110, 0.18); }
.auth-code-row { display: grid; grid-template-columns: 1fr 128px; gap: 10px; align-items: end; }
.auth-code-btn { height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; background: #f3e8d8; color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.auth-code-btn:disabled { opacity: 0.5; cursor: default; }
.auth-demo { margin: 0 0 12px; padding: 10px 12px; border: 1px dashed #e5b66e; border-radius: 9px; background: #fff5e3; color: #8a5d22; font-size: 10px; line-height: 1.7; }
.auth-demo strong { font: 18px/1 Bahnschrift, sans-serif; letter-spacing: 0.12em; }
.auth-error { min-height: 17px; margin: 0 0 8px; color: #b64a34; font-size: 10px; line-height: 1.5; }
.auth-submit { width: 100%; justify-content: center; }
.auth-note { margin: 4px 0 16px; color: var(--muted-2); font-size: 10px; line-height: 1.7; text-align: center; }
.wechat-login { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: 12px; background: #07c160; color: #fff; text-align: left; cursor: pointer; }
.wechat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #07c160; font-size: 17px; font-weight: 900; }
.wechat-login strong { display: block; font-size: 14px; }
.wechat-login small { display: block; margin-top: 3px; color: rgba(255,255,255,.75); font-size: 10px; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted-2); font-size: 9px; }

.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255,248,235,.14); border-radius: 999px; background: rgba(255,255,255,.04); color: rgba(255,248,235,.78); font: inherit; font-size: 10px; cursor: pointer; }
.user-chip[hidden] { display: none; }
.user-dot { width: 6px; height: 6px; border-radius: 50%; background: #7ad18b; box-shadow: 0 0 0 3px rgba(122,209,139,.14); }
.required-mark { color: #b64a34; font-style: normal; }
.phone-auth-hint { display: block; margin-top: 4px; color: #4f7d5c; font-size: 9px; }

@media (max-width: 760px) {
  .auth-gate { padding: 14px; align-items: flex-start; }
  .auth-shell { grid-template-columns: 1fr; gap: 14px; }
  .auth-brand { padding: 8px 4px 0; }
  .auth-brand strong { font-size: 18px; }
  .auth-mark { width: 44px; height: 44px; border-radius: 13px; font-size: 22px; }
  .auth-card { padding: 24px 20px; border-radius: 18px; }
  .auth-card h2 { font-size: 28px; }
  .auth-code-row { grid-template-columns: 1fr 112px; }
  .auth-foot { display: block; line-height: 1.8; }
  .user-chip { display: none !important; }
}

.field input.is-verified { background: #f2f8f3; color: #4f7d5c; }


/* ---------- First-order pricing / countdowns ---------- */
.first-order-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 198, 110, .36);
  border-radius: 8px;
  background: rgba(255, 198, 110, .1);
  color: #ffc66e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.first-order-banner::before { content: '✦'; }
.first-order-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #ffc66e;
  color: #111722;
  font: 8px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif;
  vertical-align: middle;
}
.old-price { margin-left: 5px; color: var(--muted-2); font-size: 10px; font-weight: 400; text-decoration: line-through; }
.snack-flag { background: #ffc66e; color: #111722; }

.prep-notice {
  margin: 8px 0 0;
  padding: 9px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.prep-notice strong { color: var(--ink); }
.prep-notice.is-ice { border-color: #e3b169; background: #fff7e9; color: #8a5d22; }
.prep-notice small { display: block; margin-top: 3px; color: #a17a42; font-size: 9px; }

.success-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid #efd8b5;
  border-radius: 10px;
  background: #fff7e9;
}
.success-countdown span { display: block; color: var(--muted); font-size: 10px; }
.success-countdown strong { display: block; margin-top: 2px; color: var(--ink); font: 30px/1 Bahnschrift, sans-serif; letter-spacing: .04em; }
.success-countdown small { max-width: 150px; color: #a17a42; font-size: 9px; line-height: 1.6; text-align: right; }

.order-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}
.order-countdown strong { color: var(--ink); font: 16px/1 Bahnschrift, sans-serif; letter-spacing: .04em; }
.order-countdown.is-done strong { color: #b64a34; font-size: 11px; }
.order-ice-note { margin-top: 4px; color: #a17a42; font-size: 9px; line-height: 1.5; }

.pay-notice{display:flex;align-items:center;gap:10px;margin:12px 0 0;padding:11px 13px;border:1px solid #eed7b2;background:#fff8eb;border-radius:13px}
.pay-notice-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#111722;color:#ffc266;font-family:Bahnschrift,sans-serif;font-size:15px;font-weight:800}
.pay-notice strong{display:block;font-size:13px;color:#111722;letter-spacing:.02em}
.pay-notice span:not(.pay-notice-icon){display:block;margin-top:3px;color:#8e8374;font-size:11px;line-height:1.45}

.pay-notice{align-items:center}
.pay-qr-link{flex:0 0 110px;display:block;border-radius:10px;overflow:hidden;border:1px solid #ead3ad;background:#fff}
.pay-qr{display:block;width:110px;height:110px;object-fit:cover}

@supports (height: 100dvh) {
  .modal-card { max-height: calc(100dvh - 20px); }
  .checkout-card { max-height: calc(100dvh - 12px); }
  .success-card { max-height: calc(100dvh - 12px); }
}

.success-card::-webkit-scrollbar{width:5px}
.success-card::-webkit-scrollbar-thumb{background:#d9c9b4;border-radius:99px}

.cart-discount{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:2px 0 5px;color:#4f7d5c;font-size:10px}
.cart-discount strong{font-family:Bahnschrift,sans-serif;font-size:13px}
.checkout-discount span,.checkout-discount strong{color:#4f7d5c}
.success-discount{display:flex;align-items:baseline;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px dashed #dfd3c1;color:#4f7d5c;font-size:10px}
.success-discount strong{font-family:Bahnschrift,sans-serif;font-size:13px}

.delivery-global-notice{position:relative;z-index:5;display:flex;align-items:flex-start;gap:10px;max-width:1180px;margin:14px auto 0;padding:11px 16px;border:1px solid #eed7b2;border-radius:14px;background:#fff8eb;color:#6f604e;font-size:11px;line-height:1.55}
.delivery-global-notice strong{flex:0 0 auto;color:#b64a34;font-size:11px}
.delivery-global-notice span{min-width:0}
.auth-delivery{margin:12px 0 0;padding:9px 10px;border-radius:9px;background:#fff8eb;color:#8e8374;font-size:9px;line-height:1.55;text-align:left}
.status-pill.is-completed{background:#e8f1e9;color:#4f7d5c}
.order-history-card.is-completed{opacity:.78}
.completed-group{margin-top:18px;border:1px solid rgba(91,68,40,.12);border-radius:14px;background:#fffaf2;overflow:hidden}
.completed-group summary{cursor:pointer;padding:14px 16px;color:#6c6253;font-size:11px;font-weight:800;list-style:none}
.completed-group summary::-webkit-details-marker{display:none}
.completed-group summary span{float:right;color:#a17a42;font-weight:400;font-size:10px}
.completed-list{padding:0 14px 14px}

.delivery-global-notice b{color:#b64a34}
.auth-delivery b{color:#b64a34}

.business-status{position:relative;z-index:5;display:flex;align-items:center;gap:8px;max-width:1180px;margin:8px auto 0;padding:8px 16px;border-radius:12px;background:#eaf2e9;color:#3f6b4b;font-size:10px;line-height:1.4}
.business-status .status-dot{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#4f7d5c;box-shadow:0 0 0 3px rgba(79,125,92,.12)}
.business-status.is-closed{background:#f7e4dc;color:#9a4c36}
.business-status.is-closed .status-dot{background:#b64a34;box-shadow:0 0 0 3px rgba(182,74,52,.12)}
.prep-notice.is-closed{color:#9a4c36;border-color:#efc8ba;background:#fdf0eb}
.prep-notice.is-closed small{display:none}

.flavor-card{max-width:520px;padding:24px 24px 28px}
.flavor-sub{margin:4px 0 16px;color:var(--muted);font-size:12px;line-height:1.6}
.flavor-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.flavor-choice{border:1px solid rgba(91,68,40,.16);border-radius:12px;background:#fffaf2;color:var(--ink);padding:13px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.flavor-choice:hover{border-color:var(--orange);background:#fff1dc;transform:translateY(-1px)}
.flavor-add{position:relative}
.flavor-count{position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;border-radius:8px;background:var(--orange);color:#2b2118;font-size:9px;line-height:16px;font-weight:900;text-align:center}
@media(max-width:640px){.flavor-card{padding:20px 18px 22px}.flavor-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

.maintenance-screen{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(18,15,12,.78);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.maintenance-screen[hidden]{display:none!important}
.maintenance-card{width:min(420px,100%);padding:34px 30px 30px;border-radius:24px;background:#fffaf0;border:1px solid rgba(255,255,255,.55);box-shadow:0 24px 80px rgba(0,0,0,.28);text-align:center}
.maintenance-icon{display:block;font-size:40px;line-height:1;margin-bottom:14px}
.maintenance-card .eyebrow{color:#b64a34;font-size:9px;letter-spacing:.18em}
.maintenance-card h1{margin:9px 0 10px;color:#2b2118;font-size:21px;line-height:1.45;letter-spacing:-.03em}
.maintenance-card p{margin:0 0 20px;color:#8e8374;font-size:11px;line-height:1.65}
.maintenance-card .primary-btn{width:100%}
body.is-maintenance{overflow:hidden}
@media(max-width:480px){.maintenance-card{padding:28px 20px 24px}.maintenance-card h1{font-size:18px}}
