﻿/*
* Copyright 2014 Seven Spikes Ltd. All rights reserved. (http://www.nop-templates.com)
* http://www.nop-templates.com/t/licensinginfo
*/

    .header-menu,
    .back-button,
    .mega-menu {
        display: none;
    }

@media all and (min-width: 941px) {
    
    /* DO NOT REMOVE. The default autocomplete should appear above the Mega Menu */
    .ui-autocomplete {
        z-index: 1002 !important;
    }

    /* RESETS */

    .menu-title,
    .plus-button,
    .mega-menu-responsive {
        display: none;
    }
    .mega-menu a, .mega-menu a:hover {
        text-decoration: none;
    }

    /* MAIN PANEL */

    .mega-menu {
        display: block;
        position: relative;
	    z-index: 1001;
	    margin: 10px auto 0;
	    padding: 0;        
	    background: #AF0304;
	    list-style: none;
        clear: both;
        border-bottom: 1px solid #780000;
    }
    .mega-menu:after {
	    display: block;
	    visibility: hidden;
	    clear: both;
	    height: 0;
        content: ".";
	    line-height: 0;
    }
    .mega-menu > li {
	    float: left;
        width: 14.17%;
	    height: 32px;
        text-align: center;
	    border-left: 1px solid #780000;
        border-top: 1px solid #780000;
        -webkit-box-shadow:inset 1px 1px 0 0 #c90405;
        box-shadow:inset 1px 1px 0 0 #c90405; 
        transition: all .2s ease-in !important;
        -moz-transition: all .2s ease-in !important; /* Firefox 4 */
        -webkit-transition: all .2s ease-in !important; /* Safari and Chrome */
        -o-transition: all .2s ease-in !important; /* Opera */ 
    }
    .mega-menu > li:first-child {     
        /*display: none;*/
    }
    .mega-menu > li:last-child {
        width: 28.44%;
    }
    .mega-menu > li:hover{
        background: #780000;
        -webkit-box-shadow:inset 1px 1px 0 0 #780000;
        box-shadow:inset 1px 1px 0 0 #780000;
    }
    .mega-menu > li > a,
    .mega-menu > li > span {
        display: block;
        padding: 0;
	    color: #fff;
	    text-transform: none;
	    text-shadow: 1px 1px 0 #780000;
	    font: normal bold 12px/32px Arial, Helvetica, sans-serif;
        cursor: pointer; 
             
    }
    .mega-menu a.view-all {
        font-weight:bold !important;
        background: none;
    }

    /* DROPDOWN */

    .mega-menu .dropdown {
        overflow: hidden;
        opacity: 0.95;
    }
    .mega-menu .dropdown,
    .mega-menu .sublist {
        display: none;
        position: absolute;
        top: 32px;
        border: 1px solid #aaa;
	    border-bottom-left-radius: 5px;
	    border-bottom-right-radius: 5px;
	    background: #fafafa;
	    list-style: none;
        min-width: 200px;
    }

        .mega-menu li:nth-child(n+8) .dropdown { 
            top: 64px;
        }


    .mega-menu .sublist.active {
        display: block;
    }
    .mega-menu .sublist .sublist {
        top: -1px;
        left: 100%;
    }
    .mega-menu .sublist li {
        position: relative;
    }
    .mega-menu .sublist li a {
        
        display: block;
        padding: 10px 20px;
    }

    .mega-menu .dropdown.fullWidth {
        left: 0;
        width: 928px;
        border-radius: 0 0 0 0;
    }

    /* ROWS AND BOXES */

    .mega-menu .row {
        overflow: hidden;
        min-height: 188px;
        width: 100%;
        border-spacing: 10px 5px;
    }
    .mega-menu .box {
	    float: left;
	    margin: 0 6px;
	    padding: 10px;
        
    }
    .mega-menu .box .title {
        text-align: left;
        font-size: .8em !important;
    }

    .mega-menu .categories .box
    {
        width: 200px;
    }
    .mega-menu .manufacturers .box
    {
        width: 200px;
    }
    .mega-menu .manufacturers.fullWidth .box
    {
        width: 122px;
    }
    .mega-menu .box ul {
	    margin: 0;
	    padding: 0;
	    list-style: none;
    }
    .mega-menu .picture {
        float: left;
	    box-shadow: 0 0 2px #999;
        display: none;
    }
    .mega-menu .picture img{
        border-width: 0px;
    }
    .mega-menu .picture a {
        display: block;
        overflow: hidden;
        width: 90px;
        height: 90px;
    }
    .mega-menu .box .subcategories {
        float: right;
        margin: 0;
        margin-top: -8px;
        width: 100%;
    }
    .mega-menu .box strong {
        display: block;
	    margin-bottom: 5px;
        padding: 5px 0 10px;
	    color: #333;
	    text-transform: uppercase;
        font: normal bold 1.2em Arial, Helvetica, sans-serif;
    }
    .mega-menu .box strong a {
	    color: #333;
        letter-spacing: 0.5px;
        font-weight: bold;
    }
    .mega-menu .box strong a:hover {
        color: #AF0304;
        text-decoration: none;
    }
    .mega-menu .box li a {
        display: block;
        padding: 5px 0 5px 10px;
	    background: url('images/arrow1.png') left center no-repeat;
        color: #111 !important;
        text-decoration: none;
        font: normal normal .9em Arial, Helvetica, sans-serif;
        text-align: left !Important;
    }
    .mega-menu .box li a:hover {
	    background: url('images/arrow2.png') left center no-repeat;
        color: #AF0304 !important;
    }
    .mega-menu .box li:last-child:hover a {
        border-bottom: none;
    }

    /* MANUFACTURER DROPDOWN */

    .mega-menu .manufacturer {
        display: block;
	    background: none !important;
    }
    .mega-menu .manufacturer span {
        display: block;
        overflow: hidden;
        width: 90px;
        height: 90px;
        margin-bottom: 5px;
    }
    .mega-menu li a.manufacturer,
    .mega-menu li a.manufacturer:hover {
        font: normal bold 13px Arial, Helvetica, sans-serif !important;
        background: none !important;
    }
    .mega-menu .topic-wrapper p {
	    margin: 0;
	    padding: 10px;
	    color: #333;
    }

}



