/* =================================================================================
   FILE DETAIL-PC.CSS (Giao diện cấu trúc chi tiết sản phẩm - Đã tối ưu UI 2026)
================================================================================= */

/* --- Main Content Layout --- */
.separator {
    color: #888;
    font-size: 18px;
    margin: 0 5px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #0159a0;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a.unactive {
    color: #555;
    pointer-events: none;
    font-weight: normal;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    margin-top: 10px;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 15px;
    font-size: 14px;
}

.sold-count {
    color: #555;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffc107;
    font-weight: bold;
}

.rating span {
    color: #555;
    font-weight: normal;
    margin-left: 2px;
}

.rating-icon {
    width: 14px;
    height: 14px;
}

.meta-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0159a0;
    text-decoration: none;
    font-weight: 500;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 10px;
    margin-bottom: 10px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Thêm min-width: 0; vào dòng này */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* Khai báo Icon */
.thong-so,
.so-sanh {
    background-image: url(/templates/laptopre/assets/images/icon-chitiet.png);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    background-size: 300px 180px;
}

.thong-so {
    background-position: -181px -166px;
    line-height: 30px;
}

.so-sanh {
    background-position: -221px -165px;
    line-height: 30px;
}

/* =================================================================================
   Ô THUMBNAIL ĐẶC BIỆT (ĐỒNG BỘ CHIỀU CAO VÀ MÀU SẮC CHUẨN)
================================================================================= */
.item-thumb.special-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* Nền trắng tươm như nền ảnh */
    width: 100%;

    /* THẦN CHÚ FIX HEIGHT: Ép nó thành hình vuông giống ảnh thumbnail */
    /* Nếu ảnh của bác là hình chữ nhật, hãy đổi thành aspect-ratio: 4 / 3; */
    aspect-ratio: 1 / 1;

    border: 1px solid #eaecf0;
    /* Viền xám nhạt bao quanh giống khung ảnh */
    border-radius: 4px;
    /* Bo góc nhẹ */
    gap: 8px;
    padding: 5px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Ép màu Xanh Thanh Hương chuẩn 100% cho Icon */
.item-thumb.special-box i {
    font-size: 24px;
    color: #0159a0 !important;
}

/* Ép màu Xanh Thanh Hương chuẩn 100% cho Text */
.item-thumb.special-box span {
    font-size: 11px;
    font-weight: 600;
    color: #0159a0 !important;
    text-align: center;
    line-height: 1.2;
    text-transform: capitalize;
}

/* Hiệu ứng khi Hover hoặc khi Ô NÀY ĐANG ĐƯỢC ACTIVE (Click vào) */
.slider-nav .active .item-thumb.special-box,
.slider-nav .slick-current .item-thumb.special-box,
.item-thumb.special-box:hover {
    border-color: #0159a0;
    /* Viền sáng lên màu xanh */
    background: #f4fafe;
    /* Nền đổi sang xanh siêu nhạt */
}

/* Swiper Slider */
.swiper-main {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    margin-bottom: 16px;
    cursor: zoom-in;
}

.swiper-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-thumb {
    box-sizing: border-box;
    padding: 10px 0;
    height: 70px;
}

.swiper-thumb .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.5;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.swiper-thumb .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #0159a0;
}

.swiper-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    pointer-events: none;
}

.image-counter {
    background: #eaecf0;
    color: #344054;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Popup Ảnh */
.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.img-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10000;
}

.close-modal:hover {
    color: #f14f66;
}

/* --- Các Section Cột trái/phải --- */
.related-config {
    background: white;
    border-radius: 12px;
    padding: 16px;
}

.related-config h2 {
    font-size: 16px;
    font-weight: bold;
    color: #101828;
    margin-bottom: 16px;
}

.config-card {
    border: 1px solid #eaecf0;
    border-radius: 8px;
    padding: 16px;
}

.config-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.config-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.config-info {
    flex: 1;
    min-width: 0;
}

.config-info h3 {
    font-size: 14px;
    font-weight: bold;
    color: #101828;
    line-height: 19.6px;
    margin-bottom: 8px;
}

.config-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 14px;
    font-weight: bold;
    color: #0159a0;
}

.original-price {
    font-size: 12px;
    color: #98a2b3;
    text-decoration: line-through;
}

.tra-gop-button {
    border: 1px solid #0159a0;
    background: white;
    color: #0159a0;
    border-radius: 8px;
    height: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* Cam kết */
/* =================================================================================
   KHỐI CHÍNH SÁCH CHUẨN THẾ GIỚI DI ĐỘNG (XANH THANH HƯƠNG)
================================================================================= */
.th-policy-tgdd {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.policy-heading {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    /* Mặc định 1 cột trên Mobile */
    gap: 12px;
}

.policy-list li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.policy-image-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.policy-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    flex: 1;
}

.policy-text strong {
    color: #222;
}

.policy-text a {
    color: #0159a0;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.policy-text a:hover {
    text-decoration: underline;
}

/* =======================================================
   KHỐI MUA KÈM COMBO (CHUẨN SEO)
======================================================= */
.combo-container {
    padding: 10px 15px;
}

.combo-main-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaecf0;
}

.combo-main-info p {
    margin: 0 0 5px 0;
}

.combo-main-name {
    font-size: 13px;
    color: #344054;
    line-height: 1.4;
}

.combo-main-name strong {
    color: #0159a0;
}

.combo-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.combo-price-new {
    font-size: 14px;
    font-weight: 700;
    color: #0159a0;
}

.combo-price-old {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
}

