@media print {

    /* category with image */
    .pageType-CategoryPage {
        .innerProductDetailpage {
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        .innerProductDetailpage .CategoryName,
        .CategoryName {
            color: #1e53a5 !important;
            background-color: #ffffff !important;
            padding: 15px;
            border-radius: 3px;
            display: inline-block;
            background-position: center;
            font-size: 32px;
            padding-left: 30px !important;
        }

        .docsListDiv .col-md-4 ul {
            border-right: none;
        }

        ul.articalDoc li,
        ul.brocherPdf li,
        ul.events li {
            background-image: var(--doc-icon) !important;
            background-repeat: no-repeat !important;
            background-position: top left !important;

            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        footer {
            margin-top: 0px;
        }
    }

    /* category without image */
    .pageType-CategoryPage {

        .estimated-shipping-date-modal,
        #chat-button {
            display: none;
        }

        .comparePanle {
            #initCompare {
                display: none !important;
            }
        }

        .product-listing-view {

            .pagination-toolbar {
                .pagination {
                    li {
                        a.hidden-xs {
                            display: block !important;
                        }
                    }

                }
            }

            .row {
                .col-xs-3.col-md-3.hidden-xs.hidden-sm {
                    display: none !important;

                    .yCmsContentSlot.product-list-left-refinements-slot {
                        display: none !important;
                    }
                }

                .col-sm-12.col-md-9 {
                    width: 100% !important;
                }
            }

            .saved-cart-pagination.border-top-bottom.ptb10.clearfix {
                margin-bottom: 10px;

                .pagination-bar-results {
                    top: 0px !important;
                }
            }

            .basic-button {
                background: url(../../images/basic.png) no-repeat center !important;
                background-color: #ffffff;
                display: inline-block;
                cursor: pointer;
                width: 45px;
                height: 35px;
                border: 1px solid #ccc;
                margin-left: -4px;
            }

            .basic-button-disabled {
                background: url(../../images/basic-grey.png) no-repeat center !important;
            }

            .grid-view,
            .grid-button {
                background: url(../../images/grid.png) no-repeat center !important;
                background-color: #ffffff;
                display: inline-block;
                cursor: pointer;
                width: 45px;
                height: 35px;
                border: 1px solid #ccc;
                margin-left: -4px;
            }

            .simplified-view,
            .simplified-button {
                background: url(../../images/simplified.png) no-repeat center !important;
                background-color: #ffffff;
                display: inline-block;
                cursor: pointer;
                width: 45px;
                height: 35px;
                border: 1px solid #ccc;
                margin-left: -4px;

            }

            .list-view,
            .list-button {
                background: url(../../images/list-grey.png) no-repeat center !important;
                background-color: #ffffff;
                display: inline-block;
                cursor: pointer;
                width: 45px;
                height: 35px;
                border: 1px solid #ccc;
                margin-left: -4px
            }


            .grid-view-disabled {
                background: url(../../images/grid-grey.png) no-repeat center !important;
            }

            .list-view-disabled {
                background: url(../../images/list.png) no-repeat center !important;
            }

            .simplified-view-disabled {
                background: url(../../images/simplified-grey.png) no-repeat center !important;
            }

            .sort-refine-bar .form-group form#PLPSort:after {
                background: url(/_ui/responsive/theme-tci/images/down-arrow.svg) no-repeat #fff !important;
            }

            #product-list-wrap:not(.grid-veiw-div),
            #product-simplified-wrap {
                .prductlist {

                    /* &:nth-child(n + 5) {
                        display: none;
                    } */

                    .proListontent .product-title {
                        text-align: left !important;
                    }
                }
            }

            #product-list-wrap.grid-veiw-div {
                display: flex !important;
                flex-wrap: wrap;

                .prductlist {
                    width: 29%;

                    /* &:nth-child(n + 7) {
                        display: none;
                    } */
                }
            }

            .product__listing {

                .thumImg {
                    width: 25%;
                }

                .product-description-wrap {
                    width: 75%;

                    .product-description {
                        width: 100%;

                        .proMask table tr td {
                            border-left: none;
                            border-top: none;
                        }
                    }

                    table#PricingTable {
                        overflow: hidden;

                        .addtocart-component {
                            .qty-selector {
                                border: none;

                                .input-group-btn {
                                    display: none;
                                }

                                .js-qty-selector-input {
                                    border: none !important;
                                }
                            }
                        }

                        td {
                            padding: 8px;

                            &::before {
                                min-height: 5em;
                            }
                        }

                        td:first-child:before {
                            border-right: 1px solid #ccc;
                            padding: 17px 10px;
                            top: 0px;
                        }
                    }
                }

                &.grid-veiw-div {
                    .thumImg {
                        width: 100%;
                    }

                    .product-description-wrap {
                        width: 100%;

                        .product-description {
                            width: 100%;

                            .proMask table tr td {
                                border-left: none;
                                border-top: none;
                            }
                        }

                        table#PricingTable {
                            overflow: hidden;

                            .addtocart-component {
                                .qty-selector {
                                    border: none;

                                    .input-group-btn {
                                        display: none;
                                    }

                                    .js-qty-selector-input {
                                        border: none !important;
                                    }
                                }
                            }

                            td {
                                padding: 8px;

                                &::before {
                                    min-height: 5em;
                                }
                            }

                            td:first-child:before {
                                border-right: 1px solid #ccc;
                                padding: 17px 10px;
                                top: 0px;
                            }
                        }
                    }
                }


            }
        }

        .page-searchEmpty.template-pages-search-searchEmptyPage {
            .main__inner-wrapper {
                .container-fluid {
                    .row {
                        .col-md-3:not(.col-sm-6) {
                            display: none;
                        }

                        .col-md-9 {
                            width: 100% !important;

                            .researchProduct {
                                ul {
                                    li {
                                        &:last-child {
                                            border-bottom: none;
                                            border-right: none;
                                        }
                                    }
                                }
                            }

                            li.structure-search,
                            li.advance-search,
                            li.sds-search {
                                background-image: var(--doc-icon) !important;
                                background-repeat: no-repeat !important;
                                background-position: top left !important;

                                -webkit-print-color-adjust: exact;
                                print-color-adjust: exact;
                            }


                            .emptySearchReagents {
                                .col-md-3.col-sm-6 {


                                    .maskContent {
                                        table {
                                            td {
                                                border-top: none;
                                                border-left: none;
                                            }
                                        }
                                    }
                                }
                            }

                        }
                    }
                }


            }

            footer {
                .darkBlue {
                    background-color: #fff !important;
                }
            }
        }
    }
}

