/* Menu page layout: sticky header, trust chips, how-it-works, veg filter, cards, app footer.
   Cheap to paint: no blur, no infinite animations. */

/* ---------- sticky header ---------- */
.menu-top {
  position: sticky; top: -10px; z-index: 5; height: auto;
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  margin: -10px calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut-l));
  padding: 18px var(--gut-r) 10px var(--gut-l);
  background: linear-gradient(var(--bg) 70%, rgba(18, 19, 26, 0));
  transition: box-shadow .2s, background .2s;
}
.menu-top.stuck { background: var(--bg); box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .8); }
.mt-logo {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff8a3d, var(--accent)); box-shadow: 0 6px 14px -6px var(--accent);
}
.mt-logo svg { width: 22px; height: 22px; fill: #fff; }
.mt-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.menu-top .brand { margin: 0; font: 800 21px/1.05 var(--f-display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-name small { color: var(--muted); font: 600 11.5px/1.3 var(--f-ui); }
.mt-eta {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 700 12px/1 var(--f-ui);
}
.mt-eta svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; }

/* ---------- trust chips ---------- */
.trust {
  list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 14px calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut-l)); padding: 2px var(--gut-r) 4px var(--gut-l);
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gut-l) var(--gut-r);
}
.trust::-webkit-scrollbar { display: none; }
.trust li {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); font: 600 12.5px/1 var(--f-ui); color: var(--text);
}
.trust li span { font-size: 14px; }
.trust b { color: var(--gold); font-weight: 800; margin-right: -3px; }

/* ---------- how it works ---------- */
.how { margin-top: 18px; padding: 14px 12px 12px; border-radius: 20px; background: linear-gradient(160deg, #23170f, var(--surface)); border: 1px solid #3a2a1c; }
.how-h { margin: 0 2px 10px; font: 800 16px/1.2 var(--f-display); color: #ffd9ad; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: st; }
.how-steps li {
  position: relative; counter-increment: st; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px;
  padding: 10px 4px 8px; border-radius: 14px; background: rgba(255, 255, 255, .04);
}
.how-steps li::before {
  content: counter(st); position: absolute; top: 6px; left: 7px; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font: 800 10px/1 var(--f-ui);
}
.how-steps li + li::after {           /* little arrow between steps */
  content: '›'; position: absolute; left: -7px; top: 22px; color: #a5774a; font: 800 14px/1 var(--f-ui);
}
.how-steps i { font-style: normal; font-size: 24px; line-height: 1.1; }
.how-steps b { font: 700 11.5px/1.2 var(--f-ui); }
.how-steps small { color: var(--muted); font: 500 10px/1.2 var(--f-ui); }

/* ---------- menu heading + veg filter ---------- */
.menu-head { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 12px; }
.menu-head .sec-h { margin: 0; }
.vfilter { display: flex; gap: 8px; }
.vfilter button {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 700 13px/1 var(--f-ui);
}
.vfilter button[aria-checked="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Indian veg / non-veg mark: square with a dot (green) or triangle (brown-red) */
.vmark { flex: none; display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1.6px solid; border-radius: 3px; background: #fff; }
.vmark::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vmark.veg { color: #1e9a46; }
.vmark.nonveg { color: #a5311a; }
.vmark.nonveg::after { width: 0; height: 0; border-radius: 0; background: none; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 6px solid currentColor; }

/* ---------- pizza cards ---------- */
.card { padding: 8px 10px 12px; border-radius: 22px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); gap: 3px; }
.card .pic { position: relative; display: block; }
.card .pic canvas { width: 100%; aspect-ratio: 1; display: block; }
.card .pic .vmark { position: absolute; top: 4px; left: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.card .incart {
  position: absolute; top: 2px; right: 0; padding: 3px 8px; border-radius: 999px; opacity: 0; scale: .6;
  background: var(--accent); color: #fff; font: 800 10.5px/1.2 var(--f-ui); transition: opacity .2s, scale .25s cubic-bezier(.3, 1.6, .5, 1);
}
.card .incart.on { opacity: 1; scale: 1; }
.card p { min-height: 3em; }
.card .row { margin-top: 8px; align-items: flex-end; }
.card .from { display: flex; flex-direction: column; line-height: 1.1; }
.card .from b { color: var(--gold); font: 800 16px/1.1 var(--f-ui); }
.card .from small { color: var(--muted); font: 500 10.5px/1.2 var(--f-ui); }
.card .add {
  width: auto; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font: 800 12.5px/1 var(--f-ui);
  box-shadow: 0 6px 14px -6px var(--accent);
}
.card[hidden] { display: none; }

/* ---------- app link + footer ---------- */
.menu-app {
  margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, #2b1a10, #3a1b10); border: 1px solid #4a2a18;
}
.ma-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #ff8a3d, var(--accent)); }
.ma-ico svg { width: 24px; height: 24px; fill: #fff; }
.ma-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ma-txt b { font: 700 14px/1.2 var(--f-ui); }
.ma-txt small { color: #cfb39a; font: 500 11.5px/1.3 var(--f-ui); }
.ma-go { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 800 12px/1 var(--f-ui); }
.menu-foot { margin: 18px 0 0; text-align: center; color: var(--muted); font: 500 11.5px/1.4 var(--f-ui); }

/* small phones */
@media (max-width: 350px) {
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps li + li::after { display: none; }
  .mt-name small { display: none; }
}
