.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
}

.ast-primary-header-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
}

.ast-container,
.ast-container-fluid,
.site-content > .ast-container,
.ast-page-builder-template .site-content > .ast-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* WooCommerce page content margins */

body.woocommerce-shop .site-content > .ast-container,
body.single-product .site-content > .ast-container,
body.woocommerce-cart .site-content > .ast-container,
body.woocommerce-checkout .site-content > .ast-container,
body.woocommerce-account .site-content > .ast-container {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.single-product .entry-meta {
    display: none !important;
}
.woocommerce ul.products li.product-category img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

/* ==========================================
   EXTRA PIXLE - MSDS / TDS BUTTONS
   ========================================== */

.woocommerce div.product .extra-pixle-document-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    width: 100%;

    margin-top: 20px;
    margin-bottom: 10px;
}


/* BUTTON */

.woocommerce div.product .extra-pixle-document-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    min-height: 44px;

    padding: 8px 20px !important;

    background-color: #ffffff !important;

    color: #164f49 !important;

    border: 1px solid #164f49 !important;

    border-radius: 30px !important;

    font-family: inherit;

    font-size: 15px !important;

    font-weight: 600 !important;

    line-height: 1.4 !important;

    text-decoration: none !important;

    box-shadow: none !important;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


/* HOVER */

.woocommerce div.product .extra-pixle-document-button:hover,
.woocommerce div.product .extra-pixle-document-button:focus {

    background-color: #e5d36a !important;

    color: #111111 !important;

    border-color: #e5d36a !important;

    text-decoration: none !important;

    box-shadow: none !important;
}


/* MOBILE */

@media (max-width: 600px) {

    .woocommerce div.product .extra-pixle-document-buttons {

        gap: 10px;

        margin-top: 15px;

    }

    .woocommerce div.product .extra-pixle-document-button {

        min-height: 42px;

        padding: 8px 18px !important;

        font-size: 14px !important;

    }
}
/* ===== Page/table layout ===== */
.tlg-datasheet-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.tlg-datasheet-table th,
.tlg-datasheet-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tlg-datasheet-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.tlg-datasheet-table img {
    border-radius: 4px;
}

body.page-template-default .entry-content {
    padding: 40px 20px;
}

/* ===== MSDS / TDS buttons ===== */
.extra-pixle-document-button {
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid #1e4d3f;
    border-radius: 30px;
    color: #1e4d3f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.extra-pixle-document-button:hover {
    background-color: #1e4d3f;
    color: #fff;
}

.extra-pixle-document-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ===== Category filters ===== */
.tlg-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.tlg-category-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100px;
    padding: 10px;
    border: 1.5px solid #1e4d3f;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tlg-category-thumb {
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #e8f0ed;
}

.tlg-category-thumb-all {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e4d3f;
    font-weight: 600;
    font-size: 13px;
}

.tlg-category-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e4d3f;
    text-align: center;
}

.tlg-category-filter:hover {
    background-color: #e8f0ed;
}

.tlg-category-filter.active {
    background-color: #1e4d3f;
}

.tlg-category-filter.active .tlg-category-label,
.tlg-category-filter.active .tlg-category-thumb-all {
    color: #fff;
}

/* Scrollable wrapper for mobile */
.tlg-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tighten up the table on small screens so more fits before scrolling */
@media (max-width: 600px) {
    .tlg-datasheet-table th,
    .tlg-datasheet-table td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .tlg-datasheet-table img {
        width: 40px;
        height: 40px;
    }

    .extra-pixle-document-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}
/* Center category filter buttons */
.tlg-category-filters {
    justify-content: center;
}

/* Stack the table into cards on mobile instead of scrolling sideways */
@media (max-width: 600px) {
    .tlg-table-scroll {
        overflow-x: visible;
    }

    .tlg-datasheet-table thead {
        display: none;
    }

    .tlg-datasheet-table,
    .tlg-datasheet-table tbody,
    .tlg-datasheet-table tr,
    .tlg-datasheet-table td {
        display: block;
        width: 100%;
    }

    .tlg-datasheet-table tr {
        margin-bottom: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
       padding: 30px 16px 12px 16px;
    }

    .tlg-datasheet-table td {
        border: none;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .tlg-datasheet-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1e4d3f;
        margin-right: 12px;
    }
}
@media (max-width: 600px) {
    /* Image: no label, small badge pinned to top-right corner */
    .tlg-datasheet-table td[data-label="Image"] {
        position: absolute;
        top: 16px;
        right: 16px;
        width: auto;
        padding: 0;
        border: none;
    }
    .tlg-datasheet-table td[data-label="Image"]::before {
        content: none;
    }
    .tlg-datasheet-table td[data-label="Image"] img {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }
@media (max-width: 600px) {
    .tlg-datasheet-table td[data-label="Image"] {
        position: absolute;
        top: 16px;
        right: 16px;
        width: auto;
        padding: 0;
        border: none;
        z-index: 5;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
}
    /* Product title: full width, wraps cleanly, leaves clear space for the image */
    .tlg-datasheet-table tr {
        position: relative;
    }
    .tlg-datasheet-table td[data-label="Product"] {
        padding: 0 70px 12px 0;
        font-weight: 600;
        font-size: 15px;
        white-space: normal;
        word-break: break-word;
        display: block;
        border: none;
    }
    .tlg-datasheet-table td[data-label="Product"]::before {
        content: none;
    }
}
@media (max-width: 600px) {
    /* Hide category thumbnails on mobile, show text only */
    .tlg-category-thumb {
        display: none;
    }

    .tlg-category-filter {
        flex-direction: row;
        width: auto;
        padding: 8px 16px;
    }
}
/* Hide the dropdown by default (desktop) */
.tlg-category-select {
    display: none;
}

@media (max-width: 600px) {
    /* Hide the button row, show the dropdown instead */
    .tlg-category-filters {
        display: none;
    }

    .tlg-category-select {
    display: none;
}

@media (max-width: 600px) {
    .tlg-category-filters {
        display: none;
    }

    .tlg-category-select {
        display: block;
        width: 100%;
        height: 48px;
        padding: 0 18px;
        border: 1.5px solid #1e4d3f;
        border-radius: 30px;
        background: #fff;
        color: #1e4d3f;
        font-size: 14px;
        font-weight: 600;
        line-height: 48px;
        -webkit-appearance: none;
        appearance: none;
        outline: none;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
        margin-bottom: 20px;
    }

    .tlg-category-select:focus {
        outline: none;
        box-shadow: none;
        border-color: #1e4d3f;
    }
}
	@media (max-width: 600px) {
    .tlg-datasheet-table {
        border: none;
        border-collapse: collapse;
    }

    .tlg-table-scroll {
        border: none;
        overflow: visible;
    }
}
	@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }
}
	@media (max-width: 768px) {

    /* Keep page within mobile viewport */
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

 