/* Điều Hòa Nam Anh — product custom fields. */

/* =========================================================
   NAM ANH PRODUCT CUSTOM TABS
   MODERN BLUE UI
========================================================= */

:root {

    --na-primary: #0878E8;
    --na-primary-dark: #0560BE;
    --na-primary-light: #EAF5FF;

    --na-text: #172033;
    --na-text-2: #475569;
    --na-muted: #718096;

    --na-border: #E3EAF2;

    --na-bg: #F7FAFD;

    --na-green: #16A34A;
    --na-red: #E53935;

    --na-radius: 16px;

}


/* =========================================================
   WOOCOMMERCE TAB NAVIGATION
========================================================= */

.single-product .woocommerce-tabs {

    margin-top: 35px;

}


.single-product .woocommerce-tabs .wc-tabs {

    display: flex !important;

    align-items: center;

    gap: 6px;

    margin: 0 !important;

    padding: 7px !important;

    background: #F1F5F9;

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

    border-radius: 14px;

}


.single-product .woocommerce-tabs .wc-tabs > li {

    margin: 0 !important;

    padding: 0 !important;

    border: 0 !important;

}


.single-product .woocommerce-tabs .wc-tabs > li > a {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 0 23px !important;

    border-radius: 9px;

    color: #64748B !important;

    font-size: 14px;

    font-weight: 700;

    text-transform: none !important;

    transition: all .25s ease;

}


.single-product .woocommerce-tabs .wc-tabs > li > a:hover {

    color: var(--na-primary) !important;

    background: #fff;

}


.single-product .woocommerce-tabs .wc-tabs > li.active > a {

    color: #fff !important;

    background: linear-gradient(
        135deg,
        var(--na-primary),
        var(--na-primary-dark)
    );

    box-shadow:
        0 7px 18px rgba(8,120,232,.23);

}


.single-product .woocommerce-tabs .wc-tabs > li > a:after {

    display: none !important;

}


/* =========================================================
   TAB PANEL
========================================================= */

.single-product .woocommerce-tabs .tab-panels {
    margin-top: 18px;
    padding: 32px !important;
    background: transparent !important;
}


.single-product .woocommerce-tabs .tab-panels .panel {
    margin: 0 !important;
}


/* =========================================================
   GENERAL SECTION
========================================================= */

.na-product-section {

    /* padding: 32px; */

    background: #fff;

    /* border: 1px solid var(--na-border);

    border-radius: var(--na-radius);

    box-shadow:
        0 8px 30px rgba(24,65,105,.055); */

}


/* =========================================================
   SECTION HEADER
========================================================= */

.na-section-heading {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 25px;

}


.na-heading-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 46px;

    height: 46px;

    flex: 0 0 46px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        var(--na-primary),
        var(--na-primary-dark)
    );

    color: #fff;

    font-size: 20px;

    box-shadow:
        0 8px 18px rgba(8,120,232,.20);

}


.na-heading-label {

    display: block;

    margin-bottom: 3px;

    color: var(--na-primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

}


.na-section-heading h2 {

    margin: 0 !important;

    color: var(--na-text);

    font-size: 24px !important;

    line-height: 1.3;

    font-weight: 750 !important;

}


.na-section-heading p {

    margin: 3px 0 0;

    color: var(--na-muted);

    font-size: 13px;

}


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

.na-spec-table {

    overflow: hidden;

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

    border-radius: 12px;

}


.na-spec-row {

    display: grid;

    grid-template-columns: 38% 62%;

    min-height: 50px;

    border-bottom: 1px solid #EDF1F5;

    transition: background .2s ease;

}


.na-spec-row:last-child {

    border-bottom: 0;

}


.na-spec-row:hover {

    background: #F8FBFF;

}


.na-spec-name {

    display: flex;

    align-items: center;

    padding: 12px 18px;

    background: #F8FAFC;

    color: #526276;

    font-size: 13px;

    font-weight: 600;

}


.na-spec-value {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 12px 18px;

    color: var(--na-text);

    font-size: 14px;

    font-weight: 600;

}


.na-spec-unit {

    display: inline-flex;

    align-items: center;

    padding: 3px 8px;

    border-radius: 5px;

    background: var(--na-primary-light);

    color: var(--na-primary);

    font-size: 11px;

    font-weight: 700;

}


/* =========================================================
   INSTALLATION
========================================================= */

.na-installation-groups {

    display: flex;

    flex-direction: column;

    gap: 18px;

}


.na-installation-group {

    overflow: hidden;

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

    border-radius: 12px;

}


.na-installation-title {

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 48px;

    padding: 10px 16px;

    background: linear-gradient(
        90deg,
        #EFF7FF,
        #F8FBFF
    );

    color: var(--na-text);

    font-size: 14px;

    font-weight: 750;

}


.na-installation-title-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 25px;

    height: 25px;

    border-radius: 7px;

    background: var(--na-primary);

    color: #fff;

    font-size: 17px;

}


