"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import ProductCardFour from "@/components/sections/product/ProductCardFour";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Package, Star } from "lucide-react";

export default function ShopPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Shop", id: "/shop" },
    { name: "About", id: "/about" },
    { name: "Contact", id: "/contact" },
    { name: "Cart", id: "/cart" },
  ];

  const footerColumns = [
    {
      items: [
        { label: "Home", href: "/" },
        { label: "Shop", href: "/shop" },
        { label: "About Us", href: "/about" },
        { label: "Contact", href: "/contact" },
      ],
    },
    {
      items: [
        { label: "Collections", href: "/shop" },
        { label: "Custom Orders", href: "/contact" },
        { label: "Bulk Pricing", href: "/contact" },
        { label: "Care Guide", href: "#" },
      ],
    },
    {
      items: [
        { label: "WhatsApp Support", href: "#" },
        { label: "Email Us", href: "#" },
        { label: "Location", href: "#" },
        { label: "Returns", href: "#" },
      ],
    },
    {
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms & Conditions", href: "#" },
        { label: "Shipping Info", href: "#" },
        { label: "FAQ", href: "/contact" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="compact"
      sizing="largeSmall"
      background="fluid"
      cardStyle="soft-shadow"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple brandName="Atwab Al Hjaji" navItems={navItems} />
      </div>

      <div id="shop-featured" data-section="shop-featured">
        <ProductCardFour
          title="Complete Moroccan Fabric Collection"
          description="Browse our extensive range of premium salon fabrics, from traditional zellige patterns to contemporary designs. Each fabric is handpicked for quality and authenticity."
          tag="Shop Now"
          tagIcon={Package}
          tagAnimation="slide-up"
          buttons={[{ text: "Contact for Custom Orders", href: "/contact" }]}
          buttonAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="bento-grid"
          animationType="slide-up"
          products={[
            {
              id: "1",
              name: "Traditional Moroccan Salon Fabric - Deep Red",
              price: "45 DH/meter",
              variant: "Red • Geometric Pattern • Premium Wool",
              imageSrc: "http://img.b2bpic.net/free-photo/overhead-view-circle-made-with-lace-fabric_23-2147882417.jpg?_wi=2",
              imageAlt: "Traditional red Moroccan fabric with geometric zellige pattern",
              isFavorited: false,
            },
            {
              id: "2",
              name: "Modern Moroccan Salon Fabric - Azure Blue",
              price: "52 DH/meter",
              variant: "Blue • Contemporary Design • Silk Blend",
              imageSrc: "http://img.b2bpic.net/free-photo/pillow-sofa-chair_1203-3493.jpg?_wi=2",
              imageAlt: "Modern blue Moroccan fabric with contemporary pattern",
              isFavorited: false,
            },
            {
              id: "3",
              name: "Luxury Velvet Fabric - Gold Embossed",
              price: "85 DH/meter",
              variant: "Gold • Embroidered • Premium Velvet",
              imageSrc: "http://img.b2bpic.net/free-photo/solid-curvy-glitter-yellow-fabrics-curtains_23-2148516064.jpg?_wi=2",
              imageAlt: "Luxury gold velvet Moroccan fabric with embossed details",
              isFavorited: false,
            },
            {
              id: "4",
              name: "Classic Berber Textile - Indigo",
              price: "38 DH/meter",
              variant: "Indigo • Traditional Weave • Natural Cotton",
              imageSrc: "http://img.b2bpic.net/free-photo/pillow-sofa-chair_1203-3493.jpg?_wi=3",
              imageAlt: "Classic Berber textile in indigo with traditional weave pattern",
              isFavorited: false,
            },
            {
              id: "5",
              name: "Premium Silk Fabric - Emerald Green",
              price: "65 DH/meter",
              variant: "Green • Luxury Silk • Embroidered Details",
              imageSrc: "http://img.b2bpic.net/free-photo/overhead-view-circle-made-with-lace-fabric_23-2147882417.jpg?_wi=3",
              imageAlt: "Premium emerald green silk fabric with embroidered Moroccan patterns",
              isFavorited: false,
            },
            {
              id: "6",
              name: "Decorative Brocade - Maroon & Gold",
              price: "75 DH/meter",
              variant: "Maroon • Gold Thread • Rich Brocade",
              imageSrc: "http://img.b2bpic.net/free-photo/solid-curvy-glitter-yellow-fabrics-curtains_23-2148516064.jpg?_wi=3",
              imageAlt: "Decorative maroon and gold brocade fabric with intricate patterns",
              isFavorited: false,
            },
          ]}
        />
      </div>

      <div id="shop-testimonials" data-section="shop-testimonials">
        <ProductCardFour
          title="Customer Favorites"
          description="The most loved fabrics by our customers, featuring best-sellers and most-reviewed collections."
          tag="Best Sellers"
          tagIcon={Star}
          tagAnimation="slide-up"
          buttons={[]}
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          products={[
            {
              id: "7",
              name: "Bestseller: Red Moroccan Blend",
              price: "48 DH/meter",
              variant: "Red • Mixed Fibers • Popular Design",
              imageSrc: "http://img.b2bpic.net/free-photo/overhead-view-circle-made-with-lace-fabric_23-2147882417.jpg?_wi=4",
              imageAlt: "Bestseller red Moroccan blend fabric",
              isFavorited: true,
            },
            {
              id: "8",
              name: "Customer Favorite: Ocean Blue Weave",
              price: "55 DH/meter",
              variant: "Blue • Premium Blend • Most Reviewed",
              imageSrc: "http://img.b2bpic.net/free-photo/pillow-sofa-chair_1203-3493.jpg?_wi=4",
              imageAlt: "Customer favorite ocean blue weave fabric",
              isFavorited: true,
            },
            {
              id: "9",
              name: "Top Rated: Champagne Silk",
              price: "72 DH/meter",
              variant: "Cream • Pure Silk • Highly Rated",
              imageSrc: "http://img.b2bpic.net/free-photo/solid-curvy-glitter-yellow-fabrics-curtains_23-2148516064.jpg?_wi=4",
              imageAlt: "Top-rated champagne silk Moroccan fabric",
              isFavorited: true,
            },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis logoText="Atwab Al Hjaji" columns={footerColumns} />
      </div>
    </ThemeProvider>
  );
}