@using Nop.Core
@using Nop.Core.Domain.Catalog
@using Nop.Core.Infrastructure
@using Nop.Services.Helpers

@inject CatalogSettings catalogSettings
@inject IThemeContext themeContext
@inject IUserAgentHelper userAgentHelper
@inject IStoreContext storeContext
@inject INopFileProvider nopFileProvider

@{
    Layout ="";
    var themeName = await themeContext.GetWorkingThemeNameAsync();
    var supportRtl = await Html.ShouldUseRtlThemeAsync();
    var storeId = (await storeContext.GetCurrentStoreAsync()).Id;
    var customCssPath = $"~/Themes/{themeName}/Content/css/styles.default-{storeId}.css";

    if (nopFileProvider.FileExists(nopFileProvider.MapPath(customCssPath)))
        NopHtml.AppendCssFileParts(customCssPath, excludeFromBundle: true);

    //add main CSS file
    NopHtml.AppendCssFileParts($"~/Themes/{themeName}/Content/css/responsive-min-1367{(supportRtl ? ".rtl" : "")}.css");
    NopHtml.AppendCssFileParts($"~/Themes/{themeName}/Content/css/responsive-min-1240{(supportRtl ? ".rtl" : "")}.css");
    NopHtml.AppendCssFileParts($"~/Themes/{themeName}/Content/css/responsive-min-1001{(supportRtl ? ".rtl" : "")}.css");
    NopHtml.AppendCssFileParts($"~/Themes/{themeName}/Content/css/responsive-min-769{(supportRtl ? ".rtl" : "")}.css");
    NopHtml.AppendCssFileParts($"~/Themes/{themeName}/Content/css/responsive-min-481{(supportRtl ? ".rtl" : "")}.css");
    NopHtml.AppendCssFileParts($"~/Themes/{themeName}/Content/css/responsive-max-1000{(supportRtl ? ".rtl" : "")}.css");
    NopHtml.AppendCssFileParts($"~/Themes/{themeName}/Content/css/responsive-max-768{(supportRtl ? ".rtl" : "")}.css");
    NopHtml.AppendCssFileParts($"~/Themes/{themeName}/Content/css/styles{(supportRtl ? ".rtl" : "")}.css");
    

    NopHtml.AppendCssFileParts($"~/Themes/{themeName}/Content/css/font-awesome.min.css");
    //add swiper css file
    if (catalogSettings.DisplayAllPicturesOnCatalogPages)
    {
        NopHtml.AppendCssFileParts("~/lib_npm/swiper/swiper-bundle.min.css");
    }

    //add jQuery UI css file
    NopHtml.AppendCssFileParts("~/lib_npm/jquery-ui-dist/jquery-ui.min.css");
}