/* Vùng danh sách phụ kiện mua kèm */
.combo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addon-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    margin: 0;
    cursor: pointer;
    transition: 0.2s;
    background: #fff;
}

/* Hiệu ứng khi được Check/Hover */
.addon-label:hover,
.addon-label:has(input:checked) {
    border-color: #0159a0;
    background: #f8fcff;
}

.addon-checkbox {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #0159a0;
    cursor: pointer;
    flex-shrink: 0;
}

.combo-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    background-color: #fff;
}

.addon-info {
    flex: 1;
}

.addon-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.combo-discount-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #0159a0;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #bbdefb;
}

.combo-divider {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 15px 0;
}

/* Tổng kết Combo */
.combo-total-section {
    margin-bottom: 5px;
}

.combo-total-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.combo-total-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.total-final-new {
    font-size: 18px !important;
    color: #d0021b !important;
}

/* Nổi bật tổng tiền lên bằng màu đỏ */

.btn-buy-combo {
    width: 100%;
    background: #0159a0;
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 50px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-buy-combo:hover {
    background: #004a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(1, 89, 160, 0.2);
}

.btn-combo-title {
    font-size: 15px;
    font-weight: bold;
}

.btn-combo-save {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.9;
}

/* Hiển thị 2 cột khi lên màn hình máy tính (Giống TGDĐ) */
@media (min-width: 768px) {
    .policy-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* =================================================================================
   KHỐI THÔNG SỐ NỔI BẬT (CHUẨN FPT STYLE - TÔNG XANH THANH HƯƠNG)
================================================================================= */
.th-highlight-specs {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.specs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eaecf0;
}

.specs-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.btn-view-all {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #0159a0;
    border: 1px solid #0159a0;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-view-all:hover {
    background: #0159a0;
    color: #fff;
}

.specs-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =======================================================
   BẢNG THÔNG SỐ KỸ THUẬT (PC & TABLET)
======================================================= */
.accordion .spec-row {
    display: flex;
    align-items: flex-start;
    /* Rất quan trọng: Luôn neo chữ và icon lên sát mép trên */
    padding: 12px 15px;
    border-bottom: 1px dashed #eaecf0;
    /* Đường kẻ mờ phân cách các dòng */
}

.accordion .spec-row:last-child {
    border-bottom: none;
    /* Dòng cuối cùng không cần đường kẻ */
}

/* Cột Nhãn (Bên trái) */
.accordion .spec-label {
    flex: 0 0 35%;
    /* Cố định mép trái chiếm đúng 35% chiều rộng */
    max-width: 35%;
    color: #555;
    font-weight: 500;
    padding-right: 15px;
    /* Tạo khoảng hở mờ giữa 2 cột */
}

/* Cột Giá trị (Bên phải) */
.accordion .spec-value {
    flex: 1;
    /* Chiếm toàn bộ 65% khoảng trống còn lại */
    color: #222;
    line-height: 1.6;
    /* Tăng khoảng cách dòng cho text dài dễ đọc */
    word-break: break-word;
    /* Ép bẻ từ nếu có text nào dính chùm quá dài */
}

.spec-block {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-right: 1px solid #eaecf0;
}

.spec-block:first-child {
    padding-left: 0;
}

.spec-block:last-child {
    border-right: none;
    padding-right: 0;
}

.spec-icon {
    font-size: 26px;
    color: #667085;
    /* Màu xám thép để nhìn cứng cáp, giống linh kiện */
    width: 32px;
    text-align: center;
}

.spec-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    /* Cho vùng chứa linh hoạt */
    min-width: 0;
    /* Quan trọng: Ngăn chặn flexbox bóp méo khung */
}

/* Icon thông số kỹ thuật mang thương hiệu Thanh Hương */
.spec-label i {
    color: #0159a0;
    width: 20px;
    text-align: center;
    margin-right: 6px;
    font-size: 14px;
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    word-wrap: break-word;
    /* Nếu tên Card dài quá (VD: AMD Radeon Graphics) thì tự rớt dòng mượt mà */
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .specs-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .spec-block {
        width: 100%;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid #eaecf0;
        padding-bottom: 10px;
    }

    .spec-block:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .accordion .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 15px;
    }

    /* Cột tiêu đề chiếm full 100% chiều ngang */
    .accordion .spec-label {
        width: 100%;
        color: #777;
        /* Làm mờ chữ tiêu đề đi một chút để chữ giá trị nổi lên */
    }

    /* Cột Giá trị cũng chiếm 100% nhưng được thụt lề vào trong cho dễ đọc */
    .accordion .spec-value {
        width: 100%;
        padding-left: 22px;
        /* Thụt vào bằng đúng khoảng cách của cái icon */
    }

    .tabs-header {
        overflow-x: auto;
        /* Cho phép vuốt ngang */
        white-space: nowrap;
        /* Không cho chữ rớt dòng */
        -webkit-overflow-scrolling: touch;
        /* Vuốt mượt trên iOS */
        scrollbar-width: none;
        /* Ẩn thanh cuộn Firefox */
    }

    .tabs-header::-webkit-scrollbar {
        display: none;
        /* Ẩn thanh cuộn Chrome/Safari */
    }

    .tab-btn {
        flex: 0 0 auto;
        /* Không ép các tab co rúm lại */
        padding: 12px 16px;
    }

    /* 2. FIX LỖI KHỐI QUÀ TẶNG (Gộp về 1 cột trên Mobile) */
    .gift-grid {
        grid-template-columns: 1fr !important;
    }

    /* 3. FIX LỖI KHỐI ĐÁNH GIÁ (Chuyển thành xếp dọc) */
    .review-summary {
        flex-direction: column;
        gap: 20px;
    }

    .rating-score {
        align-items: flex-start;
    }

    /* 4. FIX LỖI KHỐI GIÁ & TRẢ GÓP (Xếp dọc lại cho gọn) */
    .fpt-price-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .fpt-price-divider {
        margin: 0;
        align-self: center;
        /* Chữ "Hoặc" nằm giữa */
    }

    .fpt-price-right {
        width: 100%;
    }

    .fpt-installment-label,
    .fpt-installment-price {
        text-align: left;
        /* Đưa chữ trả góp về bên trái */
    }

    /* 5. FIX LỖI KHỐI COMBO MUA KÈM */
    #combo>div>div:first-child>div {
        flex-direction: column;
        /* Đẩy ảnh và chữ combo xuống dòng */
    }

    .addon-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .addon-label .combo-img {
        width: 100%;
        height: 120px;
        /* Ảnh to ra trên mobile */
        margin-left: 0;
        margin-top: 10px;
    }
}

