:root {
  --paper: #f3f5f1;
  --paper-bright: #fbfcf8;
  --ink: #16211d;
  --ink-soft: #59655f;
  --forest: #173b31;
  --forest-light: #285847;
  --pomegranate: #c43e48;
  --saffron: #efbd61;
  --line: #d6dcd7;
  --white: #fff;
  --shadow: 0 16px 48px rgba(18, 43, 34, 0.16);
  --ui: "Manrope", sans-serif;
  --display: "Unbounded", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(239, 189, 97, 0.9);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  height: 430px;
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.brand-art,
.brand-shade,
.brand-content {
  position: absolute;
  inset: 0;
}

.brand-art {
  display: grid;
  grid-template-columns: 1.38fr 0.62fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  transform: scale(1.015);
}

.brand-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #294a3e;
}

.brand-photo--main {
  grid-row: 1 / span 2;
}

.brand-shade {
  background: linear-gradient(180deg, rgba(15, 35, 29, 0.06) 15%, rgba(12, 30, 24, 0.88) 100%);
}

.brand-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) 22px 24px;
}

.demo-badge {
  align-self: flex-start;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(15, 35, 29, 0.34);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
}

.brand-kicker,
.section-kicker,
.mobile-heading p,
.cart-sheet__header p {
  margin: 0 0 8px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.brand-name {
  max-width: 560px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(35px, 11vw, 58px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.brand-name span {
  color: var(--saffron);
}

.brand-description {
  max-width: 430px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.5;
}

.brand-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
}

.brand-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ee2a8;
  box-shadow: 0 0 0 4px rgba(126, 226, 168, 0.15);
}

.menu-panel {
  min-width: 0;
  padding-bottom: 120px;
}

.mobile-heading {
  display: none;
}

.menu-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 34px 20px 24px;
}

.menu-intro .section-kicker {
  color: var(--pomegranate);
}

.menu-intro h2,
.menu-section__heading h2,
.sheet h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.menu-intro h2 {
  max-width: 480px;
  font-size: clamp(25px, 7vw, 38px);
  line-height: 1.12;
}

.menu-intro__note {
  max-width: 440px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.menu-tools {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: 10px 0 0;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 245, 241, 0.93);
  backdrop-filter: blur(16px);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 20px 9px;
}

.search-box > svg {
  position: absolute;
  left: 15px;
  width: 20px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(19, 46, 36, 0.06);
  appearance: none;
}

.search-box input:focus {
  border-color: var(--forest-light);
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

#clearSearch {
  position: absolute;
  right: 9px;
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#clearSearch.is-visible {
  display: block;
}

.category-nav {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 20px 10px;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar,
.menu-section--popular .dish-grid::-webkit-scrollbar {
  display: none;
}

.category-nav button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.category-nav button.is-active {
  border-color: var(--forest);
  color: var(--white);
  background: var(--forest);
}

.menu-content {
  padding: 0 20px;
}

.menu-section {
  padding: 34px 0 4px;
  scroll-margin-top: 116px;
}

.menu-section__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

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

.menu-section__heading p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.menu-section__heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.dish-grid {
  display: grid;
}

.dish-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 16px;
  min-height: 145px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

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

.dish-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.dish-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.dish-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dish-card__bottom {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  margin-top: auto;
}

.dish-card__bottom span {
  color: var(--ink-soft);
  font-size: 11px;
}

.dish-card__bottom strong {
  font-size: 15px;
}

.dish-card__visual {
  position: relative;
  min-height: 112px;
}

.dish-card__visual img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  background: #d9dfda;
}

.add-button {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 5px 16px rgba(11, 41, 31, 0.25);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.tag-row span {
  padding: 4px 7px;
  border-radius: 5px;
  color: #7e2430;
  background: #f8e4e5;
  font-size: 10px;
  font-weight: 700;
}

.menu-section--popular .dish-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.dish-card--featured {
  position: relative;
  display: flex;
  flex: 0 0 78vw;
  max-width: 330px;
  min-height: 340px;
  flex-direction: column-reverse;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background: var(--forest);
  scroll-snap-align: start;
}

.dish-card--featured .dish-card__visual {
  position: absolute;
  inset: 0;
}

.dish-card--featured .dish-card__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 30, 24, 0.94) 100%);
  content: "";
}

