:root {
  --cream: #f3ebe3;
  --cream-2: #efe4d8;
  --brown: #7a4a3c;
  --brown-deep: #5c342a;
  --accent: #b0705c;
  --accent-hover: #9c5f4d;
  --ink: #4a322a;
  --muted: #8d7368;
  --card: #fffaf5;
  --line: #e4d5c8;
  --white: #fffdfb;
  --shadow: 0 18px 50px rgba(92, 52, 42, 0.12);
  --social-btn-height: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  min-height: 100vh;
  padding-bottom: 88px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.wrap { width: min(1024px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 235, 227, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
}
.menu-toggle { display: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brown); }
.brand img { width: 44px; height: 44px; }
.brand-word { font-size: 22px; letter-spacing: 0.04em; }
.brand-kicker { display: block; font-size: 10px; letter-spacing: 0.18em; margin-bottom: -4px; }
.main-nav { display: flex; gap: 8px; }
.nav-pill {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}
.nav-pill.is-active { background: var(--brown); color: white; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.account-dropdown { position: relative; }

.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-caret {
  font-size: 12px;
  line-height: 1;
  opacity: 0.72;
  transition: transform 0.2s ease;
}

.account-menu-trigger[aria-expanded="true"] .account-caret {
  transform: rotate(180deg);
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 188px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 40;
}

.account-dropdown-menu[hidden] { display: none; }

.account-dropdown-menu a,
.account-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.account-dropdown-menu a:hover,
.account-dropdown-menu button:hover {
  background: var(--cream-2);
}

.account-dropdown-menu form { margin: 0; }
.avatar-g {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brown); color: white; display: grid; place-items: center; font-size: 12px;
}
.cart-count {
  min-width: 18px; height: 18px; border-radius: 99px;
  background: white; color: var(--brown); font-size: 11px;
  display: inline-grid; place-items: center; margin-left: 4px; font-weight: 700;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn:disabled, .add-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-order { background: var(--accent); color: white; }
.btn-ghost { background: var(--white); color: var(--brown); border: 1px solid var(--line); }
.btn-muted { background: #efe6dc; color: var(--ink); }
.btn-block { width: 100%; }
.icon-btn {
  width: 32px; height: 32px; border: 0; background: var(--cream-2);
  border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; color: var(--brown);
}
.text-link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }

.kiosk-app {
  position: relative;
  min-height: calc(100vh - 86px);
  padding: 24px 0 112px;
}
.kiosk-location {
  display: none;
  margin-bottom: 16px;
}
.kiosk-location a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(92, 52, 42, 0.06);
}
.kiosk-location span { color: var(--accent); }
.kiosk-location small { color: var(--muted); }
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 22px;
  color: var(--muted);
  font-weight: 600;
}
.crumbs strong { color: var(--ink); }
.category-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.category-tile {
  min-height: 136px;
  background: linear-gradient(180deg, #fffdf8 0%, #f4dfc8 100%);
  border: 1px solid rgba(176, 112, 92, 0.2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px 10px;
  text-align: center;
  box-shadow: 0 14px 28px rgba(92, 52, 42, 0.08);
}
.category-tile.is-active {
  border-color: var(--accent);
  box-shadow:
    inset 0px 0 0 var(--accent),
    0 14px 28px rgba(92, 52, 42, 0.08);
}
.category-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff8d8;
  color: var(--brown);
  font-size: 28px;
}
.drink-list {
  display: grid;
  gap: 16px;
}
.drink-row {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid rgba(228, 213, 200, 0.7);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(92, 52, 42, 0.07);
}
.drink-image {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #f5efe8;
  overflow: hidden;
}
.drink-image img { width: 100%; height: 100%; object-fit: cover; }
.drink-info { min-width: 0; }
.drink-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--ink);
  font-weight: 600;
}
.drink-info p {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
}
.price-pill.muted { background: #d9cbc0; color: var(--brown); }
.add-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(176, 112, 92, 0.35);
}
.robot-float {
  position: fixed;
  right: max(24px, calc((100vw - 1024px) / 2 + 24px));
  bottom: 112px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(176, 112, 92, 0.38);
  z-index: 25;
}
.cart-float-icon {
  width: 28px;
  height: 28px;
}
.cart-float-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brown-deep);
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(92, 52, 42, 0.28);
}
.cart-float-count:empty,
.cart-float-count[data-empty="1"] {
  display: none;
}
.kiosk-nav {
  display: none;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  font-weight: 700;
}
.mobile-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1024px) / 2 + 24px));
  background: rgba(255, 253, 251, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(92, 52, 42, 0.08);
}
.mobile-bottom-bar strong {
  color: var(--accent);
  min-width: 96px;
}
.mobile-bottom-bar .btn {
  margin-left: auto;
  min-width: 156px;
}
.mobile-cart-button {
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background: white;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(92, 52, 42, 0.12);
}
.mobile-cart-button .cart-bar-icon {
  width: 26px;
  height: 26px;
  color: var(--brown);
}
.mobile-cart-button b {
  position: absolute;
  right: -4px;
  top: -6px;
  min-width: 24px;
  height: 24px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.mobile-cart-button b[data-empty="1"] {
  display: none;
}
.account-drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(74, 50, 42, 0.35);
}
.account-drawer[hidden] { display: none; }
.account-panel {
  width: min(360px, 82vw);
  min-height: 100%;
  background: #f8f8f8;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.account-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 32px 18px;
  background: linear-gradient(180deg, #d97a55 0%, #c86849 100%);
  color: white;
}
.account-head p { margin: 4px 0 0; font-size: 13px; opacity: 0.86; }
.account-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 2px solid white;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}
.account-links {
  display: grid;
  gap: 10px;
  padding: 18px 14px;
}
.account-links a,
.account-links button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(92, 52, 42, 0.06);
}
.account-links a:after { content: "›"; color: var(--muted); }
.account-links form { margin: 0; }
.account-panel small {
  margin: auto 18px 24px;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 0 24px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.hero h1, .page-title, .locked h1, .coming-soon h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  margin: 8px 0 16px;
  color: var(--brown);
  letter-spacing: -0.03em;
}
.lede { color: var(--muted); max-width: 420px; line-height: 1.5; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 320px; object-fit: cover; border-radius: 28px; }
.rating-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(255, 250, 245, 0.94);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex; gap: 12px; align-items: center;
}
.star {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: white; display: grid; place-items: center; font-size: 20px;
}
.rating-card p { margin: 0; color: var(--muted); font-size: 13px; }
.rating-card strong { color: var(--brown); }

