:root {
  --ink: #24170d;
  --muted: #6f5b45;
  --line: #eadcc7;
  --paper: #fffaf2;
  --card: #ffffff;
  --gold: #b8822e;
  --gold-dark: #7a4b10;
  --soft: #f8ead4;
  --danger: #a73621;
}

/* V3.1 public touch gate */
@media (max-width: 900px), (pointer: coarse) {
  button,
  a,
  input,
  select,
  textarea,
  summary,
  [role="button"] {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  button.primary,
  a.primary,
  [type="submit"] {
    min-height: 48px !important;
  }

  .button-row,
  .menu-actions,
  .quick-actions,
  .category-tabs {
    gap: 8px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #fff3d8, transparent 34rem), #fffaf2;
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

button {
  font: inherit;
}

.menu-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.storefront-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  margin-bottom: 14px;
  padding: 8px 4px;
}

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

.storefront-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(120, 83, 47, .2);
  border-radius: 13px;
  background: #18110f;
  box-shadow: 0 6px 18px rgba(46, 32, 21, .12);
}

.storefront-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.storefront-mark img.is-official-mark {
  object-fit: cover;
  object-position: left center;
  background: #18110f;
}

.storefront-brand div {
  min-width: 0;
}

.storefront-brand strong,
.storefront-brand span {
  display: block;
}

.storefront-brand strong {
  overflow: hidden;
  color: #2e2015;
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-brand div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.storefront-service {
  flex: 0 0 auto;
  color: #6b4617;
  font-size: 13px;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #eadcc7;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffdf8 0%, #f7ead6 100%);
  box-shadow: 0 16px 42px rgba(77, 51, 16, .09);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: .04em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.lead {
  max-width: 600px;
  margin-bottom: 0;
  color: #59442e;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 800;
}

.scan-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.scan-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(122, 75, 16, .20);
  border-radius: 999px;
  color: #5b3a12;
  background: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 900;
}

.status-card,
.panel,
.menu-card,
.draft-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 24px 60px rgba(77, 51, 16, .12);
}

.status-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  padding: 14px 18px;
  color: var(--muted);
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22a05a;
  box-shadow: 0 0 0 6px rgba(34, 160, 90, .12);
}

.panel {
  padding: 28px;
}

.menu-card,
.draft-card {
  padding: clamp(18px, 4vw, 34px);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.menu-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.scan-intent-panel {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #eadbc4;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, .96), rgba(248, 234, 212, .78));
}

.scan-intent-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.22;
}

.scan-intent-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scan-intent-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(122, 75, 16, .20);
  border-radius: 999px;
  color: #3b2816;
  background: #fffdf8;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.scan-intent-button.active {
  color: #fff8ee;
  background: linear-gradient(135deg, #24170d, #8d5a19);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(141, 90, 25, .18);
}

.language-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(94, 61, 29, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.language-control[hidden] {
  display: none;
}

.language-label {
  padding-left: 6px;
  color: #6a4a2b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.language-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-content: flex-start;
}

.language-row button,
.tag-button,
.product-button,
.option-button,
.primary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.language-row button {
  min-height: 38px;
  padding: 8px 12px;
  background: #f3e5d0;
  color: #4a3016;
  font-weight: 800;
}

.language-row button.active,
.tag-button.active,
.option-button.active {
  background: #24170d;
  color: #fff8ee;
}

.step-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr 1.05fr;
  gap: 18px;
}

.step-panel {
  min-height: 320px;
  padding: 20px;
  border: 1px solid #efdfc6;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8, #fff6e8);
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-title span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fffaf2;
  font-weight: 900;
}

.tag-grid {
  display: grid;
  gap: 10px;
}

.tag-button,
.option-button {
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #eadbc4;
  text-align: left;
  font-weight: 800;
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-button {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #eadbc4;
  background: #fff;
  color: var(--ink);
  text-align: left;
  min-width: 0;
}

.product-button.active {
  box-shadow: 0 0 0 3px rgba(184, 130, 46, .18);
}

.product-button img,
.product-fallback {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--soft);
}

.product-fallback {
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-weight: 900;
}

.product-button strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.product-button > div {
  min-width: 0;
}

.product-button p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.price {
  color: var(--gold-dark);
  font-weight: 900;
}

.empty-state {
  padding: 24px;
  border: 1px dashed #dbc39c;
  border-radius: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.detail-hero-with-image {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(184, 130, 46, .18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, .94), rgba(248, 234, 212, .58));
}

