/**
 * Extended Menu CSS - Modern Design
 * Styling for navigation and mega menu panel
 */

/* Primary navigation alignment inside sticky header */
.header-wrapper .navigation {
    display: flex !important;
    align-items: center;
    height: 100%;
    width: 100%;
    justify-content: center;
    position: relative;
}

.header-wrapper .navigation ul {
    display: flex !important;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.store.menu,
.navigation.sections,
.catalog.topnav {
    display: none !important;
}

/* Ensure navigation wrapper allows menu overflow */
.navigation-wrapper,
.navigation-wrapper .navigation {
    overflow: visible !important;
    position: relative;
}

/* Menu items styling */
.navigation .level-top {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    padding: 0 16px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navigation .level-top:hover {
    color: #cccccc;
}

/* Mega Menu Container */
.kw-mega-menu {
    position: fixed;
    top: auto;
    left: 0 !important;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #1a1a1a;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 2500;
    width: 100vw !important;
    margin-left: 0 !important;
    border-radius: 0;
    overflow: visible;
    /* padding-top: 10px; */
    margin-top: -10px;
}

.navigation .has-mega-menu:hover .kw-mega-menu,
.navigation .has-mega-menu:focus-within .kw-mega-menu,
.kw-mega-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s;
}

.navigation .level-top.has-submenu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Mega Menu Inner Structure */
.kw-mega-menu__inner {
    width: 100%;
    margin: 0 auto;
}

.kw-mega-menu__content {
    display: flex;
    width: 100%;
    min-height: 550px;
    max-height: none;
}

/* Left Sidebar - Categories with modern design */
.kw-mega-menu__categories {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    order: 1;
    padding: 28px 0;
    position: relative;
    margin-left: calc((100vw - 1500px) / 2);
    overflow-y: auto;
    max-height: 600px;
}

/* For smaller screens, align to left edge */
@media (max-width: 1400px) {
    .kw-mega-menu__categories {
        margin-left: 40px;
    }
}

/* Hide scrollbar for cleaner look */
.kw-mega-menu__categories::-webkit-scrollbar {
    width: 4px;
}

.kw-mega-menu__categories::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.kw-mega-menu__categories::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.kw-mega-menu__categories::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.kw-mega-menu__categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.kw-mega-menu__categories-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 24px 0;
    padding: 0 28px;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

.kw-mega-menu__categories-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 28px;
    width: 40px;
    height: 2px;
    background: #ffffff;
}

.kw-mega-menu__category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kw-mega-menu__category-list .category-item {
    position: relative;
}

/* Prevent duplication if items exist multiple times */
.kw-mega-menu__category-list .category-item + .category-item[data-category-id]:not([data-category-id=""]) {
    /* Check if same category ID appears twice in a row */
}

.kw-mega-menu__category-list .category-item:empty {
    display: none;
}

.kw-mega-menu__category-list .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.kw-mega-menu__category-list .category-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #ffffff;
    transition: height 0.3s ease;
}

.kw-mega-menu__category-list .category-item:hover .category-link,
.kw-mega-menu__category-list .category-item.active .category-link {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 32px;
}

.kw-mega-menu__category-list .category-item:hover .category-link::before,
.kw-mega-menu__category-list .category-item.active .category-link::before {
    height: 100%;
}

.kw-mega-menu__category-list .category-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.kw-mega-menu__category-list .category-action {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex !important;
}

.kw-mega-menu__category-list .category-item:hover .category-action,
.kw-mega-menu__category-list .category-item.active .category-action {
    color: rgba(255, 255, 255, 1);
}

.kw-mega-menu__category-list .category-preview {
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 4px;
    margin-left: 12px;
    flex-shrink: 0;
}

.kw-mega-menu__category-list .category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Ensure arrow shows even if category has no image */
.kw-mega-menu__category-list .category-link::after {
    content: '›';
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.kw-mega-menu__category-list .category-item:hover .category-link::after,
.kw-mega-menu__category-list .category-item.active .category-link::after {
    color: rgba(255, 255, 255, 1);
}

/* Hide the default category-action if ::after is being used */
.kw-mega-menu__category-list .category-link:has(.category-action)::after {
    display: none;
}

/* Right Side - Products */
.kw-mega-menu__products {
    flex: 1;
    padding: 32px 48px 40px 48px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
    margin-right: 0;
    overflow: visible;
}

/* .kw-mega-menu__products-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 28px 0;
    color: #1a1a1a;
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
    position: relative;
} */
.kw-mega-menu__products-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    text-align: left;
    padding-bottom: 12px;
    position: relative;
}

