{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"ecommerce-product-features-feature-timeline","type":"registry:block","title":"Feature Timeline","files":[{"path":"components/blocks/ecommerce/product-features/feature-timeline.tsx","content":"import {\n  ArrowRight,\n  Heart,\n  Timer,\n  Smartphone,\n  Zap,\n  Droplet,\n  Activity,\n} from 'lucide-react';\nimport { Badge } from '@/components/ui/badge';\nimport { Button } from '@/components/ui/button';\nimport { cn } from '@/lib/utils';\n\nexport default function FeatureTimeline() {\n  const features = [\n    {\n      id: 1,\n      title: 'Advanced Health Monitoring',\n      description:\n        'Continuous heart rate tracking with abnormality alerts, blood oxygen saturation measurement, and stress level analysis with guided breathing exercises.',\n      icon: <Heart className=\"h-5 w-5\" />,\n      image:\n        'https://images.unsplash.com/photo-1557438159-51eec7a6c9e8?q=80&w=2070&auto=format&fit=crop',\n      color: 'bg-rose-50 text-rose-600 dark:bg-rose-950/20 dark:text-rose-400',\n      position: 'left',\n      stats: [\n        { value: '24/7', label: 'Monitoring' },\n        { value: '±1%', label: 'Accuracy' },\n        { value: '5min', label: 'Intervals' },\n      ],\n    },\n    {\n      id: 2,\n      title: '7-Day Battery Life',\n      description:\n        'Intelligent power management with smart display and processor optimization delivers a full week of use on a single charge, even with always-on display and activity tracking.',\n      icon: <Zap className=\"h-5 w-5\" />,\n      image:\n        'https://images.unsplash.com/photo-1579586337278-3befd40fd17a?q=80&w=2072&auto=format&fit=crop',\n      color:\n        'bg-amber-50 text-amber-600 dark:bg-amber-950/20 dark:text-amber-400',\n      position: 'right',\n      stats: [\n        { value: '7', label: 'Days' },\n        { value: '45min', label: 'Full Charge' },\n        { value: '2hrs', label: 'Quick Charge' },\n      ],\n    },\n    {\n      id: 3,\n      title: 'Workout Intelligence',\n      description:\n        'Automatically detects 12 different exercise types and provides detailed metrics including cadence, pace, heart rate zones, and calories burned with personalized insights.',\n      icon: <Activity className=\"h-5 w-5\" />,\n      image:\n        'https://images.unsplash.com/photo-1576243345690-4e4b79b63288?q=80&w=2070&auto=format&fit=crop',\n      color:\n        'bg-emerald-50 text-emerald-600 dark:bg-emerald-950/20 dark:text-emerald-400',\n      position: 'left',\n      stats: [\n        { value: '12', label: 'Activities' },\n        { value: '30+', label: 'Metrics' },\n        { value: 'GPS', label: 'Tracking' },\n      ],\n    },\n    {\n      id: 4,\n      title: 'Smart Notifications',\n      description:\n        'Seamlessly receive and respond to messages, calls, and app notifications, with customizable quick replies and voice-to-text input for instant responses.',\n      icon: <Smartphone className=\"h-5 w-5\" />,\n      image:\n        'https://images.unsplash.com/photo-1551816230-ef5deaed4a26?q=80&w=2065&auto=format&fit=crop',\n      color: 'bg-blue-50 text-blue-600 dark:bg-blue-950/20 dark:text-blue-400',\n      position: 'right',\n      stats: [\n        { value: 'All', label: 'Apps' },\n        { value: 'Quick', label: 'Replies' },\n        { value: 'Voice', label: 'Input' },\n      ],\n    },\n    {\n      id: 5,\n      title: '50m Water Resistance',\n      description:\n        'Fully waterproof design suitable for swimming, showering, and water sports. Automatically tracks swim metrics including laps, pace, and stroke type.',\n      icon: <Droplet className=\"h-5 w-5\" />,\n      image:\n        'https://images.unsplash.com/photo-1524805444758-089113d48a6d?q=80&w=2024&auto=format&fit=crop',\n      color: 'bg-cyan-50 text-cyan-600 dark:bg-cyan-950/20 dark:text-cyan-400',\n      position: 'left',\n      stats: [\n        { value: '50m', label: 'Depth' },\n        { value: '5ATM', label: 'Rating' },\n        { value: 'Swim', label: 'Tracking' },\n      ],\n    },\n    {\n      id: 6,\n      title: 'Sleep Insights',\n      description:\n        'Advanced sleep stage tracking differentiates between light, deep, and REM sleep phases, providing detailed analysis and personalized recommendations for better rest.',\n      icon: <Timer className=\"h-5 w-5\" />,\n      image:\n        'https://images.unsplash.com/photo-1531353826977-0941b4779a1c?q=80&w=2070&auto=format&fit=crop',\n      color:\n        'bg-purple-50 text-purple-600 dark:bg-purple-950/20 dark:text-purple-400',\n      position: 'right',\n      stats: [\n        { value: '3', label: 'Sleep Stages' },\n        { value: 'Daily', label: 'Score' },\n        { value: 'Smart', label: 'Alarm' },\n      ],\n    },\n  ];\n\n  return (\n    <section className=\"bg-background w-full overflow-hidden py-12 md:py-24 lg:py-32\">\n      <div className=\"container mx-auto px-4 md:px-6 2xl:max-w-[1400px]\">\n        <div className=\"mb-12 flex flex-col items-center space-y-4 text-center md:mb-20\">\n          <Badge className=\"px-3.5 py-1.5\">Smart Innovation</Badge>\n          <h2 className=\"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl\">\n            Your life at a glance\n          </h2>\n          <p className=\"text-muted-foreground max-w-[700px] md:text-xl/relaxed\">\n            Our smartwatch combines cutting-edge technology with elegant design\n            to help you stay connected, healthy, and productive.\n          </p>\n        </div>\n\n        {/* Main product image */}\n        <div className=\"mb-20 flex justify-center\">\n          <div className=\"relative aspect-square w-full max-w-md overflow-hidden rounded-xl border shadow-lg\">\n            <img\n              src=\"https://images.unsplash.com/photo-1617043786394-f977fa12eddf?q=80&w=1974&auto=format&fit=crop\"\n              alt=\"SmartWatch Pro X2\"\n              className=\"object-cover\"\n              sizes=\"(max-width: 768px) 100vw, 500px\"\n            />\n            <div className=\"absolute inset-0 flex items-end bg-gradient-to-t from-black/60 to-transparent\">\n              <div className=\"p-6 text-white\">\n                <Badge variant=\"secondary\" className=\"mb-2\">\n                  New Release\n                </Badge>\n                <h3 className=\"text-2xl font-semibold\">SmartWatch Pro X2</h3>\n                <p className=\"mt-1 text-white/80\">Intelligence on your wrist</p>\n              </div>\n            </div>\n          </div>\n        </div>\n\n        {/* Timeline features */}\n        <div className=\"relative\">\n          {/* Timeline center line */}\n          <div className=\"bg-border absolute top-0 bottom-0 left-1/2 hidden w-0.5 -translate-x-1/2 md:block\" />\n\n          {features.map((feature, index) => (\n            <div\n              key={feature.id}\n              className={cn(\n                'scroll-reveal relative mb-16 opacity-100 transition-all duration-700 md:mb-24',\n                index % 2 === 0 ? 'md:ml-0' : 'md:mr-0'\n              )}\n            >\n              {/* Timeline dot */}\n              <div className=\"border-background bg-primary absolute left-1/2 z-10 hidden h-8 w-8 -translate-x-1/2 items-center justify-center rounded-full border-4 md:flex\">\n                <span className=\"text-primary-foreground text-xs font-bold\">\n                  {feature.id}\n                </span>\n              </div>\n\n              <div\n                className={cn(\n                  'grid items-center gap-8 md:grid-cols-2',\n                  feature.position === 'right' ? 'md:grid-flow-row-dense' : ''\n                )}\n              >\n                {/* Feature image */}\n                <div\n                  className={cn(\n                    'overflow-hidden rounded-xl border shadow',\n                    feature.position === 'left'\n                      ? 'md:col-start-1'\n                      : 'md:col-start-2'\n                  )}\n                >\n                  <div className=\"relative aspect-video\">\n                    <img\n                      src={feature.image}\n                      alt={feature.title}\n                      className=\"object-cover\"\n                      sizes=\"(max-width: 768px) 100vw, 50vw\"\n                    />\n                  </div>\n                </div>\n\n                {/* Feature content */}\n                <div\n                  className={cn(\n                    'space-y-6',\n                    feature.position === 'left'\n                      ? 'md:col-start-2'\n                      : 'md:col-start-1',\n                    'flex flex-col justify-center'\n                  )}\n                >\n                  <div className=\"flex items-center space-x-3\">\n                    <div\n                      className={cn(\n                        'flex h-10 w-10 shrink-0 items-center justify-center rounded-full',\n                        feature.color\n                      )}\n                    >\n                      {feature.icon}\n                    </div>\n                    <h3 className=\"text-xl font-bold\">{feature.title}</h3>\n                  </div>\n\n                  <p className=\"text-muted-foreground\">{feature.description}</p>\n\n                  {/* Feature stats */}\n                  <div className=\"flex space-x-6\">\n                    {feature.stats.map((stat, i) => (\n                      <div key={i} className=\"text-center\">\n                        <div className=\"text-xl font-bold\">{stat.value}</div>\n                        <div className=\"text-muted-foreground text-xs tracking-wider uppercase\">\n                          {stat.label}\n                        </div>\n                      </div>\n                    ))}\n                  </div>\n\n                  <Button\n                    variant=\"outline\"\n                    size=\"sm\"\n                    className={cn(\n                      'w-fit',\n                      feature.position === 'right' ? 'md:self-end' : ''\n                    )}\n                  >\n                    Learn more\n                    <ArrowRight className=\"ml-2 h-4 w-4\" />\n                  </Button>\n                </div>\n              </div>\n            </div>\n          ))}\n        </div>\n\n        {/* CTA section */}\n        <div className=\"mx-auto mt-24 max-w-2xl space-y-8 text-center\">\n          <div className=\"space-y-4\">\n            <h3 className=\"text-2xl font-bold\">\n              Ready to experience the future?\n            </h3>\n            <p className=\"text-muted-foreground\">\n              The SmartWatch Pro X2 comes with a 45-day satisfaction guarantee\n              and 2-year warranty. Available in three elegant finishes: Midnight\n              Black, Silver Frost, and Rose Gold.\n            </p>\n          </div>\n\n          <div className=\"flex flex-wrap justify-center gap-4\">\n            <Button size=\"lg\" asChild>\n              <a href=\"#\">\n                Pre-order Now\n                <ArrowRight className=\"ml-2 h-4 w-4\" />\n              </a>\n            </Button>\n            <Button size=\"lg\" variant=\"outline\" asChild>\n              <a href=\"#\">View Full Specifications</a>\n            </Button>\n          </div>\n\n          <div className=\"pt-6\">\n            <div className=\"text-muted-foreground flex items-center justify-center gap-6\">\n              <div className=\"flex items-center\">\n                <Zap className=\"text-primary mr-2 h-5 w-5\" />\n                <span>Fast Charging</span>\n              </div>\n              <div className=\"flex items-center\">\n                <Droplet className=\"text-primary mr-2 h-5 w-5\" />\n                <span>Water Resistant</span>\n              </div>\n              <div className=\"flex items-center\">\n                <Heart className=\"text-primary mr-2 h-5 w-5\" />\n                <span>Health Tracking</span>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n","type":"registry:component","target":"components/blocks/ecommerce/product-features/feature-timeline.tsx"},{"path":"components/ui/badge.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  \"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n        secondary:\n          \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n        destructive:\n          \"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20\",\n        outline:\n          \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nfunction Badge({\n  className,\n  variant = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"span\"> &\n  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n  const Comp = asChild ? Slot.Root : \"span\"\n\n  return (\n    <Comp\n      data-slot=\"badge\"\n      data-variant={variant}\n      className={cn(badgeVariants({ variant }), className)}\n      {...props}\n    />\n  )\n}\n\nexport { Badge, badgeVariants }\n","type":"registry:ui","target":"components/ui/badge.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"}],"description":"A vertical timeline that walks through product features in sequence. Useful for showing a setup flow or how capabilities build on each other.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}