.detail-hero-with-image img,
.detail-hero-with-image .product-fallback {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 32px rgba(77, 51, 16, .12);
}

.option-group {
  margin: 18px 0;
}

.option-group h4 {
  margin: 0 0 10px;
  font-size: 17px;
}

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

.option-button {
  min-width: 84px;
  text-align: center;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ecdcc5;
}

.total-row strong {
  font-size: 26px;
}

.primary-button {
  padding: 13px 18px;
  background: linear-gradient(135deg, #2b1a0c, #8d5a19);
  color: #fffaf2;
  font-weight: 900;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.draft-card {
  margin-top: 22px;
  background: #211407;
  color: #fff8ee;
}

.draft-card .eyebrow,
.draft-card .small-note {
  color: #f1c27c;
}

.draft-card h2 {
  color: #fff;
  font-size: clamp(34px, 7vw, 54px);
}

.draft-card p {
  color: #f7e6cf;
  line-height: 1.7;
}

.staff-card {
  margin: 18px 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
}

.small-note {
  margin-bottom: 0;
  font-size: 14px;
}

.return-member-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(241, 194, 124, .32);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}

.return-member-card:empty {
  display: none;
}

.return-member-card strong {
  display: block;
  margin-bottom: 4px;
  color: #fff8ee;
  font-size: 20px;
}

.return-member-card p {
  margin: 0;
}

.return-card-note {
  color: #f1c27c !important;
  font-size: 14px;
}

.return-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.return-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f1c27c;
  color: #211407;
  font-weight: 900;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.error {
  color: var(--danger);
  font-weight: 800;
}

@media (max-width: 880px) {
  .hero,
  .menu-header,
  .scan-intent-panel,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .menu-header {
    display: grid;
  }

  .language-row {
    justify-content: flex-start;
  }

  .language-control {
    width: 100%;
    align-items: flex-start;
  }

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

  .step-panel {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .menu-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .hero {
    padding-top: 22px;
  }

  .scan-proof-row,
  .scan-intent-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-button {
    grid-template-columns: 64px 1fr;
  }

  .product-button img,
  .product-fallback {
    width: 64px;
    height: 64px;
  }

  .detail-hero-with-image {
    grid-template-columns: 72px minmax(0, 1fr);
    border-radius: 20px;
  }

  .detail-hero-with-image img,
  .detail-hero-with-image .product-fallback {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .total-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button,
  .return-link-button {
    width: 100%;
  }

  .return-member-card {
    grid-template-columns: 1fr;
  }

  .return-action-row {
    justify-content: stretch;
  }
}

/* Order card polish: shorter hero, readable order card, and clearer return prompt. */
body.v4-smart-menu-public .menu-shell > .hero {
  min-height: 0;
  padding: clamp(22px, 4vw, 34px);
}

body.v4-smart-menu-public .hero h1 {
  max-width: none;
  margin-bottom: 10px;
  color: #24170d;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: 0;
}

body.v4-smart-menu-public .lead {
  max-width: 32rem;
  color: #59442e;
  font-size: clamp(.96rem, 1.5vw, 1.05rem);
  line-height: 1.55;
}

body.v4-smart-menu-public .status-card {
  color: #24170d;
  font-weight: 900;
}

body.v4-smart-menu-public .draft-card {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(244, 210, 138, .46);
  color: #fffaf0;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 210, 138, .18), transparent 34%),
    linear-gradient(145deg, rgba(8, 11, 15, .98), rgba(28, 22, 18, .94)) !important;
  box-shadow: 0 26px 72px rgba(0, 0, 0, .32);
}

body.v4-smart-menu-public .draft-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(244, 210, 138, .16);
  border-radius: 20px;
  pointer-events: none;
}

body.v4-smart-menu-public .draft-card .eyebrow {
  color: #f4d28a;
  font-size: .95rem;
  font-weight: 950;
}

body.v4-smart-menu-public .draft-card h2 {
  margin-bottom: 10px;
  color: #fffaf0;
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  line-height: 1.08;
}

body.v4-smart-menu-public .draft-card p,
body.v4-smart-menu-public .draft-card small {
  color: #f3e5cf;
}

body.v4-smart-menu-public #customerSummary,
body.v4-smart-menu-public #staffSummary {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

body.v4-smart-menu-public .draft-items {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

body.v4-smart-menu-public .draft-items article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(244, 210, 138, .24);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .08);
}

body.v4-smart-menu-public .draft-item-media img,
body.v4-smart-menu-public .draft-item-media .product-fallback {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(244, 210, 138, .20);
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, .10);
  color: #f4d28a;
  font-size: .82rem;
  font-weight: 950;
}

