/************************************ PAGE CONTENT *******************************/

.page-content {
    margin: 16px auto 0 auto;
    max-width: 1584px;
    width: 100%;
}






/***************************** PRODUCT DETAIL PAGE *****************************/

.product-detail {
    padding: 0 16px;
}

.product-main-info-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: -16px;
    margin-right: -16px;
}




/********************************* IMAGES ********************************/

.product-images-container {
    width: 50%;
    padding: 0 16px;
    position: relative;
    margin-bottom: 64px;
}
.product-detail-images {
    position: relative;
}
.product-detail-image-overlay {
    position: absolute;
    z-index: 2;
    background: rgba(238, 238, 238, 0.72);
    width: 100%;
    padding: 30px;
    font-size: 1.5em;
    font-weight: bold;
}
/* new */
@media screen and (min-width: 768px) {
    .product-images-container {
        position: sticky;
        top: 32px;
    }
}




/****** PRODUCT IMAGE = RESPONSIVE SQUARE ********/

.product-detail-image {
    height: auto;
    width: 100%;
    border: 1px solid #C7D2D9;
    position: relative;
}

.product-detail-media-container {
    border: 1px solid #C7D2D9;
}

.product-detail-image:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    pointer-events: none;
}

.videowrapper {
    height: 100%;
    width: 100%;
    position: absolute;
}

/******************** GALLERY **********************/

.product-images-gallery {
    background: #F6F9FC;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
}

.product-images-gallery-image {
    height: 86px;
    width: 86px;
    flex: 0 0 auto;
    border: 1px solid #C7D2D9;
    background-color: #fff;
    margin: 12px;
    white-space: nowrap;
    font-size: 0;
    position: relative;
    cursor: pointer;
    text-align: center;
}

.product-images-gallery-image.current-image {
    border: 2px solid #003247;
}

.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.product-images-gallery img {
    display: inline;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    vertical-align: middle;
}

.video-thumb-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 50px;
    width: 50px;
    margin-left: -25px;
    margin-top: -25px;
    z-index: 100;
    -webkit-animation: spin 1s infinite linear;
    -moz-animation: spin 1s infinite linear;
    -o-animation: spin 1s infinite linear;
    animation: spin 1s infinite linear;
    border: 4px solid #d8e2e8;
    border-left: 4px solid #0a92cd;
    border-radius: 50%;
}


/********************************* MAIN INFO *******************************/

.product-main-info {
    flex: 1;
    padding: 0 16px;
    margin-bottom: 64px;
}

form.product-instance-form {
    max-width: 600px;
    margin-bottom: 16px;
}

/****************** ARTICLE NUMBER ****************/
.product-articlenumber-container {
    margin-bottom: 32px;
}

.product-articlenumber-container>div:not(:last-child) {
    margin-bottom: 8px;
}

.product-articlenumber-container>div span:first-child {
    font-weight: 600;
}

.product-articlenumber-container>div a {
    font-weight: 600;
}


/******************* INSTANCE SELECTION *****************/
.instance-selection {
    margin-bottom: 32px;
    background: #f6f9fc;
    padding: 16px;
    border-top: 4px solid #0092d2;
}

.instance-selection .form-row {
    display: flex;
    flex-direction: column;
    margin: 0 0 16px 0;
}

.instance-selection .form-row>label {
    flex: 100%;
    margin: 0 0 2px 0;
    font-size: 14px;
    color: #003247;
    letter-spacing: -0.1px;
    line-height: 18px;
    font-weight: 400;
}

.instance-selection .form-row>select {
    flex: 100%;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    background: #fff url(/assets/icons/icon-arrowdown-darkgrey-12.svg) right 8px center no-repeat;
    border: 1px solid #C7D2D9;
    border-radius: 4px;
    padding: 0 8px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    cursor: pointer;
}

.instance-selection .form-row>select:hover {
    border-color: #9AABB3;
}

.instance-selection .form-row>select:focus-visible {
    border-color: #0092D2;
}



/******************* PRICE + ADD TO CART CONTAINER *****************/

.product-price-container>div:not(:last-child) {
    margin-bottom: 16px;
}

/*************** STOCK ***************/
.product-stock {
    font-size: 0;
    color: #0EAE0E;
    letter-spacing: -0.45px;
    font-weight: 600;
}

