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: 'Elegance Emporium - Curated Luxury & Style',
  description: 'Discover exquisite, handpicked products at Elegance Emporium. Shop premium fashion, home decor, and gifts with a focus on quality, craftsmanship, and sophisticated style. Your destination for timeless elegance.',
  keywords: ["luxury, e-commerce, premium, style, elegance, fashion, home decor, gifts, sophisticated, minimalist, formal, high-end, curated"],
  openGraph: {
    "title": "Elegance Emporium - Curated Luxury & Style",
    "description": "Discover exquisite, handpicked products at Elegance Emporium. Shop premium fashion, home decor, and gifts with a focus on quality, craftsmanship, and sophisticated style. Your destination for timeless elegance.",
    "url": "https://www.eleganceemporium.com",
    "siteName": "Elegance Emporium",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/empty-clothing-store-with-casual-formal-wear-items-retail-shop-with-stylish-clothes-hangers-racks-modern-boutique-inside-shopping-centre-fashionable-merchandise-sale_482257-63323.jpg",
        "alt": "Luxurious display of high-end products"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Elegance Emporium - Curated Luxury & Style",
    "description": "Discover exquisite, handpicked products at Elegance Emporium. Shop premium fashion, home decor, and gifts with a focus on quality, craftsmanship, and sophisticated style. Your destination for timeless elegance.",
    "images": [
      "http://img.b2bpic.net/free-photo/empty-clothing-store-with-casual-formal-wear-items-retail-shop-with-stylish-clothes-hangers-racks-modern-boutique-inside-shopping-centre-fashionable-merchandise-sale_482257-63323.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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