﻿/*** Category.css overrides  ***/
ol.breadcrumb {
    justify-content: center;
}

.noUi-horizontal .noUi-handle {
    cursor: pointer;
}

.view-all-link button.view-link:hover {
    text-decoration: none;
}

th#arrows,
th.no-search.hide-filter:first-of-type,
td.no-search.arrowt,
table.dataTable thead .sorting:after,
tfoot,
.circle {
    display: none !important;
}

.tableFacets .specification-type:has(.row.facet-row) span.facet-header::after {
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 200ms ease, translate 200ms ease;
    transform: rotate(0deg) translateY(0);
    display: inline-block;
}

.tableFacets div.specification-type.open span.facet-header::after {
    transform: rotate(180deg) translateY(1px) !important;
}

/*** Product Table ***/
.table-responsive {
    max-width: 1700px;
    width: 95%;
    overflow: hidden;
    margin: 0 auto;
    padding-left: 15px !important;
    padding-right: 15px !important;
}


#LeftNavigationContents details {
    font-size: 1rem;
}

table#tableProducts th,
table#tableProducts td {
    text-align: center !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
}

div#tableProducts_wrapper {
    width: 100%;
    contain: layout paint;
    content-visibility: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    height: fit-content;
    max-height: 100vh;
    contain-intrinsic-size: 1200px;
    border: 1px solid #ddd;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    scrollbar-width: thick;
    margin-top: 0px;
    border-bottom:0px !important;
}

table#tableProducts {
    width: 100% !important;
    min-width: 1340px;
    table-layout: fixed;
    font-size: 13px !important;
    border-collapse: separate !important;
    border-spacing: 0;
    scroll-behavior: smooth;
    margin-bottom:0px !important;
}

/* Individual cell adjustments */
.stockt a {
    font-family: 'sofia w01 bold';
    font-weight: 700;
}

td.no-search.comparet input {
    text-align: center;
    margin: auto;
}

table#tableProducts thead th#compares {
    max-width: 30px !important;
}

#tableProducts td.no-search.comparet {
    padding-top: 8px !important;
}

td span.price {
    color: green;
    font-weight: 600;
}

/*** thead ***/
table#tableProducts thead th {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    padding: 0.4rem;
    box-shadow: none;
    background-image: none;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    text-wrap: pretty;
    font-size: 11px;
    letter-spacing: .25px;
    color: #000 !important;
    font-weight: 100;
    vertical-align: top !important;
    padding: 10px 15px 0 !important;
    max-width: 50px !important;
    height: 70px;
}

/* tbody */
table#tableProducts tbody tr {
    content-visibility: auto;
    contain-intrinsic-size: 1.5rem;
}

table#tableProducts td {
    padding: 5px 0 !important;
    box-shadow: none;
    background-image: none;
    color: #333 !important;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    text-wrap: pretty;
}

#tableProducts tr:hover > .stockt a {
    text-decoration: none !important
}

#tableProducts tr.even > td {
    background: #fff !important;
}

#tableProducts tr.odd > td {
    background: #f5f5f5 !important;
}

#tableProducts tr:hover > td {
    background: #eee !important;
    color: #000 !important;
}

.stockt a.new,
.stockt a.clearance {
    color: #fff !important;
}


/*** Horizontal Facets ***/
#FacetNavigation.tableFacets {
    scrollbar-width: thick;
    max-width: 1670px;
    width: 95%;
    margin: 0 auto;
    background: #f5f5f5;
    padding: 1rem;
}

.tableFacets .facet-grid {
    gap: 1rem;
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 1340px !important;
    flex-direction: row;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
}

.tableFacets .facet-header {
    padding: 0px !important;
    margin: 0 auto !important;
}

.tableFacets .left-nav-header {
    padding: .5rem 1rem !important;
    margin: 0 !important;
    background: #0000;
    border: none !important
}

.tableFacets div.specification-type {
    border: 1px solid #ddd !important;
    border-radius: 3px;
    height: auto !important;
    margin-bottom: auto !important;
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    background: #fff;
    min-width: fit-content;
    width: auto;
    max-width: 380px;
}

.specification-data-values {
    font-size: 13px;
    padding: 1rem !important;
    padding-left: 2rem !important;
}


/*** dropdown facets ***/
.tableFacets .specification-type:not(.wrapped-facet):not(:has(.facet-range-form)) .specification-data-values {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    display: none;
    transition: opacity 160ms ease, transform 200ms cubic-bezier(.2, .8, .2, 1);
}

