{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"ecommerce-product-overview-compact-overview","type":"registry:block","title":"Compact Overview","files":[{"path":"components/blocks/ecommerce/product-overview/compact-overview.tsx","content":"import { Button } from '@/components/ui/button';\nimport { Heart, Star, ChevronRight, ChevronLeft } from 'lucide-react';\nimport { useState } from 'react';\n\nexport default function CompactOverview() {\n  const [currentImageIndex, setCurrentImageIndex] = useState(0);\n  const images = [\n    'https://images.unsplash.com/photo-1523275335684-37898b6baf30',\n    'https://images.unsplash.com/photo-1523275335684-37898b6baf30',\n    'https://images.unsplash.com/photo-1523275335684-37898b6baf30',\n    'https://images.unsplash.com/photo-1523275335684-37898b6baf30',\n  ];\n\n  return (\n    <div className=\"mx-auto w-full max-w-2xl p-6\">\n      {/* Image Carousel */}\n      <div className=\"bg-muted relative aspect-square\">\n        <img\n          src={images[currentImageIndex]}\n          alt={`Product view ${currentImageIndex + 1}`}\n          className=\"object-cover\"\n          sizes=\"(max-width: 768px) 100vw, (max-width: 1536px) 50vw, 33vw\"\n          fetchPriority={currentImageIndex === 0 ? 'high' : 'auto'}\n        />\n\n        {/* Navigation Buttons */}\n        <div className=\"absolute inset-0 flex items-center justify-between p-4\">\n          <Button\n            size=\"icon\"\n            variant=\"outline\"\n            className=\"bg-background/80 rounded-full backdrop-blur-sm\"\n            onClick={() =>\n              setCurrentImageIndex((prev) =>\n                prev === 0 ? images.length - 1 : prev - 1\n              )\n            }\n          >\n            <ChevronLeft className=\"h-4 w-4\" />\n          </Button>\n          <Button\n            size=\"icon\"\n            variant=\"outline\"\n            className=\"bg-background/80 rounded-full backdrop-blur-sm\"\n            onClick={() =>\n              setCurrentImageIndex((prev) =>\n                prev === images.length - 1 ? 0 : prev + 1\n              )\n            }\n          >\n            <ChevronRight className=\"h-4 w-4\" />\n          </Button>\n        </div>\n\n        {/* Image Indicators */}\n        <div className=\"absolute bottom-4 left-1/2 flex -translate-x-1/2 gap-1.5\">\n          {images.map((_, index) => (\n            <button\n              key={index}\n              className={`h-1.5 w-1.5 rounded-full transition-all ${\n                index === currentImageIndex ? 'w-3 bg-white' : 'bg-white/50'\n              }`}\n              onClick={() => setCurrentImageIndex(index)}\n            />\n          ))}\n        </div>\n\n        {/* Wishlist Button */}\n        <Button\n          size=\"icon\"\n          variant=\"outline\"\n          className=\"bg-background/80 absolute top-4 right-4 rounded-full backdrop-blur-sm\"\n        >\n          <Heart className=\"h-4 w-4\" />\n        </Button>\n      </div>\n\n      {/* Product Info */}\n      <div className=\"space-y-4 p-4\">\n        <div className=\"flex items-start justify-between gap-4\">\n          <div>\n            <h1 className=\"text-xl font-semibold\">Classic Leather Watch</h1>\n            <div className=\"mt-1 flex items-center gap-1\">\n              <Star className=\"fill-primary text-primary h-3.5 w-3.5\" />\n              <span className=\"text-sm font-medium\">4.9</span>\n              <span className=\"text-muted-foreground text-sm\">(128)</span>\n            </div>\n          </div>\n          <div className=\"text-right\">\n            <div className=\"font-semibold\">$299.00</div>\n            <div className=\"flex items-center gap-1 text-sm\">\n              <span className=\"text-muted-foreground line-through\">$399</span>\n              <span className=\"font-medium text-green-600\">-25%</span>\n            </div>\n          </div>\n        </div>\n\n        <div className=\"space-y-3\">\n          <div>\n            <label className=\"mb-1.5 block text-sm font-medium\">Color</label>\n            <div className=\"flex gap-2\">\n              <button className=\"h-8 w-8 rounded-full bg-black ring-2 ring-black ring-offset-2\"></button>\n              <button className=\"bg-brown-500 h-8 w-8 rounded-full\"></button>\n              <button className=\"h-8 w-8 rounded-full bg-slate-200\"></button>\n            </div>\n          </div>\n\n          <div>\n            <label className=\"mb-1.5 block text-sm font-medium\">Size</label>\n            <div className=\"grid grid-cols-3 gap-2\">\n              <Button variant=\"outline\" size=\"sm\">\n                38mm\n              </Button>\n              <Button variant=\"outline\" size=\"sm\">\n                42mm\n              </Button>\n              <Button variant=\"outline\" size=\"sm\">\n                44mm\n              </Button>\n            </div>\n          </div>\n        </div>\n\n        <div className=\"space-y-2 pt-4\">\n          <Button className=\"w-full\">Add to Cart</Button>\n          <Button variant=\"outline\" className=\"w-full\">\n            Buy Now\n          </Button>\n        </div>\n\n        <div className=\"border-t pt-4\">\n          <div className=\"grid grid-cols-3 gap-2 text-center text-xs\">\n            <div>\n              <span className=\"block font-medium\">Free Shipping</span>\n              <span className=\"text-muted-foreground block\">\n                2-3 business days\n              </span>\n            </div>\n            <div>\n              <span className=\"block font-medium\">Free Returns</span>\n              <span className=\"text-muted-foreground block\">\n                Within 30 days\n              </span>\n            </div>\n            <div>\n              <span className=\"block font-medium\">Warranty</span>\n              <span className=\"text-muted-foreground block\">\n                2 years coverage\n              </span>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/ecommerce/product-overview/compact-overview.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 tight product layout that fits the image, price, options, and buy button above the fold. Built for small screens and quick mobile purchases.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}