/* =============================================================================================
   Design v4 polish (29 Oct 2026). Owner: "it looks very cheap and AI".
   Loaded after design-v3.css, same scope (html.design-v3). It fixes the wide-screen layout,
   swaps emoji for line icons, puts real dish photos on the start page, and calms the boxes:
   one page width, one accent (leaf green), fewer borders and shadows.
   ============================================================================================= */

html.design-v3 { --v4-w: 1048px; --v4-gutter: max(16px, calc((100vw - var(--v4-w)) / 2)); }
html.design-v3 body { overflow-x: hidden; }

/* The old saffron/green band behind the top showed beside the photo on wide screens. */
html.design-v3 body::before { display: none !important; }

/* ---------- Hero: edge to edge on every screen, text lined up with the page ---------- */
html.design-v3 .hero,
html.design-v3 .hero-card { max-width: none; width: 100%; margin: 0; }
html.design-v3 .hero-card picture { overflow: hidden; }
html.design-v3 .hero-photo,
html.design-v3 body.is-home .hero-photo { width: 100%; max-width: none; margin: 0; display: block; }
@media (min-width: 900px) {
  html.design-v3 .hero-photo, html.design-v3 body.is-home .hero-photo { height: 420px; object-position: center 60%; }
  html.design-v3 .hero-card::after { height: 420px; }
  html.design-v3 .hero-band { top: 420px; }
}
html.design-v3 .hero-band { padding-left: var(--v4-gutter); padding-right: var(--v4-gutter); }
html.design-v3 .app-bar-inner { max-width: none; margin: 0; padding-left: var(--v4-gutter); padding-right: var(--v4-gutter); }
html.design-v3 .hero-body { max-width: var(--v4-w); margin: 0 auto; }
html.design-v3 .lang-chip { right: var(--v4-gutter); top: 66px; font-size: .78rem; padding: 5px 12px; box-shadow: none; }
@media (min-width: 900px) { html.design-v3 .lang-chip { top: auto; bottom: 46px; } }
html.design-v3 .hero-rating, html.design-v3 .hero-open { font-weight: 600; backdrop-filter: blur(6px); }

/* ---------- One page width for everything under the photo ---------- */
html.design-v3 .start-page,
html.design-v3 .wa-channel-card,
html.design-v3 .store-closed,
html.design-v3 .refer-card { max-width: var(--v4-w); margin-left: auto; margin-right: auto; }
html.design-v3 .wa-channel-card,
html.design-v3 .store-closed,
html.design-v3 .refer-card { width: calc(100% - 32px); }
html.design-v3 .start-page { padding: 18px 16px 8px; }
@media (min-width: 1080px) { html.design-v3 .start-page { padding-left: 0; padding-right: 0; } }