.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.cat {
  padding: 8px 16px; border-radius: 999px; background: #eadfd4; color: var(--muted); font-weight: 600;
}
.cat.is-active { background: var(--brown); color: white; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 64px;
}
.product-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(92, 52, 42, 0.06);
}
.product-photo { position: relative; height: 192px; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--brown); color: white; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.badge-cat { left: auto; right: 12px; background: rgba(255,255,255,0.9); color: var(--brown); }
.product-body { padding: 16px; }
.product-title { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.product-title h3 { margin: 0; font-size: 15px; color: var(--brown); letter-spacing: 0.04em; }
.product-title strong { color: var(--accent); }
.product-body p { color: var(--muted); font-size: 14px; min-height: 45px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.footer-name { font-weight: 800; color: var(--brown); }
.footer-copy, .footer-nav { color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; gap: 18px; }

.page-narrow { padding: 40px 0 80px; max-width: 672px; }
.page-narrow .wrap, .page-narrow { width: min(672px, calc(100% - 48px)); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 32px; }
.stat-card {
  background: var(--card); border-radius: 16px; padding: 16px; text-align: center;
}
.stat-card small { display: block; color: var(--muted); font-size: 12px; }
.contact-form, .contact-form label { display: grid; gap: 8px; }
.contact-form { gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 0; background: #efe6dc; border-radius: 12px; padding: 12px 14px;
}
.field-label { font-weight: 600; margin-bottom: 8px; }
.issue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.issue { background: #efe6dc; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.issue:has(input:checked) { background: var(--brown); color: white; }
.issue input { display: none; }

.order-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.order-row, .loc-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border-radius: 16px; padding: 16px 20px;
}
.order-ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--cream-2);
  display: grid; place-items: center;
}
.order-row p { margin: 0; color: var(--muted); font-size: 13px; }
.status {
  margin-left: auto; background: #efe6dc; color: var(--brown);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.pickup-banner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border-radius: 16px; padding: 16px 20px; margin: 16px 0 24px;
}
.pickup-banner p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.kiosk-notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7ea;
  border: 1px solid #e8cfa8;
  color: var(--brown);
}
.kiosk-notice h3 { margin: 0 0 6px; font-size: 15px; }
.kiosk-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.kiosk-notice ul { margin: 8px 0 0 18px; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card-totals { background: var(--card); padding: 16px; border-radius: 16px; margin: 16px 0 24px; }
.order-id { font-weight: 800; color: var(--brown); letter-spacing: 0.08em; }

.locked { text-align: center; padding: 96px 0; }
.lock-art { font-size: 48px; }
.coming-soon h1 { font-size: clamp(36px, 8vw, 72px); }

.drawer, .modal {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(74, 50, 42, 0.35);
  display: grid;
}
.drawer { justify-items: end; }
.drawer[hidden], .modal[hidden], [data-forgot][hidden] { display: none; }
#auth-form label.code-field[hidden],
#auth-form label.password-field[hidden],
#auth-form label.reset-code-field[hidden],
#auth-form label.new-password-field[hidden] { display: none !important; }
#auth-form input[readonly] { opacity: 0.72; }
.drawer-panel {
  width: min(384px, 100%);
  height: 100%;
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer-head, .modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px;
}
.drawer-head h2, .modal-head h2 { margin: 0; color: var(--brown); letter-spacing: 0.04em; }
.drawer-body { flex: 1; overflow: auto; padding: 0 24px 24px; }
.drawer-foot { padding: 24px; border-top: 1px solid var(--line); }
.empty-cup { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty-title { font-size: 20px; color: var(--ink); font-weight: 700; }
.empty-cup-art { font-size: 48px; margin-bottom: 12px; }
.cart-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.cart-row p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: var(--cream-2);
  color: var(--brown);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.qty button:disabled:not(.is-busy) { opacity: 0.45; cursor: not-allowed; }
.qty button.is-busy {
  color: transparent;
  pointer-events: none;
}
.qty button.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(122, 74, 60, 0.22);
  border-top-color: var(--brown);
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}
.totals { display: grid; gap: 8px; margin-bottom: 16px; }
.totals > div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .total { color: var(--ink); font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; }

.modal { place-items: center; padding: 24px; }
.modal-card {
  width: min(384px, 100%);
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow);
}
.auth-card h2 { font-family: "Archivo Black", sans-serif; font-size: 28px; margin: 0; }
.modal-head p { margin: 4px 0 0; color: var(--muted); }
.segment {
  display: grid; grid-template-columns: 1fr 1fr; background: #efe6dc;
  border-radius: 999px; padding: 4px; margin: 20px 0;
}
.segment button { border: 0; background: transparent; border-radius: 999px; padding: 8px; cursor: pointer; color: var(--muted); }
.segment button.is-active { background: var(--accent); color: white; }
#auth-form { display: grid; gap: 14px; }
#auth-form label, #customize-form fieldset { display: grid; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#auth-form input {
  border: 0; background: #efe6dc; border-radius: 12px; padding: 12px 14px; text-transform: none; font-weight: 500; color: var(--ink);
}
.auth-row { text-align: right; }
.or-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or-line:before, .or-line:after { content: ""; height: 1px; background: var(--line); }
.social-login {
  display: grid;
  gap: 10px;
  width: 100%;
}
.social-google-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.social-btn-google { background: var(--white); }
.social-ico-google {
  background: var(--white);
  padding: 0;
}
.social-ico-google svg {
  display: block;
}
.social-btn {
  width: 100%;
  height: var(--social-btn-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  box-sizing: border-box;
}
.social-btn-apple { background: #111; color: #fff; border-color: #111; }
.social-ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  background: #efe6dc;
  flex: 0 0 20px;
}
.social-btn-apple .social-ico { background: rgba(255,255,255,0.12); }
.form-error { color: #b42318; margin: 0; }

.customize-card { width: min(448px, 100%); }
.customize-head { display: grid; grid-template-columns: 80px 1fr; gap: 16px; margin-bottom: 8px; }
.customize-head img { width: 80px; height: 80px; object-fit: cover; border-radius: 16px; }
.customize-head h3 { margin: 0; color: var(--brown); }
.customize-head p { color: var(--muted); font-size: 14px; }
.close-abs { position: absolute; right: 16px; top: 16px; }
#customize-form { display: grid; gap: 8px; }
#customize-form fieldset { border: 0; padding: 0; margin: 0; }
.choice-row, .chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-row.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.choice, .chip {
  background: #efe6dc; border-radius: 999px; padding: 8px 12px; cursor: pointer;
  text-transform: none; font-weight: 600; color: var(--ink); letter-spacing: 0; font-size: 14px;
  display: grid; place-items: center;
}
.choice:has(input:checked), .chip:has(input:checked) { background: var(--brown); color: white; }
.choice input, .chip input { display: none; }
.choice small { display: block; font-size: 11px; opacity: 0.8; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.flash-wrap { width: min(1024px, calc(100% - 48px)); margin: 16px auto 0; }
.flash { background: #efe6dc; color: var(--brown); padding: 12px 16px; border-radius: 12px; }
.logout-form { margin-top: 24px; }

@media (max-width: 900px) {
  .hero, .product-grid, .stat-row, .issue-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .header-inner { min-height: 72px; }
  .menu-toggle { display: grid; }
  .brand-word { display: none; }
  .header-actions .account-dropdown { display: none; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .kiosk-app { min-height: calc(100vh - 72px); }
  .kiosk-location { display: block; }
  .category-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 18px 4px;
    margin: 0 -2px 12px;
    scroll-snap-type: x proximity;
  }
  .category-tile {
    flex: 0 0 112px;
    min-height: 128px;
    scroll-snap-align: start;
  }
  .drink-row,
  .drink-row-skeleton {
    grid-template-columns: 92px 1fr 40px;
    gap: 14px;
    padding: 14px;
  }
  .drink-image,
  .drink-row-skeleton .sk-thumb { width: 84px; }
  .drink-info h3 { font-size: 17px; }
  .kiosk-nav { display: flex; }
  .site-footer { display: none; }
  .drawer {
    align-items: end;
    justify-items: stretch;
  }
  .drawer-panel {
    width: 100%;
    max-height: 66vh;
    height: auto;
    border-radius: 18px 18px 0 0;
  }
  .drawer-head { padding: 18px 20px; }
  .drawer-body { max-height: 42vh; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 560px); }
  body { background: #fbf8f5; }
  .site-header {
    background: rgba(255,253,251,0.94);
    border-bottom-color: #eee7e1;
  }
  .header-actions .btn-order { display: none; }
  .kiosk-app { padding-top: 14px; }
  .crumbs { font-size: 14px; margin-bottom: 18px; }
  .drink-list,
  .drink-list-skeleton { gap: 12px; }
  .drink-row,
  .drink-row-skeleton {
    grid-template-columns: 84px minmax(0, 1fr) 36px;
    min-height: 118px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(92, 52, 42, 0.08);
  }
  .drink-image,
  .drink-row-skeleton .sk-thumb { width: 72px; }
  .drink-row-skeleton .sk-btn { width: 34px; height: 34px; }
  .drink-row-skeleton .sk-subtitle { display: none; }
  .drink-info h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .drink-info p { display: none; }
  .price-pill { min-height: 26px; padding: 4px 12px; font-size: 13px; }
  .add-btn {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
  .robot-float {
    right: 28px;
    bottom: 96px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
  .mobile-bottom-bar {
    min-height: 72px;
    padding: 10px 16px;
  }
  .mobile-bottom-bar strong { min-width: 86px; font-size: 14px; }
  .mobile-bottom-bar .btn {
    min-width: 116px;
    padding-inline: 16px;
  }
  .mobile-cart-button {
    width: 52px;
    height: 52px;
  }
  .cart-row {
    grid-template-columns: 56px 1fr auto;
  }
  .cart-row img {
    width: 56px;
    height: 56px;
  }
  .modal { align-items: end; padding: 0; }
  .modal-card {
    width: 100%;
    border-radius: 18px 18px 0 0;
  }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Portal loader */
.portal-loader {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
body.is-loading { overflow: hidden; }

.portal-loader-card {
  text-align: center;
  animation: loader-float 2.4s ease-in-out infinite;
}

.portal-loader-cup {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
}

.portal-loader-mug {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 54px;
  height: 42px;
  transform: translateX(-50%);
  border: 4px solid var(--brown);
  border-top: none;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #d4a574 0%, #8b5a45 55%, #7a4a3c 100%);
  box-shadow: inset 0 -8px 14px rgba(92, 52, 42, 0.25);
}

.portal-loader-mug::before {
  content: "";
  position: absolute;
  inset: 6px 8px auto;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.35);
}

.portal-loader-mug::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 10px;
  width: 14px;
  height: 20px;
  border: 4px solid var(--brown);
  border-left: none;
  border-radius: 0 12px 12px 0;
}

.portal-loader-saucer {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 72px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf5 0%, #e8d5c8 100%);
  border: 2px solid rgba(122, 74, 60, 0.18);
  box-shadow: 0 8px 18px rgba(92, 52, 42, 0.12);
}

.portal-loader-steam {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.portal-loader-steam span {
  display: block;
  width: 10px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(176, 112, 92, 0), rgba(176, 112, 92, 0.55));
  animation: steam-rise 1.7s ease-in-out infinite;
}

.portal-loader-steam span:nth-child(2) { animation-delay: 0.35s; }
.portal-loader-steam span:nth-child(3) { animation-delay: 0.7s; }

.portal-loader-text {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
  font-size: 12px;
}

.portal-loader-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.portal-loader-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: loader-dot 1.1s ease-in-out infinite;
}

.portal-loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.portal-loader-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes steam-rise {
  0%, 100% { transform: translateY(6px) scaleX(0.9); opacity: 0; }
  25% { opacity: 0.75; }
  55% { transform: translateY(-16px) scaleX(1.15); opacity: 0.35; }
  100% { transform: translateY(-30px) scaleX(0.85); opacity: 0; }
}

@keyframes loader-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes loader-dot {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}

.btn.is-busy {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Facebook-style shimmer */
.shimmer {
  position: relative;
  overflow: hidden;
  background: #e8ddd3;
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer-wave 1.35s ease-in-out infinite;
}

.shimmer:nth-child(2)::after,
.drink-row-skeleton:nth-child(2) .shimmer::after { animation-delay: 0.12s; }
.shimmer:nth-child(3)::after,
.drink-row-skeleton:nth-child(3) .shimmer::after { animation-delay: 0.24s; }
.shimmer:nth-child(4)::after,
.drink-row-skeleton:nth-child(4) .shimmer::after { animation-delay: 0.08s; }
.shimmer:nth-child(5)::after,
.drink-row-skeleton:nth-child(5) .shimmer::after { animation-delay: 0.18s; }

@keyframes shimmer-wave {
  100% { transform: translateX(100%); }
}

.drink-list-skeleton {
  display: grid;
  gap: 16px;
}

.drink-row-skeleton {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid rgba(228, 213, 200, 0.7);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(92, 52, 42, 0.07);
}

.drink-row-skeleton .sk-thumb {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 8px;
}

.drink-row-skeleton .sk-lines {
  display: grid;
  gap: 12px;
}

.drink-row-skeleton .sk-title {
  height: 20px;
  width: 58%;
  border-radius: 6px;
}

.drink-row-skeleton .sk-subtitle {
  height: 14px;
  width: 42%;
  border-radius: 6px;
}

.drink-row-skeleton .sk-price {
  height: 28px;
  width: 96px;
  border-radius: 999px;
}

.drink-row-skeleton .sk-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

[data-menu-results] .drink-list.menu-reveal {
  animation: menu-reveal 0.38s ease both;
}

@keyframes menu-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.loader-skeleton {
  display: grid;
  gap: 14px;
  padding: 8px 0 4px;
}

.loader-skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.loader-skeleton-line.short { width: 62%; }

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

.loader-skeleton-chips span {
  width: 84px;
  height: 36px;
  border-radius: 999px;
}

.loader-skeleton-chips span:nth-child(2) { width: 96px; }
.loader-skeleton-chips span:nth-child(3) { width: 72px; }