body.v4-smart-menu-public .draft-item-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

body.v4-smart-menu-public .draft-items article > em {
  color: #f4d28a;
  font-size: 1rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

body.v4-smart-menu-public .draft-items strong {
  color: #fffaf0;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.35;
}

body.v4-smart-menu-public .draft-items small {
  color: #f0d7b3;
  font-size: .92rem;
  line-height: 1.45;
}

@media (max-width: 620px) {
  body.v4-smart-menu-public .draft-items article {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 11px;
  }

  body.v4-smart-menu-public .draft-item-media img,
  body.v4-smart-menu-public .draft-item-media .product-fallback {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  body.v4-smart-menu-public .draft-items article > em {
    grid-column: 2;
    justify-self: start;
  }
}

body.v4-smart-menu-public .staff-card {
  border: 1px solid rgba(244, 210, 138, .28);
  background: rgba(255, 255, 255, .095);
}

body.v4-smart-menu-public .staff-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f4d28a;
  font-size: 1rem;
}

body.v4-smart-menu-public .small-note {
  color: #f0d7b3 !important;
  font-size: .95rem;
  line-height: 1.65;
}

body.v4-smart-menu-public .return-member-card {
  border-color: rgba(244, 210, 138, .32);
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(244, 210, 138, .14), rgba(255, 255, 255, .055)),
    rgba(255, 255, 255, .04);
}

body.v4-smart-menu-public .return-member-card strong {
  color: #fffaf0;
  font-size: 1.18rem;
}

body.v4-smart-menu-public .return-member-card p {
  color: #f3e5cf;
  line-height: 1.62;
}

body.v4-smart-menu-public .return-card-note {
  color: #ffe0a2 !important;
  margin-top: 8px !important;
}

body.v4-smart-menu-public .return-link-button {
  background: linear-gradient(135deg, #f4d28a, #d8a85f);
  color: #1d130d;
  box-shadow: 0 14px 34px rgba(216, 168, 95, .25);
}

/* Menu all-items browse path: lets guests see the full menu without leaving the AI flow. */
body.v4-smart-menu-public .all-menu-shortcut {
  align-self: center;
  justify-self: end;
  min-height: 42px;
  border: 1px solid rgba(244, 210, 138, .45);
  border-radius: 999px;
  padding: 0 18px;
  color: #24170d;
  background: linear-gradient(135deg, #f4d28a, #d8a85f);
  font-size: .95rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(216, 168, 95, .22);
}

body.v4-smart-menu-public .all-menu-panel {
  margin-top: 22px;
  border: 1px solid rgba(244, 210, 138, .30);
  border-radius: 26px;
  padding: clamp(18px, 3vw, 26px);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 210, 138, .10), transparent 34%),
    rgba(255, 255, 255, .92);
  box-shadow: 0 20px 56px rgba(25, 15, 8, .10);
}

body.v4-smart-menu-public .all-menu-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}

body.v4-smart-menu-public .all-menu-head::-webkit-details-marker {
  display: none;
}

body.v4-smart-menu-public .all-menu-open-label {
  flex: 0 0 auto;
  color: #6d451f;
  font-size: .92rem;
  font-weight: 900;
}

body.v4-smart-menu-public .all-menu-open-label::after {
  content: "＋";
  display: inline-block;
  margin-left: 8px;
}

body.v4-smart-menu-public .all-menu-panel[open] .all-menu-open-label::after {
  content: "－";
}

body.v4-smart-menu-public .all-menu-content {
  padding-top: 18px;
}

body.v4-smart-menu-public .all-menu-description {
  margin: 0 0 16px;
  color: rgba(50, 35, 22, .72);
  font-size: .96rem;
  line-height: 1.55;
}

body.v4-smart-menu-public .all-menu-head h3 {
  margin: 2px 0 0;
  color: #26170d;
  font-size: clamp(1.28rem, 2.1vw, 1.68rem);
  line-height: 1.18;
}

body.v4-smart-menu-public .all-menu-groups {
  display: grid;
  gap: 18px;
}

body.v4-smart-menu-public .all-menu-group {
  display: grid;
  gap: 12px;
}

