#menu ul {
    margin: 0;
    padding: .25em;
}

#menu .main-menu {
    display: none;
}

#tm:checked + .main-menu {
    display: block;
    z-index: 100;
}

#menu input[type="checkbox"],
#menu ul span.drop-icon {
    display: none;
}

#menu li,
#toggle-menu {
    border-style: solid;
    border-color: rgba(0, 0, 0, .05);
    height: 2.5em;
    width: auto;
}


#menu li,
#toggle-menu {
    border-width: 0 0 1px;
}

#menu .sub-menu {
    border-width: 1px 1px 0;
    margin: 0 1em;
}

    #menu .sub-menu li:last-child {
        border-width: 0;
        height: 2.5em;
    }

#menu li,
#toggle-menu,
#menu a {
    text-decoration: none;
    position: relative;
    display: block;
    color: white;
    height: auto;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .125);
    z-index: 10;
}

#menu,
#toggle-menu {
    background-color: #8b8b8d;
    color: darkgoldenrod;
    height: 0px;
    clear: both;
    float: left;
    margin: 3px 0 13px 0;
}

    #toggle-menu,
    #menu a {
        padding: .7em 1.5em .7em;
    }

    #menu a {
        transition: all .125s ease-in-out;
        -webkit-transition: all .125s ease-in-out;
    }

        #menu a:hover {
            background-color: #49494a;
            color: darkgoldenrod;
        }

.active > a {
    background-color: #49494a;
    color: darkgoldenrod !important;
}

#menu .sub-menu {
    display: none;
}

#menu input[type="checkbox"]:checked + .sub-menu {
    display: block;
    z-index: 10;
}

#menu .sub-menu a:hover {
    background-color: #49494a;
    color: darkgoldenrod;
}

#toggle-menu .drop-icon,
#menu li label.drop-icon {
    position: absolute;
    right: 1.5em;
    top: 1.25em;
}

#menu label.drop-icon, #toggle-menu span.drop-icon {
    border-radius: 50%;
    width: 1em;
    height: 1em;
    text-align: center;
    background-color: rgba(0, 0, 0, .125);
    text-shadow: 0 0 0 transparent;
    color: rgba(255, 255, 255, .75);
}

#menu .drop-icon {
    line-height: 1;
}


@media only screen and (max-width: 64em) and (min-width: 52.01em) {
    #menu li {
        width: 33.333%;
    }

    #menu .sub-menu li {
        width: auto;
    }
}

@media only screen and (min-width: 52em) {
    #menu .main-menu {
        display: block;
    }

    #toggle-menu,
    #menu label.drop-icon {
        display: none;
    }

    #menu ul span.drop-icon {
        display: inline-block;
    }

    #menu li {
        float: left;
        border-width: 0 1px 0 0;
    }


    #menu .sub-menu {
        border-width: 0;
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 14em;
        z-index: 3000;
        background-color: #49494a;
    }

    #menu .sub-menu,
    #menu input[type="checkbox"]:checked + .sub-menu {
        display: none;
    }

        #menu .sub-menu li {
            border-width: 0 0 1px;
            float: none;
            background-color: #49494a;
        }

        #menu .sub-menu .sub-menu {
            top: 0;
            left: 100%;
            width: 20em;
            background-color: #49494a;
        }

    #menu li:hover > input[type="checkbox"] + .sub-menu {
        display: block;
        background-color: #49494a;
        color: darkgoldenrod;
    }
}
/*General Phone Potrait View*/
@media screen and (min-device-width : 320px) and (max-device-width : 480px) {
    #menu > ul > li > a:first-of-type {
        pointer-events: none;
        cursor: not-allowed;
    }

    #menu .sub-menu .sub-menu {
        display: none !important;
    }

    #menu {
        display: block;
        padding: 0;
    }

    #toggle-menu span.drop-icon {
        display: none;
    }

    label.drop-icon, .main-menu {
        display: none;
    }

    #menu ul span.drop-icon {
        display: inline-block;
    }

    #menu li {
        border-width: 0 1px 0 0;
        clear: both;
    }

    #menu .sub-menu {
        border-width: 0;
        margin: 0;
        position: relative;
        top: 100%;
        left: 0;
        width: 14em;
        z-index: 3000;
        background-color: #49494a;
        clear: both;
    }

    #menu, #toggle-menu {
        margin: 3px 0 0px 0;
    }

        #menu .sub-menu,
        #menu input[type="checkbox"]:checked + .sub-menu {
            display: none;
        }

            #menu .sub-menu li {
                border-width: 0 0 1px;
                float: none;
                background-color: #49494a;
            }

            #menu .sub-menu .sub-menu {
                top: 0;
                width: 20em;
                background-color: #49494a;
            }

        #menu li:hover > input[type="checkbox"] + .sub-menu {
            display: block;
            background-color: #49494a;
            color: darkgoldenrod;
        }

        #toggle-menu, #menu a {
            color: white;
            background-color: #49494a;
            background-image: linear-gradient(#49494a, #8b8b8d);
            height: auto;
            clear: both;
        }

    #search_button {
        display: block;
        float: right;
        width: 35px;
        height: 35px;
        margin: 5px 8px 0 0;
        background: url(/images/magnifying-glass-solo.png);
        background-size: 100%;
        background-size: 21.5px 21px;
        background-position: center 4px;
        background-repeat: no-repeat;
        cursor: pointer;
    }
}


