@model IList<CategoryModel>
@using Nop.Core.Domain.Catalog
@if (Model.Count > 0)
{
    <div class="category-grid home-page-category-grid">
        <div class="item-grid">
            <div class="row">
                @foreach (var item in Model)
                {
                    <div class="item-box col-xs-12 col-sm-6 col-md-4 col-lg-3 col-xl-3">
                        <div class="card">
                            <div class="card-body">
                                <div class="category-item">
                                    <h2 class="title">
                                        <a href="@(Url.RouteUrl<Category>(new { SeName = item.SeName }))" title="@item.PictureModel.Title">
                                            @item.Name
                                        </a>
                                    </h2>
                                    <div class="picture">
                                        <a href="@(Url.RouteUrl<Category>(new { SeName = item.SeName }))" title="@item.PictureModel.Title">
                                            <img alt="@item.PictureModel.AlternateText" src="@item.PictureModel.ImageUrl" title="@item.PictureModel.Title" />
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
}