:root {
  --cream: #fdf8e8;
  --cream-soft: #f7f0dc;
  --chocolate: #3f2a22;
  --chocolate-mid: #5a4036;
  --chocolate-soft: #6e574c;
  --ink: #2c221c;
  --line: rgba(63, 42, 34, 0.28);
  --white: #fffdf6;
  --danger: #8b3a2f;
  --ok: #3d6b4f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(44, 34, 28, 0.14);
  --radius: 12px;
  --max: 1120px;
  --page-wide: 1480px;
  --header-height: 96px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-ui: 220ms;
  --dur-panel: 320ms;
}

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

html {
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-transition-out 140ms ease both;
}

::view-transition-new(root) {
  animation: page-transition-in 260ms var(--ease-out) both;
}

@keyframes page-transition-out {
  to {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@keyframes page-transition-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

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

button,
.add,
.btn,
.cart-btn,
.icon-btn {
  transition: transform var(--dur-press) var(--ease-out),
    background-color var(--dur-ui) ease, color var(--dur-ui) ease,
    opacity var(--dur-ui) ease;
}

button:active,
.add:active,
.btn:active,
.cart-btn:active,
.icon-btn:active {
  transform: scale(0.97);
}

/* ——— Dark app header (shared by every page) ——— */
.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  min-height: var(--header-height);
  background: rgba(63, 42, 34, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* The brand is pulled out of the flow so it stays optically centered,
   no matter how wide the search box or the nav ends up. */
.app-header .brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
  color: var(--cream);
  transition: opacity 160ms ease;
}

.app-header .brand:hover {
  opacity: 0.82;
}

.app-header .brand.is-active {
  color: var(--cream);
}

.app-header .brand img {
  display: block;
  width: clamp(145px, 16vw, 190px);
  height: auto;
}

.app-header:has(.hero-search) .hero-search {
  grid-column: 1;
  grid-row: 1;
}

.header-nav {
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
}

.hero-search {
  width: min(100%, 280px);
  justify-self: start;
}

.hero-search__field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.2rem 0.25rem 0.2rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.94);
  color: var(--chocolate);
  box-shadow: inset 0 0 0 1px rgba(63, 42, 34, 0.08);
  transition: box-shadow var(--dur-ui) var(--ease-out),
    background-color var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out);
}

.hero-search__field:hover {
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(63, 42, 34, 0.14);
}

.hero-search__field:focus-within {
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(63, 42, 34, 0.45),
    0 8px 22px rgba(44, 34, 28, 0.18);
}

.hero-search__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--chocolate-soft);
  opacity: 0.85;
  transition: color var(--dur-ui) ease, opacity var(--dur-ui) ease;
}

.hero-search__field:focus-within .hero-search__icon {
  color: var(--chocolate);
  opacity: 1;
}

.hero-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--chocolate);
  padding: 0.45rem 0.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-search input::placeholder {
  color: var(--chocolate-soft);
  opacity: 0.72;
  font-weight: 400;
}

.hero-search input::-webkit-search-decoration,
.hero-search input::-webkit-search-cancel-button,
.hero-search input::-webkit-search-results-button,
.hero-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.hero-search__submit {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--chocolate);
  color: var(--cream);
  cursor: pointer;
  transition: background-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out),
    opacity var(--dur-ui) ease;
}

.hero-search__submit:hover {
  background: var(--chocolate-mid);
}

.hero-search__submit:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.icon-btn,
.cart-btn {
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 1.2rem;
  position: relative;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-nav a {
  font-size: 0.88rem;
  color: rgba(253, 248, 232, 0.78);
  white-space: nowrap;
  transition: color 160ms ease;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--cream);
}

.header-nav a.is-active {
  font-weight: 600;
}

.cart-count {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--chocolate);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ——— Home ——— */
body.home-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.home-page .app-header {
  flex-shrink: 0;
}

body.home-page .hero {
  flex: 0 0 auto;
  min-height: calc(100dvh - var(--header-height));
}

body.home-page .hero-content {
  min-height: calc(100dvh - var(--header-height));
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-height));
  color: var(--cream);
  background: url("/images/hero-coffee-poster.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.76) 0%,
    rgba(0, 0, 0, 0.56) 24%,
    rgba(0, 0, 0, 0.2) 58%,
    rgba(0, 0, 0, 0) 82%
  );
  content: "";
  pointer-events: none;
}

.hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero-video.is-active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 14vh, 9rem) 2rem 4.5rem;
  display: grid;
  gap: 1.1rem;
  align-content: end;
  min-height: calc(100dvh - var(--header-height));
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.2rem, 11vw, 8rem);
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(88vw, 720px);
  height: auto;
}

