/* Search Page */
.products-search-page {
    align-items: flex-start;
    row-gap: 20px;
    padding-top: 20px;
}

.search-image {
    display: flex;
    align-items: center;
    justify-content: center;

}

.search-category-title {
    color: #17264C;
    font-size: 2rem;
    line-height: 38px;
    text-align: center;
    font-weight: 500;
}

.products-region-select {
    background: #D3E3F4;
    border: 1px solid #B8D1EB;
    padding: 20px 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 20px;
}

.products-region-select select {
    margin-left: auto;
    background: #FFFFFF;
    border: 1px solid #B8D1EB;
    width: 570px;
    height: 50px;
    padding: 0 10px;
}

.products-search-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    justify-content: flex-start;
}

.products-search-heading {
    color: #17264C;
    font-size: 1.5rem;
}

.products-search-count {
    color: #707171;
}

.products-sort {
    margin-left: auto;
    color: #17264C;
}

.products-sort select {
    border: 1px solid #B8D1EB;
    background: #F9F9F9;
    border-radius: 25px;
    width: 366px;
    height: 50px;
    padding:0 10px;
    margin-left: 10px;
}

/* Product Filters */
.product-filters {
    background: #fff;
    padding-bottom: 20px;
}

.product-filter {
    border-bottom: 1px solid #E9E7E7;
    padding: 0 10px;
}

.filter-heading {
    font-size: 1.063rem;
    color: #000;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 60px;
    cursor: pointer;
}

.filter-heading:after {
    content: "";
    width: 10px;
    height: 16px;
    background: url(../../../images/arrow-down-black.svg) center center no-repeat;
    background-size: contain;
    margin-left: auto;
    transition: 0.3s ease-out;
}

.filter-heading.active:after {
    rotate: 180deg;
}

