/* ==========================================================================
   Ludus — "Luxe" guest-menu skin  ·  light edition
   Same layout; editorial typography, hairline framing, ambient light and
   choreographed motion (assets/motion.js). Scoped to body.luxe, so the staff
   & admin screens (which share styles.css) are untouched.

   PALETTE — distribution
   ~60%  Ivory        #FBF7F1  page background (a whisper of #EBD2A9)
   ~22%  Paper        #FFFFFF  cards, sheets
   ~8%   Champagne    #EBD2A9  selected states, dividers, placeholders, glow
                               (surface colour only — too light for text)
   Type & primary     #002E5D  Ludus navy: titles, prices, main buttons
   Secondary text     #58758C  Ludus steel: descriptions, labels, icons
   Finest details     #5C542C  logo gold: numerals, ornaments
   Live signals       #2F6FB0  Ludus blue: table status dot, basket count
   ========================================================================== */

body.luxe {
  /* palette */
  --ivory: #f5efe6;
  --ivory-2: #ede3d4;
  --paper: #ffffff;
  --champagne: #ebd2a9;
  --champagne-soft: rgba(235, 210, 169, .35);
  --navy: #002e5d;
  --steel: #58758c;
  --logo-gold: #5c542c;
  --live: #2f6fb0;
  --hair: rgba(0, 46, 93, .09);           /* navy hairline */
  --hair-2: rgba(0, 46, 93, .16);
  --hair-champ: rgba(203, 170, 118, .55); /* champagne line, a shade deeper so it reads on ivory */
  --shadow-soft: 0 1px 2px rgba(0, 46, 93, .04), 0 12px 32px rgba(0, 46, 93, .06);
  --shadow-lift: 0 2px 4px rgba(0, 46, 93, .05), 0 22px 48px rgba(0, 46, 93, .10);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  /* re-map the base stylesheet's tokens so every inherited rule turns light too */
  --bg: #f5efe6; --bg-soft: #ffffff; --card: #ffffff; --card-2: #ffffff;
  --line: rgba(0, 46, 93, .09); --glass-hi: rgba(255, 255, 255, .9);
  --gold: #002e5d; --gold-soft: #002e5d; --text: #0b2440; --muted: #58758c;
  --shadow: 0 12px 32px rgba(0, 46, 93, .08);
  background: var(--ivory);
  color: #0b2440;
  letter-spacing: .005em;
  overflow-x: hidden;
}
body.luxe ::selection { background: var(--champagne); color: var(--navy); }

/* ---------- ambient light: champagne glow above, a breath of steel below + paper grain ---------- */
body.luxe::before, body.luxe::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(90px); will-change: transform;
}
body.luxe::before {
  width: 110vmax; height: 110vmax; right: -45vmax; top: -75vmax;
  background: radial-gradient(closest-side, rgba(235, 210, 169, .75), rgba(235, 210, 169, 0));
  animation: lx-drift-a 30s var(--ease-in-out) infinite alternate;
}
body.luxe::after {
  width: 90vmax; height: 90vmax; left: -55vmax; bottom: -65vmax;
  background: radial-gradient(closest-side, rgba(88, 117, 140, .14), rgba(88, 117, 140, 0));
  animation: lx-drift-b 36s var(--ease-in-out) infinite alternate;
}
@keyframes lx-drift-a { to { transform: translate3d(-16vmax, 10vmax, 0) scale(1.08); } }
@keyframes lx-drift-b { to { transform: translate3d(14vmax, -12vmax, 0) scale(1.1); } }

.lx-grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 .1  0 0 0 0 .2  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: lx-grain 1.2s steps(4) infinite;
}
@keyframes lx-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

/* ---------- opening curtain (first visit of the session) ---------- */
.lx-curtain {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 45%, #fffdf9 0%, #f5ece0 75%);
  clip-path: inset(0 0 0 0);
  animation: lx-curtain-lift 1.05s cubic-bezier(.65, 0, .35, 1) 1.25s forwards;
}
.lx-curtain img { width: min(220px, 56vw); opacity: 0; filter: blur(14px); transform: scale(1.05);
  animation: lx-focus 1.1s cubic-bezier(.16, 1, .3, 1) .1s forwards; }
