"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import PricingCardThree from '@/components/sections/pricing/PricingCardThree';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Star, Sparkles } from "lucide-react";

export default function ShopPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="entrance-slide"
      borderRadius="pill"
      contentWidth="compact"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="gradient-radial"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="EchoCart"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Shop", id: "/shop" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="products" data-section="products" className="mx-auto px-4 md:px-6">
        <ProductCardOne
          title="Complete Product Collection"
          description="Browse our entire catalog of premium products. From electronics to accessories, find everything you need with fast shipping and excellent support."
          tag="All Products"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          products={[
            { id: "1", name: "Premium Wireless Headphones", price: "$149.99", imageSrc: "https://img.b2bpic.net/free-photo/journalism-headphones-interview_23-2148524067.jpg", imageAlt: "Premium Wireless Headphones" },
            { id: "2", name: "Smart Watch Pro", price: "$299.99", imageSrc: "https://img.b2bpic.net/free-photo/black-cordless-headphones-gray-textile_417767-474.jpg", imageAlt: "Smart Watch Pro" },
            { id: "3", name: "Wireless Charging Case", price: "$79.99", imageSrc: "https://img.b2bpic.net/free-photo/modern-apartment-with-luxury-vibe-featuring-spacious-living-room_482257-120668.jpg", imageAlt: "Wireless Charging Case" },
            { id: "4", name: "4K Action Camera", price: "$349.99", imageSrc: "https://img.b2bpic.net/free-photo/disabled-person-with-prosthetic-leg_23-2149057459.jpg", imageAlt: "4K Action Camera" },
            { id: "5", name: "Bluetooth Speaker", price: "$89.99", imageSrc: "https://img.b2bpic.net/free-photo/headset-table_417767-238.jpg", imageAlt: "Bluetooth Speaker" },
            { id: "6", name: "USB-C Hub", price: "$49.99", imageSrc: "https://img.b2bpic.net/free-photo/headset-aa-white-surface_181624-21804.jpg", imageAlt: "USB-C Hub" },
            { id: "7", name: "Phone Stand", price: "$24.99", imageSrc: "https://img.b2bpic.net/free-photo/blonde-girl-listening-music-headphones-close-up_23-2148381820.jpg", imageAlt: "Phone Stand" },
            { id: "8", name: "Cable Management Kit", price: "$19.99", imageSrc: "https://img.b2bpic.net/free-photo/headphones-laptop-home_23-2149551432.jpg", imageAlt: "Cable Management Kit" }
          ]}
        />
      </div>

      <div id="membership" data-section="membership" className="mx-auto px-4 md:px-6">
        <PricingCardThree
          title="Exclusive Member Benefits"
          description="Join our membership program for exclusive discounts, early access to sales, and premium support."
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          plans={[
            {
              id: "1",
              price: "Free",
              name: "Standard",
              buttons: [
                { text: "Get Started", href: "/signup" },
                { text: "Learn More" }
              ],
              features: ["Standard shipping", "Basic customer support", "Access to sales", "Order tracking"]
            },
            {
              id: "2",
              badge: "Best Value",
              badgeIcon: Sparkles,
              price: "$9.99/mo",
              name: "Premium",
              buttons: [
                { text: "Start Free Trial", href: "/trial" },
                { text: "Contact Sales", href: "/contact" }
              ],
              features: ["Free 2-day shipping", "Priority support", "Early access to sales", "15% member discount", "Rewards points"]
            }
          ]}
        />
      </div>

      <div id="shopping-stats" data-section="shopping-stats" className="mx-auto px-4 md:px-6">
        <MetricCardTwo
          title="Shop with Confidence"
          description="Join thousands of satisfied customers who trust EchoCart for their technology needs."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          metrics={[
            { id: "1", value: "10,000+", description: "Products Available" },
            { id: "2", value: "2-Day", description: "Free Shipping" },
            { id: "3", value: "30-Day", description: "Return Policy" },
            { id: "4", value: "24/7", description: "Customer Support" }
          ]}
        />
      </div>

      <FooterBaseReveal
        copyrightText="© 2025 EchoCart. All rights reserved."
        columns={[
          {
            title: "Shop",
            items: [
              { label: "All Products", href: "/shop" },
              { label: "New Arrivals", href: "/shop?filter=new" },
              { label: "Best Sellers", href: "/shop?filter=bestsellers" },
              { label: "On Sale", href: "/shop?filter=sale" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Story", href: "/about" },
              { label: "Careers", href: "/careers" },
              { label: "Press", href: "/press" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Help Center", href: "/help" },
              { label: "Shipping Info", href: "/shipping" },
              { label: "Returns", href: "/returns" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}