﻿/*#region PRODUCT GRID  */

/********************  #region SEARCH and CATEGORY  *******************/

:root {
    --filtersDistanceToTop: 0;
}
.center-1.fixed {
    position: relative;
    padding-top: 80px;
}
.center-1 .productListFilters {
    height: 80px;
}
.center-1.fixed .productListFilters {
    position: fixed;
    width: 100%;
    max-width: 1400px;
    top: var(--filtersDistanceToTop);
    z-index: 101;
}


.ui-helper-hidden-accessible {
    display: none;
}

.selected-options .title {
    display: none;
}

.selected-options-list {
    margin: 3rem 2rem 1rem;
    padding: 0;
    list-style: none;
}

    .selected-options-list > li {
        background-color: var(--main-color);
        position: relative;
        border-radius: 5px;
        height: 4rem;
        padding: .7rem 1rem .7rem 1.5rem;
        display: inline-block;
        margin-right: 1rem;
        transition: all 0.3s ease;
        color: #fff;
        font-weight: 400;
        margin-bottom: 1rem;
    }

        .selected-options-list > li:hover {
            cursor: pointer;
        }

        .selected-options-list > li label,
        .selected-options-list > li span {
            color: #fff;
            font-weight: 400;
            margin-right: .5rem;
            cursor: pointer;
            vertical-align: top;
        }

    .selected-options-list a:hover,
    .selected-options-list a:focus,
    .selected-options-list a:active {
        text-decoration: none;
    }



    .selected-options-list > li:hover {
        -webkit-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
        -moz-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
        box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
    }

    .selected-options-list > li span {
        padding: .6rem 6rem .6rem 0;
        cursor: pointer;
        background: url('/Themes/Shared/Content/images/delete_tag_x.svg') right center no-repeat;
        position: relative;
    }

        .selected-options-list > li span:hover {
            cursor: pointer;
        }

.searchTitle {
    display: none;
}

    .searchTitle .count {
        font-size: 5rem;
        color: #767676;
    }

.search-results {
    margin: 2rem 0;
}

.product-selectors {
    margin: 4rem 6% 2rem;
    border-bottom: 1px solid #ccc;
    padding: 3rem 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

    .product-selectors h5 {
        margin: 0;
    }

    .product-page-size,
    .product-selectors .product-viewmode span {
        display: none;
    }

.listFiltersWrapper {
    display: flex;
}

    .listFiltersWrapper .product-sorting {
        display: flex;
        margin-right: 3rem;
    }

        .listFiltersWrapper .product-sorting label {
            line-height: 4.5rem;
            white-space: nowrap;
        }

.product-selectors .product-viewmode a {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 0 0 12px;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
    line-height: 1.5rem;
}

    .product-selectors .product-viewmode a.grid {
        background-image: url('/Themes/Shared/Content/images/grid_view_icon_default.svg');
    }

    .product-selectors .product-viewmode a.list {
        background-image: url('/Themes/Shared/Content/images/list_view_icon_default.svg');
    }

    .product-selectors .product-viewmode a.grid.selected {
        background-image: url('/Themes/Shared/Content/images/grid_view_icon_selected.svg');
    }

    .product-selectors .product-viewmode a.list.selected {
        background-image: url('/Themes/Shared/Content/images/list_view_icon_selected.svg');
    }



#defaultGrid {
    position: relative;
}

.productListFilters .filter-block .toggleControl {
    color: #333;
    border: 1px solid #ccc;
    border-radius: var(--element-border-radius);
    font-weight: 600;
    text-indent: 2rem;
    font-family: var(--main-font);
    transition: all 0.3s ease;
    position: relative;
    display: block;
    cursor: pointer;
    height: 40px;
    font-size: 1.4rem;
    padding: .8rem 6rem 0 1.5rem;
    text-indent: 0;
    background-color: #fff;
    transition: all 0.3s ease;
}

    .productListFilters .filter-block .toggleControl:hover,
    .productListFilters .filter-block .toggleControl:focus,
    .productListFilters .filter-block .toggleControl:active {
        text-decoration: none;
        -webkit-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
        -moz-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
        box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
    }


/*.productListFilters .all-filters-block {
    display: none;
}*/

