﻿/*
* Copyright 2014 Shima Shoes Ltd. All rights reserved. (http://www.shimashoes.com)
* http://www.shimashoes.com/t/licensinginfo
*/

.mega-menu-dropdown {
    background: rgb(255 255 255 / 85%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.header-menu>ul {
    float: right;
    width: 100%;
}
li.all-categories {
    display: none;
}

img.mega-menu-icon {
    width: 20px;
    height: auto;
}

.ico-compare, .ico-wishlist {
    display: inline-block;
    text-wrap-mode: nowrap;
    min-width: 100%;
    padding: 5px 10px !important;
}

.ico-wishlist:before {
    line-height: 45px;
}

span.wishlist-label {
    line-height: 45px;
}
.category-navigation-list-wrapper {
    display: none;
}
.mega-menu span {
    color: black;
    font-size: 14px !important;
    order:2;
}

@media all and (max-width: 1024px) {

    .mega-menu {
	    display: none !important;
    }
    .header-menu .mega-menu-responsive > li {
        border-bottom: 0;
    }


}


@media all and (min-width: 1025px) {

    /* RESETS */

    .menu-title,
    .mega-menu-responsive {
        display: none !important;
    }

    /* Hide plus-button for submenu indicators */
    .mega-menu .plus-button {
        display: none !important;
    }

    /* Custom Template 1 styling - Only icons, no colors */
    .mega-menu .custom-template-1 {
        position: relative;
    }

    /* Menu item icon styling */
    .mega-menu .custom-template-1 .menu-item-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        vertical-align: middle;
        border-radius: 4px;
        object-fit: cover;
    }

    .mega-menu .custom-template-1 .sublist-wrap .sublist li .menu-item-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
        vertical-align: middle;
        border-radius: 3px;
        object-fit: cover;
    }

    /* Mega Menu Layout for Custom Template 1 */
    .mega-menu .mega-menu-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        padding: 20px;
        min-width: 600px;
        z-index: 1000;
        display: none;
    }

    .mega-menu li:hover > .mega-menu-dropdown {
        display: block;
    }

    .mega-menu-content {
        width: 100%;
    }

    .mega-menu-columns {
        white-space: normal !important;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 32px;
        width: 100%;
        white-space: normal;
        align-items: start;
        min-width:1024px;
    }

    .mega-menu-column {
        min-width: 200px;
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap:8px;
    }

    .mega-menu-column-title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid #f0f0f0;
        color: #333;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mega-menu-sub-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mega-menu-sub-list li {
        margin-bottom: 8px;
    }

    .mega-menu-sub-list li a {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        color: #666;
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.2s ease;
        gap: 8px;
    }

    .mega-menu-sub-list li a:hover {
        background-color: #f8f9fa;
        color: #333;
        transform: translateX(4px);
    }

    /* Icon styling for mega menu */
    .mega-menu-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        vertical-align: middle;
        border-radius: 4px;
        object-fit: cover;
    }

    .mega-menu-sub-icon {
        width: 50px;
        height: auto;
        vertical-align: middle;
        border-radius: 3px;
        object-fit: cover;
    }

    .mega-menu-item-icon {
        width: 32px;
        height: auto;
        vertical-align: middle;
        border-radius: 2px;
        object-fit: cover;
        margin: 2px;
    }

    .mega-menu .root-category-items {
        display: none !important;
    }

    /* sublist */

    .mega-menu .sublist-wrap {
        display: none;
        position: absolute;
        width: 220px;
        box-shadow: 0 0 15px rgba(0,0,0,.1);
        background-color: #fff;
        padding: 10px 0;
        text-align: left;
        border-top: 1px solid #eee;
        z-index: 1;
    }
    /* Use direct child selector for better control */
    .mega-menu .has-sublist:hover > .sublist-wrap,
    .mega-menu .has-sublist .plus-button:hover + .sublist-wrap,
    .mega-menu .sublist .has-sublist:hover > .sublist-wrap,
    .mega-menu .sublist .sublist .has-sublist:hover > .sublist-wrap {
        display: block !important;
    }
    .mega-menu .sublist-wrap.active {
        display: block;
    }
    
    /* Responsive menu sublist */
    .mega-menu-responsive .sublist-wrap {
        display: none;
    }
    .mega-menu-responsive .sublist-wrap.active {
        display: block;
    }
    
    /* Support for nested submenus in responsive mode */
    .mega-menu-responsive .sublist .has-sublist:hover .sublist-wrap,
    .mega-menu-responsive .sublist .sublist .has-sublist:hover .sublist-wrap {
        display: block;
    }
    .mega-menu .sublist li {
        position: relative;
    }
    .mega-menu .sublist li a {
        position: relative;
        display: block;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        padding: 0 35px 0 20px;
        height: 40px;
        line-height: 40px;
        color: #8c8c8c;
        font-size: 15px;
        font-weight: bold;
        transition: all .2s ease;
    }
    .mega-menu .sublist li:hover > a {
	    color: #97c300;
        background-color: #f1f1f1;
    }
    .mega-menu .sublist-wrap .sublist-wrap {
	    top: -10px;
	    left: 100% !important;
    }



    /* dropdown */

    .category-navigation-list > li .dropdown {
        position: absolute;
        top: -16px;
        left: 100%;
        padding: 15px 0;
        background: url(img/shadow-top.png) top left repeat-x, url(img/shadow-bottom.png) bottom left repeat-x;
        opacity: 0;
        max-width: calc(88vw - 290px);
        pointer-events: none;
        transition: all .3s ease;
    }

    .category-navigation-list .dropdown .row-wrapper {
        border: 1px solid #eee;
        padding: 30px;
        background: #fff;
    }

    .category-navigation-list > li:hover .dropdown {
        opacity: 1;
        pointer-events: auto;
    }

    .category-navigation-list .dropdown .row {
        white-space: nowrap;
        max-width: 100%;
        margin-top: 20px;
    }
    .category-navigation-list .dropdown .row:first-child {
        margin-top: 0;
    }


    .category-navigation-list .dropdown .box,
    .category-navigation-list .dropdown .empty-box{
        display: inline-block;
        vertical-align: top;
        margin-left: 20px;
        width: 210px;
    }

    .category-navigation-list .dropdown .box:first-child {
        margin-left: 0 !important;
    }

    .category-navigation-list .dropdown.boxes-4 .box {
        max-width: calc(25% - 14px);
    }

    .category-navigation-list .dropdown.boxes-5 .box {
        max-width: calc(20% - 15px);
    }

    .category-navigation-list .dropdown.boxes-6 .box {
        max-width: calc(16.66% - 16px);
    }

    .category-navigation-list .dropdown.boxes-7 .box {
        max-width: calc(14.28% - 17px);
    }

    .category-navigation-list .dropdown.boxes-8 .box {
        max-width: calc(12.5% - 18px);
    }

    .category-navigation-list .dropdown .box .title a {
        white-space: normal;
        text-overflow: initial;
        height: auto;
        line-height: 1.2;
        padding: 7px 0;
        color: #97c300;
    }

    .category-navigation-list .dropdown .box .title a:hover {
        color: #7c9a16;
    }

    .category-navigation-list .dropdown .box .subcategory-item a {
        height: auto;
        line-height: 1.2;
        padding: 7px 0;
        font-weight: 400;
        color: #8c8c8c;    
        white-space: normal;
        text-overflow: initial;
    }

    .category-navigation-list .dropdown .box .subcategory-item a:hover {
        background-color: transparent;
        color: #97c300;
    }

    .category-navigation-list .dropdown .box .picture {
        margin-bottom: 10px;
    }

    .category-navigation-list .dropdown .box .picture a {
        white-space: normal;
        text-overflow: initial;
        padding: 0;
        height: auto;
        width: auto;
        font-size: 0;
        line-height: 1;
    }

    .category-navigation-list .dropdown .box .picture a:before {
        content: "";
        display: block;
        padding-top: 70%;
    }

    .category-navigation-list .dropdown .box .picture a img {
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        height: 100%;
        width: auto;
        max-width: none;
    }
    .mega-menu .has-sublist {
        position: relative;
    }

    .mega-menu .has-sublist .sublist-wrap {
        right: 0;
    }

    .mega-menu .has-sublist .sublist-wrap .plus-button,
    .mega-menu .has-sublist .sublist-wrap .sublist-wrap {
        display: none !important;
    }


    .mega-menu .has-sublist.with-dropdown-in-grid {
        position: static;
        overflow: hidden;
    }
    .mega-menu .has-sublist.with-dropdown-in-grid:hover {
        overflow: visible;
    }



    .mega-menu .dropdown {
        position: absolute;
        margin: 0;
        text-align: left;
        background: #fff;
        box-shadow: 0 0 15px rgba(0,0,0,.1);
        border-top: 1px solid #eee;
        z-index: 1;
        transition: all .3s ease;
    }

    .mega-menu .dropdown.fullWidth {
        padding: 30px 6%;
        margin-top: 10px;
        left: 0;
        width: 100%;
        opacity: 0;
        pointer-events: none;
    }
    .mega-menu .dropdown.fullWidth.active {
	    opacity: 1;
        margin-top: 0;
        pointer-events: auto;
    }

    .mega-menu .row {
        overflow: hidden;
    }
    .mega-menu .row + .row {
        margin-top: 20px;
    }

    .mega-menu .box {
        float: left;
        padding: 0 10px;
    }

    .mega-menu .boxes-1 .box {
        width: 100%;
    }

    .mega-menu .boxes-2 .box {
        width: 50%;
    }

    .mega-menu .boxes-3 .box {
        width: 33.333%;
    }

    .mega-menu .boxes-4 .box {
        width: 25%;
    }

    .mega-menu .boxes-5 .box {
        width: 20%;
    }

    .mega-menu .boxes-6 .box {
        width: 16.666%;
    }

    .mega-menu .boxes-7 .box {
        width: 14.28%;
    }

    .mega-menu .boxes-8 .box {
        width: 12.5%;
    }
    .mega-menu .boxes-9 .box {
        width: 11.1%;
    }
    .mega-menu .boxes-10 .box {
        width: 10%;
    }


    .mega-menu .manufacturers .box,
    .mega-menu .vendors .box {
        text-align: center;
    }

    .mega-menu .manufacturers .picture,
    .mega-menu .vendors .picture {
        position: relative;
        border: 1px solid #eee;
        border-radius: 3px;
        overflow: hidden;
        transition: all .2s ease;
    }

    .mega-menu .manufacturers .picture a:before,
    .mega-menu .vendors .picture a:before {
        content: "";
        display: block;
        padding-top: 70%;
    }

    .mega-menu .manufacturers .picture a img,
    .mega-menu .vendors .picture a img {
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        max-height: 100%;
        max-width: 100%;
    }
    .mega-menu .manufacturers .title,
    .mega-menu .vendors .title {
        padding: 7px 0;
        font-size: 15px;
        font-weight: 700;
        color: #8c8c8c;
        transition: all .2s ease;
    }

    .mega-menu .manufacturers .box:hover .title,
    .mega-menu .vendors .box:hover .title {
        color: #97c300;
    }

    .mega-menu .manufacturers .box:hover .picture,
    .mega-menu .vendors .box:hover .picture {
        opacity: .8;
    }

    /* Custom Template 2 styling - Vertical menu with right-side submenu */
    .mega-menu .custom-template-2 {
        position: relative;
    }

    .mega-menu .custom-template-2 .menu-arrow {
        float: right;
        font-size: 16px;
        color: #666;
        transition: transform 0.3s ease;
    }

    .mega-menu .custom-template-2:hover .menu-arrow {
        transform: rotate(90deg);
    }

    /* Custom2 dropdown styling */
    .mega-menu .custom2-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        min-width: 400px;
        max-width: 800px;
        width: auto;
        display: none;
    }

    .mega-menu .custom-template-2:hover .custom2-dropdown {
        display: block;
    }

    .mega-menu .custom2-content {
        padding: 20px;
    }

    .mega-menu .custom2-layout {
        display: flex;
        gap: 20px;
    }

    /* Left side: First level submenu items (Movies, Books) */
    .mega-menu .custom2-main-menu {
        width: 200px;
        border-right: 1px solid #e0e0e0;
        padding-right: 20px;
        order: 1; /* First in LTR */
    }

    .mega-menu .custom2-menu-item {
        margin-bottom: 8px;
    }

    /* Right side: Second level submenu content (Best Seller, New Movie columns) */
    .mega-menu .custom2-submenu-content {
        flex: 1;
        min-height: 200px;
        order: 2; /* Second in LTR */
    }

    .mega-menu .custom2-menu-item a {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        color: #333;
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .mega-menu .custom2-menu-item a:hover {
        background-color: #f5f5f5;
        color: #97c300;
    }

    .mega-menu .custom2-menu-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        border-radius: 3px;
        object-fit: cover;
    }

    .mega-menu .custom2-submenu {
        display: none;
    }

    .mega-menu .custom2-submenu.active {
        display: block;
    }

    .mega-menu .custom2-submenu-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e0e0;
    }

    .mega-menu .custom2-submenu-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

    .mega-menu .custom2-submenu-columns {
        display: flex;
        gap: 15px;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .mega-menu .custom2-submenu-column {
        flex: 0 0 auto;
        min-width: 120px;
        max-width: 180px;
        width: auto;
    }

    .mega-menu .custom2-submenu-column-title {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin: 0 0 10px 0;
        display: flex;
        align-items: center;
    }

    .mega-menu .custom2-submenu-icon {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        border-radius: 2px;
        object-fit: cover;
    }

    .mega-menu .custom2-submenu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mega-menu .custom2-submenu-list li {
        margin-bottom: 6px;
    }

    .mega-menu .custom2-submenu-list li a {
        display: flex;
        align-items: center;
        padding: 6px 8px;
        color: #666;
        text-decoration: none;
        font-size: 13px;
        border-radius: 3px;
        transition: all 0.2s ease;
    }

    .mega-menu .custom2-submenu-list li a:hover {
        background-color: #f8f8f8;
        color: #97c300;
    }

    .mega-menu .custom2-item-icon {
        width: 14px;
        height: 14px;
        margin-right: 6px;
        border-radius: 2px;
        object-fit: cover;
    }

    /* Responsive adjustments for Custom2 */
    @media (max-width: 768px) {
        .mega-menu .custom2-dropdown {
            min-width: 300px;
            max-width: 90vw;
        }
        
        .mega-menu .custom2-layout {
            flex-direction: column;
        }
        
        .mega-menu .custom2-main-menu {
            width: 100%;
            border-right: none;
            border-bottom: 1px solid #e0e0e0;
            padding-right: 0;
            padding-bottom: 15px;
            margin-bottom: 15px;
        }
    }


}