/* --- Tabs & Accordion --- */
.tabs-header {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    font-size: 15px;
    font-weight: bold;
    color: #666;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    padding: 10px
}

.tab-btn.active {
    color: #0c50aa;
    border-bottom-color: #0c50aa;
}

.tab-panel {
    display: none;
    padding: 15px;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background: #f2f4f7;
    padding: 15px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    user-select: none;
}

.fa-chevron-down {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 12px;
}

.accordion-item.active {
    border-color: #0159a0;
    box-shadow: 0 4px 12px rgba(1, 89, 160, 0.08);
}

.accordion-item.active .accordion-header {
    background: #f0f9ff;
    color: #0159a0;
}

.accordion-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    background: white;
}

.accordion-inner {
    overflow: hidden;
}

.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
}

.spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid #eaecf0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-highlight {
    color: #0c50aa;
}

/* --- Reviews --- */
.product-reviews {
    background: white;
    border-radius: 12px;
    padding: 30px 15px;
}

.product-reviews h2 {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    line-height: 32px;
    margin-bottom: 16px;
}

.review-summary {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.score {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-number {
    font-size: 36px;
    font-weight: bold;
    color: #101828;
    line-height: 18px;
}

.score-total {
    font-size: 14px;
    color: #98a2b3;
    line-height: 18px;
}

.rating-score p {
    font-size: 14px;
    color: #333333;
    line-height: 28px;
    white-space: nowrap;
}

.rating-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 15px;
}

.star-count {
    font-size: 14px;
    color: #101010;
    line-height: 14px;
    width: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #eeeeee;
    border-radius: 20px;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #2f80ed;
    border-radius: 20px;
}

.percentage {
    font-size: 14px;
    font-weight: bold;
    color: #323232;
    line-height: 15px;
    width: 36px;
    text-align: right;
}

.btn {
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #2f80ed;
    color: white;
    height: 37px;
    align-self: flex-end;
}

.comment-form {
    margin-top: 15px
}

.comment-input {
    width: 100%;
    height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 16px;
    margin-bottom: 10px;
}

.comment-input::placeholder {
    color: #9ca3af;
}

.upload-text {
    font-size: 14px;
    color: #1250dc;
    margin: 0px;
}

.upload-text i {
    padding: 10px;
}

.comment-list {
    margin-top: 10px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
}

.avatar {
    width: 30px;
    height: 30px;
    background: #9ca3af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.username {
    color: #090d14;
}

.time {
    color: #6b7280;
    font-size: 12px;
}

.comment-text {
    font-size: 14px;
    color: #090d14;
    line-height: 20px;
    margin: 0px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #629ef8;
    border-radius: 40px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #1081e0;
    cursor: pointer;
}

.action-btn i {
    color: #1081e0
}

/* --- BADGES NHU CẦU TRÊN SLIDER (NEW) --- */
.product-gallery {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =================================================================================
   BADGE CHUYÊN NGHIỆP & CÁ NHÂN HÓA THƯƠNG HIỆU (NEW & UPDATED)
================================================================================= */

/* Các Badge Use-Case dạng Pill cao cấp (Góc trên bên trái slider) */
.badge-usecase {
    background: #fff;
    color: #0159a0;
    /* Xanh Thanh Hương */
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    /* Dạng Pill bo góc hoàn hảo */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #0159a0;
    /* Viền mỏng professional */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hiệu ứng gradient mượt mà bên trong label */
.badge-usecase:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    z-index: -1;
}

/* CSS cho các tag mới mà bạn có thể thêm sau này (Gaming, Lập trình, Kế toán) */
/* Nhóm Học sinh, Sinh viên: Xanh dương tươi trẻ */
.badge-edu {
    background-color: #e8f4fd;
    color: #0068ff;
    border: 1px solid #cce4ff;
}

/* Nhóm Sáng tạo (Đồ họa, Video, Content): Tím thời thượng */
.badge-creative {
    background-color: #f4e8fd;
    color: #8c19ff;
    border: 1px solid #e7ccff;
}

/* Nhóm Kỹ thuật (Code, Mạng, Máy ảo): Xanh lá công nghệ */
.badge-tech {
    background-color: #e6f8ec;
    color: #00994d;
    border: 1px solid #bcecd0;
}

/* Nhóm Kinh doanh (Văn phòng, Doanh nhân, Kế toán): Cam/Vàng chuyên nghiệp */
.badge-business {
    background-color: #fff3e6;
    color: #e67300;
    border: 1px solid #ffdec2;
}

/* Nhóm Gaming: Đỏ đen mạnh mẽ */
.badge-gaming {
    background-color: #fde8e8;
    color: #e60000;
    border: 1px solid #ffcccc;
}

/* Nhóm Mặc định (Nếu có phát sinh thêm sau này) */
.badge-default {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* Hiệu ứng tương tác nhẹ khi rê chuột */
.badge-usecase:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

/* Khối bọc ngoài cùng */
.usecase-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

/* Nút bấm hiển thị */
.usecase-trigger {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #0068ff;
    background-color: #f0f7ff;
    border: 1px dashed #0068ff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    gap: 5px;
}

.usecase-trigger i {
    transition: transform 0.3s ease;
}

/* Khối danh sách nằm ẩn bên dưới */
.dropdown-badges {
    position: absolute;
    top: 120%;
    /* Nằm dưới nút trigger 1 chút */
    left: 0;
    z-index: 100;
    background: #ffffff;
    min-width: 250px;
    max-width: 300px;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eaeaea;

    /* Thiết lập ẩn mặc định với hiệu ứng mượt */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Bố cục bên trong */
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ==================================================
   TRÊN MÁY TÍNH (HOVER ĐỂ MỞ)
================================================== */
@media (min-width: 992px) {
    .usecase-dropdown-wrapper:hover .dropdown-badges {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .usecase-dropdown-wrapper:hover .usecase-trigger {
        background-color: #0068ff;
        color: #ffffff;
    }

    .usecase-dropdown-wrapper:hover .usecase-trigger .fa-angle-down {
        transform: rotate(180deg);
    }
}

/* ==================================================
   TRÊN ĐIỆN THOẠI (CLASS ACTIVE DÀNH CHO JS)
================================================== */
.usecase-dropdown-wrapper.is-open .dropdown-badges {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.usecase-dropdown-wrapper.is-open .usecase-trigger {
    background-color: #0068ff;
    color: #ffffff;
}

.usecase-dropdown-wrapper.is-open .usecase-trigger .fa-angle-down {
    transform: rotate(180deg);
}

/* BADGE TÍCH HỢP AI (Vị trí và Gradient mượt mà, chuyên nghiệp) */
.ai-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    background: #000;
    /* Nền đen chuyên nghiệp */
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid #333;
}

/* Hiệu ứng dải màu Gradient lấp lánh cho icon và chữ AI */
.ai-badge svg {
    width: 14px;
    height: 14px;
    margin-bottom: 2px;
    fill: url(#ai-grad);
    /* Sử dụng dải màu mới */
}

/* CSS cho dải màu gradient trên chữ và icon */
.ai-gradient-fill {
    fill: url(#ai-grad);
}

.ai-gradient-text {
    background: linear-gradient(90deg, #4285f4, #9b72cb, #d96570);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Swiper Slider */
.swiper-main,
.slider-main {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 16px;
    cursor: zoom-in;
}

.swiper-main img,
.slider-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-nav .thumb-wrapper {
    box-sizing: border-box;
    padding: 5px;
    cursor: pointer;
    opacity: 1;
    transition: 0.3s;
}

.slider-nav img {
    width: 95%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.image-counter {
    text-align: center;
    background: #f1f5f9;
    color: #333;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    width: fit-content;
    margin: 0 auto 15px auto;
}

/* --- Cột Phải: Cấu Hình & Sidebar --- */
.sidebar {
    background: white;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.chat_zalo {
    color: #0159a0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.chat_zalo:hover {
    background: #bbdefb;
}

.chat_zalo span {
    margin-left: 5px;
}

.h3-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 10px 10px 0 10px;

}

.title-h3 {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 12px;
}

/* Nút Chọn cấu hình */
.config-link {
    display: block;
    text-decoration: none;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    position: relative;
    transition: 0.2s;
}

.config-link:hover {
    border-color: #aaa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.config-link p {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 500;
}

.config-link.active {
    border-color: #0159a0;
    background: #f8fcff;
}

.config-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 36px 36px 0;
    border-color: transparent #0159a0 transparent transparent;
    z-index: 1;
}

.config-link.active::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Giá Khuyến Mãi Box */
.price-box {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.price-main {
    font-size: 32px;
    font-weight: 800;
    color: #d0021b;
}

.price-strike {
    font-size: 15px;
    color: #777;
    text-decoration: line-through;
}

.discount-badge {
    font-size: 14px;
    background: #d0021b;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Promo Label */
.custom-radio {
    display: none;
}

.promo-label {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 0;
}

.promo-label p {
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500;
}

.custom-radio:checked+.promo-label {
    border-color: #0159a0;
    background: #f8fcff;
}

.custom-radio:checked+.promo-label::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 36px 36px 0;
    border-color: transparent #0159a0 transparent transparent;
    z-index: 1;
}

.custom-radio:checked+.promo-label::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Buttons */
.btn-buy-now {
    width: 100%;
    background: linear-gradient(to right, #d0021b, #ff4b2b);
    color: white;
    border: none;
    border-radius: 8px;
    height: 55px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(208, 2, 27, 0.3);
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(208, 2, 27, 0.4);
}

.btn-buy-now span {
    font-size: 13px;
    font-weight: normal;
    text-transform: none;
    display: block;
    margin-top: 2px;
    opacity: 0.9;
}

.btn-installment {
    background: #0159a0;
    color: white;
    border: none;
    border-radius: 8px;
    height: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
}

.btn-installment:hover {
    background: #004a87;
}

.btn-installment-card {
    background: #fff;
    color: #0159a0;
    border: 1px solid #0159a0;
    border-radius: 8px;
    height: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
}

.btn-installment-card:hover {
    background: #f0f8ff;
}

.btn-installment span,
.btn-installment-card span {
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 2px;
}

/* Quà tặng & Combo */
/* --- Bố cục Header Quà tặng --- */
.gift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
    /* Thêm đường line nhẹ phân cách */
    margin-bottom: 10px;
}

.gift-header-info {
    flex: 1;
    padding-right: 15px;
}

.gift-note {
    display: block;
    font-size: 12px;
    color: #5d5d5d;
    margin-top: 5px;
    line-height: 1.4;
    padding-left: 15px
}

/* --- Bố cục Grid Quà tặng --- */
.gift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* --- Code CSS Fix lỗi Nút Switch --- */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-right: 10px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    /* Màu xám khi tắt */
    transition: 0.4s;
}

.theme-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Trạng thái BẬT (Active) */
.theme-switch input:checked+.slider {
    background-color: #48a3f6;
    /* Màu xanh công ty khi bật */
}

.theme-switch input:checked+.slider:before {
    transform: translateX(20px);
}

.theme-switch .slider.round {
    border-radius: 24px;
}

.theme-switch .slider.round:before {
    border-radius: 50%;
}

/* --- Hiệu ứng khi KHÔNG nhận quà (Tắt công tắc) --- */
.disabled-gifts {
    opacity: 0.4;
    filter: grayscale(100%);
    pointer-events: none;
    /* Khóa không cho click vào link các món quà */
    user-select: none;
}

.gift-section {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.gift-image {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.gift-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-decoration: none;
}

.gift-text:hover {
    color: #0159a0;
}

.addon-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eaecf0;
    cursor: pointer;
    user-select: none;
}

.addon-checkbox {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0159a0;
}

.combo-img {
    width: 68px;
    height: 68px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 1px solid #eee;
}

.addon-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Thông số kỹ thuật (Cột Trái) */
.accordion-header {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 15px;
    color: #222;
}

.spec-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.spec-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* Cam kết */
.commitments {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.commitments h2 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.commitment-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.commitment-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.commitment-text span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.commitment-text a {
    font-size: 13px;
    font-weight: 600;
    color: #0159a0;
    text-decoration: none;
}

.commitment-text a:hover {
    text-decoration: underline;
}

/* Store Locations */
.store-locations {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.location-icon {
    color: #d0021b;
    font-size: 16px;
    margin-top: 2px;
}

.location-item p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {

    /* 1. Biến layout chính thành Flexbox cột */
    .two-column-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* 2. "display: contents" xóa bỏ sự ngăn cách của 2 cột Trái/Phải về mặt giao diện, 
       giúp các phần tử con bên trong 2 cột này có thể xếp chung hàng với nhau */
    .left-column,
    .right-column {
        display: contents;
        width: 100%;
    }

    /* 3. Đánh số thứ tự (order) cho từng khối hiển thị trên Mobile theo đúng ý bạn */

    /* Vị trí 1: Khối hình ảnh slider */
    .left-column>#hinh-anh {
        order: 1;
    }

    /* Vị trí 2: Khối Tên, Giá, Chọn cấu hình, Nút mua hàng */
    .right-column>#cau-hinh {
        order: 2;
    }

    /* Vị trí 3: Quà tặng (Nên nằm ngay dưới nút mua hàng) */
    .right-column>#qua-tang {
        order: 3;
    }

    /* Vị trí 4: Mua kèm combo */
    .right-column>#combo {
        order: 4;
    }

    /* Vị trí 5: Thông số nổi bật */
    .left-column>.th-highlight-specs {
        order: 5;
    }

    /* Vị trí 6: Cam kết khi mua hàng */
    .left-column>#chinh-sach {
        order: 6;
    }

    /* Vị trí 7: Thông số chi tiết, Thông tin SP, Đánh giá SP (Khối Tabs) */
    .left-column>#thong-so {
        order: 7;
    }

    /* Vị trí 8: Sản phẩm đã xem (Nằm dưới cùng) */
    .right-column>#daxem {
        order: 8;
    }

    /* CSS tinh chỉnh thêm cho các khối để nó full màn hình trên mobile */
    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tra-gop-button {
        padding: 0px;
    }
}

@media (max-width: 768px) {
    .gallery-badges {
        top: 10px;
        left: 10px;
    }

    .badge-usecase {
        font-size: 11px;
        padding: 4px 10px;
    }

    .price-main {
        font-size: 26px;
    }
}

/* --- CSS THANH MENU STICKY TRÊN MOBILE --- */
.mobile-sticky-nav {
    display: none;
}


/* =========================================================
   RESPONSIVE CHO CHI TIẾT SẢN PHẨM PC & MOBILE
========================================================= */
@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .left-column,
    .right-column {
        width: 100%;
    }

    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tra-gop-button {
        padding: 0px;
    }
}

@media (max-width: 768px) {
    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .mobile-sticky-nav {
        display: block;
        grid-column: 1 / -1;
        background: #fff;
        padding: 5px;
        border-bottom: 1px solid #eaecf0;
        z-index: 2;
        transition: box-shadow 0.2s;
    }

    .mobile-sticky-nav.is-fixed-global {
        position: fixed !important;
        left: 0;
        right: 0;
        margin: 0 !important;
        border-radius: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    }

    .sticky-nav-scroll {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 10px;
    }

    .sticky-nav-scroll::-webkit-scrollbar {
        display: none;
    }

    .sticky-nav-link {
        padding: 12px 16px;
        color: #666;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: 0.2s;
    }

    .sticky-nav-link.active {
        color: #0159a0;
        border-bottom-color: #0159a0;
    }
}

/* =================================================================================
   GIAO DIỆN CHUẨN (Tối ưu UI tinh tế 2026 - Tông Xanh Thanh Hương)
================================================================================= */

/* Huy hiệu Độc quyền (Đổi sang gradient xanh) */
.fpt-exclusive-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #0159a0, #007bff);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(1, 89, 160, 0.2);
}

.fpt-exclusive-badge i {
    font-size: 11px;
    color: #ffc107;
}

/* Giữ icon sao màu vàng cho nổi bật */

/* Tiêu đề & Meta (Cột phải) */
.fpt-product-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.fpt-product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
}

.fpt-meta-divider {
    color: #ccc;
    font-size: 12px;
}

.fpt-meta-sku {
    color: #888;
}

.fpt-meta-rating {
    color: #ff9f00;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fpt-meta-rating span {
    color: #0159a0;
    font-weight: normal;
    cursor: pointer;
}

.fpt-meta-link {
    color: #0159a0;
    text-decoration: none;
}

.fpt-meta-link:hover {
    text-decoration: underline;
}

/* Khối Biến thể (Màu sắc, Cấu hình) */
.variant-group {
    margin-bottom: 15px;
}

.variant-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
}

