@font-face {
  font-family: "Involve Medium";
  src: url("./fonts/Involve-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope ExtraLight";
  src: url("./fonts/Manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --font-body: "Manrope ExtraLight", "Avenir Next", Arial, sans-serif;
  --font-display: "Involve Medium", "Avenir Next", Arial, sans-serif;
  --color-brand: #1b0905;
  --color-bg-primary: #f7f3ec;
  --color-bg-secondary: #eee5d9;
  --color-surface-light: #fffdfc;
  --color-text-primary: #201b18;
  --color-text-secondary: #746b64;
  --color-border: #ded4c8;
  --espresso: var(--color-brand);
  --espresso-deep: #120604;
  --coffee: var(--color-text-primary);
  --coffee-soft: var(--color-text-secondary);
  --milk: var(--color-bg-primary);
  --paper: var(--color-surface-light);
  --line: var(--color-border);
  --muted: var(--color-text-secondary);
  --text: var(--color-text-primary);
  --white: var(--color-surface-light);
  --text-on-background: var(--color-text-primary);
  --muted-on-background: var(--color-text-secondary);
  --line-on-background: var(--color-border);
  --accent: #c59c7c;
  --shadow: 0 18px 50px rgba(46, 21, 13, 0.11);
  --motion-fast: 160ms;
  --motion-standard: 220ms;
  --motion-large: 300ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-card: 24px;
  --radius-small: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color: var(--text-on-background);
  background: var(--color-bg-primary);
  font-family: var(--font-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-bg-primary);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg-primary);
  color: var(--text-on-background);
}

body.is-booting {
  overflow: hidden;
  background: #3E271B;
}

#app.is-splash-revealing {
  animation: main-content-reveal 300ms var(--ease-out) both;
}

.splash {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  background: #3E271B;
}

.splash__logo {
  display: grid;
  width: min(100%, calc(200dvh - 64px));
  aspect-ratio: 1774 / 887;
  flex: 0 1 auto;
  place-items: center;
}

.splash__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.splash__progress {
  width: clamp(120px, 42vw, 180px);
  height: 3px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.splash__progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.splash.is-exiting {
  pointer-events: none;
  animation: splash-exit 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

body.is-locked {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-in-out), color var(--motion-fast) var(--ease-in-out), border-color var(--motion-fast) var(--ease-in-out);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(197, 156, 124, 0.65);
  outline-offset: 3px;
}

.site-shell {
  max-width: 760px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--color-bg-primary);
}

.site-shell main {
  background: var(--color-bg-primary);
}

.site-shell.is-branch-switching main {
  animation: content-crossfade var(--motion-standard) var(--ease-in-out) both;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 20px;
  background: rgba(247, 243, 236, 0.94);
  border-bottom: 1px solid var(--line-on-background);
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-on-background);
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: 112px;
  height: 56px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: var(--espresso);
}

.topbar .brand-lockup {
  background: #3e271b;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup--inverse {
  color: var(--white);
}

.footer .brand-lockup {
  width: 180px;
  height: 90px;
}

.branch-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #3e271b;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.branch-trigger__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58a06d;
  box-shadow: 0 0 0 4px rgba(88, 160, 109, 0.13);
}

