/* =========================================================
   BẢNG THÔNG SỐ KỸ THUẬT (ACF) - áp cho cả bảng rút gọn & popup
   ========================================================= */

.tskt-short table.shop_attributes,
.tskt-popup-body table.shop_attributes {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 1px solid #e8e8e8 !important;
    border-collapse: collapse !important;
    table-layout: fixed;
    font-size: 13.5px;
    background: #fff;
}

.tskt-short table.shop_attributes tr,
.tskt-popup-body table.shop_attributes tr {
    height: auto !important;
    border-radius: 0 !important;
}

.tskt-short table.shop_attributes td,
.tskt-popup-body table.shop_attributes td {
    height: auto !important;
    padding: 9px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    vertical-align: top !important;
    line-height: 1.55;
    color: #333;
    background: transparent !important;
    font-style: normal !important;
	font-size: 14px;
}

/* Cột nhãn / cột giá trị */
.tskt-short table.shop_attributes td:first-child,
.tskt-popup-body table.shop_attributes td:first-child {
    width: 38% !important;
    color: #555;
}

.tskt-short table.shop_attributes td:last-child,
.tskt-popup-body table.shop_attributes td:last-child {
    width: 62% !important;
    color: #1a1a1a;
}

/* Kẻ sọc xen kẽ */
.tskt-short table.shop_attributes tbody tr:nth-child(odd) td,
.tskt-popup-body table.shop_attributes tbody tr:nth-child(odd) td {
    background: #fff !important;
}

/* ===== HÀNG TIÊU ĐỀ NHÓM (chữ đỏ #ed1c24) ===== */
.tskt-short table.shop_attributes td span[style*="ed1c24"],
.tskt-short table.shop_attributes td span[style*="ED1C24"],
.tskt-popup-body table.shop_attributes td span[style*="ed1c24"],
.tskt-popup-body table.shop_attributes td span[style*="ED1C24"] {
    color: #ed1c24 !important;
    font-size: 16px;
    text-transform: none;
}

.tskt-short table.shop_attributes td span[style*="ed1c24"] b,
.tskt-short table.shop_attributes td span[style*="ed1c24"] strong,
.tskt-popup-body table.shop_attributes td span[style*="ed1c24"] b,
.tskt-popup-body table.shop_attributes td span[style*="ed1c24"] strong {
    font-weight: 700;
}

.tskt-short table.shop_attributes tbody tr:has(span[style*="ed1c24"]) td,
.tskt-popup-body table.shop_attributes tbody tr:has(span[style*="ed1c24"]) td {
    background: #f4f4f4 !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    border-bottom: 1px solid #e4e4e4 !important;
}

/* ===== DANH SÁCH TRONG Ô ===== */
.tskt-short table.shop_attributes td ul,
.tskt-popup-body table.shop_attributes td ul {
    margin: 0 !important;
    padding-left: 16px !important;
    list-style: disc;
}

.tskt-short table.shop_attributes td ul li,
.tskt-popup-body table.shop_attributes td ul li {
    margin: 0 0 4px;
    line-height: 1.5;
}

.tskt-short table.shop_attributes td p,
.tskt-popup-body table.shop_attributes td p {
    margin: 0 !important;
}

/* ===== TIÊU ĐỀ KHỐI ===== */
.product-footer-right > h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 12px !important;
}

/* ===== NÚT XEM THÊM ===== */
#more-specific {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    border: 1px solid #d70018;
    border-radius: 8px;
    color: #d70018;
    font-weight: 600;
    font-size: 14px;
    background: #fff;
    transition: .2s;
}

#more-specific:hover {
    background: #d70018;
    color: #fff;
}

/* ===== POPUP ===== */
.tskt-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tskt-popup {
    position: relative;
    background: #fff;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    padding: 0;
    border-radius: 10px;
    overflow: auto;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

.tskt-popup > h3 {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 !important;
    padding: 18px 50px 18px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5;
    color: #1a1a1a;
    text-transform: none;
	text-align: center;
}

.tskt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #555;
    font-size: 20px;
    line-height: 32px;
    cursor: pointer;
    transition: .2s;
}

.tskt-close:hover {
    background: #ed1c24;
    color: #fff;
}

.tskt-popup-body {
    padding: 0 0 10px;
}

/* Thanh cuộn */
.menu-top .menu_ver::-webkit-scrollbar,
.tskt-popup::-webkit-scrollbar { width: 6px; }
.menu-top .menu_ver::-webkit-scrollbar-track,
.tskt-popup::-webkit-scrollbar-track { background: transparent; }
.menu-top .menu_ver::-webkit-scrollbar-thumb,
.tskt-popup::-webkit-scrollbar-thumb { background: rgba(0,0,0,.3); border-radius: 3px; }
.menu-top .menu_ver::-webkit-scrollbar-thumb:hover,
.tskt-popup::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.5); }

/* ===== MOBILE ===== */
@media (max-width: 640px) {
    .tskt-popup-overlay { padding: 0; align-items: flex-start; }
    .tskt-popup { max-height: 100vh; border-radius: 0; }
    .tskt-popup > h3 { font-size: 15px !important; padding: 16px 46px 16px 14px; }

    .tskt-short table.shop_attributes,
    .tskt-popup-body table.shop_attributes { font-size: 13px; }

    .tskt-short table.shop_attributes td,
    .tskt-popup-body table.shop_attributes td { padding: 8px 11px !important; }

    .tskt-short table.shop_attributes td:first-child,
    .tskt-popup-body table.shop_attributes td:first-child { width: 42% !important; }

    .tskt-short table.shop_attributes td:last-child,
    .tskt-popup-body table.shop_attributes td:last-child { width: 58% !important; }
}

.product-footer-right .tskt-short {
    display: block !important;   /* ← mấu chốt, ghi đè display:table của Flatsome */
    max-height: 600px !important;
    height: auto !important;     /* bỏ height:100% đang có */
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
}

/* Bảng bên trong: bỏ inline width 103.48% và height 650px của ACF */
.product-footer-right .tskt-short > table {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* Lớp mờ đáy - chỉ nằm trong bảng */
.product-footer-right .tskt-short .tskt-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}

/* Nút Xem thêm luôn hiện và bấm được */
.product-footer-right #more-specific {
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    margin-top: 12px;
    text-align: center;
    padding: 10px 16px;
    border: 1px solid #d70018;
    border-radius: 8px;
    color: #d70018;
    font-weight: 600;
    font-size: 14px;
    background: #fff;
    transition: .2s;
}

.product-footer-right #more-specific:hover {
    background: #d70018;
    color: #fff;
}

/* Trong popup: hiện đầy đủ */
.tskt-popup-body .tskt-short {
    max-height: none !important;
    overflow: visible !important;
}
.tskt-popup-body .tskt-fade-overlay {
    display: none !important;
}