.hero-copy {
  margin: 0;
  max-width: 28rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: rgba(253, 248, 232, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
}

.hero-link {
  justify-self: end;
  margin-top: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
  transition: opacity 160ms ease;
}

.hero-link:hover {
  opacity: 0.8;
}

/* ——— Sections ——— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.5rem 4rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-title {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--chocolate);
  line-height: 1.05;
}

.section-title.serif {
  font-family: var(--serif);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.02em;
}

.section-rule {
  height: 1.5px;
  background: var(--chocolate);
  border: 0;
  margin: 0;
}

.section-rule.is-light {
  background: rgba(253, 248, 232, 0.55);
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title-row .price-tag {
  font-size: 1rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.9;
}

/* ——— Product grid ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  display: grid;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 420ms var(--ease-out) forwards;
}

.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 50ms; }
.product-card:nth-child(3) { animation-delay: 100ms; }

.product-card figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-soft);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover img {
    transform: scale(1.04);
  }
}

.product-card h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--chocolate);
  line-height: 1.25;
}

.product-card .price {
  margin: 0;
  color: var(--chocolate-mid);
}

/* ——— Menu home ——— */
.menu-shell {
  width: min(100%, var(--page-wide));
  max-width: none;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem) 4rem;
  scroll-margin-top: var(--header-height);
}

.menu-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.menu-toolbar h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  color: var(--chocolate);
  line-height: 1;
}

.menu-lead {
  margin: 0.45rem 0 0;
  color: var(--chocolate-soft);
  font-size: 0.95rem;
  max-width: 36ch;
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  position: sticky;
  top: calc(var(--header-height) + 0.5rem);
  z-index: 20;
  padding: 0.55rem 0;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
}

.menu-chip {
  border: 1px solid rgba(63, 42, 34, 0.22);
  background: transparent;
  color: var(--chocolate-mid);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out),
    background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.menu-chip.is-active {
  background: var(--chocolate);
  border-color: var(--chocolate);
  color: var(--cream);
}

@media (hover: hover) and (pointer: fine) {
  .menu-chip:hover:not(.is-active) {
    border-color: var(--chocolate);
    color: var(--chocolate);
  }
}

.menu-empty {
  grid-column: 1 / -1;
  color: var(--chocolate-soft);
}

.menu-search-empty {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
  max-width: 46rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px dashed rgba(63, 42, 34, 0.22);
  border-radius: 12px;
  background: rgba(255, 253, 246, 0.72);
  color: var(--chocolate-soft);
}

.menu-search-empty__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.15rem;
  border-radius: 50%;
  background: rgba(63, 42, 34, 0.08);
  color: var(--chocolate);
  font-size: 1.6rem;
  line-height: 1;
}

.menu-search-empty strong {
  color: var(--chocolate);
}

.menu-search-empty p {
  margin: 0;
  line-height: 1.5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.category-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: rise-in 440ms var(--ease-out) forwards;
  border-radius: 2px;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  background: var(--cream-soft);
}

.category-detail {
  margin-top: 0.5rem;
}

.is-entering {
  animation: menu-view-enter 300ms var(--ease-out) both;
}

@keyframes menu-view-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-detail[hidden],
[data-menu-browse][hidden] {
  display: none !important;
}

.back-cats {
  border: 0;
  background: transparent;
  color: var(--chocolate-soft);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  transition: color 160ms ease, transform var(--dur-press) var(--ease-out);
}

.back-cats:hover {
  color: var(--chocolate);
}

.category-detail .menu-list {
  grid-template-columns: 1fr;
}

.category-detail.is-search-results .menu-detail {
  grid-template-columns: minmax(0, 1fr);
}

.category-detail.is-search-results .menu-visual {
  display: none;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 480ms var(--ease-out);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0.15), rgba(20, 12, 8, 0.62));
  z-index: -1;
  transition: opacity 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .category-tile:hover img {
    transform: scale(1.05);
  }
}

.category-tile h2 {
  margin: 0;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* ——— Menu band (cafes / teas) ——— */
.menu-band {
  padding: 3.5rem 1.5rem 4rem;
}

.menu-band .inner {
  max-width: var(--max);
  margin: 0 auto;
}

.menu-band.is-dark {
  background: var(--chocolate);
  color: var(--cream);
}

.menu-band.is-light {
  background: var(--cream);
  color: var(--chocolate);
}

.menu-band .section-title {
  color: inherit;
  font-family: var(--serif);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.menu-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
}

.category-detail .menu-list {
  grid-template-columns: 1fr;
}

.menu-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.45rem 0.85rem;
  align-items: start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid currentColor;
  border-bottom-color: var(--line);
  opacity: 0;
  transform: translateY(8px);
  animation: rise-in 380ms var(--ease-out) forwards;
}

.menu-band.is-dark .menu-item {
  border-bottom-color: rgba(253, 248, 232, 0.22);
}

.menu-item-photos {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-soft);
  cursor: zoom-in;
}

