﻿/*
* Copyright 2014 Seven Spikes Ltd. All rights reserved. (http://www.nop-templates.com)
* http://www.nop-templates.com/t/licensinginfo
*/

/*=====================================================
    
    RESPONSIVE

=====================================================*/

@media all and (min-width: 240px) {

    .menu-title {
        text-align: center;
    }

    .mega-menu,
    .header-menu .menu-title,
    .dropdown {
        display: none;
    }
}

@media all and (max-width: 1000px) {

    .dropdown .topic-wrapper {
        display: none;
    }
}

/*=====================================================
    
    DESKTOP

=====================================================*/

@media all and (min-width: 1001px) {

    .menu-title,
    .close-menu {
        display: none;
    }

    /* MAIN PANEL & DROPDOWN*/

    .mega-menu {
        position: relative;
        z-index: 1001;
        display: block;
    }

    .mega-menu-responsive {
        display: none !important;
    }

    .mega-menu .dropdown {
        display: none;
        position: absolute;
        box-shadow: 0 2px 2px rgba(0,0,0,0.15);
        background: rgba(255,255,255,.94);
        z-index: 3;
        top: 59px;
    }

        .mega-menu .dropdown:before {
            content: " ";
            position: absolute;
            bottom: 100%;
            left: 0;
            right: 0;
            height: 15px;
            background: transparent;
        }

        .mega-menu .dropdown.active {
            display: block;
        }

        .mega-menu .dropdown.fullWidth {
            left: 50%;
            margin-left: -500px;
            width: 1000px;
        }

    /* ROWS AND BOXES */


    .mega-menu .row-wrapper {
        display: table;
        width: 100%;
    }

    .mega-menu .row {
        overflow: hidden;
        display: table-row;
    }

    .dropdown .box {
        float: left;
        padding: 0 15px 20px;
    }

    .categories.fullWidth .box {
        width: 33.3333333%;
        height: 100%;
        border-right: 1px dotted #d3d3d3;
        border-bottom: 1px dotted #d3d3d3;
        padding: 0;
        display: table-cell;
        float: none;
    }

    .categories.fullWidth .row:last-child .box {
        border-bottom: 0;
    }

    .categories.fullWidth .row .box:last-child {
        border-right: 0;
    }

    .categories .box,
    .manufacturers .box {
        width: 250px;
    }

    .mega-menu .title {
        background: #b5b5b5 none repeat scroll 0 0;
        color: #fff;
        margin: 0 0 5px;
        text-align: left;
        text-transform: uppercase;
    }

        .mega-menu .title a {
            display: block;
            font-size: 15px;
            padding: 8px 20px !important;
        }

            .mega-menu .title a:hover {
                background: #79b285;
            }

    .mega-menu .picture {
        display: none;
    }

        .mega-menu .picture a {
            display: block;
            position: relative;
            overflow: hidden;
        }

            .mega-menu .picture a:before {
                content: " ";
                display: block;
                padding-top: 43.3333333%;
            }

        .mega-menu .picture img {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            margin: auto;
            max-width: 100%;
        }

    .mega-menu .subcategories {
        padding: 10px 25px 20px;
    }

    .mega-menu .box ul {
    }

    .mega-menu .box li {
        text-align: left;
    }

        .mega-menu .box li a {
            position: relative;
            padding: 5px 5px 5px 14px !important;
            font-size: 16px;
            line-height: 1;
            display: block;
            color: #333;
        }

            .mega-menu .box li a:before {
                content: " ";
                position: absolute;
                top: 50%;
                left: 0;
                margin-top: -3px;
                width: 6px;
                height: 6px;
                border-radius: 100%;
                background: #aaaaaa;
            }

            .mega-menu .box li a:hover {
                color: #79b285;
            }

    .mega-menu .box .subcategories li a {
        display: inline-block;
    }

    .mega-menu .box li:nth-child(odd) a:hover {
    }

    .mega-menu .box li:nth-child(even) a:hover {
    }

    .mega-menu li a.view-all {
        background: none;
        color: #79b285;
        font-weight: bold;
        text-transform: uppercase;
    }

    /* manufacturers */

    .manufacturers.fullWidth .row {
        padding: 5px;
    }

    .manufacturers.fullWidth .box {
        width: 16.66666666666667%;
        padding: 10px;
        position: relative;
    }

    .manufacturers.fullWidth .title {
        text-align: center;
        padding: 0;
        margin: 0;
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 10px;
        font-size: 18px;
    }

    .manufacturers.fullWidth .box ul {
        margin: 0 0 29px;
    }

    .manufacturers.fullWidth li * {
        padding: 0 !important;
    }

    .mega-menu .box li a.manufacturer:before {
        display: none;
    }

    .manufacturers.fullWidth li span {
        display: block;
        position: relative;
    }

        .manufacturers.fullWidth li span:before {
            content: " ";
            display: block;
            padding-top: 100%;
        }

    .manufacturers.fullWidth li img {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
    }

    /* topics */

    .mega-menu .topic-wrapper {
        overflow: hidden;
    }

        .mega-menu .topic-wrapper .box {
            padding: 0;
        }

    .mega-menu .dropdown p {
        font-size: 16px;
        line-height: 1.2;
        padding: 0 10px 20px;
    }

    .mega-menu .topic-wrapper strong {
        display: block;
        border-bottom: 1px dotted #c3c3c3;
        padding: 5px 10px;
        color: #666;
        font: normal 20px/normal "Kelly Slab", Calibri, sans-serif;
    }
}

@media all and (min-width: 1141px) {
    .mega-menu .title a {
        font-size: 16px;
        padding: 8px 25px !important;
    }
}
