"use client"

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

export default function ShopPage() {
  const products = [
    {
      id: "1",      name: "Ethiopian Single Origin Coffee",      price: "$24.99",      imageSrc: "https://images.unsplash.com/photo-1559056199-641a0ac8b55e?w=400&h=400&fit=crop",      imageAlt: "Ethiopian Single Origin Coffee beans",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity changed:", qty),
      onFavorite: () => console.log("Added to favorites"),
      isFavorited: false
    },
    {
      id: "2",      name: "Colombian Dark Roast",      price: "$19.99",      imageSrc: "https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=400&h=400&fit=crop",      imageAlt: "Colombian Dark Roast coffee beans",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity changed:", qty),
      onFavorite: () => console.log("Added to favorites"),
      isFavorited: false
    },
    {
      id: "3",      name: "French Vanilla Blend",      price: "$22.50",      imageSrc: "https://images.unsplash.com/photo-1497935586351-b67a49e012bf?w=400&h=400&fit=crop",      imageAlt: "French Vanilla Blend coffee",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity changed:", qty),
      onFavorite: () => console.log("Added to favorites"),
      isFavorited: false
    },
    {
      id: "4",      name: "Espresso Blend Premium",      price: "$28.75",      imageSrc: "https://images.unsplash.com/photo-1510707577719-ae7c14805e3a?w=400&h=400&fit=crop",      imageAlt: "Espresso Blend Premium coffee beans",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity changed:", qty),
      onFavorite: () => console.log("Added to favorites"),
      isFavorited: false
    },
    {
      id: "5",      name: "Decaf House Blend",      price: "$18.99",      imageSrc: "https://images.unsplash.com/photo-1442512595331-e89e73853f31?w=400&h=400&fit=crop",      imageAlt: "Decaf House Blend coffee",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity changed:", qty),
      onFavorite: () => console.log("Added to favorites"),
      isFavorited: false
    },
    {
      id: "6",      name: "Cold Brew Concentrate",      price: "$15.99",      imageSrc: "https://images.unsplash.com/photo-1461023058943-07fcbe16d735?w=400&h=400&fit=crop",      imageAlt: "Cold Brew Concentrate bottle",      initialQuantity: 1,
      onProductClick: () => console.log("Product clicked"),
      onQuantityChange: (qty: number) => console.log("Quantity changed:", qty),
      onFavorite: () => console.log("Added to favorites"),
      isFavorited: false
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="slide-background"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="largeSmallSizeMediumTitles"
      background="floatingGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <NavbarStyleCentered
        brandName="Bean & Leaf"
        navItems={[
          { name: "Home", id: "/" },
          { name: "Shop", id: "/shop" }
        ]}
        button={{ text: "Reserve a Table", href: "contact" }}
      />
      
      <main className="min-h-screen">
        <ProductCardThree
          products={products}
          title="Coffee Shop"
          description="Discover our premium selection of freshly roasted coffee beans and specialty blends. Add your favorites to cart with just a few clicks."
          tag="Fresh Roasted"
          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" }
          ]}
          ariaLabel="Coffee products shop section"
        />
      </main>
      
      <FooterSimple
        columns={[
          {
            title: "Menu",            items: [
              { label: "Coffee & Drinks", href: "/" },
              { label: "Pastries & Desserts", href: "/" },
              { label: "Lunch Options", href: "/" },
              { label: "Seasonal Specials", href: "/" }
            ]
          },
          {
            title: "Connect",            items: [
              { label: "About Us", href: "/" },
              { label: "Our Story", href: "/" },
              { label: "Contact", href: "/" },
              { label: "Instagram", href: "https://instagram.com" }
            ]
          },
          {
            title: "Visit Us",            items: [
              { label: "Hours: 7 AM - 7 PM", href: "/" },
              { label: "123 Main Street", href: "/" },
              { label: "(555) 123-4567", href: "tel:+15551234567" },
              { label: "Reserve a Table", href: "/" }
            ]
          }
        ]}
        bottomLeftText="© 2025 Bean & Leaf Coffee Roastery. All rights reserved."
        bottomRightText="Crafted with care for our community."
      />
    </ThemeProvider>
  );
}