.menu-item-photos__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
}

.menu-item-photos__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 280ms var(--ease-out);
}

.menu-item-photos__grid img:only-child {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.menu-item-photos.is-empty {
  background:
    linear-gradient(135deg, rgba(63, 42, 34, 0.08), rgba(63, 42, 34, 0.02));
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .menu-item-photos:not(.is-empty):hover img {
    transform: scale(1.06);
  }
}

.menu-item-photos-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(28, 16, 12, 0.72);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.menu-band.is-dark .menu-item-photos {
  background: rgba(253, 248, 232, 0.08);
}

/* ——— Photo gallery lightbox ——— */
body.photo-gallery-open {
  overflow: hidden;
  touch-action: none;
}

.photo-gallery {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: stretch;
  padding: 0;
}

.photo-gallery[hidden] {
  display: none;
}

.photo-gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 8, 0.9);
  opacity: 0;
  transition: opacity var(--dur-panel) ease;
}

.photo-gallery__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  padding: max(0.85rem, env(safe-area-inset-top, 0px))
    max(0.95rem, env(safe-area-inset-right, 0px))
    max(0.9rem, env(safe-area-inset-bottom, 0px))
    max(0.95rem, env(safe-area-inset-left, 0px));
  border-radius: 0;
  background: var(--chocolate);
  color: var(--cream);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity var(--dur-panel) var(--ease-out),
    transform var(--dur-panel) var(--ease-out);
}

.photo-gallery.is-open .photo-gallery__backdrop {
  opacity: 1;
}

.photo-gallery.is-open .photo-gallery__dialog {
  opacity: 1;
  transform: none;
}

.photo-gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.photo-gallery__close {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(253, 248, 232, 0.1);
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.photo-gallery__close:hover {
  background: rgba(253, 248, 232, 0.2);
}

.photo-gallery__close:focus-visible,
.photo-gallery__nav:focus-visible,
.photo-gallery__dot:focus-visible,
.photo-gallery__zoom-btn:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.photo-gallery__stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(253, 248, 232, 0.05);
  touch-action: none;
  user-select: none;
}

.photo-gallery__viewport {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.photo-gallery__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  margin-block: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(253, 248, 232, 0.16);
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: none;
  transition: background-color var(--dur-ui) ease, opacity var(--dur-ui) ease;
}

.photo-gallery__nav--prev {
  left: 0.65rem;
}

.photo-gallery__nav--next {
  right: 0.65rem;
}

.photo-gallery__nav:hover {
  background: rgba(253, 248, 232, 0.3);
}

button.photo-gallery__nav:active {
  transform: none;
}

.photo-gallery__nav[hidden] {
  display: none;
}

.photo-gallery__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  will-change: transform;
  transition: opacity 160ms var(--ease-out);
  cursor: zoom-in;
}

.photo-gallery__img.is-zoomed {
  cursor: grab;
  transition: none;
}

.photo-gallery__img.is-zoomed:active {
  cursor: grabbing;
}

.photo-gallery__img.is-exit-next {
  opacity: 0;
}

.photo-gallery__img.is-exit-prev {
  opacity: 0;
}

.photo-gallery__img.is-enter-next {
  opacity: 0;
}

.photo-gallery__img.is-enter-prev {
  opacity: 0;
}

.photo-gallery__zoom {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(28, 18, 12, 0.72);
  backdrop-filter: blur(8px);
}

.photo-gallery__zoom-btn {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.photo-gallery__zoom-btn:hover:not(:disabled) {
  background: rgba(253, 248, 232, 0.14);
}

.photo-gallery__zoom-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.photo-gallery__zoom-label {
  min-width: 3.4rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.photo-gallery__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1rem;
  padding-top: 0.1rem;
}

.photo-gallery__title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-gallery__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.photo-gallery__counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(253, 248, 232, 0.72);
  font-variant-numeric: tabular-nums;
}

.photo-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 100%;
}

.photo-gallery__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(253, 248, 232, 0.28);
  cursor: pointer;
  transition: background-color var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out);
}

.photo-gallery__dot.is-active {
  background: var(--cream);
  transform: scale(1.15);
}