.product-filter ul {
    display: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.product-filter ul li {
    list-style: none;
    margin: 0;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-filter ul li label {
    font-size: 0.938rem;
    margin: 0;
    cursor: pointer;
}

.product-categories-show > ul {
    display: block;
}

.product-categories ul > li {
    flex-direction: column;
    align-items: flex-start;
}

.product-categories ul > li > a {
    display: flex;
    align-items: center;
    color: #222529;
}

.product-categories ul > li > a > span {
    margin-left: auto;
    cursor: pointer;
    width: 10px;
    height: 16px;
    background: url(../../../images/arrow-down-black.svg) center center no-repeat;
    margin-left: 15px;
}

.product-categories ul > li > a > span.open {
    rotate: 180deg;
}


.product-categories > ul > li ul {
    display: none;
    padding: 0 0 0 20px;
    margin-bottom: 0;
}

.product-apply-filters {
    display: block;
    width: calc(100% - 20px);
    line-height: 60px;
    text-align: center;
    border-radius: 30px;
    background: var(--primary-colour);
    color: #000;
    font-size: 1.063rem;
    font-weight: 500;
    margin: 20px 10px;
    outline: none;
    border: 0;
    padding: 0;
}

.product-clear-filters {
    margin: 0 10px;
}

/* Applied Filters */
.search-applied-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.search-applied-filters a {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #E9E7E7;
    border-radius: 5px;
    padding:0 10px;
    height: 44px;
    font-size: 0.875;
    color: #201F1F;
}

/* Search Results */
.product-list {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.product-list .product-block {
    flex: 0 0 calc((100% - 40px)/3);
}

/* Products Pagination */
.products-pagination {
    background: #fff;
    border: 1px solid #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 95px;
    padding: 0 20px;
    position: relative;
    margin-bottom: 20px;
}

.products-pagination:empty {
    display: none;
}

.products-pagination .page-numbers {
    color: #222529;
    text-decoration: underline;
}

.products-pagination .page-numbers.dots,
.products-pagination .page-numbers.current {
    text-decoration: none;
}

.products-pagination .page-numbers.prev,
.products-pagination .page-numbers.next {
    position: absolute;
    top: calc(50% - 24px);
    width: 48px;
    height: 48px;
    background: url(../../../images/arrow-black-right.svg) center center no-repeat var(--primary-colour);
    border-radius: 50%;
}

.products-pagination .page-numbers.next {
    right: 20px;
}

.products-pagination .page-numbers.prev {
    rotate: 180deg;
    left: 20px;
}

/* Product Details Page */
.product-details-page {
    padding: 20px 0;
    align-items: flex-start;
    row-gap: 20px;
}

.product-details-page>div {}

.product-details {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin-bottom: 40px;
}

.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-breadcrumbs > a {
    color: #60768D;
}

.product-breadcrumbs > a:not(:last-child):after {
    content:" >";
}

.product-breadcrumbs > a:last-child {
    color: #002556;
    font-weight: bold;
}

.product-category-tags {
    display: flex;
    gap: 15px;
}

.product-category-tag {
    border: 1px solid #E9E7E7;
    background: #fff;
    color: #201F1F;
    font-size: 0.875rem;
    line-height: 20px;
    padding: 5px 22px;
    display: flex;
    align-items: center;
}

.product-title {
    font-size: 2.063rem;
    line-height: 41px;
    font-weight: 500;
    font-family: var(--primary-font);
}

.product-code {
    color: #17264C;
    font-size: 1.25rem;
    line-height: 24px;
}

.product-short-description {
    color: #17264C;
    font-size: 16px;
    line-height: 26px;
}

.product-brand {
    max-height: 100px;
}

.product-brand img {
    max-height: 100%;
    max-width: 180px;
}

.product-imagery {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.product-thumbs {
    flex: 0 0 113px;
    max-height: 300px;
    align-self: stretch;
}

.product-images {
    flex: 1 auto;
}

.product-thumbs-gal-inner {
    max-height: 100%;
}

.product-thumb {
    aspect-ratio: 1/1;
    height: auto;
}

.product-thumb.swiper-slide-thumb-active {
    border: #469CDE 1px solid;
}

.product-thumb img {
    width: 100%;
    aspect-ratio: 1/1;
}

.product-images {
    position: relative;
}

.pi-gal-nav {
    position: absolute;
    top: calc(50% - 30px);
    display: flex;
    width: 60px;
    height: 60px;
    background: url(../../../images/arrow-black-right.svg) center center no-repeat #fff;
    z-index: 1;
    border-radius: 50%;
}

.pi-gal-prev {
    left: 10px;
    rotate: 180deg;
}

.pi-gal-next {
    right: 10px;
}

.product-accordion {
    border: 1px solid #D8D8D8;
    background: #fff;
    border-radius: 5px;
}

.product-heading-title{
    font-size: 1.3rem;
    font-family: var(--secondary-font);
    font-weight: 500;
}

.product-reference-container p{
    font-size: 16px;
    line-height: 26px;
}

.product-accordion-title {
    border-bottom: 1px solid #D8D8D8;
    border-radius: 5px;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.125rem;
    font-family: var(--secondary-font);
    font-weight: 500;
}

.product-accordion-title:after {
    content: "";
    width: 18px;
    height: 17px;
    background: url(../../../images/arrow-down-black.svg) no-repeat;
    background-size: 100% auto;
    background-position: center center;
    transition: 0.3s ease-out all;
}

.product-accordion-open:after  {
    rotate: 180deg;
}

.product-accordion-content {
    padding: 30px 20px;
}

.product-accordion-content p {    
    font-size: 16px;
    line-height: 26px;
}

.product-documents {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-document {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #D5D2D2;
    border-radius: 5px;
    padding: 14px 10px;
}

.product-document>img {
    flex: 0 0 auto;
    margin: 0 10px;
}

.product-document .document-title {
    flex: 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
    color: #212936;
}

.product-document .document-size {
    color: #818691;
}

.product-document-link {
    height: 50px;
    padding: 0 40px;
    background: var(--primary-colour);
    color: #002556;
    border-radius: 5px;
    flex-shrink: 0;
}

.product-document-link::after {
    display: none;
}

.product-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-video {
    max-width: calc((100% - 60px) / 4);
    flex-basis: calc((100% - 60px) / 4);
    flex-shrink: 1;
    flex-grow: 1;
    width: 100%;
    aspect-ratio: 16/9;
}

/*-- Associations --*/
.related-products-pretitle {
    font-size: 1.25rem;
    color: #4A4A4A;
    ;justify-self: 24px;
}

.associations-gal-wrap {
    position: relative;
}

.associations-gal {
    width: 100%;
    padding: 10px 0 20px 0;
}

.ag-gal-nav {
    display: flex;
    align-items: center;
    background: var(--tertiary-colour);
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 30px);
    cursor: pointer;
    transition: ease-in-out all .3s;
    z-index: 1;
}

.ag-gal-nav-disabled {
    opacity: .6;
}

.ag-gal-nav::after {
    content: "";
    display: block;
    width: 13px;
    height: 22px;
    background: url(../../../images/arrow-white-right.svg) no-repeat center;
}

.ag-gal-prev {
    left: -50px;
}

.ag-gal-prev::after {
    transform: rotate(180deg);
}

.ag-gal-next {
    right: -50px;
}

.ag-gal-nav.swiper-button-lock {
    display: none;
}

.ag-gal-pagination {
    gap: 10px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.ag-gal-pagination span {
    height: 15px;
    width: 15px;
    opacity: 1;
    background: #BFBFBF;
    transition: all ease-out 0.3s;
}

.ag-gal-pagination span.active {
    background: #006D9C;
    scale: 1.2 1.2;
}


/* Product Block */
.product-block {
    width: calc((100% - 60px) / 4);
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-block__thumb {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-block__thumb img {
    width: auto;
    max-width: none !important;
    height: 100% !important;
}

.product-block__code {
    font-size: 0.813rem;
    color: #676767;
    height: 18px;
    overflow: hidden;
}

.product-block__title {
    font-family: var(--primary-font);
    font-size: 1.125rem;
    line-height: 27px;
    height: 76px;
    overflow: hidden;
    color: #222529;
}

.product-block__link {
    width: 100%;
}

.product-block__link::after {
    display: none;
}



/* ------------------------------------------------- */
/* --------------TABLET & MOBILE ------------------- */
/* ------------------------------------------------- */

@media (max-width:991px) {

    /* Search Page */
    .products-search-page {
        position: relative;
    }

    .products-search-header {
        display: flex;
        gap: 10px;
        padding: 0;
        background: none;
    }
    
    .products-search-header > div {
        flex:1 0 calc((100% - 10px) / 2);
    }

    .filterToggle {
        border: 1px solid #EDF3FB;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 50px;
        gap: 10px;
        color: #002556 !important;
        font-size: 1rem;
        border-radius: 5px;
    }

    .products-sort {
        display: flex;
        gap: 10px;
        white-space: nowrap;
        align-items: center;
    }

    .products-sort select {
        width: 100%;
        background: #fff;
    }

    
    /* Search Results */
    .product-list .product-block {
        flex: 0 0 calc((100% - 20px)/2);
    }

    /* Filters */
    .search-filter-conatiner {
        position: absolute;
        top: 0;
        padding:0;
        display: none;
        z-index: 1000;
    }

    .product-filters {
        width: 280px;
    }

    .product-filters-heading {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 50px;
        padding: 0 10px;
        font-size: 1rem;
        font-weight: 500;
        color: #002556 !important;
        border-bottom: 1px solid #E9E7E7;
    }

    .filter-heading-close {
        margin-left: auto;
    }

    .filter-heading {
        height: 50px;
    }
}


/* --------------------------------------- */
/* --------------TABLET------------------- */
/* --------------------------------------- */

@media (min-width:768px) and (max-width:991px) {
        
    .product-video {
        max-width: calc((100% - 40px) / 2);
        flex-basis: calc((100% - 40px) / 2);
    }

}


/* --------------------------------------- */
/* --------------MOBILE------------------- */
/* --------------------------------------- */

@media (max-width:767px) {

    /* Product Details */
    .product-imagery {
        flex-direction: column;   
        align-items: flex-start;
    }

    .product-images,
    .product-thumbs {
        max-width: 100%;
    }

    .product-thumbs {
        order: 2;
        flex-basis: auto;
    }
    
    .product-thumbs .swiper-wrapper{
        height: auto;
    }

    .pi-gal-nav {
        width: 30px;
        height: 30px;
        background-size: 5px;
        top: calc(50% - 15px)
    }

    .product-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .product-details {
        row-gap: 10px;
    }

    .product-document {
        flex-wrap: wrap;
    }

    .product-document .document-title {
        flex:0 0 85%;
    }

    .product-document-link {
        width: 100%;
    }

    .product-video {
        max-width: 100%;
        flex-basis: 100%;
    }
}