@media all and (max-width: 940px) {



    /* MENU BUTTON */

    .menu-title {
        width: 480px;
        max-width: 100%;
        margin: 10px auto 0;
	    padding: 0;
        border: 1px solid #aaa;
	    border-radius: 5px;
	    background: rgba(153,1,0,1);
    }
        .menu-title span {
            display: block;
            text-align: center;
	        color: #fff;
	        text-shadow: 1px 1px 0 #780000;
	        font: normal 20px/2 Arial, Helvetica, sans-serif;
            cursor: pointer;
            text-transform: uppercase;
        }

    /* RESPONSIVE MENU */

    .mega-menu-responsive {
        display: none;
        width: 480px;
        max-width: 100%;
        padding: 0;
        list-style: none;
        border: 1px solid #aaa;
        border-radius: 0 0 5px 5px;
    }
    .mega-menu-responsive .sublist {
        display: none;
        list-style: none;
    }

        .mega-menu-responsive li {
            position: relative;
            border-bottom: 1px solid #aaa;
        }
            .mega-menu-responsive li:last-child {
                border-bottom: 0;
            }
        .mega-menu-responsive a,
        .mega-menu-responsive span {
            display: block;
            position: relative;
            z-index: 1;
            color: #333;
            font-size: 18px;
            line-height: 2.2;
            text-decoration: none;
            padding: 0 54px 0 15px;
        }
    .plus-button {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;
        width: 39px;
        height: 39px;
        border-left: 1px solid #aaa;
        background-image: url(images/responsive-plus.png);
        background-position: center;
        background-repeat: no-repeat;
    }
        .plus-button.close {
            background-image: url(images/responsive-minus.png);
            background-position: center;
            background-repeat: no-repeat;            
        }

    .sublist > li:nth-child(2) {
        border-top: 1px solid #aaa;
    }
    .sublist.active {
        display: block;
    }

}