"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FooterMedia from '@/components/sections/footer/FooterMedia';

export default function ShopPage() {
  // Sample bakery products data
  const products = [
    {
      id: "1",      brand: "Sweet Bakery",      name: "Classic Sourdough Bread",      price: "$8.50",      rating: 5,
      reviewCount: "2.1k",      imageSrc: "/api/placeholder/400/300",      imageAlt: "Fresh sourdough bread loaf",      onProductClick: () => console.log("Product clicked")
    },
    {
      id: "2",      brand: "Sweet Bakery",      name: "Chocolate Croissant",      price: "$4.25",      rating: 4,
      reviewCount: "1.8k",      imageSrc: "/api/placeholder/400/300",      imageAlt: "Buttery chocolate croissant",      onProductClick: () => console.log("Product clicked")
    },
    {
      id: "3",      brand: "Sweet Bakery",      name: "Red Velvet Cupcake",      price: "$3.75",      rating: 5,
      reviewCount: "3.2k",      imageSrc: "/api/placeholder/400/300",      imageAlt: "Delicious red velvet cupcake",      onProductClick: () => console.log("Product clicked")
    },
    {
      id: "4",      brand: "Sweet Bakery",      name: "Blueberry Muffin",      price: "$2.95",      rating: 4,
      reviewCount: "1.5k",      imageSrc: "/api/placeholder/400/300",      imageAlt: "Fresh blueberry muffin",      onProductClick: () => console.log("Product clicked")
    },
    {
      id: "5",      brand: "Sweet Bakery",      name: "Artisan Baguette",      price: "$5.50",      rating: 5,
      reviewCount: "892",      imageSrc: "/api/placeholder/400/300",      imageAlt: "Crispy artisan baguette",      onProductClick: () => console.log("Product clicked")
    },
    {
      id: "6",      brand: "Sweet Bakery",      name: "Strawberry Tart",      price: "$6.75",      rating: 5,
      reviewCount: "2.7k",      imageSrc: "/api/placeholder/400/300",      imageAlt: "Fresh strawberry tart",      onProductClick: () => console.log("Product clicked")
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="small"
      sizing="largeSmallSizeMediumTitles"
      background="floatingGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="medium"
    >
      <NavbarLayoutFloatingOverlay
        brandName="Sweet Bakery"
        navItems={[
          { name: "Home", id: "/" },
          { name: "Shop", id: "/shop" }
        ]}
        button={{
          text: "Order Now",          href: "/shop"
        }}
      />
      
      <main className="min-h-screen pt-20">
        <ProductCardTwo
          products={products}
          title="Our Bakery Products"
          description="Discover our fresh-baked collection of artisan breads, pastries, and desserts made with the finest ingredients"
          tag="Fresh Daily"
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          buttons={[
            {
              text: "View All Products",              href: "/shop"
            }
          ]}
        />
      </main>
      
      <FooterMedia
        imageSrc="/api/placeholder/800/400"
        imageAlt="Professional bakery kitchen"
        logoText="Sweet Bakery"
        copyrightText="© 2025 Sweet Bakery. Handcrafted with love."
        columns={[
          {
            title: "Products",            items: [
              { label: "Bread & Loaves", href: "/shop" },
              { label: "Pastries", href: "/shop" },
              { label: "Cakes & Desserts", href: "/shop" },
              { label: "Seasonal Items", href: "/shop" }
            ]
          },
          {
            title: "Company",            items: [
              { label: "About Us", href: "/" },
              { label: "Our Story", href: "/" },
              { label: "Careers", href: "/" },
              { label: "Blog", href: "/" }
            ]
          },
          {
            title: "Support",            items: [
              { label: "Contact Us", href: "/" },
              { label: "FAQ", href: "/" },
              { label: "Order Tracking", href: "/" },
              { label: "Return Policy", href: "/" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}