/*--------------------------------------------------------------
# SEACH RESULTS
--------------------------------------------------------------*/

#main.search .container {
    max-width: 1364px;
}

#main.search #search-header {
    background: #F8F8F8;
    width: 100%;
    clear: both;
    margin-bottom: 0;
    padding: 30px 0 30px 0;
    text-align: center;
}

#main.search #search-header header h1 {
    color: #737A83;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
}

#main.search #search-header header h1 span {
    color: #293644;
}

#main.search #search-header .new-search {
    font-size: 14px;
    height: 15px;
    font-weight: bold;
    color: #00A2FF;
    padding-left: 34px;
    letter-spacing: 0.5px;
    display: inline-block;
    text-transform: uppercase;
    cursor: pointer;
    background: url('../../images/2017-images/search-new-search-icon.png') left center no-repeat;
}

#main.search #search-header .new-search:hover {
    opacity: 0.8;
}

#main.search h2.search-title {
    font-size: 16px;
    color: #293644;
    text-align: left;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0px 0px 10px 0px;
    border-bottom: 3px solid #00A2FF;
    margin-bottom: 20px;
}

#main.search .nothing-found {
    text-align: left;
    margin: 0 auto 30px;
    margin-bottom: 15px !important;
    display: block;
    font-size: 19px !important;
    font-style: normal !important;
    line-height: 23px !important;
    color: #293644;
}

#main.search #content {
    width: 100%;
    clear: both;
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
}

#main.search #product-search-results {
    width: 33.33333333%;
}

#main.search #product-search-results ul li {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    background: #f8f8f8;
    padding: 7px 7px 3px 7px;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
}

#main.search #product-search-results ul li:hover {
    background: #fff;
}

#main.search #product-search-results ul li a {
    display: block;
    color: #293644;
    font-size: 15px;
    line-height: 20px;
}

#main.search #product-search-results ul li a img {
    width: 60px;
}

#main.search #product-search-results ul li a span {
    width: calc(100% - 75px);
    float: right;
    text-align: left;
    height: 60px;
    vertical-align: middle;
    line-height: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#main.search .search-articles {
    width: 33.33333333%;
    border-left: 7px solid #f8f8f8;
    -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
    -moz-box-flex: 1;         /* OLD - Firefox 19- */
    -webkit-flex: 1;          /* Chrome */
    -ms-flex: 1;              /* IE 10 */
    flex: 1;                  /* NEW, Spec - Opera 12.1, Firefox 20+ */
}

#main.search .search-articles.podcasts {
    border-bottom: none;
}

#main.search .search-articles article {
    float: left;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    min-height: 50px;
}

#main.search .search-articles article:nth-child(3n+1) {
    margin-right: 0;
}

#main.search .search-articles article .img {
    width: 100%;
    height: 244px;
    display: block;
    margin-bottom: 18px;
}

#main.search .search-articles article h3 {
    font-size: 24px;
    line-height: 1.2;
    font-weight: normal;
    margin-bottom: 15px;
}

#main.search .search-articles article h3 a {
    color: #293644;
    text-decoration: none;
}

#main.search .search-articles article h3 a:hover {
    text-decoration: underline;
}

#main.search .search-articles article .meta {
    display: block;
    color: #797F83;
    font-size: 14px;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#main.search .search-articles article .meta a {
    color: #00A1FF;
    text-decoration: none;
}

#main.search .search-articles article .meta a:hover {
    text-decoration: underline;
}

#main.search div.three-col {
    float: left;
    padding-top: 30px;
    padding-bottom: 30px;
}

#main.search div.three-col article {
    border-bottom: 7px solid #f3f3f3;
    padding-bottom: 20px;
}

#main.search div.three-col article > a {
    float: left;
}

#main.search div.three-col article a img {
    width: 110px;
    display: block;
}

#main.search div.three-col article a .imgThumb {
    width: 110px;
    height: 55px;
    display: block;
    margin-bottom: 0;
}

#main.search div.three-col article h3 {
    text-align: left;
    float: right;
    width: calc(100% - 130px);
    line-height: 19px;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 0px;
}

#product-search-results .load-more-button {
    width: 100%;
    padding: 20px 5px;
    max-width: 260px;
}

body.search .isSuppsGrid{
  padding: 0;
}

body.search-results #products-grid .products,
body.search-no-results #products-grid .products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: flex-start;
}

body.search-results .product,
body.search-no-results .product {
    width: 100%;
    padding: 32px 0px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    order: initial !important;
}

body.search-results .product.build-muscle-stack,
body.search-results .product.build-muscle-stack + .product.recharge-post-workout + .product {
    height: 403px;
}

body.search-results .product.build-muscle-stack h5,
body.search-results .product.rapid-recovery-stack h5,
body.search-results .product.fat-loss-stack h5,
body.search-results .product.optimal-performance-stack h5,
body.search-no-results .product.build-muscle-stack h5,
body.search-no-results .product.rapid-recovery-stack h5,
body.search-no-results .product.fat-loss-stack h5,
body.search-no-results .product.optimal-performance-stack h5 {
    margin-bottom: 33px;
}