@media (max-width: 720px) {
  .photo-gallery__dialog {
    padding:
      max(0.65rem, env(safe-area-inset-top, 0px))
      max(0.65rem, env(safe-area-inset-right, 0px))
      max(0.75rem, env(safe-area-inset-bottom, 0px))
      max(0.65rem, env(safe-area-inset-left, 0px));
    gap: 0.5rem;
  }

  .photo-gallery__header {
    gap: 0.5rem;
  }

  .photo-gallery__title {
    font-size: 1.1rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .photo-gallery__close {
    width: 2.75rem;
    height: 2.75rem;
  }

  .photo-gallery__nav {
    width: 2.6rem;
    height: 2.6rem;
  }

  .photo-gallery__nav--prev {
    left: 0.4rem;
  }

  .photo-gallery__nav--next {
    right: 0.4rem;
  }

  .photo-gallery__zoom {
    bottom: 0.55rem;
    gap: 0.15rem;
  }

  .photo-gallery__zoom-btn {
    min-width: 2.6rem;
    height: 2.6rem;
  }

  .photo-gallery__zoom-label {
    min-width: 3.6rem;
  }
}

@media (max-width: 420px) {
  .photo-gallery__nav--prev,
  .photo-gallery__nav--next {
    opacity: 0.92;
  }
}

.menu-item-body {
  min-width: 0;
}

.menu-item h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-item p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

.menu-item .price {
  margin: 0.15rem 0 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.add {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #c4a484;
  color: var(--cream);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.menu-band.is-light .add {
  background: var(--chocolate);
}

@media (hover: hover) and (pointer: fine) {
  .add:hover {
    filter: brightness(1.08);
  }
}

.menu-visual {
  border-radius: 2px;
  overflow: hidden;
  min-height: 420px;
  background: var(--cream-soft);
}

.menu-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* ——— Info cards / Orders ——— */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.info-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 190px;
  overflow: hidden;
  background: var(--chocolate);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.info-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card .copy {
  padding: 1.2rem 1.15rem;
  display: grid;
  align-content: center;
  gap: 0.45rem;
}

.info-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(253, 248, 232, 0.92);
}

/* ——— Orders page ——— */
.orders-body {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(196, 164, 132, 0.18), transparent 55%),
    var(--cream);
}

.orders-page {
  width: min(100%, var(--page-wide));
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3.5rem;
}

.orders-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.95fr);
  gap: 1.5rem 3rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.orders-intro h1 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--chocolate);
  text-wrap: balance;
}

.orders-intro__copy p {
  margin: 0;
  max-width: 48ch;
  color: var(--chocolate-soft);
  font-size: 1.02rem;
  line-height: 1.5;
}

.orders-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.orders-notes li {
  display: grid;
  align-content: center;
  gap: 0.2rem;
  min-height: 4.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(63, 42, 34, 0.1);
  border-radius: 9px;
  background: rgba(255, 253, 246, 0.62);
}

.orders-notes strong {
  font-size: 0.92rem;
  color: var(--chocolate);
}

.orders-notes span {
  font-size: 0.88rem;
  color: var(--chocolate-soft);
  line-height: 1.4;
}

.orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
  gap: clamp(1rem, 2.2vw, 2rem);
  align-items: start;
}

.orders-catalog {
  min-width: 0;
}

.orders-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.9rem;
}

.orders-catalog__toolbar h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--chocolate);
}

.orders-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: min(100%, 280px);
  min-height: 2.55rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(63, 42, 34, 0.12);
  transition: box-shadow var(--dur-ui) var(--ease-out);
}

.orders-search:focus-within {
  box-shadow: inset 0 0 0 1.5px rgba(63, 42, 34, 0.42);
}

.orders-search__icon {
  display: grid;
  place-items: center;
  color: var(--chocolate-soft);
}

.orders-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--chocolate);
  font-size: 0.92rem;
  padding: 0.35rem 0;
}

.orders-search input::-webkit-search-decoration,
.orders-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.orders-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.orders-chip {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: rgba(63, 42, 34, 0.06);
  color: var(--chocolate-soft);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease;
}

.orders-chip:hover {
  background: rgba(63, 42, 34, 0.1);
  color: var(--chocolate);
}

.orders-chip.is-active {
  background: var(--chocolate);
  color: var(--cream);
}

.orders-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 0.9rem;
}

.orders-catalog-empty {
  margin: 1rem 0 0;
  color: var(--chocolate-soft);
}

.orders-product {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid rgba(63, 42, 34, 0.08);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(44, 34, 28, 0.045);
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out);
}

.orders-product:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 42, 34, 0.16);
  box-shadow: 0 10px 24px rgba(44, 34, 28, 0.09);
}

.orders-product__top {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.orders-product__media {
  margin: 0;
  width: 72px;
  min-height: 72px;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream-soft);
}

.orders-product__media img,
.orders-cart-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orders-product__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  background:
    linear-gradient(135deg, rgba(63, 42, 34, 0.1), rgba(63, 42, 34, 0.03));
}

.orders-product__body {
  min-width: 0;
}

.orders-product__cat {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--chocolate-soft);
}

.orders-product h3 {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--chocolate);
  line-height: 1.25;
}

.orders-product__price {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--chocolate-mid);
}