.lx-curtain::after {
  content: ""; position: absolute; left: 50%; top: calc(50% + 66px); width: 0; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #cbaa76, transparent);
  animation: lx-line 1s cubic-bezier(.16, 1, .3, 1) .45s forwards;
}
@keyframes lx-focus { to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes lx-line { to { width: min(240px, 60vw); } }
@keyframes lx-curtain-lift { to { clip-path: inset(0 0 100% 0); } }

/* ---------- top bar: invisible at rest, ivory glass once you scroll ---------- */
body.luxe .topbar {
  padding: 14px 18px; background: transparent; border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  transition: background .5s var(--ease-out), border-color .5s, padding .5s var(--ease-out), -webkit-backdrop-filter .5s, backdrop-filter .5s;
}
body.luxe.lx-scrolled .topbar {
  padding: 9px 18px; background: rgba(245, 239, 230, .84); border-bottom-color: var(--hair);
  -webkit-backdrop-filter: blur(20px) saturate(120%); backdrop-filter: blur(20px) saturate(120%);
}
body.luxe .brand-logo { height: 26px; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
body.luxe.lx-armed:not(.lx-scrolled) .brand-logo { opacity: 0; transform: translateY(-6px); }
body.luxe .icon-btn {
  min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--navy);
  border: 1px solid var(--hair); background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 10.5px; font-weight: 500; letter-spacing: .2em;
  transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}
body.luxe .icon-btn svg { opacity: .8; }
body.luxe .icon-btn svg path, body.luxe .icon-btn svg circle[stroke] { stroke-width: 1.2; }
body.luxe .icon-btn:hover { border-color: var(--hair-champ); background: #fff; }
body.luxe .icon-btn:active { transform: scale(.95); }
body.luxe .cart-btn { width: 40px; padding: 0; }
body.luxe .cart-badge {
  top: -3px; inset-inline-end: -3px; min-width: 17px; height: 17px; font-size: 9.5px; font-weight: 600;
  background: var(--live); color: #fff; box-shadow: 0 0 0 2px var(--ivory);
}
.lx-bump { animation: lx-bump .6s cubic-bezier(.16, 1, .3, 1); }
@keyframes lx-bump { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
.lx-ring { position: relative; }
.lx-ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid #cbaa76;
  animation: lx-ring .75s cubic-bezier(.16, 1, .3, 1) forwards; pointer-events: none;
}
@keyframes lx-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }

/* ---------- hero ---------- */
body.luxe .hero { padding: 22px 26px 26px; position: relative; }
body.luxe .hero-inner { transform: translate3d(0, calc(var(--lx-scroll, 0) * 0.3px), 0); opacity: calc(1 - var(--lx-scroll, 0) / 440); will-change: transform, opacity; }
body.luxe .hero-logo { width: min(220px, 58%); }
body.luxe .hero-tag {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.35;
  color: var(--navy); margin: 16px auto 12px; max-width: 17em;
}
body.luxe .hero-loc {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 9.5px; font-weight: 500; letter-spacing: .24em; line-height: 1.9; color: var(--steel); text-wrap: balance;
}
body.luxe .hero-loc::before, body.luxe .hero-loc::after {
  content: ""; flex: 0 0 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--hair-champ));
}
body.luxe .hero-loc::after { transform: scaleX(-1); }
@media (max-width: 419px) { body.luxe .hero-loc::before, body.luxe .hero-loc::after { display: none; } }
body.luxe .table-pill {
  margin-top: 18px; padding: 6px 15px 6px 13px; font-size: 9.5px; font-weight: 500; letter-spacing: .26em;
  border: 1px solid var(--hair-champ); background: rgba(255, 255, 255, .6); color: var(--navy);
  display: inline-flex; align-items: center; gap: 9px;
}
body.luxe .table-pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--live);
  animation: lx-live 2.4s ease-out infinite;
}
@keyframes lx-live { 0% { box-shadow: 0 0 0 0 rgba(47, 111, 176, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 111, 176, 0); } }

/* hero entrance — hidden states only once motion.js is running (.lx-armed) */
body.luxe .hero-logo, body.luxe .hero-tag, body.luxe .hero-loc, body.luxe .menu-search {
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
}
body.luxe.lx-armed:not(.lx-ready) .hero-logo, body.luxe.lx-armed:not(.lx-ready) .hero-tag,
body.luxe.lx-armed:not(.lx-ready) .hero-loc, body.luxe.lx-armed:not(.lx-ready) .menu-search {
  opacity: 0; transform: translateY(16px); filter: blur(6px);
}
body.luxe.lx-ready .hero-tag { transition-delay: .12s; }
body.luxe.lx-ready .hero-loc { transition-delay: .24s; }
body.luxe.lx-ready .menu-search { transition-delay: .36s; }

