"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import FooterBase from '@/components/sections/footer/FooterBase';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import { Smartphone, Star } from 'lucide-react';

export default function ShopPage() {
  const products = [
    {
      id: "1",      brand: "Apple",      name: "iPhone 15 Pro Max",      price: "$1,199.00",      rating: 5,
      reviewCount: "12.5k",      imageSrc: "https://images.unsplash.com/photo-1592750475338-74b7b21085ab?w=400&h=400&fit=crop",      imageAlt: "iPhone 15 Pro Max",      isFavorited: false
    },
    {
      id: "2",      brand: "Apple",      name: "iPhone 15 Pro",      price: "$999.00",      rating: 5,
      reviewCount: "8.9k",      imageSrc: "https://images.unsplash.com/photo-1511707171634-5f897ff02aa9?w=400&h=400&fit=crop",      imageAlt: "iPhone 15 Pro",      isFavorited: false
    },
    {
      id: "3",      brand: "Apple",      name: "iPhone 15",      price: "$799.00",      rating: 4,
      reviewCount: "15.2k",      imageSrc: "https://images.unsplash.com/photo-1574944985070-8f3ebc6b79d2?w=400&h=400&fit=crop",      imageAlt: "iPhone 15",      isFavorited: false
    },
    {
      id: "4",      brand: "Apple",      name: "iPhone 15 Plus",      price: "$899.00",      rating: 4,
      reviewCount: "6.7k",      imageSrc: "https://images.unsplash.com/photo-1556656793-08538906a9f8?w=400&h=400&fit=crop",      imageAlt: "iPhone 15 Plus",      isFavorited: false
    },
    {
      id: "5",      brand: "Apple",      name: "iPhone SE",      price: "$429.00",      rating: 4,
      reviewCount: "9.1k",      imageSrc: "https://images.unsplash.com/photo-1567581935884-3349723552ca?w=400&h=400&fit=crop",      imageAlt: "iPhone SE",      isFavorited: false
    },
    {
      id: "6",      brand: "Apple",      name: "iPhone 14 Pro",      price: "$899.00",      rating: 5,
      reviewCount: "22.3k",      imageSrc: "https://images.unsplash.com/photo-1678652407186-191bcc4dc9d4?w=400&h=400&fit=crop",      imageAlt: "iPhone 14 Pro",      isFavorited: false
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumLarge"
      sizing="medium"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <NavbarStyleCentered
        brandName="iPhone Store"
        navItems={[
          { name: "Home", id: "/" },
          { name: "Shop", id: "/shop" }
        ]}
        button={{
          text: "Buy Now",          href: "/shop"
        }}
      />
      
      <main className="min-h-screen">
        <ProductCardTwo
          products={products}
          title="iPhone Collection"
          description="Discover our complete range of iPhone models with exceptional performance and cutting-edge technology"
          tag="Latest Models"
          tagIcon={Smartphone}
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          buttons={[
            {
              text: "View All Models",              href: "/"
            }
          ]}
        />
      </main>

      <FooterBase
        logoText="iPhone Store"
        copyrightText="© 2025 iPhone Store. All rights reserved."
        columns={[
          {
            title: "Shop",            items: [
              { label: "iPhone 15 Pro", href: "/shop" },
              { label: "iPhone 15", href: "/shop" },
              { label: "iPhone SE", href: "/shop" },
              { label: "Compare Models", href: "/" }
            ]
          },
          {
            title: "Support",            items: [
              { label: "Product Specs", href: "/" },
              { label: "FAQ", href: "/" },
              { label: "Warranty Info", href: "/" },
              { label: "Contact Us", href: "/" }
            ]
          },
          {
            title: "Company",            items: [
              { label: "About Us", href: "https://example.com/about" },
              { label: "Blog", href: "https://example.com/blog" },
              { label: "Careers", href: "https://example.com/careers" },
              { label: "Sustainability", href: "https://example.com/sustainability" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}