.branch-trigger__text {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intro-card {
  position: relative;
  min-height: 280px;
  margin: 18px 16px 0;
  padding: 28px 24px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #3e271b;
  color: var(--white);
  isolation: isolate;
}

.intro-card__copy {
  position: relative;
  z-index: 2;
  max-width: 250px;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.eyebrow--muted {
  color: var(--coffee-soft);
}

.intro-card h1 {
  margin: 0;
  font-size: clamp(32px, 9vw, 52px);
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.intro-card p {
  max-width: 190px;
  margin: 20px 0 0;
  color: rgba(255, 253, 249, 0.63);
  font-size: 13px;
  line-height: 1.5;
}

.intro-card__signature {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 2px;
  display: block;
  width: min(230px, 60%);
  height: auto;
  opacity: 0.12;
  object-fit: contain;
  pointer-events: none;
}

.intro-card__orb {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(255, 253, 249, 0.16);
  border-radius: 50%;
}

.intro-card__orb--one {
  right: -72px;
  bottom: -92px;
  width: 275px;
  height: 275px;
}

.intro-card__orb--two {
  right: 10px;
  bottom: -38px;
  width: 145px;
  height: 145px;
  background: rgba(197, 156, 124, 0.12);
}

.category-section {
  position: sticky;
  z-index: 10;
  top: 72px;
  margin-top: 34px;
  padding: 0 16px 12px;
  background: linear-gradient(var(--color-bg-primary) 78%, rgba(247, 243, 236, 0));
  isolation: isolate;
}

.category-section .eyebrow--muted,
.menu-section .eyebrow--muted {
  color: var(--accent);
}

.section-heading,
.menu-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.menu-section__heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.025em;
  line-height: 1;
}

.section-count {
  padding-bottom: 3px;
  color: var(--color-text-secondary);
  font-size: 11px;
  white-space: nowrap;
}

.category-nav {
  display: flex;
  gap: 8px;
  margin: 20px -16px 0;
  padding: 0 16px 5px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
  transition: color var(--motion-fast) var(--ease-in-out), background-color var(--motion-fast) var(--ease-in-out), border-color var(--motion-fast) var(--ease-in-out), transform var(--motion-fast) var(--ease-out);
}

.category-tab.is-active {
  border-color: var(--color-brand);
  background: #3e271b;
  color: var(--color-surface-light);
}

.category-tab:active,
.branch-trigger:active,
.branch-option:active,
.primary-button:active,
.secondary-button:active {
  transform: scale(0.98);
}

.branch-trigger--static {
  cursor: default;
  user-select: none;
}

.branch-trigger--static:active {
  transform: none;
}

.menu-sections {
  padding: 13px 16px 104px;
}

.menu-section {
  scroll-margin-top: 185px;
  padding: 28px 0 8px;
}

.menu-section.section--revealing {
  animation: section-reveal var(--motion-standard) var(--ease-out) both;
}

.menu-section + .menu-section {
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.menu-section__heading {
  align-items: baseline;
  margin-bottom: 18px;
}

.menu-section__heading h2 {
  font-size: 24px;
}

.menu-section__heading p {
  max-width: 145px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

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

.category-empty {
  display: grid;
  gap: 7px;
  padding: 20px 16px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-bg-secondary);
}

.category-empty strong {
  color: var(--color-text-primary);
  font-size: 13px;
}

.category-empty span {
  color: var(--color-text-secondary);
  font-size: 11px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 180px minmax(0, 1fr);
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-bg-secondary);
  box-shadow: 0 7px 22px rgba(46, 21, 13, 0.035);
  color: var(--color-text-primary);
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 3px solid rgba(197, 156, 124, 0.65);
  outline-offset: 3px;
}

.product-card__body {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 8px 14px;
}

.product-card__action {
  display: flex;
  align-items: flex-end;
}

.product-card__action.is-updating {
  animation: action-update var(--motion-fast) var(--ease-out) both;
}

.product-card__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 9px 0 0;
  font-size: 16px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.product-card p {
  display: -webkit-box;
  max-width: 210px;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.product-card__price {
  color: var(--espresso);
  font-size: 14px;
  font-weight: 800;
}

.product-card__volume {
  color: var(--muted);
  font-size: 10px;
}

.add-button {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  margin: 0 12px 12px 0;
  padding: 0;
  border-radius: 50%;
  background: #3e271b;
  color: var(--white);
  line-height: 1;
  transition: transform var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-in-out);
}

.add-button:active {
  background: #2f1d15;
  transform: scale(0.94);
}

.product-card__quantity {
  align-self: flex-end;
  margin: 0 12px 12px 0;
}

.product-card__quantity button:active,
.quantity-control button:active,
.add-button:active {
  transform: scale(0.93);
}

.product-card__quantity span {
  min-width: 13px;
  color: var(--espresso);
  text-align: center;
}

.product-card__image-button {
  position: relative;
  display: block;
  order: -1;
  grid-column: 1;
  width: 100%;
  min-width: 0;
  min-height: 180px;
  height: 180px;
  padding: 0;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.product-card__image-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 13, 8, 0.12), transparent 35%);
  content: "";
}

.product-card__image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-standard) var(--ease-out);
}

