@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/montserrat-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/montserrat-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/montserrat-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --olive-950: #23301d;
  --olive-900: #2f421f;
  --olive-800: #405b28;
  --olive-700: #5d7c31;
  --olive-600: #75963a;
  --olive-200: #dce7c5;
  --olive-100: #edf3e1;
  --olive-50: #f6f8f0;
  --cream: #fcfaf5;
  --cream-strong: #f5efdf;
  --paper: #ffffff;
  --ink: #202a20;
  --text: #475047;
  --muted: #7a8278;
  --line: #e4e7de;
  --honey: #e7b74d;
  --honey-pale: #fff2c8;
  --danger: #a84e42;
  --shadow-soft: 0 10px 28px rgba(39, 56, 29, 0.07);
  --shadow-card: 0 20px 55px rgba(39, 56, 29, 0.12);
  --radius-sm: 13px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.has-bottom-nav {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

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

h1,
h2,
h3,
strong {
  color: var(--ink);
}

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

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

button {
  padding: 0;
  border: 0;
  cursor: pointer;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(93, 124, 49, 0.42);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-main {
  min-height: calc(100vh - 78px);
}

.page-container {
  padding-top: 28px;
  padding-bottom: 72px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--olive-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--honey);
  border-radius: 99px;
  content: "";
}

/* Location selection */
.selection-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  overflow: hidden;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 14% 0%, rgba(117, 150, 58, 0.12), transparent 34%),
    linear-gradient(145deg, #263d20 0%, #182d19 58%, #142716 100%);
}

.selection-page::before,
.selection-page::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.selection-page::before {
  top: 12%;
  right: 18%;
  width: 190px;
  height: 190px;
  background: rgba(184, 162, 53, 0.08);
}

.selection-page::after {
  right: -120px;
  bottom: -170px;
  width: 440px;
  height: 440px;
  border: 78px solid rgba(231, 183, 77, 0.065);
}

.selection-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.selection-ambient-one {
  bottom: -260px;
  left: 9%;
  width: 460px;
  height: 460px;
  border: 86px solid rgba(122, 142, 55, 0.08);
}

.selection-ambient-two {
  top: -210px;
  left: -150px;
  width: 430px;
  height: 430px;
  background: rgba(117, 150, 58, 0.08);
  filter: blur(4px);
}

.selection-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 38px;
}

.selection-intro {
  color: rgba(255, 255, 255, 0.75);
}

.selection-logo {
  width: 210px;
  height: auto;
  margin-bottom: 36px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.selection-intro .eyebrow {
  color: var(--olive-200);
}

.selection-intro h1 {
  max-width: 680px;
  margin-bottom: 20px;
  color: var(--paper);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.selection-lead {
  max-width: 540px;
  margin-bottom: 24px;
  font-size: 16px;
}

.selection-note {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 600;
}

.selection-note svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--honey);
}

.canteen-picker {
  padding: 24px;
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(12, 23, 10, 0.27);
}

.picker-heading {
  margin-bottom: 20px;
}

