"use client";

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

export default function ShopPage() {
  const products = [
    {
      id: '1',
      brand: 'Apple',
      name: 'iPhone 15 Pro',
      price: '$999.00',
      rating: 5,
      reviewCount: '15.2k',
      imageSrc: '/iphone-15-pro.jpg',
      imageAlt: 'iPhone 15 Pro',
      isFavorited: false
    },
    {
      id: '2',
      brand: 'Apple',
      name: 'iPhone 15 Pro Max',
      price: '$1199.00',
      rating: 5,
      reviewCount: '12.8k',
      imageSrc: '/iphone-15-pro-max.jpg',
      imageAlt: 'iPhone 15 Pro Max',
      isFavorited: false
    },
    {
      id: '3',
      brand: 'Apple',
      name: 'iPhone 15',
      price: '$799.00',
      rating: 4,
      reviewCount: '18.5k',
      imageSrc: '/iphone-15.jpg',
      imageAlt: 'iPhone 15',
      isFavorited: false
    },
    {
      id: '4',
      brand: 'Apple',
      name: 'iPhone 14 Pro',
      price: '$899.00',
      rating: 5,
      reviewCount: '22.1k',
      imageSrc: '/iphone-14-pro.jpg',
      imageAlt: 'iPhone 14 Pro',
      isFavorited: false
    },
    {
      id: '5',
      brand: 'Apple',
      name: 'iPhone 14',
      price: '$699.00',
      rating: 4,
      reviewCount: '25.3k',
      imageSrc: '/iphone-14.jpg',
      imageAlt: 'iPhone 14',
      isFavorited: false
    },
    {
      id: '6',
      brand: 'Apple',
      name: 'iPhone SE',
      price: '$429.00',
      rating: 4,
      reviewCount: '8.7k',
      imageSrc: '/iphone-se.jpg',
      imageAlt: 'iPhone SE',
      isFavorited: false
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="largeSizeMediumTitles"
      background="aurora"
      cardStyle="gradient-mesh"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <NavbarStyleFullscreen
        brandName="iPhone"
        navItems={[
          { name: "Home", id: "/" },
          { name: "Shop", id: "/shop" }
        ]}
        bottomLeftText="Premium Technology"
        bottomRightText="hello@iphone.shop"
      />
      
      <main className="min-h-screen">
        <ProductCardTwo
          products={products}
          title="iPhone Collection"
          description="Discover the complete range of iPhone models with cutting-edge technology and innovative features"
          tag="Latest Models"
          tagIcon={Smartphone}
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          buttons={[
            {
              text: "View All Models",              href: "/shop"
            }
          ]}
        />
      </main>
      
      <FooterBase
        logoText="iPhone"
        copyrightText="© 2025 iPhone Sales. All rights reserved."
        columns={[
          {
            title: "Shop",            items: [
              { label: "iPhone 15 Pro", href: "/shop" },
              { label: "iPhone 15 Pro Max", href: "/shop" },
              { label: "iPhone 15", href: "/shop" }
            ]
          },
          {
            title: "Support",            items: [
              { label: "Contact Us", href: "/" },
              { label: "FAQ", href: "/" },
              { label: "Warranty", href: "/" }
            ]
          },
          {
            title: "Company",            items: [
              { label: "About", href: "https://apple.com" },
              { label: "Privacy Policy", href: "https://apple.com/privacy" },
              { label: "Terms of Service", href: "https://apple.com/legal" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}