/* =========================================================
   NATIONLED - CHI TIẾT SẢN PHẨM
   =========================================================
   PRIMARY:
   #28cb8b
   #078563

   FONT AWESOME 6:
   Đã được load bằng plugin WordPress.
========================================================= */


/* =========================================================
   01. VARIABLES
========================================================= */

:root {
    --nl-primary: #28cb8b;
    --nl-primary-dark: #078563;

    --nl-primary-soft: #eefbf6;
    --nl-primary-soft-2: #f7fcfa;
    --nl-primary-soft-3: #e5f7f0;

    --nl-text: #111816;
    --nl-text-2: #303936;
    --nl-text-3: #66716d;
    --nl-text-4: #8b9490;

    --nl-border: #dce6e1;
    --nl-border-light: #edf2ef;

    --nl-white: #ffffff;

    --nl-container: 1480px;

    --nl-radius-sm: 7px;
    --nl-radius: 10px;
    --nl-radius-lg: 14px;
}


/* =========================================================
   02. GLOBAL
========================================================= */

#main {
    background: #ffffff;
}

.nationled-product-main {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.nationled-single-product {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--nl-text);
}

.nationled-single-product *,
.nationled-single-product *::before,
.nationled-single-product *::after {
    box-sizing: border-box;
}


/* =========================================================
   03. CONTAINER
========================================================= */

.nl-product-container {
    width: 100%;
    max-width: var(--nl-container);

    margin-left: auto;
    margin-right: auto;

    padding-left: 24px;
    padding-right: 24px;
}


/* =========================================================
   04. BREADCRUMB
========================================================= */

.nl-product-breadcrumb-wrap {
    width: 100%;

    border-top: 1px solid var(--nl-border-light);
    border-bottom: 1px solid var(--nl-border-light);

    background: linear-gradient(180deg,
            #ffffff 0%,
            #fafcfb 100%);
}

.nl-product-breadcrumb {
    min-height: 48px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    color: var(--nl-text-3);

    font-size: 12px;
    line-height: 1.4;
}

.nl-product-breadcrumb a {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: var(--nl-text-3);

    text-decoration: none;

    transition: color .2s ease;
}

.nl-product-breadcrumb a:hover {
    color: var(--nl-primary-dark);
}

.nl-breadcrumb-home .dashicons {
    width: 17px;
    height: 17px;

    font-size: 17px;
    line-height: 17px;
}

.nl-breadcrumb-separator {
    color: var(--nl-primary-dark);

    font-size: 18px;
    line-height: 1;
}

.nl-breadcrumb-current {
    color: var(--nl-primary-dark);
    font-weight: 600;
}


/* =========================================================
   05. MAIN
========================================================= */

.nl-product-main-content {
    width: 100%;

    padding: 18px 0 60px;

    background: #ffffff;
}


/* =========================================================
   06. MAIN LAYOUT
========================================================= */

.nl-product-layout {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 390px;

    gap: 24px;

    align-items: start;
}

.nl-product-primary {
    min-width: 0;
}

.nl-product-top {
    display: grid;

    grid-template-columns:
        minmax(0, 1.16fr) minmax(350px, .84fr);

    gap: 26px;

    align-items: start;
}


/* =========================================================
   07. GALLERY
========================================================= */

.nl-product-gallery {
    --nl-gallery-thumb-size: 82px;
    --nl-gallery-thumb-gap: 8px;

    min-width: 0;

    display: grid;

    grid-template-columns:
        84px minmax(0, 1fr);

    gap: 13px;
}


/* =========================================================
   07.1 THUMBNAILS
   - Desktop chỉ hiển thị tối đa 5 ảnh nhỏ
   - Nếu có trên 5 ảnh sẽ dùng nút mũi tên lên / xuống
========================================================= */

.nl-gallery-thumbnails-shell {
    min-width: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;
}

.nl-gallery-thumbnails {
    width: 100%;

    max-height:
        calc((var(--nl-gallery-thumb-size) * 5) + (var(--nl-gallery-thumb-gap) * 4));

    padding: 0;

    display: flex;
    flex-direction: column;

    gap: var(--nl-gallery-thumb-gap);

    overflow-x: hidden;
    overflow-y: auto;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.nl-gallery-thumbnails::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}


/* =========================================================
   07.1.1 THUMBNAIL NAVIGATION
========================================================= */

.nl-gallery-nav {
    flex: 0 0 24px;

    width: var(--nl-gallery-thumb-size) !important;
    height: 24px !important;
    min-width: 0 !important;
    min-height: 24px !important;

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

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 1px solid #d8e8e1 !important;
    border-radius: 6px !important;

    background: #f7fcfa !important;

    color: var(--nl-primary-dark) !important;

    font-size: 12px !important;
    line-height: 1 !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        color .18s ease,
        border-color .18s ease,
        background .18s ease,
        opacity .18s ease;
}

.nl-gallery-nav:hover:not(:disabled) {
    border-color: var(--nl-primary) !important;
    background: var(--nl-primary-soft) !important;
    color: var(--nl-primary-dark) !important;
}

.nl-gallery-nav:focus-visible {
    outline: 2px solid rgba(40, 203, 139, .35);
    outline-offset: 2px;
}

.nl-gallery-nav:disabled {
    opacity: .28;
    cursor: default;
}

.nl-gallery-nav i,
.nl-gallery-nav svg {
    color: currentColor !important;
    pointer-events: none;
}

.nl-gallery-nav svg {
    width: 12px !important;
    height: 12px !important;
}

.nl-gallery-thumb {
    flex: 0 0 auto;

    width: var(--nl-gallery-thumb-size);
    height: var(--nl-gallery-thumb-size);

    margin: 0 !important;
    padding: 5px !important;

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

    border: 1px solid var(--nl-border) !important;
    border-radius: var(--nl-radius-sm) !important;

    background: #ffffff !important;

    box-shadow: none !important;

    cursor: pointer;

    overflow: hidden;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.nl-gallery-thumb::before,
.nl-gallery-thumb::after {
    display: none !important;
}

.nl-gallery-thumb:hover {
    border-color: var(--nl-primary) !important;
    transform: translateY(-1px);
}

.nl-gallery-thumb.is-active {
    border-color: var(--nl-primary-dark) !important;

    box-shadow:
        inset 0 0 0 1px var(--nl-primary-dark) !important;
}

.nl-gallery-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   07.2 MAIN IMAGE
========================================================= */

.nl-gallery-main {
    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--nl-border);
    border-radius: var(--nl-radius);

    background: #ffffff;
}

.nl-main-image-wrap {
    position: relative;

    width: 100%;
    min-height: 500px;

    padding: 0;

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

    overflow: hidden;

    background: #ffffff;
}

.nl-main-product-image {
    display: block;

    width: 100%;
    height: 500px;

    max-width: 100%;

    object-fit: contain;
    object-position: center;

    transition:
        opacity .18s ease,
        transform .28s ease;
}

.nl-main-product-image.is-changing {
    opacity: .25;
    transform: scale(.985);
}

.nl-product-gallery>.nl-gallery-main:only-child {
    grid-column: 1 / -1;
}


/* =========================================================
   07.3 FULLSCREEN IMAGE LIGHTBOX
   ---------------------------------------------------------
   - Click ảnh lớn để mở toàn màn hình.
   - Điều hướng trái / phải giữa các ảnh gallery.
   - Màu điều khiển theo hệ NationLED.
========================================================= */

.nl-main-image-wrap {
    cursor: zoom-in;
}

.nl-main-image-wrap:focus-visible {
    outline: 3px solid rgba(40, 203, 139, .42);
    outline-offset: -3px;
}

body.nl-image-lightbox-open {
    overflow: hidden !important;
}

.nl-image-lightbox,
.nl-image-lightbox * {
    box-sizing: border-box;
}

.nl-image-lightbox {
    position: fixed;

    z-index: 999999;

    inset: 0;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

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

    padding: 18px;

    background:
        rgba(5, 14, 11, .94);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nl-image-lightbox.is-open {
    display: flex;
}

.nl-image-lightbox-stage {
    position: relative;

    width: 100%;
    height: 100%;

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

    overflow: hidden;
}

.nl-image-lightbox-image-wrap {
    width: 100%;
    height: 100%;

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

    padding:
        34px 90px 46px;

    pointer-events: auto;
}

.nl-image-lightbox-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;

    /*
     * Nền trắng chỉ nằm đúng trong khung ảnh phóng to.
     * Ảnh PNG/WebP có vùng trong suốt sẽ hiển thị trên nền trắng,
     * còn phần overlay toàn màn hình vẫn giữ nền tối.
     */
    background: #ffffff;

    user-select: none;
    -webkit-user-drag: none;

    opacity: 1;
    transform: scale(1);

    transition:
        opacity .16s ease,
        transform .2s ease;
}

.nl-image-lightbox-image.is-changing {
    opacity: .25;
    transform: scale(.985);
}

.nl-image-lightbox-close,
.nl-image-lightbox-nav {
    position: absolute;

    z-index: 3;

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

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, .30) !important;

    background:
        rgba(7, 28, 21, .72) !important;

    color: #ffffff !important;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .22) !important;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        color .18s ease;
}

