"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactText from '@/components/sections/contact/ContactText';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';

export default function ProductsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="mediumLargeSizeMediumTitles"
      background="aurora"
      cardStyle="inset"
      primaryButtonStyle="flat"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Burenka"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Products", id: "/products" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="products-full" data-section="products-full">
        <ProductCardThree
          title="Complete Product Collection"
          description="Explore our full range of premium dairy products, all crafted with love from our family farm"
          products={[
            {
              id: "1",
              name: "Whole Fresh Milk",
              price: "$4.99",
              imageSrc: "https://img.b2bpic.net/free-photo/female-hand-holds-blank-bottle-dairy-product_185193-109770.jpg",
              imageAlt: "Premium whole milk bottle",
              initialQuantity: 1
            },
            {
              id: "2",
              name: "Creamy Yogurt",
              price: "$3.49",
              imageSrc: "https://img.b2bpic.net/free-photo/bottles-milk-arrangement-still-life_23-2150642888.jpg",
              imageAlt: "Fresh creamy yogurt",
              initialQuantity: 1
            },
            {
              id: "3",
              name: "Artisan Cheese",
              price: "$7.99",
              imageSrc: "https://img.b2bpic.net/free-photo/bottles-with-milk-copy-space-card_23-2148239835.jpg",
              imageAlt: "Fresh artisan cheese block",
              initialQuantity: 1
            },
            {
              id: "4",
              name: "Premium Butter",
              price: "$5.99",
              imageSrc: "https://img.b2bpic.net/free-photo/wooden-frame-with-bottles-milk_23-2148239946.jpg",
              imageAlt: "Premium butter block",
              initialQuantity: 1
            },
            {
              id: "5",
              name: "Fresh Cream",
              price: "$6.49",
              imageSrc: "/placeholders/placeholder1.webp",
              imageAlt: "Fresh cream container",
              initialQuantity: 1
            },
            {
              id: "6",
              name: "Cottage Cheese",
              price: "$4.49",
              imageSrc: "/placeholders/placeholder1.webp",
              imageAlt: "Fresh cottage cheese",
              initialQuantity: 1
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="product-faq" data-section="product-faq">
        <FaqDouble
          title="Product Information"
          description="Everything you need to know about our dairy products and ordering"
          faqs={[
            {
              id: "1",
              title: "What makes your milk different from store brands?",
              content: "Our milk comes directly from our own cows on our family farm. We use no synthetic hormones, our cows graze on pesticide-free grass, and we deliver within 24 hours of milking for maximum freshness and nutritional value."
            },
            {
              id: "2",
              title: "Do you offer subscription discounts?",
              content: "Yes! We offer 10-15% discounts on weekly, bi-weekly, and monthly subscription plans. You can customize your delivery schedule and modify your order anytime with 48 hours notice."
            },
            {
              id: "3",
              title: "How should I store the dairy products?",
              content: "All products should be refrigerated immediately at 4°C or below. Raw milk stays fresh for 5-7 days, while pasteurized products last up to 14 days. Always check the date labels and consume as fresh as possible."
            },
            {
              id: "4",
              title: "Can I mix different products in one order?",
              content: "Absolutely! You can create custom orders with any combination of our products. We offer bundle discounts for orders over $25 and free delivery for orders over $50."
            }
          ]}
          animationType="smooth"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact-products" data-section="contact-products">
        <ContactText
          text="Have questions about our products or need help with your order? Our team is here to help you choose the perfect dairy selection for your family."
          animationType="reveal-blur"
          buttons={[
            { text: "Start Order", href: "#products-full" },
            { text: "Contact Support", href: "/contact" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <FooterLogoEmphasis
        logoText="Burenka"
        columns={[
          {
            items: [
              { label: "Home", href: "/" },
              { label: "Products", href: "/products" },
              { label: "About", href: "/about" },
              { label: "Contact", href: "/contact" }
            ]
          },
          {
            items: [
              { label: "Farm Shop Hours", href: "#" },
              { label: "Tue-Sun 8AM-6PM", href: "#" },
              { label: "Closed Mondays", href: "#" }
            ]
          },
          {
            items: [
              { label: "Delivery Info", href: "#" },
              { label: "Subscriptions", href: "#" },
              { label: "Pricing", href: "#" }
            ]
          },
          {
            items: [
              { label: "Email", href: "mailto:info@burenka.local" },
              { label: "Phone", href: "tel:+1234567890" },
              { label: "Farm Location", href: "#" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}