import PageSectionHeader from "@/components/layout/PageSectionHeader";
import SectionHeader from "@/components/layout/SectionHeader";
import AddressRow from "@/components/ui/AddressRow";
import CartItemsList from "@/components/ui/CartItemsList";
import DealBanner from "@/components/ui/DealBanner";
import DynamicForm from "@/components/ui/DynamicForm";
import FeatureProducts from "@/components/ui/FeatureProducts";
import FilterPanel from "@/components/ui/FilterPanel";
import HorizontalProductRow from "@/components/ui/HorizontalProductRow";
import ItemDetails from "@/components/ui/ItemDetails";
import LargePromoBanner from "@/components/ui/LargePromoBanner";
import MessageCenter from "@/components/ui/MessageCenter";
import OrderComplete from "@/components/ui/OrderComplete";
import OrderInvoicePanel from "@/components/ui/OrderInvoicePanel";
import OrderSummary from "@/components/ui/OrderSummary";
import OrderSuccessReceipt from "@/components/ui/OrderSuccessReceipt";
import PaymentMethodRow from "@/components/ui/PaymentMethodRow";
import PromoCard from "@/components/ui/PromoCard";
import ProductCardWithCartModal from "@/components/ui/ProductCardWithCartModal";
import ProductDetailShowcase from "@/components/ui/ProductDetailShowcase";
import ProductReviewCard from "@/components/ui/ProductReviewCard";
import RoundImageLabel from "@/components/ui/RoundImageLabel";
import SellerSummary from "@/components/ui/SellerSummary";
import SupportCenter from "@/components/ui/SupportCenter";
import SupportRequestForm from "@/components/ui/SupportRequestForm";
import Tabs from "@/components/ui/Tabs";

export default function DashboardPage() {
  return (
    <div className="w-full space-y-6">
      <PageSectionHeader title="My Orders" actionLabel="Clear Order History" />
      <div className="flex flex-col gap-8 lg:flex-row lg:items-start">
        <FilterPanel className="lg:sticky lg:top-6 lg:shrink-0" />

        <div className="min-w-0 flex-1 space-y-6">
          <SupportCenter />
          <SupportRequestForm />
          <ProductReviewCard />
          <DynamicForm />
          <AddressRow />
          <PaymentMethodRow />
          <CartItemsList />
          <HorizontalProductRow />
          <MessageCenter />
          <ItemDetails />
          <OrderSummary />
          <OrderSuccessReceipt />
          <OrderComplete />
          <OrderInvoicePanel />
          <SellerSummary />
          <LargePromoBanner showNavigation />
          <SectionHeader
            title="Best Deals"
            details="Everyday essentials, made with purpose."
            viewAllHref="/dashboard"
          />
          <PromoCard
            eyebrow="Special Marketplace Pricing"
            title="Thoughtfully priced products, available for a limited time."
            showArrowButton
          />
          <ProductCardWithCartModal
            discountBadge="-40%"
            showWishlist
            name="Artisan Sauce Collection"
            rating={4.9}
            soldCount="128 Sold"
            price="LKR 5,000.00"
            oldPrice="LKR 5,500.00"
            showAddToCart
          />
          <DealBanner
            title="There's a deal for you, too"
            description="Don't miss a chance to save on item's you've been looking for."
            showIcon
          />
          <RoundImageLabel name="Leafy" />
          <ProductDetailShowcase />
          <Tabs defaultValue="reviews" />
          <FeatureProducts />
        </div>
      </div>
    </div>
  );
}