.orders-product__add {
  justify-self: start;
  box-sizing: border-box;
  height: 2rem;
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.85rem;
  background: var(--chocolate);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.orders-product__add:hover {
  background: var(--chocolate-mid);
}

.orders-product.is-in-cart .orders-product__add {
  background: rgba(63, 42, 34, 0.1);
  color: var(--chocolate);
}

.orders-checkout {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.orders-panel {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 1.6vw, 1.4rem);
  border: 1px solid rgba(63, 42, 34, 0.1);
  border-radius: 12px;
  background: var(--white);
  color: var(--chocolate);
  box-shadow: 0 18px 40px rgba(44, 34, 28, 0.1);
}

.orders-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.orders-panel__head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

#order-summary {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.orders-panel__count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--chocolate-soft);
}

.orders-cart {
  display: grid;
  gap: 0.65rem;
  max-height: min(34vh, 280px);
  overflow: auto;
  padding-right: 0.15rem;
}

.orders-cart .order-empty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 5.4rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px dashed rgba(63, 42, 34, 0.2);
  border-radius: 9px;
  color: var(--chocolate-soft);
  background: rgba(253, 248, 232, 0.52);
}

.order-empty__icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(63, 42, 34, 0.08);
  color: var(--chocolate);
  font-size: 1.5rem;
  line-height: 1;
}

.order-empty strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--chocolate);
  font-size: 0.9rem;
}

.order-empty p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.orders-cart-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.45rem 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(63, 42, 34, 0.1);
}

.orders-cart-row__media {
  grid-row: 1 / 3;
  margin: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream-soft);
}

.orders-cart-row__media .orders-product__placeholder {
  min-height: 56px;
}

.orders-cart-row__body {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.orders-cart-row .check-actions {
  grid-column: 2;
}

.orders-fields h3 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--chocolate);
}

.orders-fields[hidden] {
  display: none;
}

.orders-fields .field {
  margin-bottom: 0.75rem;
}

.orders-fields .field:last-of-type {
  margin-bottom: 0;
}

.orders-fields .field label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--chocolate);
  font-size: 0.85rem;
}

.orders-fields .field input {
  width: 100%;
  border: 1px solid rgba(63, 42, 34, 0.18);
  border-radius: 7px;
  padding: 0.7rem 0.75rem;
  background: var(--white);
  color: var(--chocolate);
}

.orders-fields .field input::placeholder {
  color: rgba(63, 42, 34, 0.52);
}

.orders-fields .field input:focus {
  outline: none;
  border-color: rgba(63, 42, 34, 0.5);
  box-shadow: 0 0 0 3px rgba(63, 42, 34, 0.08);
}

.orders-panel__footer {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(63, 42, 34, 0.1);
}

.orders-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
}

.orders-total strong {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.orders-panel .btn {
  width: 100%;
  background: var(--chocolate);
  color: var(--cream);
  border-radius: 999px;
  margin-top: 0;
}

.orders-panel .btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.orders-panel .panel-note {
  margin: 0;
  color: rgba(63, 42, 34, 0.55);
  font-size: 0.78rem;
  text-align: center;
}

.orders-cart-row .check-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.orders-cart-row .check-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(63, 42, 34, 0.18);
  border-radius: 999px;
  padding: 0.1rem;
  background: rgba(253, 248, 232, 0.7);
}

.orders-cart-row .check-qty button,
.orders-cart-row .check-remove {
  border: 0;
  background: transparent;
  color: var(--chocolate);
  cursor: pointer;
  font: inherit;
}

.orders-cart-row .check-qty button {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  line-height: 1;
}

.orders-cart-row .check-qty button:hover,
.orders-cart-row .check-remove:hover {
  background: rgba(63, 42, 34, 0.08);
}

.orders-cart-row .check-qty input {
  width: 2.2rem;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 0.82rem;
  color: var(--chocolate);
  -moz-appearance: textfield;
}

.orders-cart-row .check-qty input::-webkit-outer-spin-button,
.orders-cart-row .check-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.orders-cart-row .check-remove {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: var(--chocolate-soft);
}

.orders-cart-row .check-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
}

.orders-cart-row .check-meta {
  color: var(--chocolate-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

/* ——— Feedback split ——— */
body.feedback-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.feedback-page .app-header {
  flex-shrink: 0;
}

body.feedback-page .feedback-grid {
  flex: 1 0 auto;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  min-height: calc(100dvh - 52px);
}

.feedback-copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: clamp(1.25rem, 4vw, 3.25rem);
  background: var(--cream);
  min-height: 0;
  overflow: hidden;
}

.feedback-copy h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--chocolate);
  text-wrap: balance;
}

.feedback-copy p {
  margin: 0;
  max-width: 28ch;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--chocolate-soft);
}

.feedback-form-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(0.65rem, 2vw, 1.25rem);
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(28, 16, 12, 0.55), rgba(28, 16, 12, 0.65)),
    url("https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=1400&q=80")
      center / cover no-repeat;
}

