"use client";

import { Skeleton } from "@heroui/react";

/**
 * Loading skeleton for ProductListTile. Matches horizontal list tile layout.
 */
export function ProductListTileSkeleton() {
  return (
    <div className="flex flex-row gap-3 rounded-[var(--radius)] border border-[var(--border)] bg-[var(--surface)] p-3">
      <Skeleton className="h-20 w-20 shrink-0 rounded-lg" />
      <div className="min-w-0 flex-1 space-y-2">
        <div className="flex gap-2">
          <Skeleton className="h-3 w-16 rounded" />
          <Skeleton className="h-3 w-8 rounded" />
        </div>
        <Skeleton className="h-3 w-full rounded" />
        <Skeleton className="h-3 w-4/5 rounded" />
        <Skeleton className="h-4 w-14 rounded" />
      </div>
    </div>
  );
}
