@page
@model AsadiTools.Pages.Admin.Products.EditModel
@{ ViewData["Title"] = "ویرایش محصول"; Layout = "_AdminLayout"; }

<div class="p-6 md:p-8 max-w-2xl">
    <h1 class="text-2xl font-extrabold text-gray-900 mb-8">ویرایش محصول</h1>
    <form method="post" class="bg-white rounded-2xl border border-gray-100 p-6 space-y-5">
        @Html.AntiForgeryToken()
        <input type="hidden" name="id" value="@Model.ProductId" />
        @await Html.PartialAsync("_ProductFormFields", Model.Input)
        <div class="flex gap-3">
            <button type="submit" class="flex-1 bg-blue-700 text-white py-3 rounded-xl font-bold hover:bg-blue-800 transition-colors">ذخیره تغییرات</button>
            <a href="/Admin/Products" class="px-5 border border-gray-200 rounded-xl text-sm text-gray-600 hover:bg-gray-50 transition-colors flex items-center">انصراف</a>
        </div>
    </form>
</div>
