/* =========================================================
   INKSUB - MASTER CUSTOM CSS
   WooCommerce + Product Spec + SiteOrigin + Anchor
   Desktop + Mobile
========================================================= */


/* =========================================================
   01. GOOGLE FONT : KANIT
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');


/* =========================================================
   02. FORCE KANIT - WHOLE WEBSITE
========================================================= */

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
table,
th,
td,
li {
    font-family: 'Kanit', sans-serif !important;
}


/* =========================================================
   03. PRODUCT SPEC - DESKTOP / DEFAULT
========================================================= */

/* Main container */
.product-spec {
    width: 100% !important;
    max-width: 950px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Title */
.product-spec h2 {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
}

/* Description */
.product-spec > p {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: normal !important;
    box-sizing: border-box !important;
}

.product-spec > p strong {
    font-weight: 500 !important;
}

/* Table wrapper */
.product-spec .product-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Table */
.product-spec table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: auto;
    border: 1px solid #d6d6d6 !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.product-spec table tr {
    height: auto !important;
}

/* Table cell */
.product-spec table th,
.product-spec table td {
    font-family: 'Kanit', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    padding: 6px 12px !important;
    height: auto !important;
    min-height: 0 !important;
    vertical-align: middle !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    border: 1px solid #d6d6d6 !important;
    box-sizing: border-box !important;
}

/* Prevent theme/WordPress from changing P/SPAN inside cells */
.product-spec table th p,
.product-spec table td p {
    font-family: 'Kanit', sans-serif !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-spec table th span,
.product-spec table td span {
    font-family: 'Kanit', sans-serif !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Table header */
.product-spec table thead th {
    background: #222222 !important;
    color: #ffffff !important;
    font-family: 'Kanit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    vertical-align: middle !important;
    border: 1px solid #d6d6d6 !important;
}

/* Column widths */
.product-spec table thead th:first-child {
    width: 42% !important;
}

.product-spec table thead th:nth-child(2) {
    width: 58% !important;
}

/* Font weights */
.product-spec table tbody td {
    font-weight: 300 !important;
}

.product-spec table strong {
    font-weight: 500 !important;
}

/* Alternate row */
.product-spec table tbody tr:nth-child(even) td {
    background: #f7f7f7;
}


/* =========================================================
   04. WOOCOMMERCE PRODUCT PAGE
========================================================= */

/* Hide Categories */
.single-product .product_meta .posted_in {
    display: none !important;
}

/* Hide Breadcrumb / Directory */
.single-product .woocommerce-breadcrumb,
.single-product nav.woocommerce-breadcrumb,
.single-product #kadence-breadcrumbs,
.single-product .kadence-breadcrumbs,
.single-product .entry-breadcrumbs,
.single-product .breadcrumbs,
.single-product nav[aria-label="Breadcrumb"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide gallery Zoom trigger */
.single-product .woocommerce-product-gallery__trigger,
.single-product a.woocommerce-product-gallery__trigger,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger,
.single-product .kadence-product-gallery .woocommerce-product-gallery__trigger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}


/* =========================================================
   05. PRODUCT SPEC - MOBILE
========================================================= */

@media only screen and (max-width: 768px) {

    .product-spec {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .product-spec h2 {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        line-height: 1.35 !important;
        font-weight: 300 !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .product-spec > p {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        font-weight: 300 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: normal !important;
        box-sizing: border-box !important;
    }

    .product-spec > p strong {
        font-weight: 500 !important;
    }

    .product-spec .product-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .product-spec table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }

    .product-spec table th,
    .product-spec table td {
        font-family: 'Kanit', sans-serif !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        padding: 4px 6px !important;
        height: auto !important;
        min-height: 0 !important;
        vertical-align: middle !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .product-spec table th p,
    .product-spec table td p,
    .product-spec table th span,
    .product-spec table td span {
        font-family: 'Kanit', sans-serif !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}


/* =========================================================
   06. SITEORIGIN GRID
   Row Class: inksub-grid-4-2
   Desktop = SiteOrigin default
   Mobile = 2 columns
========================================================= */

@media only screen and (max-width: 768px) {

    .inksub-grid-4-2 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .inksub-grid-4-2 > .panel-grid-cell {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        box-sizing: border-box !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin: 0 0 20px 0 !important;
    }

    .inksub-grid-4-2 p,
    .inksub-grid-4-2 li,
    .inksub-grid-4-2 span {
        font-size: 15px !important;
        line-height: 1.5 !important;
        font-weight: 400 !important;
    }

    .inksub-grid-4-2 h1,
    .inksub-grid-4-2 h2,
    .inksub-grid-4-2 h3,
    .inksub-grid-4-2 h4,
    .inksub-grid-4-2 h5,
    .inksub-grid-4-2 h6 {
        font-size: 16px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;
    }

    .inksub-grid-4-2 strong,
    .inksub-grid-4-2 b {
        font-weight: 600 !important;
    }
}


/* =========================================================
   07. INKSUB MOBILE FONT ONLY
   Class: inksub-mobile-font
========================================================= */

@media only screen and (max-width: 768px) {

    .inksub-mobile-font p,
    .inksub-mobile-font li,
    .inksub-mobile-font span {
        font-size: 16px !important;
        line-height: 1.5 !important;
        font-weight: 400 !important;
    }

    .inksub-mobile-font h1,
    .inksub-mobile-font h2,
    .inksub-mobile-font h3,
    .inksub-mobile-font h4,
    .inksub-mobile-font h5,
    .inksub-mobile-font h6 {
        font-size: 16px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;
    }

    .inksub-mobile-font strong,
    .inksub-mobile-font b {
        font-weight: 600 !important;
    }
}


/* =========================================================
   08. ANCHOR / JUMP LINK
   SiteOrigin example:
   
========================================================= */

html {
    scroll-behavior: smooth;
}

.inksub-anchor {
    display: block;
    position: relative;
    top: -120px;
    visibility: hidden;
}