"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import PricingCardEight from '@/components/sections/pricing/PricingCardEight';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Sparkles, Heart, Star } from 'lucide-react';
import Link from 'next/link';

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

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="medium"
      sizing="medium"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Beautiful Flowers"
          navItems={navItems.map(item => ({
            name: item.name,
            id: item.id
          }))}
          button={{
            text: "Order Now",
            href: "/shop"
          }}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Complete Flower Collections"
          description="Browse our extensive catalog of premium floral arrangements, from classic roses to exotic seasonal blooms. Each arrangement is hand-crafted with the finest flowers."
          tag="Shop All"
          tagIcon={Sparkles}
          textboxLayout="default"
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          products={[
            {
              id: "1",
              name: "Velvet Rose Bouquet",
              price: "$45.00",
              imageSrc: "https://img.b2bpic.net/free-photo/floral-decor-woman-holding-bouquet-anthurium_140725-10842.jpg",
              imageAlt: "Beautiful red velvet roses"
            },
            {
              id: "2",
              name: "Sunny Sunflower Mix",
              price: "$38.00",
              imageSrc: "https://img.b2bpic.net/free-photo/valentines-day-womens-mothers-day-red-rose-gift-surprise-dark_114579-445.jpg",
              imageAlt: "Cheerful sunflower arrangement"
            },
            {
              id: "3",
              name: "White Lily Elegance",
              price: "$52.00",
              imageSrc: "https://img.b2bpic.net/free-photo/valentines-day-womens-mothers-day-red-rose-gift-surprise-dark_114579-446.jpg",
              imageAlt: "Elegant white lily display"
            },
            {
              id: "4",
              name: "Spring Tulip Paradise",
              price: "$42.00",
              imageSrc: "https://img.b2bpic.net/free-photo/valentines-day-womens-mothers-day-red-rose-with-ribbon-heart-gift-surprise_114579-449.jpg",
              imageAlt: "Vibrant colorful tulips"
            },
            {
              id: "5",
              name: "Garden Fresh Mixed",
              price: "$48.00",
              imageSrc: "https://img.b2bpic.net/free-photo/still-life-with-bouquet-blue-pink-wildflowers-vase_169016-58261.jpg",
              imageAlt: "Mixed garden flowers"
            },
            {
              id: "6",
              name: "Romantic Red Roses",
              price: "$55.00",
              imageSrc: "https://img.b2bpic.net/free-photo/floral-decor-woman-holding-bouquet-anthurium_140725-10842.jpg",
              imageAlt: "Romantic red rose bouquet"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardEight
          title="Flexible Pricing Plans"
          description="Choose the perfect plan for your floral needs, from personal celebrations to corporate events"
          tag="Transparent Pricing"
          tagIcon={Sparkles}
          textboxLayout="default"
          animationType="slide-up"
          plans={[
            {
              id: "petite",
              badge: "Perfect for Gifts",
              badgeIcon: Heart,
              price: "$35-50",
              subtitle: "Small elegant arrangements",
              buttons: [
                { text: "View Designs", href: "/shop" }
              ],
              features: [
                "3-5 premium fresh flowers",
                "Elegant glass vase included",
                "Personalized greeting card",
                "Local same-day delivery available",
                "1-year freshness guarantee"
              ]
            },
            {
              id: "classic",
              badge: "Most Popular",
              badgeIcon: Star,
              price: "$65-85",
              subtitle: "Beautiful statement pieces",
              buttons: [
                { text: "Order Now", href: "/shop" }
              ],
              features: [
                "12-18 premium flowers",
                "Designer glass or ceramic vase",
                "Personalized arrangement",
                "Same-day delivery",
                "Premium greeting card",
                "Flower care guide included"
              ]
            },
            {
              id: "deluxe",
              badge: "For Special Moments",
              badgeIcon: Sparkles,
              price: "$120-200",
              subtitle: "Luxury designer arrangements",
              buttons: [
                { text: "Customize Now", href: "/shop" }
              ],
              features: [
                "25+ premium exotic flowers",
                "Luxury designer vase",
                "Custom arrangement design",
                "Priority same-day delivery",
                "Luxury gift packaging",
                "Extended freshness guarantee",
                "Consultation with florist"
              ]
            }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Shop",
            items: [
              { label: "All Flowers", href: "/shop" },
              { label: "Occasions", href: "/shop" },
              { label: "Seasonal", href: "/shop" },
              { label: "Custom Orders", href: "/shop" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Story", href: "/about" },
              { label: "Careers", href: "#" },
              { label: "Press", href: "#" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Delivery Info", href: "#" },
              { label: "Returns", href: "#" },
              { label: "FAQ", href: "#" }
            ]
          },
          {
            title: "Legal",
            items: [
              { label: "Privacy Policy", href: "#" },
              { label: "Terms of Service", href: "#" },
              { label: "Shipping Policy", href: "#" },
              { label: "Sitemap", href: "#" }
            ]
          }
        ]}
        bottomLeftText="© 2025 Beautiful Flowers. All rights reserved."
        bottomRightText="Crafted with love for flower enthusiasts"
      />
    </ThemeProvider>
  );
}