.picker-heading h2 {
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.canteen-list {
  display: grid;
  gap: 10px;
}

.canteen-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  padding: 17px 16px;
  background: #f8faf3;
  border: 1px solid var(--olive-200);
  border-radius: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.canteen-card:hover {
  border-color: #b8ce91;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.canteen-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 14px;
  color: var(--olive-700);
  box-shadow: 0 5px 15px rgba(43, 62, 30, 0.08);
}

.canteen-icon svg {
  width: 23px;
  height: 23px;
}

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

.canteen-copy strong {
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1.35;
}

.canteen-copy > span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.canteen-copy small {
  margin-top: 7px;
  color: var(--olive-700);
  font-size: 9px;
  font-weight: 700;
}

.canteen-arrow {
  width: 22px;
  color: var(--olive-600);
}

@media (max-width: 619px) {
  .selection-page {
    align-items: start;
    padding: max(64px, env(safe-area-inset-top)) 0 max(54px, env(safe-area-inset-bottom));
  }

  .selection-page::before {
    top: 100px;
    right: 21%;
    width: 142px;
    height: 142px;
  }

  .selection-page::after {
    right: -185px;
    bottom: -130px;
    width: 390px;
    height: 390px;
    border-width: 64px;
  }

  .selection-ambient-one {
    bottom: -235px;
    left: 22%;
    width: 360px;
    height: 360px;
    border-width: 62px;
  }

  .selection-ambient-two {
    display: none;
  }

  .selection-layout {
    width: calc(100% - 16px);
    gap: 36px;
  }

  .selection-logo {
    width: 168px;
    margin: 0 0 34px 2px;
  }

  .selection-intro {
    padding-inline: 2px;
  }

  .selection-intro .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .selection-intro h1 {
    max-width: 350px;
    margin-bottom: 21px;
    font-size: clamp(34px, 10.3vw, 40px);
    line-height: 1.05;
  }

  .selection-note {
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .selection-note svg {
    width: 25px;
    height: 25px;
  }

  .canteen-picker {
    padding: 25px 24px 24px;
    border-radius: 27px;
  }

  .picker-heading {
    margin-bottom: 19px;
  }

  .picker-heading h2 {
    font-size: 24px;
  }

  .canteen-list {
    gap: 10px;
  }

  .canteen-card {
    min-height: 136px;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .canteen-arrow {
    width: 18px;
  }
}

/* Shared header */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(252, 250, 245, 0.93);
  border-bottom: 1px solid rgba(220, 224, 214, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 142px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.location-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 10px;
  border-radius: 13px;
}

.location-link:hover {
  background: var(--olive-50);
}

.location-link > svg:first-child {
  width: 21px;
  flex: 0 0 auto;
  color: var(--olive-700);
}

.location-link > span {
  min-width: 0;
  display: grid;
}

.location-link small {
  color: var(--muted);
  font-size: 9px;
}

.location-link strong {
  overflow: hidden;
  max-width: 43vw;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-arrow {
  width: 17px;
  flex: 0 0 auto;
  color: var(--muted);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.desktop-nav > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 13px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.desktop-nav > a:hover,
.desktop-nav > a.active {
  background: var(--olive-900);
  color: var(--paper);
}

.desktop-nav > a.active .cart-badge {
  background: var(--honey);
  color: var(--olive-950);
}

.cart-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  background: var(--olive-900);
  border-radius: 99px;
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

/* Catalog */
.catalog-intro {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(231, 183, 77, 0.27), transparent 28%),
    var(--olive-900);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.7);
}

.catalog-intro::before {
  position: absolute;
  right: 23%;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.catalog-intro > div:first-child {
  position: relative;
  z-index: 1;
}

.catalog-intro .eyebrow {
  color: var(--olive-200);
}

.catalog-intro h1 {
  margin-bottom: 9px;
  color: var(--paper);
  font-size: clamp(29px, 5vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.catalog-intro p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  font-size: 12px;
}

.catalog-mark {
  display: none;
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  transform: rotate(-3deg);
  text-align: center;
}

.catalog-mark span,
.catalog-mark strong {
  display: block;
  color: var(--paper);
  line-height: 1.1;
  text-transform: uppercase;
}

.catalog-mark span {
  font-size: 9px;
  letter-spacing: 0.15em;
}

.catalog-mark strong {
  margin-top: 3px;
  color: var(--honey);
  font-size: 15px;
}

.category-filter {
  display: flex;
  gap: 8px;
  margin: 24px -16px 18px;
  padding: 0 16px 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.category-chip {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.category-chip.active {
  background: var(--olive-900);
  border-color: var(--olive-900);
  color: var(--paper);
}

.product-grid {
  display: grid;
  gap: 16px;
}

.product-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.product-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.22 / 1;
  background: var(--cream-strong);
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .product-image-link img {
  transform: scale(1.025);
}

.product-category {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  color: var(--olive-800);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.image-action {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  color: var(--olive-900);
  backdrop-filter: blur(8px);
}

.image-action svg {
  width: 18px;
  height: 18px;
}

.product-body {
  padding: 17px;
}

.product-heading {
  min-height: 36px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.product-heading h2 {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.product-heading h2 a:hover {
  color: var(--olive-700);
}

.product-heading > span {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  flex: 0 0 auto;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.add-button,
.primary-link,
.secondary-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  background: var(--olive-900);
  border-radius: 13px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.add-button:hover,
.primary-link:hover {
  background: var(--olive-800);
  transform: translateY(-1px);
}

.add-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.quantity-control {
  height: 44px;
  display: grid;
  grid-template-columns: 40px 30px 40px;
  align-items: center;
  background: var(--olive-100);
  border: 1px solid var(--olive-200);
  border-radius: 13px;
  color: var(--olive-900);
  text-align: center;
}

.quantity-control button {
  height: 100%;
  background: transparent;
  color: var(--olive-900);
  font-size: 20px;
  line-height: 1;
}

.quantity-control button:hover {
  background: rgba(93, 124, 49, 0.08);
}

.quantity-control output {
  font-size: 12px;
  font-weight: 700;
}

.empty-catalog,
.filter-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty-catalog h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.empty-catalog p,
.filter-empty {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Dish page */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: var(--olive-700);
  font-size: 12px;
  font-weight: 700;
}

.back-link svg {
  width: 19px;
  height: 19px;
}

.dish-detail {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.dish-detail-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  background: var(--cream-strong);
}

.dish-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-detail-content {
  padding: 24px 20px;
}

.dish-detail-content h1 {
  margin-bottom: 22px;
  font-size: clamp(27px, 6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.detail-meta span {
  color: var(--muted);
}

.composition {
  padding: 6px 0 22px;
}

.composition h2 {
  margin-bottom: 8px;
  font-size: 15px;
}

.composition p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.detail-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-price {
  font-size: 25px;
  letter-spacing: -0.035em;
}

/* Cart */
.page-heading {
  margin-bottom: 24px;
}

.page-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(31px, 6vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-heading > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.notice-card {
  margin-bottom: 18px;
  padding: 15px;
  background: var(--honey-pale);
  border-radius: 14px;
  font-size: 12px;
}

.cart-empty {
  display: grid;
  min-height: 390px;
  place-items: center;
  align-content: center;
  padding: 44px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.empty-cart-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--olive-100);
  border-radius: 22px;
  color: var(--olive-700);
}

.empty-cart-icon svg {
  width: 31px;
  height: 31px;
}

.cart-empty h2 {
  margin-bottom: 7px;
  font-size: 20px;
}

.cart-empty p {
  max-width: 390px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.cart-layout {
  display: grid;
  gap: 16px;
}

.cart-items-card,
.cart-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.cart-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-list-heading h2 {
  margin-bottom: 1px;
  font-size: 17px;
}

.cart-list-heading span {
  color: var(--muted);
  font-size: 10px;
}

.text-button,
.remove-button {
  min-height: 34px;
  padding: 5px 4px;
  background: transparent;
  color: var(--danger);
  font-size: 10px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.text-button:hover,
.remove-button:hover {
  text-decoration: underline;
}

.cart-list {
  padding: 0 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item-image {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--cream-strong);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item-copy > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.cart-item-copy h3 {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.35;
}

.cart-item-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-actions > strong {
  font-size: 16px;
}

.cart-summary {
  padding: 21px;
}

.cart-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cart-summary-total > span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.cart-summary-total > strong {
  font-size: 30px;
  letter-spacing: -0.04em;
}

.minimum-order-hint {
  padding: 10px 12px;
  background: var(--olive-50);
  border: 1px solid var(--olive-200);
  border-radius: 11px;
  color: var(--olive-900) !important;
  font-size: 11px !important;
  line-height: 1.5;
}

.minimum-order-hint.is-warning {
  background: var(--honey-pale);
  border-color: #e2c45f;
  color: #654f08 !important;
}

.checkout-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.checkout-link {
  width: 100%;
  margin-bottom: 10px;
}

.secondary-link {
  width: 100%;
  background: var(--olive-100);
  color: var(--olive-900);
}

.secondary-link:hover {
  background: var(--olive-200);
}

/* Checkout and phone authentication */
.checkout-page {
  max-width: 760px;
}

.checkout-heading {
  margin-bottom: 20px;
}

.checkout-card {
  padding: 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.checkout-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.checkout-card-heading p {
  margin-bottom: 2px;
  color: var(--olive-700);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-card-heading h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.checkout-step-number,
.checkout-ready-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--olive-100);
  border-radius: 14px;
  color: var(--olive-800);
  font-size: 15px;
  font-weight: 700;
}

.checkout-ready-icon {
  background: var(--olive-900);
  color: var(--paper);
}

.checkout-ready-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.2;
}

.checkout-description {
  margin: 17px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.form-error {
  margin-bottom: 18px;
  padding: 13px 14px;
  background: #fbecea;
  border: 1px solid #efcbc6;
  border-radius: 13px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form-spacious {
  margin-top: 24px;
}

.auth-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--olive-700);
}

.auth-consent a,
.auth-policy-link a {
  color: var(--olive-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-policy-link {
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.auth-resend-form {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  text-align: center;
}

.resend-action {
  justify-self: center;
  padding: 0;
  background: transparent;
  color: var(--olive-700);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resend-action:hover {
  color: var(--olive-900);
}

.resend-action:disabled {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}

.resend-status {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.smartcaptcha-widget {
  min-height: 100px;
  max-width: 100%;
}

.smartcaptcha-status {
  margin: -6px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  font-size: 16px;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  outline: 0;
}

.form-field select:focus {
  background: var(--paper);
  border-color: var(--olive-600);
  box-shadow: 0 0 0 4px rgba(117, 150, 58, 0.13);
}

.form-field input:hover {
  border-color: #c9cfc0;
}

.form-field input:focus {
  background: var(--paper);
  border-color: var(--olive-600);
  box-shadow: 0 0 0 4px rgba(117, 150, 58, 0.13);
}

.form-field input::placeholder {
  color: #9ba196;
}

.form-field small {
  color: var(--muted);
  font-size: 10px;
}

.primary-action,
.logout-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.primary-action {
  width: 100%;
  background: var(--olive-900);
  color: var(--paper);
}

.primary-action:hover {
  background: var(--olive-800);
  transform: translateY(-1px);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.checkout-text-link {
  display: block;
  margin-top: 17px;
  color: var(--olive-700);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.checkout-text-link:hover {
  color: var(--olive-900);
}

.dev-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 13px 14px;
  background: var(--honey-pale);
  border: 1px solid #f0dc9a;
  border-radius: 13px;
}

.dev-code span {
  color: #72612f;
  font-size: 10px;
  font-weight: 600;
}

.dev-code strong {
  color: var(--olive-950);
  font-size: 17px;
  letter-spacing: 0.12em;
}

.account-details {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 20px 0 18px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.account-details > div {
  display: grid;
  gap: 2px;
  padding: 13px 15px;
  background: var(--cream);
}

.account-details dt {
  color: var(--muted);
  font-size: 9px;
}

.account-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.checkout-ready-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
}

.account-logout-form {
  margin-top: 18px;
}

.logout-button {
  width: 100%;
  background: var(--olive-100);
  color: var(--danger);
}

.logout-button:hover {
  background: #f5e5e1;
}

.checkout-order {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.checkout-order-heading,
.order-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.checkout-order-heading span,
.order-card-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--olive-700);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-order-heading h2,
.order-card-heading h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.checkout-order-heading > strong {
  flex: 0 0 auto;
  font-size: 20px;
}

.checkout-order-empty {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--olive-50);
  border-radius: 15px;
  text-align: center;
}

.checkout-order-empty p {
  margin: 0;
  font-size: 12px;
}

.checkout-order-list {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.checkout-order-item,
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.checkout-order-item:last-child,
.order-item:last-child {
  border-bottom: 0;
}

.checkout-order-item > div,
.order-item > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.checkout-order-item > div > strong,
.order-item > div > strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
}

.checkout-order-item span,
.order-item span {
  color: var(--muted);
  font-size: 10px;
}

.checkout-order-item > strong,
.order-item > strong {
  flex: 0 0 auto;
  font-size: 13px;
}

.order-form {
  display: grid;
  gap: 20px;
}

.payment-methods {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-methods legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.payment-method {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.payment-method:has(input:checked) {
  background: var(--olive-50);
  border-color: var(--olive-600);
}

.payment-method-static {
  grid-template-columns: minmax(0, 1fr);
  background: var(--olive-50);
  border-color: var(--olive-600);
  cursor: default;
}

.payment-method input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: var(--olive-700);
}

.payment-method > span {
  display: grid;
  gap: 3px;
}

.payment-method strong {
  font-size: 12px;
}

.payment-method small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.onsite-quote {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: var(--olive-50);
  border: 1px solid var(--olive-200);
  border-radius: 13px;
  color: var(--olive-900);
  font-size: 11px;
  line-height: 1.5;
}

.onsite-quote p {
  margin: 0;
}

.checkout-attempt-status {
  padding: 13px 14px;
  background: var(--olive-50);
  border: 1px solid var(--olive-200);
  border-radius: 13px;
  color: var(--olive-900);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

/* Customer orders */
.orders-page {
  max-width: 920px;
}

.orders-heading {
  margin-bottom: 24px;
}

.orders-auth-card {
  max-width: 560px;
}

.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.orders-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1;
  max-width: 430px;
  padding: 4px;
  background: var(--olive-100);
  border-radius: 14px;
}

.orders-tabs a {
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.orders-tabs a.active {
  background: var(--paper);
  color: var(--olive-900);
  box-shadow: 0 4px 14px rgba(39, 56, 29, 0.08);
}

.orders-logout {
  padding: 10px 12px;
  background: transparent;
  color: var(--danger);
  font-size: 11px;
  font-weight: 600;
}

.orders-list {
  display: grid;
  gap: 13px;
}

.order-summary {
  display: grid;
  gap: 15px;
  padding: 19px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, transform 160ms ease;
}

.order-summary:hover {
  border-color: var(--olive-200);
  transform: translateY(-1px);
}

.order-summary-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.order-summary-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--olive-700);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.order-summary-heading h2 {
  margin: 0;
  font-size: 18px;
}

.order-summary-heading > strong {
  flex: 0 0 auto;
  font-size: 18px;
}

.order-summary-canteen {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.order-summary-facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.order-summary-facts > div {
  display: grid;
  gap: 2px;
}

.order-summary-facts dt {
  color: var(--muted);
  font-size: 9px;
}

.order-summary-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.orders-empty {
  padding: 30px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.orders-empty h2 {
  margin-bottom: 7px;
  font-size: 19px;
}

.orders-empty p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
}

.orders-next {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 12px 18px;
  background: var(--olive-100);
  border-radius: 13px;
  color: var(--olive-900);
  font-size: 11px;
  font-weight: 700;
}

.order-page {
  max-width: 960px;
}

.order-layout {
  display: grid;
  gap: 16px;
}

.order-card {
  padding: 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.order-card-heading > strong {
  font-size: 19px;
}

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

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.order-total span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.order-total strong {
  font-size: 28px;
}

.order-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.order-facts > div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--cream);
}

.order-facts dt {
  color: var(--muted);
  font-size: 9px;
}

.order-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.order-facts .order-fact-accent {
  background: var(--olive-100);
}

.order-notice {
  margin-top: 18px;
  padding: 14px;
  background: var(--honey-pale);
  border-radius: 13px;
  color: #66572b;
  font-size: 11px;
}

.order-payment-notice {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.order-notice-danger {
  background: #f8e4df;
  color: #7d2f24;
}

.order-contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  margin-top: 18px;
  padding: 18px;
  background: var(--olive-100);
  border: 1px solid var(--olive-200);
  border-radius: 18px;
}

.order-contact-card h2 {
  margin-bottom: 3px;
  font-size: 16px;
}

.order-contact-card p {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-size: 11px;
}

.order-contact-card > a {
  flex: 0 0 auto;
  color: var(--olive-900);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Shared legal and contact footer */
.site-footer {
  padding: 24px 0;
  background: var(--olive-950);
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
}

.site-footer-grid {
  display: grid;
  gap: 16px;
}

.site-footer-identity,
.site-footer-contacts,
.site-footer-legal {
  display: grid;
  align-content: start;
  gap: 5px;
}

.site-footer strong {
  color: var(--paper);
  font-size: 12px;
}

.site-footer a {
  width: fit-content;
  color: var(--paper);
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-legal a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.pickup-form,
.payment-action-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.payment-action-form p,
.pickup-deadline-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 7px max(12px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(39, 56, 29, 0.08);
  backdrop-filter: blur(15px);
}

.bottom-nav-item {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.bottom-nav-item.active {
  background: var(--olive-50);
  color: var(--olive-800);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-icon {
  position: relative;
}

.bottom-nav-icon .cart-badge {
  position: absolute;
  top: -8px;
  right: -14px;
  border: 2px solid var(--paper);
}

/* Errors */
.error-page {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  align-content: center;
  padding: 48px 16px;
  text-align: center;
}

.error-page > span {
  color: var(--olive-200);
  font-size: clamp(80px, 22vw, 190px);
  font-weight: 700;
  line-height: 0.9;
}

.error-page h1 {
  margin: 14px 0 8px;
  font-size: 28px;
}

.error-page p {
  max-width: 470px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 620px) {
  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .selection-layout {
    gap: 52px;
  }

  .canteen-picker {
    padding: 32px;
  }

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

  .catalog-intro {
    padding: 36px;
  }

  .catalog-mark {
    display: block;
  }

  .dish-detail-content {
    padding: 34px;
  }

  .cart-item {
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: center;
  }

  .cart-item-image {
    width: 90px;
    height: 90px;
  }

  .cart-item-actions {
    grid-column: auto;
    display: grid;
    justify-items: end;
  }

  .checkout-card {
    padding: 30px;
  }

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

  .order-summary-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  body.has-bottom-nav {
    padding-bottom: 0;
  }

  .page-container {
    padding-top: 36px;
  }

  .bottom-nav {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .site-footer-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(220px, 0.8fr);
    gap: 30px;
  }

  .location-link {
    margin-left: 18px;
  }

  .location-link strong {
    max-width: 250px;
    font-size: 11px;
  }

  .dish-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }

  .dish-detail-image {
    min-height: 560px;
    aspect-ratio: auto;
  }

  .dish-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 22px;
  }

  .cart-summary {
    position: sticky;
    top: 100px;
  }

  .order-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    align-items: start;
    gap: 22px;
  }

  .order-status-card {
    position: sticky;
    top: 100px;
  }
}

@media (min-width: 900px) {
  .selection-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.72fr);
    align-items: center;
    gap: 70px;
  }

  .selection-logo {
    width: 230px;
    margin-bottom: 54px;
  }

  .canteen-picker {
    padding: 36px;
    border-radius: 30px;
  }

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

@media (min-width: 1150px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 410px) {
  .brand img {
    width: 112px;
  }

  .header-inner {
    gap: 7px;
  }

  .location-link {
    padding-right: 2px;
  }

  .location-link > svg:first-child {
    display: none;
  }

  .product-footer {
    align-items: end;
  }

  .add-button {
    padding-inline: 13px;
  }

  .quantity-control {
    grid-template-columns: 36px 28px 36px;
  }
}

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

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