import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { DM_Sans } from "next/font/google";



export const metadata: Metadata = {
  title: 'Cart2Closet | Luxury & Unique Fashion Store',
  description: 'Discover quality, affordable, and unique luxury fashion at Cart2Closet. Your destination for curated styles that redefine elegance and individuality.',
  keywords: ["Cart2Closet, fashion store, luxury clothing, unique fashion, affordable luxury, Lagos fashion, quality apparel, designer clothing"],
  openGraph: {
    "title": "Cart2Closet | Luxury & Unique Fashion Store",
    "description": "Discover quality, affordable, and unique luxury fashion at Cart2Closet. Your destination for curated styles that redefine elegance and individuality.",
    "url": "https://www.cart2closet.com",
    "siteName": "Cart2Closet",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/portrait-brunette-girl-pink-glasses-wear-black-posed-outdoor-sunny-day_627829-7775.jpg",
        "alt": "Elegant fashion model wearing Cart2Closet clothing"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Cart2Closet | Luxury & Unique Fashion Store",
    "description": "Discover quality, affordable, and unique luxury fashion at Cart2Closet. Your destination for curated styles that redefine elegance and individuality.",
    "images": [
      "http://img.b2bpic.net/free-photo/portrait-brunette-girl-pink-glasses-wear-black-posed-outdoor-sunny-day_627829-7775.jpg"
    ]
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  subsets: ["latin"]
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${dmSans.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