/* .kw-mega-menu__products-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1a1a1a, transparent);
} */
.kw-mega-menu__products-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1a1a1a;
}
/* Dynamic Layout Container */
.kw-mega-menu__content-layout {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
}

.kw-mega-menu__content-layout.has-subcategories {
    /* 2-column layout when subcategories exist */
    justify-content: flex-start;
}

.kw-mega-menu__content-layout.no-subcategories {
    /* Single column layout when no subcategories - no flex, just block */
    display: block;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.kw-mega-menu__left-column {
    flex: 0 0 30%;
    min-width: 0;
}

.kw-mega-menu__products-column {
    flex: 1;
    min-width: 0;
}

/* When no subcategories, make products full width and centered */
.kw-mega-menu__content-layout.no-subcategories .kw-mega-menu__products-column {
    width: 100%;
    max-width: none;
    flex: none;
}

.kw-mega-menu__content-layout.no-subcategories .kw-mega-menu__products-title {
    text-align: center;
    margin-bottom: 28px;
}

/* Subcategories Section */
.kw-mega-menu__subcategories-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.kw-mega-menu__subcategories-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    text-align: left;
    padding-bottom: 12px;
    position: relative;
}

.kw-mega-menu__subcategories-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1a1a1a;
}

/* .kw-mega-menu__subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    width: 100%;
} */
.kw-mega-menu__subcategories-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
    padding-right: 8px;
    padding-bottom: 20px;
}
.kw-mega-menu__subcategory-item {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.kw-mega-menu__subcategory-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #1a1a1a;
}

.kw-mega-menu__subcategory-item .subcategory-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 12px 8px;
    height: 100%;
    transition: color 0.3s ease;
}

.kw-mega-menu__subcategory-item .subcategory-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.kw-mega-menu__subcategory-item .subcategory-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kw-mega-menu__subcategory-item:hover .subcategory-thumb img {
    transform: scale(1.05);
}

/* Placeholder for subcategories without images */
.kw-mega-menu__subcategory-item .subcategory-thumb-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
}

.kw-mega-menu__subcategory-item .subcategory-icon {
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
}

.kw-mega-menu__subcategory-item .subcategory-name {
    font-weight: 600;
    font-size: 12px;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'RobotoCondensed-Bolditalic';
}

.kw-mega-menu__subcategory-item:hover .subcategory-name {
    color: #000000;
}

.kw-mega-menu__products-container {
    display: none;
    width: 100%;
}

.kw-mega-menu__products-container.is-active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kw-mega-menu__product-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
    padding-right: 150px;
    padding-bottom: 20px;
}

/* Limit to 5 products - IMPORTANT */
.kw-mega-menu__product-list .kw-mega-menu__product-item:nth-child(n+6) {
    display: none !important;
}

/* Horizontal Product Cards - Larger & Modern */
.kw-mega-menu__product-item {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 110px;
}

.kw-mega-menu__product-item:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #1a1a1a;
}

.kw-mega-menu__product-item .product-link {
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding: 16px 20px;
}

/* Product Thumbnail - Larger with modern styling */
.kw-mega-menu__product-item .product-thumb {
    width: 85px;
    height: 85px;
    min-width: 85px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8e8e8;
}

.kw-mega-menu__product-item .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.kw-mega-menu__product-item:hover .product-thumb img {
    transform: scale(1.05);
}