.filtersPanelsWrapper .title .toggleControl:hover,
.filtersPanelsWrapper .title .toggleControl:focus,
.filtersPanelsWrapper .title .toggleControl:active {
    text-decoration: none;
    -webkit-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
    -moz-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
    box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.filtersPanelsWrapper .title .toggleControl:after {
    content: url(/Themes/Shared/Content/images/filter_dropdown_arrow.svg);
    transform: rotate(0deg);
    transition: transform 200ms linear;
    position: absolute;
    right: 2rem;
    max-width: 14px;
}

.productListFilters {
    display: block;
    width: 100%;
    white-space: nowrap;
    width: 100%;
    background-color: #ffffff;
    margin: 0px;
    padding: 1.5rem;
    -webkit-box-shadow: 0px 10px 5px -5px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 10px 5px -5px rgba(0,0,0,0.3);
    box-shadow: 0px 10px 5px -5px rgba(0,0,0,0.3);
}


.manufacturerPageWrapper .productListFilters {
    width: 100%;
}

.filtersPanelsWrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

    .filtersPanelsWrapper > div {
        flex-basis: 24%;
        margin: .5rem .5%;
    }

    .filtersPanelsWrapper .filter-block {
        width: 100%;
        display: inline-block;
        vertical-align: top;
        position: relative;
    }

        .filtersPanelsWrapper .filter-block .filter-data-block {
            background-color: #fff;
            border-radius: 5px;
            border: 1px solid #ccc;
            padding: 0;
            margin: 1rem 0 0;
            cursor: pointer;
            -webkit-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
            -moz-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
            box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
            width: 100%;
            position: absolute;
            z-index: 101;
        }

        .filtersPanelsWrapper .filter-block.priceRangeFilterPanel7Spikes .filtersGroupPanel,
        .filtersPanelsWrapper .filter-block.combinedFiltersWrapper .filter-data-block {
            padding: 1.5rem 0;
        }

/* selected filters */
.filtersPanel {
    width: 100%;
}

    .filtersPanel .filter-block:not(.selected-options) {
        display: none;
    }

.filter-data-block ul {
    max-height: 22rem;
    padding: 1.5rem 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.combinedFiltersWrapper .filter-data-block ul {
    padding: 0;
}

.filter-data-block a,
.filter-data-block a:hover,
.filter-data-block a:focus,
.filter-data-block a:active {
    vertical-align: top;
    font-weight: 400;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
}

ul.facet-list > li {
    padding: .3rem 2rem;
    display: flex;
    white-space: normal;
}

    ul.facet-list > li:hover {
        background-color: #eee;
    }


ul.facet-list li.filter-item-disabled-unselected {
    pointer-events: none;
    opacity: .3;
}

.productListFilters .facet-list:not(.sortByList) li:before {
    content: "";
    width: 2rem;
    height: 2rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    margin: 0 .8rem 0 0;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 2rem;
    pointer-events: none;
    vertical-align: text-top;
}

.productListFilters .facet-list li.filter-item-unselected:before {
    background: #fff;
}

.productListFilters .facet-list li.filter-item-selected:before {
    background: url('/Themes/Shared/Content/images/checkbox_checkmark_sm.svg') var(--main-color) center center no-repeat;
}
/*#endregion*/

/* grid view */

#backtotop-button {
    position: fixed;
    opacity: 0;
    right: calc((100% - 1680px) / 2);
    bottom: 16rem;
    background: var(--btn-background);
    border-radius: 50%;
    padding: 2rem;
    z-index: 111;
    -webkit-box-shadow: 1px 1px 14px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 1px 4px 6px -2px rgba(0,0,0,0.3);
    box-shadow: 1px 1px 14px 0px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    transition: opacity .8s ease;
}

    #backtotop-button.visible {
        opacity: 1;
        transition: opacity .8s ease;
    }

    #backtotop-button:hover {
        box-shadow: 1px 1px 14px 0px rgba(0,0,0,0.5);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    #backtotop-button .topIcon {
        width: 8rem;
        height: 8rem;
        transform: scale(1, -1);
        background-image: url('/Themes/Shared/Content/images/search_aarow_icon_default.svg');
        border-radius: 50%;
    }

#load-more-button {
    margin: 0 auto;
    display: block;
    --btn-width: auto;
}

.contentProductGridWrapper {
    position: relative;
}

.ajaxPageWrapper {
    position: relative;
    opacity: 1;
    transition: all ease 800ms;
}

    .ajaxPageWrapper.hidden {
        opacity: 0;
        transition: all ease 800ms;
    }

.item-grid {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 3% 4.5%;
    display: grid;
    column-gap: 5px;
    row-gap: 5px;
}

.product-grid .item-grid {
    /* the repeat autofit minmax would work better except for when there are only a few items. then the spacing is weird */
    /*grid-template-columns: repeat( auto-fit, minmax(230px, 1fr) );*/
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}
@media (max-width: 1320px) {
    .product-grid .item-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}