/*General Phone Landscape View*/
@media screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation: landscape) {
    #menu > ul > li > a:first-of-type {
        pointer-events: none;
        cursor: not-allowed;
    }

    #menu .sub-menu .sub-menu {
        display: none !important;
    }

    #menu {
        display: block;
        padding: 0;
    }

    #toggle-menu span.drop-icon {
        display: none;
    }

    label.drop-icon, .main-menu {
        display: none;
    }

    #menu ul span.drop-icon {
        display: inline-block;
    }

    #menu li {
        border-width: 0 1px 0 0;
        clear: both;
    }

    #menu .sub-menu {
        border-width: 0;
        margin: 0;
        position: relative;
        top: 100%;
        left: 0;
        width: 14em;
        z-index: 3000;
        background-color: #49494a;
        clear: both;
    }

    #menu, #toggle-menu {
        margin: 3px 0 0px 0;
    }

        #menu .sub-menu,
        #menu input[type="checkbox"]:checked + .sub-menu {
            display: none;
        }

            #menu .sub-menu li {
                border-width: 0 0 1px;
                float: none;
                background-color: #49494a;
            }

            #menu .sub-menu .sub-menu {
                top: 0;
                width: 20em;
                background-color: #49494a;
            }

        #menu li:hover > input[type="checkbox"] + .sub-menu {
            display: block;
            background-color: #49494a;
            color: darkgoldenrod;
        }

        #toggle-menu, #menu a {
            color: white;
            background-color: #49494a;
            background-image: linear-gradient(#49494a, #8b8b8d);
            height: auto;
            clear: both;
        }

    #search_button {
        display: block;
        float: right;
        width: 35px;
        height: 35px;
        margin: 5px 30px 0 0;
        background: url(/images/magnifying-glass-solo.png);
        background-size: 100%;
        background-size: 21.5px 21px;
        background-position: center 4px;
        background-repeat: no-repeat;
        cursor: pointer;
    }
    a#cart_info {     
        right: 30px;     
    }
}
/*************************************************iPad Portrait and Landscape*******************************************/
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
    #head_top {
        height: 69px;
    }

    #menu li {
        width: 75%;
    }

    #menu > ul > li > a:first-of-type {
        pointer-events: none;
        cursor: not-allowed;
    }

    #menu .sub-menu .sub-menu {
        display: none !important;
    }

    #menu {
        display: block;
        padding: 0;
    }

    #toggle-menu span.drop-icon {
        display: none;
    }

    label.drop-icon, .main-menu {
        display: none;
    }

    #menu ul span.drop-icon {
        display: inline-block;
    }

    #menu li {
        border-width: 0 1px 0 0;
        clear: both;
    }

    #menu .sub-menu {
        border-width: 0;
        margin: 0;
        position: relative;
        top: 0;
        left: 0;
        width: 14em;
        z-index: 3000;
        background-color: #49494a;
        clear: both;
    }

    #menu, #toggle-menu {
        margin: 20px 0 50px 0;
    }

        #menu .sub-menu,
        #menu input[type="checkbox"]:checked + .sub-menu {
            display: none;
        }

            #menu .sub-menu li {
                border-width: 0 0 1px;
                float: none;
                background-color: #49494a;
            }

            #menu .sub-menu .sub-menu {
                top: 0;
                width: 20em;
                background-color: #49494a;
            }

        #menu li:hover > input[type="checkbox"] + .sub-menu {
            display: block;
            background-color: #49494a;
            color: darkgoldenrod;
        }

        #toggle-menu, #menu a {
            color: white;
            background-color: #49494a;
            background-image: linear-gradient(#49494a, #8b8b8d);
            height: auto;
            clear: both;
        }

    #search_button {
        display: block;
        float: right;
        width: 35px;
        height: 35px;
        margin: 5px 8px 0 0;
        background: url(/images/magnifying-glass-solo.png);
        background-size: 100%;
        background-size: 21.5px 21px;
        background-position: center 4px;
        background-repeat: no-repeat;
        cursor: pointer;
    }
    #menu .main-menu {
        display: flex;
        width: 90vw;
    }
}

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {
    #menu li {
        width: 100%;
    }
    #menu .main-menu {
        display: none;
        width: auto;
    }
    #menu, #toggle-menu {
        margin: 3px 0 0px 0;
    }
    #toggle-menu {
        display: block;
    }
}
