.toggle,
[id^=drop] {
    display: none;
}

.nav-arrow {
    width: 0;
    height: 0;
    display: inline-block;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: none;

    border-bottom: 10px solid #c6b8c2;
    margin-left: 5px;
    margin-bottom: 2px;
    vertical-align: initial;
}

nav label:hover .nav-arrow, label:has(+ [id^=drop]:checked) > .nav-arrow {
    width: 0;
    height: 0;
    display: inline-block;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: none;

    border-top: 8px solid #c6b8c2;
    margin-bottom: 0;
    margin-top: 2px;
    margin-left: 5px;
    vertical-align: top;
}

section.header {
    background-color: #633B61;
}

nav {
    margin:0;
    padding: 0;
    clear: both;
    z-index: 4;
}

div.logo-line div{
    display: inline-block;
    color: #c6b8c2;
}

#logo {
    display: inline-block;
    padding: 0;
    font-size:20px;
    float: left;
    width: 50%;
    line-height: 60px;
}

#logo img {
    max-width: 100%;
    margin-left: -16px;
}

.email-cart {
    float: right;
    margin-top: 30px;
}

div.logo-line .email-cart .email-icon{
    max-width: 100px;
}
div.logo-line .email-cart .purple-cart{
    max-width: 73px;
}

.email-text {
    float: right;
    width: 80px;
    margin-top: 11px;
    font-size: 13px;
    line-height: 16px;
}

div.logo-line span.separator {
    font-size: 40px;
    vertical-align: top;
    margin-top: 17px;
    display: inline-block;
}

/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
    content:"";
    display:table;
    clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
    padding:0;
    margin:0;
    list-style: none;
    position: relative;
    z-index: 4;
}

/* Positioning the navigation items inline */
nav ul li {
    margin: 0px;
    display:inline-block;
    float: left;
    background-color: #633B61;
    position: relative;
    z-index: 5;
    letter-spacing: 1px;
}

nav ul li a.no-children {
    margin-right: -30px;
}

li.advanced-search {
    max-width: 225px;
}

li.advanced-search:hover {
    max-width: 243px;
}

/* Styling the links */
nav a {
    display:block;
    padding:14px 20px;
    color:#FFF;
    font-size:17px;
    text-decoration:none;
}
nav a:hover, nav label:hover {
    font-weight: bold;
}
nav label::after, nav a::after {
    display: block;
    content: attr(title) '---';
    font-weight: bold;
    height: 1px;
    color: transparent;
    overflow: hidden;
    visibility: hidden;
}

nav ul li ul li hr {
    display: none;
}
nav ul li ul li:hover hr {
    display: block;
    width: 80%;
    color: #c6b8c2;
    height: 4px;
    background-color: #c6b8c2;
    border: none;
    margin-top: -4px;
}

nav ul li ul li:hover a{
    color: #633B61;
    font-weight: bold;
}

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
    display: none;
    position: absolute;
    /* has to be the same number as the "line-height" of "nav a" */
    top: 50px;
    border-top: 6px solid #c0acbd;
    background-color: #fff;
    width: auto;
}

nav ul ul li {
    background-color: #fff;
}

nav ul ul li a {
    color: #000;
}

/* Display Dropdowns on Hover */
nav ul li:hover > ul {
    display:inherit;
}

/* Display Dropdown when clicked on Parent Label */
[id^=drop]:checked + ul {
    display: block;
}

/* Fisrt Tier Dropdown */
nav ul ul li {
    width:240px;
    float:none;
    display:list-item;
    position: relative;
}

/* Second, Third and more Tiers
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
    position: relative;
    top:-60px;
    /* has to be the same number as the "width" of "nav ul ul li" */
    left:170px;
}

ul.search {
    float: right;
}

li.search-button img{
    max-width: 40px;
    vertical-align: middle;
    margin: -10px;
    margin-right: 5px;
}

ul.search .separator {
    padding-top: 11px;
    font-size: 24px;
    color: #c6b8c2;
    font-weight: bold;
}

#search-box {
    display: none;
    width: 90%;
    margin: 0 auto 0 auto;
    padding-bottom: 20px;
}

#search_field {
    font-size: 21px;
    width: 90%;
    padding: 10px 10px 10px 30px;
    display: inline-block;
}

#search-box button {
    border: 0;
    background-color: transparent;
    position: relative;
    left: -59px;
    top: 13px;
}

#search-box button img {
    max-width: 40px;
}

#search-box .close-search {
    display: inline-block;
    font-size: 21px;
    color: #fff;
    margin-left: -40px;
    cursor: pointer;
}

/* Styling the toggle label */
.toggle.top {
    display: none;
}
.toggle {
    display: block;
    background-color: #633B61;
    padding:14px 15px;
    color:#FFF;
    font-size:17px;
    text-decoration:none;
    border:none;
    cursor: pointer;
}

a.store-link {
    position: relative;
}

a.store-link .cart_count {
    display: block;
    position: absolute;
    top: -49px;
    left: 34px;
    font-size: 18px;
    text-decoration: none;
    color: #fff;
}

/* Media Queries
--------------------------------------------- */

@media all and (max-width : 1024px) {

    #logo {
        line-height: 12px;
        display: block;
        padding: 0;
        width: 100%;
        text-align: center;
        float: none;
    }

    nav {
        margin: 0;
    }

    div.logo-line .email-cart {
        margin: 0 auto;
        width: 100%;
        display: block;
        float: none;
    }

    /* Hide the navigation menu by default */
    .toggle + a,
    .menu {
        display: none;
    }

    /* Styling the toggle label */
    .toggle.top {
        display: block;
        background-color: #633B61;
        padding:14px 20px;
        color:#FFF;
        font-size:17px;
        text-decoration:none;
        border:none;
        cursor: pointer;
    }

    ul.search {
        float: none;
        width: 60%;
    }

    ul.search .search-button {
        display: none;
    }

    ul.search .separator {
        display: none;
    }

    #search-box {
        display: block;
    }

    #search-box .close-search {
        display: none;
    }

    #search-box #search_field {
        width: 98%;
    }


    nav ul ul {
        border-top: none;
    }

    /* Change menu item's width to 100% */
    nav ul li {
        display: block;
        width: 100%;
    }

    nav ul ul .toggle,
    nav ul ul a {
        padding: 0 40px;
    }

    nav ul ul ul a {
        padding: 0 80px;
    }

    nav ul li ul li .toggle,
    nav ul ul a,
    nav ul ul ul a{
        padding:14px 20px;
        color:#633B6150;
        font-size:17px;
    }


    /* Hide Dropdowns by Default */
    nav ul ul {
        float: none;
        position:static;
        color: #ffffff;
        /* has to be the same number as the "line-height" of "nav a" */
    }

    /* Hide menus on hover */
    nav ul ul li:hover > ul,
    nav ul li:hover > ul {
        display: none;
    }

    /* Fisrt Tier Dropdown */
    nav ul ul li {
        display: block;
        width: 100%;
    }

    nav ul ul ul li {
        position: static;
        /* has to be the same number as the "width" of "nav ul ul li" */

    }

}

@media all and (max-width : 330px) {

    nav ul li {
        display:block;
        width: 94%;
    }

}