.feedback-panel {
  width: min(100%, 22rem);
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  opacity: 1;
  transform: none;
  animation: none;
}

.feedback-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.feedback-panel .field {
  margin: 0;
  gap: 0.25rem;
  min-width: 0;
}

.feedback-panel .field label {
  font-size: 0.8rem;
  color: rgba(253, 248, 232, 0.72);
}

.feedback-panel .field input,
.feedback-panel .field textarea {
  min-width: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  border-radius: 8px;
}

.feedback-panel .field input::placeholder,
.feedback-panel .field textarea::placeholder {
  color: rgba(253, 248, 232, 0.42);
}

.feedback-panel .field textarea {
  min-height: 2.75rem;
  height: 2.75rem;
  resize: none;
}

.feedback-faces {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.feedback-faces label {
  position: relative;
  flex: 1 1 0;
  display: grid;
  place-items: center;
  height: 2.4rem;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(253, 248, 232, 0.28);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease,
    transform var(--dur-press) var(--ease-out);
}

.feedback-faces input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-faces label:hover,
.feedback-faces label:has(input:checked) {
  background: rgba(253, 248, 232, 0.14);
  border-color: rgba(253, 248, 232, 0.75);
}

.feedback-faces label:has(input:focus-visible) {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.feedback-panel .btn {
  width: 100%;
  margin-top: 0.1rem;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

.feedback-panel .panel-note {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(253, 248, 232, 0.5);
}

/* ——— Forms / panels ——— */
.panel {
  width: min(100%, 420px);
  background: rgba(45, 32, 26, 0.9);
  color: var(--cream);
  border-radius: 16px;
  padding: 1.65rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: rise-in 420ms var(--ease-out) 80ms forwards;
}

.panel.feedback-panel {
  opacity: 1;
  transform: none;
  animation: none;
}

.panel h2 {
  margin: 0 0 1.15rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.field label {
  font-size: 0.9rem;
  color: rgba(253, 248, 232, 0.78);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(253, 248, 232, 0.35);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  background: rgba(28, 18, 12, 0.4);
  color: var(--cream);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.rating {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.rating label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(253, 248, 232, 0.35);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 160ms ease, border-color 160ms ease,
    transform var(--dur-press) var(--ease-out);
}

.rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating label:has(input:checked),
.rating label:hover {
  background: rgba(253, 248, 232, 0.14);
  border-color: var(--cream);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: var(--cream);
  color: var(--chocolate);
  font-weight: 700;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.panel-note {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: rgba(253, 248, 232, 0.55);
}

.checklist {
  display: grid;
  gap: 0.45rem;
  max-height: 220px;
  overflow: auto;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(63, 42, 34, 0.18);
  border-radius: 6px;
  background: rgba(232, 220, 196, 0.45);
}

.checklist .order-empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--chocolate-soft);
  line-height: 1.4;
}

.checklist .order-empty a {
  color: var(--chocolate);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checklist .order-subtotal {
  margin: 0.15rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(63, 42, 34, 0.14);
  font-size: 0.84rem;
  color: var(--chocolate);
}

.checklist .check-row {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--chocolate);
  padding: 0.3rem 0;
}

.checklist .check-row.is-cart-item {
  cursor: default;
}

.checklist .check-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
}

.checklist .check-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.checklist .check-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(63, 42, 34, 0.18);
  border-radius: 999px;
  padding: 0.1rem;
  background: rgba(255, 255, 255, 0.45);
}

.checklist .check-qty button,
.checklist .check-remove {
  border: 0;
  background: transparent;
  color: var(--chocolate);
  cursor: pointer;
  font: inherit;
}

.checklist .check-qty button {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  line-height: 1;
}

.checklist .check-qty button:hover,
.checklist .check-remove:hover {
  background: rgba(63, 42, 34, 0.08);
}

.checklist .check-qty input {
  width: 2.2rem;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 0.82rem;
  color: var(--chocolate);
  -moz-appearance: textfield;
}

.checklist .check-qty input::-webkit-outer-spin-button,
.checklist .check-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checklist .check-remove {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: var(--chocolate-soft);
}

.checklist .check-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  line-height: 1.25;
  font-weight: 600;
}

.checklist .check-meta {
  color: var(--chocolate-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}

.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;
}

/* ——— Footer / toast / cart ——— */

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  min-width: 220px;
  max-width: 340px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--chocolate);
  color: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--dur-panel) var(--ease-drawer),
    opacity var(--dur-ui) ease;
}

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

.toast.is-error {
  background: var(--danger);
}

.toast.is-ok {
  background: var(--ok);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

body.cart-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 12, 0.45);
  opacity: 0;
  transition: opacity var(--dur-panel) ease;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 360px);
  height: 100%;
  background: var(--cream);
  color: var(--chocolate);
  padding: 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform var(--dur-panel) var(--ease-drawer);
  box-shadow: var(--shadow);
}

