﻿/* =========================
   LAYOUT
========================= */

#contentwide {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

#narrowbynavwrapper,
#narrowbynav {
    width: 210px;
    min-width: 210px;
    flex: 0 0 210px;
}

#searchmaincontent {
    flex: 1 1 auto;
    min-width: 0;
}

#SearchWrapper {
    width: 100%;
    padding-top: 0 !important;
    margin-bottom: 15px;
}

#tileresultswrapper {
    width: 100%;
    padding-left: 20px;
}

#tileresultswrapperthispageonly {
    display: block;
}

.series-results-wrapper {
    display: block;
    width: 100%;
    clear: both;
    overflow: hidden;
}
#itemPlaceholderContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
    justify-content: flex-start;
}

#pnlSplashPage {
    padding-left: 20px;
}

/* =========================
   SEARCH BAR
========================= */

#SearchOptions {
    padding-top: 15px;
    padding-bottom: 15px;
}

.greenbox {
    background-color: #c1da62;
    color: white;
    font-weight: bold;
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 7.5px 15px 7.5px 0 !important;
}

.searchbtnbox {
    width: 350px;
    height: 35px;
    font-size: 1.2em;
    color: #a0a0a0;
    border: solid 1px;
    padding-left: 10px;
}

#txtSearch {
    margin-left: 10px;
}

.searchbtnclick {
    height: 35px;
    width: 85px;
}
#yourselections {
    font-weight: bold;
    color: #799048;
}
.button2 {
    width: 415px !important;
    margin-bottom: 20px;
    color: #799048;
    font-size: 1em;
    height:35px;
    margin-left:20px;
}

.btnToggleView-mobile {
    display: none;
}

@media (max-width: 915px) {
    .btnToggleView-desktop {
        display: none;
    }

    .btnToggleView-mobile {
        display: inline-block;
        width: 275px;
    }
}

/* =========================
   FILTERS
========================= */
#narrowbynav {
    font-size: .9em;
    font-family: Arial, Helvetica, sans-serif;
    border-style: solid;
    border-width: .5px;
    margin-bottom: 3px;
    color: #ffffff;
}

.NavHeader {
    padding-top: 5px;
    font-size: 1em;
    color: #493829;
    background-color: #f0f0f0;
    text-indent: 5px;
    line-height: 2em;
    margin-bottom: 0;
    font-weight: 700;
}

    .NavHeader a {
        text-decoration: none;
        color: #493829;
    }

.filter-section {
    margin-bottom: 10px;
}

.filter-checkbox {
    display: block;
    max-height: 120px;
    overflow-y: auto;
    padding: 7px;
    background-color: #fff;
    line-height: 1.5em;
    margin: .3em 0 1em .5em;
}

    .filter-checkbox label {
        color: #493829 !important;
        cursor: pointer;
    }

.CBL {
    font-size: .9em;
    color: #493829 !important;
}
.CBL label {
    margin:0;
    padding: 0;
    vertical-align:middle;
}

.CBL input[type="checkbox"] {
    margin: 0 4px 2px;
    vertical-align: middle;
}

input[type="checkbox"] + label {
    color: #000;
    cursor: pointer;
    opacity: 1;
}

input[type="checkbox"]:disabled + label {
    color: gray;
    cursor: not-allowed;
    opacity: .5;
}

.disabled-checkbox {
    color: #999 !important;
    pointer-events: none;
}

.subnav {
    height: 120px;
    overflow-y: scroll;
    margin: .3em 0 1em;
}

.subnavother {
    height: 75px;
}

/* =========================
   RESULTS GRID 
========================= */

