Cold weather skin
{
const children = Array.from($el.children)
const children_products = children.filter((child) => child.classList.contains("filter__product"))
let order = 0
for (let i = 0; i < children_products.length; i++) {
if (children_products[i].dataset.show == "false") {
children_products[i].style.display = "none"
} else {
children_products[i].style.display = ""
children_products[i].style.order = order
order++
}
}
const children_promos = children.filter((child) => child.classList.contains("filter__promo"))
for (let i = 0; i < children_promos.length; i++) {
const index = children.indexOf(children_promos[i])
if (index > -1) {
const next_children_products = children.filter((child) => child.classList.contains("filter__product") && child.dataset.show != "false" && parseInt(child.style.order) > parseInt(children_promos[i].style.order))
if (next_children_products.length > 0) {
children_promos[i].style.display = ""
} else {
children_promos[i].style.display = "none"
}
} else {
console.error("Element not found!")
}
}
}, 5)
'
>
Alpine Rich Cream
Forest Alchemy Eye Cream
Making Moves Milky Cleanser
Mountain Glow Golden Serum
Going Places Lip Balm
Dry Skin Dream Team
Forest Bliss Bundle
Lip Balm Three-Pack
Hydration Heroes Bundle
The Essential Serum Set
![Alpine Rich Cream](http://www.ursamajorvt.com/cdn/shop/files/2000x2000_RichCream_1.jpg?v=1720470520)
Luxuriously rich, velvety perfection in a jar.
Luxuriously rich, velvety perfection in a jar.
Luxuriously rich, velvety perfection in a jar.
Rated 4.5 out of 5 stars
4.5 Stars (470 Reviews)
![Forest Alchemy Eye Cream](http://www.ursamajorvt.com/cdn/shop/files/2000x2000_EyeCream_FullSize_jpg_1.jpg?v=1720643358)
A supremely nourishing, all-in-one eye cream with powerful active ingredients.
A supremely nourishing, all-in-one eye cream with powerful active ingredients.
Rated 4.2 out of 5 stars
4.2 Stars (1,638 Reviews)
![Making Moves Milky Cleanser](http://www.ursamajorvt.com/cdn/shop/files/00_UM_MC_WithBox_OnWhite_2000x2000_1.jpg?v=1720643332)
An easy-rinsing, enzyme-powered facial milk for clean, hydrated skin.
An easy-rinsing, enzyme-powered facial milk for clean, hydrated skin.
Rated 4.5 out of 5 stars
4.5 Stars (363 Reviews)
![Mountain Glow Golden Serum](http://www.ursamajorvt.com/cdn/shop/files/UM_MountainGlow_PCP_OnWhite_1.jpg?v=1720643323)
A one-of-a-kind, deeply rejuvenating face serum for your best skin ever.
A one-of-a-kind, deeply rejuvenating face serum for your best skin ever.
Rated 4.7 out of 5 stars
4.7 Stars (1,397 Reviews)
![Going Places Lip Balm](http://www.ursamajorvt.com/cdn/shop/files/UM_LipBalm_PCP_1.jpg?v=1720643341)
A clean lip balm for soft, hydrated lips, everywhere you go.
A clean lip balm for soft, hydrated lips, everywhere you go.
Rated 4.3 out of 5 stars
4.3 Stars (282 Reviews)
![Ursa Major Skincare Dry Skin Dream Team](http://www.ursamajorvt.com/cdn/shop/files/Alpine-Rich-Cream-_-Milky-Cleanser-PCP-2000x2000.jpg?v=1698880465)
MADE TO:
Hydrate skin at every level.
Hydrate your skin at every level.
CONTAINS:
Moisturizer + cleanser
Moisturizer + cleanser
Rated 4.5 out of 5 stars
4.5 Stars (865 Reviews)
2 items
![Ursa Major Skincare Forest Bliss Bundle](http://www.ursamajorvt.com/cdn/shop/files/Alpine-Rich-Cream-_-Forest-Alchemy-Eye-Cream-PCP.jpg?v=1698864865)
MADE TO:
Hydrate deeply and rewind fine lines.
Hydrate deeply and rewind fine lines.
CONTAINS:
Moisturizer + eye cream
Moisturizer + eye cream
Rated 4.3 out of 5 stars
4.3 Stars (2,124 Reviews)
2 items
![Lip Balm Three-Pack](http://www.ursamajorvt.com/cdn/shop/products/Untitleddesign_9.png?v=1668116188)
MADE TO:
Keep lips hydrated wherever you go.
Keep lips hydrated wherever you go.
CONTAINS:
Three Going Places Lip Balms
Three Going Places Lip Balms
Rated 4.3 out of 5 stars
4.3 Stars (311 Reviews)
3 items
![Hydration Heroes Bundle](http://www.ursamajorvt.com/cdn/shop/products/Untitleddesign_7.png?v=1668116066)
MADE TO:
Hydrate and boost all-around radiance.
Hydrate deeply and boost all-around radiance.
CONTAINS:
Moisturizer + serum
Moisturizer + serum
Rated 4.5 out of 5 stars
4.5 Stars (6,325 Reviews)
2 items
![The Essential Serum Set](http://www.ursamajorvt.com/cdn/shop/products/Untitleddesign_6.png?v=1668115588)
MADE TO:
Lighten, brighten, and boost glow.
Lighten, brighten, and boost glow.
CONTAINS:
Two serums
Two serums
Rated 4.6 out of 5 stars
4.6 Stars (2,877 Reviews)
2 items