:root {
  color-scheme: light;
  --bd-bg: #f7f6f2;
  --bd-surface: #ffffff;
  --bd-surface-soft: #fbfaf7;
  --bd-text: #151515;
  --bd-body: #24211d;
  --bd-muted: #77736c;
  --bd-line: rgba(21, 21, 21, .1);
  --bd-line-strong: rgba(21, 21, 21, .18);
  --bd-accent: #b96f2d;
  --bd-accent-dark: #7e3f16;
  --bd-gold: #d7a85c;
  --bd-success: #17623b;
  --bd-success-bg: #eefaf3;
  --bd-danger: #9b1c25;
  --bd-danger-bg: #fff1f2;
  --bd-shadow: 0 22px 70px rgba(36, 25, 12, .13);
  --bd-shadow-soft: 0 14px 40px rgba(36, 25, 12, .09);
  --bd-radius: 8px;
  --bd-font: "Segoe UI", Tahoma, Arial, "Noto Sans Arabic", "Geeza Pro", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { background: var(--bd-bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 168, 92, .18), transparent 28rem),
    linear-gradient(180deg, #fffaf2 0%, var(--bd-bg) 28rem);
  color: var(--bd-body);
  font-family: var(--bd-font);
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: clip;
}
body.bd-scroll-lock { overflow: hidden; touch-action: none; }
img, svg, canvas, video { max-width: 100%; }
button, input, textarea { font: inherit; max-width: 100%; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .58; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--bd-accent);
  outline-offset: 3px;
}

.bd-shell {
  min-height: 100vh;
  width: 100%;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.bd-mobile-head {
  position: fixed;
  inset: calc(8px + env(safe-area-inset-top)) 10px auto;
  z-index: 18;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--bd-radius);
  background: rgba(255,255,255,.8);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.bd-mobile-head.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.bd-mobile-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.bd-mobile-head strong { color: var(--bd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-mobile-head button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  background: var(--bd-text);
  color: #fff;
  font-weight: 900;
}
.bd-mobile-head span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-end: 4px; border-radius: 50%; background: #fff; color: var(--bd-text); }

.bd-hero {
  position: relative;
  min-height: clamp(430px, 72vh, 680px);
  overflow: hidden;
  background: #17120d;
  isolation: isolate;
}
.bd-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.04);
  animation: bd-cover-in 1100ms cubic-bezier(.2,.7,.2,1) forwards;
}
.bd-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.32) 48%, rgba(0,0,0,.72)),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.72) 82%, rgba(247,246,242,1) 100%);
}
.bd-hero-glow {
  position: absolute;
  inset: auto -10% -28% -10%;
  height: 42%;
  background: radial-gradient(ellipse at center, rgba(215,168,92,.36), transparent 68%);
  pointer-events: none;
}
.bd-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  min-height: inherit;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(92px, 17vh, 170px) 18px 56px;
}
.bd-identity { animation: bd-rise .7s ease both .08s; }
.bd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff7e8;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.bd-hero h1 {
  margin: 0;
  max-width: 780px;
  color: #fff;
  font-size: clamp(2.45rem, 9vw, 5.8rem);
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 45px rgba(0,0,0,.35);
}
.bd-desc {
  max-width: 660px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(.98rem, 2.1vw, 1.2rem);
}
.bd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.bd-meta-row span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  color: #fff;
  font-size: .88rem;
  backdrop-filter: blur(10px);
}
.bd-logo {
  width: clamp(82px, 14vw, 128px);
  height: clamp(82px, 14vw, 128px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.88);
  background: #fff;
  box-shadow: 0 24px 55px rgba(0,0,0,.28);
  animation: bd-logo-in .62s cubic-bezier(.2,.8,.2,1) both .18s;
}

.bd-table-context {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 24px));
  margin: -28px auto 0;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--bd-radius);
  background: rgba(255,255,255,.92);
  box-shadow: var(--bd-shadow-soft);
  backdrop-filter: blur(18px);
}
.bd-context-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff4df;
  color: var(--bd-accent-dark);
  font-weight: 900;
}
.bd-table-context span { display: block; color: var(--bd-muted); font-size: .9rem; font-weight: 800; }
.bd-table-context b { display: block; color: var(--bd-text); font-size: 1.75rem; line-height: 1.1; }
.bd-table-context strong { display: block; color: var(--bd-text); font-size: .98rem; }
.bd-table-context small { display: block; margin-top: 4px; color: var(--bd-muted); }
.bd-customer-action {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bd-text), #3a2515);
  color: #fff;
  padding: 10px 16px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(21,21,21,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bd-customer-action:active { transform: scale(.97); }

.bd-tools {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 16px 12px 12px;
  background: rgba(247,246,242,.82);
  border-bottom: 1px solid rgba(21,21,21,.08);
  backdrop-filter: blur(20px);
  transition: box-shadow .2s ease, padding .2s ease;
}
.bd-tools.is-compact { box-shadow: 0 16px 40px rgba(36,25,12,.1); padding-top: 10px; }
.bd-search, .bd-cats, .bd-list { width: min(1080px, 100%); margin-inline: auto; }
.bd-search {
  position: relative;
  display: block;
  border-radius: var(--bd-radius);
  box-shadow: var(--bd-shadow-soft);
}
.bd-search > span {
  position: absolute;
  inset-inline-start: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: var(--bd-accent);
  font-size: 1.3rem;
  font-weight: 900;
}
.bd-search input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(21,21,21,.08);
  border-radius: var(--bd-radius);
  background: rgba(255,255,255,.96);
  color: var(--bd-text);
  padding: 12px 48px;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.bd-search input:focus { border-color: rgba(185,111,45,.48); box-shadow: 0 0 0 5px rgba(185,111,45,.12); background: #fff; }
.bd-search input::placeholder { color: #938b80; }
.bd-search button {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%) scale(.9);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f0ede6;
  color: var(--bd-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.bd-search.has-value button { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }
.bd-cats {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 13px 2px 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}
.bd-cats::-webkit-scrollbar, .bd-chips::-webkit-scrollbar { display: none; }
.bd-cat, .bd-chips button, .bd-type button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--bd-line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--bd-body);
  padding: 9px 14px;
  font-weight: 900;
  scroll-snap-align: start;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.bd-cat-icon { margin-inline-end: 6px; }
.bd-cat.is-active, .bd-type button.is-active {
  border-color: transparent;
  background: var(--bd-text);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21,21,21,.15);
}
.bd-cat:active, .bd-chips button:active, .bd-type button:active { transform: scale(.97); }

.bd-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  padding: 22px 12px;
}
.bd-item {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(21,21,21,.08);
  border-radius: var(--bd-radius);
  background: var(--bd-surface);
  box-shadow: 0 10px 28px rgba(36,25,12,.06);
  content-visibility: auto;
  contain-intrinsic-size: 360px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .36s ease, transform .36s ease, box-shadow .22s ease;
}
.bd-item.is-visible { opacity: 1; transform: translateY(0); }
.bd-item:hover { box-shadow: var(--bd-shadow); transform: translateY(-3px); }
.bd-item.is-added { animation: bd-card-pulse .42s ease; }
.bd-item-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f0ede6; }
.bd-item-media::after { content: ""; position: absolute; inset: auto 0 0; height: 44%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.2)); pointer-events: none; }
.bd-item-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}
.bd-item:hover .bd-item-img { transform: scale(1.035); }
.bd-item-img-empty, .assistant-product-image.is-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(185,111,45,.12), transparent 30%),
    linear-gradient(135deg, #fff8ed, #f0ede6);
}
.bd-item-img-empty::before, .assistant-product-image.is-empty::before {
  content: "";
  width: 44%;
  aspect-ratio: 1;
  border: 3px solid rgba(126,63,22,.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.64);
}
.bd-item-body { padding: 14px 14px 4px; }
.bd-item h3 { margin: 0 0 7px; color: var(--bd-text); font-size: 1.16rem; line-height: 1.25; }
.bd-item p { margin: 0; color: var(--bd-muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.bd-item-meta span, .bd-featured {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff4df;
  color: var(--bd-accent-dark);
  font-size: .76rem;
  font-weight: 900;
}
.bd-featured { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: rgba(21,21,21,.8); color: #fff; backdrop-filter: blur(8px); }
.bd-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
}
.bd-price { color: var(--bd-text); font-weight: 950; font-size: 1.08rem; }
.bd-add, .bd-assistant-form button, .bd-assistant-card button, .bd-submit, .bd-wheel-wa, .bd-assistant-action {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--bd-text), #372316);
  color: #fff;
  padding: 10px 16px;
  font-weight: 950;
  box-shadow: 0 12px 25px rgba(21,21,21,.13);
  transition: transform .16s ease, filter .16s ease;
}
.bd-add { min-width: 90px; }
.bd-add.is-added { background: linear-gradient(135deg, var(--bd-success), #0f4a2d); }
.bd-add:active, .bd-submit:active, .bd-assistant-action:active { transform: scale(.97); }

.bd-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px;
  border: 1px dashed var(--bd-line-strong);
  border-radius: var(--bd-radius);
  color: var(--bd-muted);
  text-align: center;
  background: rgba(255,255,255,.72);
}

.bd-assistant,
.bd-ai-voice {
  width: min(980px, calc(100% - 24px));
  margin: 18px auto;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--bd-radius);
  background:
    linear-gradient(135deg, rgba(21,21,21,.96), rgba(87,52,24,.94)),
    var(--bd-text);
  color: #fff;
  box-shadow: var(--bd-shadow);
}
.voice-hero-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 12px; }
.voice-copy h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.55rem, 5vw, 2.7rem); }
.voice-copy p:not(.bd-kicker) { margin: 0; color: rgba(255,255,255,.74); }
.bd-assistant .bd-kicker,
.bd-ai-voice .bd-kicker { background: rgba(255,255,255,.1); }
.bd-mic {
  position: relative;
  width: clamp(86px, 17vw, 116px);
  height: clamp(86px, 17vw, 116px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffe3ad, var(--bd-accent) 48%, #5a250c 100%);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 0 38px rgba(215,168,92,.35);
}
.bd-mic i { position: absolute; inset: -9px; border: 1px solid rgba(215,168,92,.34); border-radius: 50%; opacity: .55; }
.bd-mic i + i { inset: -18px; opacity: .22; }
.voice-mic-button.is-listening i { animation: bd-mic-ring 1.2s ease infinite; }
.voice-mic-button.is-listening i + i { animation-delay: .28s; }
.voice-mic-button.is-unsupported { background: #f0ede6; color: var(--bd-muted); box-shadow: none; }
.bd-assistant-note { color: #ffe6b8; }
.bd-chips { display: flex; gap: 8px; overflow: auto; padding-bottom: 8px; }
.bd-chips button { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.16); }
.bd-assistant-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.bd-assistant-form input, .bd-checkout input, .bd-checkout textarea, .bd-cart-line textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--bd-line-strong);
  border-radius: var(--bd-radius);
  background: #fff;
  color: var(--bd-body);
  padding: 11px 12px;
  outline: 0;
}
.assistant-chat {
  display: grid;
  gap: 9px;
  max-height: 250px;
  overflow: auto;
  margin: 13px 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--bd-radius);
  background: rgba(255,255,255,.07);
}
.assistant-message {
  width: fit-content;
  max-width: min(680px, 94%);
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--bd-radius);
  white-space: pre-line;
  animation: bd-message-in .18s ease both;
}
.assistant-message.user { justify-self: end; background: #fff; color: var(--bd-text); }
.assistant-message.bot { justify-self: start; background: rgba(255,255,255,.12); color: #fff; }
.voice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bd-assistant-action { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.bd-assistant-products { display: flex; gap: 12px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; scrollbar-width: none; }
.bd-assistant-card {
  flex: 0 0 min(310px, 84vw);
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--bd-radius);
  background: rgba(255,255,255,.1);
}
.assistant-product-image { width: 88px; height: 88px; border-radius: var(--bd-radius); object-fit: cover; background: #fff8ed; }
.bd-assistant-card h3 { margin: 0 0 5px; color: #fff; }
.bd-assistant-card p { margin: 0 0 7px; color: rgba(255,255,255,.7); font-size: .9rem; }
.bd-assistant-card strong { display: block; color: #fff; }
.assistant-product-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.bd-assistant-card button:last-child { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; box-shadow: none; }

.bd-cart-fab {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 20;
  min-height: 64px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--bd-radius);
  background: linear-gradient(135deg, var(--bd-text), #3c2615);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 20px 50px rgba(21,21,21,.23);
}
.bd-cart-fab.is-bumping { animation: bd-bump .28s ease; }
.bd-cart-fab span {
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--bd-text);
  font-weight: 950;
}

.bd-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 55;
  margin: 0 auto;
  width: min(520px, calc(100% - 24px));
  padding: 12px 14px;
  border: 1px solid var(--bd-danger);
  border-radius: var(--bd-radius);
  background: var(--bd-danger-bg);
  color: var(--bd-danger);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.bd-toast.is-ok { border-color: var(--bd-success); background: var(--bd-success-bg); color: var(--bd-success); }
.bd-toast.is-visible { opacity: 1; transform: translateY(0); }

.bd-drawer, .bd-wheel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(21,15,9,.46);
  backdrop-filter: blur(10px);
}
.bd-drawer.is-open, .bd-reservation-drawer.is-open { display: flex; align-items: flex-end; }
.bd-drawer-panel {
  width: 100%;
  max-height: calc(100dvh - 10px);
  overflow: auto;
  padding: 18px 14px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.82);
  border-radius: var(--bd-radius) var(--bd-radius) 0 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -24px 70px rgba(21,15,9,.18);
}
.bd-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bd-drawer-head h2 { margin: 0; font-size: 1.4rem; color: var(--bd-text); }
.bd-icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--bd-line);
  border-radius: 50%;
  background: #fff;
  color: var(--bd-text);
  font-weight: 950;
}
.bd-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--bd-line); }
.bd-cart-line h3 { margin: 0; font-size: 1rem; color: var(--bd-text); }
.bd-cart-line strong { color: var(--bd-text); }
.bd-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; border: 1px solid var(--bd-line); border-radius: 999px; padding: 4px; background: var(--bd-surface-soft); }
.bd-qty button { width: 30px; height: 30px; border: 1px solid var(--bd-line); border-radius: 50%; background: #fff; color: var(--bd-text); }
.bd-qty span { min-width: 22px; text-align: center; font-weight: 950; }
.bd-cart-line textarea { grid-column: 1 / -1; min-height: 50px; resize: vertical; }
.bd-checkout { display: grid; gap: 10px; margin-top: 14px; }
.bd-checkout [hidden], .bd-checkout .is-hidden { display: none !important; }
.bd-type { display: flex; gap: 8px; }
.bd-type button { flex: 1 1 0; }
.bd-checkout textarea { resize: vertical; }
.bd-totals { display: grid; gap: 7px; padding: 13px; border: 1px solid var(--bd-line); border-radius: var(--bd-radius); color: var(--bd-muted); background: var(--bd-surface-soft); }
.bd-totals div { display: flex; justify-content: space-between; gap: 12px; }
.bd-totals div:last-child { padding-top: 7px; border-top: 1px solid var(--bd-line); color: var(--bd-text); font-size: 1.08rem; }
.bd-totals strong { color: var(--bd-text); }
.bd-submit { min-height: 50px; }
.bd-message { min-height: 20px; margin: 0; color: var(--bd-danger); }
.bd-message.is-ok { color: var(--bd-success); }
.bd-table-order { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--bd-line); border-radius: var(--bd-radius); background: var(--bd-surface-soft); }
.bd-table-order strong { color: var(--bd-text); font-size: 1.12rem; }
.bd-table-order span, .bd-table-order em, .bd-table-order small { color: var(--bd-muted); font-style: normal; }
.bd-static-type { width: 100%; padding: 12px; border: 1px solid var(--bd-line); border-radius: var(--bd-radius); color: var(--bd-text); background: var(--bd-surface-soft); }