body.search-results .product.quiz-cta + .product,
body.search-no-results .product.quiz-cta + .product {
    align-self: center;
}

body.search-results .product .quizCTAContainer,
body.search-no-results .product .quizCTAContainer {
    top: -3px;
    height: 364px;
    padding: 0 6px;
}

body.search-results .product .quizCTAContainer h3,
body.search-no-results .product .quizCTAContainer h3 {
    font-size: 17px;
}

.vertAlignTop {
    vertical-align: top !important;
}

.account-link {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-bottom: 7px solid #f8f8f8;
}

@media screen and (min-width: 1750px) {
    #main.search #product-search-results {
        width: 33.33333333%;
    }

    #main.search .search-articles {
        width: 33.33333333%;
    }
}

@media screen and (min-width: 1368px) {

    #main.search #search-header header h1 {
        font-size: 36px;
    }

    #main.search h2.search-title {
        font-size: 20px;
    }

    #main.search div.three-col article a img {
        max-width: 140px;
    }

    #main.search div.three-col article a .imgThumb {
        width: 140px;
        height: 65px;
    }

    #main.search div.three-col article h3 {
        width: calc(100% - 160px);
    }

    #main.search div.three-col article h3 a {
        font-size: 19px;
        line-height: 23px;
    }

}

@media screen and (min-width: 1651px) {
    body.search-results .product.build-muscle-stack .review,
    body.search-no-results .product.build-muscle-stack .review,
    body.search-results .product.build-muscle-stack + .product.recharge-post-workout + .product .review,
    body.search-no-results .product.build-muscle-stack + .product.recharge-post-workout + .product .review {
        position: absolute;
        bottom: 50px;
    }

    body.search-results .product.build-muscle-stack .prices,
    body.search-no-results .product.build-muscle-stack .prices,
    body.search-results .product.build-muscle-stack + .product.recharge-post-workout + .product .prices,
    body.search-no-results .product.build-muscle-stack + .product.recharge-post-workout + .product .prices {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 31px;
    }
}

@media screen and (max-width: 1650px) and (min-width: 1025px) {
    body.search-results #products-grid .products,
    body.search-no-results #products-grid .products {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: flex-start;
    }
    body.search-results .product,
    body.search-no-results .product {
        grid-column: span 2;
    }
    body.search-results .product :nth-last-child(1):nth-child(odd) .quizCTAContainer,
    body.search-no-results .product :nth-last-child(1):nth-child(odd) .quizCTAContainer {
        padding: 0 25px;
    }

    body.search-results .product.build-muscle-stack h5,
    body.search-results .product.rapid-recovery-stack h5,
    body.search-results .product.fat-loss-stack h5,
    body.search-results .product.optimal-performance-stack h5,
    body.search-no-results .product.build-muscle-stack h5,
    body.search-no-results .product.rapid-recovery-stack h5,
    body.search-no-results .product.fat-loss-stack h5,
    body.search-no-results .product.optimal-performance-stack h5 {
        margin-bottom: 37px;
    }
}

@media screen and (max-width: 1541px) and (min-width: 1340px) {
    body.search-results .product.build-muscle-stack h5 {
        margin-bottom: 62px;
    }
}

@media screen and (max-width: 1367px) {
    #main.search .nothing-found {
        font-size: 15px !important;
    }
}

@media screen and (max-width: 1230px) and (min-width: 1025px) {
    body.search-results .product:not(:nth-last-child(1):nth-child(odd)) .quizCTAContainer h3,
    body.search-no-results .product:not(:nth-last-child(1):nth-child(odd)) .quizCTAContainer h3,
    body.search-results .product:not(:nth-last-child(1):nth-child(odd)) .quizCTAContainer a,
    body.search-no-results .product:not(:nth-last-child(1):nth-child(odd)) .quizCTAContainer a {
        font-size: 16px;
    }
}

@media screen and (max-width: 1160px) and (min-width: 1025px) {
    body.search-results .product:not(:nth-last-child(1):nth-child(odd)) .quizCTAContainer h3,
    body.search-no-results .product:not(:nth-last-child(1):nth-child(odd)) .quizCTAContainer h3,
    body.search-results .product:not(:nth-last-child(1):nth-child(odd)) .quizCTAContainer a,
    body.search-no-results .product:not(:nth-last-child(1):nth-child(odd)) .quizCTAContainer a {
        font-size: 13px;
    }
}

