/* Mega Menu Styles
-------------------------------------------------- */

/* Container */
.mega-menu-container {
    position: relative;
    width: 100%;
    z-index: 1000;
    background: #fff;
}

/* Main Menu Bar */
#menu {
    background: #d73f15;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
}

#menu .navbar-nav {
    float: none;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Standard Menu Items */
#menu .nav>li.standard-item>a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

#menu .nav>li.standard-item>a:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
}

/* Active items styles - keep separate from dropdown visibility */
.mega-dropdown .mega-menu-link.active {
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    font-weight: 700;
}

/* All dropdowns should be hidden by default */
.mega-dropdown-menu {
    display: none;
}

/* All dropdowns should only show when parent has open class */
.mega-dropdown.open>.mega-dropdown-menu {
    display: block;
}

/* This applies to all menu items */
.mega-dropdown {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    overflow: visible;
}

/* Update active items styling to avoid conflicts with hover behavior */
.active {
    z-index: 1000;
}

.mega-menu-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* Force dropdown visibility only when open class is present */
.mega-dropdown .mega-dropdown-menu {
    display: none;
    z-index: 1001;
    visibility: visible;
    opacity: 1;
    position: absolute;
    top: 100%;
    left: 0;
}

.mega-dropdown.open>.mega-dropdown-menu {
    display: block;
}

.simple-menu-list li.active a,
.simple-menu-list li a.active,
.submenu li.active a,
.submenu li a.active {
    color: #d73f15;
}

/* Mega Dropdown Styles */
.mega-dropdown .mega-menu-link {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 10px 15px 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.mega-dropdown .mega-menu-link:hover,
.mega-dropdown.open .mega-menu-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.mega-dropdown .fa {
    transition: transform 0.3s ease;
}

.mega-dropdown.open .fa {
    transform: rotate(-180deg);
}

.more-menu-item .more-link {
    margin-top: 1px;
}

/* Mega Dropdown Menu */
.mega-dropdown-menu {
    padding: 0;
    width: auto;
    min-width: auto;
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.3s ease;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
    display: none;
    background: #fff;
    /* Support JavaScript positioning */
    transform-origin: top left;
    transition: left 0.2s ease;
}

/* Show dropdown only when .open class is present */
.mega-dropdown.open .mega-dropdown-menu {
    display: block;
}

.mega-menu-wrapper {
    padding: 30px 20px;
    background: #fff;
    position: relative;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    /* Ensures content doesn't overflow */
    max-width: 90vw;
    /* Maximum width relative to viewport */
}

/* Column Layout */
.category-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Add some padding for scrollbar */
    -ms-overflow-style: none;
    /* Hide scrollbar in IE and Edge */
    scrollbar-width: none;
    /* Hide scrollbar in Firefox */
}

.category-columns::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar in Chrome, Safari and Opera */
}

/* Menu Column */
.menu-column {
    min-width: 300px;
    flex: 0 0 auto;
    /* Don't grow or shrink */
}

/* Column Headers */
.column-header {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding: 0 0 8px 0;
    color: #333;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
}

/* Menu Lists */
.simple-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.simple-menu-list li {
    margin: 0 0 10px 0;
    padding: 0;
}

.simple-menu-list li a {
    color: #555;
    font-size: 16px;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    text-align: left;
}

.simple-menu-list li a:hover {
    color: #d73f15;
}

/* Mobile Menu */
.navbar-toggle {
    background: #fff;
    border-color: #fff;
    margin-right: 0;
}

.navbar-toggle .icon-bar {
    background: #D73F15;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(3px);
}

/* Dropdown Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .navbar-collapse {
        max-height: calc(100vh - 50px);
        overflow-y: auto;
        background: #fff;
    }

    .mega-dropdown {
        position: relative !important;
        display: block;
    }

    .mega-dropdown .mega-menu-link {
        width: 80%;
        display: inline-block;
        padding: 12px 15px;
        color: #333;
    }

    .mega-dropdown .mega-menu-link {
        width: 100%;
        padding: 12px 15px;
    }

    .mega-dropdown-menu {
        position: static;
        float: none;
        width: auto;
        min-width: auto;
        box-shadow: none;
        animation: none;
    }

    .mega-menu-wrapper {
        padding: 15px;
    }

    /* Stack columns on mobile */
    .col-md-3.col-sm-6 {
        margin-bottom: 15px;
    }

    .column-header {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .simple-menu-list li {
        margin-bottom: 8px;
    }

    .simple-menu-list li a {
        font-size: 13px;
    }
}