body.v4-smart-menu-public .all-menu-group h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #7b4f21;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.25;
}

body.v4-smart-menu-public .all-menu-group h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(123, 79, 33, .18);
}

body.v4-smart-menu-public .all-menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

body.v4-smart-menu-public .all-menu-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  border: 1px solid rgba(120, 75, 29, .16);
  border-radius: 20px;
  padding: 10px;
  color: #28190d;
  background: rgba(255, 251, 243, .86);
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body.v4-smart-menu-public .all-menu-item:hover,
body.v4-smart-menu-public .all-menu-item:focus-visible,
body.v4-smart-menu-public .all-menu-item.active {
  border-color: rgba(216, 168, 95, .68);
  box-shadow: 0 14px 36px rgba(92, 54, 18, .14);
  transform: translateY(-1px);
}

body.v4-smart-menu-public .all-menu-item img,
body.v4-smart-menu-public .all-menu-item .product-fallback {
  width: 68px;
  height: 68px;
  border-radius: 16px;
}

body.v4-smart-menu-public .all-menu-item span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

body.v4-smart-menu-public .all-menu-item strong {
  overflow: hidden;
  color: #211407;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.v4-smart-menu-public .all-menu-item small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(45, 30, 17, .70);
  font-size: .86rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.v4-smart-menu-public .all-menu-item em {
  color: #8d5a21;
  font-size: .93rem;
  font-style: normal;
  font-weight: 950;
}

/* Multi-item order card: supports groups ordering together before creating one pickup code. */
body.v4-smart-menu-public .order-cart-panel {
  margin-top: 22px;
  border: 1px solid rgba(36, 23, 13, .10);
  border-radius: 26px;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(135deg, rgba(36, 23, 13, .96), rgba(76, 49, 28, .92)),
    #24170d;
  color: #fff8ee;
  box-shadow: 0 24px 64px rgba(36, 23, 13, .20);
}

body.v4-smart-menu-public .order-cart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

body.v4-smart-menu-public .order-cart-head .eyebrow {
  color: #f4d28a;
}

body.v4-smart-menu-public .order-cart-head h3 {
  margin: 2px 0 0;
  color: #fffaf0;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  line-height: 1.2;
}

body.v4-smart-menu-public .order-cart-head strong {
  color: #f4d28a;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1;
}

body.v4-smart-menu-public .cart-empty {
  border: 1px dashed rgba(244, 210, 138, .34);
  border-radius: 18px;
  padding: 16px;
  color: #efd9b6;
  line-height: 1.55;
}

body.v4-smart-menu-public .cart-items {
  display: grid;
  gap: 12px;
}

body.v4-smart-menu-public .cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(244, 210, 138, .24);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, .08);
}

body.v4-smart-menu-public .cart-item-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.v4-smart-menu-public .cart-item-main img,
body.v4-smart-menu-public .cart-item-main .product-fallback {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: cover;
}

body.v4-smart-menu-public .cart-item-main div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

body.v4-smart-menu-public .cart-item-main strong {
  overflow: hidden;
  color: #fffaf0;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.v4-smart-menu-public .cart-item-main small {
  overflow: hidden;
  color: #efd9b6;
  font-size: .86rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.v4-smart-menu-public .cart-item-main em {
  color: #f4d28a;
  font-size: .92rem;
  font-style: normal;
  font-weight: 950;
}

body.v4-smart-menu-public .cart-adjustments,
body.v4-smart-menu-public .draft-adjustments {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body.v4-smart-menu-public .pricing-adjustment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(244, 210, 138, .24);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(244, 210, 138, .10);
  color: #fff6df;
  font-size: .92rem;
  font-weight: 850;
}

body.v4-smart-menu-public .pricing-adjustment strong {
  flex: 0 0 auto;
  color: #f4d28a;
}

body.v4-smart-menu-public .cart-qty {
  display: grid;
  grid-template-columns: 38px 34px 38px;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(244, 210, 138, .28);
  border-radius: 999px;
  padding: 4px;
}

body.v4-smart-menu-public .cart-qty button,
body.v4-smart-menu-public .cart-remove,
body.v4-smart-menu-public .secondary-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

body.v4-smart-menu-public .cart-qty button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #24170d;
  background: #f4d28a;
  font-size: 1.05rem;
  font-weight: 950;
}

