{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"ecommerce-product-features-feature-accordion","type":"registry:block","title":"Feature Accordion","files":[{"path":"components/blocks/ecommerce/product-features/feature-accordion.tsx","content":"import { Button } from '@/components/ui/button';\nimport {\n  Accordion,\n  AccordionContent,\n  AccordionItem,\n  AccordionTrigger,\n} from '@/components/ui/accordion';\nimport { ChevronRight } from 'lucide-react';\n\nexport default function FeatureAccordion() {\n  const features = [\n    {\n      id: 'feature-1',\n      title: 'Swiss-Made Movement',\n      description:\n        'Each timepiece is powered by a precision Swiss movement, renowned for its accuracy and reliability.',\n      details: [\n        'Self-winding automatic mechanism',\n        '28,800 vibrations per hour for smooth second hand movement',\n        'Power reserve of up to 48 hours',\n        '21 jewel bearings reducing friction and wear',\n      ],\n      icon: (\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"h-5 w-5\"\n        >\n          <circle cx=\"12\" cy=\"12\" r=\"10\" />\n          <polyline points=\"12 6 12 12 16 14\" />\n        </svg>\n      ),\n    },\n    {\n      id: 'feature-2',\n      title: 'Scratch-Resistant Sapphire Crystal',\n      description:\n        'Protected by one of the hardest materials on earth, your watch face remains pristine through daily wear.',\n      details: [\n        'Virtually scratch-proof with 9 on the Mohs hardness scale',\n        'Anti-reflective coating for optimal visibility',\n        'UV-resistant to prevent discoloration',\n        '2.5mm thickness for enhanced durability',\n      ],\n      icon: (\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"h-5 w-5\"\n        >\n          <path d=\"M6 2L2 6l16 16 4-4L6 2z\" />\n          <path d=\"M10 6l4 4\" />\n        </svg>\n      ),\n    },\n    {\n      id: 'feature-3',\n      title: '316L Stainless Steel Case',\n      description:\n        'Crafted from premium marine-grade stainless steel for exceptional durability and a luxurious finish.',\n      details: [\n        'Corrosion-resistant in saltwater environments',\n        'Hypoallergenic material for sensitive skin',\n        'Polished to a mirror finish with precision detailing',\n        'Maintains integrity in extreme temperatures',\n      ],\n      icon: (\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"h-5 w-5\"\n        >\n          <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\" />\n        </svg>\n      ),\n    },\n    {\n      id: 'feature-4',\n      title: 'Water Resistance to 200M',\n      description:\n        'Engineered for serious water exposure, from swimming to professional marine activities.',\n      details: [\n        'Triple-sealed screw-down crown',\n        'Double-gasket system for enhanced sealing',\n        'Pressure-tested beyond standard requirements',\n        'Suitable for diving, snorkeling, and water sports',\n      ],\n      icon: (\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"h-5 w-5\"\n        >\n          <path d=\"M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z\" />\n        </svg>\n      ),\n    },\n    {\n      id: 'feature-5',\n      title: 'Italian Leather Strap',\n      description:\n        'Hand-selected premium calfskin leather, tanned and crafted by skilled artisans in Italy.',\n      details: [\n        'Full-grain leather that develops a beautiful patina over time',\n        'Hand-stitched with waxed thread for durability',\n        'Quick-release spring bars for easy strap changes',\n        'Vegetable-tanned using traditional methods',\n      ],\n      icon: (\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          viewBox=\"0 0 24 24\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"2\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"h-5 w-5\"\n        >\n          <path d=\"M12 2c3 0 7 1.3 7 4v9.7a5.8 5.8 0 1 1-11.6 0V6c0-2.7 4-4 7-4z\" />\n          <path d=\"M5 10v4.3a6.3 6.3 0 0 0 12.6 0V10\" />\n          <path d=\"M5 13h12\" />\n        </svg>\n      ),\n    },\n  ];\n\n  return (\n    <section className=\"bg-background w-full 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=\"grid items-start gap-8 lg:grid-cols-2\">\n          {/* Left column - Feature image */}\n          <div className=\"bg-background relative overflow-hidden rounded-xl border p-2\">\n            <div className=\"relative aspect-video overflow-hidden rounded-lg shadow-lg\">\n              <img\n                src=\"https://images.unsplash.com/photo-1614164185128-e4ec99c436d7?q=80&w=2071&auto=format&fit=crop\"\n                alt=\"Luxury watch with leather strap\"\n                className=\"object-cover\"\n                sizes=\"(max-width: 768px) 100vw, 50vw\"\n              />\n              <div className=\"absolute inset-0 rounded-lg ring-1 ring-black/10 ring-inset\"></div>\n            </div>\n            <div className=\"bg-primary/30 absolute -bottom-6 -left-6 h-24 w-24 rounded-full blur-2xl\"></div>\n            <div className=\"bg-primary/30 absolute -top-6 -right-6 h-24 w-24 rounded-full blur-2xl\"></div>\n          </div>\n\n          {/* Right column - Feature accordion */}\n          <div className=\"flex flex-col space-y-6\">\n            <div className=\"space-y-2\">\n              <div className=\"bg-primary/10 text-primary inline-block rounded-full px-3 py-1 text-sm\">\n                Exceptional Craftsmanship\n              </div>\n              <h2 className=\"text-3xl font-bold tracking-tighter sm:text-4xl\">\n                Precision engineered for the discerning collector\n              </h2>\n              <p className=\"text-muted-foreground max-w-[600px]\">\n                Discover the extraordinary features that make our timepieces\n                worthy of passing down through generations.\n              </p>\n            </div>\n\n            <Accordion type=\"single\" collapsible className=\"w-full\">\n              {features.map((feature) => (\n                <AccordionItem key={feature.id} value={feature.id}>\n                  <AccordionTrigger className=\"group\">\n                    <div className=\"flex items-center gap-3\">\n                      <div className=\"bg-primary/10 text-primary group-hover:bg-primary/20 flex h-10 w-10 shrink-0 items-center justify-center rounded-full transition-colors\">\n                        {feature.icon}\n                      </div>\n                      <div className=\"text-left\">\n                        <h3 className=\"text-base font-medium\">\n                          {feature.title}\n                        </h3>\n                      </div>\n                    </div>\n                  </AccordionTrigger>\n                  <AccordionContent>\n                    <div className=\"pt-2 pb-4 pl-[52px]\">\n                      <p className=\"text-muted-foreground mb-3\">\n                        {feature.description}\n                      </p>\n                      <ul className=\"space-y-2\">\n                        {feature.details.map((detail, index) => (\n                          <li key={index} className=\"flex items-start gap-2\">\n                            <ChevronRight className=\"text-primary mt-1 h-4 w-4 shrink-0\" />\n                            <span className=\"text-sm\">{detail}</span>\n                          </li>\n                        ))}\n                      </ul>\n                    </div>\n                  </AccordionContent>\n                </AccordionItem>\n              ))}\n            </Accordion>\n\n            <div className=\"flex flex-col gap-3 pt-4 sm:flex-row\">\n              <Button size=\"lg\" asChild>\n                <a href=\"#\">Shop Collection</a>\n              </Button>\n              <Button size=\"lg\" variant=\"outline\" asChild>\n                <a href=\"#\">Book Consultation</a>\n              </Button>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n","type":"registry:component","target":"components/blocks/ecommerce/product-features/feature-accordion.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"},{"path":"components/ui/accordion.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Accordion as AccordionPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\nimport { ChevronDownIcon, ChevronUpIcon } from \"lucide-react\"\n\nfunction Accordion({\n  className,\n  ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Root>) {\n  return (\n    <AccordionPrimitive.Root\n      data-slot=\"accordion\"\n      className={cn(\"flex w-full flex-col\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction AccordionItem({\n  className,\n  ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Item>) {\n  return (\n    <AccordionPrimitive.Item\n      data-slot=\"accordion-item\"\n      className={cn(\"not-last:border-b\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction AccordionTrigger({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {\n  return (\n    <AccordionPrimitive.Header className=\"flex\">\n      <AccordionPrimitive.Trigger\n        data-slot=\"accordion-trigger\"\n        className={cn(\n          \"group/accordion-trigger relative flex flex-1 items-start justify-between rounded-md border border-transparent py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground\",\n          className\n        )}\n        {...props}\n      >\n        {children}\n        <ChevronDownIcon data-slot=\"accordion-trigger-icon\" className=\"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden\" />\n        <ChevronUpIcon data-slot=\"accordion-trigger-icon\" className=\"pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline\" />\n      </AccordionPrimitive.Trigger>\n    </AccordionPrimitive.Header>\n  )\n}\n\nfunction AccordionContent({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Content>) {\n  return (\n    <AccordionPrimitive.Content\n      data-slot=\"accordion-content\"\n      className=\"overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up\"\n      {...props}\n    >\n      <div\n        className={cn(\n          \"pt-0 pb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4\",\n          className\n        )}\n      >\n        {children}\n      </div>\n    </AccordionPrimitive.Content>\n  )\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n","type":"registry:ui","target":"components/ui/accordion.tsx"}],"description":"Stacked panels that expand one feature at a time so each gets full focus. A clean way to present detailed product benefits without a wall of text.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}