.image-layout-target {
  object-position: var(--image-position-x, 50%) var(--image-position-y, 50%);
  transform: scale(var(--image-scale, 1));
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.product-image-fallback {
  display: block;
  background: var(--color-bg-secondary);
}

.product-card__image-button .product-image-fallback {
  width: 100%;
  height: 100%;
}

.product-card__image-button:active img {
  transform: scale(calc(var(--image-scale, 1) * 1.05));
}

.footer {
  padding: 42px 20px calc(35px + var(--safe-bottom));
  background: #3e271b;
  color: var(--white);
  text-align: center;
}

.footer__brand {
  display: inline-flex;
}

.footer p {
  margin: 18px auto 24px;
  color: rgba(255, 253, 249, 0.55);
  font-size: 12px;
}

.footer__contact {
  display: grid;
  gap: 6px;
  margin: 0 auto 24px;
  color: rgba(255, 253, 249, 0.72);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.footer > span {
  color: rgba(255, 253, 249, 0.3);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.cart-bar {
  position: fixed;
  z-index: 30;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 736px;
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 14px 8px 9px;
  border-radius: 17px;
  background: var(--espresso);
  color: var(--white);
  box-shadow: 0 13px 35px rgba(28, 11, 6, 0.24);
  text-align: left;
}

.cart-bar__count {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: var(--espresso);
  font-size: 14px;
  font-weight: 800;
}

.cart-bar__count.is-pulsing {
  animation: badge-pulse 180ms var(--ease-out) both;
}

.cart-bar__label {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
}

.cart-bar strong {
  font-size: 13px;
}

.overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.overlay__scrim {
  position: absolute;
  inset: 0;
  will-change: opacity;
  background: rgba(18, 6, 4, 0.56);
  animation: fade-in var(--motion-standard) var(--ease-out) both;
}

.overlay.is-closing .overlay__scrim {
  animation: fade-out var(--motion-standard) var(--ease-in-out) both;
}

.sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100svh - 16px);
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: var(--color-surface-light);
  box-shadow: 0 -16px 45px rgba(25, 8, 4, 0.18);
  color: var(--color-text-primary);
  animation: sheet-in var(--motion-large) var(--ease-out) both;
}

.overlay.is-closing .sheet {
  animation: sheet-out var(--motion-standard) var(--ease-in-out) both;
}

.overlay--refreshing .sheet,
.overlay--refreshing .sheet__header,
.overlay--refreshing .sheet__content {
  animation: none;
}

.sheet__handle {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.sheet__close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.sheet--product {
  overflow: hidden;
  will-change: transform, opacity;
  animation: product-sheet-in var(--motion-large) var(--ease-out) both;
}

.overlay.is-closing .sheet--product {
  animation: product-sheet-out var(--motion-standard) var(--ease-in-out) both;
}

.sheet__image-wrap {
  height: 300px;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.sheet__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet__content {
  position: relative;
  padding: 24px 20px calc(20px + var(--safe-bottom));
  animation: sheet-content-in var(--motion-standard) var(--ease-out) 45ms both;
}

.sheet--product > .sheet__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  background: var(--color-surface-light);
  color: var(--color-text-primary);
}

.sheet__content h2,
.sheet__header h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 29px;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.sheet__description {
  max-width: 460px;
  margin: 12px 0 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.sheet__facts {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.modifier-group {
  margin: 27px 0 0;
  padding: 0;
  border: 0;
}

.modifier-group legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 11px;
  font-size: 13px;
  font-weight: 800;
}

.modifier-group legend span {
  color: var(--color-text-secondary);
  font-size: 10px;
  font-weight: 500;
}

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

.variant-selector__options {
  margin-top: 6px;
  padding-bottom: var(--safe-bottom);
}

.variant-options {
  display: grid;
  gap: 8px;
}

.variant-option {
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
}

.variant-option strong {
  color: var(--color-text-primary);
  font-size: 12px;
  white-space: nowrap;
}

.variant-option.is-selected strong {
  color: var(--color-brand);
}

.modifier-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
}

.modifier-option small {
  color: var(--color-text-secondary);
  font-size: 10px;
  font-weight: 500;
}

.modifier-option.is-selected {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-surface-light);
}

.modifier-option.is-selected small {
  color: var(--accent);
}

.modifier-option.is-selected strong {
  color: var(--color-surface-light);
}

.sheet__action {
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 17px;
  border-radius: 13px;
  background: var(--espresso);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.sheet--product .primary-button {
  background: #3e271b;
  color: var(--color-surface-light);
}

.primary-button:disabled {
  background: #d5cbc3;
  color: #988e87;
  cursor: not-allowed;
}

.primary-button strong {
  font-size: 14px;
}

.secondary-button {
  justify-content: center;
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.sheet--cart,
.sheet--branch,
.sheet--variant {
  padding: 22px 20px calc(20px + var(--safe-bottom));
}

.sheet--cart {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.sheet--cart .eyebrow--muted {
  color: var(--color-brand);
}

.sheet--cart .sheet__handle {
  background: var(--color-border);
}

.sheet--cart .sheet__close {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  animation: sheet-content-in var(--motion-standard) var(--ease-out) 45ms both;
}

.clear-cart-button {
  display: block;
  margin: 18px 0 0 auto;
  padding: 4px 0;
  background: transparent;
  color: var(--coffee-soft);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-content {
  min-height: 145px;
  margin-top: 26px;
}

.cart-items {
  display: grid;
  gap: 13px;
}

.cart-items.is-clearing {
  animation: cart-list-out var(--motion-large) var(--ease-in-out) both;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  animation: cart-item-in var(--motion-standard) var(--ease-out) both;
}

.cart-item.is-removing {
  animation: cart-item-out var(--motion-standard) var(--ease-in-out) both;
  pointer-events: none;
}

.cart-item > img,
.cart-item__image {
  width: 62px;
  height: 62px;
  border-radius: 11px;
  object-fit: cover;
}

.cart-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cart-item h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.cart-item__top strong {
  color: var(--espresso);
  font-size: 12px;
  white-space: nowrap;
}

.sheet--cart .cart-item__top strong,
.sheet--cart .cart-summary__total strong {
  color: var(--color-brand);
}

.cart-item p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 10px;
}

.sheet--cart .cart-item p,
.sheet--cart .cart-summary__hint {
  color: var(--color-text-secondary);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 3px;
  border-radius: 8px;
  background: var(--milk);
  font-size: 12px;
  font-weight: 800;
}

.sheet--cart .quantity-control {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.quantity-control button {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 6px;
  background: var(--white);
}

.sheet--cart .quantity-control button {
  background: var(--color-surface-light);
  color: var(--color-text-primary);
}

.cart-summary {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.cart-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
}

.cart-summary__total strong {
  color: var(--espresso);
  font-size: 18px;
}

.cart-summary__hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 18px 20px 5px;
  text-align: center;
  animation: empty-state-in var(--motion-standard) var(--ease-out) both;
}

.data-unavailable {
  min-height: 100svh;
  display: grid;
  place-content: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  text-align: center;
}

.data-unavailable h1,
.data-unavailable p {
  max-width: 32rem;
  margin: 0 auto;
}

.data-unavailable p { color: var(--color-text-secondary); }

.empty-state__icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: var(--espresso);
  border: 1px solid rgba(255, 253, 249, 0.14);
}

.empty-state__logo {
  display: block;
  width: 68px;
  height: auto;
  opacity: 0.94;
  object-fit: contain;
}

.empty-state h3 {
  margin: 18px 0 0;
  font-size: 18px;
}

.empty-state p {
  max-width: 260px;
  margin: 8px 0 18px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.sheet--cart .empty-state h3 {
  color: var(--color-text-primary);
}

.sheet--cart .empty-state p {
  color: var(--color-text-secondary);
}

.sheet--cart .secondary-button {
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.branch-list {
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.branch-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 12px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  text-align: left;
}

.branch-option.is-selected {
  border-color: var(--color-brand);
  box-shadow: inset 0 0 0 1px var(--color-brand);
}

.branch-option__radio {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.branch-option.is-selected .branch-option__radio {
  border: 5px solid var(--color-brand);
}

.branch-option__copy,
.branch-option__meta {
  display: grid;
  gap: 4px;
}

.branch-option__copy strong {
  font-size: 13px;
}

.branch-option__copy span,
.branch-option__meta span,
.branch-option__meta b {
  color: var(--color-text-secondary);
  font-size: 10px;
  font-weight: 500;
}

.branch-option__meta {
  text-align: right;
}

.branch-option__meta b {
  color: #579368;
  font-weight: 800;
}

.branch-warning {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.branch-warning strong {
  font-size: 11px;
}

.branch-warning span {
  font-size: 10px;
  line-height: 1.35;
}

.branch-current {
  margin: 13px 0 0;
  color: var(--color-text-secondary);
  font-size: 10px;
  text-align: center;
}

.sheet--cart .clear-cart-button {
  color: var(--color-brand);
}

.toast {
  position: fixed;
  z-index: 120;
  right: 16px;
  bottom: calc(84px + var(--safe-bottom));
  left: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 430px;
  margin: auto;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--espresso);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  animation: toast-in var(--motion-standard) var(--ease-out) both;
}

.toast__check {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--espresso);
  font-size: 12px;
}

.icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.icon--chevron::before,
.icon--arrow::before {
  position: absolute;
  top: 5px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.icon--chevron::before {
  right: 3px;
  width: 6px;
  height: 6px;
  transform: rotate(135deg);
}

.icon--arrow::before {
  right: 4px;
}

.icon--arrow::after {
  position: absolute;
  top: 8px;
  right: 4px;
  width: 11px;
  border-top: 1.5px solid currentColor;
  content: "";
}

.icon--plus::before,
.icon--plus::after,
.icon--plus-small::before,
.icon--plus-small::after,
.icon--minus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  border-top: 1.5px solid currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.icon--plus::after,
.icon--plus-small::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.icon--plus-small::before,
.icon--plus-small::after,
.icon--minus::after {
  width: 10px;
}

.icon--close::before,
.icon--close::after {
  position: absolute;
  top: 8px;
  left: 3px;
  width: 13px;
  border-top: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.icon--close::after {
  transform: rotate(-45deg);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

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

@keyframes sheet-content-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes product-sheet-in {
  from { opacity: 0.98; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes product-sheet-out {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0.98; transform: translate3d(0, 100%, 0); }
}

@keyframes product-modal-in {
  from { opacity: 0; transform: translate3d(0, 64px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes product-modal-out {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(0, 64px, 0); }
}

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

@keyframes action-update {
  0% { opacity: 0.55; transform: translateY(3px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes badge-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes cart-item-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cart-item-out {
  from { opacity: 1; transform: translateY(0) scale(1); max-height: 130px; margin-top: 0; }
  to { opacity: 0; transform: translateY(-6px) scale(0.98); max-height: 0; margin-top: -13px; }
}

@keyframes cart-list-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes empty-state-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes content-crossfade {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

@keyframes splash-exit {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.02); }
}

@keyframes main-content-reveal {
  from { opacity: 0.92; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 760px) {
  .splash__progress {
    width: clamp(160px, 18vw, 220px);
  }

  body {
    padding: 28px 0;
  }

  .site-shell {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 22px 80px rgba(45, 18, 10, 0.13);
  }

  .topbar {
    border-radius: 30px 30px 0 0;
  }

  .intro-card {
    min-height: 310px;
    margin: 24px 22px 0;
    padding: 38px 32px;
  }

  .category-section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .category-nav {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .menu-sections {
    padding-right: 22px;
    padding-left: 22px;
  }

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

  .product-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: minmax(0, 1fr);
    min-height: 152px;
  }

  .product-card__body {
    padding: 15px 0 15px 16px;
  }

  .product-card__bottom {
    flex-wrap: nowrap;
    padding-top: 12px;
  }

  .product-card .badge-row {
    min-height: 16px;
  }

  .product-card__image-button {
    order: 2;
    grid-column: 2;
    height: auto;
  }

  .product-card__image-button,
  .product-card__image-button img {
    min-height: 158px;
  }

  .sheet {
    max-width: 520px;
    margin: 0 auto;
    border-radius: 24px;
  }

  .sheet--product {
    animation-name: product-modal-in;
  }

  .overlay.is-closing .sheet--product {
    animation-name: product-modal-out;
  }

  .overlay {
    align-items: center;
    padding: 16px;
  }

  .sheet--cart,
  .sheet--branch,
  .sheet--variant {
    padding-bottom: 24px;
  }

  .cart-bar {
    right: auto;
    left: 50%;
    width: calc(100% - 48px);
    transform: translateX(-50%);
  }
}

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

  .splash.is-exiting,
  #app.is-splash-revealing {
    animation-duration: 0.01ms !important;
  }
}
