"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import FooterBase from '@/components/sections/footer/FooterBase';
import { ShoppingCart } from 'lucide-react';

export default function ShopPage() {
  const products = [
    {
      id: "1",      name: "Ethiopian Yirgacheffe Coffee Beans",      price: "$24.99",      imageSrc: "/coffee-beans-1.jpg",      imageAlt: "Ethiopian Yirgacheffe Coffee Beans",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity:", qty),
      onFavorite: () => console.log("Added to favorites")
    },
    {
      id: "2",      name: "Colombian Supremo Coffee",      price: "$22.99",      imageSrc: "/coffee-beans-2.jpg",      imageAlt: "Colombian Supremo Coffee",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity:", qty),
      onFavorite: () => console.log("Added to favorites")
    },
    {
      id: "3",      name: "French Roast Dark Blend",      price: "$19.99",      imageSrc: "/coffee-beans-3.jpg",      imageAlt: "French Roast Dark Blend",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity:", qty),
      onFavorite: () => console.log("Added to favorites")
    },
    {
      id: "4",      name: "Guatemalan Antigua Coffee",      price: "$26.99",      imageSrc: "/coffee-beans-4.jpg",      imageAlt: "Guatemalan Antigua Coffee",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity:", qty),
      onFavorite: () => console.log("Added to favorites")
    },
    {
      id: "5",      name: "Brazilian Santos Coffee",      price: "$21.99",      imageSrc: "/coffee-beans-5.jpg",      imageAlt: "Brazilian Santos Coffee",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity:", qty),
      onFavorite: () => console.log("Added to favorites")
    },
    {
      id: "6",      name: "Costa Rican Tarrazú Coffee",      price: "$28.99",      imageSrc: "/coffee-beans-6.jpg",      imageAlt: "Costa Rican Tarrazú Coffee",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity:", qty),
      onFavorite: () => console.log("Added to favorites")
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="mediumLarge"
      background="floatingGradient"
      cardStyle="soft-shadow"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      <NavbarLayoutFloatingInline
        brandName="BrewHaven"
        navItems={[
          { name: "Home", id: "/" },
          { name: "Shop", id: "/shop" }
        ]}
        button={{
          text: "Order Now",          href: "https://example.com/order"
        }}
      />
      
      <main className="min-h-screen">
        <ProductCardThree
          products={products}
          title="Coffee Shop"
          description="Add your favorite premium coffee beans to cart and enjoy the perfect brew at home"
          tag="Premium Quality"
          tagIcon={ShoppingCart}
          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>
      
      <FooterBase
        logoText="BrewHaven"
        copyrightText="© 2025 BrewHaven Coffee. All rights reserved."
        columns={[
          {
            title: "Menu",            items: [
              { label: "Coffee Drinks", href: "products" },
              { label: "Brewing Guide", href: "menu" },
              { label: "Gift Cards", href: "https://example.com/gifts" }
            ]
          },
          {
            title: "Company",            items: [
              { label: "About Us", href: "about" },
              { label: "Our Story", href: "about" },
              { label: "Sustainability", href: "https://example.com/sustainability" }
            ]
          },
          {
            title: "Connect",            items: [
              { label: "Contact", href: "contact" },
              { label: "Instagram", href: "https://instagram.com" },
              { label: "Newsletter", href: "contact" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}