.product-stock.out-of-stock {
    color: #FF6400;
}

.product-stock>img {
    margin-right: 8px;
    vertical-align: middle;
}

.product-stock>span {
    font-size: 16px;
    vertical-align: middle;
}
.product-stock > span.product-external-stock-delivery-time {
    color: #2b333f;
    font-size: 12px;
    font-weight: normal;
    font-style: italic;
}


#product-unavailable-goto-alternatives {
    display: none;
}

/*************** PRICE ***************/
.product-price, .bpr {
    font-size: 22px;
    color: #74838A;
    letter-spacing: -0.92px;
    font-weight: 400;
}

.product-price-currency,
.product-price-amount {
    font-size: 40px;
    color: #003247;
    letter-spacing: -1px;
    line-height: 46px;
    font-weight: 700;
}

/************* ADD TO CART CONTAINER **************/
.add-to-cart-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/************** quantity **************/
.quantity-wrapper {
    display: flex;
    margin-right: 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    background-color: #F6F9FC;
    border: 1px solid #C7D2D9;
    overflow: hidden;
}

.quantity-button {
    width: 55px;
    height: 54px;
    padding: 0;
    background-color: transparent;
    border: none;
    background-repeat: no-repeat;
    background-position: center center;
}

.quantity-button.decrease {
    background-image: url(/assets/icons/icon-minus-darkgrey-16.svg);
}

.quantity-button.increase {
    background-image: url(/assets/icons/icon-plus-darkgrey-16.svg);
}

.quantity-button:disabled {
    opacity: 0.4;
}

.quantity-button:not(:disabled):hover {
    background-color: #D8E3EB;
}

.quantity-wrapper input[inputmode="numeric"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    background-color: #fff;
    border: none;
    height: 54px;
    width: 56px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    text-align: center;
    outline: none;
    flex: 1 0 auto;
}

/*** hide default browser up/down arrows for number input ***/
.quantity-wrapper input::-webkit-outer-spin-button,
.quantity-wrapper input::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}


/*************** buttons add to cart, favorites ***************/
.primary-button.add-to-cart-button {
    /* general rules primary */
    background-image: linear-gradient(180deg, #009DE0 0%, #0081C7 100%);
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    /* specific rules this button */
    text-align: center;
    min-width: 216px;
    height: 56px;
    padding: 0;
    letter-spacing: -0.45px;
    flex: 1;
    margin-right: 16px;
    margin-bottom: 16px;
    /*remove whitespace*/
    font-size: 0;
}

.primary-button.add-to-cart-button:hover {
    background: #003247;
}

.primary-button.add-to-cart-button img {
    vertical-align: middle;
    margin-right: 12px;
}

.primary-button.add-to-cart-button span.cart-label {
    font-size: 16px;
    vertical-align: middle;
}

.secondary-button.favorites-button {
    background: #fff;
    border: 0;
    box-shadow: inset 0 0 0 1px #c7d2d9;
    border-radius: 4px;
    color: #003247;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    width: 56px;
    height: 56px;
    padding: 0;
    margin-bottom: 16px;
}

.secondary-button.favorites-button:hover {
    box-shadow: inset 0 0 0 1px #003247;
}

.secondary-button.favorites-button img {
    vertical-align: middle;
}

/* STICKY NAV */
#product-sticky-nav {
    background: #fff;
    border-top: 3px solid #0092d2;
    box-shadow: 0 8px 20px 0 rgba(22, 60, 92, .1);
    height: 62px;
    overflow: hidden;
    margin-bottom: 32px;
    position: sticky;
    top: -1px;
    z-index: 900;
}

.product-sticky-nav-list {
    list-style: none;
    display: flex;
    padding: 0 16px;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
}

.product-sticky-nav-list-item:not(:last-child) {
    margin-right: 40px;
}

.product-sticky-nav-list-item a {
    padding: 16px 0;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    display: block;
}

.product-sticky-nav-list-item a.active {
    border-color: #003247;
}

.scroll-to-section {
    scroll-margin-top: 64px;
}

/* FULL DESCRIPTION */
#product-detail-full-description {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: -16px;
    margin-right: -16px;
}

#product-detail-full-description>div {
    flex: 1;
    padding: 0 16px;
    margin-bottom: 64px;
}

.product-full-description-column {
    min-width: 70%;
}