.tableFacets .specification-type.open:not(.wrapped-facet):not(:has(.facet-range-form)) .specification-data-values {
    opacity: 1;
    display: block;
    position: absolute;
    top: 50px;
    left: -1px;
    margin-left: 0;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    background: #fff;
    z-index: 5;
    width: 250px;
    padding-left: 2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    scrollbar-width: thick;
    max-height: 300px;
    overflow: auto;
    box-shadow: 10px 10px 20px #a3a3a32e;
}

.tableFacets div.specification-type.open {
    border: 1px solid #007bff !important;
}

.specification-type .specification-data-values:has(.facet-row) .left-nav-header {
    pointer-events: auto
}


/*** wrapped facet ***/
.tableFacets div.specification-type.wrapped-facet {
    background: #0000 !important;
    border: none !important;
    flex: 0 0 100% !important;
    flex-wrap: wrap;
}

.tableFacets .wrapped-facet .left-nav-header.specification-facet-header {
    display: block !important;
    width: 100%;
}

.wrapped-facet .row.facet-row {
    margin-right: 30px;
}

.wrapped-facet .left-nav-header,
.tableFacets .specification-type:has(form.facet-range-form) .left-nav-header {
    pointer-events: none;
}

.specification-type.wrapped-facet .specification-data-values {
    display: block !important;
    opacity: 1 !important;
    margin-top: -7px;
    margin-left: 15px;
    padding-bottom: 0 !important;
}

    .specification-type.wrapped-facet .specification-data-values .row.facet-row {
        display: inline-flex;
    }

.tableFacets .specification-type:has(form.facet-range-form) {
    min-width: 250px;
    width: 33%;
    max-width: 279px;
    flex-direction: column;
    order: 2;
}

button#btnExportSpecs {
    position: relative;
    font-size: 10px !important;
}

@media screen and (max-width: 991px) {
    #tableProducts_wrapper {
        max-height: 80vh !important;
    }
}


/*** XL scrollbar ***/
div#tableProducts_wrapper::-webkit-scrollbar,
.facet-wrapper::-webkit-scrollbar,
.tableFacets .specification-type.open .specification-data-values::-webkit-scrollbar {
    width: 1rem;
    height: 1rem;
    background: #f5f5f5;
    color: #333;
}

div#tableProducts_wrapper::-webkit-scrollbar-thumb,
.facet-wrapper::-webkit-scrollbar-thumb,
.tableFacets .specification-type.open .specification-data-values::-webkit-scrollbar-thumb {
    border-radius: 8px;
}

div#tableProducts_wrapper::-webkit-scrollbar-track,
.facet-wrapper::-webkit-scrollbar-track,
.tableFacets .specification-type.open .specification-data-values::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 0px;
}

/*** PRODUCT GRID ***/

.selected-facets-grid {
    margin: 15px 0 !important;
}

button.btn.btn-link {
    margin-bottom: 15px !important;
}

.filter-title-grid {
    font-size: 16px !important;
}

.btn-cart-outline {
    padding: 1px 7px !important;
}

button.SelectedFacet.btn-cart-outline {
    padding: 5px 10px 5px 10px !important;
    color: #FFF !important;
    font-weight: normal !important;
    text-transform: none !important;
    margin-bottom: 10px !important;
}

.specification-data-values {
    opacity: 1 !important;
}

.facet-header {
    /* color: #333333 !important; */
    /* font-size: 14px !important; */
    text-wrap-mode: nowrap;
}

table#tableProducts thead th:lang(ja-JP),
table#tableProducts thead th:lang(zh-Hant-TW),
table#tableProducts thead th:lang(zh),
table#tableProducts thead th:lang(ko-KR) {
    font-weight: 500;
}

@media (max-width: 991px) {
    .tableFacets .facet-header {
        width: 100%;
        font-size: 12px !important;
    }

    .tableFacets .specification-type:has(form.facet-range-form) {
        min-width: 245px !important;
        max-width: 350px;
    }

        .tableFacets .specification-type:has(form.facet-range-form) .specification-data-values {
            display: block !important;
        }
}

@media (max-width: 500px) {
    .left-nav-header.specification-facet-header {
        text-align: center;
    }

    .tableFacets .specification-type:has(form.facet-range-form) {
        flex: 0 0 100% !important;
    }
}

@media (min-width: 1260px) {
    .tableFacets .specification-type:has(form.facet-range-form) {
        flex: 0 0 auto;
    }
}
