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 { getVisualEditScript } from "@/utils/visual-edit-script";
import { DM_Sans } from "next/font/google";



export const metadata: Metadata = {
  title: 'JL Casual Wear | Estilo com Distinção',
  description: 'Descobre a JL Casual Wear, uma marca premium de vestuário casual com foco em estilo, distinção e aconselhamento personalizado. Explora a nossa coleção e contacta-nos via Instagram/Facebook.',
  keywords: ["JL Casual Wear, moda premium, vestuário casual, estilo masculino, estilo feminino, t-shirts, hoodies, looks, aconselhamento de moda, Portugal"],
  openGraph: {
    "title": "JL Casual Wear | Estilo com Distinção",
    "description": "Descobre a JL Casual Wear, uma marca premium de vestuário casual com foco em estilo, distinção e aconselhamento personalizado.",
    "url": "https://jlcasualwear.com",
    "siteName": "JL Casual Wear",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/top-view-accessoires-travel-with-man-clothing-concept-shirt-jean-mobile-phone-wooden-background-watch-sunglasses-shoes-wood-table_1921-80.jpg",
        "alt": "Saco da marca JL Casual Wear"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "JL Casual Wear | Estilo com Distinção",
    "description": "Descobre a JL Casual Wear, uma marca premium de vestuário casual com foco em estilo, distinção e aconselhamento personalizado.",
    "images": [
      "http://img.b2bpic.net/free-photo/top-view-accessoires-travel-with-man-clothing-concept-shirt-jean-mobile-phone-wooden-background-watch-sunglasses-shoes-wood-table_1921-80.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