/*************** SUBHEADINGS ***************/
h3.product-detail-subheading {
    padding: 16px 0;
    margin: 0;
    border-bottom: 2px solid #0092D2;
}

.product-description-container h3.product-detail-subheading,
.product-packagecontents h3.product-detail-subheading,
.product-downloads-column h3.product-detail-subheading,
.product-full-description-column h3.product-detail-subheading {
    margin-bottom: 16px;
}

.product-description-container h3.product-detail-subheading:not(:first-child) {
    margin-top: 16px;
}

.product-description-container ul,
.product-specifications-container ul {
    list-style-position: inside;
}

.product-detail-standards-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.product-detail-standard {
    margin: 8px;
    font-size: 16px;
    letter-spacing: -.45px;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    border: 2px solid #0092d2;
    min-width: 108px;
}

.product-detail-standard-icon {
    background-color: #fff;
    width: 72px;
    height: auto;
}





/*************** SPECIFICATIONS ***************/
.product-specifications-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: -16px;
    margin-right: -16px;
}

.product-specifications-container>div {
    flex: 1;
    /* if there are several cols, show them in pairs of 2, so min-width 50% */
    min-width: 50%;
    padding: 0 16px;
    margin-bottom: 64px;
}

.product-detail-applications {
    margin-bottom: 32px
}

.product-packagecontents {
    margin-bottom: 32px;
}

h4.product-specification-subheading {
    padding: 18px 0;
    border-bottom: 1px solid #C7D2D9;
}

.product-specification-row {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #C7D2D9;
}

.product-detail-specification {
    width: 50%;
    padding: 16px 12px;
}

.product-detail-specification-value {
    width: 50%;
    padding: 16px 12px;
    background: #F6F9FC;
}

.product-download-pdf {
    margin-bottom: 16px;
}

.product-download-pdf img {
    margin-right: 8px;
    vertical-align: middle;
}

.product-download-pdf span.product-pdf-filesize {
    margin-left: 8px;
    color: #74838A;
}




.tooltip {
    position: relative;
    cursor: help;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 10px !important;
    text-align: center
}

.tooltip:before {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 100%;
    margin-left: 15px;
    width: 200px;
    padding: 10px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    text-align: center;
    display: none
}

.tooltip:hover:before {
    display: block
}

.tooltip.left:before {
    left: initial;
    margin: initial;
    right: 100%;
    margin-right: 15px
}



/**************************** VARIANTS TABLE *************************/
.product-detail-variants-table {
    margin-bottom: 64px;
}

.table.sortable {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

/* table heading */
.table.sortable thead tr {
    border-bottom: 1px solid #C7D2D9;
}

.table.sortable thead tr:first-child {
    background: #F6F9FC;
    border-bottom: 2px solid #0092D2;
}

.table.sortable th {
    vertical-align: middle;
    padding: 16px;
    border: none;
    letter-spacing: -0.1px;
    line-height: 18px;
}

.table.sortable thead tr:first-child th {
    padding: 20px 16px;
    font-weight: 600;
    white-space: nowrap;
}

.table.sortable th:not(.sorttable_nosort) {
    cursor: pointer;
}

/* last column with add-to-cart button */
.table.sortable th.cart-button {
    width: 96px;
}


/* sorting arrows */
.table.sortable th:not(.sorttable_nosort):after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(/assets/icons/icon-sort-grey-12.svg) center center no-repeat;
    vertical-align: middle;
}

.table.sortable th.sorttable_sorted:after {
    background-image: url(/assets/icons/icon-sort-asc-12.svg);
}

.table.sortable th.sorttable_sorted_reverse:after {
    background-image: url(/assets/icons/icon-sort-desc-12.svg);
}

/* filter */

/* labels for select are hidden on desktop */
.show-mobile {
    display: none;
}

.table.sortable select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    background: #fff url(/assets/icons/icon-arrowdown-darkgrey-12.svg) right 8px center no-repeat;
    border: 1px solid #C7D2D9;
    border-radius: 4px;
    padding: 0 8px;
    height: 40px;
    line-height: 40px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
}

.table.sortable select:hover {
    border-color: #9AABB3;
}

.table.sortable select:focus-visible {
    border-color: #0092D2;
}

