/************
Machinery Product Archive
************/

.sub-categories {
    border-left: 15px solid rgb(var(--sps-yellow));
    padding: 0.2rem 0rem 1.5rem 1.5rem;
}

.sub-categories h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.sub-categories hr {
    background-color: rgb(var(--sps-gray-300));
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.sub-cat-swiper {
    overflow: hidden;
    padding-bottom: 1.5rem;
    position: relative;
}

.sub-cat-swiper .button-nav {
    position: absolute;
    background-color: rgb(var(--sps-white));
    z-index: 25;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 19px;
    cursor: pointer;
    box-shadow: 0px 0px 30px 6px rgb(var(--sps-black));
}

.sub-cat-swiper .button-prev {
    left: 5px;
    transform: rotateZ(90deg);
}

.sub-cat-swiper .button-next {
    right: 5px;
    transform: rotateZ(-90deg);
}

.sub-cat-item {
    display: flex;
    background-color: rgba(var(--sps-gray-100), 0.09);
    align-items: center;
    max-width: 340px;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: inset 0px -8px 0px -4px rgba(var(--sps-yellow), 0);
    min-height: 68px;
}

.sub-cat-item img {
    width: 100%;
    max-width: 68px;
    height: 100%;
    object-fit: cover;
}

.sub-cat-item p {
    color: rgb(var(--sps-white));
    font-size: var(--med-body);
    padding: 0.7rem 1.2rem 0.8rem 1.2rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.sub-cat-item:hover {
    box-shadow: inset 0px -8px 0px -4px rgba(var(--sps-yellow), 1);
}

@media screen and (max-width:767px) {
    .sub-cat-item {
        box-shadow: inset 0px -8px 0px -4px rgba(var(--sps-yellow), 1);
    }
}

#product-list>.content-container>.row-container {
    align-items: flex-start;
}

#product-listings .product-card {
    transition: opacity 0.3s ease-in-out;
}

#product-list .col-9.loading .product-card {
    opacity: 0.3;
}

#career-listings:after,
#product-listings.grid-view:after {
    content: '';
    width: calc(((100% / 12) * 4) - 1rem);
}

.product-card-action-btns .btn.brochure-download{
    flex-grow: 1;
    min-width: 100%;
    max-width: 100%;
}

.product-card-action-btns .btn.brochure-download svg{
    min-width: 14px;
    min-height: 14px;
    transform: rotate(90deg);
}

@media screen and (min-width:650px) {
    #product-listings.list-view {
        flex-direction: column;
    }
    #product-listings.list-view .product-img {
        max-height: 100%;
        width: 100%;
        max-width: 125px;
    }
    #product-listings.list-view .product-card {
        width: 100%;
        flex-direction: row;
    }
    #product-listings.list-view .product-card .product-information {
        flex-basis: 70%;
    }
    #product-listings.list-view .product-card .product-information .product-card-info {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    #product-listings.list-view .product-card .product-card-action-btns {
        border: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-basis: 30%;
        padding-right: 1rem;
    }
    #product-listings.list-view .product-card .product-card-action-btns button {
        max-width: 100%;
        width: 100%;
    }
    #product-listings.list-view .product-card .info-item {
        margin: 0.9rem 0.7rem 0 0;
    }
}

.product-card {
    background-color: rgba(var(--sps-gray-100), 0.5);
    margin-bottom: 1.5rem;
}

.product-card-action-btns,
.product-name {
    padding: 1rem 0.9rem;
}

.product-card-action-btns .btn svg {
    margin-left: 0.7rem;
}

.product-img {
    max-height: 130px;
    object-fit: cover;
    object-position: center;
}

.product-name {
    font-size: var(--small-title);
    font-weight: 600;
    padding-bottom: 0.7rem;
}

.product-card-action-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    margin: auto 0.75rem 0;
    padding: 1rem 0rem;
    border-top: 1px solid rgb(var(--sps-yellow));
}

.product-card-action-btns .btn {
    font-size: var(--reg-body);
    flex-grow: 1;
    max-width: unset;
}

.product-card-info {
    margin: 0 0.9rem 0.9rem;
    border-top: 1px solid rgb(var(--sps-yellow));
}

.product-card .info-item {
    flex-grow: 1;
    margin: 0.9rem 0.2rem 0.70rem;
    min-width: 100px;
}

