.elementor-kit-47{--e-global-color-primary:#D7141A;--e-global-color-secondary:#0B1F3A;--e-global-color-text:#52525B;--e-global-color-accent:#18181B;--e-global-color-czmuted:#63636B;--e-global-color-czbg:#F6F6F7;--e-global-color-czborder:#E4E4E7;--e-global-typography-primary-font-family:"Plus Jakarta Sans";--e-global-typography-primary-font-weight:800;--e-global-typography-secondary-font-family:"Plus Jakarta Sans";--e-global-typography-secondary-font-weight:700;--e-global-typography-text-font-family:"Plus Jakarta Sans";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Plus Jakarta Sans";--e-global-typography-accent-font-weight:700;}.elementor-kit-47 button,.elementor-kit-47 input[type="button"],.elementor-kit-47 input[type="submit"],.elementor-kit-47 .elementor-button{background-color:#1E126B;color:#FFFFFF;border-style:solid;border-color:#FFFFFF;}.elementor-kit-47 button:hover,.elementor-kit-47 button:focus,.elementor-kit-47 input[type="button"]:hover,.elementor-kit-47 input[type="button"]:focus,.elementor-kit-47 input[type="submit"]:hover,.elementor-kit-47 input[type="submit"]:focus,.elementor-kit-47 .elementor-button:hover,.elementor-kit-47 .elementor-button:focus{background-color:#F70404;color:#FFFFFF;border-style:solid;border-color:#FFFFFF;}.elementor-kit-47 e-page-transition{background-color:#FFBC7D;}.elementor-kit-47 input:not([type="button"]):not([type="submit"]),.elementor-kit-47 textarea,.elementor-kit-47 .elementor-field-textual{color:#D80F60;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1280px;}.e-con{--container-max-width:1280px;--container-default-padding-top:10px;--container-default-padding-right:20px;--container-default-padding-bottom:10px;--container-default-padding-left:20px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;gap:0px;}.site-header .site-branding .site-logo img{width:0px;max-width:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS */import { useEffect } from "react";
import { Carousel } from "react-responsive-carousel";
import "react-responsive-carousel/lib/styles/carousel.min.css";
import { Card, CardContent } from "@/components/ui/card";
import { TrendingUp } from "lucide-react";

const products = [
  { id: 1, name: "Product 1", image: "/images/product1.jpg", category: "Electronics" },
  { id: 2, name: "Product 2", image: "/images/product2.jpg", category: "Home and Kitchen" },
  { id: 3, name: "Product 3", image: "/images/product3.jpg", category: "Clothing" },
  { id: 4, name: "Product 4", image: "/images/product4.jpg", category: "Outdoors" },
  { id: 5, name: "Product 5", image: "/images/product5.jpg", category: "New Arrivals" }
];

const trendingItems = products.slice(0, 5);
const categories = ["Electronics", "Home and Kitchen", "Clothing", "Outdoors", "New Arrivals"];

export default function HomePage() {
  useEffect(() => {
    document.dispatchEvent(new Event("DOMContentLoaded"));
  }, []);

  return (
    <div className="container mx-auto p-4">
      <div className="carousel-wrapper">
        <Carousel autoPlay infiniteLoop interval={10000} showThumbs={false} showArrows={true} showStatus={false}>
          {products.map((product) => (
            <div key={product.id}>
              <img src={product.image} alt={product.name} className="rounded-lg" />
              <p className="legend">{product.name}</p>
            </div>
          ))}
        </Carousel>
      </div>

      <h2 className="text-xl font-bold mt-6">Featured Products</h2>
      <div className="grid grid-cols-5 gap-4 mt-4">
        {products.map((product) => (
          <Card key={product.id} className="p-4 cursor-pointer hover:shadow-lg">
            <img src={product.image} alt={product.name} className="rounded-lg" />
            <CardContent>
              <h3 className="text-lg font-semibold">{product.name}</h3>
            </CardContent>
          </Card>
        ))}
      </div>

      <h2 className="text-xl font-bold mt-6 flex items-center">
        <TrendingUp className="mr-2" /> Trending Items
      </h2>
      <div className="grid grid-cols-5 gap-4 mt-4">
        {trendingItems.map((product) => (
          <Card key={product.id} className="p-4 cursor-pointer hover:shadow-lg">
            <img src={product.image} alt={product.name} className="rounded-lg" />
            <CardContent>
              <h3 className="text-lg font-semibold">{product.name}</h3>
            </CardContent>
          </Card>
        ))}
      </div>

      <h2 className="text-xl font-bold mt-6">5 More Products</h2>
      <div className="grid grid-cols-5 gap-4 mt-4">
        {categories.map((category, index) => (
          <Card key={index} className="p-4 cursor-pointer hover:shadow-lg">
            <h3 className="text-lg font-semibold">{category}</h3>
          </Card>
        ))}
      </div>
    </div>
  );
}/* End custom CSS */