/* ---------- order status bar ---------- */
body.luxe .order-bar {
  width: calc(100% - 40px); margin: 2px auto 10px; padding: 13px 18px; border-radius: 14px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .03em; color: var(--navy);
  border: 1px solid var(--hair); background: #fff; box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
body.luxe .order-bar.active {
  color: var(--navy); border-color: var(--hair-champ);
  background: linear-gradient(110deg, #fff 20%, #f7ebd6 50%, #fff 80%); background-size: 240% 100%;
  animation: lx-sheen-bg 6s linear infinite;
}
@keyframes lx-sheen-bg { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- search — a single fine line of glass ---------- */
body.luxe .menu-search { margin: 4px auto 6px; padding: 0 22px; }
body.luxe .menu-search input {
  height: 44px; padding: 0 40px 0 40px; border-radius: 999px; font-size: 16px; font-weight: 400; letter-spacing: .01em;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--hair); color: var(--navy);
  box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .5s var(--ease-out), box-shadow .6s var(--ease-out), background .4s;
}
body.luxe .menu-search input::placeholder { color: var(--steel); opacity: .7; font-style: italic; font-family: var(--serif); font-size: 16px; }
body.luxe .menu-search input:focus {
  border-color: var(--hair-champ); background: #fff;
  box-shadow: 0 0 0 4px rgba(235, 210, 169, .28), 0 10px 26px rgba(0, 46, 93, .06);
}
body.luxe .menu-search-icon { z-index: 2; inset-inline-start: 38px; width: 15px; height: 15px; color: var(--steel); opacity: .75; transition: transform .5s var(--ease-out), opacity .4s; }
body.luxe .menu-search-icon circle, body.luxe .menu-search-icon path { stroke-width: 1.5; }
body.luxe .menu-search:focus-within .menu-search-icon { opacity: 1; transform: translateY(-50%) scale(1.06); }
body.luxe .menu-search-clear {
  z-index: 2; inset-inline-end: 30px; width: 26px; height: 26px; font-size: 15px; font-weight: 300;
  background: transparent; color: var(--steel); border: 1px solid var(--hair);
  transition: transform .3s var(--ease-out), border-color .3s;
}
body.luxe .menu-search-clear:hover { border-color: var(--hair-champ); }
body.luxe .menu-search-clear:active { transform: translateY(-50%) scale(.88); }
body.luxe .search-empty { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--steel); }

/* ---------- category cards — same language as the dish sheet:
              clear photo on top, the words below on white paper ---------- */
body.luxe .cat-grid { gap: 16px; padding: 12px 20px 36px; counter-reset: lxcat; }
body.luxe .cat-tile {
  counter-increment: lxcat; aspect-ratio: auto; display: flex; flex-direction: column;
  border-radius: 18px; border: 0; overflow: hidden; background: #fff; isolation: isolate;
  box-shadow: 0 0 0 1px var(--hair), var(--shadow-soft);
  transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out);
}
body.luxe .cat-tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--hair-2), var(--shadow-lift); }
body.luxe .cat-tile:active { transform: scale(.99); }
body.luxe .cat-tile::before, body.luxe .cat-tile::after { content: none; } /* no fog, no overlay */
body.luxe .cat-tile-photo {
  position: relative; inset: auto; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(145deg, #f3e6cf, var(--ivory-2));
}
body.luxe .cat-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.6s var(--ease-out); }
body.luxe .cat-tile.lx-in .cat-tile-img { transform: scale(1.02); }
body.luxe .cat-tile:hover .cat-tile-img { transform: scale(1.05); }
/* the words: gold number · name + count · a fine ring arrow (like the + buttons) */
body.luxe .cat-tile-label {
  position: relative; left: auto; right: auto; bottom: auto; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 14px; align-items: center;
  padding: 16px 18px 17px 20px; background: #fff;
}
body.luxe .cat-tile-label::before {
  content: counter(lxcat, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 2; align-self: stretch;
  display: flex; align-items: center; padding-inline-end: 14px; border-inline-end: 1px solid var(--hair-champ);
  font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .2em; color: var(--logo-gold);
  font-variant-numeric: lining-nums tabular-nums;
}
body.luxe .cat-tile-name { grid-column: 2; grid-row: 1; font-size: 24px; line-height: 1.1; font-weight: 500; letter-spacing: .005em; color: var(--navy); }
body.luxe .cat-tile-count {
  grid-column: 2; grid-row: 2; margin-top: 3px;
  font-size: 9.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--steel);
}
body.luxe .cat-tile-label::after {
  content: "→"; grid-column: 3; grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 300; line-height: 1; color: var(--navy);
  border: 1px solid var(--hair-2); background: transparent;
  transition: background .35s, color .35s, border-color .35s, transform .6s var(--ease-out);
}
[dir="rtl"] body.luxe .cat-tile-label::after { content: "←"; }
body.luxe .cat-tile:hover .cat-tile-label::after { background: var(--navy); border-color: var(--navy); color: var(--ivory); transform: translateX(2px); }
[dir="rtl"] body.luxe .cat-tile:hover .cat-tile-label::after { transform: translateX(-2px); }