body.v4-smart-menu-public .cart-qty span {
  color: #fffaf0;
  font-weight: 950;
}

body.v4-smart-menu-public .cart-remove,
body.v4-smart-menu-public .secondary-button {
  min-height: 40px;
  border: 1px solid rgba(244, 210, 138, .25);
  border-radius: 999px;
  padding: 0 14px;
  color: #fff8ee;
  background: rgba(255, 255, 255, .10);
  font-size: .92rem;
  font-weight: 900;
}

body.v4-smart-menu-public .order-cart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

body.v4-smart-menu-public .order-cart-actions .primary-button {
  min-width: 180px;
}

body.v4-smart-menu-public .order-cart-actions button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

@media (max-width: 560px) {
  .storefront-bar {
    min-height: 56px;
    margin-bottom: 10px;
  }

  .storefront-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 11px;
  }

  .storefront-brand strong {
    font-size: 16px;
  }

  .storefront-service {
    font-size: 12px;
  }

  body.v4-smart-menu-public .menu-shell > .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
  }

  body.v4-smart-menu-public .hero h1 {
    max-width: none;
    font-size: clamp(1.75rem, 8vw, 2.1rem);
  }

  body.v4-smart-menu-public .lead {
    max-width: none;
    font-size: .95rem;
  }

  body.v4-smart-menu-public .status-card {
    min-width: 0;
    width: fit-content;
    padding: 11px 14px;
  }

  body.v4-smart-menu-public .draft-card h2 {
    font-size: clamp(1.8rem, 8.8vw, 2.2rem);
  }

  body.v4-smart-menu-public .product-button {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
  }

  body.v4-smart-menu-public .product-button img,
  body.v4-smart-menu-public .product-fallback {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  body.v4-smart-menu-public .product-button strong {
    font-size: 1rem;
  }

  body.v4-smart-menu-public .product-button p {
    font-size: .92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  body.v4-smart-menu-public .all-menu-shortcut {
    justify-self: stretch;
    width: 100%;
  }

  body.v4-smart-menu-public .all-menu-head {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.v4-smart-menu-public .all-menu-open-label {
    margin-left: auto;
  }

  body.v4-smart-menu-public .all-menu-items {
    grid-template-columns: 1fr;
  }

  body.v4-smart-menu-public .all-menu-item {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 80px;
    border-radius: 18px;
  }

  body.v4-smart-menu-public .all-menu-item img,
  body.v4-smart-menu-public .all-menu-item .product-fallback {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  body.v4-smart-menu-public .order-cart-head {
    display: grid;
    gap: 8px;
  }

  body.v4-smart-menu-public .cart-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body.v4-smart-menu-public .cart-qty {
    justify-self: start;
  }

  body.v4-smart-menu-public .cart-remove {
    justify-self: stretch;
  }

  body.v4-smart-menu-public .order-cart-actions {
    display: grid;
  }

  body.v4-smart-menu-public .order-cart-actions .primary-button,
  body.v4-smart-menu-public .order-cart-actions .secondary-button {
    width: 100%;
  }
}

/* V3 fast public menu flow */
.advanced-needs {
  align-content: start;
}

.advanced-needs summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
}

.advanced-needs .tag-grid {
  margin-top: 16px;
}

.menu-search {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 850;
}

.menu-search input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
}

.menu-category-nav {
  position: sticky;
  top: 8px;
  z-index: 18;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px 0 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 10px 28px rgba(31, 38, 47, .08);
  scrollbar-width: thin;
}

.menu-category-nav a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--ink);
  background: #f3eee6;
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
}

.all-menu-group {
  scroll-margin-top: 84px;
}

.cart-dock {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  left: 18px;
  width: min(720px, calc(100% - 36px));
  margin: 0 auto;
}

.cart-dock button {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid rgba(223, 177, 93, .55);
  border-radius: 16px;
  color: #fff8e8;
  background: #101b35;
  box-shadow: 0 16px 42px rgba(16, 27, 53, .28);
  font-size: .96rem;
}

.cart-dock em {
  color: #f0d18c;
  font-style: normal;
  font-weight: 900;
}

.cart-dock b {
  padding: 8px 11px;
  border-radius: 10px;
  color: #17110a;
  background: #f0d18c;
}

@media (max-width: 560px) {
  .cart-dock {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }

  .cart-dock button {
    grid-template-columns: 1fr auto;
  }

  .cart-dock b {
    grid-column: 1 / -1;
  }
}