.variant-btn:hover {
    border-color: #0159a0;
}

.variant-btn.active {
    border-color: #0159a0;
    background: #f8fcff;
}

/* Dấu tick XANH góc phải đặc trưng */
.variant-btn.active::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    border-width: 0 30px 30px 0;
    border-style: solid;
    border-color: transparent #0159a0 transparent transparent;
    border-top-right-radius: 6px;
    z-index: 1;
}

.variant-btn.active::after {
    content: '✓';
    position: absolute;
    top: 0px;
    right: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.variant-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.variant-price {
    font-size: 13px;
    color: #0159a0;
    font-weight: bold;
}

/* Đổi giá biến thể sang xanh */

/* Khối Giá Nền Xanh Nhạt (Thanh Hương Style) */
.fpt-price-box {
    background: #f4fafe;
    border: 1px solid #cce5ff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.fpt-price-header {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.fpt-price-header span {
    color: #0159a0;
    font-weight: 600;
    cursor: pointer;
}

.fpt-price-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fpt-main-price {
    font-size: 28px;
    font-weight: 800;
    color: #0159a0;
    line-height: 1.1;
    margin-bottom: 4px;
}

/* Giá chính màu xanh */
.fpt-sub-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fpt-original-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

.fpt-discount-percent {
    font-size: 13px;
    background: #ffe4e4;
    color: #d0021b;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Tag % giảm giá để nền đỏ chữ trắng cho hút mắt, nếu bác thích xanh luôn thì sửa background: #e3f2fd; color: #0159a0; */
.fpt-price-divider {
    font-size: 12px;
    color: #999;
    background: #fff;
    padding: 2px 6px;
    border-radius: 20px;
    border: 1px solid #cce5ff;
}

.fpt-installment-label {
    font-size: 12px;
    color: #555;
    margin-bottom: 2px;
    text-align: right;
}

.fpt-installment-price {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    text-align: right;
}

.fpt-reward-points {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #0159a0;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 12px;
    font-weight: 600;
}

/* Đổi điểm thưởng sang tông xanh nốt */

/* Khối Khuyến Mãi */
.fpt-promo-container {
    margin-bottom: 20px;
}

.fpt-promo-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.fpt-promo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fpt-promo-item {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    position: relative;
    background: #fff;
    transition: 0.2s;
    margin: 0;
    font-weight: 500;
}

.fpt-promo-item:hover {
    border-color: #0159a0;
}

.fpt-promo-item.active {
    border-color: #0159a0;
    background: #f8fcff;
}

.fpt-promo-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    border-width: 0 30px 30px 0;
    border-style: solid;
    border-color: transparent #0159a0 transparent transparent;
    /* Góc gấp khúc màu xanh */
    border-top-right-radius: 8px;
    z-index: 1;
}

.fpt-promo-item.active::after {
    content: '✓';
    position: absolute;
    top: 1px;
    right: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.fpt-promo-name {
    display: block;
    font-size: 14px;
    color: #222;
    font-weight: 600;
    margin-bottom: 4px;
}

.fpt-promo-desc {
    margin: 0;
    padding-left: 15px;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    list-style-type: disc;
}

.fpt-promo-desc li {
    margin-bottom: 4px;
}

.fpt-promo-desc li:last-child {
    margin-bottom: 0;
}

/* =================================================================================
   KHỐI BÀI VIẾT SẢN PHẨM & MODAL ĐỌC BÁO (TÔNG XANH THANH HƯƠNG)
================================================================================= */
/* Khối rút gọn bên ngoài */
.article-preview-container {
    position: relative;
    max-height: 450px;
    /* Chiều cao tối đa hiển thị bài viết */
    overflow: hidden;
}

.article-content-inner {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.article-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.article-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    z-index: 1;
}

.btn-read-more {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 10px auto 0;
    padding: 10px 30px;
    background: #fff;
    border: 1px solid #0159a0;
    color: #0159a0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    z-index: 2;
}

.btn-read-more:hover {
    background: #0159a0;
    color: #fff;
}

/* Modal Popup Đọc Bài Viết */
.article-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.article-modal-box {
    background: #fff;
    width: 850px;
    max-width: 95%;
    height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.article-modal-overlay.show .article-modal-box {
    transform: translateY(0);
}

.article-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eaecf0;
}

.article-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0159a0;
    text-transform: uppercase;
}

.btn-close-article {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-close-article:hover {
    background: #ffe4e4;
    color: #d0021b;
}

.article-modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Tuỳ biến thanh cuộn trong modal */
.article-modal-body::-webkit-scrollbar {
    width: 6px;
}

.article-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.article-modal-body::-webkit-scrollbar-thumb {
    background: #cce5ff;
    border-radius: 8px;
}

.article-modal-body::-webkit-scrollbar-thumb:hover {
    background: #0159a0;
}

.article-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-modal-body h2,
.article-modal-body h3 {
    color: #0159a0;
    margin-top: 25px;
}

.sidebar-section {
    padding: 10px;
}

/* =======================================================
   CSS THANH MUA HÀNG MOBILE & BOTTOM SHEET
======================================================= */
/* Đẩy nội dung web lên một chút để không bị thanh này che mất Footer */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px !important;
    }
}

