{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "product-card",
  "type": "registry:item",
  "title": "Product Card",
  "description": "Product card with gradient background header, centered image, and floating heart icon. Features product title, attribute chips, description text, and bottom row with price on left and 'Add to cart' button on right.",
  "dependencies": [
    "@mui/icons-material",
    "@mui/material",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "components/product-card/product-card.tsx",
      "target": "src/mui-treasury/components/product-card/product-card.tsx",
      "content": "'use client';\n\nimport * as React from 'react';\n\nimport { Favorite, FavoriteBorder } from '@mui/icons-material';\nimport {\n  Box,\n  Button,\n  Card,\n  CardContent,\n  Chip,\n  IconButton,\n  Stack,\n  Typography,\n} from '@mui/material';\n\ninterface ProductCardProps {\n  title?: string;\n  price?: string;\n  description?: string;\n  attributes?: { label: string; value: string }[];\n  imageUrl?: string;\n  imageAlt?: string;\n  onAddToCart?: () => void;\n  onToggleFavorite?: (isFavorite: boolean) => void;\n  isFavorite?: boolean;\n  className?: string;\n}\n\nexport function ProductCard({\n  title = 'Acme Running Shoe',\n  price = '$69.99',\n  description = \"Crossing hardwood comfort with off-court flair. '80s-inspired construction, bold details and nothin'-but-net style.\",\n  attributes = [\n    { label: 'Size', value: 'EU38' },\n    { label: 'Color', value: 'BLACK/WHITE' },\n  ],\n  imageUrl = 'https://placehold.co/400x300',\n  imageAlt = 'Product image',\n  onAddToCart,\n  onToggleFavorite,\n  isFavorite = false,\n  className,\n}: ProductCardProps) {\n  const [favorite, setFavorite] = React.useState(isFavorite);\n\n  const handleToggleFavorite = () => {\n    const newFavoriteState = !favorite;\n    setFavorite(newFavoriteState);\n    onToggleFavorite?.(newFavoriteState);\n  };\n\n  const handleAddToCart = () => {\n    onAddToCart?.();\n  };\n\n  return (\n    <Card\n      className={className}\n      sx={{\n        maxWidth: 320,\n        borderRadius: 3,\n        overflow: 'hidden',\n      }}\n    >\n      <Box\n        sx={(theme) => ({\n          position: 'relative',\n          height: 200,\n          background: `linear-gradient(135deg, ${\n            (theme.vars || theme).palette.primary.main\n          } 0%, ${(theme.vars || theme).palette.primary.light} 100%)`,\n          display: 'flex',\n          alignItems: 'center',\n          justifyContent: 'center',\n        })}\n      >\n        <IconButton\n          onClick={handleToggleFavorite}\n          aria-label={favorite ? 'Remove from favorites' : 'Add to favorites'}\n          sx={{\n            position: 'absolute',\n            top: 12,\n            right: 12,\n            backgroundColor: 'rgba(255, 255, 255, 0.2)',\n          }}\n        >\n          {favorite ? (\n            <Favorite sx={{ color: 'error.main' }} />\n          ) : (\n            <FavoriteBorder />\n          )}\n        </IconButton>\n\n        <Box\n          component=\"img\"\n          src={imageUrl}\n          alt={imageAlt}\n          sx={{\n            width: '100%',\n            height: '100%',\n            objectFit: 'cover',\n          }}\n        />\n      </Box>\n      <CardContent sx={{ p: 2 }}>\n        <Stack spacing={2}>\n          <Typography\n            variant=\"h6\"\n            component=\"h3\"\n            sx={{\n              fontWeight: 'bold',\n            }}\n          >\n            {title}\n          </Typography>\n\n          <Stack\n            direction=\"row\"\n            spacing={1}\n            useFlexGap\n            sx={{\n              flexWrap: 'wrap',\n              mt: -1,\n            }}\n          >\n            {attributes.map((attr, index) => (\n              <Chip\n                key={index}\n                label={attr.value}\n                variant=\"outlined\"\n                size=\"small\"\n                sx={(theme) => ({\n                  fontSize: '0.875rem',\n                  borderColor: (theme.vars || theme).palette.divider,\n                  color: (theme.vars || theme).palette.text.secondary,\n                })}\n              />\n            ))}\n          </Stack>\n\n          <Typography\n            variant=\"body2\"\n            sx={{\n              color: 'text.secondary',\n              lineHeight: 1.5,\n            }}\n          >\n            {description}\n          </Typography>\n\n          <Stack\n            direction=\"row\"\n            spacing={1}\n            sx={{\n              justifyContent: 'space-between',\n              alignItems: 'flex-end',\n            }}\n          >\n            <Box>\n              <Typography\n                variant=\"caption\"\n                sx={{\n                  color: 'text.secondary',\n                  display: 'block',\n                }}\n              >\n                PRICE\n              </Typography>\n              <Typography\n                variant=\"h5\"\n                sx={{\n                  fontWeight: 'bold',\n                  color: 'text.primary',\n                }}\n              >\n                {price}\n              </Typography>\n            </Box>\n            <Button\n              variant=\"contained\"\n              onClick={handleAddToCart}\n              sx={(theme) => ({\n                borderRadius: 2,\n                px: 3,\n                py: 1,\n                textTransform: 'none',\n                fontWeight: 600,\n                background: `linear-gradient(135deg, ${\n                  (theme.vars || theme).palette.primary.main\n                } 0%, ${(theme.vars || theme).palette.primary.light} 100%)`,\n                '&:hover': {\n                  background: `linear-gradient(135deg, ${\n                    (theme.vars || theme).palette.primary.dark\n                  } 0%, ${(theme.vars || theme).palette.primary.main} 100%)`,\n                },\n              })}\n            >\n              Add to cart\n            </Button>\n          </Stack>\n        </Stack>\n      </CardContent>\n    </Card>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "components/product-card/index.ts",
      "target": "src/mui-treasury/components/product-card/index.ts",
      "content": "export * from './product-card';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "screenshot": "/og/product-card.png",
    "category": "block",
    "exportName": "ProductCard",
    "subcategory": "ecommerce"
  }
}