:root {
  --primary: #a33b27;
  --accent: #e6a33a;
  --paper: #fff9ed;
  --soft: #f5e3cf;
  --ink: #2c211b;
  --white: #ffffff;
  --muted: #6e655f;
  --line: rgba(44, 33, 27, 0.14);
  --shadow: 0 14px 34px rgba(60, 48, 36, 0.12);
  --page-width: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 9%, transparent), transparent 300px),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

button,
select,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  font-weight: 700 !important;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

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

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-toolbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  min-height: 62px;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem max(4vw, 1rem);
  border-bottom: 1px solid #ded9cf;
  background: rgba(252, 250, 245, 0.96);
  color: #29231f;
  backdrop-filter: blur(14px);
}

.platform-brand,
.site-picker,
.build-link {
  display: inline-flex;
  align-items: center;
}

.platform-brand {
  gap: 0.55rem;
  font-size: 1rem;
}

.platform-mark {
  width: 31px;
  height: 31px;
  object-fit: contain;
  flex: none;
}

.demo-label {
  padding: 0.28rem 0.58rem;
  border: 1px solid color-mix(in srgb, var(--primary) 60%, #ffffff);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.site-picker {
  justify-self: center;
  gap: 0.65rem;
  color: #70655e;
  font-size: 0.76rem;
  font-weight: 800;
}

.site-picker select {
  width: min(360px, 40vw);
  min-height: 40px;
  padding: 0 2.2rem 0 0.75rem;
  border: 1px solid #cec6bb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 800;
}

.build-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.build-link {
  padding: 0.6rem 0.9rem;
  background: #29231f;
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
}

.build-link:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

#demo-root {
  min-width: 0;
}

.shop-nav {
  display: flex;
  width: min(var(--page-width), calc(100% - 28px));
  min-height: 92px;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  padding: 12px 0;
}

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

.shop-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 11%, #fff);
  color: var(--primary);
  box-shadow: 0 7px 16px rgba(34, 28, 24, 0.1);
  font-size: 0.82rem;
  font-weight: 950;
}

.shop-brand > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.shop-brand small,
.week-input span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-brand strong {
  overflow: hidden;
  font-size: 1.2rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 8%, var(--white));
}

.shop-view-switch-option {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.shop-view-switch-option.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 26%, transparent);
}

a.shop-view-switch-option:hover,
a.shop-view-switch-option:focus-visible {
  background: color-mix(in srgb, var(--primary) 14%, var(--white));
}

.week-input {
  display: grid;
  width: 180px;
  gap: 5px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.week-input strong {
  font-size: 0.88rem;
}

.shop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-link,
.cart-button,
.filter-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 66%, #fff);
  font-weight: 700;
}

.text-link {
  padding: 0.5rem 0.8rem;
  color: #3f372f;
  font-size: 0.78rem;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
  background: color-mix(in srgb, var(--primary) 9%, #fff);
  color: var(--primary);
}

.cart-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
}

.storefront-shell {
  display: grid;
  width: min(var(--page-width), calc(100% - 28px));
  gap: 14px;
  margin: 0 auto;
  padding: 2px 0 36px;
}

.announcement-banner {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--primary) 74%, #274f3b), color-mix(in srgb, var(--accent) 72%, var(--primary)));
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(34, 28, 24, 0.12);
}

.announcement-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 950;
}

.announcement-banner > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.announcement-banner span,
.announcement-banner small {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.announcement-banner strong {
  font-size: 1rem;
}

.announcement-banner small {
  color: rgba(255, 255, 255, 0.84);
  text-transform: none;
}

.announcement-banner .secondary-action {
  min-width: 108px;
  background: #fff;
  color: var(--ink);
}

.menu-market-hero {
  position: relative;
  display: grid;
  min-height: 318px;
  overflow: hidden;
  padding: 24px;
  color: #fffdf8;
  background: #221c18;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(34, 28, 24, 0.18);
}

.menu-market-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 22, 0.91) 0%, rgba(28, 25, 22, 0.75) 48%, rgba(28, 25, 22, 0.18) 82%),
    linear-gradient(0deg, rgba(28, 25, 22, 0.68), transparent 60%);
  content: "";
}

.menu-market-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-market-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 12px;
  max-width: 780px;
  min-width: 0;
}

.menu-market-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 253, 248, 0.9);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-week-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 28%, #a8dfb9);
  color: #14311f;
  font-weight: 950;
}

