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



export const metadata: Metadata = {
  title: 'Sole & Style | Premium Footwear Collection',
  description: 'Discover Sole & Style\'s exclusive collection of premium shoes, combining timeless elegance with unmatched comfort and enduring quality. Shop men\'s and women\'s luxury footwear.',
  keywords: ["shoes, footwear, e-commerce, luxury shoes, men's shoes, women's shoes, comfortable shoes, elegant shoes, leather shoes, sneakers, boots, high heels, Sole & Style"],
  openGraph: {
    "title": "Sole & Style | Premium Footwear Collection",
    "description": "Discover Sole & Style's exclusive collection of premium shoes, combining timeless elegance with unmatched comfort and enduring quality. Shop men's and women's luxury footwear.",
    "url": "https://www.solenstyle.com",
    "siteName": "Sole & Style",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/dancing-shoes-wooden-floor_107420-63626.jpg",
        "alt": "Elegant black leather dress shoe"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Sole & Style | Premium Footwear Collection",
    "description": "Discover Sole & Style's exclusive collection of premium shoes, combining timeless elegance with unmatched comfort and enduring quality. Shop men's and women's luxury footwear.",
    "images": [
      "http://img.b2bpic.net/free-photo/dancing-shoes-wooden-floor_107420-63626.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const publicSans = Public_Sans({
  variable: "--font-public-sans",
  subsets: ["latin"],
});

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