/* Thanh chứa nút */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1040;
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    /* Fix chói mép iPhone */
    gap: 8px;
    align-items: center;
}

/* Style chung cho 3 nút */
.m-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 6px;
    text-decoration: none !important;
    height: 46px;
    transition: 0.2s;
}

.m-btn strong {
    font-size: 13px;
    line-height: 1.2;
}

.m-btn span {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.9;
}

/* 1. Nút Giỏ hàng (Màu xanh viền - Chiếm ít diện tích) */
.btn-cart-outline {
    flex: 0 0 60px;
    /* Chiều rộng cố định 60px */
    border: 1px solid #0159a0;
    background: #f4fafe;
    color: #0159a0;
}

.btn-cart-outline i {
    font-size: 18px;
    margin-bottom: 2px;
}

.btn-cart-outline span {
    font-size: 10px;
    font-weight: 600;
    color: #0159a0;
}

/* 2. Nút Trả góp (Nền Xanh Đậm) */
.btn-installment {
    flex: 1;
    /* Chiếm đều không gian còn lại */
    background: #0159a0;
    color: #fff !important;
}

/* 3. Nút Mua ngay (Nền Đỏ Gradient) */
.btn-buy-now {
    flex: 1;
    /* Chiếm đều không gian còn lại */
    background: linear-gradient(to right, #d0021b, #ff4b2b);
    color: #fff !important;
}

/* =======================================================
   BẢNG CHỌN TRẢ GÓP (BOTTOM SHEET)
======================================================= */
.m-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.m-sheet-overlay.show {
    opacity: 1;
    visibility: visible;
}

.m-bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1060;
    border-radius: 16px 16px 0 0;
    /* Bo góc cong phía trên */
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    transition: bottom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding-bottom: env(safe-area-inset-bottom);
}

