import { useState } from "react";
import { toast } from "sonner";
import { Link } from "react-router-dom";
import { Button } from "@/components/ui/button";
import { Card, CardContent } from "@/components/ui/card";
import { Badge } from "@/components/ui/badge";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog";
import { Separator } from "@/components/ui/separator";
import { Avatar, AvatarFallback } from "@/components/ui/avatar";
import {
Star, Heart, Minus, Plus, ChevronRight, Truck, RotateCcw, ShieldCheck, ShoppingBag, Flame, ZoomIn
} from "lucide-react";
import Header from "@/components/Header";
import Footer from "@/components/Footer";
import { useCart } from "@/lib/cart-context";
const thumbnails = [
"from-rose-100 to-stone-200",
"from-stone-100 to-rose-100",
"from-amber-100 to-stone-100",
"from-stone-200 to-amber-100",
];
const colors = [
{ name: "Black", class: "bg-stone-900" },
{ name: "Cognac", class: "bg-amber-700" },
{ name: "Rose", class: "bg-rose-400" },
{ name: "Stone", class: "bg-stone-400" },
];
const sizes = ["XS", "S", "M", "L", "XL", "XXL"];
const reviews = [
{ name: "Sarah M.", date: "2 weeks ago", rating: 5, text: "Absolutely stunning quality. The leather is soft yet durable and the fit is perfect. Worth every penny!", avatar: "SM" },
{ name: "James K.", date: "1 month ago", rating: 4, text: "Great jacket overall. Runs slightly large so consider sizing down. The color is rich and beautiful.", avatar: "JK" },
{ name: "Emily R.", date: "1 month ago", rating: 5, text: "This is my third purchase from StyleHaus and they never disappoint. The craftsmanship is exceptional.", avatar: "ER" },
];
const relatedProducts = [
{ id: 10, name: "Satin Blouse", price: 89, gradient: "from-rose-50 to-rose-100", rating: 4 },
{ id: 11, name: "Tailored Wool Coat", price: 385, gradient: "from-stone-200 to-stone-400", rating: 5 },
{ id: 7, name: "Organic Cotton Tee", price: 45, gradient: "from-rose-100 to-rose-200", rating: 4 },
{ id: 8, name: "Velvet Midi Skirt", price: 115, gradient: "from-stone-300 to-stone-100", rating: 5 },
];
export default function ProductDetailPage() {
const [selectedImage, setSelectedImage] = useState(0);
const [selectedColor, setSelectedColor] = useState("Black");
const [selectedSize, setSelectedSize] = useState("M");
const [quantity, setQuantity] = useState(1);
const [wishlisted, setWishlisted] = useState(false);
const { addItem } = useCart();
const renderStars = (count: number) =>
Array.from({ length: 5 }, (_, i) => (
Timeless silhouette crafted from premium full-grain leather. Features a tailored fit with minimal hardware for a clean, modern aesthetic.
Our Classic Leather Jacket is the cornerstone of any wardrobe. Made from hand-selected full-grain leather that develops a beautiful patina over time, this jacket is designed to be your companion for years to come. The tailored fit flatters every body type while allowing comfortable layering.
Based on 128 reviews
{review.text}
On all orders over $100. Delivery in 5-7 business days.
Not satisfied? Return within 30 days for a full refund.
\${product.price}