/* Tablet Menu Styles */
@media (min-width: 768px) and (max-width: 991px) {
    .mega-dropdown {
        position: relative !important;
    }

    .mega-dropdown .mega-menu-link {
        padding: 15px 8px;
        font-size: 12px;
    }

    .mega-dropdown-menu {
        min-width: auto;
    }

    .menu-column {
        min-width: 200px;
    }

    .mega-menu-wrapper {
        padding: 20px 15px;
    }

    .column-header {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .simple-menu-list li {
        margin-bottom: 8px;
    }

    .simple-menu-list li a {
        font-size: 13px;
    }
}

/* Ensure proper dropdown display regardless of active state */
.mega-dropdown .dropdown-menu,
.mega-dropdown .active .dropdown-menu {
    display: none;
}

.mega-dropdown.open .dropdown-menu,
.mega-dropdown.open .active .dropdown-menu {
    display: block;
}

@media (max-width: 991px) {

    .mega-dropdown .dropdown-menu,
    .mega-dropdown .active .dropdown-menu,
    .mega-dropdown.open .dropdown-menu,
    .mega-dropdown.open .active .dropdown-menu {
        display: none;
        /* Override on mobile - we'll use JS to show/hide */
    }
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .mega-dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        box-shadow: none !important;
        animation: none !important;
    }

    .mega-dropdown .dropdown-menu {
        display: none;
        /* Hide by default on mobile too */
    }

    .mega-dropdown.open .dropdown-menu {
        display: block;
    }
}

/* Ensure items show dropdown when open */
.mega-dropdown.open>.mega-dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10001 !important;
}