.cart-panel__footer {
  padding-top: 0.25rem;
}

.cart-drawer.is-open .cart-backdrop {
  opacity: 1;
}

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

.cart-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.cart-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-close {
  display: grid;
  place-items: center;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(63, 42, 34, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--chocolate);
  cursor: pointer;
}

.cart-close:hover {
  background: rgba(63, 42, 34, 0.08);
}

.cart-close:focus-visible {
  outline: 2px solid var(--chocolate-mid);
  outline-offset: 3px;
}

.cart-list {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  overflow: auto;
  padding-right: 0.25rem;
}

.cart-row {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cart-row__main {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}

.cart-row__image {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(63, 42, 34, 0.08);
}

.cart-row__image--empty {
  display: block;
}

.cart-row__info {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.cart-row__info strong {
  overflow-wrap: anywhere;
  font-size: 0.94rem;
  line-height: 1.25;
}

.cart-row__price {
  font-size: 0.88rem;
  font-weight: 700;
}

.cart-row__remove {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--chocolate-soft);
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-row__remove:hover {
  color: var(--danger);
  border-color: currentColor;
}

.cart-row__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-left: 4.2rem;
}

.cart-row__unit-price {
  color: var(--chocolate-soft);
  font-size: 0.78rem;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  padding: 0.15rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.cart-quantity button {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--chocolate);
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-quantity button:hover {
  background: rgba(63, 42, 34, 0.09);
}

.cart-empty-state {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.5rem;
  padding: 1.1rem 0.25rem;
  color: var(--chocolate-soft);
}

.cart-empty-state__icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  background: rgba(63, 42, 34, 0.08);
  color: var(--chocolate);
  font-size: 1.5rem;
  line-height: 1;
}

.cart-empty-state strong {
  color: var(--chocolate);
}

.cart-empty-state p {
  max-width: 25ch;
  margin: 0;
  line-height: 1.45;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  body {
    --header-height: 7.75rem;
  }

  .app-header,
  .app-header:has(.hero-search) {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
    min-height: var(--header-height);
    padding: 0.55rem 1.25rem;
  }

  .app-header .brand {
    position: static;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    transform: none;
  }

  .app-header .brand img {
    width: clamp(150px, 17vw, 180px);
  }

  .app-header:has(.hero-search) .hero-search {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 320px);
  }

  .header-nav {
    grid-column: 2;
    grid-row: 2;
    gap: 0.8rem;
  }

  .header-actions {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 900px) {
  body.home-page {
    --header-height: 9.75rem;
  }

  body:not(.home-page) {
    --header-height: 6.5rem;
  }

  .product-grid,
  .info-cards,
  .menu-detail,
  .menu-list,
  .orders-intro,
  .orders-layout,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  body.feedback-page .feedback-grid {
    height: auto;
    grid-template-rows: auto;
    min-height: auto;
  }

  .feedback-form-wrap {
    min-height: min(58vh, 420px);
    padding: 1.25rem 1rem;
  }

  .feedback-panel {
    width: min(100%, 22rem);
  }

  .feedback-copy {
    padding: 1.75rem 1.25rem;
  }

  .orders-checkout {
    position: static;
  }

  .orders-search {
    width: 100%;
  }

  .app-header,
  .app-header:has(.hero-search) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.5rem 0.8rem;
    min-height: var(--header-height);
    padding: 0.5rem 1rem;
  }

  .app-header .brand {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    order: 0;
  }

  .app-header .brand img {
    width: clamp(132px, 32vw, 170px);
  }

  .hero-search {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    grid-column: 1 / -1;
    grid-row: 3;
    order: 0;
  }

  .app-header:has(.hero-search) .hero-search,
  .header-nav,
  .header-actions {
    grid-row: 2;
  }

  .app-header:has(.hero-search) .hero-search {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .header-nav {
    grid-column: 1;
    justify-self: start;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    scrollbar-width: none;
    order: 0;
  }

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

  .header-nav a {
    font-size: 0.82rem;
  }

  .header-actions {
    grid-column: 2;
    justify-self: end;
    width: auto;
    max-width: none;
    justify-content: flex-end;
    flex-wrap: nowrap;
    order: 0;
  }

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

  .hero-link {
    justify-self: start;
  }

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

  .info-card img {
    min-height: 160px;
  }

  .menu-visual img {
    min-height: 260px;
  }

}

@media (max-width: 520px) {
  body.home-page {
    --header-height: 9.25rem;
  }

  body:not(.home-page) {
    --header-height: 6.25rem;
  }

  .app-header,
  .app-header:has(.hero-search) {
    padding-inline: 0.75rem;
    column-gap: 0.5rem;
  }

  .app-header .brand img {
    width: 132px;
  }

  .header-nav {
    gap: 0.45rem;
  }

  .header-nav a {
    font-size: 0.76rem;
  }

  .cart-btn {
    font-size: 1.05rem;
  }

  .menu-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding: 0.15rem 0 0.45rem;
    scrollbar-width: thin;
  }

  .menu-chip {
    flex: 0 0 auto;
  }

  .orders-notes {
    grid-template-columns: 1fr;
  }

  .orders-panel {
    padding: 1rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .feedback-form-wrap {
    padding: 0.75rem;
  }

  .feedback-panel {
    width: min(100%, 20.5rem);
    padding: 0.9rem 1rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .section,
  .menu-shell,
  .menu-band {
    padding-inline: 1rem;
  }
}

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

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

  .product-card,
  .category-tile,
  .menu-item,
  .panel {
    opacity: 1;
    transform: none;
  }

  .hero-video {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-header,
  .panel {
    backdrop-filter: none;
    background: var(--chocolate);
  }
}

/* Feedback form refresh */
.feedback-panel.panel {
  width: min(100%, 34rem);
  gap: 1.1rem;
  padding: clamp(1.35rem, 2.5vw, 2.15rem);
  border: 1px solid rgba(253, 248, 232, 0.14);
  border-radius: 18px;
  background: rgba(48, 31, 25, 0.94);
  box-shadow: 0 24px 64px rgba(20, 12, 9, 0.32);
}

.feedback-panel__header {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(253, 248, 232, 0.18);
}

.feedback-panel .feedback-panel__eyebrow {
  margin: 0;
  color: #d7b9a2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feedback-panel h2 {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.feedback-panel__header > p:last-child {
  margin: 0.15rem 0 0;
  color: rgba(253, 248, 232, 0.68);
  font-size: 0.88rem;
  line-height: 1.45;
}

.feedback-panel .field {
  gap: 0.45rem;
}

.feedback-panel .field label {
  color: rgba(253, 248, 232, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
}

.feedback-panel .field input,
.feedback-panel .field textarea {
  border: 1px solid rgba(253, 248, 232, 0.3);
  border-radius: 10px;
  background: rgba(22, 15, 12, 0.32);
  color: var(--cream);
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.feedback-panel .field input {
  min-height: 3rem;
}

.feedback-panel .field input:focus,
.feedback-panel .field textarea:focus {
  border-color: #e4c4a9;
  outline: none;
  background: rgba(22, 15, 12, 0.5);
  box-shadow: 0 0 0 3px rgba(228, 196, 169, 0.14);
}

.feedback-panel .field textarea {
  min-height: 7rem;
  height: auto;
  resize: vertical;
  line-height: 1.5;
}

.feedback-faces {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.feedback-faces label {
  display: flex;
  min-width: 0;
  min-height: 6.15rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.25rem;
  border: 1px solid rgba(253, 248, 232, 0.2);
  border-radius: 12px;
  background: rgba(253, 248, 232, 0.06);
  color: var(--cream);
  text-align: center;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.feedback-faces label:hover {
  transform: translateY(-2px);
  background: rgba(253, 248, 232, 0.12);
  border-color: rgba(253, 248, 232, 0.55);
}

.feedback-faces label:has(input:checked) {
  transform: translateY(-2px);
  border-color: var(--cream);
  background: var(--cream);
  color: var(--chocolate);
  box-shadow: 0 8px 20px rgba(16, 9, 6, 0.2);
}

.feedback-faces label:has(input:focus-visible) {
  outline: 2px solid #e4c4a9;
  outline-offset: 3px;
}

.feedback-faces label svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-face__text {
  overflow-wrap: anywhere;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
}

.feedback-panel .btn {
  min-height: 3.1rem;
  margin: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--chocolate);
  font-size: 0.98rem;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.feedback-panel .btn:hover {
  transform: translateY(-1px);
  background: #fffdf5;
  box-shadow: 0 8px 20px rgba(16, 9, 6, 0.2);
}

.feedback-panel .btn:focus-visible {
  outline: 2px solid #e4c4a9;
  outline-offset: 3px;
}

.feedback-panel .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.feedback-panel .panel-note {
  color: rgba(253, 248, 232, 0.58);
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .feedback-form-wrap {
    min-height: 0;
    overflow: visible;
    padding: 1.5rem 1rem;
  }

  .feedback-panel.panel {
    width: min(100%, 34rem);
  }
}

@media (max-width: 390px) {
  .feedback-faces {
    gap: 0.3rem;
  }

  .feedback-faces label {
    min-height: 5.6rem;
    padding-inline: 0.12rem;
  }

  .feedback-faces label svg {
    width: 1.55rem;
    height: 1.55rem;
  }

  .feedback-face__text {
    font-size: 0.61rem;
  }
}