.dish-card--featured .dish-card__visual img {
  border-radius: 0;
}

.dish-card--featured .dish-card__copy {
  z-index: 1;
  padding: 22px;
}

.dish-card--featured h3 {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.dish-card--featured p,
.dish-card--featured .dish-card__bottom span {
  color: rgba(255, 255, 255, 0.75);
}

.dish-card--featured .add-button {
  right: 15px;
  bottom: 15px;
  color: var(--forest);
  background: var(--saffron);
}

.dish-card--featured .tag-row span {
  color: var(--white);
  background: rgba(196, 62, 72, 0.82);
}

.empty-state {
  margin: 54px 20px;
  padding: 30px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

.empty-state span {
  font-family: var(--display);
  font-size: 18px;
}

.empty-state p {
  color: var(--ink-soft);
  font-size: 13px;
}

.empty-state button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.menu-footer {
  margin: 42px 20px 0;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.round-button,
.sheet__close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.round-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.cart-bar {
  position: fixed;
  z-index: 30;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 14px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  min-height: 62px;
  padding: 8px 18px 8px 10px;
  border: 0;
  border-radius: 17px;
  color: var(--white);
  background: var(--forest);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.cart-bar[hidden] {
  display: none;
}

.cart-bar__count {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--saffron);
  font-size: 12px;
  font-weight: 800;
}

.cart-bar__label {
  padding-left: 12px;
  text-align: left;
  font-weight: 700;
}

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

.sheet {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.sheet::backdrop {
  background: rgba(8, 24, 19, 0.58);
  backdrop-filter: blur(4px);
}

.sheet__surface {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  max-height: 92vh;
  border-radius: 24px 24px 0 0;
  background: var(--paper-bright);
  box-shadow: 0 -18px 52px rgba(9, 31, 24, 0.22);
  animation: sheet-up 240ms cubic-bezier(0.22, 0.8, 0.35, 1);
}

.sheet__close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  font-size: 26px;
  line-height: 1;
}

.product-sheet__image {
  display: block;
  width: 100%;
  height: min(43vh, 380px);
  object-fit: cover;
  background: #d9dfda;
}

.product-sheet__body {
  padding: 25px 20px max(22px, env(safe-area-inset-bottom));
}

.product-sheet h2 {
  font-size: 25px;
}

.product-sheet__body > p,
.info-sheet > p,
.demo-sheet > p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.product-sheet__meta {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-sheet__meta span {
  color: var(--ink-soft);
  font-size: 13px;
}

.product-sheet__meta strong {
  font-size: 18px;
}

.product-sheet__action {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.stepper {
  display: grid;
  grid-template-columns: 44px 32px 44px;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-align: center;
}

.stepper button {
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.stepper button:disabled {
  color: #aeb7b2;
}

.stepper span {
  font-weight: 700;
}

.primary-button {
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--forest);
  font-weight: 700;
  cursor: pointer;
}

.primary-button--wide {
  width: 100%;
}

.cart-sheet {
  padding: 25px 20px max(22px, env(safe-area-inset-bottom));
}

.cart-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cart-sheet__header p {
  color: var(--pomegranate);
}

.cart-sheet__header h2 {
  font-size: 27px;
}

.sheet__close--inline {
  position: static;
  border: 1px solid var(--line);
}

.cart-items {
  border-top: 1px solid var(--line);
}

.cart-suggestions {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cart-suggestions[hidden] {
  display: none;
}

.cart-suggestions__heading {
  margin-bottom: 12px;
}

.cart-suggestions__heading h3 {
  margin: 0;
  font-size: 16px;
}

.cart-suggestions__heading p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.cart-suggestions__list {
  display: grid;
  gap: 9px;
}

.cart-suggestion {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  background: var(--paper);
}

.cart-suggestion img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-suggestion__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.cart-suggestion__copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-suggestion__copy span {
  color: var(--ink-soft);
  font-size: 11px;
}

.cart-suggestion button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--forest);
  background: var(--saffron);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.cart-item__copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item__copy span {
  color: var(--ink-soft);
  font-size: 12px;
}

.stepper--small {
  grid-template-columns: 32px 24px 32px;
  min-height: 38px;
  border-radius: 11px;
}

.stepper--small button {
  font-size: 18px;
}

.cart-summary {
  padding-top: 22px;
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.cart-summary p {
  margin: 12px 0 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.info-sheet,
.demo-sheet {
  padding: 38px 24px max(28px, env(safe-area-inset-bottom));
}

.info-sheet .section-kicker,
.demo-sheet .section-kicker {
  color: var(--pomegranate);
}

.info-sheet h2,
.demo-sheet h2 {
  max-width: 520px;
  font-size: 26px;
}

.info-sheet dl {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.info-sheet dl div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.info-sheet dt {
  color: var(--ink-soft);
}

.info-sheet dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.demo-sheet {
  text-align: center;
}

.demo-sheet__mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--forest);
  font-size: 28px;
}

.demo-sheet .section-kicker {
  margin-top: 0;
}

.demo-sheet > p:not(.section-kicker) {
  max-width: 450px;
  margin: 14px auto 24px;
}

.toast {
  position: fixed;
  z-index: 80;
  top: 16px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

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

@media (min-width: 760px) {
  .app-shell {
    display: grid;
    grid-template-columns: minmax(340px, 38vw) minmax(0, 1fr);
  }

  .brand-panel {
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .brand-art {
    grid-template-columns: 1fr 0.64fr;
  }

  .brand-content {
    padding: 30px clamp(28px, 4vw, 64px) 42px;
  }

  .brand-name {
    font-size: clamp(40px, 5.2vw, 76px);
  }

  .menu-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.55fr);
    align-items: end;
    padding: 58px clamp(34px, 5vw, 74px) 34px;
  }

  .menu-intro__note {
    justify-self: end;
  }

  .menu-tools {
    padding-top: 14px;
  }

  .search-box,
  .menu-content,
  .menu-footer {
    margin-right: clamp(34px, 5vw, 74px);
    margin-left: clamp(34px, 5vw, 74px);
  }

  .category-nav {
    padding-right: clamp(34px, 5vw, 74px);
    padding-left: clamp(34px, 5vw, 74px);
  }

  .menu-content {
    padding: 0;
  }

  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .menu-section--popular .dish-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .dish-card--featured {
    width: auto;
    min-height: 330px;
  }

  .dish-card {
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  .cart-bar {
    right: clamp(34px, 5vw, 74px);
    left: calc(38vw + clamp(34px, 5vw, 74px));
  }

  .sheet[open] {
    display: grid;
    padding: 28px;
    place-items: center;
  }

  .sheet__surface {
    position: relative;
    width: min(620px, 100%);
    max-height: min(780px, calc(100vh - 56px));
    border-radius: 22px;
  }

  .product-sheet {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    width: min(820px, 100%);
  }

  .product-sheet__image {
    height: 100%;
    min-height: 520px;
  }

  .product-sheet__body {
    display: flex;
    flex-direction: column;
    padding: 46px 32px 30px;
  }

  .product-sheet__meta {
    margin-top: auto;
  }
}

@media (min-width: 1180px) {
  .dish-card {
    grid-template-columns: minmax(0, 1fr) 124px;
  }

  .dish-card--featured {
    min-height: 390px;
  }
}

@media (max-width: 759px) {
  .mobile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 0;
  }

  .mobile-heading p {
    margin-bottom: 3px;
    color: var(--pomegranate);
    font-size: 10px;
  }

  .mobile-heading strong {
    font-family: var(--display);
    font-size: 14px;
  }
}

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