/* ===============================
   SAFARI PRINT FIX ONLY
   =============================== */
@supports (-webkit-touch-callout: none) {
    @media print {

        /* ---- FIX FLEX → TABLE ---- */
        .pageType-CategoryPage {

            .product__listing,
            #product-list-wrap.grid-veiw-div {
                display: block !important;
            }

            #product-list-wrap.grid-veiw-div .prductlist {
                display: inline-block !important;
                vertical-align: top !important;
            }

            /* ---- FIX HEIGHT KHÔNG ĐỀU ---- */
            .product-comparison td,
            .product-comparison th {
                height: auto !important;
                vertical-align: top !important;
            }

            .compareTableValue {
                height: 100% !important;
                display: table !important;
                table-layout: fixed !important;
                width: 100% !important;
            }

            .compareTableValue tr {
                display: table-row !important;
            }

            .compareTableValue td {
                display: table-cell !important;
                height: 100% !important;
                vertical-align: top !important;
            }

            /* ---- FIX nth-child SAFARI ---- */
            #product-list-wrap:not(.grid-veiw-div) .prductlist:nth-of-type(n + 5),
            #product-simplified-wrap .prductlist:nth-of-type(n + 5) {
                display: none !important;
            }

            #product-list-wrap.grid-veiw-div .prductlist:nth-of-type(n + 7) {
                display: none !important;
            }

            /* ---- FIX ::before / ::after ---- */
            table#PricingTable td::before,
            table#PricingTable td::after {
                display: none !important;
                content: none !important;
            }

            /* ---- PAGE BREAK SAFARI ---- */
            tr,
            td,
            th {
                page-break-inside: avoid !important;
                break-inside: avoid !important;
            }
        }
    }
}