/* ==========================================================
   STYLE BẢNG DỮ LIỆU & CHI TIẾT SẢN PHẨM
   ========================================================== */
table {
    color: #3e3e40;
    line-height: 28px;
    background: transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: solid 2px #d73636;
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
}

thead {
    color: #3e3e40;
    line-height: 28px;
    pointer-events: auto;
    visibility: inherit;
    border-spacing: 0;
    border-collapse: collapse;
    background: transparent;
    margin: 0;
    box-sizing: border-box;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

thead th {
    font-size: 30px;
    background: linear-gradient(to bottom, #b6b5b5 0%, #d8d7d7 50%, #b6b5b5 100%);
    color: #222;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    font-weight: bold;
    border-bottom: 2px solid #999;
    padding: 10px 15px;
}

th {
    line-height: 28px;
    pointer-events: auto;
    visibility: inherit;
    border-spacing: 0;
    border-collapse: collapse;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    text-transform: uppercase;
    background-color: #fff !important;
    color: black !important;
    font-size: 16px;
    border-bottom: 1px solid #d73636 !important;
    border-top: 1px solid #d73636 !important;
    font-weight: bold;
    padding: 10px 15px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    background: linear-gradient(to bottom, #d8d8d8 0%, #ebe9e9 50%, #d8d8d8 100%);
}

th:first-child, th:nth-child(2) {
    border-right: 1px solid #a9a7a7 !important;
}

table.std-table th {
    background: #BCBCBC;
    text-align: left;
    padding-left: 15px;
    background-color: transparent !important;
    border-bottom: 1px solid #a9a7a7 !important;
    border-top: 1px solid #a9a7a7 !important;
}

td {
    color: black;
    line-height: 28px;
    pointer-events: auto;
    visibility: inherit;
    border-spacing: 0;
    border-collapse: collapse;
    background: transparent;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #a9a7a7;
    padding: 5px 0;
    font-size: 16px;
    font-weight: 400;
}

table.std-table td, td:first-child {
    text-align: left;
    padding-left: 15px;
}

tr:nth-child(even) { background-color: #f2f2f2; }
tr:hover { background-color: #ddd; }

* { box-sizing: border-box; }

/* ==========================================================
   STYLE DVT-TABS & SH_SPECS
   ========================================================== */
.dvt-tabs {
    max-width: 1100px;
    margin: 24px auto;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
    color: #111;
    background: #fff;
}

.dvt-tab-list {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #f9f9f9);
    align-items: center;
    overflow: auto;
}

.dvt-tab-list::-webkit-scrollbar { height: 8px; }
.dvt-tab-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 999px; }

.dvt-tab {
    appearance: none;
    border: 2px solid transparent;
    background: linear-gradient(180deg, #ececec, #d9d9d9);
    color: #222;
    padding: 14px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 130px;
    text-align: center;
    transition: transform .15s ease, box-shadow .12s ease, background .2s ease, border .2s ease;
    overflow: auto;
}

.dvt-tab.inactive {
    background: linear-gradient(180deg, #e4e4e4, #d4d4d4);
    color: #333;
    border: 1px solid #aaa;
}

.dvt-tab:hover {
    background: linear-gradient(180deg, #d8d8d8, #c8c8c8);
    border-color: #888;
}

.dvt-tab.active {
    background: linear-gradient(180deg, #666, #444);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border: 2px solid #cc0000;
}

.dvt-tab:focus { outline: 3px solid rgba(204, 0, 0, 0.18); }

.dvt-tab-panels {
    padding: 20px;
    background: #f5f5f6;
    min-height: 220px;
    overflow: auto;
}

.dvt-tab-panel { display: none; }
.dvt-tab-panel.active { display: block; }

h2 { margin-top: 0; }
.meta { color: #666; font-size: 0.9rem; }
.hint { font-size: 0.85rem; color: #666; text-align: right; padding: 6px 12px; }
.gioi-thieu th { font-size: 14px !important; line-height: 18px; }

/* Specs-container */
.specs-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
}

.specs-container .spec-col {
    flex: 1 1 0;
    text-align: center;
    background-color: #fff;
    padding: 15px 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 6px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.specs-container .spec-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.specs-container .spec-col p:first-child {
    font-size: 34px;
    font-weight: 700;
    color: #e52121;
    margin: 0 0 5px 0;
    line-height: 36px;
}

.specs-container .spec-col p:last-child {
    font-size: 18px;
    color: #202021;
    margin: 0;
    font-weight: 600;
}

/* ==========================================================
   XZOOM & LAYOUT RESPONSIVE
   ========================================================== */
#magnific { max-width: 1230px; margin: 0 auto; }
.xzoom-container {
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    overflow: hidden;
}

.xzoom5 { display: block; width: 100%; border-radius: 6px; }
.xzoom-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #f2f2f2;
    border-top: 1px solid #ddd;
}

.xzoom-thumbs img {
    width: 80px;
    border-radius: 6px;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.xzoom-thumbs img:hover, .xzoom-thumbs .xactive {
    border-color: #b00000;
    box-shadow: 0 4px 8px rgba(176, 0, 0, .4);
}

#cot-1 { width: 30%; }
#cot-2 { flex: 1; }
#menu-icon89, #drawer89 { display: none; }
#haas1 { width: 90%; }

#smoothmenus_124 li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #f4f4f4;
    min-width: 150px;
}

#smoothmenus_124 li:hover > ul { display: block; }

.heading1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-content: center;
    flex-direction: row;
}

/* SEO Keyword Box & Download PDF Button */
.seo-keyword-box {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-family: sans-serif;
    overflow: hidden;
}

.seo-keyword-box summary {
    cursor: pointer;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    background: #eee;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
}

.seo-keyword-box summary:hover { background: #ddd; }
.keyword-content { padding: 12px 16px; font-size: 14px; color: #444; line-height: 1.6; }

.seo-keyword-box summary::before { content: '+ '; font-weight: bold; color: #888; }
.seo-keyword-box[open] summary::before { content: '- '; color: #444; }

#btn-download-specs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #cc0000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#btn-download-specs:hover { background-color: #aa0000; }
#btn-download-specs:active { transform: scale(0.98); }
#btn-download-specs svg { width: 16px; height: 16px; stroke: currentColor; }

/* MEDIA QUERIES RESPONSIVE */
@media (max-width: 800px) {
    .dvt-tabs { border-radius: 8px; }
    .dvt-tab-list { flex-direction: column; align-items: stretch; padding: 8px; }
    .dvt-tab { min-width: 0; padding: 14px; border-radius: 6px; }
    .dvt-tab.inactive { border: 1px solid #aaa; }
}

@media (max-width: 768px) {
    .specs-container { display: none; }
    #cot-1 { display: none; }
    #menu-icon89 {
        display: block;
        position: fixed;
        right: 5px;
        top: 40%;
        transform: translateY(-50%);
        font-size: 13px;
        color: #fff;
        background-color: #e91d1d;
        padding: 12px;
        border-radius: 5%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.4);
        cursor: pointer;
        z-index: 1001;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    #menu-icon89:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    }
    #drawer89 {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(241, 237, 237, 0.95);
        color: #fff;
        z-index: 1000;
        overflow-y: auto;
        padding: 50px 20px;
    }
    #drawer89 .drawer-content { max-width: 500px; margin: auto; text-align: center; }
    #drawer89 .menu-item { margin: 20px 0; font-size: 24px; }
    #close-drawer89 {
        font-size: 42px;
        color: #ff5722;
        cursor: pointer;
        position: absolute;
        top: -10px;
        right: 30px;
        background-color: rgba(255,255,255,0.1);
        padding: 8px 12px;
        border-radius: 8px;
        transition: background-color 0.2s, transform 0.2s;
    }
    #close-drawer89:hover { background-color: rgba(255,255,255,0.3); transform: scale(1.1); }
    #smoothmenus_124 > ul > li { display: block; position: relative; width: 100%; }
    #smoothmenus_124 li ul { position: static; display: none; box-shadow: none; width: 100%; }
    #smoothmenus_124 li ul li a { display: block; width: 100%; padding: 10px 20px; box-sizing: border-box; }
    #smoothmenus_124 li.active > ul { display: block; width: 100%; }
    #smoothmenus_124 > ul > li > a { pointer-events: auto; width: 100%; }
    .heading1 { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 5px; }
}