.table.sortable input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #FFFFFF;
    border: 1px solid #C7D2D9;
    border-radius: 2px;
    width: 16px;
    height: 16px;
    margin: 0 6px 0 0;
    vertical-align: middle;
    cursor: pointer;
}

.table.sortable input[type="checkbox"]:checked {
    background: #0092D2 url(/assets/icons/icon-check-white-12.svg) center center no-repeat;
    border: 1px solid #0092D2;
}


/* table content */
.table.sortable tbody tr {
    border-bottom: 1px solid #C7D2D9;
}

.table.sortable td {
    vertical-align: middle;
    padding: 12px 16px;
    border: none;
    letter-spacing: -0.1px;
    line-height: 18px;
}

.table.sortable .product-stock>span {
    font-size: 14px;
    letter-spacing: -0.1px;
}

td.product-variant-price {
    white-space: nowrap;
}


/* buttons, links */
.primary-button.medium.add-to-cart-button {
    min-width: 64px;
    height: 40px;
    padding: 0;
    margin: 0;
}

.primary-button.medium.add-to-cart-button img {
    margin-right: 0;
}

.product-instance-btn-current {
    font-size: 12px;
    font-weight: 600;
    color: #003247;
    letter-spacing: -0.25px;
    line-height: 16px;
    padding: 6px;
    background: #fff;
    display: none;
}

.product-instance-btn-link {
    display: inline-block;
    padding-right: 16px;
    background: url(/assets/icons/icon-arrowforward-blue-12.svg) right center no-repeat;
}

/* current variant */
.table.sortable tbody tr.product-variant-selected {
    border-left: 2px solid #0092D2;
    background: #D2F1FF !important;
}

tr.product-variant-selected .product-instance-btn-link {
    display: none;
}

tr.product-variant-selected .product-instance-btn-current {
    display: inline-block;
}

/* quantity buttons */
.product-detail-variants-table .quantity-button {
    width: 39px;
    height: 38px;
}

.product-detail-variants-table .quantity-wrapper input[inputmode="numeric"] {
    height: 38px;
    width: 40px;
}



/*************** UPSELL PRODUCTS ****************/
#upsell-products-slider {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.upsell-products-container {
    margin-bottom: 64px;
}

#upsell-products-slider > div {
    display: grid;
    grid-template-columns: 150px 2fr 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: .25rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.upsell-product-title {
    font-size: 16px;
    font-weight: bold;
    color: #003247;
}
.upsell-product-brand {

}
.upsell-product-image {
    margin-top: 5px;
    width: 150px;
    height: 80px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
}

.upsell-product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.upsell-product-stock.in-stock span {
    color: #0eae0e;
}

.upsell-product-stock.no-stock span {
    color: #76858c;
}

.upsell-product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}
.quantity-button-sm {
    width: 41px !important;
    height: 38px !important;
}

.quantity-wrapper-sm input[inputmode="numeric"] {
    height: 38px !important;
    width: 36px !important;
}
.quantity-wrapper-sm {
    width: 150px !important;
}
.upsell-product-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
    justify-content: end;
}



/*************** RELATED PRODUCTS ****************/
.related-products-container {
    margin-bottom: 64px;
}
.related-products-container .product-card {
    flex: 0 0 calc(100% / 4 - 15px); /* 4 cards per view */
    max-width: calc(100% / 4 - 15px);
    padding: 10px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.related-products-container .product-image {
    width: 100%;
    height: 200px;
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
}

.related-products-container .product-info {
    color: #003247;
    font-weight: bold;
}

.related-products-container .product-price {
    font-size: 16px;
    color: #003247;
}

.related-products-container .product-stock span {
    font-size: 12px !important;
}

.related-products-container .product-stock.in-stock {
    color: #0eae0e;
    letter-spacing: -0.1px;
    line-height: 16px;
    font-weight: 600;
}

.related-products-container .product-stock.no-stock {
    color: #76858c;
}

.related-products-container .swiper-button-next, .swiper-button-prev {
    color: #0092d2 !important;
}

.related-products-container .swiper-pagination-bullet-active {
    background-color: #0092d2 !important;
}

.related-products-container .swiper-slide {
    border-right: 1px solid #eee;
    padding: 15px;
    transition: transform 0.5s ease;
}
.related-products-container .swiper-slide:hover {
    transform: translateY(-15px);
}
