/* =========================================================
   HITECH IRONMONGERIES
   PRODUCTS / CATALOGUE CSS
   ========================================================= */


/* =========================================================
   PRODUCT PAGE HEADER OFFSET
   ========================================================= */

body.single-product .hitech-single-product {
    padding-top: 115px;
}

@media (max-width: 991px) {

    body.single-product .hitech-single-product {
        padding-top: 95px;
    }

}

@media (max-width: 767px) {

    body.single-product .hitech-single-product {
        padding-top: 80px;
    }

}


/* =========================================================
   HITECH SINGLE PRODUCT
   ========================================================= */

.hitech-single-product {
    background: #fff;
    padding-bottom: 100px;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.hitech-product-breadcrumb {
    padding: 25px 0 35px;
}

.hitech-product-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.hitech-product-breadcrumb a {
    color: #102B5C;
    text-decoration: none;
}


/* =========================================================
   MAIN GALLERY
   ========================================================= */

.hitech-product-gallery {
    background: #f8f8f8;
    padding: 25px;
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.hitech-product-category {
    color: #32b57f;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hitech-product-title {
    margin: 0 0 15px;
    color: #222;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 600;
}

.hitech-product-code {
    margin-bottom: 30px;
    color: #777;
    font-size: 14px;
}

.hitech-product-code strong {
    color: #222;
}


/* =========================================================
   QUICK SPECIFICATIONS
   ========================================================= */

.hitech-quick-specs {
    margin: 25px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.quick-spec {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eeeeee;
}

.quick-spec:last-child {
    border-bottom: 0;
}

.quick-spec span {
    color: #777;
}

.quick-spec strong {
    color: #222;
    text-align: right;
}


/* =========================================================
   QUOTE BUTTON
   ========================================================= */

.hitech-product-quote {
    margin-top: 30px;
}

.hitech-quote-button {
    display: inline-block;
    padding: 15px 34px;
    background: #102B5C;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: all .3s ease;
}

.hitech-quote-button:hover {
    background: #32b57f;
    color: #fff;
}


/* =========================================================
   PRODUCT SECTIONS
   ========================================================= */

.hitech-product-description,
.hitech-specifications,
.hitech-related-products {
    margin-top: 90px;
}

.hitech-section-heading {
    margin-bottom: 30px;
}

.hitech-section-heading h2 {
    margin: 10px 0 0;
    color: #222;
    font-size: 34px;
    font-weight: 600;
}

.product-description-content {
    max-width: 950px;
    color: #555;
    font-size: 16px;
    line-height: 1.9;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SPECIFICATION TABLE
   ========================================================= */

.hitech-spec-table {
    border: 1px solid #e2e2e2;
}

.spec-row {
    display: grid;
    grid-template-columns: 30% 70%;
    border-bottom: 1px solid #e2e2e2;
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec-label,
.spec-value {
    padding: 16px 20px;
}

.spec-label {
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
}

.spec-value {
    color: #555;
}


/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

.hitech-related-products {
    padding-bottom: 30px;
}


/* =========================================================
   SINGLE PRODUCT TABLET / MOBILE
   ========================================================= */

@media (max-width: 991px) {

    .hitech-product-title {
        font-size: 36px;
    }

    .hitech-product-gallery {
        margin-bottom: 20px;
    }

}

@media (max-width: 767px) {

    .hitech-product-title {
        font-size: 30px;
    }

    .quick-spec {
        display: block;
    }

    .quick-spec strong {
        display: block;
        margin-top: 5px;
        text-align: left;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .spec-label {
        border-bottom: 1px solid #e2e2e2;
    }

    .hitech-product-description,
    .hitech-specifications,
    .hitech-related-products {
        margin-top: 60px;
    }

}


/* =========================================================
   HITECH PRODUCT CATALOGUE
   ========================================================= */

.hitech-catalogue-page {
    padding: 120px 0 100px;
    background: #fff;
}

.hitech-catalogue-header {
    max-width: 850px;
    margin-bottom: 55px;
}

.hitech-catalogue-header h1 {
    margin: 10px 0 15px;
    font-size: 46px;
    line-height: 1.15;
    color: #222;
    font-weight: 600;
}

.hitech-catalogue-header p,
.hitech-category-description {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   CATEGORY SIDEBAR
   ========================================================= */

.hitech-catalogue-sidebar {
    position: sticky;
    top: 110px;
}

.hitech-catalogue-sidebar h2 {
    margin: 0 0 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ddd;
    color: #222;
    font-size: 22px;
    font-weight: 500;
}

.hitech-category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hitech-category-list > li {
    border-bottom: 1px solid #e5e5e5;
}

.hitech-category-list a {
    display: block;
    padding: 13px 0;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    transition: all .25s ease;
}

.hitech-category-list > li > a {
    color: #222;
    font-weight: 500;
}

.hitech-category-list a:hover {
    color: #102B5C;
}

.hitech-category-list ul {
    margin: 0;
    padding: 0 0 8px 15px;
    list-style: none;
}

.hitech-category-list ul a {
    padding: 9px 0;
    color: #777;
    font-size: 14px;
}


/* =========================================================
   CATALOGUE TOOLBAR
   ========================================================= */

.hitech-catalogue-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 30px;
    padding-bottom: 20px;

    border-bottom: 1px solid #e5e5e5;
}

.catalogue-result-count {
    color: #777;
    font-size: 14px;
}

.catalogue-ordering select {
    min-width: 190px;
    padding: 10px 35px 10px 12px;

    border: 1px solid #ddd;

    background: #fff;
    color: #555;
}


/* =========================================================
   HITECH WOOCOMMERCE PRODUCT GRID
   ========================================================= */

.hitech-catalogue-page ul.products {

    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 30px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;

    float: none !important;
    clear: none !important;
}


/* =========================================================
   REMOVE WOOCOMMERCE CLEARFIX
   Prevents ::before / ::after from occupying
   the first CSS-grid column.
   ========================================================= */

.hitech-catalogue-page ul.products::before,
.hitech-catalogue-page ul.products::after {

    display: none !important;

    content: none !important;
}


/* =========================================================
   RESET WOOCOMMERCE PRODUCT POSITIONING
   ========================================================= */

.hitech-catalogue-page ul.products > li.product,
.hitech-catalogue-page ul.products > li.product.first,
.hitech-catalogue-page ul.products > li.product.last {

    display: block !important;

    width: auto !important;

    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;
    clear: none !important;

    position: static !important;

    left: auto !important;
    right: auto !important;

    top: auto !important;
    bottom: auto !important;

    transform: none !important;

    grid-column: auto !important;
    grid-row: auto !important;

    align-self: stretch !important;
    justify-self: stretch !important;
}


/* =========================================================
   RESET WOOCOMMERCE FIRST / LAST LOGIC
   ========================================================= */

.hitech-catalogue-page
ul.products
> li.product:nth-child(n) {

    grid-column: auto !important;
    grid-row: auto !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* =========================================================
   PRODUCT CARD CONTAINER
   ========================================================= */

.hitech-catalogue-page
ul.products
> li.product
> .hitech-product-card {

    width: 100%;
    height: 100%;
}


/* =========================================================
   TABLET PRODUCT GRID
   ========================================================= */

@media (max-width: 991px) {

    .hitech-catalogue-page ul.products {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 24px !important;
    }

}


/* =========================================================
   MOBILE PRODUCT GRID
   ========================================================= */

@media (max-width: 767px) {

    .hitech-catalogue-page ul.products {

        grid-template-columns:
            1fr !important;

        gap: 20px !important;
    }

}


/* =========================================================
   PAGINATION
   ========================================================= */

.hitech-pagination {
    margin-top: 45px;
}

.hitech-pagination .page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;

    padding: 0;

    list-style: none;
}

.hitech-pagination .page-numbers a,
.hitech-pagination .page-numbers span {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    border: 1px solid #ddd;

    color: #333;

    text-decoration: none;
}

.hitech-pagination .page-numbers .current {

    background: #102B5C;

    border-color: #102B5C;

    color: #fff;
}


/* =========================================================
   CATALOGUE TABLET
   ========================================================= */

@media (max-width: 991px) {

    .hitech-catalogue-page {
        padding-top: 100px;
    }

    .hitech-catalogue-sidebar {

        position: static;

        margin-bottom: 40px;
    }

}


/* =========================================================
   CATALOGUE MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .hitech-catalogue-page {

        padding: 80px 0;
    }

    .hitech-catalogue-header h1 {

        font-size: 34px;
    }

    .hitech-catalogue-toolbar {

        display: block;
    }

    .catalogue-ordering {

        margin-top: 15px;
    }

}