/* ---------- Bestsellers: the food is the first thing you see ---------- */
html.design-v3 .home-picks { margin: 0 0 26px; }
html.design-v3 .hp-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
html.design-v3 .hp-head h2,
html.design-v3 .start-title {
  font-family: var(--v3-display); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em;
  margin: 0; color: var(--v3-ink);
}
html.design-v3 .start-title { margin: 0 0 12px; }
html.design-v3 .hp-all {
  display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 4px 0;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--v3-leaf-2); cursor: pointer;
}
html.design-v3 .hp-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px;
}
html.design-v3 .hp-row::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  html.design-v3 .hp-row { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 16px; }
  html.design-v3 .hp-row > :nth-child(n+6) { display: none; }
}
html.design-v3 .hp-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 0; border: 0;
  background: none; font: inherit; color: var(--v3-ink); cursor: pointer; scroll-snap-align: start;
}
html.design-v3 .hp-img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #EDE8DC; }
html.design-v3 .hp-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) { html.design-v3 .hp-card:hover .hp-img img { transform: scale(1.04); } }
html.design-v3 .hp-name {
  font-size: .9rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html.design-v3 .hp-diet {
  display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 1px;
  border: 1.5px solid currentColor; border-radius: 2px; position: relative;
}
html.design-v3 .hp-diet::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: currentColor; }
html.design-v3 .hp-diet.veg { color: #2E8B47; }
html.design-v3 .hp-diet.nonveg { color: var(--v3-kumkum); }
html.design-v3 .hp-price { font-size: .9rem; font-weight: 700; color: var(--v3-ink-2); }
html.design-v3 .hp-card:focus-visible { outline: 2px solid var(--v3-leaf-2); outline-offset: 3px; border-radius: 14px; }

/* ---------- Ways to order: slim rows with line icons, not three big boxes ---------- */
html.design-v3 .start-choices { gap: 10px; }
html.design-v3 .start-choice,
html.design-v3 .start-choice:not(.sc-now) {
  grid-template-columns: 44px minmax(0, 1fr) 18px; text-align: left; justify-items: stretch;
  padding: 14px 16px; gap: 14px; border-radius: 16px; box-shadow: none;
  border: 1px solid var(--v3-vein); background: var(--v3-paper); transition: border-color .15s ease, transform .12s ease;
}
html.design-v3 .start-choice > .ico { display: block; color: var(--v3-ink-3); }
html.design-v3 .start-choice strong { font-size: 1.08rem; }
html.design-v3 .start-choice small { font-size: .85rem; color: var(--v3-ink-2); }
html.design-v3 .start-choice em { font-size: .8rem; font-style: normal; font-weight: 600; color: var(--v3-leaf-2); }
html.design-v3 .sc-emoji { width: 44px; height: 44px; border-radius: 12px; background: #EEF3EA; color: var(--v3-leaf); font-size: 0; }
html.design-v3 .sc-emoji .ico { width: 22px; height: 22px; }
html.design-v3 .sc-now { background: var(--v3-leaf); border-color: var(--v3-leaf); }
html.design-v3 .sc-now > .ico { color: rgba(255,255,255,.8); }
html.design-v3 .sc-now small { color: rgba(255,255,255,.82); }
html.design-v3 .sc-now em { color: #CFE6C8; }
html.design-v3 .sc-now .sc-emoji { background: rgba(255,255,255,.14); color: #fff; }
@media (hover: hover) { html.design-v3 .start-choice:not(.sc-now):hover { border-color: #B9C9AE; } }
@media (min-width: 900px) {
  html.design-v3 .start-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.design-v3 .start-choice, html.design-v3 .start-choice:not(.sc-now) { grid-template-columns: 44px minmax(0, 1fr) 18px; text-align: left; justify-items: stretch; padding: 16px 18px; }
  html.design-v3 .start-choice > .ico { display: block; }
}
html.design-v3 .start-links { margin-top: 14px; gap: 18px; }
html.design-v3 .start-links .link-btn { font-weight: 600; color: var(--v3-leaf-2); text-decoration: none; }

/* ---------- WhatsApp row: real icon instead of a green dot ---------- */
html.design-v3 .wa-channel-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 18px; border-radius: 14px; }
html.design-v3 .wa-channel-card > span:nth-child(2) { flex: 1; min-width: 0; }
html.design-v3 .wa-channel-card strong { font-weight: 600; }
html.design-v3 .wa-ico { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #E3F4E7; color: #1E8E46; }
html.design-v3 .wa-ico .ico { width: 18px; height: 18px; }

/* ---------- Footer: full-width band, content on the page width ---------- */
html.design-v3 .site-footer {
  max-width: none; width: 100%; margin: 28px 0 0; border-top: 1px solid var(--v3-vein);
  padding: 26px var(--v4-gutter) 96px; gap: 4px;
}

/* ---------- Welcome: a sheet over the page, not a wall in front of it ---------- */
html.design-v3 .welcome-screen { background: rgba(14, 24, 16, .55); align-items: flex-end; padding: 0; backdrop-filter: blur(2px); }
html.design-v3 .ws-inner {
  background: var(--v3-rice); color: var(--v3-ink); border-radius: 24px 24px 0 0; max-width: 460px;
  padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto;
  transform: translateY(24px); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
html.design-v3 .welcome-screen.open .ws-inner { transform: none; }
@media (min-width: 700px) {
  html.design-v3 .welcome-screen { align-items: center; padding: 20px; }
  html.design-v3 .ws-inner { border-radius: 24px; }
}
html.design-v3 .ws-hero { height: 150px; border-radius: 16px; box-shadow: none; margin-bottom: 12px; }
html.design-v3 .ws-logo { display: none; }
html.design-v3 .ws-inner h2 { font-family: var(--v3-display); font-weight: 400; color: var(--v3-leaf); font-size: 1.1rem; margin: 4px 0 2px; }
html.design-v3 .ws-inner h2 span { font-size: 1.8rem; line-height: 1.1; }
html.design-v3 .ws-sub { font-size: .85rem; margin-bottom: 14px; }
html.design-v3 .ws-monkeys { gap: 0; margin-bottom: 14px; border: 1px solid var(--v3-vein); border-radius: 14px; background: var(--v3-paper); overflow: hidden; }
html.design-v3 .ws-monkey { border: 0; border-radius: 0; background: none; padding: 10px 14px; animation: none; }
html.design-v3 .ws-monkey + .ws-monkey { border-top: 1px solid var(--v3-vein); }
html.design-v3 .ws-monkey > span { width: 22px; height: 22px; background: #E5EEE1; }
html.design-v3 .ws-monkey > span::after { font-size: .75rem; color: var(--v3-leaf); }
html.design-v3 .ws-monkey strong { font-size: .95rem; font-weight: 600; }
html.design-v3 .ws-monkey small { font-size: .8rem; color: var(--v3-ink-2); opacity: 1; }
html.design-v3 .ws-offer { background: var(--v3-turmeric-tint); border: 0; color: #5B3D05; border-radius: 12px; font-size: .92rem; padding: 10px 12px; }
html.design-v3 .ws-offer b { font-size: 1rem; }
html.design-v3 .ws-inner .primary-btn { background: var(--v3-leaf); color: #fff; box-shadow: none; border-radius: 14px; }
html.design-v3 .ws-browse { color: var(--v3-leaf-2); text-decoration: none; font-weight: 600; }

/* ---------- Dark mode for the new pieces ---------- */
html.design-v3[data-theme="dark"] .hp-card,
html.design-v3[data-theme="dark"] .hp-head h2 { color: var(--v3-ink); }
html.design-v3[data-theme="dark"] .hp-img { background: #1D241D; }
html.design-v3[data-theme="dark"] .sc-emoji { background: rgba(255,255,255,.06); color: #CFE6C8; }
html.design-v3[data-theme="dark"] .wa-ico { background: rgba(30,142,70,.18); color: #6FD08E; }

@media (prefers-reduced-motion: reduce) {
  html.design-v3 .ws-inner, html.design-v3 .hp-img img { transition: none; }
}

/* ---------- Menu page: icons instead of emoji ---------- */
html.design-v3 .wh-ico, html.design-v3 .qa-ico { display: grid; place-items: center; flex: none; font-size: 0; }
html.design-v3 .wh-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(185,122,14,.14); color: var(--v3-turmeric); }
html.design-v3 .wh-ico .ico { width: 20px; height: 20px; }
html.design-v3 .qa-ico { width: 30px; height: 30px; border-radius: 9px; background: #EEF3EA; color: var(--v3-leaf); }
html.design-v3 .qa-ico .ico { width: 18px; height: 18px; }
html.design-v3[data-theme="dark"] .qa-ico { background: rgba(255,255,255,.06); color: #CFE6C8; }
html.design-v3 .reel-strip-head { padding: 0 16px; }

/* =============================================================================================
   Menu page polish from studying Swiggy's app (5 Nov 2026): slimmer sticky bar while scrolling,
   search suggestions, a slimmer combo line, cart on the sign-in sheet, and the "Ask Chef" helper.
   Written without the html.design-v3 scope so it also works on the older designs.
   ============================================================================================= */

/* Sticky bar: the filter chips fold away while scrolling down, and come back on scroll up. */
.menu-toolbar .filter-chips { max-height: 52px; transition: max-height .22s ease, padding .22s ease, opacity .18s ease; }
body.tb-compact .menu-toolbar .filter-chips { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; pointer-events: none; }
body.tb-compact .menu-toolbar-row { padding-top: 8px; padding-bottom: 6px; }

/* Search suggestions under the search box */
.search-suggest { max-width: var(--content-w); margin: 0 auto; padding: 2px 16px 12px; }
.search-suggest[hidden] { display: none; }
.ss-head { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, #7a7068); margin: 6px 0 8px; }
.ss-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-row.ss-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.ss-row.ss-scroll::-webkit-scrollbar { display: none; }
.ss-scroll .ss-chip { flex: none; }
body.searching .menu-fab, body.searching .chef-fab { display: none; }
.ss-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--v3-vein, #e5ddcf); background: var(--v3-paper, #fff); color: var(--ink, #241c18); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.ss-chip.ss-recent { padding-left: 10px; }
.ss-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ss-chip .ico { color: var(--ink-3, #7a7068); }

/* Combo suggestion: one slim line just above the cart bar, with a close button */
#combo-suggestion { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 80px); }
#combo-suggestion .combo-suggestion-inner { padding: 6px 6px 6px 14px; gap: 8px; border-radius: 14px; font-size: .8rem; }
#combo-suggestion .combo-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#combo-suggestion #combo-add-btn { padding: 6px 14px; border-radius: 10px; font-size: .8rem; }
#combo-suggestion .combo-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3, #7a7068); font-size: 1.15rem; line-height: 1; cursor: pointer; }
body.has-cart.has-combo .menu-fab { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 128px); }

/* Sign-in sheet opened from "View cart": show the cart */
.auth-cart { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--v3-paper, #fff); border: 1px solid var(--v3-vein, #e5ddcf); font-size: .85rem; line-height: 1.45; }
.auth-cart[hidden] { display: none; }
.auth-cart strong { font-size: 1.05rem; white-space: nowrap; }

/* ---------- Ask Chef ---------- */
.chef-fab { position: fixed; left: 0; top: 0; z-index: 31; width: 72px; height: 104px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition-property: transform; transition-timing-function: cubic-bezier(.45,.05,.3,1); will-change: transform; }
.chef-fab[hidden] { display: none; }
body.is-home .chef-fab { display: none; }
.chef-lean, .chef-float { position: absolute; inset: 0; display: block; }
.chef-lean { transition: transform .5s ease; transform-origin: 50% 55%; }
.chef-float { animation: ghost-float 3.4s ease-in-out infinite; transform-origin: 50% 70%; }
.chef-fab:active .chef-float { scale: .92; }
.chef-fab .ghost-svg { position: absolute; left: -12px; top: -14px; width: 96px; height: 137px; overflow: visible; opacity: .86; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .95)) drop-shadow(0 0 10px rgba(200, 175, 255, .8)); transition: transform .35s ease; }
.chef-fab.face-left .ghost-svg { transform: scaleX(-1); }
@keyframes ghost-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
/* Leans into the flight, and the odd loop-the-loop */
.chef-fab.flying .chef-lean { transform: rotate(10deg); }
.chef-fab.flying.face-left .chef-lean { transform: rotate(-10deg); }
.chef-fab.looping .chef-lean { animation: ghost-loop 1.1s cubic-bezier(.5,0,.3,1); }
@keyframes ghost-loop { 0% { transform: rotate(0); } 60% { transform: rotate(380deg) scale(1.08); } 100% { transform: rotate(360deg); } }
.chef-fab.boing .chef-lean { animation: ghost-boing .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes ghost-boing { 0% { transform: scale(1, 1); } 30% { transform: scale(1.15, .85); } 60% { transform: scale(.92, 1.1); } 100% { transform: scale(1, 1); } }
/* Body parts */
.ghost-svg .gst-aura { animation: ghost-aura 2.6s ease-in-out infinite; transform-origin: 70px 100px; }
@keyframes ghost-aura { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.ghost-svg .gst-tail { transform-origin: 70px 124px; animation: ghost-tail 2.2s ease-in-out infinite; }
@keyframes ghost-tail { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(-10deg) translateX(5px); } }
.ghost-svg .gst-hat { transform-origin: 70px 66px; animation: ghost-hat 3.4s ease-in-out infinite; }
@keyframes ghost-hat { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg) translateY(-1.5px); } }
.ghost-svg .gst-eyes { transform-origin: 70px 82px; animation: ghost-blink 5s infinite; }
@keyframes ghost-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.ghost-svg .gst-arm { transform-origin: 98px 126px; animation: ghost-arm-idle 3.4s ease-in-out infinite; }
@keyframes ghost-arm-idle { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-8deg); } }
.chef-fab.waving .gst-arm, .chef-avatar.waving .gst-arm { animation: ghost-wave .4s ease-in-out 6 alternate; }
@keyframes ghost-wave { from { transform: rotate(-22deg); } to { transform: rotate(18deg); } }
.ghost-svg .gst-eye-r { transform-origin: 82px 82px; }
.chef-fab.winking .gst-eye-r { animation: ghost-wink .65s ease-in-out; }
@keyframes ghost-wink { 0%, 100% { transform: scaleY(1); } 35%, 65% { transform: scaleY(.08); } }
.chef-fab.winking .gst-brows, .chef-fab.waving .gst-brows { transform: translateY(-2px); transition: transform .2s; }
.ghost-svg .gst-stache { transform-origin: 70px 100px; }
.chef-fab.talk .gst-stache, .chef-fab.waving .gst-stache { animation: ghost-stache .25s ease-in-out 4 alternate; }
@keyframes ghost-stache { from { transform: rotate(-4deg) scaleX(1.02); } to { transform: rotate(4deg) scaleX(1.06); } }
.ghost-svg .gst-mouth { transform-origin: 70px 107px; }
.chef-fab.talk .gst-mouth { animation: ghost-mouth .18s ease-in-out 6 alternate; }
@keyframes ghost-mouth { to { transform: scaleY(1.5); } }
.ghost-svg .gst-sparks path { fill: #F2C14E; transform-box: fill-box; transform-origin: center; animation: genie-spark 2.2s ease-in-out infinite; }
.ghost-svg .gst-sparks path:nth-child(2) { animation-delay: .55s; }
.ghost-svg .gst-sparks path:nth-child(3) { animation-delay: 1.1s; }
.ghost-svg .gst-sparks path:nth-child(4) { animation-delay: 1.65s; }
@keyframes genie-spark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
/* Sparkle trail + heart burst (fixed layer, never catches taps) */
.chef-trail { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.chef-trail i { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #F2C14E; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: ghost-trail 1s ease-out forwards; }
.chef-trail i.heart { width: 11px; height: 10px; background: #FF6F7D; clip-path: path('M5.5 10 0.8 5.4C-.6 3.9-.2 1.3 1.6.4 3 -.3 4.6.2 5.5 1.4 6.4.2 8-.3 9.4.4c1.8.9 2.2 3.5.8 5Z'); }
@keyframes ghost-trail { 0% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: translateY(18px) scale(.3) rotate(90deg); } }
.chef-trail i.heart.burst { width: 15px; height: 14px; clip-path: path('M7.5 14 1 7.4C-.8 5.4-.3 1.8 2.2.6 4.1-.4 6.3.3 7.5 1.9 8.7.3 10.9-.4 12.8.6c2.5 1.2 3 4.8 1.2 6.8Z'); animation: ghost-heart 1.2s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes ghost-heart { 0% { opacity: 0; transform: translate(0,0) scale(.3); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--hx), var(--hy)) scale(1.2); } }
/* Puff of smoke when he appears */
.chef-poof { position: absolute; left: 50%; top: 60%; width: 0; height: 0; pointer-events: none; }
.chef-poof i { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle, #fff 30%, rgba(201,243,230,.9) 60%, rgba(201,243,230,0) 72%); opacity: 0; }
.chef-fab.poof .chef-poof i { animation: genie-poof .9s ease-out forwards; }
.chef-fab.poof .chef-poof i:nth-child(1) { --dx: -38px; --dy: -10px; }
.chef-fab.poof .chef-poof i:nth-child(2) { --dx: 34px; --dy: -20px; animation-delay: .05s; }
.chef-fab.poof .chef-poof i:nth-child(3) { --dx: -18px; --dy: 30px; animation-delay: .1s; }
.chef-fab.poof .chef-poof i:nth-child(4) { --dx: 26px; --dy: 26px; animation-delay: .08s; }
.chef-fab.poof .chef-poof i:nth-child(5) { --dx: 0px; --dy: -40px; animation-delay: .03s; }
@keyframes genie-poof { 0% { opacity: .95; transform: translate(0,0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.9); } }
.chef-fab.poof .chef-float { animation: genie-appear .9s cubic-bezier(.2,1.5,.4,1) both, ghost-float 3.4s ease-in-out .9s infinite; }
@keyframes genie-appear { 0% { opacity: 0; transform: translateY(26px) scale(.1) rotate(-30deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.chef-fab-label { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: #1F4A2C; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
/* Parked: peeks in from the left edge, tilted, so dish names and buttons stay clear */
.chef-fab .chef-lean { transition: rotate .5s ease; }
.chef-fab.parked .chef-lean { rotate: 0deg; }
.chef-bubble { position: absolute; left: 44px; bottom: 78px; width: max-content; max-width: min(230px, 62vw); padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: #fff; color: #241c18; font-size: .8rem; font-weight: 600; line-height: 1.35; text-align: left; box-shadow: 0 10px 26px -10px rgba(0,0,0,.35); border: 1px solid #ece4d6; animation: chef-pop .32s cubic-bezier(.2,1.4,.4,1); }
.chef-fab.bubble-left .chef-bubble { left: auto; right: 44px; border-radius: 14px 14px 4px 14px; }
.chef-fab.bubble-below .chef-bubble { bottom: auto; top: 92px; border-radius: 4px 14px 14px 14px; }
.chef-fab.bubble-left.bubble-below .chef-bubble { border-radius: 14px 4px 14px 14px; }
.chef-bubble[hidden] { display: none; }
@keyframes chef-pop { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

/* The chef is alive: bobbing head, blinking eyes, rising steam, a wiggle when he talks */
.chef-svg .chef-steam path { fill: none; stroke: #C9BFA9; stroke-width: 2.4; stroke-linecap: round; opacity: 0; animation: chef-steam 3.2s ease-in-out infinite; }
.chef-svg .chef-steam path:nth-child(2) { animation-delay: .7s; }
.chef-svg .chef-steam path:nth-child(3) { animation-delay: 1.4s; }
@keyframes chef-steam { 0% { opacity: 0; transform: translateY(6px); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }
.chef-svg .chef-head, .chef-svg .chef-hat { transform-origin: 60px 100px; animation: chef-bob 3.6s ease-in-out infinite; }
@keyframes chef-bob { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg) translateY(-1px); } }
.chef-svg .chef-eyes { transform-origin: 60px 76px; animation: chef-blink 4.8s infinite; }
@keyframes chef-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.chef-fab.talk .chef-float { animation: chef-wiggle .9s ease; }
@keyframes chef-wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-8deg) scale(1.06); } 45% { transform: rotate(7deg) scale(1.06); } 70% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .chef-svg *, .chef-lean, .chef-trail i, .chef-float, .chef-fab.talk .chef-float, .chef-fab.poof .chef-float, .chef-poof i, .chef-bubble { animation: none !important; } .chef-fab { transition: none !important; } .chef-svg .chef-steam path { opacity: .6; } }

/* Chef sheet */
.chef-sheet { display: flex; flex-direction: column; max-height: 88vh; }
.chef-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.chef-top h2 { margin: 0; }
.chef-top p { margin: 2px 0 0; }
.chef-avatar { flex: none; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFFFFF, #D9CCF7 95%); box-shadow: 0 0 0 3px #1F4A2C, 0 0 16px rgba(200,175,255,.75); position: relative; overflow: hidden; }
.chef-avatar .chef-svg { position: absolute; left: 1px; top: 2px; width: 60px; height: 72px; }
.chef-avatar .gst-aura, .chef-avatar .gst-sparks { display: none; }
.chef-log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px 0 10px; overscroll-behavior: contain; }
.chef-msg { align-self: flex-start; max-width: 100%; }
.chef-msg > p { margin: 0; display: inline-block; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: #EEF3EA; color: #1d2a1f; font-size: .88rem; line-height: 1.5; }
.chef-msg.typing .dots { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: #EEF3EA; }
.chef-msg .dots i { width: 6px; height: 6px; border-radius: 50%; background: #1F4A2C; opacity: .4; animation: chef-dot 1s infinite; }
.chef-msg .dots i:nth-child(2) { animation-delay: .15s; }
.chef-msg .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chef-dot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.chef-you { align-self: flex-end; max-width: 80%; padding: 8px 12px; border-radius: 16px 4px 16px 16px; background: #1F4A2C; color: #fff; font-size: .85rem; font-weight: 600; }
.chef-cards { display: flex; gap: 10px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.chef-cards::-webkit-scrollbar { display: none; }
.chef-card { flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #ece4d6; box-shadow: 0 6px 16px -10px rgba(0,0,0,.25); }
.chef-card:only-child { flex-basis: min(300px, 100%); }
.chef-card img, .chef-card-ph { width: 100%; height: 110px; object-fit: cover; display: block; background: #f3ede2; }
.chef-card-body { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.chef-card-name { display: flex; gap: 6px; align-items: flex-start; font-weight: 700; font-size: .86rem; line-height: 1.3; color: #241c18; }
.chef-card-name .diet-mark { margin-top: 2px; flex: none; }
.chef-why { font-size: .74rem; font-weight: 600; color: #9a6b12; }
.chef-card-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.chef-card-foot b { margin-right: auto; font-size: .92rem; color: #241c18; }
.chef-more, .chef-add { padding: 6px 11px; border-radius: 10px; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.chef-more { border: 1px solid #d9d0bf; background: #fff; color: #241c18; }
.chef-add { border: 0; background: #1F4A2C; color: #fff; }
.chef-add:disabled { background: #6f9a7a; }
.chef-asks { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.chef-asks::-webkit-scrollbar { display: none; }
.chef-asks button { flex: none; padding: 8px 13px; border-radius: 999px; border: 1px solid #1F4A2C; background: #fff; color: #1F4A2C; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.chef-ask-dish { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; border: 1px solid #d9d0bf; background: #fff; }
.chef-ask-dish input { flex: 1; border: 0; outline: 0; background: transparent; padding: 11px 0; font: inherit; font-size: .9rem; color: #241c18; min-width: 0; }
.chef-dish-hits { flex: none; max-height: 92px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.chef-dish-hits button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid #ece4d6; background: #faf6ee; color: #241c18; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
:root[data-theme="dark"] .chef-msg > p, :root[data-theme="dark"] .chef-msg.typing .dots { background: #22301f; color: #e6efe1; }
:root[data-theme="dark"] .chef-card, :root[data-theme="dark"] .chef-ask-dish, :root[data-theme="dark"] .chef-more, :root[data-theme="dark"] .chef-asks button, :root[data-theme="dark"] .ss-chip, :root[data-theme="dark"] .auth-cart, :root[data-theme="dark"] .chef-dish-hits button { background: #1b201a; color: #ecebe6; border-color: #34402f; }
:root[data-theme="dark"] .chef-card-name, :root[data-theme="dark"] .chef-card-foot b, :root[data-theme="dark"] .chef-ask-dish input { color: #ecebe6; }

/* In-page dialog (replaces browser alert/confirm pop-ups) */
.zdialog { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(20,16,12,.48); animation: zd-in .15s ease-out; }
.zdialog-box { width: min(340px, 100%); background: #fffdf8; color: #241c18; border-radius: 16px; padding: 20px 18px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.zdialog-box p { margin: 0 0 16px; font-size: .98rem; line-height: 1.45; white-space: pre-line; }
.zdialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.zdialog-actions button { min-height: 44px; padding: 0 18px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; border: 1px solid #e3d9c8; background: #faf6ee; color: #241c18; }
.zdialog-actions .zd-yes { background: #1f7a3a; border-color: #1f7a3a; color: #fff; }
.zdialog-actions .zd-yes.danger { background: #c0392b; border-color: #c0392b; }
@keyframes zd-in { from { opacity: 0; } }
:root[data-theme="dark"] .zdialog-box { background: #1b201a; color: #ecebe6; }
:root[data-theme="dark"] .zdialog-actions .zd-no { background: #232a21; color: #ecebe6; border-color: #34402f; }

/* Price estimate on the sign-in sheet, so people see what they'll pay before giving a number */
.auth-cart { flex-wrap: wrap; }
.auth-estimate { flex-basis: 100%; border-top: 1px dashed var(--v3-vein, #e5ddcf); padding-top: 8px; margin-top: 2px; }
.auth-estimate .ae-row { display: flex; justify-content: space-between; gap: 10px; }
.auth-estimate .ae-row span:last-child { white-space: nowrap; }
.auth-estimate .ae-total { font-weight: 700; font-size: .95rem; margin-top: 2px; }
.auth-estimate small { display: block; opacity: .75; margin-top: 2px; }

/* Videos and Build a meal / Group order now sit after the menu (less crowding above the first dish) */
.menu-extras { margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--v3-vein, #e5ddcf); }
.menu-extras .quick-actions { margin-top: 16px; }

/* Ask Chef, painted poses (Nov 2026): one pose shows at a time; body breathes, tail sways */
.chef-art { position: absolute; left: 50%; bottom: -18px; width: 112px; height: 142px; translate: -50% 0; pointer-events: none; opacity: .9; filter: drop-shadow(0 0 5px rgba(214, 196, 255, .9)) drop-shadow(0 6px 10px rgba(31, 74, 44, .18)); transition: transform .35s ease; }
.chef-fab.face-left .chef-art { transform: scaleX(-1); }
.chef-aura { position: absolute; inset: 6% 2% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 212, 255, .75), rgba(226, 212, 255, 0)); animation: chef-aura 2.8s ease-in-out infinite; }
@keyframes chef-aura { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.chef-art .pose { position: absolute; inset: 0; opacity: 0; transform: scale(.9) translateY(4px); transform-origin: 50% 85%; transition: opacity .2s ease, transform .38s cubic-bezier(.3, 1.7, .5, 1); }
.chef-art .pose.on { opacity: 1; transform: none; }
.chef-art .breath { position: absolute; inset: 0; transform-origin: 50% 100%; animation: chef-breathe 3.2s ease-in-out infinite; }
@keyframes chef-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.018, 1.035); } }
.chef-art .pose img { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; height: 100%; width: auto; max-width: none; }
.chef-art .pose img.body { clip-path: inset(0 0 25.6% 0); }
.chef-art .pose img.tail { clip-path: inset(74% 0 0 0); transform-origin: 50% 74%; animation: chef-tail 2.6s ease-in-out infinite; }
@keyframes chef-tail { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(-9deg) translateX(3px); } }
.chef-art .tw { position: absolute; width: 10px; height: 10px; background: #F6CF5C; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: genie-spark 2.4s ease-in-out infinite; }
.chef-art .tw.t1 { left: 4%; top: 30%; }
.chef-art .tw.t2 { right: 2%; top: 12%; width: 8px; height: 8px; animation-delay: .8s; }
.chef-art .tw.t3 { right: 8%; bottom: 22%; width: 7px; height: 7px; animation-delay: 1.6s; }
/* Actions */
.chef-fab.waving .pose.p-wave.on .breath { animation: chef-rock .45s ease-in-out 5 alternate; }
@keyframes chef-rock { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.chef-fab.tasting .pose.p-taste.on .breath { animation: chef-yum .5s cubic-bezier(.3, 1.6, .5, 1) 3; }
@keyframes chef-yum { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-7px) scale(1.04, .97); } }
.chef-fab.winking .pose.p-wink.on .breath, .chef-fab.talk .pose.p-point.on .breath { animation: chef-pop .4s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes chef-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.chef-avatar .chef-avatar-img { position: absolute; left: 50%; top: -14px; width: 104px; max-width: none; translate: -50% 0; animation: chef-avatar-bob 3.2s ease-in-out infinite; }
@keyframes chef-avatar-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .chef-art *, .chef-avatar-img { animation: none !important; transition: none !important; } }

/* Gemini-inspired refresh (7 Nov 2026): direct-order promise + "Goes well with" in the dish view */
.direct-promise { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 16px; background: var(--leaf, #1F4A2C); color: #fff; box-shadow: 0 6px 18px rgba(31,74,44,.18); }
.direct-promise .dp-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #F2C14E; }
.direct-promise .dp-text { display: flex; flex-direction: column; line-height: 1.25; }
.direct-promise strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.direct-promise small { font-size: .82rem; opacity: .85; }
.d3-pairs { margin: 2px 0 14px; }
.d3-pairs h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff; }
.d3-pair-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.d3-pair { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; font: inherit; cursor: pointer; text-align: center; }
.d3-pair img, .d3-pair-ph { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.12); }
.d3-pair-name { font-size: .74rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.d3-pair-foot { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.d3-pair-foot i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #2F6B3F; font-size: .9rem; }
.d3-pair.added { border-color: #F2C14E; }
.d3-pair.added i { background: #B97A0E; }
.d3-pair:disabled { opacity: .5; cursor: default; }
.d3-viewer.has-pairs { justify-content: flex-start; overflow-y: auto; }
.d3-viewer.has-pairs .d3-stage { width: min(70vw, 360px); margin-top: 40px; }
.d3-viewer.has-pairs .d3-hint { margin-top: 30px; }
/* Ask Chef, playful poses (7 Nov 2026) */
.chef-fab.dancing .pose.p-dance.on .breath { animation: chef-rock .32s ease-in-out 8 alternate; }
.chef-fab.cheering .pose.p-cheer.on .breath, .chef-fab.flipping .pose.p-flip.on .breath { animation: chef-yum .55s cubic-bezier(.3, 1.6, .5, 1) 3; }
.chef-fab.juggling .pose.p-juggle.on .breath { animation: chef-juggle .7s ease-in-out 4; }
@keyframes chef-juggle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px) rotate(1.5deg); } }
.chef-fab.spinning .pose.p-spin.on .breath { animation: chef-rock .4s ease-in-out 5 alternate; }
.chef-fab.sleepy .pose.p-yawn.on .breath { animation: chef-sleepy 2.6s ease-in-out; }
@keyframes chef-sleepy { 0%, 100% { transform: none; } 40% { transform: rotate(-5deg) translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .chef-fab .pose.play .breath { animation: none !important; } }
/* Order-direct card with the chef flipping a dosa (7 Nov 2026). The clip is on black, so
   'screen' blending drops the black and leaves the glowing chef on the green card. */
.direct-promise { position: relative; overflow: hidden; min-height: 92px; padding-right: 120px; background: radial-gradient(120% 140% at 85% 50%, #2F6B3F 0%, #1F4A2C 60%); }
.direct-promise .dp-chef { position: absolute; right: -6px; top: calc(50% - 62px); width: 124px; height: 124px; pointer-events: none; }
.direct-promise .dp-chef img { position: relative; }
.direct-promise .dp-chef img { width: 100%; height: 100%; display: block; mix-blend-mode: screen; }
/* Ask Chef: the real dosa-flip clip, see-through (7 Nov 2026) */
.chef-art .pose img.anim { clip-path: none; }
.chef-fab.flipping .pose.p-flipanim.on .breath { animation: none; }
/* Ask Chef caught by a finger (7 Nov 2026) */
.chef-fab.held { cursor: grabbing; transition: none !important; }
.chef-fab.held .chef-float { scale: 1.12; rotate: -6deg; transition: scale .15s ease, rotate .15s ease; }
.chef-fab.held .chef-art { filter: drop-shadow(0 0 8px rgba(214, 196, 255, 1)) drop-shadow(0 16px 14px rgba(31, 74, 44, .28)); }
/* Savings promise up on the photo, next to the rating (7 Nov 2026) */
.hero-fee { display: inline-flex; align-items: center; background: #FBF0D9; color: #7A4F06; font-weight: 700; font-size: .82rem; padding: 6px 11px; border-radius: 999px; }
/* Closed kitchen reads as an invitation to pre-order, not a red stop sign (7 Nov 2026) */
html.design-v3 .hero-open.is-closed { color: #7A4F06; background: #FBF0D9; }
html.design-v3 .hero-open.is-closed i { background: #B97A0E; }
