/* Strasbourg — customer menu */

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 243, 240, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand img { height: 26px; width: auto; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px 0 10px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 13px; letter-spacing: .04em;
}
.lang-btn .icon { width: 18px; height: 18px; }
.lang-btn .icon:last-child { width: 16px; height: 16px; color: var(--ink-3); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  margin-top: 6px; padding: 26px 22px 22px;
  border-radius: var(--r-xl);
  background: var(--ink); color: #fff;
}
.hero-mark {
  position: absolute; right: -38px; top: -30px;
  width: 150px; height: 150px; opacity: .95; pointer-events: none;
}
.hero-eyebrow { color: #FF8A8E; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.hero-title { margin-top: 4px; font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; max-width: 70%; }
.hero-sub { margin-top: 6px; color: rgba(255, 255, 255, .62); font-size: 14px; max-width: 70%; }

.hero-actions {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
  margin-top: 22px;
}
.hero-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-width: 0; height: 66px; padding: 0 6px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .09); color: #fff;
  font-weight: 600; font-size: 12.5px;
  transition: background .2s, transform .15s var(--ease);
}
.hero-chip span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-chip:active { transform: scale(.96); }
.hero-chip .icon { width: 21px; height: 21px; }
@media (hover: hover) { .hero-chip:hover { background: rgba(255, 255, 255, .18); } }

/* ---------- Search (always in the top bar) ---------- */

.topbar .wrap { position: relative; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.search-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 14px; color: var(--ink-2);
  transition: transform .15s var(--ease);
}
.search-btn:active { transform: scale(.92); }

.cur-btn {
  min-width: 38px; height: 38px; padding: 0 11px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 13px; letter-spacing: .03em;
  transition: transform .15s var(--ease);
}
.cur-btn:active { transform: scale(.92); }
.cur-btn[hidden] { display: none; }
.search-btn .icon { width: 19px; height: 19px; color: var(--ink); }
.search-btn span { display: none; }

.search {
  position: absolute; inset: 11px 16px; z-index: 2;
  display: flex; align-items: center;
  border-radius: var(--r-pill); background: var(--surface);
  box-shadow: 0 0 0 2px var(--ink), var(--shadow-md);
  opacity: 0; transform: scale(.96); pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease);
}
.topbar.searching .search { opacity: 1; transform: none; pointer-events: auto; }
.topbar.searching .brand, .topbar.searching .topbar-actions { visibility: hidden; }
.search > .icon { flex: none; width: 18px; height: 18px; margin-left: 14px; color: var(--ink-3); }
.search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 10px;
  border: 0; background: none; outline: none;
  font-size: 16px;
}
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search-close {
  flex: none; width: 30px; height: 30px; margin-right: 4px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2);
}
.search-close .icon { width: 16px; height: 16px; }

.is-searching .hero { display: none; }

@media (min-width: 760px) {
  .search-btn { width: auto; padding: 0 16px 0 13px; border-radius: var(--r-pill); }
  .search-btn span { display: inline; }
  .search { left: auto; width: 420px; }
  .topbar.searching .brand { visibility: visible; }
}

/* ---------- Category bar ---------- */