@media (max-width: 1050px) {
    .product-grid .item-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.product-grid .item-box {
    text-align: left;
    width: 200px;
    margin: 0 auto 8rem;
    box-sizing: border-box;
}

.sub-category-grid .item-grid {
    grid-template-columns: repeat( auto-fit, minmax(310px, 1fr) );
    column-gap: 2rem;
    row-gap: 2rem;
}

    .sub-category-grid .item-grid .item-box {
        text-align: center;
        max-width: 310px;
        margin: 0 auto;
        margin: 0 1.5% 8rem;
        box-sizing: border-box;
    }

        .sub-category-grid .item-grid .item-box .sub-category-item .picture img {
            max-width: 100%
        }


/* list view */
.product-list .item-grid {
    grid-template-columns: 1fr 1fr;
}

.product-list .item-box {
    text-align: left;
    width: 100%;
    margin: 0 0 10rem;
    box-sizing: border-box;
}

.product-list .product-item {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}

    .product-list .product-item .picture {
        box-sizing: border-box;
        position: relative;
        margin: 0 3rem 0;
        display: inline-block;
    }

    .product-list .product-item .details {
        box-sizing: border-box;
        position: relative;
        margin: 0;
        display: inline-block;
    }

/*product rating*/
.product-rating-box {
    margin: 1.5rem 0;
}

/*#endregion*/


/*#region PICTURE BOX  */
/* grid view picture box */

.product-item .picture {
    position: relative;
    display: block;
}

    .product-item .picture .pictureWrapper {
        display: flex;
        width: 200px;
        height: 300px;
        align-items: flex-end;
        justify-content: center;
    }

        .product-item .picture .pictureWrapper .ribbon-wrapper {
            display: flex;
            max-height: 100%;
            max-width: 100%;
            width: 100%;
        }

        .product-item .picture .pictureWrapper .pictureLink {
            display: flex;
            flex-flow: row nowrap;
            align-items: center;
            max-height: 100%;
            max-width: 100%;
            width: 100%;
        }

            .product-item .picture .pictureWrapper .pictureLink img {
                max-width: 200px;
                max-height: 300px;
                margin: 0 auto;
                -webkit-transition: all 0.3s ease;
                transition: all 0.3s ease;
                -webkit-transform: translateZ(0) scale(1.0, 1.0);
            }

/*#endregion*/


/*#region PICTURE BOX  */
/* list view picture box */

.product-list .product-item .picture {
    position: relative;
    display: block;
    width: 200px;
    height: auto;
    margin-bottom: 3rem;
}

.product-list .product-item > .details {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.product-list .product-item .picture .pictureWrapper {
    display: flex;
    width: 200px;
    height: auto;
    align-items: flex-end;
    justify-content: center;
}

    .product-list .product-item .picture .pictureWrapper .ribbon-wrapper {
        display: flex;
        max-height: 100%;
        max-width: 100%;
        width: 100%;
    }



    .product-list .product-item .picture .pictureWrapper .pictureLink {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        max-height: 100%;
        max-width: 100%;
        width: 100%;
    }

        .product-list .product-item .picture .pictureWrapper .pictureLink img {
            max-width: 200px;
            max-height: 300px;
            margin: 0 auto;
            -webkit-transition: all 0.3s ease;
            transition: all 0.3s ease;
            -webkit-transform: translateZ(0) scale(1.0, 1.0);
        }

.ribbon-wrapper:not(:first-child) .crc-approved {
    display: none;
}


/*#endregion*/

/* grid view */

.product-grid-featured {
    position: relative;
}


    .product-grid-featured .item-grid {
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        -ms-flex-direction: row;
        flex-direction: row;
        width: 100%;
        height: 100%;
        padding: 3% 4.5%;
    }

    .product-grid-featured .item-grid,
    .search-results .product-grid-featured .item-grid {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

        .category-page .product-grid-featured .item-grid:after,
        .search-results .product-grid-featured .item-grid:after {
            content: "";
            -ms-flex: auto;
            flex: auto;
            content: "";
            flex: 1 1 100%;
        }

    .product-grid-featured .item-box {
        text-align: left;
        width: 200px;
        margin: 0 1.5% 8rem;
        box-sizing: border-box;
    }



#categoryContent {
    grid-area: content1;
}

#categoryContent2 {
    grid-area: content2;
}

.contentProductGridWrapper {
    grid-area: productGrid;
}

.category-page .page-body {
    display: grid;
    row-gap: 2rem;
    grid-template-areas: 'content1' 'productGrid' 'content2';
    grid-template-columns: 1fr;
    grid-template-rows: repeat(1fr);
}
    .category-page .page-body > * {
        max-width: 100vw;
    }