/* ---------- category page head ---------- */
body.luxe .cat-detail-head { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 6px 20px 4px; }
body.luxe .back-btn { /* a quiet text link, not a button */
  align-self: flex-start; padding: 8px 4px; border: 0; background: transparent; box-shadow: none;
  font-size: 9.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--steel);
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: color .3s;
}
body.luxe .back-btn:hover { color: var(--navy); }
body.luxe .back-arrow { font-size: 15px; font-weight: 300; transition: transform .4s var(--ease-out); }
body.luxe .back-btn:hover .back-arrow { transform: translateX(-3px); }
[dir="rtl"] body.luxe .back-btn:hover .back-arrow { transform: scaleX(-1) translateX(-3px); }
body.luxe .cat-detail-title { margin: 0; font-size: 36px; font-weight: 500; line-height: 1.1; color: var(--navy); letter-spacing: .005em; }
body.luxe .cat-detail-title::after {
  content: ""; display: block; width: 36px; height: 1px; margin: 14px auto 2px;
  background: linear-gradient(90deg, transparent, var(--hair-champ), transparent);
}
body.luxe .subcat-title { color: var(--navy); font-weight: 500; border-top-color: var(--hair); }

/* ---------- dish cards ---------- */
body.luxe .grid { gap: 14px; padding: 8px 20px 32px; }
body.luxe .card {
  border-radius: 16px; border: 0; background: #fff;
  box-shadow: 0 0 0 1px var(--hair), var(--shadow-soft);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
body.luxe .card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--hair-2), var(--shadow-lift); }
body.luxe .card:active { transform: scale(.985); }
body.luxe .card-thumb { border-bottom: 0; color: rgba(92, 84, 44, .45); font-weight: 400; background: linear-gradient(145deg, #f7ecd9, var(--ivory-2)); }
body.luxe .thumb-img { transform: scale(1.06); transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out); }
body.luxe .has-img .thumb-img { transform: scale(1); }
body.luxe .card:hover .thumb-img { transform: scale(1.05); }
body.luxe .thumb-badge { width: 20px; height: 20px; font-size: 10px; background: rgba(255, 255, 255, .85); border: 1px solid var(--hair-champ); color: var(--logo-gold); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 1; }
body.luxe .card-body { padding: 12px 14px 13px; }
body.luxe .card-name { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.15; color: var(--navy); margin-bottom: 4px; }
body.luxe[data-lang="ar"] .card-name, body.luxe[data-lang="zh"] .card-name, body.luxe[data-lang="ru"] .card-name { font-family: var(--sans); font-size: 14.5px; font-weight: 600; }
body.luxe .card-desc { font-size: 11px; line-height: 1.5; color: var(--steel); }
body.luxe .tag { font-size: 8.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border-color: var(--hair); color: var(--steel); padding: 2px 7px; }
body.luxe .tag-vegetarian { color: #4f7a45; border-color: rgba(79, 122, 69, .25); }
body.luxe .tag-vegan { color: #2f7a60; border-color: rgba(47, 122, 96, .25); }
body.luxe .tag-custom { color: var(--logo-gold); border-color: var(--hair-champ); }
body.luxe .card-foot { padding-top: 10px; border-top: 1px solid var(--hair); }
body.luxe .card-price, body.luxe .price-now { font-size: 16px; font-weight: 500; color: var(--navy); letter-spacing: .02em; }
body.luxe .price-was { color: var(--steel); opacity: .7; }

/* ============ BUTTONS — fine strokes, no weight ============ */
/* "+" / "−" drawn as hairlines (the app's text glyphs are hidden) */
body.luxe .card-add, body.luxe .qty-btn { position: relative; font-size: 0 !important; color: transparent; }
body.luxe .card-add::before, body.luxe .card-add::after,
body.luxe .qty-row > .qty-btn::before, body.luxe .qty-row > .qty-btn:last-child::after,
body.luxe .cart-qty > .qty-btn::before, body.luxe .cart-qty > .qty-btn:last-child::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px;
  background-color: var(--navy); transform: translate(-50%, -50%);
  transition: background-color .3s, transform .5s var(--ease-out);
}
body.luxe .card-add::after, body.luxe .qty-row > .qty-btn:last-child::after, body.luxe .cart-qty > .qty-btn:last-child::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
/* card "+" — a fine ring that fills with navy */
body.luxe .card-add {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair-2); background: transparent;
  transition: transform .6s var(--ease-out), background .35s, border-color .35s;
}
body.luxe .card-add:hover, body.luxe .card-add:focus-visible { background: var(--navy); border-color: var(--navy); transform: rotate(90deg); }
body.luxe .card-add:hover::before, body.luxe .card-add:hover::after,
body.luxe .card-add:focus-visible::before, body.luxe .card-add:focus-visible::after { background-color: var(--ivory); }
body.luxe .card-add:active { transform: scale(.88) rotate(90deg); background: var(--navy); }
/* quantity stepper — a slim hairline pill */
body.luxe .product-cta .qty-row { border-radius: 999px; border: 1px solid var(--hair-2); background: transparent; padding: 0 2px; gap: 0; }
body.luxe .qty-btn { width: 36px; height: 46px; border-radius: 50%; background: transparent; border: 0; transition: background .3s, transform .35s var(--ease-out); }
body.luxe .qty-btn:hover { background: var(--champagne-soft); }
body.luxe .qty-btn:active { transform: scale(.84); background: var(--champagne-soft); }
body.luxe .qty-num { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--navy); min-width: 22px; }
body.luxe .qty-btn.small { width: 26px; height: 26px; border-radius: 50%; background: transparent; border: 1px solid var(--hair-2); }
body.luxe .qty-btn.small::before, body.luxe .qty-btn.small::after { width: 9px; }
body.luxe .cart-qty { gap: 8px; }
body.luxe .cart-qty .qty-num { font-size: 16px; }
/* primary — Ludus navy, ivory letters, a slow champagne light sweep */
body.luxe .btn-primary {
  position: relative; overflow: hidden; border-radius: 999px; padding: 14px 20px; min-height: 48px;
  color: var(--ivory); background: var(--navy); border: 0;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap; text-overflow: ellipsis;
  box-shadow: 0 10px 26px rgba(0, 46, 93, .18);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: transform .4s var(--ease-out), box-shadow .4s, background .3s;
}
body.luxe .btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(235, 210, 169, .32), transparent);
  transform: skewX(-18deg); animation: lx-sweep 4.6s var(--ease-in-out) 1.2s infinite;
}
@keyframes lx-sweep { 0% { left: -60%; } 38%, 100% { left: 130%; } }
body.luxe .btn-primary:hover { box-shadow: 0 14px 34px rgba(0, 46, 93, .26); }
body.luxe .btn-primary:active { transform: scale(.975); background: #00284f; }
body.luxe .btn-primary:disabled { opacity: .5; }
body.luxe .product-cta .btn-primary { letter-spacing: .12em; padding: 14px 14px; min-width: 0; }
/* secondary — champagne hairline */
body.luxe .btn-ghost {
  border-radius: 999px; min-height: 46px; border: 1px solid var(--hair-champ); background: transparent;
  color: var(--navy); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s, border-color .3s, transform .4s var(--ease-out);
}
body.luxe .btn-ghost:hover { background: var(--champagne-soft); }
body.luxe .btn-ghost:active { transform: scale(.975); }

/* ---------- reveal choreography (motion.js adds .lx-reveal, then .lx-in) ---------- */
body.luxe .lx-reveal { opacity: 0; transform: translateY(24px) scale(.988); filter: blur(5px); }
body.luxe .lx-reveal.lx-in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--lx-i, 0) * 70ms);
}
body.luxe .cat-tile.lx-reveal { transform: translateY(30px); clip-path: inset(10% 0 0 0 round 18px); }
body.luxe .cat-tile.lx-reveal.lx-in {
  clip-path: inset(0 0 0 0 round 18px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out), clip-path 1.3s var(--ease-out);
  transition-delay: calc(var(--lx-i, 0) * 90ms);
}
body.luxe .lx-view-in { animation: lx-view .7s var(--ease-out); }
@keyframes lx-view { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- sheets: long silky open, quick close (the app hides them after 240 ms) ---------- */
body.luxe .sheet-backdrop { background: rgba(11, 36, 64, .28); transition: opacity .22s ease; }
body.luxe .sheet-backdrop.open { transition: opacity .5s var(--ease-out); }
body.luxe .sheet {
  background: rgba(255, 255, 255, .96); color: var(--navy); border: 0; border-radius: 26px 26px 0 0;
  box-shadow: 0 -1px 0 var(--hair), 0 -24px 60px rgba(0, 46, 93, .12);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: transform .22s cubic-bezier(.4, 0, 1, 1);
}
body.luxe .sheet-backdrop.open .sheet { transition: transform .7s var(--ease-out); }
body.luxe .sheet-handle { width: 34px; height: 3px; background: var(--champagne); margin: 6px auto 18px; }
body.luxe .sheet-title { font-size: 26px; font-weight: 500; color: var(--navy); text-align: center; margin-bottom: 18px; }
body.luxe .sheet-title::after { content: ""; display: block; width: 32px; height: 1px; margin: 12px auto 0; background: linear-gradient(90deg, transparent, var(--hair-champ), transparent); }
body.luxe .sheet-close {
  width: 34px; height: 34px; top: 14px; inset-inline-end: 14px; font-size: 11px; font-weight: 300;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--hair); color: var(--navy); box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .5s var(--ease-out), border-color .3s;
}
body.luxe .sheet-close:hover { transform: rotate(90deg); border-color: var(--hair-champ); }