.nl-image-lightbox-close:hover,
.nl-image-lightbox-nav:hover {
    border-color: #28cb8b !important;
    background: #078563 !important;
    color: #ffffff !important;
}

.nl-image-lightbox-close:focus-visible,
.nl-image-lightbox-nav:focus-visible {
    outline: 3px solid rgba(40, 203, 139, .48);
    outline-offset: 3px;
}

.nl-image-lightbox-close i,
.nl-image-lightbox-nav i,
.nl-image-lightbox-close svg,
.nl-image-lightbox-nav svg {
    color: currentColor !important;
    pointer-events: none;
}

.nl-image-lightbox-close {
    top: 2px;
    right: 2px;

    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    border-radius: 999px !important;

    font-size: 22px !important;
    line-height: 1 !important;
}

.nl-image-lightbox-nav {
    top: 50%;

    width: 54px !important;
    height: 54px !important;

    min-width: 54px !important;
    min-height: 54px !important;

    border-radius: 999px !important;

    font-size: 18px !important;
    line-height: 1 !important;

    transform:
        translateY(-50%);
}

.nl-image-lightbox-nav:hover {
    transform:
        translateY(-50%) scale(1.04);
}

.nl-image-lightbox-prev {
    left: 8px;
}

.nl-image-lightbox-next {
    right: 8px;
}

.nl-image-lightbox-nav[hidden] {
    display: none !important;
}

.nl-image-lightbox-counter {
    position: absolute;

    z-index: 3;

    left: 50%;
    bottom: 4px;

    min-width: 72px;

    padding: 7px 14px;

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 999px;

    background:
        rgba(7, 28, 21, .68);

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;
    text-align: center;

    transform:
        translateX(-50%);

    pointer-events: none;
}

@media (max-width: 767px) {

    .nl-image-lightbox {
        padding: 8px;
    }

    .nl-image-lightbox-image-wrap {
        padding:
            58px 8px 70px;
    }

    .nl-image-lightbox-close {
        top: 4px;
        right: 4px;

        width: 44px !important;
        height: 44px !important;

        min-width: 44px !important;
        min-height: 44px !important;

        font-size: 20px !important;
    }

    .nl-image-lightbox-nav {
        top: auto;
        bottom: 8px;

        width: 46px !important;
        height: 46px !important;

        min-width: 46px !important;
        min-height: 46px !important;

        transform: none;
    }

    .nl-image-lightbox-nav:hover {
        transform: none;
    }

    .nl-image-lightbox-prev {
        left: 8px;
    }

    .nl-image-lightbox-next {
        right: 8px;
    }

    .nl-image-lightbox-counter {
        bottom: 16px;
    }

}


/* =========================================================
   08. PRODUCT INFO
========================================================= */

.nl-product-info {
    min-width: 0;
    padding-top: 6px;
}


/* =========================================================
   08.1 EYEBROW
========================================================= */

