"use client";

import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { ShoppingBag } from 'lucide-react';

export default function ShopPage() {
  // Sample products data matching the ProductCardTwo schema
  const products = [
    {
      id: "1",      brand: "BrewMoment",      name: "Premium Coffee Blend",      price: "$24.99",      rating: 5,
      reviewCount: "2.1k",      imageSrc: "/coffee-blend.jpg",      imageAlt: "Premium Coffee Blend",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "2",      brand: "BrewMoment",      name: "Espresso Roast",      price: "$28.99",      rating: 4,
      reviewCount: "1.8k",      imageSrc: "/espresso-roast.jpg",      imageAlt: "Espresso Roast",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "3",      brand: "BrewMoment",      name: "Cold Brew Concentrate",      price: "$19.99",      rating: 5,
      reviewCount: "3.2k",      imageSrc: "/cold-brew.jpg",      imageAlt: "Cold Brew Concentrate",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "4",      brand: "BrewMoment",      name: "French Roast",      price: "$26.99",      rating: 4,
      reviewCount: "1.5k",      imageSrc: "/french-roast.jpg",      imageAlt: "French Roast",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "5",      brand: "BrewMoment",      name: "Decaf Delight",      price: "$22.99",      rating: 4,
      reviewCount: "890",      imageSrc: "/decaf-delight.jpg",      imageAlt: "Decaf Delight",      onProductClick: () => console.log('Product clicked')
    },
    {
      id: "6",      brand: "BrewMoment",      name: "Arabica Single Origin",      price: "$32.99",      rating: 5,
      reviewCount: "4.1k",      imageSrc: "/arabica-single.jpg",      imageAlt: "Arabica Single Origin",      onProductClick: () => console.log('Product clicked')
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="mediumLargeSizeLargeTitles"
      background="circleGradient"
      cardStyle="subtle-shadow"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      <NavbarLayoutFloatingOverlay
        brandName="BrewMoment"
        navItems={[
          { name: "Home", id: "/" },
          { name: "Shop", id: "/shop" }
        ]}
        button={{
          text: "Order Now",          href: "contact"
        }}
      />
      
      <main className="min-h-screen pt-20">
        <ProductCardTwo
          products={products}
          title="Our Coffee Collection"
          description="Discover our premium selection of expertly roasted coffee beans, carefully sourced from the world's finest coffee regions"
          tag="Best Sellers"
          tagIcon={ShoppingBag}
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          buttons={[
            {
              text: "View All Products",              href: "/shop"
            },
            {
              text: "Contact Us",              href: "/contact"
            }
          ]}
        />
      </main>
      
      <FooterLogoEmphasis
        logoText="BrewMoment"
        columns={[
          {
            items: [
              { label: "Home", href: "/" },
              { label: "Shop", href: "/shop" }
            ]
          },
          {
            items: [
              { label: "Privacy Policy" },
              { label: "Terms of Service" }
            ]
          },
          {
            items: [
              { label: "Follow Us" },
              { label: "Instagram" },
              { label: "Facebook" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}