"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
import ProductCardOne from "@/components/sections/product/ProductCardOne";
import InlineImageSplitTextAbout from "@/components/sections/about/InlineImageSplitTextAbout";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import FooterBase from "@/components/sections/footer/FooterBase";
import Link from "next/link";
import { Mail } from "lucide-react";

export default function ShopPage() {
  const navItems = [
    { name: "Shop", id: "shop" },
    { name: "Sets", id: "sets" },
    { name: "Hoodies", id: "hoodies" },
    { name: "Sweatpants", id: "sweatpants" },
    { name: "About", id: "about" },
  ];

  const footerColumns = [
    {
      title: "Shop",      items: [
        { label: "Hoodies", href: "/shop/hoodies" },
        { label: "Sweatpants", href: "/shop/sweatpants" },
        { label: "Sets", href: "/shop/sets" },
        { label: "All Products", href: "/shop" },
      ],
    },
    {
      title: "Information",      items: [
        { label: "About ARCT", href: "/about" },
        { label: "Craft & Materials", href: "/craft-materials" },
        { label: "Sustainability", href: "/sustainability" },
        { label: "FAQ", href: "/faq" },
      ],
    },
    {
      title: "Support",      items: [
        { label: "Shipping & Returns", href: "/shipping-returns" },
        { label: "Contact", href: "/contact" },
        { label: "Size Guide", href: "#" },
        { label: "Terms & Privacy", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="largeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="ARCT Amsterdam"
          navItems={navItems}
          button={{ text: "Cart", href: "#" }}
          animateOnLoad={true}
        />
      </div>

      <div id="shop-intro" data-section="shop-intro" className="py-20 mx-auto px-4 md:px-6">
        <InlineImageSplitTextAbout
          heading={[
            { type: "text", content: "Shop the Complete Collection." },
          ]}
          useInvertedBackground={false}
          buttons={[
            { text: "Back to Home", href: "/" },
          ]}
          buttonAnimation="blur-reveal"
        />
      </div>

      <div id="all-products" data-section="all-products" className="py-20 mx-auto px-4 md:px-6">
        <ProductCardOne
          title="All ARCT Essentials"
          description="Our complete range of heavyweight hoodies, sweatpants, and coordinated sets."
          products={[
            {
              id: "hoodie-grey",              name: "Heavyweight Hoodie — Heather Grey",              price: "€149",              imageSrc: "http://img.b2bpic.net/free-photo/man-carrying-laptop-lake_23-2148573104.jpg?_wi=2",              imageAlt: "ARCT Heavyweight Hoodie in Heather Grey"},
            {
              id: "hoodie-navy",              name: "Heavyweight Hoodie — Deep Navy",              price: "€149",              imageSrc: "http://img.b2bpic.net/free-photo/man-isolated-showing-emotions-end-gestures_1303-30107.jpg?_wi=2",              imageAlt: "ARCT Heavyweight Hoodie in Deep Navy"},
            {
              id: "hoodie-brown",              name: "Heavyweight Hoodie — Warm Brown",              price: "€149",              imageSrc: "http://img.b2bpic.net/free-photo/young-person-wearing-hoodie-mockup_23-2149246150.jpg",              imageAlt: "ARCT Heavyweight Hoodie in Warm Brown"},
            {
              id: "sweatpants-grey",              name: "Heavyweight Sweatpants — Heather Grey",              price: "€129",              imageSrc: "http://img.b2bpic.net/free-photo/full-view-male-man-street-look-camera_197531-33432.jpg?_wi=2",              imageAlt: "ARCT Heavyweight Sweatpants in Heather Grey"},
            {
              id: "sweatpants-navy",              name: "Heavyweight Sweatpants — Deep Navy",              price: "€129",              imageSrc: "http://img.b2bpic.net/free-photo/man-casual-outfits-going-up-stairs_114579-11469.jpg?_wi=2",              imageAlt: "ARCT Heavyweight Sweatpants in Deep Navy"},
            {
              id: "sweatpants-brown",              name: "Heavyweight Sweatpants — Warm Brown",              price: "€129",              imageSrc: "http://img.b2bpic.net/free-photo/full-length-shot-sportive-curly-haired-woman-activewear-carries-karemat-being-good-physical-shape-leads-healthy-lifestyle-poses-outdoors_273609-55464.jpg",              imageAlt: "ARCT Heavyweight Sweatpants in Warm Brown"},
          ]}
          gridVariant="bento-grid"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="shop-newsletter" data-section="shop-newsletter" className="py-16 max-w-2xl mx-auto text-center px-4 md:px-6">
        <ContactCenter
          tag="Restocks"
          title="Never miss a release."
          description="Subscribe to get notified when your favorite pieces are back in stock."
          tagIcon={Mail}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          inputPlaceholder="your@email.com"
          buttonText="Notify Me"
          termsText="We'll only email you when items are restocked. Unsubscribe anytime."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="ARCT Amsterdam"
          copyrightText="© 2025 ARCT Amsterdam. All rights reserved."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}