import type { Metadata } from "next";
import { CartContent } from "./components/CartContent";
import { RelatedProducts } from "./components/RelatedProducts";
import { TrustRow } from "../components/TrustRow";
import { Footer } from "../components/Footer";

// robots: noindex — transactional page (mirrors a specific shopper's cart
// contents), per the figma-to-nextjs skill's Step 5 guidance: indexing
// this wastes crawl budget and could surface cart state in search results.
export const metadata: Metadata = {
  title: "Warenkorb",
  description: "Dein Warenkorb bei einfach produktiv.",
  robots: {
    index: false,
    follow: true,
  },
};

export default function CartPage() {
  return (
    <>
      <main className="flex flex-col flex-1 bg-bg-base">
        <CartContent />
        <RelatedProducts />
        <TrustRow />
      </main>
      <Footer />
    </>
  );
}