.m-bottom-sheet.open {
    bottom: 0;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eaecf0;
}

.sheet-header b {
    font-size: 16px;
    color: #222;
}

.sheet-close {
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #555;
    cursor: pointer;
}

.sheet-body {
    padding: 10px 15px 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sheet-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    text-decoration: none !important;
    transition: 0.2s;
    background: #fff;
}

.sheet-option:hover {
    border-color: #0159a0;
    background: #f8fcff;
}

.sheet-icon-wrap {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 18px;
    flex-shrink: 0;
}

.sheet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sheet-info strong {
    font-size: 14px;
    color: #222;
}

.sheet-info span {
    font-size: 12px;
    color: #666;
}

.sheet-arrow {
    color: #ccc;
    font-size: 14px;
}

.accordion-item td {
    padding: 10px;
}


/* =======================================================
   TOOLTIP CHO KHUYẾN MÃI (HIỆN KHI HOVER)
======================================================= */
.fpt-promo-desc li.has-tooltip {
    position: relative;
    width: 100%;
}

.promo-tooltip {
    position: absolute;
    bottom: 100%;
    /* Nổi lên phía trên thẻ li */
    left: 0;
    margin-bottom: 10px;
    /* Nhường chỗ cho mũi tên */
    width: 300px;
    /* Độ rộng đủ để chứa 5-7 dòng thoải mái */
    background: #ffffff;
    border: 1px solid #0159a0;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 5px 20px rgba(1, 89, 160, 0.15);
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    z-index: 100;

    /* Hiệu ứng trượt và mờ dần */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Chống trường hợp tooltip che mất nút click của khách */
    pointer-events: none;
}