/* product sheet — photo melts into white paper, text in navy */
body.luxe .product-sheet { border-radius: 26px 26px 0 0; background: #fff; }
body.luxe .product-hero { /* photo band on top (fully clear), text flows below on paper */
  display: block; height: auto; min-height: 0; max-height: none; padding-top: min(52vh, 440px);
  background: #fff; color: rgba(92, 84, 44, .4);
}
body.luxe .product-hero::before { /* soft placeholder tone behind the photo while it loads */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: min(52vh, 440px); background: linear-gradient(145deg, #f3e6cf, var(--ivory-2));
}
body.luxe .product-hero .thumb-img { inset: 0 0 auto 0; height: min(52vh, 440px); z-index: 1; }
body.luxe .product-hero .thumb-img { transform: scale(1.12); transition: opacity .8s var(--ease-out), transform 1.8s var(--ease-out); }
body.luxe .sheet-backdrop.open .product-hero .thumb-img { transform: scale(1); }
body.luxe .product-scrim { display: none; }
body.luxe .product-overlay { position: relative; left: auto; right: auto; bottom: auto; z-index: 2; padding: 20px 24px 6px; background: #fff; }
body.luxe .product-overlay > * { opacity: 0; transform: translateY(14px); }
body.luxe .sheet-backdrop.open .product-overlay > * { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
body.luxe .sheet-backdrop.open .product-overlay > :nth-child(1) { transition-delay: .18s; }
body.luxe .sheet-backdrop.open .product-overlay > :nth-child(2) { transition-delay: .26s; }
body.luxe .sheet-backdrop.open .product-overlay > :nth-child(3) { transition-delay: .34s; }
body.luxe .sheet-backdrop.open .product-overlay > :nth-child(4) { transition-delay: .42s; }
body.luxe .product-name { font-size: 36px; font-weight: 500; line-height: 1.05; color: var(--navy); margin: 8px 0 8px; }
body.luxe[data-lang="ar"] .product-name, body.luxe[data-lang="zh"] .product-name, body.luxe[data-lang="ru"] .product-name { font-family: var(--sans); font-size: 26px; font-weight: 600; }
body.luxe .product-desc { color: var(--steel); font-size: 13.5px; line-height: 1.6; max-width: 94%; }
body.luxe .product-price { display: block; font-size: 23px; font-weight: 500; color: var(--navy); letter-spacing: .03em; }
body.luxe .product-price::before { content: ""; display: block; width: 26px; height: 1px; margin: 2px 0 10px; background: var(--hair-champ); }
body.luxe .product-cta { /* pinned to the bottom of the sheet, so it's always reachable on small phones */
  position: sticky; bottom: 0; z-index: 3; margin-top: 0; gap: 10px;
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--hair);
}
.lx-tick { animation: lx-tick .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes lx-tick { from { transform: translateY(-7px); opacity: 0; } to { transform: none; opacity: 1; } }

/* language sheet */
body.luxe .lang-option {
  border-radius: 14px; padding: 16px 18px; font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--navy);
  background: #fff; border: 1px solid var(--hair); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background .3s, border-color .3s, transform .5s var(--ease-out);
}
body.luxe .lang-option:hover { background: var(--ivory); border-color: var(--hair-champ); transform: translateX(4px); }
body.luxe .lang-flag { font-family: var(--sans); font-size: 9.5px; font-weight: 500; letter-spacing: .26em; color: var(--logo-gold); }
body.luxe .sheet-backdrop.open .lang-option { animation: lx-rise .7s var(--ease-out) backwards; }
body.luxe .sheet-backdrop.open .lang-option:nth-of-type(2) { animation-delay: .06s; }
body.luxe .sheet-backdrop.open .lang-option:nth-of-type(3) { animation-delay: .12s; }
body.luxe .sheet-backdrop.open .lang-option:nth-of-type(4) { animation-delay: .18s; }
@keyframes lx-rise { from { opacity: 0; transform: translateY(14px); } }

/* cart */
body.luxe .cart-item { padding: 14px 0; border-bottom-color: var(--hair); }
body.luxe .sheet-backdrop.open .cart-item { animation: lx-rise .6s var(--ease-out) backwards; }
body.luxe .sheet-backdrop.open .cart-item:nth-child(2) { animation-delay: .05s; }
body.luxe .sheet-backdrop.open .cart-item:nth-child(3) { animation-delay: .1s; }
body.luxe .sheet-backdrop.open .cart-item:nth-child(n+4) { animation-delay: .15s; }
body.luxe .cart-item-thumb { width: 50px; height: 50px; flex-basis: 50px; border-radius: 12px; border: 0; color: rgba(92, 84, 44, .5); background: linear-gradient(145deg, #f7ecd9, var(--ivory-2)); }
body.luxe .cart-item-name { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--navy); }
body.luxe .cart-item-price { font-size: 11.5px; letter-spacing: .03em; color: var(--steel); }
body.luxe .cart-total-row { align-items: center; padding: 16px 2px 6px; border-top: 1px solid var(--hair-champ); font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); font-family: var(--sans); }
body.luxe #cartTotal { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: .02em; color: var(--navy); text-transform: none; }
body.luxe .cart-empty { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--steel); padding: 40px 0; }
body.luxe .cart-note { color: var(--steel); opacity: .85; }
body.luxe .cart-status { border-radius: 16px; border: 1px solid var(--hair); background: var(--ivory); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.luxe .status-label { font-size: 21px; font-weight: 500; color: var(--navy); }
body.luxe .status-label.paid { color: #2f7a60; }
body.luxe .status-dot { width: 22px; height: 22px; font-size: 10px; border: 1px solid var(--hair-2); background: #fff; color: var(--steel); }
body.luxe .status-step.done .status-dot { background: var(--navy); border-color: var(--navy); color: var(--ivory); box-shadow: 0 0 0 4px rgba(235, 210, 169, .45); }
body.luxe .status-step-label { font-size: 10px; color: var(--steel); }
body.luxe .status-step { transition: opacity .8s var(--ease-out); }
body.luxe .cart-qty-fixed { color: var(--steel); }

/* toast */
body.luxe .toast {
  bottom: calc(26px + env(safe-area-inset-bottom)); padding: 11px 20px 11px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--hair); color: var(--navy);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em; display: flex; align-items: center; gap: 10px;
  transform: translate(-50%, 30px) scale(.95);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
  box-shadow: 0 16px 40px rgba(0, 46, 93, .14);
}
body.luxe .toast::before {
  content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--champagne); color: var(--navy); font-size: 10px; font-weight: 700; flex: none;
}
body.luxe .toast.show { transform: translate(-50%, 0) scale(1); }

/* footer */
body.luxe .footer { border-top: 0; margin-top: 28px; padding: 40px 20px calc(40px + env(safe-area-inset-bottom)); color: var(--steel); position: relative; }
body.luxe .footer::before {
  content: "◆"; display: block; margin: 0 auto 20px; width: 150px; font-size: 7px; line-height: 1; color: var(--hair-champ);
  background: linear-gradient(90deg, transparent, var(--hair-champ) 30%, transparent 44%, transparent 56%, var(--hair-champ) 70%, transparent) center / 100% 1px no-repeat;
}
body.luxe .footer-brand { font-size: 15px; font-weight: 500; letter-spacing: .44em; color: var(--navy); margin-bottom: 10px; }
body.luxe .footer p { font-size: 11px; letter-spacing: .08em; }
body.luxe .footer a { color: var(--navy); border-bottom: 1px solid transparent; transition: border-color .3s; }
body.luxe .footer a:hover { border-bottom-color: var(--champagne); }

/* fly-to-basket ghost */
.lx-fly {
  position: fixed; z-index: 150; pointer-events: none; border-radius: 50%; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 46, 93, .22), 0 0 0 2px #fff;
  background: #ebd2a9 center / cover no-repeat;
}

/* staff "taking an order" banner */
body.luxe .staff-order-bar { background: var(--navy); color: var(--ivory); letter-spacing: .04em; font-weight: 500; }

/* modern (lining) figures for every price & number — Cormorant's old-style "0" reads like "o" */
body.luxe .card-price, body.luxe .product-price, body.luxe #cartTotal, body.luxe .qty-num,
body.luxe .price-now, body.luxe .price-was, body.luxe .cart-item-price, body.luxe .cart-badge, body.luxe .btn-primary {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- wider screens: a touch more air ---------- */
@media (min-width: 700px) {
  body.luxe .hero { padding-top: 38px; }
  body.luxe .hero-tag { font-size: 24px; }
  body.luxe .cat-tile-name { font-size: 28px; }
  body.luxe .grid { gap: 18px; }
}

/* Arabic: letter-spacing breaks letter joining, and the italic serif doesn't suit it */
[dir="rtl"] body.luxe, [dir="rtl"] body.luxe * { letter-spacing: 0 !important; }
[dir="rtl"] body.luxe .menu-search input::placeholder { font-style: normal; font-family: var(--sans); font-size: 14.5px; }
[dir="rtl"] body.luxe .hero-tag { font-style: normal; font-family: var(--sans); font-weight: 500; font-size: 18px; }

/* ---------- calm version for "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  body.luxe *, body.luxe *::before, body.luxe *::after, .lx-grain, .lx-curtain, .lx-curtain * {
    animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .lx-curtain { display: none; }
  body.luxe .lx-reveal { opacity: 1; transform: none; filter: none; clip-path: none; }
  body.luxe .hero-inner { transform: none; opacity: 1; }
}

/* ======================= dish carousel (assets/carousel.js) ======================= */
body.luxe .lx-switch {
  display: flex; width: max-content; margin: 6px auto 0; padding: 3px; border-radius: 999px;
  border: 1px solid var(--hair); background: rgba(255, 255, 255, .55);
}
body.luxe .lx-switch button {
  border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer;
  font: inherit; font-size: 9.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--steel);
  transition: background .35s, color .35s;
}
body.luxe .lx-switch button.on { background: var(--navy); color: var(--ivory); }

body.luxe .lx-stage {
  --cw: 150px; /* card width, height, eye level & perspective are set by carousel.js from the screen width */
  position: relative; height: 560px; max-width: 720px; margin: 4px auto 0; overflow: hidden;
  perspective: 1100px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  animation: lx-view .9s var(--ease-out);
}
body.luxe .lx-scene { position: absolute; inset: 0; transform-style: preserve-3d; }
/* the dotted 3D logo — fixed in the middle, floating above the ring */
/* the ornament column — tall, at the centre of the ring (transform set by carousel.js) */
body.luxe .lx-logo3d { position: absolute; left: 50%; top: 8px; width: 160px; height: 80%; pointer-events: none; }
body.luxe .lx-ring { position: absolute; left: 50%; top: 64%; width: 0; height: 0; transform-style: preserve-3d; } /* eye level: no tilt */
body.luxe .lx-ring-card {
  position: absolute; left: 0; top: 0; width: var(--cw); margin: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; touch-action: none; cursor: grab;
  will-change: transform, opacity; transition: box-shadow .5s var(--ease-out);
}
body.luxe .lx-ring-card:active { cursor: grabbing; }
body.luxe .lx-ring-card .card-desc, body.luxe .lx-ring-card .card-tags { display: none; }
body.luxe .lx-ring-card .card-body { padding: 10px 11px 11px; }
body.luxe .lx-ring-card .card-name { font-size: calc(var(--cw) * .105); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
body.luxe .lx-ring-card .card-foot { padding-top: 8px; }
body.luxe .lx-ring-card .card-price { font-size: calc(var(--cw) * .095); }
body.luxe .lx-ring-card .card-add { width: 30px; height: 30px; }
body.luxe .lx-ring-card .card-add::before, body.luxe .lx-ring-card .card-add::after { width: 9px; }
body.luxe .lx-ring-card:hover { transform: none; }
body.luxe .lx-ring-card.lx-front { box-shadow: 0 0 0 1px var(--hair-champ), 0 22px 50px rgba(0, 46, 93, .16); }
/* flick-up-to-add: a champagne glow + label appear once the flick is far enough */
body.luxe .lx-ring-card::after {
  content: attr(data-lx-add); position: absolute; left: 50%; top: -30px; transform: translateX(-50%);
  white-space: nowrap; font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
  opacity: 0; transition: opacity .25s;
}
body.luxe .lx-ring-card.lx-lift-ready { box-shadow: 0 0 0 1.5px #cbaa76, 0 26px 60px rgba(203, 170, 118, .45); }
body.luxe .lx-ring-card.lx-lift-ready::after { opacity: 1; }
body.luxe .lx-hint {
  position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; pointer-events: none;
  font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); opacity: .75;
}
/* tap → the photo grows into the dish sheet */
.lx-zoom { position: fixed; z-index: 120; pointer-events: none; background: #ede3d4 center / cover no-repeat; box-shadow: 0 30px 80px rgba(0, 46, 93, .25); }
.lx-zooming .product-hero .thumb-img { opacity: 0 !important; transition: none !important; }


/* ---------- first visit: "Preparing the menu" instead of the old fallback (assets/fresh.js) ---------- */
html.lx-loading body.luxe #menu, html.lx-loading body.luxe #chips { display: none !important; }
body.luxe .lx-menu-loading { max-width: var(--max); margin: 34px auto 60px; text-align: center; transition: opacity .6s var(--ease-out); }
body.luxe .lx-menu-loading.lx-out { opacity: 0; }
body.luxe .lx-menu-loading p { margin: 16px 0 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--steel); }
body.luxe .lx-ml-line {
  display: block; width: 120px; height: 1px; margin: 0 auto; overflow: hidden; position: relative; background: var(--hair);
}
body.luxe .lx-ml-line::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -45%;
  background: linear-gradient(90deg, transparent, #cbaa76, transparent); animation: lx-ml 1.6s var(--ease-in-out) infinite;
}
@keyframes lx-ml { to { left: 100%; } }