#itemPlaceholderContainer,
[id$="itemPlaceholderContainer"] {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

/* IMPORTANT: using .txt sizing */
.resultcellbox {
    flex: 0 1 180px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

/* image alignment  */
.rcbimagebox {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border: none !important;
}

    .rcbimagebox img {
        max-height: 150px !important;
        max-width: 150px !important;
        width: auto !important;
        height: auto !important;
    }

/* text */
.resulttext {
    line-height: 1em;
    margin-top: 4px;
    color: #888;
}

.rcbtext {
    font-size: .7em !important;
    color: #888;
}

.rcbtextthumb {
    font-size: .9em !important;
    color: #888;
}

.rcbtextsku {
    font-size: .7em !important;
    color: #888;
}

.rcbtextfin {
    font-size: .7em !important;
    color: #888;
    font-style:italic;
}

.resultcellbox .rcbtext,
.resultcellbox .rcbtextfin,
.resultcellbox .rcbtextsku {
    line-height: 1.15em;
    margin: 0;
    padding: 0;
    display: inline;
}

/* =========================
   SERIES VIEW
========================= */
#seriesItemPlaceholderContainer,
.series-results-wrapper {
    display: block !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.seriesgroup {
    float: left;
    width: calc(50% - 20px);
    min-width: 300px;
    max-width: 100%;
    box-sizing: border-box;
}

.seriestitle {
    font-size: 1.5em;
    color: #617949;
}

.seriesimg {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

    .seriesimg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.others {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    box-sizing: border-box;
}

.resultcellseries {
    flex: 0 0 auto;
    min-width: 110px;
    max-width: 130px;
}

/* =========================
   SPLASH
========================= */

#pnlSplashPage {
    padding-left: 20px;
}

    #pnlSplashPage .popularheader {
        float: none;
        clear: both;
        display: block;
        width: 100%;
    }

    #pnlSplashPage .browseproducts {
        clear: both;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(160px, 1fr));
        gap: 12px;
        justify-content: flex-start;
    }

    #pnlSplashPage .productbrowse {
        width: 100% !important;
        position: relative;
        cursor: pointer;
    }

        #pnlSplashPage .productbrowse a {
            display: block;
            color: inherit;
            text-decoration: none;
        }

    #pnlSplashPage .browseimage {
        opacity: .3;
        transition: .5s ease;
        backface-visibility: hidden;
    }

        #pnlSplashPage .browseimage img,
        #pnlSplashPage .buttonimage {
            width: 100%;
            height: auto;
            display: block;
        }

    #pnlSplashPage .browsetext {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 100%;
        transform: translate(-50%, -50%);
        padding: 20px 0;
        text-align: center;
        color: #606060;
        font-weight: bolder !important;
        letter-spacing: .3rem;
        font-size: clamp(1rem, 1.5vw, 2rem);
        line-height: 1.1;
        transition: .5s ease;
        white-space: normal;
    }

    #pnlSplashPage .productbrowse:hover .browseimage {
        opacity: 1;
    }

    #pnlSplashPage .productbrowse:hover .browsetext {
        background-color: white;
        opacity: .7;
    }

@media (max-width: 1050px) {
    #pnlSplashPage .browseproducts {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

@media (max-width: 800px) {
    #pnlSplashPage .browseproducts {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 600px) {
    #pnlSplashPage {
        padding-left: 8px;
    }

        #pnlSplashPage .browseproducts {
            grid-template-columns: 1fr;
        }
}

/* =========================
   RESPONSIVE 
========================= */

@media (max-width: 1099px) {
    .seriesgroup {
        width: 90%;
    }
}

/* KEEP SIDE-BY-SIDE */
@media (max-width: 600px) {
    #contentwide {
        display: flex;
    }

    #maincontent {
        width: calc(100% - 210px);
    }

    #pnlSplashPage .browseproducts {
        grid-template-columns: 1fr;
    }
}


/* ===============================================================
   OVERRIDING ALL THE SCHTUFF THAT'S NOT FREAKING WORKING 
=============================================================== */
#tileresultswrapperthispageonly {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-left:20px;
}

.series-results-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* override old float layout */
.seriesgroup {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    margin: 0 !important;
    box-sizing: border-box;
    border: solid 1px;
    padding: 10px;
    text-align: center;
}

/* keep product thumbnails inside each series box */
.others {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    box-sizing: border-box;
}

.resultcellseries {
    flex: 0 0 auto;
    min-width: 110px;
    max-width: 130px;
    white-space: nowrap;
    text-align:center;
    padding-bottom:10px;
}
