"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple";
import ProductCardFour from "@/components/sections/product/ProductCardFour";
import FeatureBorderGlow from "@/components/sections/feature/featureBorderGlow/FeatureBorderGlow";
import FaqBase from "@/components/sections/faq/FaqBase";
import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis";
import { Package, Crown, Shield, Zap, Heart, HelpCircle } 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: "/" },
      ],
    },
  ];

  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-products" data-section="shop-products">
        <ProductCardFour
          title="Complete Collection"
          description="Browse our full range of authentic Moroccan salon fabrics, carefully curated from the finest artisans across Morocco."
          tag="All Products"
          tagIcon={Package}
          tagAnimation="slide-up"
          buttons={[{ text: "Contact for Bulk Orders", href: "/contact" }]}
          buttonAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="uniform-all-items-equal"
          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,
            },
          ]}
        />
      </div>

      <div id="shop-benefits" data-section="shop-benefits">
        <FeatureBorderGlow
          title="Shop with Confidence"
          description="Quality guarantees and expert support for your fabric selections."
          features={[
            {
              icon: Shield,
              title: "Quality Guarantee",
              description: "All fabrics undergo rigorous quality control to ensure authenticity and durability.",
            },
            {
              icon: Zap,
              title: "Fast Processing",
              description: "Orders are processed and shipped within 2-3 business days.",
            },
            {
              icon: Heart,
              title: "Customer Support",
              description: "Dedicated support team available via WhatsApp and email for any inquiries.",
            },
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground={false}
        />
      </div>

      <div id="shop-faq" data-section="shop-faq">
        <FaqBase
          title="Shopping Questions"
          description="Find answers about our products, ordering, and delivery process."
          tag="Help"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          faqs={[
            {
              id: "1",
              title: "How do I order fabrics?",
              content: "You can browse our collection online and add items to your cart, or contact us directly via WhatsApp for personalized assistance and bulk orders.",
            },
            {
              id: "2",
              title: "What payment methods do you accept?",
              content: "We accept bank transfers, credit cards, and offer installment plans for bulk orders. All transactions are secure and encrypted.",
            },
            {
              id: "3",
              title: "How long does delivery take?",
              content: "Standard delivery takes 3-5 business days to major cities in Morocco. Express delivery (1-2 days) is available for urgent orders.",
            },
          ]}
        />
      </div>

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