.bd-wheel {
  z-index: 80;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow: hidden auto;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(252,211,77,.2), transparent 26rem),
    radial-gradient(circle at 18% 75%, rgba(14,165,233,.18), transparent 22rem),
    rgba(7, 8, 12, .82);
}
.bd-wheel.is-open { display: grid; }
.bd-wheel-ambient {
  display: block;
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 22% 18%, rgba(244,114,182,.24), transparent 22rem),
    radial-gradient(circle at 82% 72%, rgba(45,212,191,.2), transparent 21rem),
    conic-gradient(from 140deg, rgba(251,191,36,.16), rgba(59,130,246,.13), rgba(236,72,153,.13), rgba(251,191,36,.16));
  filter: blur(20px) saturate(1.2);
  animation: bd-wheel-ambient 14s linear infinite;
}
.bd-wheel-panel {
  position: relative;
  box-sizing: border-box;
  width: min(680px, calc(100dvw - 24px));
  max-width: 100%;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden auto;
  overscroll-behavior: contain;
  padding: 54px 20px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(145deg, rgba(20,24,35,.98), rgba(10,11,17,.99) 58%, rgba(25,18,12,.98));
  color: #fff;
  box-shadow: 0 34px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.14);
  scrollbar-gutter: stable;
}
.bd-wheel.is-result .bd-wheel-panel { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.bd-wheel-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 8; }
.bd-wheel-sound {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 8;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #fff;
  padding: 7px 10px;
  font-size: .82rem;
  font-weight: 900;
}
.bd-wheel-sound.is-muted { color: rgba(255,255,255,.58); }
.bd-wheel .bd-kicker { margin-bottom: 2px; color: #fde68a; letter-spacing: 0; }
.bd-wheel h2 { margin: 2px 0 7px; color: #fff; font-size: clamp(1.9rem, 2.55rem, 3.25rem); line-height: 1.04; }
.bd-wheel-subtitle { width: min(480px, 100%); margin: 0 auto 10px; color: rgba(255,255,255,.74); line-height: 1.7; }
.bd-wheel-rays {
  display: block;
  position: absolute;
  inset: 54px 50% auto auto;
  width: min(420px, 88vw);
  aspect-ratio: 1;
  transform: translateX(50%);
  opacity: .14;
  background: repeating-conic-gradient(from 0deg, rgba(253,230,138,.9) 0 5deg, transparent 5deg 16deg);
  border-radius: 50%;
  pointer-events: none;
}
.bd-wheel-stage { position: relative; display: grid; place-items: center; width: 100%; min-width: 0; min-height: min(420px, calc(100dvh - 300px)); margin: 0 auto 10px; transition: min-height .45s ease, margin .45s ease; }
.bd-wheel.is-result .bd-wheel-stage { min-height: min(340px, calc(100dvh - 360px)); margin-bottom: 2px; }
.bd-wheel-halo {
  position: absolute;
  width: min(430px, calc(100dvw - 56px));
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(253,230,138,.22), transparent 61%),
    conic-gradient(from 90deg, rgba(34,211,238,.18), rgba(244,114,182,.16), rgba(250,204,21,.18), rgba(34,211,238,.18));
  filter: blur(3px);
}
.bd-wheel-disc-wrap {
  position: relative;
  display: grid;
  width: min(390px, calc(100dvw - 80px), calc(100dvh - 292px));
  min-width: min(230px, calc(100dvw - 80px));
  max-width: 100%;
  aspect-ratio: 1;
  place-items: center;
  margin: 14px auto 2px;
  transition: width .45s ease, transform .45s ease, margin .45s ease;
}
.bd-wheel.is-result .bd-wheel-disc-wrap { width: min(336px, calc(100dvw - 96px), calc(100dvh - 372px)); min-width: min(200px, calc(100dvw - 96px)); transform: translateY(-4px); }
.bd-wheel-rim {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 18px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(255,255,255,.08) 18%, transparent 20%),
    conic-gradient(from -25deg, #fef3c7, #b45309, #fde68a, #64748b, #fef3c7, #92400e, #fde68a);
  box-shadow: 0 28px 65px rgba(0,0,0,.38), inset 0 0 0 2px rgba(255,255,255,.35), inset 0 0 0 9px rgba(12,14,22,.28);
}
.bd-wheel-rim::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255,255,255,.45);
  border-radius: 50%;
  pointer-events: none;
}
.bd-wheel-lights { position: absolute; inset: -2px; border-radius: 50%; z-index: 4; pointer-events: none; }
.bd-wheel-led {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px;
  border-radius: 50%;
  background: #fff7ed;
  box-shadow: 0 0 13px #f59e0b, 0 0 24px rgba(34,211,238,.35);
  transform: rotate(var(--angle)) translateY(var(--radius-neg)) rotate(var(--angle-neg));
  animation: bd-led 1.6s steps(2) infinite;
  animation-delay: var(--delay);
}
.bd-wheel-pointer {
  position: absolute;
  top: -1.5%;
  z-index: 9;
  width: clamp(28px, 10.75%, 42px);
  height: clamp(38px, 14.9%, 58px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff, #fde68a 48%, #f97316);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.34));
}
.bd-wheel-circle {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111827;
  box-shadow: inset 0 0 0 9px rgba(255,255,255,.58), inset 0 0 42px rgba(0,0,0,.28);
  transition: transform 2.6s cubic-bezier(.08, .72, .13, 1);
  overflow: hidden;
}
.bd-wheel-circle::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background:
    radial-gradient(circle, transparent 43%, rgba(0,0,0,.1) 44%, transparent 56%),
    linear-gradient(135deg, rgba(255,255,255,.24), transparent 35%, rgba(0,0,0,.1));
  pointer-events: none;
}
.bd-wheel-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(.01deg); }
.bd-wheel-sector path { filter: drop-shadow(0 1px 0 rgba(255,255,255,.2)); }
.bd-wheel-svg-label {
  fill: #fff;
  font-family: inherit;
  font-size: 8px;
  font-weight: 950;
  paint-order: stroke;
  stroke: rgba(0,0,0,.62);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.bd-wheel-svg-sheen { mix-blend-mode: screen; pointer-events: none; }
.bd-wheel-svg-track { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 1; stroke-dasharray: 3 7; }
.bd-wheel-center {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 7;
  transform: translate(-50%, -50%);
  width: clamp(96px, 25vw, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 12px;
  background: radial-gradient(circle at 35% 28%, #ffffff, #fef3c7 38%, #f59e0b 67%, #7c2d12);
  color: #211006;
  border: 7px solid rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 17px 34px rgba(0,0,0,.28), inset 0 2px 0 rgba(255,255,255,.7);
  font-weight: 950;
  line-height: 1.25;
}
.bd-wheel-center:active:not(:disabled) { transform: translate(-50%, -50%) scale(.97); }
.bd-wheel-center:disabled, .bd-wheel-center.is-disabled { cursor: wait; opacity: .78; }
.bd-wheel-circle.is-spinning { filter: saturate(1.14) contrast(1.06); }
.bd-wheel-circle.is-free-spinning { transition-duration: 0ms !important; }
.bd-wheel-circle.is-neutral-stop { filter: grayscale(.7); }
.bd-wheel-circle.has-winning-segment .bd-wheel-sector:not(.is-winning-segment) { opacity: .78; transition: opacity .35s ease; }
.bd-wheel-sector.is-winning-segment path,
.bd-wheel-sector.is-winning-segment circle:first-child {
  stroke: #fde68a;
  stroke-width: 3;
  filter: brightness(1.15) drop-shadow(0 0 9px rgba(253,230,138,.78));
  animation: bd-winning-sector 1.15s ease-out 2;
}
.bd-wheel-sector.is-winning-segment .bd-wheel-svg-label { font-size: 9px; }
.bd-wheel-empty-state circle { filter: saturate(.58); }
.bd-wheel-empty-state rect,
.bd-wheel-empty-state path {
  fill: none;
  stroke: rgba(255,255,255,.68);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bd-wheel-empty-label {
  fill: rgba(255,255,255,.82);
  font-family: inherit;
  font-size: 8px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(15,23,42,.78);
  stroke-width: 3px;
}
.bd-wheel-prizes { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; align-items: center; margin: 8px auto 12px; width: min(540px, 100%); }
.bd-wheel.is-result .bd-wheel-prizes {
  max-height: 0;
  margin: 0 auto;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height .25s ease, opacity .2s ease, margin .25s ease;
}
.bd-wheel-prizes span {
  max-width: min(170px, 46%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  font-weight: 850;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06)),
    linear-gradient(135deg, var(--prize-color, #d7a85c), rgba(12,14,22,.4));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bd-wheel-spin-btn { width: min(320px, 100%); min-height: 52px; background: linear-gradient(135deg, #fde68a, #f97316); color: #211006; }
.bd-wheel-result { width: 100%; margin-top: 12px; color: #fff; overflow-wrap: anywhere; word-break: normal; }
.bd-wheel.is-result .bd-wheel-result { margin-top: 4px; }
.bd-wheel-modal {
  position: relative;
  margin: 10px auto 0;
  padding: 18px;
  width: min(460px, 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 42px rgba(0,0,0,.28);
}
.bd-wheel-modal-win { border-color: rgba(253,230,138,.44); }
.bd-wheel-win-badge {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  min-height: 28px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #fde68a;
  color: #211006;
  font-size: .76rem;
  font-weight: 950;
}
.bd-wheel-result h3 { margin: 0 0 8px; color: #fff; font-size: 1.35rem; }
.bd-wheel-result p { max-width: 100%; margin: 0 auto 8px; color: rgba(255,255,255,.78); overflow-wrap: anywhere; }
.bd-wheel-result strong { color: #fde68a; }
.bd-wheel-code-label { font-size: .78rem; font-weight: 850; color: rgba(255,255,255,.62) !important; }
.bd-wheel-result code { display: inline-block; max-width: 100%; margin: 2px 0 0; padding: 9px 11px; border: 1px solid rgba(253,230,138,.24); border-radius: 8px; color: #ffe7a8; background: rgba(0,0,0,.25); direction: ltr; overflow-wrap: anywhere; }
.bd-wheel-wa {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  text-decoration: none;
  background: linear-gradient(135deg, #075e54 0%, #128c7e 52%, #0b6f63 100%);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 16px 34px rgba(7,94,84,.34), inset 0 1px 0 rgba(255,255,255,.2);
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.25;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.bd-wheel-wa:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #064e46 0%, #0f7f72 54%, #075e54 100%);
  box-shadow: 0 18px 38px rgba(7,94,84,.42), inset 0 1px 0 rgba(255,255,255,.22);
}
.bd-wheel-wa:active { transform: translateY(1px); }
.bd-wheel-wa:focus-visible {
  outline: 3px solid rgba(255,255,255,.92);
  outline-offset: 3px;
}
.bd-wheel-wa span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #ffffff;
  font-size: 0;
  line-height: 1;
}
.bd-wheel-wa span::before {
  content: "WA";
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: 0;
}
.bd-wheel-wa strong { color: #ffffff; }
.bd-wheel-sticky-cta {
  position: sticky;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 12;
  width: min(430px, 100%);
  margin: 12px auto 0;
  border-radius: 8px;
}
.bd-wheel-sticky-cta.is-disabled {
  opacity: .82;
  filter: saturate(.72);
  background: linear-gradient(135deg, #334155, #475569);
  color: #ffffff;
  box-shadow: none;
}
.bd-wheel-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bd-wheel-confetti i {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 8px;
  height: 14px;
  opacity: 0;
  background: var(--bd-gold);
  transform: translate(-50%, -50%);
}
.bd-wheel.is-celebrating .bd-wheel-confetti i { animation: bd-confetti .9s ease-out forwards; }
.bd-wheel-confetti i:nth-child(2) { --x: -120px; --r: 90deg; background: #fff; animation-delay: .04s; }
.bd-wheel-confetti i:nth-child(3) { --x: 90px; --r: -110deg; background: #b96f2d; animation-delay: .08s; }
.bd-wheel-confetti i:nth-child(4) { --x: -40px; --r: 210deg; background: #ffe7a8; animation-delay: .12s; }
.bd-wheel-confetti i:nth-child(5) { --x: 140px; --r: 60deg; background: #fff4df; animation-delay: .16s; }
.bd-wheel-confetti i:nth-child(6) { --x: -160px; --r: -80deg; background: #d7a85c; animation-delay: .2s; }
.bd-wheel-confetti i:nth-child(7) { --x: 30px; --r: 160deg; background: #fff; animation-delay: .24s; }
.bd-wheel-confetti i:nth-child(8) { --x: 170px; --r: -180deg; background: #b96f2d; animation-delay: .28s; }

@media (min-width: 760px) {
  .bd-hero-content { padding-inline: 26px; }
  .bd-tools { padding-inline: 24px; }
  .bd-list { padding: 26px 12px; }
  .bd-cart-fab { left: 50%; right: auto; width: min(540px, calc(100% - 28px)); transform: translateX(-50%); }
  .bd-drawer { justify-content: flex-end; align-items: stretch; }
  .bd-drawer.is-open { align-items: stretch; }
  .bd-drawer-panel { width: 450px; max-height: none; border-top: 0; border-right: 1px solid rgba(255,255,255,.7); border-radius: 0; }
}

@media (max-width: 640px) {
  .bd-shell { padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
  .bd-hero { min-height: 470px; }
  .bd-hero-content { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 118px 14px 48px; }
  .bd-hero h1 { font-size: clamp(2.15rem, 13vw, 3.45rem); line-height: 1.04; }
  .bd-logo { width: 78px; height: 78px; justify-self: start; }
  .bd-meta-row span { font-size: .8rem; }
  .bd-table-context { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .bd-customer-action { grid-column: 1 / -1; width: 100%; white-space: normal; }
  .bd-assistant { padding: 16px; }
  .voice-hero-card { grid-template-columns: 1fr; text-align: center; }
  .bd-mic { justify-self: center; }
  .bd-assistant-form { grid-template-columns: 1fr; }
  .bd-type { flex-direction: column; }
  .bd-checkout input, .bd-checkout textarea, .bd-search input, .bd-assistant-form input { font-size: 16px; }
  .bd-wheel { place-items: end center; padding: max(10px, env(safe-area-inset-top)) 6px max(10px, env(safe-area-inset-bottom)); }
  .bd-wheel-panel { width: calc(100dvw - 12px); max-width: 100%; max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 48px 12px 14px; border-radius: 8px 8px 0 0; }
  .bd-wheel.is-result .bd-wheel-panel { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .bd-wheel h2 { font-size: 1.95rem; }
  .bd-wheel.is-result h2 { font-size: 1.55rem; margin-bottom: 2px; }
  .bd-wheel.is-result .bd-wheel-subtitle { display: none; }
  .bd-wheel-stage { min-height: auto; margin-block: 4px 10px; }
  .bd-wheel-disc-wrap { width: min(268px, calc(100dvw - 48px), calc(100dvh - 260px)); min-width: min(196px, calc(100dvw - 48px)); }
  .bd-wheel.is-result .bd-wheel-disc-wrap { width: min(204px, calc(100dvw - 72px), calc(100dvh - 420px)); min-width: min(168px, calc(100dvw - 72px)); margin-top: 4px; }
  .bd-wheel-rim { padding: 12px; }
  .bd-wheel-rim::before { inset: 6px; }
  .bd-wheel-center { width: clamp(80px, 32%, 90px); font-size: .8rem; border-width: 5px; padding: 9px; }
  .bd-wheel.is-result .bd-wheel-center { width: clamp(68px, 32%, 78px); font-size: .72rem; border-width: 4px; }
  .bd-wheel-modal { margin-top: 6px; padding: 14px; }
  .bd-wheel-result h3 { font-size: 1.12rem; }
  .bd-wheel-sticky-cta { width: 100%; min-height: 52px; }
  .bd-wheel-spin-btn { min-height: 46px; }
}

@media (max-width: 380px) and (max-height: 700px) {
  .bd-wheel.is-result .bd-wheel-panel { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .bd-wheel-modal { padding: 12px; }
  .bd-wheel-sticky-cta {
    position: static;
    bottom: auto;
    margin-top: 10px;
  }
  .bd-wheel-wa {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .bd-hero h1 { font-size: 2rem; }
  .bd-list { grid-template-columns: 1fr; }
  .bd-item-body, .bd-item-foot { padding-inline: 12px; }
  .bd-cart-fab { left: 10px; right: 10px; min-height: 58px; padding-inline: 12px; }
  .bd-wheel-disc-wrap { width: min(236px, calc(100dvw - 44px), calc(100dvh - 252px)); min-width: min(184px, calc(100dvw - 44px)); }
  .bd-wheel-center { width: clamp(70px, 32%, 82px); font-size: .72rem; }
  .bd-wheel-rim { padding: 10px; }
  .bd-wheel-panel { padding-inline: 10px; }
}

@keyframes bd-cover-in { to { transform: scale(1); } }
@media (min-width: 0) {
  .bd-basic-voice {
    margin: 18px auto 0;
    max-width: 1080px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(15,23,42,.72);
    box-shadow: 0 18px 48px rgba(0,0,0,.22);
  }
  .bd-basic-voice .voice-hero-card { align-items: center; }
  .bd-basic-voice [data-basic-voice-results] { margin-top: 12px; }
  .bd-basic-voice [data-basic-voice-select] {
    width: 42px;
    min-height: 42px;
    border-radius: 50%;
    padding: 0;
    text-align: center;
  }
  .bd-basic-voice .assistant-command-row { margin-top: 12px; }
}
@keyframes bd-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bd-logo-in { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
@keyframes bd-card-pulse { 50% { transform: translateY(-3px) scale(1.015); } }
@keyframes bd-bump { 50% { box-shadow: 0 24px 62px rgba(21,21,21,.32), 0 0 0 5px rgba(215,168,92,.18); } }
@keyframes bd-message-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bd-mic-ring { 0% { transform: scale(.94); opacity: .6; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes bd-wheel-ambient { to { transform: rotate(360deg); } }
@keyframes bd-led { 50% { opacity: .38; transform: rotate(var(--angle)) translateY(var(--radius-neg)) rotate(var(--angle-neg)) scale(.78); } }
@keyframes bd-winning-sector {
  50% { filter: brightness(1.25) drop-shadow(0 0 16px rgba(253,230,138,.86)); }
}
@keyframes bd-confetti {
  0% { opacity: 0; transform: translate(-50%, -40%) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x, 80px)), 280px) rotate(var(--r, 130deg)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .bd-wheel-circle { transition-duration: .5s !important; }
}


/* SYSTEM74E4 final enhancements: restaurant-owned menu background video. */
.bd-menu-background-video,
.bd-menu-background-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bd-menu-background-video {
  z-index: 0;
  object-fit: cover;
  background: #050505;
}
.bd-menu-background-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 4, 4, .70), rgba(4, 4, 4, .82) 52%, rgba(4, 4, 4, .92));
  backdrop-filter: blur(1px);
}
body.bd-has-video-background {
  background: #050505;
  background-attachment: fixed;
}
body.bd-has-video-background .bd-shell {
  position: relative;
  z-index: 2;
}
body.bd-has-video-background .bd-hero {
  background: rgba(10, 8, 6, .50);
}
body.bd-has-video-background .bd-cover {
  opacity: .30;
}
body.bd-has-video-background .bd-tools {
  background: rgba(247, 246, 242, .78);
}
body.bd-has-video-background .bd-mobile-head,
body.bd-has-video-background .bd-table-context,
body.bd-has-video-background .bd-basic-voice,
body.bd-has-video-background .bd-ai-voice,
body.bd-has-video-background .bd-cart-drawer {
  backdrop-filter: blur(7px);
}
@media (prefers-reduced-motion: reduce) {
  .bd-menu-background-video { display: none; }
  body.bd-has-video-background .bd-cover { opacity: .95; }
}

/* =====================================================================
   CINEMATIC LUXE — presentation-only layer
   Keeps the mature Black Diamond functional hooks while replacing the
   customer-facing hierarchy with a quieter cinematic mobile experience.
   ===================================================================== */
:root {
  --cl-ink: #111214;
  --cl-muted: #73767d;
  --cl-paper: #f6f3ed;
  --cl-card: rgba(255,255,255,.94);
  --cl-line: rgba(17,18,20,.09);
  --cl-shadow: 0 18px 50px rgba(16,18,20,.10);
  --cl-shadow-soft: 0 8px 28px rgba(16,18,20,.08);
  --cl-radius-xl: 28px;
  --cl-radius-lg: 22px;
  --cl-radius-md: 16px;
  --cl-safe-bottom: max(14px, env(safe-area-inset-bottom));
}
html { scroll-behavior: smooth; scroll-padding-top: 148px; }
body.cl-body {
  margin: 0;
  color: var(--cl-ink);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--cl-accent) 8%, transparent), transparent 30rem),
    var(--cl-paper);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 154px;
}
body.cl-body::before { display: none !important; }
.cl-shell.bd-shell { width: 100%; max-width: none; margin: 0; overflow: visible; }

/* Cinematic hero: video is intentionally confined to this region. */
.cl-hero.bd-hero {
  min-height: 500px;
  height: min(70vh, 650px);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 42px 42px;
  background: var(--cl-primary, #0a0a0b);
  color: #fff;
  isolation: isolate;
}
.cl-hero-media, .cl-hero-video, .cl-hero-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.cl-hero-video, .cl-hero-cover { object-fit: cover; display: block; }
.cl-hero-shade.bd-hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,6,7,.20) 0%, rgba(5,6,7,.26) 38%, rgba(5,6,7,.90) 100%),
    linear-gradient(90deg, rgba(5,6,7,.38), transparent 60%);
}
.cl-hero-content {
  position: relative; z-index: 2; height: 100%; max-width: 1180px; margin: 0 auto;
  padding: 84px 42px 52px; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
}
.cl-logo.bd-logo {
  width: 92px; height: 92px; border-radius: 28px; object-fit: cover; margin: 0 0 18px;
  border: 1px solid rgba(255,255,255,.40); background: rgba(255,255,255,.12);
  box-shadow: 0 18px 48px rgba(0,0,0,.30); backdrop-filter: blur(14px);
}
.cl-identity { max-width: 720px; }
.cl-eyebrow {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.20);
  color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .02em; backdrop-filter: blur(12px);
}
.cl-identity h1 { margin: 12px 0 10px; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.05em; color: #fff; }
.cl-desc.bd-desc { max-width: 640px; margin: 0; color: rgba(255,255,255,.82); font-size: clamp(.96rem, 2vw, 1.14rem); line-height: 1.8; }
.cl-meta-row.bd-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cl-meta-row.bd-meta-row span { border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.22); color: rgba(255,255,255,.90); border-radius: 999px; padding: 8px 11px; font-size: .78rem; backdrop-filter: blur(10px); }
.cl-hero-cta {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; color: #111; background: #fff;
  text-decoration: none; padding: 12px 18px; border-radius: 999px; font-weight: 900; box-shadow: 0 14px 38px rgba(0,0,0,.20);
}
.cl-hero-cta span { transition: transform .2s ease; }
.cl-hero-cta:hover span { transform: translateY(3px); }

/* Context strip is compact: table/reservation information is useful, not dominant. */
.cl-context-strip.bd-table-context {
  max-width: 1120px; margin: -20px auto 18px; position: relative; z-index: 6;
  min-height: 76px; padding: 12px 14px 12px 18px; border-radius: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255,255,255,.94); color: var(--cl-ink); border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--cl-shadow); backdrop-filter: blur(18px);
}
.cl-context-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cl-context-copy > div { display: grid; gap: 1px; }
.cl-context-copy small { color: var(--cl-muted); font-size: .74rem; }
.cl-context-copy strong { font-size: .98rem; }
.cl-context-copy span:not(.cl-status-dot) { color: var(--cl-muted); font-size: .73rem; }
.cl-status-dot { width: 10px; height: 10px; border-radius: 50%; background: #23b26d; box-shadow: 0 0 0 6px rgba(35,178,109,.10); }
.cl-context-icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: rgba(17,18,20,.06); font-size: 1.15rem; }
.cl-waiter-btn.bd-customer-action { min-height: 44px; border-radius: 14px; border: 0; background: var(--cl-primary, #0a0a0b); color: #fff; padding: 0 16px; font-weight: 900; }

/* One sticky surface replaces the competing fixed mobile header + tool bar. */
.cl-tools.bd-tools {
  position: sticky; top: 0; z-index: 45; max-width: 1180px; margin: 0 auto; padding: 10px 24px 12px;
  border: 0; border-radius: 0 0 24px 24px; background: color-mix(in srgb, var(--cl-paper) 90%, transparent);
  backdrop-filter: blur(20px) saturate(1.15); box-shadow: none; transition: box-shadow .2s ease, background .2s ease;
}
.cl-tools.bd-tools.is-compact { box-shadow: 0 12px 30px rgba(17,18,20,.08); background: rgba(246,243,237,.95); }
.cl-sticky-brand { display: flex; align-items: center; justify-content: space-between; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-8px); transition: all .2s ease; }
.cl-tools.is-compact .cl-sticky-brand { max-height: 54px; opacity: 1; transform: translateY(0); margin-bottom: 8px; }
.cl-sticky-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cl-sticky-identity img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.cl-sticky-identity div { min-width: 0; display: grid; line-height: 1.15; }
.cl-sticky-identity small { color: var(--cl-muted); font-size: .65rem; }
.cl-sticky-identity strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.cl-mini-cart { border: 0; border-radius: 999px; min-height: 38px; padding: 0 12px; background: var(--cl-primary, #0a0a0b); color: #fff; font: inherit; font-size: .75rem; font-weight: 900; display: inline-flex; gap: 6px; align-items: center; }
.cl-mini-cart [data-cart-count-mini] { min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--cl-accent, #d7b778); color: #111; }
.cl-search-row { display: grid; grid-template-columns: minmax(0,1fr) 48px; gap: 9px; align-items: center; }
.cl-search.bd-search { min-height: 50px; border-radius: 17px; border: 1px solid var(--cl-line); background: rgba(255,255,255,.88); box-shadow: 0 4px 18px rgba(17,18,20,.04); }
.cl-search.bd-search input { font-size: .88rem; }
.cl-inline-ai { width: 48px; height: 48px; border: 0; border-radius: 16px; background: var(--cl-primary, #0a0a0b); color: var(--cl-accent, #d7b778); font-size: 1.25rem; box-shadow: var(--cl-shadow-soft); }
.cl-cats.bd-cats { padding: 10px 0 0; gap: 7px; scrollbar-width: none; }
.cl-cats.bd-cats::-webkit-scrollbar { display: none; }
.cl-cats .bd-cat { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid var(--cl-line); color: #50535a; box-shadow: none; }
.cl-cats .bd-cat.is-active { background: var(--cl-primary, #0a0a0b); color: #fff; border-color: transparent; }

/* Section rhythm */
.cl-featured, .cl-menu-section { max-width: 1180px; margin: 0 auto; padding: 32px 24px 0; }
.cl-featured[hidden] { display: none !important; }
.cl-section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.cl-section-head span { color: var(--cl-accent, #9c7a3b); font-weight: 900; font-size: .72rem; }
.cl-section-head h2 { margin: 3px 0 0; font-size: clamp(1.32rem, 3.5vw, 1.9rem); line-height: 1.2; letter-spacing: -.025em; }
.cl-section-head small { color: var(--cl-muted); font-size: .72rem; }
.cl-all-head { margin-bottom: 16px; }
.cl-featured-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(265px, 34%); gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 2px 1px 12px; scrollbar-width: none; }
.cl-featured-track::-webkit-scrollbar { display: none; }

/* Products: image-led cards, less chrome, floating add button. */
.cl-product-grid.bd-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; }
.cl-product-card.bd-item, .cl-featured-card.bd-item {
  position: relative; overflow: hidden; min-width: 0; padding: 0; border: 1px solid rgba(17,18,20,.06); border-radius: var(--cl-radius-lg);
  background: var(--cl-card); box-shadow: 0 10px 30px rgba(17,18,20,.055); transform: none;
}
.cl-featured-card.bd-item { scroll-snap-align: start; min-height: 370px; }
.cl-product-card.bd-item:hover, .cl-featured-card.bd-item:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(17,18,20,.10); }
.cl-product-media.bd-item-media { position: relative; aspect-ratio: 1.18 / 1; overflow: hidden; background: #e9e5dc; }
.cl-featured-card .cl-product-media { aspect-ratio: 1.45 / 1; }
.cl-product-media .bd-item-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.cl-product-card:hover .bd-item-img, .cl-featured-card:hover .bd-item-img { transform: scale(1.035); }
.cl-product-media .bd-item-img-empty { background: linear-gradient(135deg, #ebe7df, #ddd6ca); }
.cl-featured-badge.bd-featured { position: absolute; z-index: 2; top: 12px; right: 12px; margin: 0; border: 0; border-radius: 999px; background: rgba(8,9,10,.72); color: #fff; backdrop-filter: blur(12px); font-size: .67rem; padding: 7px 10px; }
.cl-add-float.bd-add { position: absolute; z-index: 3; left: 12px; bottom: 12px; width: 43px; height: 43px; min-width: 43px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; background: #fff; color: #111; font-size: 1.45rem; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cl-add-float.bd-add:hover { background: var(--cl-accent, #d7b778); }
.cl-product-body.bd-item-body { padding: 14px 15px 15px; display: flex; flex-direction: column; min-height: 132px; }
.cl-product-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; letter-spacing: -.015em; }
.cl-product-body p { margin: 7px 0 9px; color: var(--cl-muted); font-size: .78rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.42em; }
.cl-product-meta.bd-item-meta { margin-top: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.cl-product-meta.bd-item-meta span { border: 0; border-radius: 999px; background: rgba(17,18,20,.045); color: #787b81; padding: 5px 8px; font-size: .63rem; }
.cl-product-foot.bd-item-foot { margin-top: 10px; padding: 0; border: 0; display: flex; align-items: center; }
.cl-product-foot .bd-price { font-size: 1rem; color: var(--cl-ink); font-weight: 950; }
.bd-item.is-added { box-shadow: 0 0 0 2px color-mix(in srgb, var(--cl-accent) 75%, transparent), var(--cl-shadow-soft); }

/* Unified assistant hub: one consumer concept, three existing engines. */
.cl-ai-fab { position: fixed; z-index: 56; right: 18px; bottom: calc(96px + var(--cl-safe-bottom)); border: 0; border-radius: 999px; min-height: 48px; padding: 0 16px 0 12px; background: var(--cl-primary, #0a0a0b); color: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.20); display: flex; align-items: center; gap: 8px; font: inherit; }
.cl-ai-fab span { color: var(--cl-accent, #d7b778); font-size: 1.15rem; }
.cl-ai-fab strong { font-size: .78rem; }
.cl-ai-hub { position: fixed; inset: 0; z-index: 110; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.cl-ai-hub.is-open { pointer-events: auto; opacity: 1; }
.cl-ai-backdrop { position: absolute; inset: 0; background: rgba(4,5,6,.56); backdrop-filter: blur(4px); }
.cl-ai-sheet { position: absolute; left: 50%; bottom: 0; width: min(720px, 100%); max-height: min(86vh, 820px); transform: translate(-50%, 105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); border-radius: 30px 30px 0 0; background: #fbfaf7; color: var(--cl-ink); padding: 9px 18px calc(22px + env(safe-area-inset-bottom)); box-sizing: border-box; overflow: auto; box-shadow: 0 -24px 70px rgba(0,0,0,.22); }
.cl-ai-hub.is-open .cl-ai-sheet { transform: translate(-50%, 0); }
.cl-sheet-handle { width: 42px; height: 4px; border-radius: 999px; background: #d7d2c9; margin: 3px auto 12px; }
.cl-ai-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cl-ai-head span { color: #8c6b32; font-size: .72rem; font-weight: 900; }
.cl-ai-head h2 { margin: 3px 0 0; font-size: 1.45rem; }
.cl-ai-tabs { display: flex; gap: 7px; overflow-x: auto; margin: 16px 0 12px; scrollbar-width: none; }
.cl-ai-tabs::-webkit-scrollbar { display: none; }
.cl-ai-tabs button { flex: 0 0 auto; border: 1px solid var(--cl-line); background: #fff; color: #55585e; border-radius: 999px; padding: 9px 13px; font: inherit; font-size: .75rem; font-weight: 800; }
.cl-ai-tabs button.is-active { background: var(--cl-primary, #0a0a0b); border-color: transparent; color: #fff; }
.cl-ai-panel { display: none !important; margin: 0 !important; padding: 12px 0 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--cl-ink) !important; }
.cl-ai-panel.is-active { display: block !important; }
.cl-chat.assistant-chat { max-height: 280px; min-height: 108px; border-radius: 18px; background: #f2efe8; padding: 10px; overflow-y: auto; }
.cl-prompt-chips.bd-chips { display: flex; gap: 7px; overflow-x: auto; flex-wrap: nowrap; padding: 10px 0 3px; scrollbar-width: none; }
.cl-prompt-chips::-webkit-scrollbar { display: none; }
.cl-prompt-chips .assistant-chip { flex: 0 0 auto; background: #fff; border: 1px solid var(--cl-line); color: #50535a; border-radius: 999px; padding: 8px 11px; }
.cl-assistant-form.bd-assistant-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 10px; }
.cl-assistant-form input { border-radius: 16px; border: 1px solid var(--cl-line); background: #fff; min-height: 48px; }
.cl-assistant-form button { border: 0; border-radius: 15px; background: var(--cl-primary, #0a0a0b); color: #fff; padding: 0 16px; }
.cl-assistant-actions { margin-top: 9px; }
.cl-voice-intro { display: flex; align-items: center; gap: 12px; padding: 10px 0 18px; }
.cl-voice-intro h3 { margin: 0 0 3px; font-size: 1.05rem; }
.cl-voice-intro p { margin: 0; color: var(--cl-muted); font-size: .78rem; line-height: 1.5; }
.cl-voice-orb { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--cl-primary, #0a0a0b); color: var(--cl-accent, #d7b778); }
.cl-ai-panel .bd-mic { background: var(--cl-primary, #0a0a0b); color: #fff; }
body.cl-ai-open { overflow: hidden; }

/* Cart is permanently legible and shows quantity + total. */
.cl-cart-bar.bd-cart-fab { position: fixed; left: 50%; right: auto; transform: translateX(-50%); bottom: calc(76px + var(--cl-safe-bottom)); z-index: 58; width: min(560px, calc(100% - 32px)); min-height: 58px; padding: 8px 10px 8px 14px; border-radius: 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: var(--cl-primary, #0a0a0b); color: #fff; border: 1px solid rgba(255,255,255,.10); box-shadow: 0 20px 52px rgba(0,0,0,.22); }
.cl-cart-summary { display: flex; align-items: center; gap: 5px; }
.cl-cart-summary b { min-width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--cl-accent, #d7b778); color: #111; }
.cl-cart-summary small { color: rgba(255,255,255,.66); font-size: .66rem; }
.cl-cart-action { text-align: center; font-size: .78rem; font-weight: 900; }
.cl-cart-bar [data-cart-total] { font-size: .82rem; white-space: nowrap; }
.cl-cart-drawer { border-radius: 28px 28px 0 0; }
.cl-drawer-eyebrow { display: block; color: #8c6b32; font-size: .68rem; font-weight: 900; }

/* Minimal three-item mobile navigation. */
.cl-bottom-nav { position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); bottom: var(--cl-safe-bottom); width: min(430px, calc(100% - 24px)); height: 60px; padding: 5px 8px; box-sizing: border-box; border-radius: 21px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: rgba(255,255,255,.92); border: 1px solid rgba(17,18,20,.08); box-shadow: 0 18px 52px rgba(17,18,20,.16); backdrop-filter: blur(18px); }
.cl-bottom-nav button { position: relative; border: 0; background: transparent; color: #666970; border-radius: 15px; font: inherit; display: grid; place-items: center; align-content: center; gap: 1px; }
.cl-bottom-nav button:hover { background: rgba(17,18,20,.05); color: #111; }
.cl-bottom-nav button > span { font-size: 1rem; line-height: 1; }
.cl-bottom-nav button > small { font-size: .62rem; font-weight: 800; }
.cl-bottom-nav button > b { position: absolute; top: 3px; right: 18%; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; background: var(--cl-accent, #d7b778); color: #111; font-size: .55rem; }

/* Existing drawers, forms and Wheel keep their proven behavior with a calmer finish. */
.cl-body .bd-drawer { backdrop-filter: blur(5px); }
.cl-body .bd-drawer-panel { background: #fbfaf7; color: var(--cl-ink); }
.cl-body .bd-drawer-head { border-bottom-color: var(--cl-line); }
.cl-body .bd-checkout input, .cl-body .bd-checkout textarea { border-radius: 14px; border-color: var(--cl-line); background: #fff; }
.cl-body .bd-submit { border-radius: 16px; background: var(--cl-primary, #0a0a0b); color: #fff; }
.cl-body .bd-type button.is-active { background: var(--cl-primary, #0a0a0b); color: #fff; }
.cl-body .bd-wheel-panel { border-radius: 28px; }

@media (max-width: 900px) {
  .cl-hero.bd-hero { min-height: 330px; height: 44vh; max-height: 410px; border-radius: 0 0 32px 32px; }
  .cl-hero-content { padding: 52px 24px 32px; }
  .cl-logo.bd-logo { width: 72px; height: 72px; border-radius: 22px; margin-bottom: 12px; }
  .cl-identity h1 { font-size: clamp(2.1rem, 9vw, 3.3rem); }
  .cl-desc.bd-desc { font-size: .9rem; line-height: 1.65; max-width: 94%; }
  .cl-hero-cta { margin-top: 14px; padding: 10px 15px; font-size: .78rem; }
  .cl-context-strip.bd-table-context { margin: -14px 14px 14px; }
  .cl-tools.bd-tools { padding: 9px 14px 10px; border-radius: 0 0 20px 20px; }
  .cl-featured, .cl-menu-section { padding-inline: 14px; }
  .cl-product-grid.bd-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .cl-featured-track { grid-auto-columns: minmax(245px, 72vw); gap: 10px; }
  .cl-product-body.bd-item-body { padding: 11px 11px 12px; min-height: 124px; }
  .cl-product-body h3 { font-size: .91rem; }
  .cl-product-body p { font-size: .71rem; }
  .cl-product-media.bd-item-media { aspect-ratio: 1 / .92; }
  .cl-add-float.bd-add { width: 38px; height: 38px; min-width: 38px; left: 9px; bottom: 9px; font-size: 1.25rem; }
  .cl-product-foot .bd-price { font-size: .88rem; }
  .cl-product-meta.bd-item-meta { display: none; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 132px; }
  body.cl-body { padding-bottom: 148px; }
  .cl-hero.bd-hero { min-height: 278px; height: 34vh; max-height: 330px; }
  .cl-hero-content { padding: 34px 16px 24px; }
  .cl-logo.bd-logo { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 9px; }
  .cl-eyebrow { min-height: 25px; padding-inline: 9px; font-size: .65rem; }
  .cl-identity h1 { margin: 8px 0 6px; font-size: clamp(1.8rem, 9.8vw, 2.65rem); }
  .cl-desc.bd-desc { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; font-size: .77rem; line-height: 1.55; }
  .cl-meta-row.bd-meta-row { margin-top: 9px; gap: 5px; }
  .cl-meta-row.bd-meta-row span { font-size: .62rem; padding: 5px 7px; }
  .cl-hero-cta { display: none; }
  .cl-context-strip.bd-table-context { min-height: 64px; padding: 9px 10px; border-radius: 18px; }
  .cl-context-copy strong { font-size: .86rem; }
  .cl-waiter-btn.bd-customer-action { min-height: 40px; padding-inline: 11px; font-size: .7rem; }
  .cl-tools.bd-tools { padding-inline: 10px; }
  .cl-search-row { grid-template-columns: minmax(0,1fr) 44px; gap: 6px; }
  .cl-search.bd-search { min-height: 46px; border-radius: 15px; }
  .cl-inline-ai { width: 44px; height: 44px; border-radius: 15px; }
  .cl-cats.bd-cats { margin-inline: -2px; }
  .cl-cats .bd-cat { min-height: 35px; padding: 0 12px; font-size: .68rem; }
  .cl-featured, .cl-menu-section { padding: 22px 10px 0; }
  .cl-section-head { margin: 0 2px 11px; }
  .cl-section-head h2 { font-size: 1.18rem; }
  .cl-section-head small { display: none; }
  .cl-featured-track { grid-auto-columns: 78vw; }
  .cl-product-grid.bd-list { gap: 8px; }
  .cl-product-card.bd-item { border-radius: 18px; }
  .cl-product-media.bd-item-media { aspect-ratio: 1 / .90; }
  .cl-product-body.bd-item-body { padding: 10px; min-height: 112px; }
  .cl-product-body h3 { font-size: .84rem; }
  .cl-product-body p { margin: 5px 0 7px; font-size: .66rem; line-height: 1.5; min-height: 2.2em; }
  .cl-product-foot.bd-item-foot { margin-top: 5px; }
  .cl-product-foot .bd-price { font-size: .8rem; }
  .cl-featured-badge.bd-featured { top: 8px; right: 8px; padding: 5px 7px; font-size: .57rem; }
  .cl-ai-fab { display: none; }
  .cl-cart-bar.bd-cart-fab { bottom: calc(70px + var(--cl-safe-bottom)); width: calc(100% - 20px); min-height: 54px; border-radius: 18px; }
  .cl-cart-action { font-size: .72rem; }
  .cl-cart-bar [data-cart-total] { font-size: .72rem; }
  .cl-bottom-nav { width: calc(100% - 20px); height: 57px; border-radius: 19px; }
  .cl-ai-sheet { max-height: 91vh; border-radius: 26px 26px 0 0; padding-inline: 14px; }
}

@media (max-width: 350px) {
  .cl-product-grid.bd-list { grid-template-columns: 1fr; }
  .cl-product-media.bd-item-media { aspect-ratio: 1.45 / 1; }
}

@media (min-width: 901px) {
  .cl-bottom-nav { display: none; }
  .cl-cart-bar.bd-cart-fab { bottom: 24px; }
  .cl-ai-fab { bottom: 96px; }
  body.cl-body { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .cl-hero-video { display: none; }
  .cl-product-media .bd-item-img, .cl-product-card.bd-item, .cl-featured-card.bd-item, .cl-ai-sheet { transition: none !important; }
}

.cl-search-row.is-search-only { grid-template-columns: minmax(0,1fr); }
.cl-bottom-nav.is-two { grid-template-columns: repeat(2, 1fr); }
.cl-featured-card.bd-item { opacity: 1; transform: none; content-visibility: visible; }
.cl-shell.bd-shell { min-height: 100vh; padding-bottom: 0; }

/* SYSTEM74E4 contrast hardening — 2026-09-15
   The unified assistant sheet uses a light canvas, so every inherited dark-theme
   assistant color is explicitly normalized here. This prevents white-on-cream
   text when the legacy assistant component rules are present. */
.cl-ai-sheet,
.cl-ai-sheet input,
.cl-ai-sheet button,
.cl-ai-sheet textarea { color-scheme: light; }
.cl-ai-sheet .cl-ai-head h2,
.cl-ai-sheet .cl-voice-intro h3,
.cl-ai-sheet .bd-assistant-card h3,
.cl-ai-sheet .bd-assistant-card strong { color: #17181b !important; }
.cl-ai-sheet .cl-voice-intro p,
.cl-ai-sheet .assistant-status,
.cl-ai-sheet .bd-assistant-note,
.cl-ai-sheet .voice-copy p:not(.bd-kicker) { color: #666a72 !important; }
.cl-ai-sheet .assistant-message.bot,
.cl-ai-sheet .bd-assistant-reply.assistant-message.bot {
  background: #ffffff !important;
  color: #1b1d21 !important;
  border: 1px solid rgba(17,18,20,.09);
  box-shadow: 0 5px 18px rgba(17,18,20,.04);
}
.cl-ai-sheet .assistant-message.user {
  background: var(--cl-primary, #0a0a0b) !important;
  color: #ffffff !important;
  border-color: transparent;
}
.cl-ai-sheet .bd-assistant-action,
.cl-ai-sheet .voice-actions .bd-assistant-action {
  background: #ffffff !important;
  color: #24262a !important;
  border: 1px solid rgba(17,18,20,.12) !important;
}
.cl-ai-sheet .bd-assistant-card {
  background: #ffffff !important;
  color: #1b1d21 !important;
  border: 1px solid rgba(17,18,20,.09) !important;
}
.cl-ai-sheet .bd-assistant-card p { color: #6f737a !important; }
.cl-ai-sheet .bd-assistant-card button:last-child {
  background: #f4f1ea !important;
  color: #24262a !important;
  border-color: rgba(17,18,20,.10) !important;
}
.cl-ai-sheet .bd-mic.voice-mic-button span { color: #ffffff !important; }
.cl-ai-sheet input::placeholder { color: #888b91 !important; opacity: 1; }
.cl-ai-sheet audio { color-scheme: light; }

/* Custom-color contrast contract for Cinematic Luxe. Owner-selected palette
   colors may be light or dark; controls therefore use server-computed readable
   foreground colors rather than assuming white/black. */
.cl-mini-cart { color: var(--cl-on-primary, #fff) !important; }
.cl-mini-cart [data-cart-count-mini] { color: var(--cl-on-accent, #111) !important; }
.cl-inline-ai { color: var(--cl-on-primary, #fff) !important; }
.cl-cats .bd-cat.is-active { color: var(--cl-on-primary, #fff) !important; }
.cl-add-float.bd-add { color: var(--cl-on-primary, #fff) !important; }
.cl-add-float.bd-add:hover { color: var(--cl-on-accent, #111) !important; }
.cl-assistant-form button { color: var(--cl-on-primary, #fff) !important; }
.cl-ai-tabs button.is-active { color: var(--cl-on-primary, #fff) !important; }
.cl-cart-bar.bd-cart-fab { color: var(--cl-on-primary, #fff) !important; }
.cl-cart-summary b, .cl-bottom-nav button > b { color: var(--cl-on-accent, #111) !important; }
.cl-body .bd-submit, .cl-body .bd-type button.is-active { color: var(--cl-on-primary, #fff) !important; }
.cl-ai-sheet .assistant-message.user { color: var(--cl-on-primary, #fff) !important; }

/* SYSTEM74E4 Restaurant OS: checkout drawer overflow + always-visible submit safety */
.bd-drawer { z-index: 140; }
.bd-wheel { z-index: 180; }
.bd-order-drawer-panel {
  width: min(720px, 100%);
  height: min(94dvh, 880px);
  max-height: 100dvh;
  margin: 0 auto;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  background: #FBFAF7 !important;
  color: #1B1C1F !important;
  border-radius: 26px 26px 0 0 !important;
  box-shadow: 0 -24px 70px rgba(10,10,10,.22);
}
.bd-order-drawer-panel > .bd-drawer-head {
  flex: 0 0 auto;
  padding: 16px 14px 12px;
  margin: 0;
  background: #FBFAF7;
  border-bottom: 1px solid #E4DED3;
  color: #1B1C1F;
}
.bd-order-drawer-panel > .bd-drawer-head h2,
.bd-order-drawer-panel > .bd-drawer-head strong { color: #1B1C1F !important; }
.bd-order-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scroll-padding-bottom: 20px;
  padding: 0 14px 18px;
  background: #FBFAF7;
  color: #1B1C1F;
}
.bd-order-scroll .bd-cart-items,
.bd-order-scroll .bd-checkout { min-width: 0; width: 100%; }
.bd-order-scroll .bd-checkout {
  padding-bottom: 4px;
  color: #1B1C1F !important;
}
.bd-order-scroll .bd-checkout input,
.bd-order-scroll .bd-checkout textarea,
.bd-order-scroll .bd-checkout select {
  width: 100%;
  max-width: 100%;
  background: #FFFFFF !important;
  color: #1B1C1F !important;
  border-color: #D9D2C7 !important;
}
.bd-order-scroll .bd-checkout input::placeholder,
.bd-order-scroll .bd-checkout textarea::placeholder { color: #69645C !important; opacity: 1; }
.bd-order-scroll .bd-type { flex-wrap: wrap; }
.bd-order-scroll .bd-type button { min-width: min(130px, 100%); color: #1B1C1F; }
.bd-order-scroll .bd-totals,
.bd-order-scroll .bd-table-order {
  background: #F3F0EA !important;
  color: #4E4A44 !important;
  border-color: #DED7CC !important;
}
.bd-order-scroll .bd-totals strong,
.bd-order-scroll .bd-totals div:last-child,
.bd-order-scroll .bd-table-order strong { color: #1B1C1F !important; }
.bd-order-scroll .bd-cart-line h3,
.bd-order-scroll .bd-cart-line strong,
.bd-order-scroll .bd-qty span { color: #1B1C1F !important; }
.bd-order-footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251,250,247,.99);
  color: #1B1C1F;
  border-top: 1px solid #DCD5C9;
  box-shadow: 0 -12px 28px rgba(32,27,20,.10);
}
.bd-order-footer .bd-message {
  min-height: 0;
  margin: 0;
  color: #9B2C2C !important;
  font-size: .82rem;
  line-height: 1.45;
  text-align: center;
}
.bd-order-footer .bd-message:empty { display: none; }
.bd-order-footer .bd-message.is-ok { color: #1C6B4B !important; }
.bd-order-submit {
  width: 100%;
  min-height: 54px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 16px !important;
  background: #111214 !important;
  color: #FFFFFF !important;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(17,18,20,.18);
}
.bd-order-submit:disabled { background: #5E6064 !important; color: #FFFFFF !important; cursor: wait; }
@media (max-width: 640px) {
  .bd-order-drawer-panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 !important;
  }
  .bd-order-drawer-panel > .bd-drawer-head { padding-top: max(12px, env(safe-area-inset-top)); }
  .bd-order-scroll { padding-inline: 12px; }
  .bd-order-footer { padding-inline: 12px; }
}
@supports not (height: 100dvh) {
  .bd-order-drawer-panel { height: 94vh; }
  @media (max-width: 640px) { .bd-order-drawer-panel { height: 100vh; } }
}


/* SYSTEM74E4 Arabic/Iraqi voice + layout hardening */
.ai-voice-playback {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  font: inherit;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}
[data-ai-voice-audio] {
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
}
.voice-assistant-panel,
.bd-assistant,
.bd-ai-voice,
.bd-basic-voice,
.assistant-chat,
.assistant-message,
.assistant-products,
.bd-assistant-products {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.assistant-message,
.bd-assistant-reply,
.bd-assistant-note,
.assistant-status {
  overflow-wrap: anywhere;
  word-break: normal;
}
.bd-chips,
.assistant-command-row {
  max-width: 100%;
  scrollbar-width: thin;
}
.bd-assistant-form input,
.bd-checkout input,
.bd-checkout textarea,
.cl-assistant-form input {
  text-align: right;
}
button,
.bd-assistant-action,
.assistant-chip {
  white-space: normal;
}
.cl-ai-sheet {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.cl-ai-panel { min-width: 0; }
.cl-ai-panel:not(.is-active) { display: none !important; }
.cl-ai-panel.is-active { display: block; }
.cl-chat.assistant-chat {
  max-height: min(34dvh, 300px);
  overscroll-behavior: contain;
}
@media (max-width: 640px) {
  .cl-ai-sheet {
    width: 100%;
    max-height: calc(100dvh - 8px);
    border-radius: 22px 22px 0 0;
    padding-inline: 12px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .cl-ai-tabs { margin-block: 10px; }
  .cl-chat.assistant-chat { max-height: 32dvh; }
  .cl-prompt-chips.bd-chips { padding-bottom: 8px; }
  .cl-cart-bar.bd-cart-fab {
    grid-template-columns: auto minmax(0,1fr) auto;
  }
  .cl-cart-action,
  .cl-cart-summary { min-width: 0; }
}

/* === SYSTEM74E4 MOBILE-FIRST PUBLIC MENU FINAL ===
   Customer menu only. Admin and owner dashboards are intentionally untouched.
   The product is authored for phone screens; larger screens show the same phone
   canvas centered instead of switching to a separate desktop layout. */
html { min-width: 320px; }
body[data-public-mobile-first="1"] {
  --s74-mobile-width: 480px;
  min-width: 320px;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}
body[data-public-mobile-first="1"] [data-menu-root] {
  width: min(100%, var(--s74-mobile-width)) !important;
  max-width: var(--s74-mobile-width) !important;
  min-height: 100dvh;
  margin-inline: auto !important;
  overflow: clip !important;
  position: relative;
}
body[data-public-mobile-first="1"] .bd-mobile-head,
body[data-public-mobile-first="1"] .bd-hero,
body[data-public-mobile-first="1"] .bd-tools,
body[data-public-mobile-first="1"] .bd-list,
body[data-public-mobile-first="1"] .bd-assistant,
body[data-public-mobile-first="1"] .bd-ai-voice,
body[data-public-mobile-first="1"] .bd-basic-voice,
body[data-public-mobile-first="1"] .bd-table-context,
body[data-public-mobile-first="1"] .cl-featured,
body[data-public-mobile-first="1"] .cl-menu-section,
body[data-public-mobile-first="1"] .cl-context-strip,
body[data-public-mobile-first="1"] .cl-tools {
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: 0 !important;
}

/* Force one phone composition at every viewport size. */
body[data-public-mobile-first="1"] .cl-hero.bd-hero {
  min-height: 300px !important;
  height: 38dvh !important;
  max-height: 350px !important;
  border-radius: 0 0 28px 28px !important;
}
body[data-public-mobile-first="1"] .cl-hero-content {
  width: 100% !important;
  max-width: none !important;
  padding: 40px 16px 26px !important;
}
body[data-public-mobile-first="1"] .cl-logo.bd-logo {
  width: 66px !important;
  height: 66px !important;
  border-radius: 20px !important;
  margin-bottom: 12px !important;
}
body[data-public-mobile-first="1"] .cl-identity { max-width: 100% !important; }
body[data-public-mobile-first="1"] .cl-identity h1 {
  font-size: clamp(2rem, 11vw, 3.05rem) !important;
  line-height: 1.04 !important;
  overflow-wrap: anywhere;
}
body[data-public-mobile-first="1"] .cl-desc.bd-desc { font-size: .9rem !important; line-height: 1.65 !important; }
body[data-public-mobile-first="1"] .cl-hero-cta { display: none !important; }
body[data-public-mobile-first="1"] .cl-context-strip.bd-table-context {
  min-height: 66px !important;
  margin: -14px 10px 10px !important;
  padding: 10px 12px !important;
  border-radius: 18px !important;
}
body[data-public-mobile-first="1"] .cl-tools.bd-tools {
  top: 0 !important;
  padding: 8px 10px 10px !important;
  border-radius: 0 0 18px 18px !important;
}
body[data-public-mobile-first="1"] .cl-search-row { grid-template-columns: minmax(0,1fr) 46px !important; gap: 7px !important; }
body[data-public-mobile-first="1"] .cl-search.bd-search { min-height: 46px !important; border-radius: 15px !important; }
body[data-public-mobile-first="1"] .cl-inline-ai { width: 46px !important; height: 46px !important; border-radius: 15px !important; }
body[data-public-mobile-first="1"] .cl-cats.bd-cats { padding-top: 8px !important; }
body[data-public-mobile-first="1"] .cl-featured,
body[data-public-mobile-first="1"] .cl-menu-section { padding: 22px 10px 0 !important; }
body[data-public-mobile-first="1"] .cl-product-grid.bd-list { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 8px !important; }
body[data-public-mobile-first="1"] .cl-featured-track { grid-auto-columns: 78% !important; gap: 9px !important; }
body[data-public-mobile-first="1"] .cl-product-body.bd-item-body { padding: 11px 11px 12px !important; min-height: 116px !important; }
body[data-public-mobile-first="1"] .cl-product-body h3 { font-size: .94rem !important; }
body[data-public-mobile-first="1"] .cl-product-body p { font-size: .73rem !important; }

/* Assistant hub: phone bottom-sheet only, no desktop modal variant. */
body[data-public-mobile-first="1"] .cl-ai-fab { display: none !important; }
body[data-public-mobile-first="1"] .cl-ai-hub { position: fixed !important; inset: 0 !important; z-index: 180 !important; }
body[data-public-mobile-first="1"] .cl-ai-sheet {
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  width: min(100%, var(--s74-mobile-width)) !important;
  max-width: var(--s74-mobile-width) !important;
  max-height: 94dvh !important;
  border-radius: 26px 26px 0 0 !important;
  padding: 8px 12px calc(18px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
body[data-public-mobile-first="1"] .cl-ai-head { gap: 8px !important; }
body[data-public-mobile-first="1"] .cl-ai-head h2 { font-size: 1.32rem !important; line-height: 1.25 !important; }
body[data-public-mobile-first="1"] .cl-ai-tabs {
  display: flex !important;
  gap: 6px !important;
  margin: 10px 0 8px !important;
  padding-bottom: 2px;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  scrollbar-width: none;
}
body[data-public-mobile-first="1"] .cl-ai-tabs button {
  flex: 0 0 auto !important;
  min-height: 40px !important;
  padding: 8px 11px !important;
  white-space: nowrap !important;
  font-size: .74rem !important;
}
body[data-public-mobile-first="1"] .cl-ai-panel {
  min-width: 0 !important;
  width: 100% !important;
  padding-top: 8px !important;
  overflow: visible !important;
}
body[data-public-mobile-first="1"] .cl-chat.assistant-chat,
body[data-public-mobile-first="1"] .assistant-chat {
  min-height: 96px !important;
  max-height: 34dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
body[data-public-mobile-first="1"] .assistant-message,
body[data-public-mobile-first="1"] .bd-assistant-reply,
body[data-public-mobile-first="1"] .assistant-status,
body[data-public-mobile-first="1"] .bd-assistant-note {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
}
body[data-public-mobile-first="1"] .assistant-command-row,
body[data-public-mobile-first="1"] .cl-prompt-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding: 2px 0 5px !important;
  scrollbar-width: none;
}
body[data-public-mobile-first="1"] .assistant-chip { flex: 0 0 auto !important; white-space: nowrap !important; min-height: 40px !important; }
body[data-public-mobile-first="1"] .cl-assistant-form,
body[data-public-mobile-first="1"] .bd-assistant-form {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 7px !important;
  align-items: stretch !important;
}
body[data-public-mobile-first="1"] .cl-assistant-form input,
body[data-public-mobile-first="1"] .bd-assistant-form input { min-width: 0 !important; width: 100% !important; font-size: 16px !important; }
body[data-public-mobile-first="1"] .cl-assistant-form button,
body[data-public-mobile-first="1"] .bd-assistant-form button { min-width: 70px !important; min-height: 46px !important; }
body[data-public-mobile-first="1"] .cl-assistant-actions,
body[data-public-mobile-first="1"] .voice-actions { display: flex !important; gap: 7px !important; flex-wrap: wrap !important; }
body[data-public-mobile-first="1"] .bd-assistant-action { min-height: 42px !important; max-width: 100% !important; }

/* AI Voice: compact, centered and touch-friendly. */
body[data-public-mobile-first="1"] .voice-hero-card,
body[data-public-mobile-first="1"] .cl-voice-layout,
body[data-public-mobile-first="1"] [data-ai-voice] .voice-hero-card {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  text-align: center !important;
  align-items: center !important;
}
body[data-public-mobile-first="1"] .voice-copy,
body[data-public-mobile-first="1"] .cl-voice-intro { text-align: right !important; width: 100% !important; }
body[data-public-mobile-first="1"] .voice-controls,
body[data-public-mobile-first="1"] [data-ai-voice] .voice-actions {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
body[data-public-mobile-first="1"] .bd-mic.voice-mic-button {
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  min-height: 112px !important;
  max-width: 112px !important;
  border-radius: 50% !important;
  margin-inline: auto !important;
}
body[data-public-mobile-first="1"] [data-ai-voice-end] { min-height: 48px !important; padding-inline: 18px !important; }
body[data-public-mobile-first="1"] [data-ai-voice-status] {
  display: block !important;
  min-height: 24px !important;
  margin: 9px 0 4px !important;
  text-align: center !important;
  line-height: 1.6 !important;
}
body[data-public-mobile-first="1"] [data-ai-voice-play] {
  width: 100% !important;
  min-height: 48px !important;
  margin-top: 8px !important;
}
body[data-public-mobile-first="1"] [data-ai-voice-audio] { width: 100% !important; max-width: 100% !important; margin-top: 8px !important; }

/* Drawers, cart and wheel remain inside the phone canvas. */
body[data-public-mobile-first="1"] .bd-drawer-panel,
body[data-public-mobile-first="1"] .bd-order-drawer-panel,
body[data-public-mobile-first="1"] .cl-cart-drawer,
body[data-public-mobile-first="1"] .bd-wheel-panel {
  width: min(100%, var(--s74-mobile-width)) !important;
  max-width: var(--s74-mobile-width) !important;
  margin-inline: auto !important;
}
body[data-public-mobile-first="1"] .bd-drawer.is-open,
body[data-public-mobile-first="1"] .bd-reservation-drawer.is-open { justify-content: center !important; }
body[data-public-mobile-first="1"] .bd-cart-fab,
body[data-public-mobile-first="1"] .cl-cart-bar.bd-cart-fab {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(calc(100% - 20px), 460px) !important;
  max-width: 460px !important;
}
body[data-public-mobile-first="1"] .cl-bottom-nav {
  display: grid !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(calc(100% - 20px), 460px) !important;
  max-width: 460px !important;
}
body[data-public-mobile-first="1"] .bd-toast { width: min(calc(100% - 24px), 456px) !important; }

/* Black Diamond also uses the phone composition at wide browser widths. */
body[data-public-mobile-first="1"] .bd-hero-content {
  max-width: 100% !important;
}
body[data-public-mobile-first="1"] .bd-list { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
body[data-public-mobile-first="1"] .bd-basic-voice,
body[data-public-mobile-first="1"] .bd-ai-voice,
body[data-public-mobile-first="1"] .bd-assistant { padding: 14px !important; }

@media (min-width: 521px) {
  body[data-public-mobile-first="1"] {
    background-color: #eceae5;
    background-attachment: fixed;
  }
  body[data-public-mobile-first="1"] [data-menu-root] {
    box-shadow: 0 0 0 1px rgba(17,18,20,.06), 0 22px 70px rgba(17,18,20,.12);
  }
}
@media (max-width: 359px) {
  body[data-public-mobile-first="1"] .cl-product-grid.bd-list,
  body[data-public-mobile-first="1"] .bd-list { grid-template-columns: 1fr !important; }
  body[data-public-mobile-first="1"] .cl-assistant-form,
  body[data-public-mobile-first="1"] .bd-assistant-form { grid-template-columns: 1fr !important; }
  body[data-public-mobile-first="1"] .cl-assistant-form button,
  body[data-public-mobile-first="1"] .bd-assistant-form button { width: 100% !important; }
  body[data-public-mobile-first="1"] .bd-mic.voice-mic-button {
    width: 102px !important; height: 102px !important; min-width: 102px !important; min-height: 102px !important;
  }
}


/* SYSTEM74E4 MOBILE-FIRST DESKTOP OVERRIDE FINAL */
body[data-public-mobile-first="1"] .bd-hero:not(.cl-hero) {
    min-height: 470px !important;
}
body[data-public-mobile-first="1"] .bd-hero:not(.cl-hero) .bd-hero-content {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 118px 14px 48px !important;
}
body[data-public-mobile-first="1"] .bd-hero:not(.cl-hero) .bd-logo {
    width: 78px !important;
    height: 78px !important;
    justify-self: start !important;
}
body[data-public-mobile-first="1"] .bd-mobile-head {
    left: 50% !important;
    right: auto !important;
    width: min(calc(100% - 20px), 460px) !important;
    transform: translate(-50%, -12px) !important;
}
body[data-public-mobile-first="1"] .bd-mobile-head.is-visible {
    transform: translate(-50%, 0) !important;
}
body[data-public-mobile-first="1"] .bd-drawer.is-open,
body[data-public-mobile-first="1"] .bd-reservation-drawer.is-open {
    align-items: flex-end !important;
    justify-content: center !important;
}
body[data-public-mobile-first="1"] .bd-drawer-panel {
    width: min(100%, 480px) !important;
    max-width: 480px !important;
    max-height: 94dvh !important;
    border-radius: 22px 22px 0 0 !important;
    border-right: 0 !important;
}

/* SYSTEM74E4 AI EXPERIENCE V2 — customer-facing only */
.cl-ai-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.cl-ai-tab-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: rgba(17,17,17,.06);
  font-size: .9rem;
}
.cl-ai-tab-copy { display: grid; gap: 1px; min-width: 0; text-align: right; }
.cl-ai-tab-copy strong { font-size: .78rem; line-height: 1.2; white-space: nowrap; }
.cl-ai-tab-copy small { font-size: .62rem; font-weight: 700; opacity: .62; white-space: nowrap; }
.cl-ai-tabs button.is-active .cl-ai-tab-icon { background: rgba(255,255,255,.14); }
.cl-ai-tabs button.is-active .cl-ai-tab-copy small { opacity: .78; }
.cl-ai-voice-cta {
  width: 100%;
  min-height: 46px;
  margin-top: 9px;
  border: 1px solid color-mix(in srgb, var(--cl-primary, #111) 22%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--cl-primary, #111) 5%, #fff);
  color: var(--cl-ink, #111);
  font: inherit;
  font-weight: 900;
}
.cl-voice-intro { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; }
.cl-voice-intro h3 { margin: 0 0 3px; font-size: 1.08rem; }
.cl-voice-intro p { margin: 0; color: var(--cl-muted, #777); font-size: .78rem; line-height: 1.65; }
.cl-voice-orb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--cl-primary, #111) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--cl-primary, #111) 14%, transparent);
}
.ai-voice-state {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  margin: 8px 0 12px;
  border: 1px solid var(--cl-line, #e7e7e7);
  border-radius: 15px;
  background: rgba(255,255,255,.72);
}
.ai-voice-state-dot { width: 9px; height: 9px; border-radius: 50%; background: #20a56a; box-shadow: 0 0 0 5px rgba(32,165,106,.09); flex: 0 0 auto; }
.ai-voice-state strong { display: block; font-size: .82rem; }
.ai-voice-state small { display: block; margin-top: 2px; color: var(--cl-muted, #777); font-size: .7rem; line-height: 1.45; }
[data-ai-voice-state][data-stage="listening"] .ai-voice-state-dot { background: #e2a52b; box-shadow: 0 0 0 5px rgba(226,165,43,.12); animation: s74VoicePulse 1s ease-in-out infinite; }
[data-ai-voice-state][data-stage="thinking"] .ai-voice-state-dot { background: #5378e6; box-shadow: 0 0 0 5px rgba(83,120,230,.1); animation: s74VoicePulse .75s ease-in-out infinite; }
[data-ai-voice-state][data-stage="error"] .ai-voice-state-dot { background: #d44b4b; box-shadow: 0 0 0 5px rgba(212,75,75,.09); }
@keyframes s74VoicePulse { 50% { transform: scale(1.35); opacity: .62; } }
.cl-voice-actions { justify-content: center; padding: 4px 0; }
.cl-ai-panel .bd-mic.voice-mic-button {
  width: 116px;
  height: 116px;
  min-width: 116px;
  min-height: 116px;
  margin: 6px auto;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, color-mix(in srgb, var(--cl-primary, #111) 70%, #fff), var(--cl-primary, #111) 56%, #050505 100%);
  color: #fff;
  box-shadow: 0 15px 38px rgba(0,0,0,.16), 0 0 0 8px color-mix(in srgb, var(--cl-primary, #111) 7%, transparent);
}
.cl-ai-panel .bd-mic.voice-mic-button.is-listening { box-shadow: 0 15px 38px rgba(0,0,0,.16), 0 0 0 10px rgba(226,165,43,.14); }
.ai-voice-end-session { width: 100%; background: transparent !important; color: var(--cl-muted, #777) !important; border: 1px solid var(--cl-line, #e7e7e7) !important; box-shadow: none !important; }
.ai-voice-conversation { display: grid; gap: 8px; margin-top: 11px; }
.ai-voice-bubble { max-width: 92%; padding: 10px 12px; border-radius: 16px; line-height: 1.65; }
.ai-voice-bubble small { display: block; margin-bottom: 2px; font-size: .63rem; font-weight: 900; opacity: .58; }
.ai-voice-bubble p { margin: 0; font-size: .84rem; }
.ai-voice-bubble.is-user { justify-self: start; background: var(--cl-primary, #111); color: #fff; border-bottom-left-radius: 5px; }
.ai-voice-bubble.is-assistant { justify-self: end; background: #f3f1ed; color: var(--cl-ink, #111); border-bottom-right-radius: 5px; }
.ai-voice-playback { width: 100%; margin-top: 8px; min-height: 46px; }
.ai-voice-products { margin-top: 10px; }

body[data-public-mobile-first="1"] .cl-ai-tabs { overflow: visible !important; }
body[data-public-mobile-first="1"] .cl-ai-tabs button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 8px 7px !important;
  border-radius: 14px !important;
}
body[data-public-mobile-first="1"] .cl-ai-tab-icon { width: 28px; height: 28px; border-radius: 10px; }
body[data-public-mobile-first="1"] .cl-ai-tab-copy strong { font-size: .7rem; }
body[data-public-mobile-first="1"] .cl-ai-tab-copy small { font-size: .57rem; }
@media (max-width: 355px) {
  body[data-public-mobile-first="1"] .cl-ai-tabs { gap: 4px !important; }
  body[data-public-mobile-first="1"] .cl-ai-tabs button { gap: 4px !important; padding-inline: 5px !important; }
  body[data-public-mobile-first="1"] .cl-ai-tab-icon { display: none; }
}
