@model WebVentaCoche.Models.Product

<div class="container">
    <h2 class="text-center my-4">@Model.Name</h2>

    <div class="row">
        <div class="col-md-8">
            <p>@Model.LongDescription</p>
            <p><strong>Precio:</strong> @Model.Price €</p>
        </div>
        <div class="col-md-4">
            @if (!string.IsNullOrEmpty(Model.ImagePath))
            {
                <img src="@Model.ImagePath" class="img-fluid rounded" alt="@Model.Name" />
            }
            else
            {
                <img src="/images/default.png" class="img-fluid rounded" alt="Imagen no disponible" />
            }
        </div>
    </div>
</div>
