import type { Metadata } from "next";
import * as React from "react";
import { Inter, Roboto_Mono } from "next/font/google";
import "./globals.css";
import { CartProvider } from "@/context/CartContext";

const inter = Inter({
  variable: "--font-sans",
  subsets: ["latin"],
  display: "swap",
});

const robotoMono = Roboto_Mono({
  variable: "--font-mono",
  subsets: ["latin"],
  display: "swap",
});

export const metadata: Metadata = {
  title: "Server Zone Computer - E-Commerce Platform",
  description: "Server Zone Computer - Your trusted source for computers and technology products.",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body
        className={`${inter.variable} ${robotoMono.variable} antialiased`}
      >
        <CartProvider>{children}</CartProvider>
        <footer>
          <p>
            &copy; {new Date().getFullYear()} My Website. All rights reserved.
          </p>
        </footer>
      </body>
    </html>
  );
}