.product-card .info-item h6,
.meta-info h6 {
    font-size: var(--sml-body);
    font-style: italic;
    font-weight: 400;
    color: rgb(var(--sps-gray-900));
    letter-spacing: 0.01em;
    line-height: 100%;
}

.product-card .info-item span,
.meta-info span,
.meta-info a {
    font-size: var(--reg-body);
    font-weight: 600;
    color: rgba(var(--sps-gray-900), 0.975);
    letter-spacing: -0.02em;
}

.meta-info a {
    text-decoration: underline;
    margin-right: 0.75em;
    text-decoration-color: rgb(var(--sps-gray-300));
}

.filter {
    margin-bottom: 2.5rem;
}

.filter h3 {
    font-size: var(--normal-title);
    font-weight: 700;
    margin-bottom: 0.65em;
}

.filter a {
    width: 100%;
    max-width: 100%;
    display: block;
    font-size: var(--med-body);
    line-height: 125%;
    margin-bottom: 0.75rem;
    margin-left: 0.2rem;
}

.filter .brand-filter-field {
    margin-bottom: 0.85rem;
    margin-left: 0.2rem;
    display: flex;
    align-items: center;
}

.filter label {
    font-size: var(--med-body);
    font-weight: 600;
    margin-left: 0.65rem;
}

.filter input {
    width: 22px;
    height: 22px;
}

.sort-fields {
    margin: 2rem 0;
}

.btn-group {
    display: flex;
    justify-content: flex-end;
}

.sort-fields .btn,
#product-listings .btn,
.filter-container .btn,
#clear-search,
#clear-search-button {
    padding: 0.7rem 0.7rem;
    margin: 0;
}

#clear-search,
#clear-search-button {
    margin-top: 1.25rem;
}

.filter-container .btn {
    margin-bottom: 0.7rem;
}

.view-btn {
    font-size: var(--reg-body);
    margin: 0;
    background: rgb(var(--sps-gray-100));
    color: rgb(var(--sps-gray-900));
    font-weight: 500;
}

.view-btn.selected {
    background: linear-gradient(196.2deg, #333333 -24.73%, #000000 136.62%);
    font-weight: 400;
    color: rgb(var(--sps-white));
}

@media screen and (min-width:768px) {
    .sort-fields #openFilters {
        display: none;
    }
    .filter-list-header {
        display: none;
    }
}

@media screen and (max-width:767px) {
    .sort-fields .btn-group {
        display: none;
    }
    .sort-fields .nice-select {
        height: 46px;
        line-height: 45px;
        font-size: var(--lrg-body);
        font-weight: 500;
        font-style: normal;
    }
    .sort-fields .nice-select,
    .sort-fields #openFilters {
        max-width: 100%;
        width: 100%;
    }
    .sort-fields #openFilters {
        margin-top: 1rem;
    }
    .filter-container {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 2;
        opacity: 0;
        transition: opacity 300ms ease-in-out;
    }
    .filter-overlay.filter-container {
        pointer-events: all;
        z-index: 100;
        opacity: 1;
    }
    .filter-bg-overlay {
        pointer-events: none;
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        background-color: rgba(var(--sps-black), 0.5);
        opacity: 0;
        transition: opacity 100ms ease-in-out;
    }
    .filter-sidebar {
        width: 85vw;
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        background-color: rgb(var(--sps-white));
        transform: translateX(-100%);
        transition: transform 500ms ease-in-out;
        z-index: 2;
    }
    .filter-list-header {
        background-color: rgba(var(--sps-black));
        padding: 1rem;
        border-left: 10px solid rgb(var(--sps-yellow));
        margin-bottom: 2rem;
        display: flex;
        justify-content: space-between;
    }
    .filter-list-header h4 {
        font-weight: 600;
        color: rgb(var(--sps-white));
    }
    .filter-list-header button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .filter-content {
        height: calc(100% - 70px);
        overflow: auto;
    }
    .filter-overlay .filter-sidebar {
        transform: translateX(0%);
        opacity: 1;
        z-index: 100;
    }
    .filter-overlay .filter-bg-overlay {
        pointer-events: all;
        transition: opacity 300ms ease-in-out;
    }
    .filter-overlay .filter-bg-overlay {
        pointer-events: all;
        transition: opacity 300ms ease-in-out;
        opacity: 1;
        z-index: 1;
    }
    .filter-sidebar .filter {
        width: 90%;
        margin: 0 auto;
        margin-bottom: 3rem;
    }
    .filter a,
    .filter .brand-filter-field {
        margin-left: 0;
    }
}