/* Spezial-Styling für "Alle Produkte" Kategorie */
.mega-menu-category-item[data-category-id="all-products"] {
    background: #fffbf0;
    border-bottom: 2px solid #FF8C00;
}

.mega-menu-category-item[data-category-id="all-products"]:hover {
    background: #fff5e6;
}

.mega-menu-category-item[data-category-id="all-products"].active {
    background: #fff5e6;
    border-left: 4px solid #FF8C00;
}/**
 * WooCommerce Mega Menu - Frontend CSS
 * Version: 3.5.0
 */

/* Mega Menu Basis Styles - Performance-optimiert */
.mega-menu-trigger {
    background: #000 !important;
    color: #fff !important;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1000;
}

.mega-menu-trigger:hover {
    background: linear-gradient(45deg, #FF8C00, #E30613) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.mega-menu-trigger.active {
    background: linear-gradient(45deg, #FF8C00, #E30613) !important;
}

/* VIERECKIGER BUTTON FÜR ELEMENTOR */
.mega-menu-square-button {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.mega-menu-square-button:hover {
    background: linear-gradient(45deg, #FF8C00, #E30613) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.mega-menu-square-button.active {
    background: linear-gradient(45deg, #FF8C00, #E30613) !important;
}

.mega-menu-square-button img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

/* HEADER BUTTON STYLE - GLEICH WIE WISHLIST/COMPARE */
.kp-header-mega-menu {
    display: inline-block;
}

.kp-header-mega-menu-btn {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    min-width: 120px !important;
    cursor: pointer !important;
}

.kp-header-mega-menu-btn:hover {
    background: #f8f9fa !important;
    border-color: #FCAE00 !important;
    box-shadow: 0 2px 8px rgba(252, 174, 0, 0.2) !important;
    text-decoration: none !important;
    color: #333 !important;
    transform: translateY(-1px) !important;
}

.kp-header-mega-menu-btn .kp-header-btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.kp-header-mega-menu-btn .kp-header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 8px;
    min-width: 40px;
    height: 40px;
}

.kp-header-mega-menu-btn .kp-header-icon svg,
.kp-header-mega-menu-btn .kp-header-icon i,
.kp-header-mega-menu-btn .kp-header-icon img {
    width: 20px;
    height: 20px;
    color: #666;
}

.kp-header-mega-menu-btn:hover .kp-header-icon {
    background: linear-gradient(135deg, #FCAE00, #E30613);
}

.kp-header-mega-menu-btn:hover .kp-header-icon svg,
.kp-header-mega-menu-btn:hover .kp-header-icon i {
    color: white;
}

.kp-header-mega-menu-btn .kp-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.kp-header-mega-menu-btn .kp-header-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.kp-header-mega-menu-btn .kp-header-price {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

/* Overlay */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-menu-overlay.show {
    opacity: 1;
}

/* Container */
.mega-menu-container {
    position: fixed;
    top: 100px;
    left: 8%;
    right: 8%;
    max-width: 1000px;
    margin: 0 auto;
    background: #f8f9fa !important;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 999999;
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-height: 75vh !important;
    overflow: hidden;
}

.mega-menu-container.show {
    opacity: 1;
    transform: translateY(0);
}

.mega-menu-content {
    display: flex;
    min-height: 450px;
    max-height: 75vh !important;
    position: relative;
}

/* Linke Sidebar - HELLGRAU wie gewünscht */
.mega-menu-left {
    width: 250px;
    background: #f8f9fa !important;
    color: #333 !important;
    border-right: 1px solid #dee2e6;
    overflow-y: auto !important;
    max-height: 85vh !important;
    -webkit-overflow-scrolling: touch;
}

.mega-menu-left::-webkit-scrollbar {
    width: 8px;
}

.mega-menu-left::-webkit-scrollbar-track {
    background: #e9ecef;
}

.mega-menu-left::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}

.mega-menu-left::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.mega-menu-categories {
    padding: 0;
}

.mega-menu-category-item {
    padding: 18px 20px;
    cursor: pointer;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    color: #333 !important;
}

.mega-menu-category-item:hover {
    background: #e9ecef;
    padding-left: 25px;
}

.mega-menu-category-item.active {
    background: #e9ecef;
    border-left: 4px solid #FF8C00;
    padding-left: 21px;
}

.mega-menu-category-icon {
    margin-right: 15px;
    font-size: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Spezial-Styling für "Alle Produkte" Icon */
.mega-menu-category-item[data-category-id="all-products"] .mega-menu-category-icon {
    width: 60px !important;
    height: 60px !important;
}

.mega-menu-category-item[data-category-id="all-products"] .mega-menu-category-icon img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
}

.mega-menu-category-icon i {
    font-size: 20px;
}

.mega-menu-category-icon img {
    object-fit: contain;
}

.mega-menu-category-name {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

/* CSS-PFEILE STATT EMOJIS */
.mega-menu-category-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid #FF8C00;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.mega-menu-category-item.active .mega-menu-category-arrow {
    transform: rotate(90deg);
}

/* LADEKREIS FÜR KATEGORIEN */
.mega-menu-category-item.loading {
    position: relative;
    opacity: 0.7;
}

.mega-menu-category-item.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-top: 2px solid #FF8C00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.mega-menu-category-item.loading .mega-menu-category-arrow {
    opacity: 0;
}

/* Mittlerer Bereich - HELLGRAU */
.mega-menu-center {
    flex: 1;
    background: #f8f9fa !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
    max-height: 85vh !important;
    -webkit-overflow-scrolling: touch;
}

.mega-menu-center::-webkit-scrollbar {
    width: 8px;
}

.mega-menu-center::-webkit-scrollbar-track {
    background: #e9ecef;
}

.mega-menu-center::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}

.mega-menu-center::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.mega-menu-header {
    padding: 25px 30px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
    flex-shrink: 0;
}

.mega-menu-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mega-menu-header h3 .mega-menu-category-icon {
    margin: 0;
    width: 24px !important;
    height: 24px !important;
    font-size: 18px !important;
    flex-shrink: 0;
}

.mega-menu-header h3 .mega-menu-category-icon i {
    font-size: 18px !important;
}

.mega-menu-header h3 .mega-menu-category-icon img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
}

.mega-menu-subcategories {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.mega-menu-subcategory-group {
    margin-bottom: 30px;
}

.mega-menu-subcategory-group h5 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PROFESSIONELLES GRID */
.mega-menu-subcategories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-subcategory-item {
    margin: 0;
}

.mega-menu-subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff !important;
    color: #000 !important;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    height: 60px;
    box-sizing: border-box;
}

.mega-menu-subcategory-link:hover {
    background: #e9ecef !important;
    color: #FF8C00 !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.subcategory-name {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
}

.subcategory-count {
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
}

/* Alle Produkte - Spezial Styles */
.mega-menu-letter-group {
    margin-bottom: 25px;
}

.mega-menu-letter-title {
    background: #FF8C00;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

/* Footer */
.mega-menu-footer {
    padding: 25px 30px;
    border-top: 1px solid #dee2e6;
    background: #fff;
    text-align: center;
    flex-shrink: 0;
}

.mega-menu-view-all {
    background: #000 !important;
    color: #fff !important;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.mega-menu-view-all:hover {
    background: linear-gradient(45deg, #FF8C00, #E30613) !important;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Rechte Sidebar - NUR für Empfohlene Produkte */
.mega-menu-right {
    width: 280px;
    background: #000 !important;
    color: #fff !important;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
}

/* EMPFOHLENE PRODUKTE SECTION */
.mega-menu-recommended-section {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mega-menu-recommended-header {
    margin-bottom: 20px;
    text-align: center;
}

.mega-menu-recommended-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #FF8C00 !important;
}

.mega-menu-recommended-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-menu-recommended-item {
    background: #333 !important;
    border-radius: 4px;
    padding: 12px;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.mega-menu-recommended-item:hover {
    background: #444 !important;
    transform: translateY(-1px);
}

.mega-menu-recommended-item a {
    color: #fff !important;
    text-decoration: none;
    display: flex;
    gap: 12px;
    align-items: center;
}

.mega-menu-recommended-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.mega-menu-recommended-item-info {
    flex: 1;
    min-width: 0;
}

.mega-menu-recommended-item h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mega-menu-recommended-item .price {
    color: #FF8C00;
    font-weight: 600;
    font-size: 13px;
}

/* LOADING ANIMATION FÜR LINKS */
.mega-menu-link {
    position: relative;
    transition: all 0.3s ease;
}

.mega-menu-link.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-top: 2px solid #FF8C00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.mega-menu-link.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* STARTBILD STYLES */
.mega-menu-startimage {
    padding: 20px;
    text-align: center;
}

.mega-menu-startimage-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mega-menu-startimage-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.mega-menu-startimage img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.mega-menu-startimage-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 25px 20px 15px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
}

/* Start-Produkte Slider */
.mega-menu-slider {
    margin-top: 30px;
}

.mega-menu-slider h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.mega-menu-slider-items {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.mega-menu-slider-item {
    flex: 0 0 200px;
    text-align: center;
}

.mega-menu-slider-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mega-menu-slider-item h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 500;
}

.mega-menu-slider-item .price {
    color: #FF8C00;
    font-weight: 600;
}

/* BANNER */
.mega-menu-banner {
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.mega-menu-banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.mega-menu-banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
}

/* Loading States */
.mega-menu-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    color: #666;
}

.mega-menu-loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Placeholder States */
.mega-menu-placeholder,
.mega-menu-no-products,
.mega-menu-no-subcategories,
.mega-menu-no-image,
.mega-menu-error {
    text-align: center;
    padding: 30px;
    color: #666;
}

.mega-menu-no-image {
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.mega-menu-no-products img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States für Accessibility */
.mega-menu-trigger:focus,
.mega-menu-category-item:focus,
.mega-menu-subcategory-link:focus,
.mega-menu-special-item:focus,
.mega-menu-link:focus {
    outline: 2px solid #FF8C00;
    outline-offset: 2px;
}

/* Scroll Indicator */
.has-scroll-indicator {
    position: relative;
}

.category-scroll-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to left, rgba(248,249,250,1), rgba(248,249,250,0));
    pointer-events: none;
    z-index: 1;
}

/* MOBILE OPTIMIERUNG FÜR HEADER BUTTON */
@media (max-width: 768px) {
    .kp-header-mega-menu-btn {
        padding: 8px 10px !important;
        min-width: 80px !important;
        border-radius: 6px !important;
    }
    
    .kp-header-mega-menu-btn .kp-header-btn-content {
        gap: 6px !important;
    }
    
    .kp-header-mega-menu-btn .kp-header-icon {
        padding: 4px !important;
        min-width: 32px !important;
        height: 32px !important;
        border-radius: 4px !important;
    }
    
    .kp-header-mega-menu-btn .kp-header-icon svg,
    .kp-header-mega-menu-btn .kp-header-icon i,
    .kp-header-mega-menu-btn .kp-header-icon img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .kp-header-mega-menu-btn .kp-header-label {
        font-size: 12px !important;
    }
    
    .kp-header-mega-menu-btn .kp-header-price {
        font-size: 10px !important;
    }
}

@media (max-width: 480px) {
    /* Text automatisch ausblenden auf Mobile */
    .kp-header-mega-menu-btn .kp-header-text,
    .kp-header-mega-menu-btn .kp-header-label,
    .kp-header-mega-menu-btn .kp-header-price {
        display: none !important;
    }
    
    .kp-header-mega-menu-btn {
        padding: 6px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 10px !important;
    }
    
    .kp-header-mega-menu-btn .kp-header-icon {
        padding: 4px !important;
        min-width: 28px !important;
        width: 28px !important;
        height: 28px !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mega-menu-container {
        left: 5%;
        right: 5%;
    }
    
    .mega-menu-subcategories-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }
}

/* TABLET RESPONSIVE */
@media (max-width: 768px) {
    .mega-menu-container {
        left: 3%;
        right: 3%;
        top: 70px;
        max-height: 85vh;
    }
    
    .mega-menu-content {
        flex-direction: column;
        min-height: auto;
        max-height: 90vh;
        height: auto;
    }
    
    /* Kategorien oben - kompakter */
    .mega-menu-left {
        width: 100%;
        max-height: 150px;
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        order: 1;
    }
    
    /* Mittlerer Bereich */
    .mega-menu-center {
        flex: 1;
        max-height: none;
        order: 2;
        overflow-y: auto;
    }
    
    /* Empfohlene Produkte unten - kompakter */
    .mega-menu-right {
        width: 100%;
        max-height: 150px;
        overflow-y: auto;
        border-left: none;
        border-top: 1px solid #333;
        order: 3;
    }
    
    .mega-menu-subcategories-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .mega-menu-subcategory-link {
        height: auto;
        min-height: 50px;
        padding: 12px 16px;
    }
    
    .mega-menu-startimage img {
        height: 200px;
    }
    
    /* Kompaktere Kategorie-Items */
    .mega-menu-category-item {
        padding: 12px 15px;
    }
    
    .mega-menu-category-icon {
        width: 20px;
        height: 20px;
    }
    
    .mega-menu-category-name {
        font-size: 14px;
    }
}

/* MOBILE RESPONSIVE - OPTIMIERT FÜR KLEINE SCREENS */
@media (max-width: 480px) {
    .mega-menu-container {
        left: 5% !important;
        right: 5% !important;
        top: 5% !important;
        max-height: 90vh !important;
        height: auto !important;
        border-radius: 8px;
        max-width: 100%;
    }
    
    .mega-menu-content {
        flex-direction: column;
        min-height: auto;
        max-height: 95vh;
        gap: 0;
    }
    
    /* KATEGORIEN OBEN - KOMPAKT */
    .mega-menu-left {
        width: 100%;
        height: 70px !important;
        max-height: 70px !important;
        overflow-y: hidden;
        overflow-x: auto;
        border-right: none;
        border-bottom: 2px solid #dee2e6;
        order: 1;
        background: #f8f9fa;
        
        /* Smooth horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    /* Scrollbar für Kategorien verstecken */
    .mega-menu-left::-webkit-scrollbar {
        display: none;
    }
    
    /* Kategorien Container - KOMPAKT */
    .mega-menu-categories {
        display: flex;
        flex-direction: row;
        gap: 0;
        padding: 4px !important;
        min-width: max-content;
        height: 49px !important;
        align-items: center;
    }
    
    /* KOMPAKTE Kategorie-Cards */
    .mega-menu-category-item {
        flex-shrink: 0;
        min-width: 85px !important;
        max-width: 85px !important;
        height: 42px !important;
        padding: 4px 6px !important;
        margin-right: 4px !important;
        border-radius: 6px;
        border: 1px solid #e9ecef;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .mega-menu-category-item:hover {
        padding-left: 6px !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        background: #f8f9fa;
    }
    
    .mega-menu-category-item.active {
        padding-left: 6px !important;
        border: 2px solid #FF8C00;
        background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(227, 6, 19, 0.05));
        box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    }
    
    .mega-menu-category-item.active .mega-menu-category-arrow {
        transform: rotate(180deg);
    }
    
    .mega-menu-category-icon {
        width: 20px !important;
        height: 20px !important;
        margin: 0 0 2px 0 !important;
        font-size: 14px;
    }
    
    /* Alle Icons gleiche Größe - auch "Alle Produkte" */
    .mega-menu-category-item .mega-menu-category-icon img,
    .mega-menu-category-item[data-category-id="all-products"] .mega-menu-category-icon img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .mega-menu-category-item[data-category-id="all-products"] .mega-menu-category-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    .mega-menu-category-name {
        font-size: 8px !important;
        font-weight: 600;
        line-height: 1.1;
        text-align: center;
        margin: 0;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 70px !important;
    }
    
    /* Pfeil für Mobile anpassen */
    .mega-menu-category-arrow {
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 0;
        height: 0;
        border-left: 4px solid #FF8C00;
        border-top: 2px solid transparent;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    /* MITTLERER BEREICH - Hauptinhalt */
    .mega-menu-center {
        flex: 1;
        order: 2;
        background: #f8f9fa;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mega-menu-header {
        padding: 12px 15px !important;
        border-bottom: 1px solid #dee2e6;
        background: #fff;
    }
    
    .mega-menu-header h3 {
        font-size: 16px !important;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
    }
    
    .mega-menu-subcategories {
        padding: 15px !important;
        overflow-y: auto;
        flex: 1;
        max-height: calc(90vh - 200px) !important;
    }
    
    .mega-menu-subcategories-list {
        grid-template-columns: 1fr;
        gap: 6px !important;
    }
    
    .mega-menu-subcategory-link {
        height: auto;
        min-height: 38px !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        border-radius: 4px;
    }
    
    .subcategory-name {
        font-size: 13px !important;
        line-height: 1.2;
        font-weight: 500;
    }
    
    .subcategory-count {
        font-size: 11px !important;
        padding: 2px 6px !important;
        min-width: 25px !important;
    }
    
    /* Footer Mobile */
    .mega-menu-footer {
        padding: 10px 20px !important;
    }
    
    .mega-menu-view-all {
        padding: 10px 20px !important;
        font-size: 13px !important;
        border-radius: 4px;
        display: inline-block;
    }
    
    /* Startbild Mobile */
    .mega-menu-startimage {
        padding: 15px;
    }
    
    .mega-menu-startimage img {
        height: 180px;
        border-radius: 6px;
    }
    
    .mega-menu-startimage-text {
        font-size: 16px;
        padding: 20px 15px 10px;
    }
    
    /* EMPFOHLENE PRODUKTE UNTEN - KOMPAKT */
    .mega-menu-right {
        width: 100%;
        height: 120px !important;
        max-height: 120px !important;
        overflow-y: hidden;
        overflow-x: auto;
        border-left: none;
        border-top: 2px solid #333;
        order: 3;
        background: #000;
        
        /* Smooth horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    /* Scrollbar für empfohlene Produkte verstecken */
    .mega-menu-right::-webkit-scrollbar {
        display: none;
    }
    
    /* Empfohlene Produkte Container */
    .mega-menu-recommended-section {
        padding: 8px !important;
        display: flex;
        flex-direction: column;
        min-width: 100%;
    }
    
    .mega-menu-recommended-header {
        margin-bottom: 8px !important;
        flex-shrink: 0;
    }
    
    .mega-menu-recommended-header h4 {
        font-size: 13px !important;
        margin: 0;
        color: #FF8C00;
        text-align: center;
    }
    
    /* Horizontaler Slider für Produkte */
    .mega-menu-recommended-products {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        min-width: max-content;
    }
    
    /* Scrollbar für Produkte verstecken */
    .mega-menu-recommended-products::-webkit-scrollbar {
        display: none;
    }
    
    /* Kompakte Produktkarten für horizontalen Slider */
    .mega-menu-recommended-item {
        flex-shrink: 0;
        min-width: 120px !important;
        max-width: 120px !important;
        height: 70px !important;
        background: #333;
        border-radius: 6px;
        padding: 6px !important;
        border: 1px solid #444;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        
        transition: all 0.3s ease;
    }
    
    .mega-menu-recommended-item:hover {
        background: #444;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    }
    
    .mega-menu-recommended-item a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        height: 100%;
        gap: 4px;
        color: #fff;
        text-decoration: none;
    }
    
    .mega-menu-recommended-item img {
        width: 35px !important;
        height: 35px !important;
        border-radius: 4px;
        flex-shrink: 0;
        object-fit: cover;
    }
    
    .mega-menu-recommended-item-info {
        flex: 1;
        min-width: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .mega-menu-recommended-item h5 {
        margin: 0;
        font-size: 10px !important;
        line-height: 1.2;
        color: #fff;
        font-weight: 500;
        text-align: center;
        
        /* Text Truncation für 2 Zeilen */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 20px !important;
        width: 100px !important;
        word-wrap: break-word;
    }
    
    .mega-menu-recommended-item .price {
        color: #FF8C00;
        font-weight: 600;
        font-size: 9px !important;
        line-height: 1;
        margin-top: 2px;
    }
    
    /* Touch Feedback für bessere UX */
    .mega-menu-category-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .mega-menu-subcategory-link:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .mega-menu-recommended-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 2-SPALTIGE UNTERKATEGORIEN für mehr Effizienz */
    .mega-menu-subcategories-list.two-column {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
    }
    
    .mega-menu-subcategory-link.two-column {
        min-height: 32px !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    
    .subcategory-name.two-column {
        font-size: 12px !important;
        line-height: 1.1;
    }
    
    .subcategory-count.two-column {
        font-size: 10px !important;
        padding: 1px 4px !important;
        min-width: 20px !important;
    }
}

/* FÜR SEHR KLEINE SCREENS (iPhone SE etc.) */
@media (max-width: 375px) {
    .mega-menu-container {
        left: 3% !important;
        right: 3% !important;
        top: 3% !important;
        max-height: 94vh !important;
        border-radius: 6px;
    }
    
    .mega-menu-subcategory-link {
        min-height: 35px !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    .mega-menu-view-all {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}