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 { Lato } from "next/font/google";

const halant = Halant({
  variable: "--font-halant",  subsets: ["latin"],
  weight: ["300", "400", "500", "600", "700"],
});

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

const lato = Lato({
  variable: "--font-lato",  subsets: ["latin"],
  weight: ["100", "300", "400", "700", "900"]
});

export const metadata: Metadata = {
  title: "The Khione Store | Premium Anti-Tarnish Luxury Jewelry",  description: "Discover The Khione Store: premium anti-tarnish jewelry with a refined, nature-inspired luxury aesthetic. Timeless designs, artisanal craftsmanship, and quiet confidence.",  keywords: "luxury jewelry, anti-tarnish, fine jewelry, gold vermeil, emerald jewelry, nature-inspired, elegant jewelry, sustainable jewelry, designer jewelry, Khione Store",  openGraph: {
    title: "The Khione Store | Premium Anti-Tarnish Luxury Jewelry",    description: "Discover The Khione Store: premium anti-tarnish jewelry with a refined, nature-inspired luxury aesthetic. Timeless designs, artisanal craftsmanship, and quiet confidence.",    url: "https://www.thekhionestore.com",    siteName: "The Khione Store",    images: [{"url":"http://img.b2bpic.net/free-photo/soft-indoor-portrait-caucasian-gentle-woman-wearing-beige-suit-no-bra-posing-palm-tropical-plant-gray_343596-3231.jpg","alt":"Elegant model wearing luxury emerald jewelry"}],
    type: "website"
  },
  twitter: {
    card: "summary_large_image",    title: "The Khione Store | Premium Anti-Tarnish Luxury Jewelry",    description: "Discover The Khione Store: premium anti-tarnish jewelry with a refined, nature-inspired luxury aesthetic. Timeless designs, artisanal craftsmanship, and quiet confidence.",    images: ["http://img.b2bpic.net/free-photo/soft-indoor-portrait-caucasian-gentle-woman-wearing-beige-suit-no-bra-posing-palm-tropical-plant-gray_343596-3231.jpg"]
  },
  robots: {
    index: true,
    follow: true
  }
};

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