.cats {
  position: sticky; top: 60px; z-index: 20;
  margin-top: 6px;
  background: rgba(245, 243, 240, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.cats-inner { position: relative; max-width: 1040px; margin: 0 auto; }
.cats-scroll {
  --fade-l: 0px; --fade-r: 0px;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 16px 12px;
  scrollbar-width: none; overscroll-behavior-x: contain;
  /* soft fade at an edge where more categories continue */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.cats-scroll::-webkit-scrollbar { display: none; }
.cats-inner.more-left .cats-scroll { --fade-l: 36px; }
.cats-inner.more-right .cats-scroll { --fade-r: 36px; }
.cats-scroll.dragging { cursor: grabbing; user-select: none; }
.cats-scroll.dragging .cat-pill { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .cats-scroll { cursor: grab; } }

/* tiny arrow showing there is more to scroll (also clickable) */
.cats-arrow {
  position: absolute; top: 15px; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-md);
  opacity: 0; transform: scale(.8); pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.cats-arrow .icon { width: 16px; height: 16px; }
.cats-arrow.left { left: 6px; }
.cats-arrow.right { right: 6px; }
.cats-inner.more-left .cats-arrow.left,
.cats-inner.more-right .cats-arrow.right { opacity: 1; transform: none; pointer-events: auto; }
.cats-arrow:active { transform: scale(.9); }

.cat-pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 6px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .25s, color .25s, transform .15s var(--ease);
}
.cat-pill:active { transform: scale(.96); }
.cat-pill img { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); padding: 3px; }
.cat-pill.active { background: var(--ink); color: #fff; }
.cat-pill.active img { background: rgba(255, 255, 255, .92); }
.cat-pill[hidden] { display: none; }

/* ---------- Sections & dishes ---------- */

.sections { padding-top: 6px; padding-bottom: calc(120px + var(--safe-b)); }

.section { scroll-margin-top: 128px; padding-top: 18px; }
.section[hidden] { display: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.015em; }
.section-count { color: var(--ink-3); font-size: 13px; font-weight: 600; white-space: nowrap; }

.dishes { display: grid; gap: 10px; }
@media (min-width: 760px) { .dishes { grid-template-columns: 1fr 1fr; gap: 12px; } }

.dish {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 10px; padding-right: 14px;
  border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
  cursor: pointer; text-align: left;
  transition: transform .18s var(--ease), box-shadow .2s;
}
.dish[hidden] { display: none; }
.dish:active { transform: scale(.985); }
@media (hover: hover) { .dish:hover { box-shadow: var(--shadow-md); } }

.dish .food-img { width: 76px; height: 76px; flex: none; }
.dish-body { flex: 1; min-width: 0; }
.dish-name { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.dish-desc {
  margin-top: 3px; color: var(--ink-2); font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.price { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: 11px; font-weight: 700; color: var(--ink-3); margin-left: 2px; letter-spacing: .03em; }
.size-price {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 9px; border-radius: var(--r-pill);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.size-price em { font-style: normal; font-weight: 600; color: var(--ink-3); font-size: 11.5px; }
.price-unit { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .03em; }

.dish-gift { display: inline-flex; color: var(--red); }
.dish-gift .icon { width: 17px; height: 17px; }

.dish-add {
  flex: none; position: relative;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff;
  transition: transform .15s var(--ease), background .2s;
}
.dish-add:active { transform: scale(.88); }
.dish-add .icon { width: 18px; height: 18px; }
.dish-add[data-count]::after {
  content: attr(data-count);
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  box-shadow: 0 0 0 2px var(--surface);
}

.empty {
  text-align: center; padding: 56px 20px; color: var(--ink-2);
}
.empty img { width: 96px; height: 96px; margin: 0 auto 14px; opacity: .9; }
.empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.footer {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 36px 0 0; color: var(--ink-3); font-size: 13px; text-align: center;
}
.footer img { width: 40px; height: 40px; }

/* ---------- Floating list bar ---------- */

.list-bar {
  position: fixed; z-index: 40; left: 50%;
  bottom: calc(16px + var(--safe-b));
  width: calc(100% - 32px); max-width: 440px;
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 8px 0 10px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  transition: transform .38s var(--ease);
}
.list-bar.show { transform: translate(-50%, 0); }
.list-bar-count {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); font-weight: 800; font-size: 15px;
}
.list-bar-label { flex: 1; text-align: left; font-weight: 700; }
.list-bar-total {
  height: 44px; padding: 0 16px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); font-weight: 800; font-variant-numeric: tabular-nums;
}
.list-bar.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: translate(-50%, 0) scale(1.04); } }

/* ---------- Dish sheet ---------- */

.dish-sheet .food-img { width: 100%; height: 220px; border-radius: var(--r-lg); }
.dish-sheet .food-img img:not(.photo) { width: 62%; height: 90%; }
.dish-sheet-name { margin-top: 18px; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.dish-sheet-desc { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--red-soft); color: var(--red-ink); font-weight: 600; font-size: 14px;
}

.label { display: block; margin: 20px 0 8px; color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
  padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.segmented button {
  height: 44px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.segmented button span { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 600; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.weight-pick {
  display: flex; align-items: center; gap: 6px;
  padding: 4px; border-radius: var(--r-pill);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.weight-pick > button {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease);
}
.weight-pick > button:active { transform: scale(.92); }
.weight-field { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 4px; cursor: text; }
.weight-field input {
  width: 5ch; border: 0; background: none; outline: none; text-align: right;
  font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.weight-field input::-webkit-outer-spin-button,
.weight-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.weight-field span { font-size: 16px; font-weight: 700; color: var(--ink-3); }
.weight-hint { margin: 8px 4px 0; color: var(--ink-3); font-size: 13px; font-weight: 600; }

.sheet-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.sheet-actions .stepper button { width: 44px; height: 48px; }
.sheet-actions .btn { flex: 1; }

/* ---------- List sheet ---------- */

.list-rows { display: grid; gap: 4px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.list-row .food-img { width: 52px; height: 52px; border-radius: var(--r-sm); flex: none; }
.list-row-body { flex: 1; min-width: 0; }
.list-row-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.list-row-meta { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.list-row .stepper button { width: 32px; height: 32px; }

.list-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-weight: 800; font-size: 18px;
}
.waiter-hint {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink-2); font-size: 14px; font-weight: 600;
}

/* ---------- Send order ---------- */

.order-box { display: grid; gap: 8px; margin-top: 16px; }
.order-input {
  width: 100%; min-height: 48px; padding: 13px 16px;
  border: 0; border-radius: var(--r-md); outline: none; resize: none;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px; line-height: 1.4;
  transition: box-shadow .2s, background .2s;
}
.order-input:focus { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.order-hint { margin: 2px 4px 4px; color: var(--ink-3); font-size: 13px; font-weight: 600; }

.order-done { text-align: center; padding: 8px 0 4px; }
.order-check {
  width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: #E7F6EE; color: var(--green);
}
.order-check .icon { width: 32px; height: 32px; }
.order-code {
  display: inline-flex; flex-direction: column; align-items: center;
  margin: 18px 0 10px; padding: 14px 36px; border-radius: var(--r-lg);
  background: var(--ink); color: #fff;
}
.order-code small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.order-code b { font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.order-done-hint { color: var(--ink-2); font-weight: 600; margin-bottom: 20px; }

/* ---------- Language & Wi‑Fi sheets ---------- */

.lang-list { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.lang-item {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 10px; border-radius: var(--r-md); text-align: left;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, background .2s;
}
.lang-code {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface); font-weight: 800; font-size: 12px; letter-spacing: .05em; box-shadow: var(--shadow-sm);
}
.lang-item b { display: block; font-size: 15px; }
.lang-item small { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.lang-item.active { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink); }
.lang-item.active .lang-code { background: var(--ink); color: #fff; }

.info-rows { display: grid; gap: 8px; }
.info-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 16px; border-radius: var(--r-md);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.info-row div { flex: 1; min-width: 0; }
.info-row small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.info-row b { display: block; font-size: 17px; word-break: break-word; }
.wifi-badge {
  width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 14px;
}
.wifi-badge .icon { width: 30px; height: 30px; }

/* ---------- Loading ---------- */

.skeleton { display: grid; gap: 10px; padding-top: 24px; }
.skeleton div { height: 96px; border-radius: var(--r-lg); background: linear-gradient(90deg, #EEEAE5 0%, #F7F5F2 50%, #EEEAE5 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (min-width: 760px) {
  .hero { padding: 34px 34px 28px; }
  .hero-title { font-size: 40px; }
  .hero-actions { grid-auto-columns: 132px; justify-content: start; }
  .hero-mark { width: 250px; height: 250px; right: -20px; top: -30px; }
  .cats-scroll { padding-left: 16px; padding-right: 16px; }
}