.promo-tooltip strong {
    display: block;
    color: #0159a0;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    border-bottom: 1px dashed #eaecf0;
    padding-bottom: 4px;
}

/* Vẽ mũi tên chĩa xuống cho Tooltip */
.promo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: #0159a0 transparent transparent transparent;
}

.promo-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 21px;
    border-width: 5px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    z-index: 1;
}

/* Hiện Tooltip khi di chuột vào dòng Khuyến mãi */
.fpt-promo-desc li.has-tooltip:hover .promo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tinh chỉnh nhỏ cho Mobile (Đẩy tooltip vào giữa để không bị tràn viền phải) */
@media (max-width: 768px) {
    .promo-tooltip {
        width: 260px;
        left: -10px;
        /* Đẩy sang trái 1 tí tránh thò ra khỏi màn hình điện thoại */
    }
}

/* =======================================================
   TOOLTIP THÔNG MINH (CLICK) - QUÀ TẶNG & KHUYẾN MÃI
======================================================= */
.custom-smart-tooltip {
    position: fixed;
    background: #ffffff;
    border: 1px solid #0159a0;
    box-shadow: 0 5px 25px rgba(1, 89, 160, 0.2);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    /* Bề ngang to cho máy tính */
    max-height: 350px;
    /* Giới hạn chiều cao */
    overflow-y: auto;
    /* Bật cuộn dọc */
    z-index: 999999;
    font-size: 13.5px;
    color: #333;
    line-height: 1.6;

    /* Ẩn mặc định */
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-smart-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* Khung bọc nội dung (né nút X) */
.tooltip-content-wrapper {
    padding: 15px;
    padding-right: 25px;
}

/* Nút X đóng Tooltip */
.tooltip-close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
    z-index: 10;
}