.nl-product-eyebrow {
    display: inline-flex;
    align-items: center;

    min-height: 30px;

    margin-bottom: 14px;

    padding: 5px 13px;

    border-radius: 999px;

    background: rgba(40, 203, 139, .12);

    color: var(--nl-primary-dark);

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   08.2 PRODUCT TITLE
========================================================= */

.nl-product-title {
    width: 100%;

    margin: 0 0 14px !important;

    color: #111519;

    font-size: 40px;
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -.03em;

    text-transform: none !important;

    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;

    display: block;

    overflow: visible;
    text-overflow: clip;
}


/* =========================================================
   08.3 SUBTITLE
========================================================= */

.nl-product-subtitle {
    margin-top: 9px;

    color: var(--nl-primary-dark);

    font-size: 19px;
    font-weight: 700;

    line-height: 1.35;
}


/* =========================================================
   08.4 SKU
========================================================= */

.nl-product-code {
    margin-top: 8px;

    color: var(--nl-text-3);

    font-size: 12px;
}

.nl-product-code strong {
    color: var(--nl-text-2);
    font-weight: 700;
}


/* =========================================================
   08.5 SHORT DESCRIPTION
   Dùng trực tiếp Mô tả ngắn WooCommerce.
========================================================= */

.nl-product-short-description {
    margin-top: 19px;

    color: var(--nl-text-2);

    font-size: 14px !important;
    line-height: 1.72 !important;
}

.nl-product-short-description p,
.nl-product-short-description ul,
.nl-product-short-description ol {
    margin: 0 0 10px;

    font-size: 14px !important;
    line-height: 1.72 !important;
}

.nl-product-short-description ul,
.nl-product-short-description ol {
    padding-left: 20px;
}

.nl-product-short-description>*:last-child {
    margin-bottom: 0;
}


/* =========================================================
   09. PRODUCT VARIATIONS
   PHONG CÁCH THÔNG TIN - GỌN - RÕ - RESPONSIVE
   - Hiển thị toàn bộ option của từng thuộc tính
   - Không tiêu đề "Biến thể sản phẩm"
   - Không hiển thị giá
   - Không làm mờ / khóa option theo tổ hợp WooCommerce
   - Trạng thái đang chọn dùng màu NationLED
========================================================= */

.nl-product-variation-form {
    width: 100%;

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

.nl-product-variations {
    width: 100%;

    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid var(--nl-border-light);
}

.nl-variation-fields {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 19px;
}

.nl-variation-field {
    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;
}

.nl-variation-field-head {
    margin: 0 0 9px;
}

.nl-variation-field-label {
    display: block;

    color: #171b19;

    font-size: 14px !important;
    font-weight: 800;

    line-height: 1.35;

    text-transform: none;
    letter-spacing: 0;
}

/* Bỏ thanh màu đứng của giao diện cũ. */
.nl-variation-field-label::before {
    display: none !important;
    content: none !important;
}

/*
 * Hiển thị option theo đúng độ rộng nội dung.
 * Mục tiêu:
 * - Công suất ngắn vẫn gọn.
 * - Driver / Chip LED dài tự nở vừa đủ để không che chữ.
 * - Khi hết chiều ngang, cả nút tự xuống hàng.
 */
.nl-variation-options {
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    align-items: stretch;

    gap: 9px;
}

.nl-variation-option {
    flex: 0 0 auto;

    width: auto !important;
    min-width: 96px;
    max-width: 100%;
    min-height: 48px;

    margin: 0 !important;
    padding: 9px 15px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce3e0 !important;
    border-radius: 8px !important;

    background: #ffffff !important;

    color: #303633 !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    line-height: 1.3 !important;

    text-align: center;
    text-transform: none !important;
    letter-spacing: 0 !important;

    box-shadow:
        0 1px 2px rgba(15, 32, 25, .035) !important;

    cursor: pointer;

    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: normal;
    word-break: keep-all;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.nl-variation-option>span {
    display: block;

    width: auto;
    max-width: none;

    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: normal;
    word-break: keep-all;
}

.nl-variation-option:hover:not(:disabled) {
    border-color: #28cb8b !important;

    background: #f6fcf9 !important;

    color: #078563 !important;

    box-shadow:
        0 0 0 1px rgba(40, 203, 139, .08),
        0 4px 12px rgba(7, 133, 99, .06) !important;

    transform: translateY(-1px);
}

.nl-variation-option.is-selected {
    border-color: #078563 !important;

    background: #f1fbf7 !important;

    color: #078563 !important;

    font-weight: 800 !important;

    box-shadow:
        inset 0 0 0 1px #078563,
        0 3px 10px rgba(7, 133, 99, .08) !important;

    transform: none;
}

/* Không dùng dấu tick để giữ giao diện giống mẫu tham chiếu. */
.nl-variation-option.is-selected::after {
    display: none !important;
    content: none !important;
}

/*
 * NationLED dùng phần này để HIỂN THỊ THÔNG TIN cấu hình,
 * không phải luồng bán hàng. Vì vậy tất cả option luôn phải
 * rõ ràng, không bị làm mờ theo tổ hợp biến thể WooCommerce.
 * Khối dưới là lớp an toàn nếu plugin/theme gắn disabled class.
 */
.nl-variation-option:disabled,
.nl-variation-option.is-disabled {
    border-color: #dce3e0 !important;

    background: #ffffff !important;

    color: #303633 !important;

    opacity: 1 !important;

    cursor: pointer !important;

    transform: none;

    box-shadow:
        0 1px 2px rgba(15, 32, 25, .035) !important;
}

/*
 * Select native được giữ lại để WooCommerce xử lý logic biến thể,
 * frontend chỉ hiển thị các button phía trên.
 */
.nl-variation-native {
    display: none !important;
}

.nl-native-variation-data {
    display: none !important;
}

/*
 * NationLED không sử dụng giá trên trang chi tiết sản phẩm.
 * Chặn cả giá sản phẩm và giá variation nếu WooCommerce/Flatsome
 * tự chèn lại trong quá trình xử lý biến thể.
 */
.nationled-single-product .price,
.nationled-single-product .woocommerce-variation-price,
.nationled-single-product .woocommerce-Price-amount {
    display: none !important;
}


/* =========================================================
   10. CTA
========================================================= */

.nl-product-actions {
    margin-top: 18px;

    display: grid;

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

    gap: 14px;
}

.nl-product-action {
    min-height: 50px;

    margin: 0 !important;
    padding: 10px 16px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    gap: 11px;

    border-radius: var(--nl-radius-sm) !important;

    font-size: 12px !important;
    font-weight: 700 !important;

    line-height: 1.3 !important;

    text-align: center;
    text-decoration: none !important;

    cursor: pointer;

    box-shadow: none !important;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.nl-product-action:hover {
    transform: translateY(-2px);
}

.nl-product-action-outline {
    border: 1px solid var(--nl-primary-dark) !important;

    background: #ffffff !important;

    color: var(--nl-primary-dark) !important;
}

.nl-product-action-outline:hover {
    border-color: var(--nl-primary) !important;

    background: var(--nl-primary-soft) !important;

    color: var(--nl-primary-dark) !important;
}

.nl-product-action-primary {
    border: 1px solid var(--nl-primary-dark) !important;

    background:
        linear-gradient(135deg,
            #078563,
            #079e74) !important;

    color: #ffffff !important;
}

.nl-product-action-primary:hover {
    color: #ffffff !important;

    box-shadow:
        0 10px 25px rgba(7, 133, 99, .18) !important;
}

.nl-product-action.is-disabled {
    opacity: .5;
    cursor: not-allowed;
}


/* =========================================================
   10.1 CONSULT ICON
========================================================= */

.nl-consult-icon {
    flex: 0 0 auto;

    display: inline-block;

    color: #078563 !important;

    font-size: 19px !important;
    line-height: 1 !important;
}

svg.nl-consult-icon {
    width: 19px !important;
    height: 19px !important;

    color: #078563 !important;
}


/* =========================================================
   11. RIGHT SIDEBAR
========================================================= */

.nl-product-sidebar {
    min-width: 0;

    position: sticky;
    top: 18px;

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.nl-sidebar-card {
    width: 100%;

    overflow: hidden;

    border: 1px solid var(--nl-border);
    border-radius: var(--nl-radius);

    background: #ffffff;
}


/* =========================================================
   12. SIDEBAR HEADING
========================================================= */

.nl-sidebar-heading {
    position: relative;

    padding:
        17px 17px 15px 21px;

    border-bottom: 1px solid #dcece5;

    background:
        linear-gradient(90deg,
            rgba(40, 203, 139, .10) 0%,
            rgba(40, 203, 139, .035) 56%,
            #ffffff 100%);
}

.nl-sidebar-heading::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 10px;

    width: 4px;
    height: 22px;

    border-radius: 999px;

    background:
        linear-gradient(180deg,
            #28cb8b,
            #078563);

    transform: translateY(-50%);
}

.nl-sidebar-heading h2 {
    margin: 0 !important;

    color: #057c5c;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.3;
}


/* =========================================================
   13. SPECIFICATIONS
========================================================= */

.nl-specification-list {
    width: 100%;
}

.nl-specification-row {
    min-height: 58px;

    padding: 11px 16px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.12fr) minmax(125px, .88fr);

    align-items: center;

    gap: 14px;

    border-top: 1px solid var(--nl-border-light);
}

.nl-specification-list .nl-specification-row:first-child {
    border-top: 0;
}

.nl-specification-name {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--nl-text-2);

    font-size: 15px !important;
    font-weight: 500;

    line-height: 1.45 !important;
}

.nl-specification-label {
    min-width: 0;

    color: #303936;

    font-size: 15px !important;
    font-weight: 500;

    line-height: 1.45 !important;
}

.nl-specification-fa-icon {
    flex: 0 0 25px;

    width: 25px;
    height: 25px;

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

    color: #078563 !important;

    text-align: center;
}

.nl-specification-fa-icon i,
.nl-specification-fa-icon svg {
    color: #078563 !important;

    font-size: 18px !important;
    line-height: 1 !important;
}

.nl-specification-fa-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.nl-specification-value {
    min-width: 0;

    color: #303936;

    font-size: 15px !important;
    font-weight: 500;

    line-height: 1.5 !important;

    text-align: right;

    overflow-wrap: anywhere;
}

.nl-empty-data {
    padding: 18px;

    color: var(--nl-text-4);

    font-size: 15px !important;

    text-align: center;
}


/* =========================================================
   14. DOCUMENT
========================================================= */

.nl-document-list {
    width: 100%;
}

.nl-document-item {
    width: 100%;
    min-height: 52px;

    padding: 11px 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    border-top: 1px solid var(--nl-border-light);

    color: var(--nl-text-2);

    font-size: 14px !important;
    line-height: 1.4;

    text-decoration: none !important;
}

.nl-document-list .nl-document-item:first-child {
    border-top: 0;
}

a.nl-document-item:hover {
    background: var(--nl-primary-soft-2);

    color: var(--nl-primary-dark);
}

.nl-document-name {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 9px;
}

.nl-document-name .dashicons {
    color: #e53b3b;

    font-size: 21px !important;
}

.nl-document-name span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nl-document-type {
    flex: 0 0 auto;

    color: var(--nl-text-4);

    font-size: 12px !important;
    font-weight: 600;
}


/* =========================================================
   15. CONTACT
========================================================= */

.nl-contact-card {
    padding: 20px 18px;

    text-align: center;
}

.nl-contact-heading {
    margin-bottom: 10px;

    color: var(--nl-primary-dark);

    font-size: 16px;
    font-weight: 800;

    line-height: 1.35;
}

.nl-contact-card p {
    max-width: 350px;

    margin: 0 auto;

    color: var(--nl-text-3);

    font-size: 14px !important;

    line-height: 1.6;
}

.nl-contact-links {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.nl-contact-links a {
    min-width: 0;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #078563 !important;

    font-size: 14px !important;
    font-weight: 700;

    line-height: 1.4;

    text-decoration: none !important;
}

.nl-contact-phone-icon,
.nl-contact-email-icon {
    flex: 0 0 auto;

    display: inline-block;

    color: #078563 !important;

    font-size: 17px !important;
    line-height: 1 !important;
}

svg.nl-contact-phone-icon,
svg.nl-contact-email-icon {
    width: 17px !important;
    height: 17px !important;

    color: #078563 !important;
}


/* =========================================================
   16. MODEL CARD
========================================================= */

.nl-product-models {
    position: relative;

    width: 100%;

    margin-top: 20px;

    padding:
        0 16px 14px;

    /*
     * Card vẫn giữ border-radius.
     * Scroll được xử lý bởi .nl-model-table-scroll.
     */
    overflow: hidden;

    border: 1px solid var(--nl-border);
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 8px 30px rgba(9, 80, 60, .035);
}

.nl-product-models::before {
    content: "";

    position: absolute;

    z-index: 2;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(90deg,
            #078563,
            #28cb8b);
}


/* =========================================================
   16.1 MODEL HEADING
========================================================= */

.nl-product-models .nl-block-heading {
    margin:
        0 -16px 15px;

    padding:
        18px 16px 14px;

    border-bottom: 1px solid var(--nl-border-light);

    background:
        linear-gradient(90deg,
            rgba(40, 203, 139, .055),
            #ffffff 58%);
}

.nl-product-models .nl-block-heading h2 {
    position: relative;

    margin: 0 !important;

    padding-left: 13px;

    color: var(--nl-primary-dark);

    font-size: 16px;
    font-weight: 800;

    line-height: 1.35;
}

.nl-product-models .nl-block-heading h2::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 4px;
    height: 19px;

    border-radius: 999px;

    background: var(--nl-primary);

    transform: translateY(-50%);
}


/* =========================================================
   16.2 MODEL TABLE SCROLL
   QUAN TRỌNG
========================================================= */

.nl-model-table-scroll {
    position: relative;

    display: block;

    width: 100%;
    max-width: 100%;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    -webkit-overflow-scrolling: touch;

    /*
     * Cho phép trang scroll dọc.
     * Kéo ngang sẽ được JS xử lý thêm trên mobile.
     */
    touch-action: pan-y;

    overscroll-behavior-x: contain;

    border: 1px solid #c9e3d8;
    border-radius: 8px;

    background: #ffffff;

    scrollbar-width: thin;
    scrollbar-color: #28cb8b #e8f5f0;
}

.nl-model-table-scroll::-webkit-scrollbar {
    height: 7px;
}

.nl-model-table-scroll::-webkit-scrollbar-track {
    background: #e8f5f0;

    border-radius: 999px;
}

.nl-model-table-scroll::-webkit-scrollbar-thumb {
    background:
        linear-gradient(90deg,
            #078563,
            #28cb8b);

    border-radius: 999px;
}


/* =========================================================
   16.3 TABLE
   ---------------------------------------------------------
   QUAN TRỌNG:
   - Bảng dùng min-width từng cột để tự mở rộng khi cần.
   - Không còn giới hạn 7 cột.
   - Cột thứ 8, 9, 10... vẫn có đầy đủ nền xanh ở THEAD.
========================================================= */

.nl-model-table {
    width: 100%;
    min-width: 100%;

    margin: 0 !important;

    border-collapse: separate;
    border-spacing: 0;

    /*
     * Dùng auto để browser tính kích thước tất cả cột.
     * Nếu giữ fixed + 7 cột chiếm đủ 100%, cột mới sẽ bị
     * ép về gần 0px nên phần tiêu đề xanh không nhìn thấy.
     */
    table-layout: auto;

    background: #ffffff;
}

.nl-model-table th,
.nl-model-table td {
    min-width: 115px;

    vertical-align: middle;

    border: 0 !important;

    border-right:
        1px solid rgba(7, 133, 99, .09) !important;

    border-bottom:
        1px solid rgba(7, 133, 99, .09) !important;
}

.nl-model-table th:last-child,
.nl-model-table td:last-child {
    border-right: 0 !important;
}

.nl-model-table tbody tr:last-child td {
    border-bottom: 0 !important;
}


/* =========================================================
   16.4 COLUMN WIDTH
   ---------------------------------------------------------
   Giữ tỷ lệ gần giống giao diện cũ cho 7 cột đầu.
   Mọi cột thêm từ cột thứ 8 trở đi tự nhận min-width chung.
========================================================= */

.nl-model-table th:nth-child(1),
.nl-model-table td:nth-child(1) {
    width: 153px;
    min-width: 153px;
}

.nl-model-table th:nth-child(2),
.nl-model-table td:nth-child(2) {
    width: 117px;
    min-width: 117px;
}

.nl-model-table th:nth-child(3),
.nl-model-table td:nth-child(3) {
    width: 135px;
    min-width: 135px;
}

.nl-model-table th:nth-child(4),
.nl-model-table td:nth-child(4) {
    width: 126px;
    min-width: 126px;
}

.nl-model-table th:nth-child(5),
.nl-model-table td:nth-child(5) {
    width: 117px;
    min-width: 117px;
}

.nl-model-table th:nth-child(6),
.nl-model-table td:nth-child(6) {
    width: 153px;
    min-width: 153px;
}

.nl-model-table th:nth-child(7),
.nl-model-table td:nth-child(7) {
    width: 99px;
    min-width: 99px;
}

/*
 * CỘT ĐƯỢC THÊM MỚI:
 * cột 8, 9, 10... luôn có không gian hiển thị riêng.
 */
.nl-model-table th:nth-child(n + 8),
.nl-model-table td:nth-child(n + 8) {
    width: 125px;
    min-width: 125px;
}


/* =========================================================
   16.5 HEADER
   NỀN XANH NỔI BẬT
========================================================= */

.nl-model-table thead th {
    padding: 14px 8px !important;

    background:
        linear-gradient(135deg,
            #078563 0%,
            #09946d 100%) !important;

    color: #ffffff !important;

    font-size: 12px !important;
    font-weight: 800 !important;

    line-height: 1.28;

    text-align: center;

    text-transform: uppercase;

    letter-spacing: .01em;

    border-right:
        1px solid rgba(255, 255, 255, .16) !important;

    border-bottom: 0 !important;
}

.nl-model-table thead th:last-child {
    border-right: 0 !important;
}


/* =========================================================
   16.6 BODY
========================================================= */

.nl-model-table tbody td {
    padding: 14px 9px !important;

    color: #404945;

    font-size: 13px !important;
    font-weight: 500;

    line-height: 1.45;

    text-align: center;

    transition: background .18s ease;
}


/* TRẮNG */

.nl-model-table tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}


/* XANH NHẠT */

.nl-model-table tbody tr:nth-child(even) td {
    background: #f0faf6 !important;
}


/* HOVER */

.nl-model-table tbody tr:hover td {
    background: #e5f7f0 !important;
}


/* MODEL */

.nl-model-table tbody td:first-child {
    color: #078563 !important;

    font-size: 13.5px !important;
    font-weight: 800 !important;

    white-space: nowrap;
}


/* =========================================================
   16.7 NOTE
========================================================= */

.nl-model-note {
    margin-top: 11px;

    color: #89938f;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   17. FULL WIDTH CARDS
========================================================= */

.nl-product-standard-section,
.nl-product-application-section,
.nl-product-description-section {
    position: relative;

    width: 100%;

    margin-top: 16px;

    overflow: hidden;

    border: 1px solid var(--nl-border);
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 8px 30px rgba(9, 80, 60, .035);
}

.nl-product-standard-section::before,
.nl-product-application-section::before,
.nl-product-description-section::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(90deg,
            #078563,
            #28cb8b);
}


/* =========================================================
   18. FULL CARD HEADING
========================================================= */

.nl-section-card-heading {
    padding:
        18px 16px 14px;

    border-bottom: 1px solid var(--nl-border-light);

    background:
        linear-gradient(90deg,
            rgba(40, 203, 139, .055),
            #ffffff 58%);
}

.nl-section-card-heading h2 {
    position: relative;

    margin: 0 !important;

    padding-left: 13px;

    color: #078563;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.35;
}

.nl-section-card-heading h2::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 4px;
    height: 19px;

    border-radius: 999px;

    background: #28cb8b;

    transform: translateY(-50%);
}


/* =========================================================
   19. STANDARDS
========================================================= */

.nl-standard-list {
    width: 100%;

    padding: 16px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.nl-standard-item {
    min-width: 0;
    min-height: 56px;

    padding: 10px 12px;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 1px solid #deebe5;
    border-radius: 8px;

    background: #f8fcfa;
}

.nl-standard-icon {
    flex: 0 0 30px;

    width: 30px;
    height: 30px;

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

    border-radius: 50%;

    background: #e8f8f2;

    color: #078563;
}

.nl-standard-icon i,
.nl-standard-icon svg {
    color: #078563 !important;
}

.nl-standard-icon svg {
    width: 17px !important;
    height: 17px !important;
}

.nl-standard-text {
    min-width: 0;

    color: #2f3935;

    font-size: 13.5px !important;
    font-weight: 600;

    line-height: 1.35;
}


/* =========================================================
   20. APPLICATION
========================================================= */

.nl-product-application-grid {
    width: 100%;

    padding: 16px;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;
}

.nl-product-application-item {
    min-width: 0;
    min-height: 112px;

    padding: 15px 10px 13px;

    display: flex;
    flex-direction: column;

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

    gap: 11px;

    border: 1px solid #e0ebe6;
    border-radius: 9px;

    background: #f8fcfa;

    text-align: center;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.nl-product-application-item:hover {
    transform: translateY(-3px);

    border-color: rgba(40, 203, 139, .7);

    background: #f2fbf7;

    box-shadow:
        0 8px 22px rgba(7, 133, 99, .08);
}

.nl-product-application-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

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

    border:
        1px solid rgba(7, 133, 99, .15);

    border-radius: 11px;

    background: #e8f8f2;

    color: #078563;
}

.nl-product-application-icon i,
.nl-product-application-icon svg {
    color: #078563 !important;
}

.nl-product-application-icon i {
    font-size: 22px !important;
}

.nl-product-application-icon svg {
    width: 22px !important;
    height: 22px !important;
}

.nl-product-application-name {
    color: #303936;

    font-size: 14px !important;
    font-weight: 600;

    line-height: 1.4;

    text-align: center;
}


/* =========================================================
   20.1 PRODUCT DESCRIPTION
   Mô tả dài WooCommerce hiển thị sau ỨNG DỤNG
========================================================= */

.nl-product-description-content {
    width: 100%;

    padding: 22px 20px 24px;

    color: var(--nl-text-2);

    font-size: 14px !important;
    line-height: 1.75 !important;
}

.nl-product-description-content> :first-child {
    margin-top: 0 !important;
}

.nl-product-description-content> :last-child {
    margin-bottom: 0 !important;
}

.nl-product-description-content p {
    margin: 0 0 14px;

    color: var(--nl-text-2);

    font-size: 14px !important;
    line-height: 1.75 !important;
}

.nl-product-description-content h2,
.nl-product-description-content h3,
.nl-product-description-content h4 {
    margin: 26px 0 12px !important;

    color: #078563;

    font-weight: 800;
    line-height: 1.35;

    text-transform: none !important;
}

.nl-product-description-content h2 {
    position: relative;

    padding-left: 12px;

    font-size: 20px !important;
}

.nl-product-description-content h2::before {
    content: "";

    position: absolute;

    top: .17em;
    left: 0;

    width: 4px;
    height: 1.05em;

    border-radius: 999px;

    background: #28cb8b;
}

.nl-product-description-content h3 {
    font-size: 17px !important;
}

.nl-product-description-content h4 {
    font-size: 15px !important;
}

.nl-product-description-content ul,
.nl-product-description-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.nl-product-description-content li {
    margin-bottom: 7px;

    color: var(--nl-text-2);

    font-size: 14px !important;
    line-height: 1.65 !important;
}

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

.nl-product-description-content strong,
.nl-product-description-content b {
    color: #1f2a26;
    font-weight: 700;
}

.nl-product-description-content a {
    color: #078563;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nl-product-description-content img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 18px auto;

    border-radius: 10px;
}

.nl-product-description-content figure {
    max-width: 100%;
    margin: 18px 0;
}

.nl-product-description-content figure img {
    margin: 0 auto;
}

.nl-product-description-content table {
    width: 100%;

    margin: 18px 0;

    border-collapse: collapse;

    font-size: 13.5px;
}

.nl-product-description-content th,
.nl-product-description-content td {
    padding: 10px 12px;

    border: 1px solid var(--nl-border);

    text-align: left;
    vertical-align: top;
}

.nl-product-description-content th {
    background: var(--nl-primary-soft);
    color: #078563;
    font-weight: 700;
}

.nl-product-description-content blockquote {
    margin: 18px 0;
    padding: 13px 16px;

    border-left: 4px solid #28cb8b;

    background: #f7fcfa;

    color: var(--nl-text-2);
}


/* =========================================================
   21. QUOTE MODAL
========================================================= */

.nl-quote-modal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    padding: 20px;

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

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.nl-quote-modal.is-open {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}

.nl-quote-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(10, 18, 15, .64);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nl-quote-modal-dialog {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 620px;

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

    padding: 30px;

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, .22);
}

.nl-quote-modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 38px !important;
    height: 38px !important;

    min-width: 38px !important;
    min-height: 38px !important;

    max-width: 38px !important;
    max-height: 38px !important;

    flex: 0 0 38px !important;

    aspect-ratio: 1 / 1;

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

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #f1f5f3 !important;

    color: #333b38 !important;

    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-align: center !important;

    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;

    overflow: hidden;

    cursor: pointer;
}

.nl-quote-modal-header {
    padding-right: 42px;
}

.nl-quote-modal-eyebrow {
    color: var(--nl-primary-dark);

    font-size: 11px;
    font-weight: 800;
}

.nl-quote-modal-header h2 {
    margin: 4px 0 7px !important;

    color: #111915;

    font-size: 27px;
    font-weight: 800;
}

.nl-quote-modal-header p {
    color: var(--nl-text-3);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   22. QUOTE FORM
========================================================= */

.nl-quote-form-grid {
    display: grid;

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

    gap: 14px;
}

.nl-quote-form label {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.nl-quote-form label>span {
    font-size: 11px;
    font-weight: 600;
}

.nl-quote-form input,
.nl-quote-form select,
.nl-quote-form textarea {
    width: 100%;

    margin: 0 !important;

    border: 1px solid #dce5e1 !important;
    border-radius: 7px !important;

    background: #ffffff !important;

    box-shadow: none !important;
}

.nl-quote-form input,
.nl-quote-form select {
    height: 44px !important;

    padding: 0 12px !important;
}

.nl-quote-form textarea {
    min-height: 105px;

    padding: 10px 12px !important;

    resize: vertical;
}

.nl-quote-form input:focus,
.nl-quote-form select:focus,
.nl-quote-form textarea:focus {
    border-color: var(--nl-primary) !important;

    outline: none;
}

.nl-quote-form-full {
    margin-top: 14px !important;
}

.nl-quote-submit {
    width: 100%;
    min-height: 49px;

    margin: 18px 0 0 !important;

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

    gap: 10px;

    border: 0 !important;
    border-radius: 7px !important;

    background:
        linear-gradient(135deg,
            #078563,
            #28cb8b) !important;

    color: #ffffff !important;

    font-size: 12px !important;
    font-weight: 800 !important;
}


/* =========================================================
   23. <= 1450PX
========================================================= */

@media (max-width: 1450px) {

    :root {
        --nl-container: 1320px;
    }

    .nl-product-layout {
        grid-template-columns:
            minmax(0, 1fr) 350px;

        gap: 20px;
    }

    .nl-product-top {
        grid-template-columns:
            minmax(0, 1.16fr) minmax(350px, .84fr);

        gap: 20px;
    }

    .nl-product-gallery {
        --nl-gallery-thumb-size: 74px;

        grid-template-columns:
            76px minmax(0, 1fr);
    }

    .nl-gallery-thumb {
        width: 74px;
        height: 74px;
    }

    .nl-main-image-wrap {
        min-height: 470px;
    }

    .nl-main-product-image {
        height: 470px;
    }

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

}


/* =========================================================
   24. <= 1180PX
========================================================= */

@media (max-width: 1180px) {

    .nl-product-layout {
        grid-template-columns: 1fr;
    }

    .nl-product-sidebar {
        position: static;

        display: grid;

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

        gap: 14px;
    }

    .nl-standard-list {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .nl-product-application-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


/* =========================================================
   25. <= 900PX
========================================================= */

@media (max-width: 900px) {

    .nl-product-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nl-product-top {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .nl-product-title {
        font-size: 34px;
    }

    .nl-standard-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .nl-product-application-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   26. MOBILE <= 767PX
========================================================= */

@media (max-width: 767px) {

    .nl-product-container {
        padding-left: 14px;
        padding-right: 14px;
    }


    /* BREADCRUMB */

    .nl-product-breadcrumb {
        min-height: 42px;

        padding: 8px 0;

        font-size: 10.5px;
    }

    .nl-breadcrumb-current {
        display: none;
    }


    /* GALLERY */

    .nl-product-gallery {
        display: flex;

        flex-direction: column;

        gap: 10px;
    }

    .nl-gallery-main {
        order: 1;
    }

    .nl-gallery-thumbnails-shell {
        order: 2;

        width: 100%;

        display: block;
    }

    .nl-gallery-nav {
        display: none !important;
    }

    .nl-gallery-thumbnails {
        width: 100%;

        max-height: none;

        flex-direction: row;

        gap: 8px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .nl-gallery-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .nl-gallery-thumb {
        flex: 0 0 67px;

        width: 67px;
        height: 67px;
    }

    .nl-main-image-wrap {
        min-height: 355px;
    }

    .nl-main-product-image {
        height: 355px;
    }


    /* PRODUCT */

    .nl-product-title {
        font-size: 30px;

        line-height: 1.12;
    }

    .nl-product-subtitle {
        font-size: 17px;
    }

    .nl-product-short-description,
    .nl-product-short-description p,
    .nl-product-short-description ul,
    .nl-product-short-description ol {
        font-size: 14px !important;
    }

    .nl-product-variations {
        margin-top: 17px;
        padding-top: 15px;
    }

    .nl-variation-fields {
        gap: 16px;
    }

    .nl-variation-field-head {
        margin-bottom: 8px;
    }

    .nl-variation-field-label {
        font-size: 13.5px !important;
    }

    .nl-variation-options {
        gap: 8px;
    }

    .nl-variation-option {
        min-width: 92px;
        min-height: 46px;

        padding: 8px 13px !important;

        font-size: 12.5px !important;
    }


    /* CTA */

    .nl-product-actions {
        grid-template-columns: 1fr;

        gap: 9px;
    }

    .nl-product-action {
        min-height: 49px;
    }


    /* THÔNG SỐ KỸ THUẬT CHUNG ĐƯỢC JS ĐƯA LÊN TRƯỚC MODEL */

    .nl-product-primary>.nl-spec-card {
        width: 100%;
        margin-top: 20px;
    }


    /* SIDEBAR */

    .nl-product-sidebar {
        display: flex;

        flex-direction: column;

        gap: 12px;
    }

    .nl-specification-row {
        grid-template-columns:
            minmax(0, 1fr) minmax(120px, .9fr);

        gap: 10px;
    }

    .nl-contact-links {
        flex-direction: column;

        justify-content: center;

        gap: 10px;
    }


    /* =====================================================
       MODEL CARD MOBILE
    ===================================================== */

    .nl-product-models {
        width: 100%;

        padding:
            0 12px 12px;

        overflow: hidden;

        border-radius: 10px;
    }

    .nl-product-models .nl-block-heading {
        margin:
            0 -12px 12px;

        padding:
            15px 12px 12px;
    }

    .nl-product-models .nl-block-heading h2 {
        font-size: 15px;
    }


    /* =====================================================
       PHẦN QUAN TRỌNG:
       WRAPPER PHẢI SCROLL NGANG
    ===================================================== */

    .nl-model-table-scroll {
        position: relative;

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch !important;

        /*
         * Cho phép scroll dọc trang.
         * JS sẽ xử lý khi người dùng kéo ngang.
         */
        touch-action: pan-y !important;

        overscroll-behavior-x: contain;

        pointer-events: auto !important;

        scrollbar-width: thin;
    }


    /*
     * BẢNG PHẢI RỘNG HƠN MÀN HÌNH
     * MỚI CÓ KHÔNG GIAN ĐỂ VUỐT NGANG
     */

    .nl-model-table {
        width: 100% !important;
        min-width: 1000px !important;
        max-width: none !important;

        /*
         * Cho phép bảng tự nở khi có cột thứ 8, 9, 10...
         * thay vì ép toàn bộ vào đúng 1000px.
         */
        table-layout: auto !important;
    }


    /* MOBILE COLUMN WIDTH */

    .nl-model-table th,
    .nl-model-table td {
        min-width: 125px;
    }

    .nl-model-table th:nth-child(1),
    .nl-model-table td:nth-child(1) {
        width: 155px !important;
        min-width: 155px !important;
    }

    .nl-model-table th:nth-child(2),
    .nl-model-table td:nth-child(2) {
        width: 135px !important;
        min-width: 135px !important;
    }

    .nl-model-table th:nth-child(3),
    .nl-model-table td:nth-child(3) {
        width: 170px !important;
        min-width: 170px !important;
    }

    .nl-model-table th:nth-child(4),
    .nl-model-table td:nth-child(4) {
        width: 140px !important;
        min-width: 140px !important;
    }

    .nl-model-table th:nth-child(5),
    .nl-model-table td:nth-child(5) {
        width: 130px !important;
        min-width: 130px !important;
    }

    .nl-model-table th:nth-child(6),
    .nl-model-table td:nth-child(6) {
        width: 165px !important;
        min-width: 165px !important;
    }

    .nl-model-table th:nth-child(7),
    .nl-model-table td:nth-child(7) {
        width: 105px !important;
        min-width: 105px !important;
    }

    .nl-model-table th:nth-child(n + 8),
    .nl-model-table td:nth-child(n + 8) {
        width: 135px !important;
        min-width: 135px !important;
    }


    .nl-model-table thead th {
        padding: 13px 8px !important;

        font-size: 11px !important;

        line-height: 1.3;
    }

    .nl-model-table tbody td {
        padding: 13px 8px !important;

        font-size: 12px !important;

        white-space: nowrap;
    }

    .nl-model-table tbody td:first-child {
        font-size: 12.5px !important;
    }


    /* STANDARD */

    .nl-standard-list {
        padding: 12px;

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

        gap: 8px;
    }


    /* APPLICATION */

    .nl-product-application-grid {
        padding: 12px;

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

        gap: 9px;
    }

    .nl-product-application-item {
        min-height: 105px;
    }

    .nl-product-application-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;
    }

    .nl-product-application-icon i {
        font-size: 20px !important;
    }


    /* PRODUCT DESCRIPTION */

    .nl-product-description-content {
        padding: 17px 14px 19px;

        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    .nl-product-description-content p,
    .nl-product-description-content li {
        font-size: 14px !important;
    }

    .nl-product-description-content h2 {
        margin-top: 22px !important;
        font-size: 18px !important;
    }

    .nl-product-description-content h3 {
        font-size: 16px !important;
    }

    .nl-product-description-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    /* FORM */

    .nl-quote-form-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   27. SMALL MOBILE <= 430PX
========================================================= */

@media (max-width: 430px) {

    .nl-variation-options {
        gap: 7px;
    }

    .nl-variation-option {
        min-width: 88px;
        min-height: 44px;

        padding: 7px 11px !important;

        font-size: 12px !important;
    }

    .nl-main-image-wrap {
        min-height: 310px;
    }

    .nl-main-product-image {
        height: 310px;
    }

    .nl-product-title {
        font-size: 28px;
    }

    .nl-standard-list {
        grid-template-columns: 1fr;
    }

    .nl-product-application-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /*
     * MODEL TỐI THIỂU 1000PX.
     * Nếu có thêm cột, bảng tự mở rộng lớn hơn 1000px.
     */

    .nl-model-table {
        width: 100% !important;
        min-width: 1000px !important;
        max-width: none !important;
        table-layout: auto !important;
    }

}


/* =========================================================
   28. FORCE PRODUCT FONT
========================================================= */

.nationled-single-product .nl-product-short-description,

.nationled-single-product .nl-product-short-description p,

.nationled-single-product .nl-product-short-description ul,

.nationled-single-product .nl-product-short-description ol {
    font-size: 14px !important;
}


/* =========================================================
   29. FORCE SPECIFICATION FONT
========================================================= */

.nationled-single-product .nl-specification-name,

.nationled-single-product .nl-specification-label,

.nationled-single-product .nl-specification-value {
    font-size: 15px !important;
    line-height: 1.5 !important;
}


/* =========================================================
   30. FORCE FONT AWESOME COLOR
========================================================= */

.nationled-single-product .nl-consult-icon,

.nationled-single-product .nl-contact-phone-icon,

.nationled-single-product .nl-contact-email-icon,

.nationled-single-product .nl-specification-fa-icon i,

.nationled-single-product .nl-specification-fa-icon svg,

.nationled-single-product .nl-standard-icon i,

.nationled-single-product .nl-standard-icon svg,

.nationled-single-product .nl-product-application-icon i,

.nationled-single-product .nl-product-application-icon svg {
    color: #078563 !important;
}


/* =========================================================
   31. FORCE MODEL TABLE COLOR
========================================================= */

.nationled-single-product .nl-model-table thead th {
    background:
        linear-gradient(135deg,
            #078563 0%,
            #09946d 100%) !important;

    color: #ffffff !important;
}

.nationled-single-product .nl-model-table tbody tr:nth-child(odd) td {
    background: #ffffff !important;
}

.nationled-single-product .nl-model-table tbody tr:nth-child(even) td {
    background: #f0faf6 !important;
}

.nationled-single-product .nl-model-table tbody tr:hover td {
    background: #e5f7f0 !important;
}

.nationled-single-product .nl-model-table tbody td:first-child {
    color: #078563 !important;

    font-weight: 800 !important;
}


/* =========================================================
   32. FORCE MODEL MOBILE HORIZONTAL SCROLL
   CHỐNG FLATSOME GHI ĐÈ
========================================================= */

@media (max-width: 767px) {

    .nationled-single-product .nl-product-models .nl-model-table-scroll {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch !important;

        touch-action: pan-y !important;

        overscroll-behavior-x: contain !important;

        pointer-events: auto !important;
    }


    .nationled-single-product .nl-product-models .nl-model-table {
        width: 100% !important;
        min-width: 1000px !important;
        max-width: none !important;
        table-layout: auto !important;
    }

}


/* =========================================================
   33. GALLERY DESKTOP - THUMBNAIL XUỐNG DƯỚI ẢNH LỚN
   ---------------------------------------------------------
   MỤC TIÊU:
   - Ảnh lớn giữ nguyên đúng chiều ngang trước khi sửa.
   - Cột thumbnail cũ được chuyển xuống dưới ảnh lớn.
   - Phần chiều ngang được giải phóng từ thumbnail + gap
     được cộng sang cột thông tin sản phẩm.
   - Sidebar và các cột còn lại không thay đổi kích thước.
   - Desktop hiển thị tối đa 5 thumbnail trong một hàng.
========================================================= */

@media (min-width: 901px) {

    /*
     * Bố cục cũ:
     * - Gallery chiếm 58% phần khả dụng.
     * - Bên trong Gallery có 84px thumbnail + 13px gap.
     *
     * Bố cục mới:
     * - Trừ đúng 97px khỏi Gallery.
     * - Phần 97px đó tự động chuyển sang Product Info.
     * - Vì vậy ảnh lớn giữ nguyên chiều ngang như trước.
     */

    .nl-product-top.nl-product-top-has-thumbnails {
        grid-template-columns:
            minmax(0, calc(58% - 112.08px)) minmax(0, 1fr);

        gap: 26px;
    }


    /* GALLERY CHỈ CÒN 1 CỘT */

    .nl-product-top-has-thumbnails .nl-product-gallery {
        min-width: 0;

        display: flex;
        flex-direction: column;

        gap: 10px;
    }


    /* ẢNH LỚN LUÔN Ở TRÊN */

    .nl-product-top-has-thumbnails .nl-gallery-main {
        order: 1;

        width: 100%;
        min-width: 0;
    }


    /* THUMBNAIL LUÔN Ở DƯỚI ẢNH LỚN */

    .nl-product-top-has-thumbnails .nl-gallery-thumbnails-shell {
        order: 2;

        width: 100%;
        min-width: 0;

        display: flex;
        flex-direction: row;

        /*
         * Cho 2 nút điều hướng giãn đúng bằng
         * chiều cao của hàng thumbnail.
         */
        align-items: stretch;

        gap: 7px;
    }


    /* DANH SÁCH THUMBNAIL CHẠY NGANG */

    .nl-product-top-has-thumbnails .nl-gallery-thumbnails {
        flex: 1 1 auto;

        width: auto;
        min-width: 0;
        max-height: none;

        padding: 0;

        display: flex;
        flex-direction: row;

        gap: 8px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-behavior: smooth;
        scroll-snap-type: x proximity;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .nl-product-top-has-thumbnails .nl-gallery-thumbnails::-webkit-scrollbar {
        display: none;

        width: 0;
        height: 0;
    }


    /*
     * 5 thumbnail luôn vừa đúng phần chiều ngang còn lại.
     * Không ép kích thước cố định nên vẫn responsive tốt
     * khi cột ảnh thay đổi theo màn hình.
     */

    .nl-product-top-has-thumbnails .nl-gallery-thumb {
        flex:
            0 0 calc((100% - 32px) / 5);

        width:
            calc((100% - 32px) / 5);

        height: auto;
        min-width: 0;

        aspect-ratio: 1 / 1;

        scroll-snap-align: start;
    }


    /* MŨI TÊN TRÁI / PHẢI */

    .nl-product-top-has-thumbnails .nl-gallery-nav {
        /*
         * Nút trái / phải dạng thanh dọc:
         * - chiều ngang hẹp hơn
         * - chiều cao tự giãn bằng thumbnail
         */
        flex: 0 0 24px;

        width: 24px !important;
        height: auto !important;

        min-width: 24px !important;
        min-height: 0 !important;
        max-width: 24px !important;

        align-self: stretch;

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

        border-radius: 6px !important;
    }

    .nl-product-top-has-thumbnails .nl-gallery-nav i,
    .nl-product-top-has-thumbnails .nl-gallery-nav svg {
        font-size: 11px !important;
    }

    .nl-product-top-has-thumbnails .nl-gallery-nav svg {
        width: 11px !important;
        height: 11px !important;
    }

}


/* =========================================================
   33.1 <= 1450PX
   ---------------------------------------------------------
   Bố cục cũ tại breakpoint này:
   - Thumbnail column = 76px
   - Gap = 13px
   => Tổng phần cần chuyển sang Product Info = 89px.
========================================================= */

@media (min-width: 901px) and (max-width: 1450px) {

    .nl-product-top.nl-product-top-has-thumbnails {
        grid-template-columns:
            minmax(0, calc(58% - 100.6px)) minmax(0, 1fr);

        gap: 20px;
    }

}


/* =========================================================
   33.2 TABLET 768PX - 900PX
   ---------------------------------------------------------
   Ở breakpoint này Product Info đã xuống dưới Gallery,
   vì vậy thumbnail cũng chuyển ngang xuống dưới ảnh lớn.
   Nút điều hướng được ẩn và người dùng kéo ngang trực tiếp.
========================================================= */

@media (min-width: 768px) and (max-width: 900px) {

    .nl-product-gallery {
        min-width: 0;

        display: flex;
        flex-direction: column;

        gap: 10px;
    }

    .nl-gallery-main {
        order: 1;

        width: 100%;
        min-width: 0;
    }

    .nl-gallery-thumbnails-shell {
        order: 2;

        width: 100%;

        display: block;
    }

    .nl-gallery-nav {
        display: none !important;
    }

    .nl-gallery-thumbnails {
        width: 100%;
        max-height: none;

        display: flex;
        flex-direction: row;

        gap: 8px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .nl-gallery-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .nl-gallery-thumb {
        flex: 0 0 72px;

        width: 72px;
        height: 72px;
    }

}


/* =========================================================
   34. DESKTOP - TANG NHE KICH THUOC ANH LON, GIU TY LE VUONG
   ---------------------------------------------------------
   - Tang nhe chieu rong cot gallery.
   - Chieu cao anh tu dong bang chieu rong (1:1).
   - Thumbnail van nam ben duoi anh lon.
   - Chi lay them khong gian tu cot thong tin san pham.
   - Sidebar va cac cot khac khong doi kich thuoc.
========================================================= */

@media (min-width: 1451px) {

    .nl-product-top.nl-product-top-has-thumbnails {
        grid-template-columns:
            minmax(0, calc(58% - 80px)) minmax(0, 1fr);
    }

    .nl-product-top-has-thumbnails .nl-main-image-wrap {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    .nl-product-top-has-thumbnails .nl-main-product-image {
        width: 100%;
        height: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        object-position: center;
    }

}

@media (min-width: 901px) and (max-width: 1450px) {

    .nl-product-top.nl-product-top-has-thumbnails {
        grid-template-columns:
            minmax(0, calc(58% - 72px)) minmax(0, 1fr);
    }

    .nl-product-top-has-thumbnails .nl-main-image-wrap {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    .nl-product-top-has-thumbnails .nl-main-product-image {
        width: 100%;
        height: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        object-position: center;
    }

}