"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { ShoppingBag } from 'lucide-react';

export default function ShopPage() {
  const products = [
    {
      id: "1",      name: "Premium Coffee Blend",      price: "$24.99",      imageSrc: "/api/placeholder/400/400",      imageAlt: "Premium Coffee Blend",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "2",      name: "Local Brew Mug",      price: "$14.99",      imageSrc: "/api/placeholder/400/400",      imageAlt: "Local Brew Mug",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "3",      name: "Artisan Espresso",      price: "$32.99",      imageSrc: "/api/placeholder/400/400",      imageAlt: "Artisan Espresso",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "4",      name: "Coffee Grinder",      price: "$89.99",      imageSrc: "/api/placeholder/400/400",      imageAlt: "Coffee Grinder",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "5",      name: "French Press",      price: "$45.99",      imageSrc: "/api/placeholder/400/400",      imageAlt: "French Press",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "6",      name: "Cold Brew Maker",      price: "$65.99",      imageSrc: "/api/placeholder/400/400",      imageAlt: "Cold Brew Maker",      onProductClick: () => console.log('Product clicked')
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="medium"
      sizing="largeSmall"
      background="floatingGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <NavbarStyleApple
        brandName="Local Brew"
        navItems={[
          { name: "Home", id: "/" },
          { name: "Shop", id: "/shop" }
        ]}
      />
      
      <main className="min-h-screen">
        <ProductCardOne
          products={products}
          title="Shop Our Collection"
          description="Discover premium coffee products, brewing equipment, and merchandise crafted for true coffee enthusiasts."
          tag="Featured Items"
          tagIcon={ShoppingBag}
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          buttons={[
            {
              text: "View All Products",              href: "/shop"
            }
          ]}
        />
      </main>
      
      <FooterSimple
        columns={[
          {
            title: "Cafe",            items: [
              { label: "Menu", href: "#" },
              { label: "About", href: "#" },
              { label: "Locations", href: "#" }
            ]
          },
          {
            title: "Shop",            items: [
              { label: "Merchandise", href: "#" },
              { label: "Coffee Beans", href: "#" },
              { label: "Gift Cards", href: "#" }
            ]
          },
          {
            title: "Connect",            items: [
              { label: "Contact", href: "#" },
              { label: "Instagram", href: "#" },
              { label: "Newsletter", href: "#" }
            ]
          },
          {
            title: "Legal",            items: [
              { label: "Privacy", href: "#" },
              { label: "Terms", href: "#" }
            ]
          }
        ]}
        bottomLeftText="© 2025 Local Brew. All rights reserved."
        bottomRightText="Made with love for coffee lovers"
      />
    </ThemeProvider>
  );
}