.tooltip-close-btn:hover {
    color: #dc3545;
}

/* Tiêu đề khuyến mãi (In đậm, viền dưới) */
.custom-smart-tooltip .promo-tooltip-title {
    display: block;
    color: #0159a0;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    border-bottom: 1px dashed #eaecf0;
    padding-bottom: 5px;
}

/* Đổi con trỏ chuột ở các thẻ có Tooltip */
.smart-tooltip-trigger {
    cursor: pointer;
}

/* Trang trí thanh cuộn Tooltip */
.custom-smart-tooltip::-webkit-scrollbar {
    width: 6px;
}

.custom-smart-tooltip::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.custom-smart-tooltip::-webkit-scrollbar-thumb {
    background: #c5ced6;
    border-radius: 10px;
}

.custom-smart-tooltip::-webkit-scrollbar-thumb:hover {
    background: #0159a0;
}

/* =======================================================
   KHỐI NÚT MUA HÀNG VÀ TRẢ GÓP (BỔ SUNG)
======================================================= */
/* Lưới chia 2 cột cho 2 nút trả góp */
.installment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

/* Đảm bảo nút không bị viền focus đen khi click */
.btn-buy-now:focus,
.btn-installment:focus,
.btn-installment-card:focus {
    outline: none;
    box-shadow: none;
}

/* Căn chỉnh kích thước ảnh icon Zalo cho mượt */
.zalo-icon-img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    object-fit: contain;
}


/* Chỉnh lại 1 chút cho khung meta trên Mobile để các thành phần tự rớt dòng đẹp hơn nếu chật */
@media (max-width: 768px) {
    .fpt-product-meta {
        row-gap: 8px;
    }

    .fpt-meta-divider {
        display: none;
        /* Ẩn dấu | trên mobile cho thoáng */
    }
}

/* =======================================================
   CSS CHO KHỐI BÌNH LUẬN & ĐÁNH GIÁ (SAO, ẢNH, VIDEO)
======================================================= */
.comment-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-header .username {
    font-weight: 600;
    color: #333;
}

.comment-stars {
    color: #f59e0b;
    font-size: 12px;
}

.comment-header .separator {
    color: #999;
    font-size: 12px;
}

.comment-header .time {
    color: #888;
    font-size: 13px;
}

.comment-text {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.5;
}

/* KHU VỰC ẢNH VÀ VIDEO */
.comment-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.media-box {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.media-box img,
.media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-box {
    position: relative;
    background: #000;
}

.video-box video {
    opacity: 0.7;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    pointer-events: none;
}


#bk-btn-installment,
#bk-btn-installment-amigo,
#bk-btn-paynow,
.bk-btn-installment,
.bk-btn-installment-amigo,
.bk-btn-paynow {
    width: 100%;
    margin-bottom: 0px;
    padding: .375rem .75rem;
}

/* =========================================
CUSTOM CSS CHO NÚT THANH TOÁN BẢO KIM
========================================= */

/* Hộp chứa 2 nút: Dùng Flexbox để chia đều 50/50 và tạo khoảng cách */
.bk-btn-box {
    display: flex;
    gap: 10px;
    /* Khoảng cách giữa 2 nút */
    width: 100%;
    margin-top: 15px;
}

/* Cấu trúc chung của cả 2 nút */
.bk-btn-box button {
    flex: 1;
    /* Mỗi nút chiếm 1 nửa */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 5px !important;
    border: none !important;
    border-radius: 8px !important;
    /* Bo góc mềm mại */
    color: #ffffff !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* --- NÚT MUA NGAY (Màu Đỏ Gradient) --- */
.bk-btn-box .bk-btn-paynow {
    background: linear-gradient(180deg, #48a3f6, #1370b9) !important;
    box-shadow: 0 4px 10px rgba(225, 27, 30, 0.2) !important;
}

.bk-btn-box .bk-btn-paynow:hover {
    background: linear-gradient(180deg, #1775bf, #4267b2) !important;
    transform: translateY(-1px);
}

/* --- NÚT TRẢ GÓP (Màu Xanh Gradient) --- */
.bk-btn-box .bk-btn-installment {
    background: linear-gradient(180deg, #288ad6, #0159A0) !important;
    box-shadow: 0 4px 10px rgba(1, 89, 160, 0.2) !important;
}

.bk-btn-box .bk-btn-installment:hover {
    background: linear-gradient(180deg, #0159A0, #00457d) !important;
    transform: translateY(-1px);
}

/* --- ĐỊNH DẠNG CHỮ BÊN TRONG --- */
.bk-btn-box button strong {
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    /* In hoa dòng tiêu đề */
    margin-bottom: 3px;
    display: block;
    letter-spacing: 0.5px;
}

.bk-btn-box button span {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.3;
    display: block;
    opacity: 0.9;
    /* Làm chữ phụ mờ đi một chút cho sang */
}

/* --- RESPONSIVE CHO MOBILE --- */
@media (max-width: 576px) {
    .bk-btn-box {
        gap: 8px;
        /* Thu hẹp khoảng cách trên mobile */
    }

    .bk-btn-box button strong {
        font-size: 13px !important;
    }

    .bk-btn-box button span {
        font-size: 11px !important;
    }
}