/*
 * Override the theme's CSS variable so every pseudo-element icon
 * (dropdown carets, category arrows, etc.) that used "Font Awesome 6 Pro"
 * switches to the Free family. Weight is forced to 900 further down.
 */
:root {
    --font-awesome: "Font Awesome 6 Free" !important;
}

/* Pseudo-element icons generated by the theme (dropdown carets, breadcrumb
   separators, small chevrons etc.) need weight 900 so they actually render
   in FA Free — Regular (400) contains only ~170 glyphs and none of the
   chevron / caret / arrow icons the theme relies on. */
.menu-item-has-children > a::after,
.menu-item-has-children a::after,
.has-children > a::after,
.has-dropdown > a::after,
.has-megamenu::after,
.has-megamenu:after,
.dropdown-toggle::after,
.axil-category > a::after,
.breadcrumb-item + .breadcrumb-item::before,
[class*="category"] > a::after,
[class*="dropdown"] > a::after,
[class*="has-"]::after,
[class*="has-"]:after {
    font-weight: 900 !important;
    font-family: "Font Awesome 6 Free" !important;
}

/* Sidebar filter widget toggle icons.
   The theme hardcodes "Font Awesome 5 Pro" on .title::before (which isn't loaded),
   so the + / − collapse indicators render as empty boxes. Force FA6 Free Solid
   so \f067 (plus) and \f068 (minus) actually appear. */
.toggle-list .title::before,
.toggle-list.active .title::before,
.title::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/*
 * Font Awesome compatibility shim.
 * Original project used Font Awesome 6 Pro (fal=Light, far=Regular, fas=Solid, fab=Brands).
 * Pro fonts are commercial and weren't in the archive.
 *
 * FA6 Free only ships Solid (900) + Brands (400) with the full icon set.
 * FA6 Free Regular (400) exists but contains only ~170 icons — most things like
 * "search", "heart", "eye", "arrow-up", "times", "watch" are missing from it,
 * which is why some icons were still empty boxes before.
 *
 * We route everything (fal / far / fas) to Solid (900) and fab to Brands.
 */

.fal, .fa-light,
.far, .fa-regular,
.fas, .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Legacy aliases / renames between FA5 and FA6. Map the old names to the new glyphs. */
.fa-long-arrow-right::before { content: "\f178"; } /* -> arrow-right-long */
.fa-search::before           { content: "\f002"; } /* -> magnifying-glass */
.fa-search-plus::before      { content: "\f00e"; }
.fa-shopping-basket::before  { content: "\f291"; } /* -> basket-shopping */
.fa-shopping-cart::before    { content: "\f07a"; } /* -> cart-shopping */
.fa-map-marker-alt::before   { content: "\f3c5"; } /* -> location-dot */
.fa-phone-alt::before        { content: "\f879"; } /* -> phone-flip */
.fa-times::before            { content: "\f00d"; } /* -> xmark */
.fa-watch::before            { content: "\f017"; } /* Pro-only, fallback to clock */
.fa-envelope-open::before    { content: "\f2b6"; }
.fa-heart::before            { content: "\f004"; }
.fa-eye::before              { content: "\f06e"; }
.fa-star::before             { content: "\f005"; }
.fa-quote-left::before       { content: "\f10d"; }
.fa-bars::before             { content: "\f0c9"; }
.fa-check::before            { content: "\f00c"; }
.fa-arrow-up::before         { content: "\f062"; }
.fa-angle-down::before       { content: "\f107"; }
.fa-angle-right::before      { content: "\f105"; }
.fa-angle-left::before       { content: "\f104"; }
.fa-angle-up::before         { content: "\f106"; }