/* Ensure hover works on active items */
.mega-dropdown .active {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Modern mega menu styling */
.mega-dropdown-menu {
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.mega-menu-wrapper {
    padding: 0;
    position: relative;
    background: #fff;
    border-radius: 2px;
}

.category-heading {
    background: linear-gradient(135deg, #36445a 0%, #2a3546 100%);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-bottom: 1px solid #e9ecef;
}

.category-heading h2 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.category-heading h2:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: #d73f15;
    margin-left: 12px;
    border-radius: 1px;
}

.category-heading:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(223, 223, 223, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.category-columns {
    display: flex;
    padding: 0;
    background: #fff;
    gap: 0;
}

.menu-column {
    min-width: 300px;
    flex: 1;
}

.simple-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-menu-list li {
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
}

.simple-menu-list li:last-child {
    border-bottom: none;
}

.simple-menu-list li a {
    color: #555;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.simple-menu-list li a:hover {
    color: #d73f15;
    background: #f8f8f8;
}

.simple-menu-list li:hover {
    background-color: rgba(215, 63, 21, 0.05);
}

.simple-menu-list li a.active {
    color: #d73f15;
    font-weight: 600;
    background-color: rgba(215, 63, 21, 0.05);
    border-left-color: #d73f15;
}

.submenu-icon {
    font-size: 20px;
    color: #ccc;
    transition: color 0.2s ease;
    width: 20px;
    text-align: center;
    position: absolute;
    right: 10px;
}

.simple-menu-list li a:hover .submenu-icon {
    color: #d73f15;
}

/* Main menu styling */
.main-menu>li>a {
    font-weight: 500;
    color: #36445a;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.main-menu>li>a:hover,
.main-menu>li>a.active {
    color: #d73f15;
}

.main-menu>li.active>a {
    color: #d73f15;
    font-weight: 600;
}

.mega-menu-link i {
    font-size: 12px;
    margin-left: 3px;
    position: relative;
    top: -1px;
}

/* Styling for the MORE menu */
.more-menu-item .more-link {
    background-color: #36445a;
    color: #fff !important;
    font-weight: 700;
    border-radius: 4px;
    padding: 10px 15px !important;
}

.more-menu-item:hover .more-link {
    background-color: #2a3546 !important;
}

/* Hide menu items that are moved to the MORE dropdown */
li.hidden-item {
    display: none !important;
}

.more-dropdown .mega-menu-wrapper {
    display: flex;
    justify-content: flex-start;
    padding: 20px;
}

.more-category-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.overflow-column {
    min-width: 200px;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    border: none;
    overflow: hidden;
}

.overflow-column h3 {
    background: #36445a;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

/* Make category main links in More dropdown clickable and styled */
.overflow-column h3 a.category-main-link {
    color: #fff;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    padding: 0;
}

.overflow-column h3 a.category-main-link:hover {
    color: #d73f15;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Make menu width dynamic based on content */
.mega-dropdown-menu {
    width: auto;
    min-width: 200px;
    white-space: nowrap;
}

/* Make MORE dropdown 80% of window width */
.more-dropdown.mega-dropdown-menu {
    width: 80vw;
    max-width: 1400px;
    white-space: normal;
    left: auto !important;
    right: 0;
    transform: translateX(10%);
}

/* Ensure MORE dropdown appears on hover */
.more-menu-item:hover .more-dropdown {
    display: block !important;
}

/* Hide dropdown menus for items that are moved to MORE */
li.hidden-item.mega-dropdown .mega-dropdown-menu {
    display: none !important;
}

/* Mobile menu improvements */
.navbar-toggle {
    background-color: #36445a;
    border: none;
    margin-right: 0;
    padding: 12px 10px;
    position: relative;
    z-index: 1060;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: -4px;
}

.navbar-toggle:hover {
    background-color: #c63512;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.navbar-toggle .icon-bar+.icon-bar {
    margin-top: 4px;
}

.navbar-toggle.active .icon-bar:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
}

.navbar-toggle.active .icon-bar:nth-child(3) {
    opacity: 0;
}

.navbar-toggle.active .icon-bar:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 991px) {

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1499;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(3px);
    }

    body.mobile-menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 6px;
        right: 8px;
        font-size: 18px;
        color: #fff;
        cursor: pointer;
        z-index: 1505;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #435471;
        border-radius: 50%;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    /* Mobile Menu Header */
    .mobile-menu-header {
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, #d73f15 0%, #b8340f 100%);
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1504;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-logo h3 {
        margin: 0;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Mobile Breadcrumb */
    .mobile-breadcrumb {
        background: #f8f9fa;
        padding: 0;
        border-bottom: 1px solid #eee;
        display: none;
        align-items: center;
        min-height: 50px;
    }

    .mobile-breadcrumb.show {
        display: flex;
    }

    .mobile-back-btn {
        background: none;
        border: none;
        padding: 15px 20px;
        color: #d73f15;
        font-weight: 600;
        display: flex;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-back-btn:hover {
        background: rgba(215, 63, 21, 0.1);
    }

    .mobile-back-btn i {
        margin-right: 8px;
    }

    .mobile-breadcrumb-path {
        flex: 1;
        padding: 15px 20px 15px 0;
        font-size: 14px;
        color: #666;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Mobile Navigation Container */
    #menu {
        position: static;
    }

    /* Mobile navbar header */
    .navbar-header {
        position: absolute;
        right: 15px;
        top: 10px;
        z-index: 1060;
        background-color: transparent;
    }

    /* Mobile menu slide-out panel */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 320px;
        height: 100vh !important;
        margin: 0;
        padding: 0;
        background-color: #fff;
        z-index: 1500;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: none;
        display: block !important;
        -webkit-overflow-scrolling: touch;
    }

    /* When mobile menu is open, show the slide-out panel */
    body.mobile-menu-open .navbar-collapse {
        right: 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    }

    /* Body when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Hide the MORE menu item on mobile */
    .more-menu-item {
        display: none !important;
    }

    /* Show hidden items */
    .hidden-item {
        display: block !important;
    }

    /* Main mobile menu list */
    .main-menu {
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
    }

    /* Mobile menu items */
    .main-menu>li {
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        width: 100%;
        margin: 0;
        transition: all 0.3s ease;
    }

    .main-menu>li:hover {
        background: #f8f9fa;
    }

    /* Mobile Menu Item Wrapper */
    .mobile-menu-item-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
        position: relative;
    }

    /* Mobile menu links */
    .main-menu>li>.mobile-menu-item-wrapper>a,
    .main-menu>li>.mobile-menu-item-wrapper .mega-menu-link {
        flex: 1;
        padding: 16px 20px;
        display: flex;
        align-items: center;
        color: #333;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        background: none;
    }

    .mobile-category-icon {
        margin-right: 12px;
        font-size: 16px;
        color: #d73f15;
        width: 20px;
        text-align: center;
    }

    .category-text {
        flex: 1;
        font-weight: 600;
    }

    .item-count {
        font-size: 12px;
        color: #999;
        background: #f0f0f0;
        padding: 2px 6px;
        border-radius: 10px;
        margin-left: 8px;
        min-width: 30px;
        text-align: center;
    }

    /* Mobile Dropdown Toggle */
    .mobile-dropdown-toggle {
        width: 50px;
        height: 60px;
        background: none;
        border: none;
        color: #999;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        border-left: 1px solid #f0f0f0;
    }

    .mobile-dropdown-toggle:hover {
        background: #f0f0f0;
        color: #d73f15;
    }

    .mobile-dropdown-toggle i {
        font-size: 14px;
        transition: transform 0.3s ease;
    }

    .mega-dropdown.open .mobile-dropdown-toggle i {
        transform: rotate(90deg);
    }

    /* Active states */
    .main-menu>li.active>.mobile-menu-item-wrapper>a,
    .main-menu>li>.mobile-menu-item-wrapper>a:hover {
        color: #d73f15;
        background: rgba(215, 63, 21, 0.05);
    }

    .main-menu>li.active {
        background: rgba(215, 63, 21, 0.05);
        border-left: 3px solid #d73f15;
    }

    /* Mobile dropdown menus */
    .mega-dropdown-menu {
        position: static !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        border: none !important;
        min-width: 100%;
        white-space: normal;
        animation: none;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
        background: #f8f9fa;
    }

    /* Show dropdown when open */
    .mega-dropdown.open .mega-dropdown-menu {
        max-height: 1000px;
    }

    /* Mobile category headings */
    .category-heading {
        background: linear-gradient(135deg, #36445a 0%, #2a3546 100%);
        padding: 18px 20px;
        position: relative;
        overflow: hidden;
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }

    .category-heading h2 {
        margin: 0;
        font-size: 16px;
        color: #fff;
        font-weight: 600;
        position: relative;
        z-index: 2;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
    }

    .category-heading h2 a {
        color: #fff !important;
        text-decoration: none;
    }

    .category-heading h2:after {
        content: '';
        display: inline-block;
        width: 30px;
        height: 2px;
        background: #d73f15;
        margin-left: 12px;
        border-radius: 1px;
    }

    /* Mobile category columns */
    .category-columns {
        flex-direction: column;
        padding: 0;
        gap: 0;
        width: 100%;
        overflow-x: visible;
        background-color: #f8f9fa;
    }

    /* Mobile menu columns */
    .menu-column {
        min-width: 100%;
        width: 100%;
        background-color: #fff;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-column:last-child {
        border-bottom: none;
    }

    /* Mobile menu lists */
    .simple-menu-list {
        margin: 0;
        padding: 0;
    }

    /* Mobile submenu links */
    .simple-menu-list li {
        margin: 0;
        border-bottom: 1px solid #f5f5f5;
        transition: background-color 0.2s ease;
    }

    .simple-menu-list li:last-child {
        border-bottom: none;
    }

    .simple-menu-list li a {
        padding: 8px 15px 12px 8px;
        display: flex;
        align-items: center;
        color: #555;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        text-decoration: none;
    }

    .submenu-icon {
        margin-right: 10px;
        font-size: 12px;
        color: #ccc;
        transition: all 0.3s ease;
    }

    .simple-menu-list li:hover {
        background-color: #f8f9fa;
    }

    .simple-menu-list li a:hover {
        color: #d73f15;
    }

    .simple-menu-list li a:hover .submenu-icon {
        color: #d73f15;
    }

    .simple-menu-list li a.active {
        color: #d73f15;
        font-weight: 600;
        background-color: rgba(215, 63, 21, 0.05);
    }

    .simple-menu-list li a.active .submenu-icon {
        color: #d73f15;
    }

    /* Mobile Menu Footer */
    .mobile-menu-footer {
        background: #f8f9fa;
        padding: 20px;
        border-top: 1px solid #eee;
        margin-top: auto;
    }

    .mobile-footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .mobile-footer-links a {
        color: #666;
        font-size: 13px;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .mobile-footer-links a:hover {
        color: #d73f15;
    }

    .mobile-footer-contact p {
        margin: 8px 0;
        font-size: 13px;
        color: #666;
        display: flex;
        align-items: center;
    }

    .mobile-footer-contact i {
        margin-right: 8px;
        color: #d73f15;
        width: 16px;
        text-align: center;
    }

    .mobile-footer-contact a {
        color: #d73f15;
        text-decoration: none;
        margin-left: 5px;
        font-weight: 600;
    }

    .mobile-footer-contact a:hover {
        text-decoration: underline;
    }

    /* Loading states */
    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Animations */
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .navbar-collapse {
        animation: slideInRight 0.4s ease-out;
    }

    /* Touch feedback */
    .main-menu>li:active,
    .mobile-dropdown-toggle:active {
        background: #e9ecef;
        transform: scale(0.98);
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .navbar-collapse {
        width: 90%;
        right: -90%;
    }

    .mobile-menu-header {
        padding: 12px 15px;
    }

    .mobile-menu-logo h3 {
        font-size: 16px;
    }

    .main-menu>li>.mobile-menu-item-wrapper>a {
        font-size: 14px;
        padding: 14px 15px;
    }

    .category-heading {
        padding: 14px 15px;
    }

    .category-heading h2 {
        font-size: 14px;
    }

    .simple-menu-list li a {
        font-size: 15px;
        padding: 8px 15px 12px 8px;
    }

    .mobile-footer-contact p {
        font-size: 12px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .navbar-collapse {
        width: 95%;
        right: -95%;
    }
}

/* Close button for mobile menu - actual element instead of pseudo-element */
/* Only show close button on mobile devices */
@media (min-width: 992px) {

    .mobile-menu-close,
    .mobile-menu-header,
    .mobile-breadcrumb,
    .mobile-menu-footer,
    .mobile-menu-overlay,
    .mobile-dropdown-toggle {
        display: none !important;
    }

    .mobile-menu-item-wrapper {
        display: block !important;
    }
}

/* Desktop vs Mobile Menu Separation */
@media (min-width: 992px) {

    /* Hide mobile-specific elements on desktop */
    .mobile-menu-header,
    .mobile-breadcrumb,
    .mobile-menu-footer,
    .mobile-menu-overlay,
    .mobile-dropdown-toggle,
    .mobile-menu-item-wrapper,
    .mobile-category-icon,
    .item-count,
    .mobile-menu-close {
        display: none !important;
    }

    /* Show desktop menu links */
    .main-menu>li>.mega-menu-link,
    .main-menu>li>a:not(.mobile-mega-menu-link) {
        display: block !important;
    }

    /* Desktop mega dropdown hover behavior */
    .mega-dropdown:hover .mega-dropdown-menu {
        display: block;
    }

    /* Normal navbar behavior for desktop */
    .navbar-collapse {
        position: static !important;
        width: auto;
        height: auto !important;
        padding: 0;
        margin: 0;
        overflow: visible !important;
        background-color: transparent !important;
        border: none;
        box-shadow: none;
        transition: none;
        transform: none;
    }

    /* Desktop menu display */
    .main-menu {
        float: left;
        margin: 0;
    }

    .main-menu>li {
        float: left;
        position: relative;
    }

    /* Desktop dropdown positioning */
    .mega-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: none;
        min-width: 200px;
        border-radius: 0;
    }
}

@media (max-width: 991px) {

    /* Hide desktop-specific elements on mobile */
    .main-menu>li>.mega-menu-link:not(.mobile-mega-menu-link),
    .main-menu>li>a:not(.mobile-mega-menu-link):not([class*="mobile"]) {
        display: none !important;
    }

    /* Show mobile menu elements */
    .mobile-menu-item-wrapper {
        display: flex !important;
    }
}