"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import FeatureBorderGlow from "@/components/sections/feature/featureBorderGlow/FeatureBorderGlow";
import ContactCTA from "@/components/sections/contact/ContactCTA";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import {
  TrendingUp,
  Award,
  Truck,
  Shield,
  RotateCcw,
  Headphones,
  Zap,
  Gift,
  ShoppingCart,
} from "lucide-react";

const navItems = [
  { name: "Home", id: "/" },
  { name: "Products", id: "/products" },
  { name: "About", id: "/about" },
  { name: "Contact", id: "/contact" },
];

export default function ProductsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="smallMedium"
      sizing="mediumLargeSizeMediumTitles"
      background="circleGradient"
      cardStyle="glass-depth"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Storefront"
          navItems={navItems}
          button={{
            text: "Shop Now",            href: "/products"}}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Our Complete Collection"
          description="Browse our full range of premium products carefully selected for quality and value. Discover new arrivals and bestsellers across all categories."
          tag="Browse All"
          tagIcon={TrendingUp}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          products={[
            {
              id: "1",              name: "Premium Wireless Headphones",              price: "$129.99",              imageSrc:
                "http://img.b2bpic.net/free-photo/headset-table_417767-238.jpg",              imageAlt: "Wireless headphones"},
            {
              id: "2",              name: "Elegant Watch Collection",              price: "$249.99",              imageSrc:
                "http://img.b2bpic.net/free-photo/fashion-portrait-young-businessman-handsome-model-man-casual-cloth-suit-with-accesories-hands_158538-9460.jpg",              imageAlt: "Designer watch"},
            {
              id: "3",              name: "Smart Phone Stand",              price: "$39.99",              imageSrc:
                "http://img.b2bpic.net/free-photo/high-angle-smartphone-desk-with-headphones_23-2149404198.jpg",              imageAlt: "Phone stand"},
            {
              id: "4",              name: "Premium Backpack",              price: "$159.99",              imageSrc:
                "http://img.b2bpic.net/free-photo/leather-bag-travel-with-earphones-passport_23-2149433932.jpg",              imageAlt: "Travel backpack"},
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBorderGlow
          title="Shopping Benefits"
          description="Experience exceptional value and service with every purchase from our store"
          tag="Why Choose Us"
          tagIcon={Award}
          tagAnimation="slide-up"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
          features={[
            {
              icon: Truck,
              title: "Fast & Free Shipping",              description:
                "Complimentary shipping on orders over $50 with delivery in 2-3 business days"},
            {
              icon: Shield,
              title: "Secure Checkout",              description:
                "SSL-encrypted payments with multiple payment options for your safety"},
            {
              icon: RotateCcw,
              title: "Easy Returns",              description:
                "30-day money-back guarantee with hassle-free return process"},
          ]}
        />
      </div>

      <div id="cta" data-section="cta">
        <ContactCTA
          tag="Questions About Products?"
          tagIcon={ShoppingCart}
          tagAnimation="slide-up"
          title="Need Help Finding the Perfect Item?"
          description="Our customer service team is available 24/7 to assist you with product recommendations, specifications, and any questions you may have."
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          buttons={[
            { text: "Contact Support", href: "/contact" },
            { text: "Back to Home", href: "/" },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="Storefront"
          columns={[
            {
              items: [
                { label: "Shop", href: "/products" },
                { label: "New Arrivals", href: "/products" },
                { label: "Best Sellers", href: "/products" },
                { label: "Sale Items", href: "/products" },
              ],
            },
            {
              items: [
                { label: "About Us", href: "/about" },
                { label: "Our Story", href: "/about" },
                { label: "Careers", href: "/" },
                { label: "Blog", href: "/" },
              ],
            },
            {
              items: [
                { label: "Customer Service", href: "/contact" },
                { label: "Contact Us", href: "/contact" },
                { label: "FAQ", href: "/" },
                { label: "Track Order", href: "/" },
              ],
            },
            {
              items: [
                { label: "Privacy Policy", href: "/" },
                { label: "Terms of Service", href: "/" },
                { label: "Shipping Info", href: "/" },
                { label: "Returns", href: "/" },
              ],
            },
            {
              items: [
                {
                  label: "Facebook",                  href: "https://facebook.com"},
                {
                  label: "Twitter",                  href: "https://twitter.com"},
                {
                  label: "Instagram",                  href: "https://instagram.com"},
                {
                  label: "LinkedIn",                  href: "https://linkedin.com"},
              ],
            },
          ]}
        />
      </div>
    </ThemeProvider>
  );
}