/* The book that opens when a navigation book is pulled from the shelf. */
.reader { position: fixed; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .25s; }
.reader.show { opacity: 1; pointer-events: auto; transition: none; }

.reader .book {
  position: absolute;
  transition: transform .9s cubic-bezier(.55, .05, .3, 1);
}
.reader .sheet {
  position: absolute; top: 0; left: 0; width: var(--pw); height: var(--ph);
  transform-origin: 100% 50%; transform-style: preserve-3d; transform: perspective(2600px) rotateY(0deg);
  transition: transform .85s cubic-bezier(.55, .05, .3, 1), opacity .3s;
}
.reader .sheet.flipped { transform: perspective(2600px) rotateY(-180deg); }
.reader.single .sheet.flipped { opacity: 0; transition: transform .85s cubic-bezier(.55, .05, .3, 1), opacity .25s .6s; }
.reader .face { container-type: size; position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.reader .face.back { transform: rotateY(180deg); }
.reader .base { container-type: size; position: absolute; top: 0; width: var(--pw); height: var(--ph); }
.reader .base.left { left: 0; }
.reader .base.right { left: var(--pw); }

/* ---- paper ---- */
.page {
  position: absolute; inset: 0;
  background: #EFE6D6;
  background-image:
    radial-gradient(rgba(95, 59, 41, .05) 1px, transparent 1.2px),
    radial-gradient(rgba(95, 59, 41, .04) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px;
  color: var(--cocoa);
  font-family: Camel, 'Segoe UI', Tahoma, sans-serif;
  display: flex; flex-direction: column; align-items: center;
  padding: 9cqw 9cqw 7cqw;
  text-align: center;
}
/* spine shading: front faces are left pages, back faces are right pages */
.face.front .page { box-shadow: inset -26px 0 30px -22px rgba(46, 28, 19, .45); }
.face.back .page, .base.right .page { box-shadow: inset 26px 0 30px -22px rgba(46, 28, 19, .45); }
.page .num { position: absolute; bottom: 3.4cqh; left: 0; right: 0; font-size: 3.2cqw; color: var(--clay); }
.page h2 { font-weight: 700; font-size: 7.2cqw; line-height: 1.3; }
.page h3 { font-weight: 700; font-size: 5cqw; }
.page p { font-weight: 400; font-size: 4.1cqw; line-height: 1.85; color: #6d4e3c; }
.page .small { font-size: 3.1cqw; color: var(--clay); }
.page .rule { width: 12cqw; height: 2px; background: var(--clay); border-radius: 1px; margin: 3cqw auto; opacity: .7; }

/* title page of each chapter */
.page.title { justify-content: center; gap: 2.2cqh; }
.page.title svg.arch { width: 30cqw; height: auto; color: var(--clay); }
.page.title .ch { font-size: 4cqw; color: var(--clay); }
.page.title h2 { font-size: 12cqw; }
.page.title .sub { font-size: 4.4cqw; color: #7a5a48; font-weight: 300; }
.beads { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; position: absolute; top: 6cqh; bottom: 6cqh; right: 6cqw; justify-content: space-between; }
.beads i { display: block; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--sand); }
.beads i:nth-child(3n+2) { height: 3.4cqw; width: 1.4cqw; border-radius: 1cqw; background: var(--clay); }
.beads i:nth-child(4n) { background: var(--olive); }

/* menu */
.page.menu { align-items: stretch; text-align: right; }
.page.menu h2 { text-align: center; margin-bottom: 1cqh; }
.page.menu .rule { margin-bottom: 3.5cqh; }
.item { display: grid; grid-template-columns: 1fr auto; column-gap: 3cqw; padding: 1.5cqh 0; border-bottom: 1px dashed rgba(95, 59, 41, .18); }
.item:last-child { border-bottom: 0; }
.item b { font-weight: 700; font-size: 4.5cqw; }
.item .price { font-size: 4.3cqw; color: var(--clay); font-weight: 700; display: flex; align-items: center; gap: .8cqw; direction: rtl; }
.item .price svg { width: 3.3cqw; height: auto; }
.item span.d { grid-column: 1 / -1; font-size: 3.3cqw; color: #8a6a57; line-height: 1.6; }
.sample { position: absolute; bottom: 7.5cqh; left: 0; right: 0; font-size: 2.9cqw; color: var(--clay); opacity: .8; }

/* photos framed in the arch */
.page.photo { justify-content: center; gap: 2.6cqh; }
.page.photo .frame { width: 74cqw; height: 66cqh; border-radius: 999px 999px 6px 6px; overflow: hidden; border: 1.6cqw solid #E2D6C1; box-shadow: 0 2px 0 rgba(95, 59, 41, .2); }
.page.photo .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page.photo h3 { margin-top: 1cqh; }

.page.quote { justify-content: center; gap: 3cqh; }
.page.quote blockquote { font-weight: 700; font-size: 11cqw; line-height: 1.3; color: var(--cocoa); }

/* map */
.page.map { gap: 2.4cqh; }
.page.map svg.sketch { width: 100%; height: 50cqh; }
.btn-book {
  display: inline-block; margin-top: 1cqh; padding: 2cqw 6cqw; border-radius: 999px;
  background: var(--cocoa); color: var(--cream); text-decoration: none; font-weight: 700; font-size: 3.9cqw;
}
.btn-book:hover { background: var(--deep); }

/* contact */
.page.contact { align-items: stretch; text-align: right; }
.page.contact h2 { text-align: center; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 2.4cqh 0; border-bottom: 1px dashed rgba(95, 59, 41, .2); font-size: 4.4cqw; }
.row b { font-weight: 700; }
.row span { color: var(--clay); }

/* cover and endpaper */
.cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqh; color: var(--cream); font-family: Camel, sans-serif; }
.cover::before { content: ''; position: absolute; inset: 6cqw 9cqw 6cqw 6cqw; border: 1.5px solid rgba(234, 223, 204, .75); }
.cover svg.arch { width: 34cqw; height: auto; color: var(--cream); }
.cover h1 { font-weight: 700; font-size: 13cqw; line-height: 1.1; }
.cover img.logo { width: 42cqw; opacity: .9; }
.cover .beads { right: 3cqw; }
.cover .beads i { background: var(--cream) !important; opacity: .85; }
.endpaper {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background-color: var(--sand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='58'%3E%3Cpath d='M10 50V22a12 12 0 0 1 24 0v28' fill='none' stroke='%235F3B29' stroke-opacity='.25' stroke-width='1.3'/%3E%3C/svg%3E");
  box-shadow: inset 26px 0 30px -22px rgba(46, 28, 19, .45);
}
.endpaper .plate { background: var(--cream); padding: 7cqw 9cqw; border-radius: 8px; outline: 1.5px solid var(--clay); outline-offset: -6px; display: flex; flex-direction: column; align-items: center; gap: 3cqw; color: var(--cocoa); font-family: Camel, sans-serif; }
.endpaper .plate img { width: 40cqw; }
.endpaper .plate span { font-weight: 300; font-size: 4.4cqw; }

/* controls */
.reader .bar {
  position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px;
  color: var(--cream); font: 400 16px Camel, sans-serif; opacity: 0; transition: opacity .4s .5s;
}
.reader.opened .bar { opacity: 1; }
.reader .bar button, .reader .close {
  font: 700 15px Camel, sans-serif; color: var(--cream); background: rgba(234, 223, 204, .08);
  border: 1px solid rgba(234, 223, 204, .4); border-radius: 999px; padding: 7px 18px; cursor: pointer;
}
.reader .bar button:hover, .reader .close:hover { background: rgba(234, 223, 204, .2); }
.reader .bar button:disabled { opacity: .3; cursor: default; }
.reader .dots { display: flex; gap: 7px; }
.reader .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(234, 223, 204, .35); }
.reader .dots i.on { background: var(--cream); }
.reader .close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; opacity: 0; transition: opacity .4s .5s; }
.reader.opened .close { opacity: 1; }

/* keep the replay button clear of the closing line */
.replay { top: max(12px, env(safe-area-inset-top)); bottom: auto; }

.reader .bar button { white-space: nowrap; }
.reader.single .bar { gap: 10px; }
.reader.single .bar button { padding: 6px 13px; font-size: 14px; }

/* style picker */
.style-pick {
  position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 38px); left: 14px; z-index: 4;
  display: flex; align-items: center; gap: 8px; font: 400 14px Camel, sans-serif; color: var(--cream);
}
.style-pick span { opacity: .7; }
.style-pick select {
  font: 700 14px Camel, sans-serif; color: var(--cream); background: rgba(46, 28, 19, .55);
  border: 1px solid rgba(234, 223, 204, .4); border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
body.paper { background: #F1E9DB; }
body.paper .replay, body.paper .style-pick { color: var(--cocoa); }
body.paper .replay { border-color: rgba(95, 59, 41, .4); }
body.paper .style-pick select { color: var(--cocoa); background: rgba(255, 255, 255, .6); border-color: rgba(95, 59, 41, .4); }
@media (max-width: 640px) {
  .style-pick { top: max(12px, env(safe-area-inset-top)); left: auto; right: 12px; }
  .style-pick span { display: none; }
}

/* ---- the menu, in the site's watercolour style ---- */
@font-face { font-family: MellowLatin; font-weight: 100 900; font-display: swap; src: url(../shared/assets/montserrat-latin.woff2) format('woff2'); }
.page.wmenu { align-items: stretch; text-align: right; padding: 6cqw 8cqw 9cqh; }
.wmenu .mhead { display: flex; flex-direction: column; align-items: center; margin-bottom: 2.6cqh; }
.wmenu .arch-wrap { position: relative; width: 60cqw; height: 24cqw; }
.wmenu .warch { position: absolute; inset: 0; width: 100%; height: 100%; }
.wmenu .warch .wash { opacity: .32; filter: url(#wc); }
.wmenu .warch .line { fill: none; stroke: #5F3B29; stroke-width: 1.3; opacity: .65; filter: url(#wc); vector-effect: non-scaling-stroke; }
.wmenu .arch-wrap h2 { position: absolute; left: 0; right: 0; bottom: 2.4cqw; text-align: center; font-size: 6.2cqw; line-height: 1.15; }
.wmenu .mhead .en { font: 300 max(2.5cqw, 9px) MellowLatin, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #8a6a57; margin-top: 1.4cqw; }
.wmenu .mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9cqh; }
.wmenu .mlist li { padding-bottom: .9cqh; border-bottom: 1px solid rgba(95, 59, 41, .08); }
.wmenu .mlist li:last-child { border-bottom: 0; }
.wmenu .r1 { display: flex; align-items: baseline; gap: 2cqw; }
.wmenu .r1 b { font-weight: 700; font-size: max(4.2cqw, 14px); line-height: 1.35; white-space: nowrap; }
.wmenu .r1 i { flex: 1; border-bottom: 1.5px dotted rgba(95, 59, 41, .35); transform: translateY(-.8cqw); }
.wmenu .price { font-size: max(4cqw, 13px); font-weight: 700; color: #9a5f4b; display: inline-flex; align-items: center; gap: .9cqw; white-space: nowrap; }
.wmenu .price svg { width: max(3.1cqw, 10px); height: auto; }
.wmenu .r2 { display: flex; justify-content: space-between; gap: 3cqw; font-size: max(2.9cqw, 10.5px); line-height: 1.35; color: #8a6a57; }
.wmenu .en { font-family: MellowLatin, sans-serif; font-weight: 400; font-size: max(2.5cqw, 9.5px); color: #a08571; direction: ltr; white-space: nowrap; }
.wmenu .sprig { position: absolute; width: 12cqw; height: 12cqw; bottom: 3cqh; left: 5cqw; opacity: .5; filter: url(#wc); }
.wmenu .sample { bottom: 6.8cqh; font-size: max(2.5cqw, 9px); text-align: center; }
/* dessert page: each item has its photo in a little arch */
.wmenu.photos .mlist { gap: 2.2cqh; }
.wmenu .mlist li.ph { display: flex; gap: 4cqw; align-items: center; border-bottom: 0; }
.wmenu .pframe { flex: none; width: 22cqw; height: 27cqw; border-radius: 999px 999px 4px 4px; overflow: hidden; border: 1.2cqw solid #E6D9C3; box-shadow: 0 1px 0 rgba(95, 59, 41, .18); }
.wmenu .pframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wmenu .ptext { flex: 1; display: flex; flex-direction: column; gap: .6cqw; }
.wmenu .ptext .en { align-self: flex-end; }
.reader.single .wmenu .sprig { display: none; }

/* ---- the whole menu on one card ---- */
.reader.menu-mode .bar { display: none; }
.menu-card {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(94vw, 1220px); max-height: min(88vh, 860px); display: flex; flex-direction: column;
  container-type: inline-size;
  border-radius: 6px; overflow: hidden;
  background: #EFE6D6;
  background-image: radial-gradient(rgba(95, 59, 41, .05) 1px, transparent 1.2px), radial-gradient(rgba(95, 59, 41, .04) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px;
  box-shadow: 0 30px 60px -20px rgba(20, 10, 5, .6);
  color: var(--cocoa); font-family: Camel, 'Segoe UI', Tahoma, sans-serif;
  clip-path: inset(0 50% 0 50%); opacity: 0;
  transition: clip-path .75s cubic-bezier(.6, .05, .3, 1), opacity .3s;
}
.menu-card.open { clip-path: inset(0 0 0 0); opacity: 1; }
@media (max-width: 640px) {
  .menu-card { left: 0; right: 0; bottom: 0; top: auto; translate: none; width: 100%; height: calc(100dvh - 62px - env(safe-area-inset-top)); max-height: none;
    border-radius: 20px 20px 0 0; clip-path: none; transform: translateY(105%); opacity: 1; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
  .menu-card.open { transform: none; }
  .menu-card .mc-paper { max-height: none; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .menu-card::before { content: ''; position: absolute; top: 7px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 2px; background: rgba(95, 59, 41, .25); z-index: 3; }
}
.reader .close { z-index: 10; }
.mc-paper { flex: 1; min-height: 0; max-height: min(88vh, 860px); overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(16px, 3cqw, 40px) 28px; scrollbar-width: thin; scrollbar-color: rgba(95,59,41,.3) transparent; }
.mc-head { display: flex; flex-direction: column; align-items: center; padding-top: clamp(14px, 2cqw, 26px); }
.mc-head .arch-wrap { position: relative; width: clamp(170px, 22cqw, 260px); height: clamp(64px, 8cqw, 96px); }
.mc-head .warch, .mc-cathead .warch { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc-head .warch .wash, .mc-cathead .warch .wash { opacity: .32; filter: url(#wc); }
.mc-head .warch .line, .mc-cathead .warch .line { fill: none; stroke: #5F3B29; stroke-width: 1.3; opacity: .6; filter: url(#wc); vector-effect: non-scaling-stroke; }
.mc-head h2 { position: absolute; inset: auto 0 8% 0; text-align: center; font-size: clamp(26px, 3.4cqw, 40px); font-weight: 700; line-height: 1.1; }
.menu-card .en { font-family: MellowLatin, sans-serif; color: #a08571; direction: ltr; }
.mc-head .en { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; margin-top: 6px; }
.mc-note { font-size: 12px; color: var(--clay); margin-top: 4px; }
/* house notes: the same cocoa band as the printed menu */
.mc-rules { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; margin: 14px 0 2px; padding: 10px 22px; border-radius: 12px;
  background: var(--cocoa); color: #F7EFE2; font-weight: 700; font-size: clamp(15px, 1.6cqw, 19px); line-height: 1.5; text-align: center; }
.mc-rules b { width: 6px; height: 6px; border-radius: 50%; background: #D9BFA8; flex: none; }
@media (max-width: 640px) { .mc-rules { flex-direction: column; gap: 2px; padding: 10px 16px; font-size: 15px; align-self: stretch; } .mc-rules b { display: none; } }
.mc-chips {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 12px 0 10px; margin-bottom: 6px; background: linear-gradient(#EFE6D6 75%, rgba(239, 230, 214, 0));
}
.mc-chips button {
  display: inline-flex; align-items: center; gap: 7px; font: 700 14px Camel, sans-serif; color: var(--cocoa);
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(95, 59, 41, .22); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.mc-chips button:hover { transform: translateY(-1px); border-color: rgba(95, 59, 41, .45); }
.mc-chips button i { width: 9px; height: 9px; border-radius: 50%; }
.mc-chips button.on { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
@media (max-width: 640px) { .mc-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } .mc-chips button { flex: none; font-size: 13px; padding: 6px 12px; } }

.mc-grid { column-count: 1; column-gap: clamp(14px, 2cqw, 28px); }
.mc-col { display: contents; }
.mc-cat .en.inl { display: none; }
@container (min-width: 640px) { .mc-grid { column-count: 2; } }
@container (min-width: 1000px) {
  .mc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-count: auto; gap: clamp(14px, 2cqw, 28px); align-items: start; }
  .mc-col { display: block; min-width: 0; }
  /* one line per item: Arabic name, small English, price */
  .mc-grid .mc-cat .en.inl { display: inline; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
  .mc-grid .mc-cat .r2 { display: none; }
  .mc-grid .mc-cat li { padding: 5px 8px; }
}
.mc-grid .mc-cat { break-inside: avoid; margin-bottom: clamp(10px, 1.4cqw, 18px); }
.mc-cat {
  position: relative; border-radius: 14px; padding: 6px 12px 10px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s calc(.45s + var(--d) * .1s), transform .6s calc(.45s + var(--d) * .1s), filter .4s, background .4s;
}
.menu-card.open .mc-cat { opacity: 1; transform: none; }
.mc-grid.focus .mc-cat:not(.active) { opacity: .28; filter: saturate(.3); transition-delay: 0s; }
.mc-cat.active { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--wash) 24%, transparent), transparent 75%); transition-delay: 0s; }
.mc-cathead { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.mc-cathead .arch-wrap { position: relative; width: min(190px, 80%); height: 58px; }
.mc-cathead h3 { position: absolute; inset: auto 0 6px 0; text-align: center; font-size: 19px; font-weight: 700; }
.mc-cathead .en { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; margin-top: 4px; }
.mc-cat ul { list-style: none; margin: 0; padding: 0; }
.mc-cat li {
  position: relative; display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s calc(.6s + var(--d) * .1s + var(--i) * .04s), transform .45s calc(.6s + var(--d) * .1s + var(--i) * .04s);
}
.menu-card.open .mc-cat li { opacity: 1; transform: none; }
.mc-cat li::before {
  content: ''; position: absolute; inset: 0; border-radius: 10px; z-index: -1;
  background: color-mix(in srgb, var(--wash) 20%, transparent); filter: url(#wc);
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.mc-cat li:hover::before { transform: scaleX(1); }
.mc-cat .txt { flex: 1; min-width: 0; }
.mc-cat .r1 { display: flex; align-items: baseline; gap: 6px; }
.mc-cat .r1 b { font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.mc-cat .r1 i { flex: 1; border-bottom: 1.5px dotted rgba(95, 59, 41, .3); transform: translateY(-4px); min-width: 10px; }
.mc-cat .price { font-weight: 700; font-size: 14.5px; color: #9a5f4b; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mc-cat .price svg { width: 11px; height: auto; }
.mc-cat .r2 { display: flex; justify-content: flex-start; gap: 8px; font-size: 12px; color: #8a6a57; line-height: 1.4; }
.mc-cat .r1 .d { font-size: 12px; color: #8a6a57; white-space: nowrap; }
.mc-cat .price.sizes { gap: 5px; }
.mc-cat .price.sizes small { font-size: 11px; font-weight: 400; color: #8a6a57; }
.mc-cat .price.sizes em { font-style: normal; color: rgba(95, 59, 41, .35); }
.mc-cat .r2 .en { font-size: 10.5px; white-space: nowrap; }
.mc-cat .thumb { flex: none; width: 48px; height: 60px; border-radius: 999px 999px 4px 4px; overflow: hidden; border: 3px solid #E6D9C3; }
.mc-cat .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the real menu is longer: tighter rows so it fits the card on desktop */
.mc-cat .price.soon { font-size: 12px; font-weight: 400; color: #a08571; }
@container (min-width: 1000px) {
  .mc-head .arch-wrap { height: clamp(56px, 6cqw, 76px); }
  .mc-head h2 { font-size: clamp(24px, 2.8cqw, 34px); }
  .mc-chips { padding: 8px 0 6px; }
  .mc-cathead { margin-bottom: 4px; }
  .mc-cathead .arch-wrap { height: 46px; }
  .mc-cathead h3 { font-size: 18px; bottom: 4px; }
  .mc-cat li { padding: 4px 8px; }
  .mc-cat .r1 b { font-size: 15px; }
}
/* rows with a photo have room for the English under the name */
@container (min-width: 1000px) {
  .mc-grid .mc-cat li:has(.thumb) .en.inl { display: none; }
  .mc-grid .mc-cat li:has(.thumb) .r2 { display: flex; }
}

/* bigger dessert photos, tap for full size */
.mc-cat .thumb { width: 104px; height: 130px; padding: 0; cursor: zoom-in; background: none; border: 4px solid #E6D9C3; border-radius: 999px 999px 6px 6px; overflow: hidden; flex: none; box-shadow: 0 2px 6px rgba(46, 28, 19, .12); transition: transform .25s; }
.mc-cat .thumb:hover { transform: scale(1.04); }
.mc-cat li:has(.thumb) { align-items: center; padding-top: 8px; padding-bottom: 8px; }
.mc-cat li:has(.thumb) .r1 b { font-size: 16.5px; }
@container (min-width: 1000px) { .mc-cat .thumb { width: 92px; height: 115px; } }
.mc-zoom { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(46, 28, 19, .55); opacity: 0; pointer-events: none; transition: opacity .3s; cursor: zoom-out; }
.mc-zoom.open { opacity: 1; pointer-events: auto; }
.mc-zoom figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: scale(.94); transition: transform .35s; }
.mc-zoom.open figure { transform: none; }
.mc-zoom img { width: min(78vw, 420px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 10px 10px; border: 8px solid #EFE6D6; box-shadow: 0 20px 50px rgba(20, 10, 5, .45); }
.mc-zoom figcaption { font: 700 20px Camel, sans-serif; color: var(--cream); }

/* ---- lighter menu on tablets and phones (touch screens): smooth scrolling over effects ---- */
.mc-cat li::before { filter: none; }
.mc-cat, .mc-paper { contain: layout paint; }
@media (hover: none), (pointer: coarse) {
  .menu-card { box-shadow: 0 16px 30px -16px rgba(20, 10, 5, .5); }
  .menu-card:not(.open) { clip-path: none; }
  .menu-card { transition: opacity .35s ease; }
  .mc-cat, .mc-cat li { opacity: 1; transform: none; transition: none; }
  .mc-cat li::before { display: none; }
  .mc-grid.focus .mc-cat:not(.active) { filter: none; opacity: .35; transition: opacity .25s; }
  .mc-cat .thumb { transition: none; }
}
@media (hover: none) and (max-width: 640px), (pointer: coarse) and (max-width: 640px) {
  .menu-card { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
}