/* Product Content */
.kw-mega-menu__product-item .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.kw-mega-menu__product-item .product-name {
    font-weight: 700;
    font-style: italic;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Modern Price Box - Better Sized */
.kw-mega-menu__product-item .product-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    margin-left: 20px;
    align-self: center;
    min-width: 110px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.kw-mega-menu__product-item .product-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.kw-mega-menu__product-item:hover .product-price::before {
    left: 100%;
}

.kw-mega-menu__product-item .product-price .price {
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Empty State */
.product-list--empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
    font-style: italic;
}

/* Footer */
.kw-mega-menu__footer {
    margin-top: 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-top: 2px solid #e0e0e0;
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.kw-mega-menu__see-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: #1a1a1a;
    border: none;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.kw-mega-menu__footer, a:visited, .alink:visited

 {
    /* color: #ffffff !important; */
    
}
.kw-mega-menu__see-all:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.kw-mega-menu__see-all-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.kw-mega-menu__see-all:hover .kw-mega-menu__see-all-arrow {
    transform: translateX(4px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Hide desktop mega menu on mobile */
    .navigation .has-mega-menu .kw-mega-menu {
        display: none !important;
    }
    
    /* Mobile navigation trigger */
    .nav-toggle {
        display: block;
    }

    
    /* Show mega menu content in mobile drawer */
    .nav-sections {
        display: block !important;
    }
    
    /* Mobile mega menu styling */
    .kw-mega-menu__content {
        flex-direction: column;
        min-height: auto;
    }
    
    .kw-mega-menu__categories {
        width: 100%;
        order: 1;
        background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .kw-mega-menu__products {
        order: 2;
        padding: 20px;
    }
    
    /* Mobile layout becomes single column */
    .kw-mega-menu__content-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .kw-mega-menu__left-column,
    .kw-mega-menu__products-column {
        flex: none;
        width: 100%;
        max-width: none;
    }
    
    .kw-mega-menu__subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .kw-mega-menu__product-item {
        border-radius: 12px;
    }
    
    .kw-mega-menu__product-item .product-link {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }
    
    .kw-mega-menu__product-item .product-thumb {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
    
    .kw-mega-menu__product-item .product-content {
        align-items: center;
        text-align: center;
    }
    
    .kw-mega-menu__product-item .product-price {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        max-width: 200px;
    }
    
    .kw-mega-menu__products-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .kw-mega-menu__product-list {
        gap: 12px;
    }
    
    /* Mobile Menu Multilevel Support */
    .mobile-sub-nav-list {
        display: none;
        overflow: hidden;
    }

    /* .mobile-menu-overlay__nav ul li a {
         padding: 0 !important;
    }  */
    
    /* Mobile Category Items - Dynamic Menu Support */
    .mobile-category-item {
        list-style: none;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e5e5e5 !important;
        width: 100%;
        clear: both;
        overflow: hidden;
    }
    
    .mobile-category-header {
        display: flex;
        align-items: center;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    /* Mobile categories list container */
    #mobile-categories-list {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .mobile-category-header a {
        text-decoration: none;
        color: white;
        font-weight: bold;
        display: block;
        /* padding: 15px 20px; */
        background: transparent;
        transition: background 0.2s;
        flex: 1;
        font-family: 'RobotoCondensed-Bolditalic', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        font-size: 18px;
    }
    
    .mobile-category-header a:hover {
        background: #111;
    }
    
    .mobile-expand-btn {
        background: transparent;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
        padding: 15px 20px;
        transition: transform 0.3s ease;
    }
        .mobile-expand-btn span{
                    cursor: pointer;
        display: block;
        height: 30px;
        line-height: 30px;
        position: absolute;
        right: 0;
        text-align: center;
        top: 2px;
        width: 30px;
        }

.fa-arrow-right:before {
    content: "\f061";
}

    
    .mobile-expand-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-subcategories {
        display: none;
        background: rgba(255, 255, 255, 0.05);
        border-left: 3px solid #666;
        margin-left: 10px;
        list-style: none;
        padding: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .mobile-subcategories.expanded {
        display: block;
    }
    
    /* Level-specific styling for mobile categories */
    .mobile-cat-level-1 .mobile-category-header a {
        font-size: 16px;
        font-weight: 700;
        padding-left: 20px;
    }
    
    /* Level 2 - child menu items with text-width borders */
    .mobile-cat-level-2 {
        border-bottom: none !important;
        padding: 0 20px !important;
    }
    
    .mobile-cat-level-2 .mobile-category-header {
        justify-content: flex-start !important;
    }
    
    .mobile-cat-level-2 .mobile-category-header a {
        font-size: 17px;
        font-weight: 650;
        padding-left: 40px;
        background: rgba(255, 255, 255, 0.03);
        position: relative !important;
        display: inline-block !important;
        flex: none !important;
        width: auto !important;
        padding: 15px 0 !important;
        margin-left: 40px;
    }
    
    .mobile-cat-level-2 .mobile-category-header a::after {
        content: "" !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 0.5px !important;
        background: rgba(255,255,255,0.3) !important;
    }
    
    .mobile-cat-level-3 .mobile-category-header a {
        font-size: 16px;
        font-weight: 600;
        padding-left: 60px;
        background: rgba(255, 255, 255, 0.06);
    }
    
    .mobile-cat-level-4 .mobile-category-header a {
        font-size: 15px;
        font-weight: 550;
        padding-left: 80px;
        background: rgba(255, 255, 255, 0.09);
    }
    
    .mobile-nav-item.expanded .mobile-sub-nav-list {
        display: block;
    }
    
    /* Level-specific indentation and styling */
    .mobile-sub-nav-list.level-2 {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        margin: 8px 0;
    }
    
    .mobile-sub-nav-list.level-3 {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        margin: 6px 0;
        margin-left: 16px;
    }
    
    .mobile-sub-nav-list.level-4 {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        margin: 4px 0;
        margin-left: 24px;
    }
    
    .mobile-sub-nav-list.level-5,
    .mobile-sub-nav-list.level-6,
    .mobile-sub-nav-list.level-7,
    .mobile-sub-nav-list.level-8 {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 4px;
        margin: 4px 0;
        margin-left: 32px;
    }
    
    /* Level-specific link styling */
    .mobile-sub-nav-link.level-2 {
        padding: 12px 16px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-sub-nav-link.level-3 {
        padding: 10px 20px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.85);
    }
    
    .mobile-sub-nav-link.level-4 {
        padding: 8px 24px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .mobile-sub-nav-link.level-5,
    .mobile-sub-nav-link.level-6,
    .mobile-sub-nav-link.level-7,
    .mobile-sub-nav-link.level-8 {
        padding: 6px 28px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.75);
    }
    
    /* Expand button styling for different levels */
    .mobile-expand-button.level-2 {
        padding: 12px;
        font-size: 16px;
    }
    
    .mobile-expand-button.level-3 {
        padding: 10px;
        font-size: 14px;
    }
    
    .mobile-expand-button.level-4,
    .mobile-expand-button.level-5,
    .mobile-expand-button.level-6,
    .mobile-expand-button.level-7,
    .mobile-expand-button.level-8 {
        padding: 8px;
        font-size: 12px;
    }
    
    /* Visual hierarchy with border and background changes */
    .mobile-sub-nav-item.level-2 {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-sub-nav-item.level-3 {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .mobile-sub-nav-item.level-4,
    .mobile-sub-nav-item.level-5,
    .mobile-sub-nav-item.level-6,
    .mobile-sub-nav-item.level-7,
    .mobile-sub-nav-item.level-8 {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* Remove border from last child */
    .mobile-sub-nav-item:last-child {
        border-bottom: none;
    }
    
    /* Hover effects for different levels */
    .mobile-sub-nav-link.level-2:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .mobile-sub-nav-link.level-3:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }
    
    .mobile-sub-nav-link.level-4:hover,
    .mobile-sub-nav-link.level-5:hover,
    .mobile-sub-nav-link.level-6:hover,
    .mobile-sub-nav-link.level-7:hover,
    .mobile-sub-nav-link.level-8:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }
}

/* Tablet optimization */
@media (max-width: 1024px) and (min-width: 769px) {
    .kw-mega-menu__categories {
        width: 240px;
        min-width: 240px;
    }
    
    .kw-mega-menu__products {
        padding: 28px 32px;
    }
    
    .kw-mega-menu__product-item .product-thumb {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
    
    .kw-mega-menu__product-item .product-name {
        font-size: 15px;
    }
    
    .kw-mega-menu__product-item .product-price {
        font-size: 15px;
        padding: 8px 16px;
        min-width: 100px;
    }
}

/* Large desktop optimization */
@media (min-width: 1440px) {
    .kw-mega-menu__categories {
        width: 320px;
        min-width: 320px;
    }
    
    .kw-mega-menu__products {
        padding: 40px 60px;
    }
    
    .kw-mega-menu__product-list {
        max-width: 700px;
    }
}