/* Installation table */

.na-installation-table {

    width: 100%;

}


.na-installation-head,
.na-installation-row {

    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        100px
        100px
        150px;

}


.na-installation-head {

    background: #F8FAFC;

    color: #64748B;

    font-size: 11px;

    font-weight: 750;

    text-transform: uppercase;

}


.na-installation-head > div,
.na-installation-row > div {

    padding: 12px 15px;

}


.na-installation-row {

    border-top: 1px solid #EDF1F5;

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

    font-size: 13px;

    transition: background .2s ease;

}


.na-installation-row:hover {

    background: #F8FBFF;

}


.na-material {

    color: var(--na-text) !important;

    font-weight: 600;

}


.na-price {

    color: var(--na-primary) !important;

    font-weight: 750;

}


/* =========================================================
   INSTALLATION NOTE
========================================================= */

.na-installation-note {

    display: flex;

    gap: 12px;

    margin-top: 20px;

    padding: 15px 17px;

    border: 1px solid #D8EAFB;

    border-radius: 10px;

    background: #F2F8FF;

}


.na-note-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 25px;

    height: 25px;

    flex: 0 0 25px;

    border-radius: 50%;

    background: var(--na-primary);

    color: #fff;

    font-size: 12px;

    font-weight: 800;

}


.na-installation-note strong {

    display: block;

    margin-bottom: 2px;

    color: var(--na-text);

    font-size: 13px;

}


.na-installation-note p {

    margin: 0;

    color: #64748B;

    font-size: 12px;

    line-height: 1.6;

}


/* =========================================================
   CERTIFICATE
========================================================= */

.na-certificate-box {

    display: flex;

    justify-content: center;

    padding: 25px;

    background: #F8FAFC;

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

    border-radius: 13px;

}


.na-certificate-image {

    position: relative;

    display: block;

    max-width: 850px;

    overflow: hidden;

    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(20,65,110,.10);

}


.na-certificate-image img {

    display: block;

    width: 100%;

    height: auto;

    margin: 0 !important;

    border-radius: 10px;

    transition: transform .35s ease;

}


.na-certificate-image:hover img {

    transform: scale(1.015);

}


.na-certificate-zoom {

    position: absolute;

    right: 15px;

    bottom: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    background: rgba(8,120,232,.92);

    color: #fff;

    font-size: 17px;

    opacity: 0;

    transform: translateY(5px);

    transition: all .25s ease;

}


.na-certificate-image:hover .na-certificate-zoom {

    opacity: 1;

    transform: translateY(0);

}


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

@media (max-width: 767px) {

  .single-product .woocommerce-tabs .tab-panels {
      padding: 16px !important;
  }

    .single-product .woocommerce-tabs .wc-tabs {

        overflow-x: auto;

        scrollbar-width: none;

        gap: 4px;

    }


    .single-product .woocommerce-tabs .wc-tabs::-webkit-scrollbar {

        display: none;

    }


    .single-product .woocommerce-tabs .wc-tabs > li {

        flex: 0 0 auto;

    }


    .single-product .woocommerce-tabs .wc-tabs > li > a {

        min-height: 43px;

        padding: 0 14px !important;

        font-size: 12px;

        white-space: nowrap;

    }


    .na-product-section {
        border-radius: 12px;
    }


    .na-section-heading {

        gap: 10px;

        margin-bottom: 18px;

    }


    .na-heading-icon {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

        border-radius: 10px;

        font-size: 17px;

    }


    .na-section-heading h2 {

        font-size: 20px !important;

    }


    .na-section-heading p {

        font-size: 12px;

    }


    /* Specification */

    .na-spec-row {

        display: block;

    }


    .na-spec-name {

        padding: 9px 13px;

        background: #F5F8FC;

        font-size: 11px;

    }


    .na-spec-value {

        padding: 10px 13px 12px;

        font-size: 13px;

    }


    /* Installation */

    .na-installation-head {

        display: none;

    }


    .na-installation-row {

        display: block;

        padding: 10px 14px;

    }


    .na-installation-row > div {

        display: flex;

        justify-content: space-between;

        gap: 15px;

        padding: 5px 0;

    }


    .na-installation-row > div::before {

        content: attr(data-label);

        color: #718096;

        font-size: 11px;

        font-weight: 600;

    }


    .na-installation-row .na-material {

        display: block;

        padding-bottom: 8px;

        margin-bottom: 4px;

        border-bottom: 1px dashed #E2E8F0;

    }


    .na-installation-row .na-material::before {

        display: none;

    }


    .na-installation-note {

        padding: 13px;

    }


    .na-certificate-box {

        padding: 12px;

    }

}

