Explore the great outdoors in style with our Bucket Safari Hat from Urban Tex Enterprises. Designed for maximum comfort and durability, this versatile hat is perfect for safari adventures, hiking trips, or casual everyday wear. Made from high-quality, breathable fabric, the Bucket Safari Hat provides excellent sun protection while maintaining a lightweight, comfortable fit. Its wide brim shields your face and neck from harmful UV rays, and its adjustable chin strap ensures a secure fit during windy conditions. Whether you’re venturing into the wild or strolling around town, this hat is the ultimate outdoor accessory.
Key Features:
Wide brim for enhanced sun protection
Lightweight and breathable material
Adjustable chin strap for a secure fit
Stylish and practical for all outdoor activities
document.addEventListener('DOMContentLoaded', function () {
const menuSelector =
'.header-navigation nav.navbar-nav, #main-header .navbar-nav';
const margin = 15;
function adjustSubmenu(li) {
if (window.innerWidth < 992) return;
const submenu = Array.from(li.children).find(
el => el.tagName === 'UL'
);
if (!submenu) return;
// Ignore first dropdown; adjust nested levels only
const parentUl = li.parentElement;
if (!parentUl || parentUl.matches(menuSelector)) return;
submenu.classList.remove('urbatex-flip-left');
// Measure even when the submenu is not currently visible
const previous = {
display: submenu.style.display,
visibility: submenu.style.visibility
};
submenu.style.display = 'grid';
submenu.style.visibility = 'hidden';
const parentRect = li.getBoundingClientRect();
const width = submenu.getBoundingClientRect().width;
if (parentRect.right + width > window.innerWidth - margin) {
submenu.classList.add('urbatex-flip-left');
}
submenu.style.display = previous.display;
submenu.style.visibility = previous.visibility;
}
document.querySelectorAll(menuSelector).forEach(menu => {
menu.addEventListener('pointerover', function (event) {
if (window.innerWidth < 992) return;
const li = event.target.closest('li');
if (li && menu.contains(li)) {
adjustSubmenu(li);
}
});
menu.addEventListener('focusin', function (event) {
const li = event.target.closest('li');
if (li && menu.contains(li)) {
adjustSubmenu(li);
}
});
});
window.addEventListener('resize', function () {
document.querySelectorAll('.urbatex-flip-left')
.forEach(el => el.classList.remove('urbatex-flip-left'));
});
});