{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "shop-collection-hero",
  "type": "registry:component",
  "title": "Shop Collection Hero",
  "description": "A light collection page opener: a warm banner with a serif title and floating product art, filter chips and a row of four products with wishlist hearts and a quick add overlay.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "ecommerce",
    "ecommerce",
    "collection",
    "banner",
    "wishlist",
    "quick add",
    "light"
  ],
  "docs": "https://hyperblur.dev/effects/shop-collection-hero",
  "files": [
    {
      "path": "registry/hyperblur/shop-collection-hero.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/shop-collection-hero.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport type CeramicShape = \"vase\" | \"mug\" | \"bowl\" | \"carafe\" | \"lamp\";\n\nexport interface CollectionProduct {\n  name: string;\n  price: number;\n  category: string;\n  shape: CeramicShape;\n  tone: string;\n  glazes?: string[];\n  tag?: string;\n  href?: string;\n}\n\nexport interface ShopCollectionHeroProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  primaryCta?: { label: string; href: string };\n  secondaryCta?: { label: string; href: string };\n  products?: CollectionProduct[];\n  filters?: string[];\n  allLabel?: string;\n  defaultFilter?: string;\n  onFilterChange?: (filter: string) => void;\n  defaultWishlist?: string[];\n  onWishlistChange?: (product: CollectionProduct, wished: boolean) => void;\n  onQuickAdd?: (product: CollectionProduct) => void;\n  currency?: string;\n  accent?: string;\n}\n\nconst defaultProducts: CollectionProduct[] = [\n  { name: \"Dune Bud Vase\", price: 58, category: \"Vases\", shape: \"vase\", tone: \"#c79a72\", glazes: [\"#c79a72\", \"#7d8a6a\", \"#e8e1d3\"], tag: \"New\", href: \"#\" },\n  { name: \"Ember Mug\", price: 34, category: \"Tableware\", shape: \"mug\", tone: \"#b5532f\", glazes: [\"#b5532f\", \"#2f3a46\", \"#e8e1d3\"], href: \"#\" },\n  { name: \"Tidepool Bowl\", price: 46, category: \"Tableware\", shape: \"bowl\", tone: \"#5f7f86\", glazes: [\"#5f7f86\", \"#c79a72\"], tag: \"Bestseller\", href: \"#\" },\n  { name: \"Hearth Table Lamp\", price: 148, category: \"Lighting\", shape: \"lamp\", tone: \"#d6c6aa\", glazes: [\"#d6c6aa\", \"#3d3a36\"], tag: \"Limited\", href: \"#\" },\n  { name: \"Fold Pitcher\", price: 72, category: \"Tableware\", shape: \"carafe\", tone: \"#8a6d55\", glazes: [\"#8a6d55\", \"#e8e1d3\"], href: \"#\" },\n  { name: \"Moon Vase\", price: 96, category: \"Vases\", shape: \"vase\", tone: \"#e4dccd\", glazes: [\"#e4dccd\", \"#b5532f\"], href: \"#\" },\n  { name: \"Lantern Pendant\", price: 182, category: \"Lighting\", shape: \"lamp\", tone: \"#9a5a3c\", glazes: [\"#9a5a3c\", \"#d6c6aa\"], href: \"#\" },\n];\n\nfunction hash(value: string) {\n  let h = 2166136261;\n  for (let i = 0; i < value.length; i++) {\n    h ^= value.charCodeAt(i);\n    h = Math.imul(h, 16777619);\n  }\n  return h >>> 0;\n}\n\nfunction Ceramic({ shape, seed }: { shape: CeramicShape; seed: number }) {\n  const speckles = Array.from({ length: 22 }, (_, i) => {\n    const h = hash(`${seed}-${i}`) >>> 0;\n    return { x: 36 + (h % 28), y: 56 + ((h >>> 5) % 40), r: 0.5 + ((h >>> 10) % 8) / 10 };\n  });\n  return (\n    <svg className=\"hb-ki7-svg\" viewBox=\"0 0 100 120\" aria-hidden=\"true\">\n      <ellipse cx=\"50\" cy=\"111\" rx={shape === \"bowl\" ? 34 : 28} ry=\"4.5\" fill=\"rgba(60,40,20,.16)\" />\n      {shape === \"vase\" && (\n        <>\n          <path className=\"hb-ki7-glaze\" d=\"M38 12H62V20C62 28 80 36 80 60C80 86 68 108 50 108C32 108 20 86 20 60C20 36 38 28 38 20Z\" />\n          <path className=\"hb-ki7-rim\" d=\"M38 12H62V16H38Z\" />\n          <path className=\"hb-ki7-dip\" d=\"M20.6 72C30 76 40 70 50 74S70 78 79.4 72C77 92 66 108 50 108S23 92 20.6 72Z\" />\n        </>\n      )}\n      {shape === \"mug\" && (\n        <>\n          <path className=\"hb-ki7-handle\" d=\"M69 52C86 52 86 86 69 86\" />\n          <path className=\"hb-ki7-glaze\" d=\"M24 40H70V96C70 104 64 108 56 108H38C30 108 24 104 24 96Z\" />\n          <path className=\"hb-ki7-rim\" d=\"M24 40H70V45H24Z\" />\n          <path className=\"hb-ki7-dip\" d=\"M24 82C34 86 44 80 54 84S66 86 70 82V96C70 104 64 108 56 108H38C30 108 24 104 24 96Z\" />\n        </>\n      )}\n      {shape === \"bowl\" && (\n        <>\n          <path className=\"hb-ki7-glaze\" d=\"M12 60H88C88 86 72 103 50 103C28 103 12 86 12 60Z\" />\n          <path d=\"M40 102H60V108H40Z\" className=\"hb-ki7-rim\" />\n          <ellipse cx=\"50\" cy=\"60\" rx=\"38\" ry=\"7\" className=\"hb-ki7-inner\" />\n          <path className=\"hb-ki7-dip\" d=\"M17 80C28 84 40 78 50 82S72 84 83 80C78 94 66 103 50 103S22 94 17 80Z\" />\n        </>\n      )}\n      {shape === \"carafe\" && (\n        <>\n          <path className=\"hb-ki7-glaze\" d=\"M41 12H59L57 30C57 38 75 48 75 72C75 96 64 108 50 108C36 108 25 96 25 72C25 48 43 38 43 30Z\" />\n          <path className=\"hb-ki7-rim\" d=\"M41 12H59L58.6 16H41.4Z\" />\n          <path className=\"hb-ki7-dip\" d=\"M25.4 80C35 84 44 78 52 82S68 84 74.6 80C72 98 62 108 50 108S28 98 25.4 80Z\" />\n        </>\n      )}\n      {shape === \"lamp\" && (\n        <>\n          <ellipse cx=\"50\" cy=\"40\" rx=\"40\" ry=\"26\" fill=\"rgba(255,214,150,.35)\" className=\"hb-ki7-glow\" />\n          <path className=\"hb-ki7-glaze\" d=\"M45 58H55V98H45Z\" />\n          <ellipse className=\"hb-ki7-glaze\" cx=\"50\" cy=\"102\" rx=\"20\" ry=\"6\" />\n          <path className=\"hb-ki7-shade\" d=\"M32 18H68L82 58H18Z\" />\n          <path d=\"M18 58H82\" stroke=\"rgba(60,40,20,.25)\" strokeWidth=\"1.4\" />\n        </>\n      )}\n      {shape !== \"lamp\" &&\n        speckles.map((s, i) => <circle key={i} cx={s.x} cy={s.y} r={s.r.toFixed(2)} fill=\"rgba(40,25,10,.22)\" />)}\n      <path className=\"hb-ki7-hi\" d={shape === \"bowl\" ? \"M20 70C22 82 28 90 36 96\" : shape === \"lamp\" ? \"M34 24L26 52\" : \"M31 54C28 68 30 84 37 96\"} />\n    </svg>\n  );\n}\n\nconst css = `\n.hb-ki7 {\n  --hb-ki7-accent: #c4532d;\n  --hb-ki7-ink: #1c1a16;\n  --hb-ki7-muted: #6f685d;\n  --hb-ki7-line: rgba(28,26,22,.12);\n  box-sizing: border-box;\n  width: 100%;\n  container-type: inline-size;\n  background: #f7f5ef;\n  color: var(--hb-ki7-ink);\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-ki7 *, .hb-ki7 *::before, .hb-ki7 *::after { box-sizing: border-box; }\n.hb-ki7-inner {\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: clamp(32px, 5cqi, 88px) clamp(16px, 4cqi, 40px) clamp(56px, 9cqi, 112px);\n}\n.hb-ki7-banner {\n  position: relative;\n  display: grid;\n  overflow: hidden;\n  border-radius: 28px;\n  background:\n    radial-gradient(40% 70% at 82% 40%, rgba(255,236,210,.9), transparent 70%),\n    radial-gradient(60% 90% at 100% 100%, color-mix(in srgb, var(--hb-ki7-accent) 38%, transparent), transparent 70%),\n    linear-gradient(115deg, #efe4d2 0%, #e6cfb3 60%, #ddb999 100%);\n  box-shadow: inset 0 0 0 1px rgba(28,26,22,.06), inset 0 1px 0 rgba(255,255,255,.6);\n}\n.hb-ki7-banner::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background-image: radial-gradient(rgba(60,40,20,.12) .8px, transparent .8px);\n  background-size: 6px 6px;\n  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);\n  mask-image: linear-gradient(90deg, #000, transparent 70%);\n  pointer-events: none;\n}\n.hb-ki7-copy {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  padding: clamp(28px, 4cqi, 52px);\n}\n.hb-ki7-eyebrow {\n  margin: 0 0 14px;\n  color: color-mix(in srgb, var(--hb-ki7-accent) 80%, #000);\n  font-size: 12px;\n  font-weight: 600;\n  letter-spacing: .14em;\n  text-transform: uppercase;\n}\n.hb-ki7-title {\n  margin: 0;\n  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);\n  font-size: clamp(56px, 9cqi, 104px);\n  font-weight: 400;\n  line-height: .9;\n  letter-spacing: -.025em;\n}\n.hb-ki7-char {\n  display: inline-block;\n  animation: hb-ki7-rise .9s cubic-bezier(.2,.7,.2,1) both;\n  animation-delay: var(--hb-ki7-d, 0ms);\n}\n.hb-ki7-title em { font-style: normal; color: color-mix(in srgb, var(--hb-ki7-accent) 85%, #000); }\n.hb-ki7-sub {\n  margin: 16px 0 0;\n  max-width: 400px;\n  color: #5b5349;\n  font-size: 15px;\n  line-height: 1.6;\n}\n.hb-ki7-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }\n.hb-ki7-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  height: 44px;\n  padding: 0 20px;\n  border-radius: 999px;\n  font-size: 14px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;\n}\n.hb-ki7-btn svg { width: 14px; height: 14px; transition: transform .25s ease; }\n.hb-ki7-btn:hover svg { transform: translateX(3px); }\n.hb-ki7-primary { background: var(--hb-ki7-ink); color: #f7f5ef; box-shadow: 0 10px 24px -12px rgba(28,26,22,.6); }\n.hb-ki7-primary:hover { transform: translateY(-1px); }\n.hb-ki7-ghost { background: rgba(255,255,255,.45); color: var(--hb-ki7-ink); box-shadow: inset 0 0 0 1px rgba(28,26,22,.14); }\n.hb-ki7-ghost:hover { background: rgba(255,255,255,.75); }\n.hb-ki7-btn:focus-visible { outline: 2px solid var(--hb-ki7-accent); outline-offset: 3px; }\n.hb-ki7-shelf {\n  position: relative;\n  display: none;\n  align-items: flex-end;\n  justify-content: center;\n  gap: 0;\n  padding: 32px 40px 0;\n}\n.hb-ki7-shelf::after {\n  content: \"\";\n  position: absolute;\n  left: 8%;\n  right: 8%;\n  bottom: 30px;\n  height: 1px;\n  background: rgba(60,40,20,.2);\n}\n.hb-ki7-piece {\n  position: relative;\n  z-index: 1;\n  margin-bottom: 22px;\n  animation: hb-ki7-bob 6s ease-in-out infinite;\n  animation-delay: var(--hb-ki7-d, 0s);\n}\n.hb-ki7-piece .hb-ki7-svg { width: 100%; height: auto; }\n.hb-ki7-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin: clamp(24px, 3.4cqi, 36px) 0 18px;\n}\n.hb-ki7-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }\n.hb-ki7-filters::-webkit-scrollbar { display: none; }\n.hb-ki7-chip {\n  flex: none;\n  height: 34px;\n  margin: 0;\n  padding: 0 15px;\n  border: 1px solid var(--hb-ki7-line);\n  border-radius: 999px;\n  background: #fff;\n  color: var(--hb-ki7-ink);\n  font: inherit;\n  font-size: 13px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: background-color .2s ease, color .2s ease, border-color .2s ease;\n}\n.hb-ki7-chip:hover { border-color: rgba(28,26,22,.3); }\n.hb-ki7-chip[aria-pressed=\"true\"] { background: var(--hb-ki7-ink); border-color: var(--hb-ki7-ink); color: #f7f5ef; }\n.hb-ki7-chip:focus-visible { outline: 2px solid var(--hb-ki7-accent); outline-offset: 2px; }\n.hb-ki7-count { color: var(--hb-ki7-muted); font-size: 13px; }\n.hb-ki7-grid {\n  display: grid;\n  grid-template-columns: repeat(2, minmax(0, 1fr));\n  gap: clamp(12px, 2cqi, 20px);\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n.hb-ki7-card { min-width: 0; animation: hb-ki7-in .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--hb-ki7-d, 0ms); }\n.hb-ki7-media {\n  position: relative;\n  aspect-ratio: 4 / 5;\n  border-radius: 20px;\n  overflow: hidden;\n  box-shadow: inset 0 0 0 1px rgba(28,26,22,.06);\n}\n.hb-ki7-media > a { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; }\n.hb-ki7-media > a:focus-visible { outline: 2px solid var(--hb-ki7-accent); outline-offset: -2px; }\n.hb-ki7-media .hb-ki7-svg { width: 62%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }\n.hb-ki7-card:hover .hb-ki7-media .hb-ki7-svg { transform: translateY(-6px) scale(1.04); }\n.hb-ki7-glaze { fill: var(--hb-ki7-tone); }\n.hb-ki7-rim { fill: color-mix(in srgb, var(--hb-ki7-tone) 70%, #2a1a0c); }\n.hb-ki7-dip { fill: color-mix(in srgb, var(--hb-ki7-tone) 78%, #2a1a0c); }\n.hb-ki7-inner { fill: color-mix(in srgb, var(--hb-ki7-tone) 60%, #1a0f06); }\n.hb-ki7-handle { fill: none; stroke: var(--hb-ki7-tone); stroke-width: 7; stroke-linecap: round; }\n.hb-ki7-shade { fill: color-mix(in srgb, var(--hb-ki7-tone) 80%, #fff); }\n.hb-ki7-glow { filter: blur(6px); }\n.hb-ki7-hi { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 3; stroke-linecap: round; }\n.hb-ki7-tag {\n  position: absolute;\n  left: 12px;\n  top: 12px;\n  height: 24px;\n  padding: 0 10px;\n  border-radius: 999px;\n  background: rgba(255,255,255,.85);\n  color: var(--hb-ki7-ink);\n  font-size: 11.5px;\n  font-weight: 600;\n  line-height: 24px;\n  pointer-events: none;\n}\n.hb-ki7-heart {\n  position: absolute;\n  right: 10px;\n  top: 10px;\n  display: grid;\n  place-items: center;\n  width: 36px;\n  height: 36px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  border-radius: 50%;\n  background: rgba(255,255,255,.85);\n  box-shadow: 0 4px 12px -6px rgba(28,26,22,.4);\n  color: var(--hb-ki7-ink);\n  cursor: pointer;\n  transition: transform .2s ease, background-color .2s ease;\n}\n.hb-ki7-heart:hover { transform: scale(1.08); background: #fff; }\n.hb-ki7-heart:focus-visible { outline: 2px solid var(--hb-ki7-accent); outline-offset: 2px; }\n.hb-ki7-heart svg { width: 17px; height: 17px; fill: transparent; stroke: currentColor; stroke-width: 1.6; transition: fill .2s ease, stroke .2s ease; }\n.hb-ki7-heart[aria-pressed=\"true\"] { color: var(--hb-ki7-accent); }\n.hb-ki7-heart[aria-pressed=\"true\"] svg { fill: var(--hb-ki7-accent); animation: hb-ki7-pop .45s cubic-bezier(.2,.9,.3,1.4); }\n.hb-ki7-quick {\n  position: absolute;\n  left: 10px;\n  right: 10px;\n  bottom: 10px;\n  transform: translateY(calc(100% + 14px));\n  opacity: 0;\n  transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .3s ease;\n}\n.hb-ki7-card:hover .hb-ki7-quick, .hb-ki7-media:focus-within .hb-ki7-quick, .hb-ki7-quick[data-done=\"true\"] { transform: none; opacity: 1; }\n.hb-ki7-qbtn {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  width: 100%;\n  height: 42px;\n  margin: 0;\n  border: 0;\n  border-radius: 14px;\n  background: rgba(28,26,22,.92);\n  backdrop-filter: blur(8px);\n  -webkit-backdrop-filter: blur(8px);\n  color: #f7f5ef;\n  font: inherit;\n  font-size: 13.5px;\n  font-weight: 600;\n  cursor: pointer;\n  transition: background-color .3s ease;\n}\n.hb-ki7-qbtn svg { width: 15px; height: 15px; }\n.hb-ki7-qbtn:focus-visible { outline: 2px solid var(--hb-ki7-accent); outline-offset: 2px; }\n.hb-ki7-quick[data-done=\"true\"] .hb-ki7-qbtn { background: var(--hb-ki7-accent); }\n.hb-ki7-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 4px 0; }\n.hb-ki7-name { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }\n.hb-ki7-name a { color: inherit; text-decoration: none; }\n.hb-ki7-name a:hover { text-decoration: underline; text-underline-offset: 3px; }\n.hb-ki7-dots { display: flex; gap: 4px; margin-top: 7px; }\n.hb-ki7-dots span { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(28,26,22,.18); }\n.hb-ki7-price { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }\n.hb-ki7-empty { padding: 40px 0; color: var(--hb-ki7-muted); text-align: center; }\n@container (min-width: 760px) {\n  .hb-ki7-banner { grid-template-columns: 1.05fr 1fr; }\n  .hb-ki7-shelf { display: flex; }\n  .hb-ki7-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n}\n@keyframes hb-ki7-rise {\n  from { opacity: 0; transform: translateY(.4em) rotate(4deg); }\n  to { opacity: 1; transform: none; }\n}\n@keyframes hb-ki7-bob {\n  0%, 100% { transform: translateY(0); }\n  50% { transform: translateY(-8px); }\n}\n@keyframes hb-ki7-in {\n  from { opacity: 0; transform: translateY(12px); }\n  to { opacity: 1; transform: none; }\n}\n@keyframes hb-ki7-pop {\n  0% { transform: scale(1); }\n  40% { transform: scale(1.35); }\n  100% { transform: scale(1); }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-ki7-char, .hb-ki7-piece, .hb-ki7-card, .hb-ki7-heart[aria-pressed=\"true\"] svg { animation: none; }\n  .hb-ki7-btn, .hb-ki7-btn svg, .hb-ki7-chip, .hb-ki7-media .hb-ki7-svg, .hb-ki7-heart, .hb-ki7-heart svg, .hb-ki7-quick, .hb-ki7-qbtn { transition: none; }\n}\n`;\n\nfunction Arrow() {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d=\"M3 8h10M9 4l4 4-4 4\" />\n    </svg>\n  );\n}\n\nfunction money(value: number, currency: string) {\n  const [whole, cents] = value.toFixed(2).split(\".\");\n  const grouped = whole.replace(/\\B(?=(\\d{3})+$)/g, \",\");\n  return cents === \"00\" ? `${currency}${grouped}` : `${currency}${grouped}.${cents}`;\n}\n\nexport function ShopCollectionHero({\n  eyebrow = \"Collection 04 · Autumn 2026\",\n  title = \"Slow Kiln\",\n  subtitle = \"Wood-fired stoneware thrown in small batches. Every glaze pools differently, so no two pieces match.\",\n  primaryCta = { label: \"Shop the collection\", href: \"#\" },\n  secondaryCta = { label: \"Read the lookbook\", href: \"#\" },\n  products = defaultProducts,\n  filters,\n  allLabel = \"All\",\n  defaultFilter,\n  onFilterChange,\n  defaultWishlist = [\"Tidepool Bowl\"],\n  onWishlistChange,\n  onQuickAdd,\n  currency = \"$\",\n  accent = \"#c4532d\",\n  className,\n  style,\n  ...rest\n}: ShopCollectionHeroProps) {\n  const options = React.useMemo(() => {\n    const list = filters ?? Array.from(new Set(products.map((p) => p.category)));\n    return [allLabel, ...list.filter((item) => item !== allLabel)];\n  }, [filters, products, allLabel]);\n  const [filter, setFilter] = React.useState(defaultFilter ?? allLabel);\n  const [wished, setWished] = React.useState<string[]>(defaultWishlist);\n  const [added, setAdded] = React.useState<string | null>(null);\n  const timer = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n  React.useEffect(() => () => {\n    if (timer.current) clearTimeout(timer.current);\n  }, []);\n\n  const matching = filter === allLabel ? products : products.filter((p) => p.category === filter);\n  const visible = matching.slice(0, 4);\n\n  const choose = (next: string) => {\n    setFilter(next);\n    onFilterChange?.(next);\n  };\n\n  const toggleWish = (product: CollectionProduct) => {\n    const on = !wished.includes(product.name);\n    setWished((list) => (on ? [...list, product.name] : list.filter((n) => n !== product.name)));\n    onWishlistChange?.(product, on);\n  };\n\n  const quickAdd = (product: CollectionProduct) => {\n    setAdded(product.name);\n    onQuickAdd?.(product);\n    if (timer.current) clearTimeout(timer.current);\n    timer.current = setTimeout(() => setAdded(null), 1600);\n  };\n\n  const words = title.split(\" \");\n  const tail = words.length > 1 ? words.pop() : undefined;\n  const head = words.join(\" \");\n  const renderChars = (text: string, offset: number) =>\n    Array.from(text).map((ch, index) => {\n      const i = offset + index;\n      return (\n        <span key={i} className=\"hb-ki7-char\" style={{ \"--hb-ki7-d\": `${(i * 45).toFixed(0)}ms` } as React.CSSProperties}>\n          {ch === \" \" ? \" \" : ch}\n        </span>\n      );\n    });\n\n  const shelf: { shape: CeramicShape; tone: string; width: number; delay: number }[] = [\n    { shape: \"carafe\", tone: \"#8a6d55\", width: 108, delay: 0.4 },\n    { shape: \"vase\", tone: \"#c4532d\", width: 152, delay: 0 },\n    { shape: \"bowl\", tone: \"#5f7f86\", width: 128, delay: 0.9 },\n  ];\n\n  return (\n    <section\n      className={className ? `hb-ki7 ${className}` : \"hb-ki7\"}\n      style={{ \"--hb-ki7-accent\": accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-shop-collection-hero\" precedence=\"default\">{css}</style>\n      <div className=\"hb-ki7-inner\">\n        <div className=\"hb-ki7-banner\">\n          <div className=\"hb-ki7-copy\">\n            {eyebrow && <p className=\"hb-ki7-eyebrow\">{eyebrow}</p>}\n            <h2 className=\"hb-ki7-title\" aria-label={title}>\n              <span aria-hidden=\"true\">\n                {renderChars(head, 0)}\n                {tail && (\n                  <>\n                    {\" \"}\n                    <em>{renderChars(tail, head.length + 1)}</em>\n                  </>\n                )}\n              </span>\n            </h2>\n            {subtitle && <p className=\"hb-ki7-sub\">{subtitle}</p>}\n            {(primaryCta || secondaryCta) && (\n              <div className=\"hb-ki7-ctas\">\n                {primaryCta && (\n                  <a className=\"hb-ki7-btn hb-ki7-primary\" href={primaryCta.href}>\n                    {primaryCta.label}\n                    <Arrow />\n                  </a>\n                )}\n                {secondaryCta && (\n                  <a className=\"hb-ki7-btn hb-ki7-ghost\" href={secondaryCta.href}>\n                    {secondaryCta.label}\n                  </a>\n                )}\n              </div>\n            )}\n          </div>\n          <div className=\"hb-ki7-shelf\" aria-hidden=\"true\">\n            {shelf.map((piece, i) => (\n              <div\n                key={i}\n                className=\"hb-ki7-piece\"\n                style={{ width: piece.width, \"--hb-ki7-tone\": piece.tone, \"--hb-ki7-d\": `${piece.delay}s`, marginLeft: i === 0 ? 0 : -14 } as React.CSSProperties}\n              >\n                <Ceramic shape={piece.shape} seed={i + 11} />\n              </div>\n            ))}\n          </div>\n        </div>\n        <div className=\"hb-ki7-bar\">\n          <div className=\"hb-ki7-filters\" role=\"group\" aria-label=\"Filter products\">\n            {options.map((option) => (\n              <button key={option} type=\"button\" className=\"hb-ki7-chip\" aria-pressed={option === filter} onClick={() => choose(option)}>\n                {option}\n              </button>\n            ))}\n          </div>\n          <span className=\"hb-ki7-count\" aria-live=\"polite\">\n            Showing {visible.length} of {matching.length} {matching.length === 1 ? \"piece\" : \"pieces\"}\n          </span>\n        </div>\n        {visible.length === 0 ? (\n          <p className=\"hb-ki7-empty\">No pieces in {filter} right now.</p>\n        ) : (\n          <ul className=\"hb-ki7-grid\" key={filter}>\n            {visible.map((product, i) => {\n              const on = wished.includes(product.name);\n              const done = added === product.name;\n              return (\n                <li\n                  key={product.name}\n                  className=\"hb-ki7-card\"\n                  style={{ \"--hb-ki7-tone\": product.tone, \"--hb-ki7-d\": `${(i * 70).toFixed(0)}ms` } as React.CSSProperties}\n                >\n                  <div\n                    className=\"hb-ki7-media\"\n                    style={{\n                      background: `radial-gradient(70% 55% at 50% 38%, color-mix(in srgb, ${product.tone} 22%, #fff) 0%, transparent 72%), linear-gradient(180deg, #efeae0, #e2dacb)`,\n                    }}\n                  >\n                    <a href={product.href ?? \"#\"} aria-label={product.name}>\n                      <Ceramic shape={product.shape} seed={hash(product.name)} />\n                    </a>\n                    {product.tag && <span className=\"hb-ki7-tag\">{product.tag}</span>}\n                    <button\n                      type=\"button\"\n                      className=\"hb-ki7-heart\"\n                      aria-pressed={on}\n                      aria-label={on ? `Remove ${product.name} from wishlist` : `Save ${product.name} to wishlist`}\n                      onClick={() => toggleWish(product)}\n                    >\n                      <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n                        <path d=\"M10 16.5s-6.5-3.8-6.5-8.6A3.6 3.6 0 0 1 10 5.6a3.6 3.6 0 0 1 6.5 2.3c0 4.8-6.5 8.6-6.5 8.6z\" strokeLinejoin=\"round\" />\n                      </svg>\n                    </button>\n                    <div className=\"hb-ki7-quick\" data-done={done}>\n                      <button type=\"button\" className=\"hb-ki7-qbtn\" onClick={() => quickAdd(product)}>\n                        {done ? (\n                          <>\n                            <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                              <path d=\"M3.5 8.5l3 3 6-7\" />\n                            </svg>\n                            Added to bag\n                          </>\n                        ) : (\n                          <>\n                            <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                              <path d=\"M8 3v10M3 8h10\" />\n                            </svg>\n                            Quick add\n                          </>\n                        )}\n                      </button>\n                    </div>\n                  </div>\n                  <div className=\"hb-ki7-info\">\n                    <div style={{ minWidth: 0 }}>\n                      <h3 className=\"hb-ki7-name\">\n                        <a href={product.href ?? \"#\"}>{product.name}</a>\n                      </h3>\n                      {product.glazes && product.glazes.length > 0 && (\n                        <div className=\"hb-ki7-dots\" role=\"img\" aria-label={`${product.glazes.length} glazes`}>\n                          {product.glazes.map((g) => (\n                            <span key={g} style={{ background: g }} />\n                          ))}\n                        </div>\n                      )}\n                    </div>\n                    <span className=\"hb-ki7-price\">{money(product.price, currency)}</span>\n                  </div>\n                </li>\n              );\n            })}\n          </ul>\n        )}\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}