/*
Theme Name: Bw Printxtore
Theme URI: https://bw-printxtore.bzotech.com/intro/
Author: BZOTech
Author URI: https://bzotech.com/
Description: PrintXtore - A stunning WooCommerce WordPress theme with a flexible style for online product design and printing services!
Version: 1.7.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Copyright: © 2024 BZOTech Theme. All rights reserved.
Tags: custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, post-formats, sticky-post, threaded-comments, block-styles, blog, news
Text Domain: bw-printxtore
*/
p {
    text-align: justify !important;
}
.mo-ta-gon {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;   /* số dòng muốn hiển thị */
    -webkit-box-orient: vertical;
}

.mo-ta-gon.mo-ta-day-du {
    -webkit-line-clamp: unset;
    display: block;
}

.btn-xem-them {
    margin-top: 10px;
    background: #0071a1;
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-xem-them:active {
    opacity: 0.8;
}

/* THÔNG SỐ KỸ THUẬT */

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th {
    width: 30%;
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid #eee;
    font-weight: 600;
}

.spec-table td {
    width: 70%;
    padding: 10px;
    border: 1px solid #eee;
}

/* nút xem thêm mô tả sp */

/* Khung chứa mô tả cần thu gọn */
.product-desc-wrapper {
    max-height: 250px; /* chiều cao ban đầu */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

/* Khi mở rộng */
.product-desc-wrapper.open {
    max-height: none;
}

/* Nút xem thêm */
.btn-xem-them {
    display: inline-block;
    margin: 20px auto 0;
    padding: 8px 20px;
    border: 1px solid #e60012;
    color: #e60012;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-xem-them:hover {
    background: #e60012;
    color: #fff;
}
/* lớp mờ dần */
.product-desc-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* độ cao hiệu ứng mờ */
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Khi mở mô tả thì fade-out biến mất */
.product-desc-wrapper.open::after {
    opacity: 0;
}
/* Căn giữa toàn bộ danh sách tab */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    text-align: center;
    padding: 0;
    margin: 0 auto;
    border: none !important;
}

/* Căn giữa các tab (inline-block để tự co) */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    display: inline-block;
    float: none; /* bỏ float trái mặc định */
    margin: 0 15px;
    border: none !important; /* bỏ viền */
    background: none !important; /* bỏ nền */
    box-shadow: none !important;
    padding: 0;
}

/* Bỏ mũi tam giác viền của WooCommerce */
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

/* Style khi active (tuỳ chỉnh theo ý) */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #e60012; /* màu đỏ tuỳ chỉnh */
    border-bottom: 2px solid #e60012; /* gạch chân tab active */
}

/* Style liên kết */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 10px 0;
}

/* ====== KHỐI GIÁ CHUNG ====== */
.bzotech-price-single.price .product-price.price {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* ====== GIÁ CŨ ====== */
.bzotech-price-single.price .product-price.price del .woocommerce-Price-amount bdi {
    color: #e1a593 !important;     /* màu cam nhạt xám như hình bạn gửi */
    font-size: 22px !important;
    opacity: 0.5 !important;
    text-decoration: line-through !important;
    font-weight: 500;
}


/* ====== GIÁ MỚI ====== */
.bzotech-price-single.price .product-price.price ins .woocommerce-Price-amount bdi {
    color: #ff441f !important;     /* màu cam đậm theo mẫu bạn gửi */
    font-size: 32px !important;
    font-weight: 700 !important;
}


/* ====== BỎ GẠCH CHÂN / NỀN LẠ của THEME ====== */
.bzotech-price-single.price .product-price.price ins,
.bzotech-price-single.price .product-price.price del {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}


/* ====== CĂN LẠI SYMBOL ₫ NHƯ MẪU ====== */
.woocommerce-Price-currencySymbol {
    font-weight: 700 !important;
    margin-right: 2px;
}

/* --- WRAPPER CHUNG --- */
.bzotech-price-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* khoảng cách giữa giá và badge */
}

/* --- GIÁ GỐC (DEL) --- */
.product-price del,
.woocommerce-Price-amount del {
    color: #bdbdbd !important;
    font-size: 15px !important;
    margin-right: 6px;
    text-decoration: line-through;
    opacity: 0.8;
}

/* --- GIÁ GIẢM (INS) --- */
.product-price ins,
.woocommerce-Price-amount ins {
    color: #ff441f !important;
    font-weight: 700 !important;
    font-size: 26px !important;
    text-decoration: none !important;
}

/* --- BADGE GIẢM GIÁ --- */
.bzotech-sale-badge {
    background: #ff441f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

/* Đảm bảo del và ins nằm cùng hàng */
.product-price del,
.product-price ins {
    display: inline-block;
    vertical-align: middle;
}
.policy-table-wrapper {
    margin-top: 24px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.policy-table-wrapper .title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.policy-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.policy-table tr td {
    background: #f9f9f9;
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.policy-table tr td i {
    width: 28px;
    height: 28px;
    display: inline-block;
    background-size: contain;
}

@media (max-width: 767px) {
    .policy-table tr {
        display: block;
        margin-bottom: 12px;
    }
    .policy-table tr td {
        width: 100%;
        margin-bottom: 10px;
    }
}