.menu-market-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fffdf8;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.menu-market-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: 1rem;
  font-weight: 700;
}

.menu-market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-market-actions .primary-action,
.menu-market-actions .secondary-action {
  min-height: 38px;
  padding: 0 14px;
}

.menu-market-actions .secondary-action {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.primary-action {
  padding: 0.62rem 0.82rem;
  background: var(--primary);
  color: #fff;
}

.secondary-action {
  padding: 0.62rem 0.82rem;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.menu-week-brief {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(34, 28, 24, 0.06);
}

.menu-week-brief article {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 9px 11px;
  border-right: 1px solid var(--line);
}

.menu-week-brief article:last-child {
  border-right: 0;
}

.menu-week-brief span,
.menu-week-brief small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.menu-week-brief strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.15;
}

.menu-week-pickup button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.menu-week-pickup em {
  color: var(--primary);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  text-decoration: underline;
  text-transform: uppercase;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.menu-column,
.shop-sidebar {
  min-width: 0;
}

.weekly-menu-head {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-bottom: 12px;
  text-align: center;
}

.weekly-menu-head p,
.weekly-menu-head h2,
.weekly-menu-head small {
  margin: 0;
}

.weekly-menu-head p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.weekly-menu-head p span {
  width: 9px;
  height: 9px;
  background: #27a95b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(39, 169, 91, 0.14);
}

.weekly-menu-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.64rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.weekly-menu-head small {
  font-size: 0.84rem;
  font-weight: 750;
}

.menu-intro-note {
  margin: 0;
  max-width: 720px;
  color: #3f372f;
  font-size: 0.96rem;
  font-weight: 800;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-button {
  padding: 0.48rem 0.82rem;
  border-color: var(--line);
  background: color-mix(in srgb, var(--soft) 44%, #fff);
  color: #4b4139;
  font-size: 0.78rem;
}

.filter-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.menu-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.menu-card {
  display: grid;
  grid-template-columns: minmax(232px, 0.44fr) minmax(0, 1fr);
  min-width: 0;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(34, 28, 24, 0.06);
}

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

.menu-card-media {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ece8dd;
}

.menu-card-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 58%, rgba(34, 28, 24, 0.18)),
    linear-gradient(0deg, rgba(34, 28, 24, 0.7), transparent 56%);
  content: "";
}

.item-photo {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  transition: transform 200ms ease;
}

.menu-card-media:hover .item-photo {
  transform: scale(1.02);
}

.menu-card-media-overlay {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-dot,
.menu-card-status-pill,
.meta-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 900;
}

.category-dot {
  background: var(--primary);
  color: #fff;
}

.menu-card-status-pill {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  background: rgba(255, 253, 248, 0.9);
  color: var(--primary);
}

.item-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
}

.item-title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.item-title-row > div:first-child {
  min-width: 0;
}

.item-title-row h3 {
  margin: 4px 0 0;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.item-availability {
  display: grid;
  min-width: 76px;
  flex: 0 0 auto;
  gap: 5px;
  justify-items: end;
}

.item-availability > strong {
  color: var(--primary);
  font-size: 1.275rem;
  font-weight: 950;
}

.item-availability > small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-stamp {
  display: grid;
  min-width: 58px;
  min-height: 48px;
  place-items: center;
  align-content: center;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 54%, #b27a1f);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 24%, #fff);
  transform: rotate(-2deg);
}

.inventory-stamp strong {
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 0.9;
}

.inventory-stamp small {
  font-size: 0.46rem;
  font-weight: 950;
  text-transform: uppercase;
}

.item-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(135px, 0.42fr);
  gap: 10px;
  min-width: 0;
}

.item-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.item-copy > p {
  margin: 0;
  color: #4f453e;
  font-size: 0.92rem;
  font-weight: 700;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.serving-callout {
  display: inline-grid;
  min-width: 66px;
  min-height: 40px;
  place-items: center;
  align-content: center;
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 20%, #fff);
}

.serving-callout span {
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 0.9;
}

.serving-callout small {
  max-width: 56px;
  font-size: 0.42rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.meta-pill {
  min-height: 22px;
  background: #f2eee4;
  color: #5d534b;
  text-transform: uppercase;
}

.item-detail-card {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.item-detail-card p {
  margin: 0;
  color: #514840;
  font-size: 0.74rem;
  line-height: 1.35;
}

.item-dietary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.item-detail-card .cutoff-line {
  color: var(--primary);
  font-weight: 800;
}

.chef-note {
  align-self: start;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 17%, #fff);
  box-shadow: 0 8px 18px rgba(34, 28, 24, 0.08);
}

.chef-note strong {
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chef-note p {
  margin: 7px 0 0;
  color: #4a3d33;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.card-actions .primary-action {
  min-width: 120px;
}

.shop-sidebar {
  display: grid;
  gap: 10px;
}

.location-card,
.order-request-card,
.sample-map-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(34, 28, 24, 0.06);
}

.location-card {
  min-height: 190px;
  place-items: center;
  align-content: center;
  text-align: center;
  background-color: #fff;
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 11%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 11%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
}

.location-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
}

.location-card p,
.location-card small {
  margin: 0;
  color: var(--muted);
}

.location-card p {
  font-size: 0.82rem;
  font-weight: 800;
}

.location-card small {
  font-size: 0.72rem;
}

.order-request-card > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.order-request-card > div:first-child > span,
.sample-map-card span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.order-request-card > div:first-child > strong {
  font-size: 1.05rem;
}

.sidebar-cart-empty {
  display: grid;
  min-height: 145px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 8px;
  text-align: center;
}

.sidebar-cart-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.sidebar-cart-lines {
  display: grid;
  gap: 10px;
}

.sidebar-cart-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.sidebar-cart-line img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.sidebar-cart-line div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sidebar-cart-line strong {
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-cart-line span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.order-request-card .primary-action {
  width: 100%;
}

.sample-map-card > div {
  display: grid;
  gap: 3px;
}

.sample-map-card iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 6px;
}

.sample-map-card small {
  color: var(--muted);
  font-size: 0.68rem;
}

.store-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.store-note > div,
.store-note dl {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.store-note > div {
  background: var(--primary);
  color: #fff;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.store-note h2 {
  margin: 7px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.store-note p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.store-note dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.store-note dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.store-note dl div:last-child {
  border-bottom: 0;
}

.store-note dt {
  color: var(--muted);
}

.store-note dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.store-footer {
  display: flex;
  width: min(var(--page-width), calc(100% - 28px));
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.store-footer a {
  color: var(--primary);
}

.product-dialog,
.pickup-dialog {
  width: min(920px, calc(100vw - 2rem));
  max-height: min(820px, calc(100vh - 2rem));
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-dialog::backdrop,
.pickup-dialog::backdrop {
  background: rgba(20, 17, 14, 0.65);
}

.pickup-dialog iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.pickup-dialog-copy {
  display: grid;
  gap: 10px;
  padding: 26px;
}

.pickup-dialog-copy h2,
.pickup-dialog-copy p {
  margin: 0;
}

.pickup-dialog-copy h2 {
  padding-right: 34px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.dialog-close,
.drawer-close,
.quantity-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 900;
}

.dialog-close {
  position: sticky;
  top: 0.75rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 0.75rem 0.75rem -3rem auto;
  border-radius: 50%;
  font-size: 1.5rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.product-detail-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.product-detail-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.product-detail h2,
.cart-head h2,
.confirmation h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.product-price {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 950;
}

.product-description,
.detail-line {
  color: var(--muted);
}

.product-description,
.detail-line {
  margin: 0;
}

.detail-line {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.detail-line strong {
  color: var(--ink);
}

.detail-action-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
}

.availability {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(20, 17, 14, 0.5);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(470px, 100vw);
  height: 100dvh;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--paper);
  box-shadow: -18px 0 46px rgba(20, 17, 14, 0.2);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-shell {
  min-height: 100%;
  padding: 1.2rem;
}

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

.drawer-close {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  font-size: 1.35rem;
}

.sample-warning {
  margin: 1rem 0;
  padding: 0.75rem;
  border-left: 4px solid var(--accent);
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-cart {
  display: grid;
  min-height: 290px;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  color: var(--muted);
  text-align: center;
}

.empty-cart strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.empty-cart p {
  margin: 0;
}

.cart-lines {
  display: grid;
  gap: 0.8rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-line-copy {
  display: grid;
  min-width: 0;
}

.cart-line-copy strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.cart-line-copy small {
  color: var(--muted);
}

.quantity-control {
  display: grid;
  grid-template-columns: 30px 30px 30px;
  align-items: center;
  margin-top: 0.4rem;
}

.quantity-button {
  width: 30px;
  height: 30px;
}

.quantity-control span {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.remove-line {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
}

.totals {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.totals .grand-total {
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 900;
}

.wide-action {
  width: 100%;
  margin-top: 1rem;
}

.checkout-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.checkout-form label,
.checkout-form fieldset {
  display: grid;
  gap: 0.35rem;
  border: 0;
}

.checkout-form label > span,
.checkout-form legend {
  font-size: 0.76rem;
  font-weight: 900;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-form textarea {
  min-height: 84px;
  resize: vertical;
}

.fulfillment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.fulfillment-options label {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.fulfillment-options label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.fulfillment-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
}

.confirmation {
  display: grid;
  min-height: calc(100dvh - 2.4rem);
  place-items: center;
  align-content: center;
  gap: 1rem;
  text-align: center;
}

.confirmation-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
}

.confirmation p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
}

.confirmation-summary {
  width: 100%;
  padding: 1rem;
  border-block: 1px solid var(--line);
}

.confirmation-summary strong,
.confirmation-summary span {
  display: block;
}

.demo-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  max-width: min(340px, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #211d1a;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.demo-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript {
  padding: 2rem;
  text-align: center;
}

@media (max-width: 980px) {
  .demo-toolbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .demo-label {
    display: none;
  }

  .site-picker {
    justify-self: stretch;
  }

  .site-picker span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .site-picker select {
    width: 100%;
  }

  .week-input,
  .shop-actions .text-link:nth-child(2) {
    display: none;
  }

  .shop-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .item-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shop-nav {
    min-height: 78px;
    flex-wrap: wrap;
  }

  .shop-view-switch {
    order: 3;
    width: 100%;
  }

  .shop-view-switch-option {
    min-height: 40px;
  }

  .shop-actions .text-link {
    display: none;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

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

  .location-card {
    display: none;
  }

  .sample-map-card {
    grid-column: 1 / -1;
  }

  .order-request-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .sidebar-cart-empty {
    display: none;
  }

  .order-request-card .primary-action {
    width: auto;
  }

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

  .menu-week-brief article:nth-child(2) {
    border-right: 0;
  }

  .menu-week-brief article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .store-note {
    grid-template-columns: 1fr;
  }

  .menu-card {
    grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .demo-toolbar {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 0.65rem;
    padding-inline: 14px;
  }

  .platform-brand strong,
  .build-link {
    display: none;
  }

  .site-picker select {
    max-width: 100%;
  }

  .shop-nav {
    width: calc(100% - 28px);
  }

  .shop-avatar {
    width: 44px;
    height: 44px;
  }

  .shop-brand small {
    max-width: 190px;
  }

  .cart-button {
    min-width: 76px;
  }

  .announcement-banner {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px;
  }

  .announcement-mark {
    width: 40px;
    height: 40px;
  }

  .announcement-banner .secondary-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .menu-market-hero {
    min-height: 420px;
    padding: 16px;
  }

  .menu-market-hero::after {
    background: linear-gradient(0deg, rgba(28, 25, 22, 0.94) 0%, rgba(28, 25, 22, 0.76) 55%, rgba(28, 25, 22, 0.18) 100%);
  }

  .menu-market-hero h1 {
    font-size: clamp(2.7rem, 14vw, 3.5rem);
  }

  .menu-market-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-market-actions .secondary-action:last-child {
    grid-column: 1 / -1;
  }

  .menu-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .menu-card-media {
    min-height: 0;
  }

  .item-photo {
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .item-body {
    padding: 11px;
  }

  .item-content-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    align-items: stretch;
  }

  .card-actions .primary-action,
  .card-actions .secondary-action {
    flex: 1 1 50%;
  }

  .product-dialog,
  .pickup-dialog {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .pickup-dialog iframe {
    height: 42vh;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    min-height: 280px;
    height: 38vh;
  }

  .cart-drawer {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(88dvh, 760px);
    border-top: 1px solid var(--line);
    border-left: 0;
    transform: translateY(105%);
  }

  .cart-drawer.open {
    transform: translateY(0);
  }

  .confirmation {
    min-height: calc(88dvh - 2.4rem);
  }
}

@media (max-width: 420px) {
  .shop-brand small {
    max-width: 150px;
  }

  .shop-brand strong {
    font-size: 1.05rem;
  }

  .menu-week-brief {
    grid-template-columns: 1fr;
  }

  .menu-week-brief article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-week-brief article:last-child {
    border-bottom: 0;
  }

  .order-request-card {
    grid-template-columns: 1fr;
  }

  .order-request-card .primary-action {
    width: 100%;
  }

  .item-title-row h3 {
    font-size: 1.28rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
