{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "menu-photo-rail",
  "type": "registry:component",
  "title": "Menu Photo Rail",
  "description": "A full menu of illustrated photo cards with a sticky category rail that follows the section in view, scrolls smoothly on click and keeps the active chip centered.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "menus",
    "menu",
    "scroll-spy",
    "sticky",
    "restaurant",
    "ordering",
    "categories"
  ],
  "docs": "https://hyperblur.dev/effects/menu-photo-rail",
  "files": [
    {
      "path": "registry/hyperblur/menu-photo-rail.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/menu-photo-rail.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport type MenuPhotoRailArt =\n  | \"burger\"\n  | \"chicken-burger\"\n  | \"veggie-burger\"\n  | \"fries\"\n  | \"loaded-fries\"\n  | \"salad\"\n  | \"pizza\"\n  | \"pepperoni\"\n  | \"bowl\"\n  | \"soda\"\n  | \"shake\"\n  | \"coffee\"\n  | \"cake\"\n  | \"chocolate-cake\";\n\nexport interface MenuPhotoRailItem {\n  id: string;\n  name: string;\n  description: string;\n  price: number;\n  art: MenuPhotoRailArt;\n  tint?: string;\n  tag?: string;\n}\n\nexport interface MenuPhotoRailSection {\n  id: string;\n  label: string;\n  note?: string;\n  items: MenuPhotoRailItem[];\n}\n\nexport interface MenuPhotoRailLabels {\n  eyebrow: string;\n  title: string;\n  subtitle: string;\n  rail: string;\n  add: string;\n  added: string;\n  count: string;\n  countOne: string;\n  open: string;\n}\n\nexport interface MenuPhotoRailProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  sections?: MenuPhotoRailSection[];\n  currency?: string;\n  locale?: string;\n  onAdd?: (item: MenuPhotoRailItem, section: MenuPhotoRailSection) => void;\n  onItemOpen?: (item: MenuPhotoRailItem, section: MenuPhotoRailSection) => void;\n  stickyTop?: number;\n  labels?: Partial<MenuPhotoRailLabels>;\n  accent?: string;\n  appearance?: \"dark\" | \"light\";\n}\n\nconst defaultLabels: MenuPhotoRailLabels = {\n  eyebrow: \"Corner Kitchen · Order for pickup or delivery\",\n  title: \"The whole menu, one scroll away\",\n  subtitle: \"Smashed to order, fries cut every morning, shakes spun with real ice cream.\",\n  rail: \"Menu sections\",\n  add: \"Add\",\n  added: \"Added\",\n  count: \"{count} items\",\n  countOne: \"1 item\",\n  open: \"View details for\",\n};\n\nconst defaultSections: MenuPhotoRailSection[] = [\n  {\n    id: \"burgers\",\n    label: \"Burgers\",\n    note: \"Potato bun, griddled to order\",\n    items: [\n      { id: \"smash-double\", name: \"Smash Double\", description: \"Two 3 oz patties, American cheese, pickles, shaved onion, house sauce.\", price: 12.5, art: \"burger\", tint: \"#ff8a3d\", tag: \"Popular\" },\n      { id: \"crispy-chicken\", name: \"Crispy Chicken\", description: \"Buttermilk thigh, hot honey glaze, cabbage slaw, dill pickles.\", price: 11, art: \"chicken-burger\", tint: \"#ffc23d\", tag: \"Spicy\" },\n      { id: \"garden-stack\", name: \"Garden Stack\", description: \"Black bean and beet patty, avocado, tomato, chipotle mayo.\", price: 12, art: \"veggie-burger\", tint: \"#5fd38d\", tag: \"Vegan\" },\n    ],\n  },\n  {\n    id: \"sides\",\n    label: \"Sides\",\n    note: \"Cut fresh every morning\",\n    items: [\n      { id: \"shoestring\", name: \"Shoestring Fries\", description: \"Twice fried, sea salt and a side of garlic aioli.\", price: 4.5, art: \"fries\", tint: \"#ffd34d\" },\n      { id: \"loaded\", name: \"Loaded Fries\", description: \"Cheddar sauce, crispy shallots, scallions, pickled jalapeño.\", price: 7.5, art: \"loaded-fries\", tint: \"#ffb547\", tag: \"New\" },\n      { id: \"kale-caesar\", name: \"Kale Caesar\", description: \"Lacinato kale, parmesan, sourdough crumbs, lemon dressing.\", price: 8, art: \"salad\", tint: \"#7bd88f\" },\n    ],\n  },\n  {\n    id: \"pizza\",\n    label: \"Pizza & bowls\",\n    note: \"12 inch, naturally leavened\",\n    items: [\n      { id: \"margherita\", name: \"Margherita\", description: \"San Marzano tomato, fior di latte, basil, olive oil.\", price: 14, art: \"pizza\", tint: \"#ff6b4a\" },\n      { id: \"pepperoni\", name: \"Hot Pepperoni\", description: \"Cup and char pepperoni, mozzarella, chili honey.\", price: 16, art: \"pepperoni\", tint: \"#ff5d4d\", tag: \"Popular\" },\n      { id: \"sesame-bowl\", name: \"Sesame Chicken Bowl\", description: \"Jasmine rice, glazed chicken, soft egg, cucumber, sesame.\", price: 13.5, art: \"bowl\", tint: \"#ffb86b\" },\n    ],\n  },\n  {\n    id: \"drinks\",\n    label: \"Drinks\",\n    note: \"Made at the counter\",\n    items: [\n      { id: \"hibiscus\", name: \"Hibiscus Lemonade\", description: \"Fresh lemon, hibiscus syrup, sparkling water over ice.\", price: 4, art: \"soda\", tint: \"#ff5d8f\" },\n      { id: \"caramel-shake\", name: \"Salted Caramel Shake\", description: \"Vanilla custard, burnt caramel, whipped cream, cherry.\", price: 6.5, art: \"shake\", tint: \"#ffa3c2\" },\n      { id: \"flat-white\", name: \"Oat Flat White\", description: \"Double ristretto, steamed oat milk, 8 oz.\", price: 4.75, art: \"coffee\", tint: \"#c89566\" },\n    ],\n  },\n  {\n    id: \"desserts\",\n    label: \"Desserts\",\n    items: [\n      { id: \"shortcake\", name: \"Strawberry Shortcake\", description: \"Buttermilk biscuit, macerated berries, vanilla cream.\", price: 7, art: \"cake\", tint: \"#ff7a9a\" },\n      { id: \"chocolate-cake\", name: \"Double Chocolate Cake\", description: \"Dark chocolate layers, fudge frosting, flaky salt.\", price: 7.5, art: \"chocolate-cake\", tint: \"#a8714a\" },\n    ],\n  },\n];\n\nconst css = `\n.hb-oa1 {\n  --hb-oa1-accent: #ff6a3d;\n  --hb-oa1-top: 0px;\n  --hb-oa1-bg: #0a0a0a;\n  --hb-oa1-surface: #111111;\n  --hb-oa1-raise: #171717;\n  --hb-oa1-line: rgba(255, 255, 255, 0.08);\n  --hb-oa1-text: #ededed;\n  --hb-oa1-muted: #8f8f8f;\n  --hb-oa1-glass: rgba(10, 10, 10, 0.78);\n  --hb-oa1-art: #151515;\n  --hb-oa1-mix: 34%;\n  box-sizing: border-box;\n  width: 100%;\n  container-type: inline-size;\n  background: var(--hb-oa1-bg);\n  color: var(--hb-oa1-text);\n  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);\n  -webkit-font-smoothing: antialiased;\n}\n.hb-oa1[data-appearance=\"light\"] {\n  --hb-oa1-bg: #f7f5ef;\n  --hb-oa1-surface: #ffffff;\n  --hb-oa1-raise: #f1ede4;\n  --hb-oa1-line: rgba(20, 16, 10, 0.1);\n  --hb-oa1-text: #17140f;\n  --hb-oa1-muted: #6f685e;\n  --hb-oa1-glass: rgba(247, 245, 239, 0.84);\n  --hb-oa1-art: #fbf8f2;\n  --hb-oa1-mix: 46%;\n}\n.hb-oa1 *, .hb-oa1 *::before, .hb-oa1 *::after { box-sizing: border-box; }\n.hb-oa1-wrap { max-width: 1120px; margin: 0 auto; padding: 72px 20px 96px; }\n.hb-oa1-head { display: grid; gap: 12px; margin-bottom: 28px; }\n.hb-oa1-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--hb-oa1-muted); font-size: 13px; font-weight: 500; }\n.hb-oa1-eyebrow::before { content: \"\"; width: 7px; height: 7px; border-radius: 50%; background: var(--hb-oa1-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-oa1-accent) 22%, transparent); }\n.hb-oa1-title { margin: 0; max-width: 640px; font-family: var(--font-grotesk, inherit); font-size: clamp(30px, 5.4cqw, 52px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }\n.hb-oa1-sub { margin: 0; max-width: 520px; color: var(--hb-oa1-muted); font-size: 15.5px; line-height: 1.6; }\n.hb-oa1-rail { position: sticky; top: var(--hb-oa1-top); z-index: 5; margin: 0 -20px; padding: 10px 20px; background: var(--hb-oa1-glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--hb-oa1-line); }\n.hb-oa1-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }\n.hb-oa1-scroll::-webkit-scrollbar { display: none; }\n.hb-oa1-track { position: relative; display: inline-flex; gap: 4px; padding: 2px; min-width: 100%; }\n.hb-oa1-pill { position: absolute; top: 2px; left: 0; height: calc(100% - 4px); width: 0; border-radius: 999px; background: var(--hb-oa1-text); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }\n.hb-oa1-chip { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 16px; border-radius: 999px; color: var(--hb-oa1-muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.3s ease; outline: none; }\n.hb-oa1-chip:hover { color: var(--hb-oa1-text); }\n.hb-oa1-chip:focus-visible { box-shadow: 0 0 0 2px var(--hb-oa1-accent); }\n.hb-oa1-chip[aria-current=\"true\"] { color: var(--hb-oa1-bg); }\n.hb-oa1-num { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hb-oa1-line); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-oa1-chip[aria-current=\"true\"] .hb-oa1-num { background: var(--hb-oa1-accent); color: #fff; }\n.hb-oa1-section { padding-top: 36px; scroll-margin-top: calc(var(--hb-oa1-top) + 72px); }\n.hb-oa1-shead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }\n.hb-oa1-stitle { margin: 0; font-family: var(--font-grotesk, inherit); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }\n.hb-oa1-snote { margin: 0; color: var(--hb-oa1-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.hb-oa1-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }\n.hb-oa1-card { position: relative; min-width: 0; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 10px; border-radius: 20px; background: var(--hb-oa1-surface); border: 1px solid var(--hb-oa1-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.35s ease; animation: hb-oa1-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--hb-oa1-i) * 60ms); }\n.hb-oa1-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--hb-oa1-accent) 40%, var(--hb-oa1-line)); box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.6); }\n.hb-oa1[data-appearance=\"light\"] .hb-oa1-card:hover { box-shadow: 0 22px 44px -28px rgba(70, 45, 15, 0.35); }\n@keyframes hb-oa1-rise { from { opacity: 0; transform: translateY(14px); } }\n.hb-oa1-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--hb-oa1-tint) var(--hb-oa1-mix), transparent) 0%, transparent 72%), var(--hb-oa1-art); }\n.hb-oa1-media::after { content: \"\"; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hb-oa1-line); pointer-events: none; }\n.hb-oa1-media svg { width: 92%; height: auto; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.28)); }\n.hb-oa1-card:hover .hb-oa1-media svg { transform: translateY(-4px) rotate(-4deg) scale(1.04); }\n.hb-oa1-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 4px 4px 2px 0; }\n.hb-oa1-row { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.hb-oa1-name { margin: 0; min-width: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.hb-oa1-open { all: unset; cursor: pointer; }\n.hb-oa1-open::after { content: \"\"; position: absolute; inset: 0; border-radius: 20px; }\n.hb-oa1-open:focus-visible::after { box-shadow: 0 0 0 2px var(--hb-oa1-accent); }\n.hb-oa1-tag { flex: none; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--hb-oa1-tint) 18%, transparent); color: color-mix(in srgb, var(--hb-oa1-tint) 80%, var(--hb-oa1-text)); font-size: 11px; font-weight: 600; letter-spacing: 0.01em; }\n.hb-oa1-desc { margin: 0; color: var(--hb-oa1-muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n.hb-oa1-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }\n.hb-oa1-price { font-family: var(--font-grotesk, inherit); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-oa1-add { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px; border: 1px solid var(--hb-oa1-line); border-radius: 999px; background: var(--hb-oa1-raise); color: var(--hb-oa1-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease; }\n.hb-oa1-add:hover { background: var(--hb-oa1-accent); border-color: var(--hb-oa1-accent); color: #fff; }\n.hb-oa1-add:active { transform: scale(0.95); }\n.hb-oa1-add:focus-visible { outline: 2px solid var(--hb-oa1-accent); outline-offset: 2px; }\n.hb-oa1-add[data-added=\"true\"] { background: color-mix(in srgb, var(--hb-oa1-accent) 16%, var(--hb-oa1-raise)); border-color: color-mix(in srgb, var(--hb-oa1-accent) 55%, transparent); }\n.hb-oa1-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--hb-oa1-accent); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; animation: hb-oa1-pop 0.45s cubic-bezier(0.3, 1.7, 0.5, 1); }\n.hb-oa1-add:hover .hb-oa1-badge { background: #fff; color: var(--hb-oa1-accent); }\n@keyframes hb-oa1-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }\n.hb-oa1-steam { animation: hb-oa1-steam 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }\n.hb-oa1-steam:nth-of-type(2) { animation-delay: 0.9s; }\n@keyframes hb-oa1-steam { 0% { opacity: 0; transform: translateY(6px) scaleY(0.8); } 40% { opacity: 0.7; } 100% { opacity: 0; transform: translateY(-8px) scaleY(1.1); } }\n.hb-oa1-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n@container (min-width: 460px) {\n  .hb-oa1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }\n  .hb-oa1-card { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px; }\n  .hb-oa1-media { aspect-ratio: 16 / 11; }\n  .hb-oa1-media svg { width: 70%; }\n  .hb-oa1-body { padding: 8px 8px 6px; }\n}\n@container (min-width: 760px) {\n  .hb-oa1-wrap { padding: 96px 32px 120px; }\n  .hb-oa1-rail { margin: 0 -32px; padding: 12px 32px; }\n  .hb-oa1-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }\n  .hb-oa1-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; column-gap: 40px; }\n  .hb-oa1-head .hb-oa1-eyebrow { grid-column: 1 / -1; }\n  .hb-oa1-sub { justify-self: end; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-oa1-card, .hb-oa1-badge, .hb-oa1-steam { animation: none; }\n  .hb-oa1-card, .hb-oa1-pill, .hb-oa1-media svg, .hb-oa1-add { transition: none; }\n  .hb-oa1-card:hover, .hb-oa1-card:hover .hb-oa1-media svg { transform: none; }\n}\n`;\n\nconst seeds: [number, number, number][] = [\n  [58, 38, -20], [70, 32, 10], [84, 30, -8], [98, 33, 18], [110, 39, -14], [64, 46, 24], [78, 41, 0], [92, 42, -24], [104, 47, 12],\n];\n\nfunction Burger({ uid, kind }: { uid: string; kind: \"beef\" | \"chicken\" | \"veggie\" }) {\n  const patty = kind === \"chicken\" ? [\"#f2b24c\", \"#c9761f\"] : kind === \"veggie\" ? [\"#7d3b4c\", \"#4a1f2b\"] : [\"#7a3d1f\", \"#3d1c0c\"];\n  return (\n    <svg viewBox=\"0 0 160 120\" aria-hidden=\"true\">\n      <defs>\n        <linearGradient id={`${uid}t`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor=\"#ffbf61\" />\n          <stop offset=\"1\" stopColor=\"#d1772b\" />\n        </linearGradient>\n        <linearGradient id={`${uid}b`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor=\"#f0a24d\" />\n          <stop offset=\"1\" stopColor=\"#b9621f\" />\n        </linearGradient>\n        <linearGradient id={`${uid}p`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor={patty[0]} />\n          <stop offset=\"1\" stopColor={patty[1]} />\n        </linearGradient>\n      </defs>\n      <ellipse cx=\"80\" cy=\"106\" rx=\"56\" ry=\"6\" fill=\"rgba(0,0,0,0.28)\" />\n      <path d=\"M30 86 H130 a6 6 0 0 1 -5 10 C110 102 50 102 35 96 a6 6 0 0 1 -5 -10 Z\" fill={`url(#${uid}b)`} />\n      <rect x=\"26\" y=\"70\" width=\"108\" height=\"17\" rx=\"8.5\" fill={`url(#${uid}p)`} />\n      {kind === \"chicken\" ? (\n        <path d=\"M30 74 q6 -4 12 0 t12 0 t12 0 t12 0 t12 0 t12 0 t12 0 t12 0\" stroke=\"#ffd98a\" strokeWidth=\"2\" fill=\"none\" opacity=\"0.7\" />\n      ) : (\n        <path d=\"M30 80 h100\" stroke=\"rgba(255,255,255,0.12)\" strokeWidth=\"2\" strokeDasharray=\"6 5\" />\n      )}\n      {kind === \"beef\" ? (\n        <path d=\"M28 68 H132 L126 74 L120 84 L112 74 L100 80 L90 72 L76 82 L66 72 L52 80 L42 72 L34 76 Z\" fill=\"#ffc63a\" />\n      ) : kind === \"chicken\" ? (\n        <path d=\"M30 66 q10 -6 20 0 t20 0 t20 0 t20 0 t20 0 v6 H30 Z\" fill=\"#e9f0d9\" />\n      ) : (\n        <path d=\"M34 64 C50 58 66 70 80 64 S112 58 126 66 L120 72 H40 Z\" fill=\"#bfe08a\" />\n      )}\n      <path d=\"M24 64 q8 -8 16 0 t16 0 t16 0 t16 0 t16 0 t16 0 t16 0 v5 H24 Z\" fill=\"#5cc35a\" />\n      <rect x=\"36\" y=\"56\" width=\"88\" height=\"7\" rx=\"3.5\" fill=\"#e6493a\" />\n      <path d=\"M26 58 C26 22 134 22 134 58 Z\" fill={`url(#${uid}t)`} />\n      <path d=\"M40 44 C48 32 66 27 80 27\" stroke=\"rgba(255,255,255,0.35)\" strokeWidth=\"4\" strokeLinecap=\"round\" fill=\"none\" />\n      {seeds.map(([x, y, r], i) => (\n        <ellipse key={i} cx={x} cy={y} rx=\"2.6\" ry=\"1.4\" transform={`rotate(${r} ${x} ${y})`} fill=\"#fff4d6\" />\n      ))}\n    </svg>\n  );\n}\n\nfunction Fries({ uid, loaded }: { uid: string; loaded: boolean }) {\n  const sticks = [0, 1, 2, 3, 4, 5, 6, 7, 8];\n  return (\n    <svg viewBox=\"0 0 160 120\" aria-hidden=\"true\">\n      <defs>\n        <linearGradient id={`${uid}f`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor=\"#ffe08a\" />\n          <stop offset=\"1\" stopColor=\"#f1a93a\" />\n        </linearGradient>\n        <linearGradient id={`${uid}c`} x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\n          <stop offset=\"0\" stopColor=\"#ff5a46\" />\n          <stop offset=\"1\" stopColor=\"#c62a22\" />\n        </linearGradient>\n      </defs>\n      <ellipse cx=\"80\" cy=\"108\" rx=\"40\" ry=\"5\" fill=\"rgba(0,0,0,0.28)\" />\n      {sticks.map((i) => {\n        const h = 36 + ((i * 37 + 11) % 22);\n        const x = 52 + i * 6.5;\n        const r = ((i * 29) % 14) - 7;\n        return <rect key={i} x={x} y={62 - h} width=\"7\" height={h + 10} rx=\"2\" fill={`url(#${uid}f)`} transform={`rotate(${r} ${x + 3.5} 62)`} />;\n      })}\n      {loaded ? (\n        <g>\n          <path d=\"M50 44 C58 50 66 40 74 46 S90 52 98 44 S108 50 112 46 L110 58 H50 Z\" fill=\"#ffb21f\" opacity=\"0.95\" />\n          <circle cx=\"62\" cy=\"44\" r=\"2\" fill=\"#4caf50\" />\n          <circle cx=\"86\" cy=\"42\" r=\"2\" fill=\"#4caf50\" />\n          <circle cx=\"102\" cy=\"45\" r=\"2\" fill=\"#4caf50\" />\n          <circle cx=\"74\" cy=\"40\" r=\"2.4\" fill=\"#9b5524\" />\n        </g>\n      ) : null}\n      <path d=\"M44 56 L116 56 L106 106 L54 106 Z\" fill={`url(#${uid}c)`} />\n      <path d=\"M44 56 Q80 72 116 56 L114 64 Q80 80 46 64 Z\" fill=\"rgba(0,0,0,0.18)\" />\n      <circle cx=\"80\" cy=\"86\" r=\"9\" fill=\"none\" stroke=\"#fff\" strokeWidth=\"2.5\" opacity=\"0.85\" />\n      <path d=\"M76 86 l3 3 l5 -6\" stroke=\"#fff\" strokeWidth=\"2.5\" fill=\"none\" strokeLinecap=\"round\" strokeLinejoin=\"round\" opacity=\"0.85\" />\n    </svg>\n  );\n}\n\nfunction Bowl({ uid, salad }: { uid: string; salad: boolean }) {\n  return (\n    <svg viewBox=\"0 0 160 120\" aria-hidden=\"true\">\n      <defs>\n        <linearGradient id={`${uid}w`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor={salad ? \"#f3efe6\" : \"#2b3440\"} />\n          <stop offset=\"1\" stopColor={salad ? \"#cfc7b8\" : \"#141a22\"} />\n        </linearGradient>\n      </defs>\n      <ellipse cx=\"80\" cy=\"108\" rx=\"48\" ry=\"5\" fill=\"rgba(0,0,0,0.28)\" />\n      {salad ? (\n        <g>\n          <circle cx=\"56\" cy=\"58\" r=\"14\" fill=\"#3f9a47\" />\n          <circle cx=\"74\" cy=\"50\" r=\"16\" fill=\"#57b85a\" />\n          <circle cx=\"96\" cy=\"52\" r=\"15\" fill=\"#3c8f43\" />\n          <circle cx=\"110\" cy=\"60\" r=\"11\" fill=\"#6cc865\" />\n          <rect x=\"66\" y=\"50\" width=\"12\" height=\"9\" rx=\"2\" fill=\"#e8c27a\" transform=\"rotate(-14 72 54)\" />\n          <rect x=\"90\" y=\"46\" width=\"11\" height=\"8\" rx=\"2\" fill=\"#d9ad5e\" transform=\"rotate(18 95 50)\" />\n          <path d=\"M60 52 l10 -4 M84 44 l12 2 M102 56 l8 -6\" stroke=\"#f6f2e4\" strokeWidth=\"3\" strokeLinecap=\"round\" />\n        </g>\n      ) : (\n        <g>\n          <path d=\"M40 62 C46 46 70 42 80 46 C92 40 116 44 120 62 Z\" fill=\"#f4efe2\" />\n          <path d=\"M58 58 C62 46 78 44 84 52 C80 58 66 62 58 58 Z\" fill=\"#c8622a\" />\n          <path d=\"M78 56 C84 44 100 44 106 54 C100 60 86 62 78 56 Z\" fill=\"#d97a37\" />\n          <ellipse cx=\"98\" cy=\"48\" rx=\"11\" ry=\"8\" fill=\"#fffaf0\" />\n          <circle cx=\"98\" cy=\"48\" r=\"5\" fill=\"#ffb21f\" />\n          <circle cx=\"54\" cy=\"52\" r=\"5\" fill=\"#7cc26d\" />\n          <circle cx=\"64\" cy=\"47\" r=\"4\" fill=\"#8fd17f\" />\n          <path d=\"M70 50 l3 -1 M88 46 l3 1 M76 44 l2 2 M110 56 l3 -1\" stroke=\"#fff\" strokeWidth=\"1.6\" strokeLinecap=\"round\" />\n        </g>\n      )}\n      <path d=\"M26 62 H134 C134 86 112 104 80 104 C48 104 26 86 26 62 Z\" fill={`url(#${uid}w)`} />\n      <ellipse cx=\"80\" cy=\"62\" rx=\"54\" ry=\"4\" fill={salad ? \"#fffaf0\" : \"#3a4552\"} />\n      <path d=\"M38 72 C44 88 58 96 72 98\" stroke=\"rgba(255,255,255,0.25)\" strokeWidth=\"3\" fill=\"none\" strokeLinecap=\"round\" />\n    </svg>\n  );\n}\n\nfunction Pizza({ uid, pepperoni }: { uid: string; pepperoni: boolean }) {\n  const dots: [number, number][] = [[64, 44], [96, 46], [80, 62], [58, 74], [100, 76], [78, 86], [112, 60], [48, 58]];\n  return (\n    <svg viewBox=\"0 0 160 120\" aria-hidden=\"true\">\n      <defs>\n        <radialGradient id={`${uid}z`} cx=\"0.5\" cy=\"0.45\" r=\"0.6\">\n          <stop offset=\"0\" stopColor=\"#ffe4a0\" />\n          <stop offset=\"1\" stopColor=\"#f2bb5a\" />\n        </radialGradient>\n      </defs>\n      <ellipse cx=\"80\" cy=\"110\" rx=\"50\" ry=\"5\" fill=\"rgba(0,0,0,0.28)\" />\n      <circle cx=\"80\" cy=\"64\" r=\"46\" fill=\"#d98f3e\" />\n      <circle cx=\"80\" cy=\"64\" r=\"46\" fill=\"none\" stroke=\"#b86d26\" strokeWidth=\"2\" strokeDasharray=\"2 6\" />\n      <circle cx=\"80\" cy=\"64\" r=\"39\" fill=\"#d8432c\" />\n      <path d=\"M48 56 C52 36 76 28 92 34 C110 40 120 58 112 76 C104 96 76 100 60 90 C44 80 44 66 48 56 Z\" fill={`url(#${uid}z)`} />\n      {pepperoni\n        ? dots.map(([x, y], i) => (\n            <g key={i}>\n              <circle cx={x} cy={y} r=\"7\" fill=\"#b9302a\" />\n              <circle cx={x - 1.5} cy={y - 1.5} r=\"2.6\" fill=\"rgba(255,255,255,0.18)\" />\n            </g>\n          ))\n        : dots.slice(0, 5).map(([x, y], i) => (\n            <g key={i}>\n              <circle cx={x} cy={y} r=\"6.5\" fill=\"#fff6e2\" />\n              <ellipse cx={x + 7} cy={y - 6} rx=\"5\" ry=\"2.6\" fill=\"#3e9b48\" transform={`rotate(${-30 + i * 20} ${x + 7} ${y - 6})`} />\n            </g>\n          ))}\n      <path d=\"M80 18 V110 M34 64 H126 M47 31 L113 97 M113 31 L47 97\" stroke=\"rgba(80,30,10,0.22)\" strokeWidth=\"1.4\" />\n    </svg>\n  );\n}\n\nfunction Drink({ uid, kind }: { uid: string; kind: \"soda\" | \"shake\" }) {\n  const shake = kind === \"shake\";\n  return (\n    <svg viewBox=\"0 0 160 120\" aria-hidden=\"true\">\n      <defs>\n        <linearGradient id={`${uid}l`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor={shake ? \"#ffc4d6\" : \"#ff7aa2\"} />\n          <stop offset=\"1\" stopColor={shake ? \"#f28bb0\" : \"#d8285e\"} />\n        </linearGradient>\n      </defs>\n      <ellipse cx=\"80\" cy=\"110\" rx=\"26\" ry=\"4\" fill=\"rgba(0,0,0,0.28)\" />\n      <path d={shake ? \"M100 38 L116 6\" : \"M92 46 L112 10\"} stroke=\"#ffd34d\" strokeWidth=\"5\" strokeLinecap=\"round\" />\n      <path d={shake ? \"M100 38 L116 6\" : \"M92 46 L112 10\"} stroke=\"#ff5a46\" strokeWidth=\"5\" strokeLinecap=\"round\" strokeDasharray=\"5 6\" />\n      <path d=\"M56 40 H104 L97 106 H63 Z\" fill=\"rgba(255,255,255,0.1)\" stroke=\"rgba(255,255,255,0.45)\" strokeWidth=\"1.6\" />\n      <path d={shake ? \"M58 52 H102 L96.6 104 H63.4 Z\" : \"M58.5 56 H101.5 L96.6 104 H63.4 Z\"} fill={`url(#${uid}l)`} />\n      {shake ? (\n        <g>\n          <circle cx=\"66\" cy=\"44\" r=\"10\" fill=\"#fffaf2\" />\n          <circle cx=\"80\" cy=\"38\" r=\"13\" fill=\"#fffaf2\" />\n          <circle cx=\"94\" cy=\"44\" r=\"10\" fill=\"#fff4e6\" />\n          <circle cx=\"80\" cy=\"26\" r=\"6\" fill=\"#e0263f\" />\n          <path d=\"M80 20 Q84 10 92 8\" stroke=\"#3c7a3a\" strokeWidth=\"1.8\" fill=\"none\" />\n          <path d=\"M68 66 l20 -6 M66 80 l26 -6\" stroke=\"#b46a3c\" strokeWidth=\"2.4\" strokeLinecap=\"round\" opacity=\"0.6\" />\n        </g>\n      ) : (\n        <g>\n          <rect x=\"66\" y=\"62\" width=\"13\" height=\"13\" rx=\"3\" fill=\"rgba(255,255,255,0.45)\" transform=\"rotate(14 72 68)\" />\n          <rect x=\"82\" y=\"72\" width=\"12\" height=\"12\" rx=\"3\" fill=\"rgba(255,255,255,0.38)\" transform=\"rotate(-12 88 78)\" />\n          <circle cx=\"70\" cy=\"92\" r=\"1.6\" fill=\"rgba(255,255,255,0.7)\" />\n          <circle cx=\"88\" cy=\"96\" r=\"1.2\" fill=\"rgba(255,255,255,0.7)\" />\n          <circle cx=\"78\" cy=\"86\" r=\"1\" fill=\"rgba(255,255,255,0.7)\" />\n          <circle cx=\"58\" cy=\"42\" r=\"12\" fill=\"#ffe14d\" />\n          <circle cx=\"58\" cy=\"42\" r=\"9\" fill=\"#fff2a8\" />\n          <path d=\"M58 33 V51 M49 42 H67 M52 36 L64 48 M64 36 L52 48\" stroke=\"#ffe14d\" strokeWidth=\"1.2\" />\n        </g>\n      )}\n      <path d=\"M62 48 L66 100\" stroke=\"rgba(255,255,255,0.35)\" strokeWidth=\"3\" strokeLinecap=\"round\" />\n    </svg>\n  );\n}\n\nfunction Coffee({ uid }: { uid: string }) {\n  return (\n    <svg viewBox=\"0 0 160 120\" aria-hidden=\"true\">\n      <defs>\n        <linearGradient id={`${uid}k`} x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n          <stop offset=\"0\" stopColor=\"#ffffff\" />\n          <stop offset=\"1\" stopColor=\"#d9d3c8\" />\n        </linearGradient>\n      </defs>\n      <path className=\"hb-oa1-steam\" d=\"M70 36 C64 28 76 22 70 12\" stroke=\"rgba(255,255,255,0.55)\" strokeWidth=\"3\" fill=\"none\" strokeLinecap=\"round\" />\n      <path className=\"hb-oa1-steam\" d=\"M88 36 C82 28 94 22 88 12\" stroke=\"rgba(255,255,255,0.55)\" strokeWidth=\"3\" fill=\"none\" strokeLinecap=\"round\" />\n      <ellipse cx=\"80\" cy=\"102\" rx=\"52\" ry=\"9\" fill=\"#e9e3d8\" />\n      <ellipse cx=\"80\" cy=\"100\" rx=\"40\" ry=\"6\" fill=\"#d6cfc2\" />\n      <path d=\"M112 58 C128 56 130 80 108 82\" stroke=\"#e2dcd1\" strokeWidth=\"7\" fill=\"none\" />\n      <path d=\"M46 48 H114 V70 C114 88 100 98 80 98 C60 98 46 88 46 70 Z\" fill={`url(#${uid}k)`} />\n      <ellipse cx=\"80\" cy=\"48\" rx=\"34\" ry=\"7\" fill=\"#f5f1ea\" />\n      <ellipse cx=\"80\" cy=\"49\" rx=\"30\" ry=\"5.4\" fill=\"#8a5330\" />\n      <path d=\"M80 53 C72 47 74 44 78 45 C79 45.5 80 46.5 80 47 C80 46.5 81 45.5 82 45 C86 44 88 47 80 53 Z\" fill=\"#e8c9a6\" />\n    </svg>\n  );\n}\n\nfunction Cake({ uid, chocolate }: { uid: string; chocolate: boolean }) {\n  const sponge = chocolate ? [\"#7a4426\", \"#4e2814\"] : [\"#ffe2a8\", \"#f2c06e\"];\n  const cream = chocolate ? \"#3a1d0e\" : \"#fffaf0\";\n  return (\n    <svg viewBox=\"0 0 160 120\" aria-hidden=\"true\">\n      <defs>\n        <linearGradient id={`${uid}s`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor={sponge[0]} />\n          <stop offset=\"1\" stopColor={sponge[1]} />\n        </linearGradient>\n      </defs>\n      <ellipse cx=\"80\" cy=\"106\" rx=\"54\" ry=\"7\" fill=\"rgba(0,0,0,0.28)\" />\n      <ellipse cx=\"80\" cy=\"102\" rx=\"54\" ry=\"8\" fill=\"#f2efe8\" />\n      <path d=\"M36 98 V58 L104 46 L124 58 V98 Z\" fill={`url(#${uid}s)`} />\n      <path d=\"M36 70 H124 V78 H36 Z\" fill={cream} />\n      <path d=\"M36 86 H124 V90 H36 Z\" fill={chocolate ? \"#2e160a\" : \"#ff8fa8\"} opacity=\"0.9\" />\n      <path d=\"M36 58 L104 46 L124 58 Z\" fill={chocolate ? \"#3b1d0d\" : \"#fffaf0\"} />\n      <path d=\"M36 58 C40 64 44 58 48 63 S56 58 60 62 S68 58 72 63 S80 58 84 62 S92 58 96 63 S104 58 108 62 S116 58 124 60 V58 Z\" fill={chocolate ? \"#3b1d0d\" : \"#fffaf0\"} />\n      {chocolate ? (\n        <g fill=\"#fff6e6\">\n          <circle cx=\"82\" cy=\"52\" r=\"1.2\" />\n          <circle cx=\"92\" cy=\"54\" r=\"1\" />\n          <circle cx=\"100\" cy=\"52\" r=\"1.3\" />\n          <circle cx=\"74\" cy=\"55\" r=\"1\" />\n        </g>\n      ) : (\n        <g>\n          <path d=\"M84 50 C76 40 84 30 92 34 C100 30 106 42 96 50 Z\" fill=\"#e8344d\" />\n          <path d=\"M88 33 L92 27 L95 33\" stroke=\"#3e9b48\" strokeWidth=\"3\" strokeLinecap=\"round\" strokeLinejoin=\"round\" fill=\"none\" />\n          <circle cx=\"88\" cy=\"42\" r=\"0.9\" fill=\"#ffe08a\" />\n          <circle cx=\"94\" cy=\"40\" r=\"0.9\" fill=\"#ffe08a\" />\n          <circle cx=\"92\" cy=\"46\" r=\"0.9\" fill=\"#ffe08a\" />\n        </g>\n      )}\n    </svg>\n  );\n}\n\nfunction RailArt({ art, uid }: { art: MenuPhotoRailArt; uid: string }) {\n  switch (art) {\n    case \"burger\":\n      return <Burger uid={uid} kind=\"beef\" />;\n    case \"chicken-burger\":\n      return <Burger uid={uid} kind=\"chicken\" />;\n    case \"veggie-burger\":\n      return <Burger uid={uid} kind=\"veggie\" />;\n    case \"fries\":\n      return <Fries uid={uid} loaded={false} />;\n    case \"loaded-fries\":\n      return <Fries uid={uid} loaded />;\n    case \"salad\":\n      return <Bowl uid={uid} salad />;\n    case \"bowl\":\n      return <Bowl uid={uid} salad={false} />;\n    case \"pizza\":\n      return <Pizza uid={uid} pepperoni={false} />;\n    case \"pepperoni\":\n      return <Pizza uid={uid} pepperoni />;\n    case \"soda\":\n      return <Drink uid={uid} kind=\"soda\" />;\n    case \"shake\":\n      return <Drink uid={uid} kind=\"shake\" />;\n    case \"coffee\":\n      return <Coffee uid={uid} />;\n    case \"cake\":\n      return <Cake uid={uid} chocolate={false} />;\n    default:\n      return <Cake uid={uid} chocolate />;\n  }\n}\n\nfunction findScrollParent(node: HTMLElement | null): Element | null {\n  let el = node?.parentElement ?? null;\n  while (el && el !== document.body && el !== document.documentElement) {\n    const oy = getComputedStyle(el).overflowY;\n    if ((oy === \"auto\" || oy === \"scroll\") && el.scrollHeight > el.clientHeight) return el;\n    el = el.parentElement;\n  }\n  return null;\n}\n\nfunction prefersReduced() {\n  return typeof window !== \"undefined\" && window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n}\n\nexport function MenuPhotoRail({\n  sections = defaultSections,\n  currency = \"USD\",\n  locale = \"en-US\",\n  onAdd,\n  onItemOpen,\n  stickyTop = 0,\n  labels: labelsProp,\n  accent = \"#ff6a3d\",\n  appearance = \"dark\",\n  className = \"\",\n  style,\n  ...rest\n}: MenuPhotoRailProps) {\n  const labels = { ...defaultLabels, ...labelsProp };\n  const uid = React.useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n  const rootRef = React.useRef<HTMLElement>(null);\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n  const pillRef = React.useRef<HTMLSpanElement>(null);\n  const lockUntil = React.useRef(0);\n  const firstMove = React.useRef(true);\n  const [active, setActive] = React.useState(sections[0]?.id ?? \"\");\n  const [counts, setCounts] = React.useState<Record<string, number>>({});\n\n  const money = React.useMemo(() => new Intl.NumberFormat(locale, { style: \"currency\", currency }), [locale, currency]);\n  const sectionKey = sections.map((s) => s.id).join(\"|\");\n\n  React.useEffect(() => {\n    const root = rootRef.current;\n    if (!root || typeof IntersectionObserver === \"undefined\") return;\n    const nodes = Array.from(root.querySelectorAll<HTMLElement>(\"[data-hb-oa1-section]\"));\n    const ids = nodes.map((n) => n.dataset.hbOa1Section ?? \"\");\n    const railHeight = root.querySelector<HTMLElement>(\".hb-oa1-rail\")?.offsetHeight ?? 60;\n    const offset = Math.round(stickyTop + railHeight + 8);\n    const visible = new Map<string, boolean>();\n    const observer = new IntersectionObserver(\n      (entries) => {\n        for (const entry of entries) visible.set((entry.target as HTMLElement).dataset.hbOa1Section ?? \"\", entry.isIntersecting);\n        if (performance.now() < lockUntil.current) return;\n        const first = ids.find((id) => visible.get(id));\n        if (first) setActive(first);\n      },\n      { root: findScrollParent(root), rootMargin: `-${offset}px 0px -55% 0px`, threshold: 0 },\n    );\n    nodes.forEach((n) => observer.observe(n));\n    return () => observer.disconnect();\n  }, [sectionKey, stickyTop]);\n\n  React.useEffect(() => {\n    const scroller = scrollRef.current;\n    const pill = pillRef.current;\n    if (!scroller || !pill) return;\n    const place = (animate: boolean) => {\n      const chip = scroller.querySelector<HTMLElement>(`[data-hb-oa1-chip=\"${CSS.escape(active)}\"]`);\n      if (!chip) return;\n      if (!animate) pill.style.transition = \"none\";\n      pill.style.width = `${chip.offsetWidth}px`;\n      pill.style.transform = `translateX(${chip.offsetLeft}px)`;\n      if (!animate) {\n        void pill.offsetWidth;\n        pill.style.transition = \"\";\n      }\n      const left = chip.offsetLeft - (scroller.clientWidth - chip.offsetWidth) / 2;\n      scroller.scrollTo({ left: Math.max(0, left), behavior: animate && !prefersReduced() ? \"smooth\" : \"auto\" });\n    };\n    place(!firstMove.current);\n    firstMove.current = false;\n    if (typeof ResizeObserver === \"undefined\") return;\n    const ro = new ResizeObserver(() => place(false));\n    ro.observe(scroller);\n    return () => ro.disconnect();\n  }, [active, sectionKey]);\n\n  const jump = (event: React.MouseEvent<HTMLAnchorElement>, id: string) => {\n    event.preventDefault();\n    const target = document.getElementById(`${uid}-${id}`);\n    lockUntil.current = event.timeStamp + 900;\n    setActive(id);\n    target?.scrollIntoView({ behavior: prefersReduced() ? \"auto\" : \"smooth\", block: \"start\" });\n  };\n\n  const add = (item: MenuPhotoRailItem, section: MenuPhotoRailSection) => {\n    setCounts((c) => ({ ...c, [item.id]: (c[item.id] ?? 0) + 1 }));\n    onAdd?.(item, section);\n  };\n\n  const countLabel = (n: number) => (n === 1 ? labels.countOne : labels.count.replace(\"{count}\", String(n)));\n  const vars = { \"--hb-oa1-accent\": accent, \"--hb-oa1-top\": `${stickyTop}px`, ...style } as React.CSSProperties;\n  const starts = sections.map((_, k) => sections.slice(0, k).reduce((sum, prev) => sum + prev.items.length, 0));\n\n  return (\n    <section ref={rootRef} className={`hb-oa1 ${className}`} style={vars} data-appearance={appearance} {...rest}>\n      <style href=\"hb-menu-photo-rail\" precedence=\"default\">{css}</style>\n      <div className=\"hb-oa1-wrap\">\n        <header className=\"hb-oa1-head\">\n          <p className=\"hb-oa1-eyebrow\">{labels.eyebrow}</p>\n          <h2 className=\"hb-oa1-title\">{labels.title}</h2>\n          <p className=\"hb-oa1-sub\">{labels.subtitle}</p>\n        </header>\n        <nav className=\"hb-oa1-rail\" aria-label={labels.rail}>\n          <div className=\"hb-oa1-scroll\" ref={scrollRef}>\n            <div className=\"hb-oa1-track\">\n              <span className=\"hb-oa1-pill\" ref={pillRef} aria-hidden=\"true\" />\n              {sections.map((s) => (\n                <a\n                  key={s.id}\n                  href={`#${uid}-${s.id}`}\n                  className=\"hb-oa1-chip\"\n                  data-hb-oa1-chip={s.id}\n                  aria-current={active === s.id ? \"true\" : undefined}\n                  onClick={(e) => jump(e, s.id)}\n                >\n                  {s.label}\n                  <span className=\"hb-oa1-num\" aria-label={countLabel(s.items.length)}>{s.items.length}</span>\n                </a>\n              ))}\n            </div>\n          </div>\n        </nav>\n        {sections.map((s, si) => (\n          <section key={s.id} id={`${uid}-${s.id}`} className=\"hb-oa1-section\" data-hb-oa1-section={s.id} aria-labelledby={`${uid}-${s.id}-h`}>\n            <div className=\"hb-oa1-shead\">\n              <h3 className=\"hb-oa1-stitle\" id={`${uid}-${s.id}-h`}>{s.label}</h3>\n              <p className=\"hb-oa1-snote\">{s.note ? `${s.note} · ` : \"\"}{countLabel(s.items.length)}</p>\n            </div>\n            <ul className=\"hb-oa1-grid\">\n              {s.items.map((item, ii) => {\n                const n = counts[item.id] ?? 0;\n                const i = starts[si] + ii;\n                return (\n                  <li key={item.id} className=\"hb-oa1-card\" style={{ \"--hb-oa1-tint\": item.tint ?? accent, \"--hb-oa1-i\": Math.min(i, 8) } as React.CSSProperties}>\n                    <div className=\"hb-oa1-media\">\n                      <RailArt art={item.art} uid={`${uid}-${item.id}`} />\n                    </div>\n                    <div className=\"hb-oa1-body\">\n                      <div className=\"hb-oa1-row\">\n                        <h4 className=\"hb-oa1-name\">\n                          {onItemOpen ? (\n                            <button type=\"button\" className=\"hb-oa1-open\" onClick={() => onItemOpen(item, s)}>\n                              <span className=\"hb-oa1-sr\">{labels.open} </span>\n                              {item.name}\n                            </button>\n                          ) : (\n                            item.name\n                          )}\n                        </h4>\n                        {item.tag ? <span className=\"hb-oa1-tag\">{item.tag}</span> : null}\n                      </div>\n                      <p className=\"hb-oa1-desc\">{item.description}</p>\n                      <div className=\"hb-oa1-foot\">\n                        <span className=\"hb-oa1-price\">{money.format(item.price)}</span>\n                        <button\n                          type=\"button\"\n                          className=\"hb-oa1-add\"\n                          data-added={n > 0}\n                          aria-label={`${labels.add} ${item.name}${n > 0 ? `, ${n} ${labels.added.toLowerCase()}` : \"\"}`}\n                          onClick={() => add(item, s)}\n                        >\n                          <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                            <path d=\"M8 3v10M3 8h10\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" />\n                          </svg>\n                          {n > 0 ? labels.added : labels.add}\n                          {n > 0 ? <span key={n} className=\"hb-oa1-badge\">{n}</span> : null}\n                        </button>\n                      </div>\n                    </div>\n                  </li>\n                );\n              })}\n            </ul>\n          </section>\n        ))}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}