@media screen and (min-width: 768px) {
    body.search-results #products-grid.contains-tags .product,
    body.search-no-results #products-grid.contains-tags .product {
        margin-top: 30px;
    }

    body.search-results #products-grid.contains-tags .product.quiz-cta,
    body.search-no-results #products-grid.contains-tags .product.quiz-cta {
        margin-top: 0;
    }

    body.search-results #products-grid.contains-tags .product .quizCTAContainer,
    body.search-no-results #products-grid.contains-tags .product .quizCTAContainer {
        top: -28px;
        height:  372px;
    }


    body.search-results #products-grid .product .quizCTAContainer.noSale,
    body.search-no-results #products-grid .product .quizCTAContainer.noSale {
        height: 300px;
        top: 7;
        max-width: 225px;
        padding: 15px;
    }
    body.search-results #products-grid.contains-tags .product .quizCTAContainer.noSale,
    body.search-no-results #products-grid.contains-tags .product .quizCTAContainer.noSale {
        margin-top: 70px;
    }
}

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

    #main.search #content {
        display: block;
    }

    #main.search #product-search-results {
        width: 100%;
        display: block;
        float: none;
    }

    #main.search .search-articles {
        width: 50%;
        border-left: none;
        -webkit-box-flex: unset;
        -moz-box-flex: unset;
        -webkit-flex: unset;
        -ms-flex: unset;
         flex: unset;
    }

    #main.search #product-search-results ul li {
        width: calc(50% - 10px);
        float: left;
        margin-bottom: 20px;
    }

    #main.search #product-search-results ul li:nth-child(even) {
        margin-left: 20px;
    }

    #product-search-results .load-more-button {
        max-width: 100%;
    }

    #main.search #search-header {
        height: auto;
        padding: 20px 0;
    }

    #main.search #search-header header h1 {
        font-size: 20px;
    }

    body.search-results .product,
    body.search-no-results .product {
        height: initial !important;
    }

    body.search-results .product.build-muscle-stack,
    body.search-results .product.build-muscle-stack + .product.recharge-post-workout + .product {
        height: initial;
    }

    body.search-results .product.build-muscle-stack h5 {
        margin-bottom: 37px;
    }

}

@media screen and (max-width: 767px) {

    #main.search div.three-col {
        padding-left: 0px;
        padding-right: 0px;
        padding-top: 20px;
    }

    #main.search h2.search-title {
        margin-left: 20px;
        margin-right: 20px;
    }

    #main.search #product-search-results h2.search-title {
        margin-bottom: 0;
    }

    #main.search .nothing-found {
        font-size: 14px !important;
        line-height: 17px !important;
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 10px;
        margin-bottom: -10px !important;
    }

    #main.search .search-articles {
        width: 100%;
    }

    #main.search #product-search-results ul li a img {
        width: 45px;
    }

    #main.search #product-search-results ul li a span {
        width: calc(100% - 60px);
        height: 50px;
        line-height: 45px;
        font-size: 14px;
    }

    #main.search div.three-col article h3 {
        font-size: 14px;
    }

    #main.search .container {
        padding: 0;
    }

    #main.search #search-header {
        padding: 20px 0;
    }

    #main.search #search-header header h1 {
        font-size: 18px;
    }

    #main.search .search-articles article {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    #search-articles-container, #search-podcasts-container{
    	margin-left: 20px;
        margin-right: 20px;
    }
    
    #articles-load-more, #podcasts-load-more{
    	width: calc(100% - 40px);
    }
    

    body.search-results .product.build-muscle-stack h5,
    body.search-results .product.rapid-recovery-stack h5,
    body.search-results .product.fat-loss-stack h5,
    body.search-results .product.optimal-performance-stack h5,
    body.search-no-results .product.build-muscle-stack h5,
    body.search-no-results .product.rapid-recovery-stack h5,
    body.search-no-results .product.fat-loss-stack h5,
    body.search-no-results .product.optimal-performance-stack h5 {
        margin-bottom: 24px !important;
    }

    body.search-results #products-grid .products,
    body.search-no-results #products-grid .products {
        display: block;
    }

    body.search-results .product,
    body.search-no-results .product {
        width: 50%;
        padding: 32px 0 0;
    }

    body.search-results .product,
    body.search-no-results .product {
        vertical-align: bottom;
    }

    body.search-results .product .quizCTAContainer,
    body.search-no-results .product .quizCTAContainer {
        height: 253px;
        top: 0px;
    }

    body.search-results .product:nth-last-child(1):nth-child(odd),
    body.search-no-results .product:nth-last-child(1):nth-child(odd) {
        float: left;
    }

}

@media screen and (max-width: 590px) {
    body.search-results .product .quizCTAContainer h3,
    body.search-no-results .product .quizCTAContainer h3 {
        font-size: 17px;
    }

    body.search-results .product .quizCTAContainer a,
    body.search-no-results .product .quizCTAContainer a {
        font-size: 15px;
        padding: 15px 0;
    }
}

@media screen and (max-width: 445px) {
    body.search-results .product.pulse-pre-workout,
    body.search-no-results .product.pulse-pre-workout {
        vertical-align: top;
    }

    body.search-results .product .quizCTAContainer h3,
    body.search-no-results .product .quizCTAContainer h3 {
        font-size: 15px;
    }

    body.search-results .product .quizCTAContainer a,
    body.search-no-results .product .quizCTAContainer a {
        font-size: 13px;
    }
}

@media screen and (max-width: 410px) {
    body.search-results .product .quizCTAContainer,
    body.search-no-results .product .quizCTAContainer {
        height: 295px;
        top: 8px;
    }
}











/*--------------------------------------------------------------
# Retina Images
--------------------------------------------------------------*/

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    #main.search #search-header .new-search {
        background: url('../../images/2017-images/search-new-search-icon@2x.png') left center no-repeat;
        background-size: 15px;
    }

}

