/*
Theme Name: Giấy Dán Tường HD - Flatsome Lite Child
Theme URI: https://giaydantuonghd.com
Description: Child theme chuyên biệt cho Giấy Dán Tường HD chạy trên nền tảng Flatsome Lite. Tối ưu Category Lookbook, Trust Bar, Nút Zalo tương tác trên ảnh, Toast thông báo, Modal Google Reviews, chuẩn SEO và chống cache asset bằng filemtime.
Author: Phuc
Template: flatsome-lite
Version: 2.4.0
Text Domain: giaydantuonghd-flatsome-lite-child
*/

/* Đảm bảo toàn bộ heading không vượt quá font-weight 700 để tránh lỗi hiển thị font tiếng Việt */
h1, h2, h3, h4, h5, h6,
.entry-title,
.product-title {
    font-weight: 700;
}

/*************** ADD CUSTOM CSS HERE.   ***************/
.image-zoom img,
.product-small .title-wrapper,
.product-small .product-title {
    cursor: pointer;
}
.mfp-close-btn-in .mfp-close {
    color: #fff;
    top: 0!important;
    opacity: 1;
    cursor: pointer !important;
}
.mfp-arrow:focus,.mfp-arrow:hover {
    opacity: 1;
    filter: alpha(opacity=100)
}

.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: inset transparent
}

.mfp-arrow .mfp-a,.mfp-arrow:after {
    border-top-width: 13px;
    border-bottom-width: 13px;
    top: 8px
}

.mfp-arrow .mfp-b,.mfp-arrow:before {
    border-top-width: 21px;
    border-bottom-width: 21px;
    opacity: 1
}
button.mfp-arrow{
    opacity: 1;
    mix-blend-mode: unset;
}
.mfp-arrow-left {
    left: 0
}
.mfp-arrow-left .mfp-a,.mfp-arrow-left:after {
    border-right: 17px solid #F00;
    margin-left: 31px
}

.mfp-arrow-left .mfp-b,.mfp-arrow-left:before {
    margin-left: 25px;
    border-right: 27px solid #FFF
}

.mfp-arrow-right {
    right: 50px;
}

.mfp-arrow-right .mfp-a,.mfp-arrow-right:after {
    border-left: 17px solid #F00;
    margin-left: 39px
}

.mfp-arrow-right .mfp-b,.mfp-arrow-right:before {
    border-left: 27px solid #FFF
}


/*google search concole*/
.gsc-search-box td {
    border-bottom: none;
	padding:.5em;
}
.gsc-search-box table{
	margin:0;
}
.gsc-search-box input[type="text"]:focus,.gsc-search-box input[type="text"]{
	box-shadow:none;
}
.header-nav.header-nav-main.nav.nav-left.nav-uppercase .html_nav_position_text {
    width: 100%;
}
/* Content Readmore (Chỉ áp dụng cho danh mục) */
.term-description, #tab-description {
    max-height: 1000px;
    overflow: hidden;
}

#product-description {
    max-height: none !important;
    overflow: visible !important;
}

.readmore_content_exists {
    text-align: center;
    position: relative;
    margin: 25px 0 10px;
}

.readmore_content_exists:before {
    content: "";
    position: absolute;
    bottom: 100%;
    height: 180px;
    left: 0;
    background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0), #fff);
    width: 100%;
    pointer-events: none;
}

/*! product_cat_price */
.product_cat_price h3{
    font-weight: 400;
    font-size:12pt;
}
.product_cat_price img{
    border-radius: 10px;
}
.product_cat_price a{
    color:#000;
}

/* ==========================================================================
   Custom Category Layout (Modern Lookbook Layout)
   ========================================================================== */
.category-page-row--custom-layout {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* 1. Trust Badges Bar */
.custom-category-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0 35px;
    padding: 16px 20px;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.custom-category-trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 8px;
}

.custom-category-trust-bar .trust-icon {
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-category-trust-bar .trust-text {
    display: flex;
    flex-direction: column;
}

.custom-category-trust-bar .trust-text strong {
    font-size: 14px;
    color: #222;
    font-weight: 700;
}

.custom-category-trust-bar .trust-text span {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* 2. Masonry Lookbook (Pinterest Style - Thác nước tự nhiên, không khoảng trắng thừa) */
.category-page-row--custom-layout .custom-category-products {
    display: block;
    column-count: 2;
    column-gap: 26px;
    margin: 30px 0 50px;
}

/* 3. Lookbook Card */
.custom-lookbook-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    margin: 0 0 26px 0 !important;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    box-sizing: border-box;
    vertical-align: top;
}

.custom-lookbook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
    border-color: #d8dee6;
}

.custom-lookbook-card figure {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.custom-lookbook-media {
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
    cursor: zoom-in;
}

.custom-lookbook-media a.custom-lookbook-zoom {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.custom-lookbook-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0 !important;
    cursor: zoom-in;
}

.custom-lookbook-card:hover .custom-lookbook-media img {
    transform: scale(1.03);
}

.custom-lookbook-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    opacity: 0.85;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.custom-lookbook-card:hover .custom-lookbook-badge {
    opacity: 1;
    background: rgba(0, 104, 255, 0.9);
}

/* 4. Caption & Typography - Phần nền xám tràn full 100% chiều rộng */
.custom-lookbook-caption,
.wp-caption .wp-caption-text,
.term-description .wp-caption .wp-caption-text,
.entry-content .wp-caption .wp-caption-text {
    background-color: #f3f5f8 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 14px 18px 16px !important;
    border-top: 1px solid #e9edf2 !important;
    border-radius: 0 0 14px 14px;
    box-sizing: border-box !important;
    font-size: 14.5px;
    line-height: 1.6;
    color: #333333;
    text-align: left;
    display: block !important;
}

.custom-lookbook-caption strong,
.wp-caption .wp-caption-text strong,
.term-description .wp-caption .wp-caption-text strong,
.entry-content .wp-caption .wp-caption-text strong,
.product-description .wp-caption .wp-caption-text strong {
    color: #1a1a1a;
    font-weight: 700;
    display: inline !important;
    font-size: inherit;
    margin: 0 !important;
}


/* Nút Tư Vấn Zalo Nằm Trên Góc Dưới Phải Của Hình Ảnh */
.custom-lookbook-media,
.wp-caption-media-wrap {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    background: #f7f7f7;
}

.btn-zalo-on-image {
    position: absolute !important;
    bottom: 14px !important;
    right: 14px !important;
    z-index: 10 !important;
    background: #0068ff !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.btn-zalo-on-image:hover {
    background: #0052cc !important;
    color: #ffffff !important;
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.5) !important;
}

.btn-zalo-on-image svg {
    flex-shrink: 0;
}

/* Lightbox Gallery: Overlay Tiêu Đề Trên Đầu Ảnh & Caption Góc Dưới Ảnh */
/* Nền mờ tối của Popup làm nổi bật ảnh sản phẩm */
.mfp-product-image-lightbox.mfp-bg {
    background: #000000 !important;
    opacity: 0.88 !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

.mfp-figure.product-lightbox-figure {
    position: relative !important;
    background: transparent !important;
    padding: 30px 0 50px 0 !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.mfp-figure.product-lightbox-figure .mfp-img-wrap {
    position: relative !important;
    display: inline-block !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6) !important;
    background: #111111 !important;
    vertical-align: middle !important;
    line-height: 0 !important;
}

.mfp-figure.product-lightbox-figure img.mfp-img,
.mfp-figure.product-lightbox-figure .mfp-img {
    display: block !important;
    max-height: calc(100vh - 120px) !important;
    max-width: 92vw !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
}

/* Ẩn tiêu đề cũ nếu có */
.mfp-figure.product-lightbox-figure .mfp-title {
    display: none !important;
}

/* 1. Tiêu đề ở trên đầu tấm hình (overlay gradient) */
.mfp-top-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1040 !important;
    pointer-events: none !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%) !important;
    padding: 16px 54px 36px 18px !important;
    border-radius: 12px 12px 0 0 !important;
    text-align: left !important;
    line-height: normal !important;
}

.mfp-top-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.8) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    letter-spacing: 0.2px !important;
}

/* 2. Caption ở góc dưới tấm hình (phía trên chữ xem chi tiết) */
.mfp-bottom-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1040 !important;
    pointer-events: none !important;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 50%, rgba(0, 0, 0, 0.4) 80%, transparent 100%) !important;
    padding: 38px 20px 18px 20px !important;
    border-radius: 0 0 12px 12px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    line-height: normal !important;
}

.mfp-bottom-caption {
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    max-width: 850px !important;
    margin: 0 auto 12px auto !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.55) !important;
    border-radius: 8px !important;
    padding: 8px 18px !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.mfp-bottom-overlay .mfp-product-actions {
    position: static !important;
    pointer-events: auto !important;
    margin: 0 !important;
    width: auto !important;
    line-height: normal !important;
}

.mfp-figure.product-lightbox-figure .mfp-product-actions .mfp-btn-detail {
    pointer-events: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background-color: var(--primary-color, #0068ff) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 99px !important;
    padding: 8px 24px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.mfp-figure.product-lightbox-figure .mfp-product-actions .mfp-btn-detail:hover {
    background-color: #ffffff !important;
    color: var(--primary-color, #0068ff) !important;
    border-color: var(--primary-color, #0068ff) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 104, 255, 0.5) !important;
}

.mfp-figure.product-lightbox-figure .mfp-bottom-bar {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    margin-top: 8px !important;
    color: #f1f1f1 !important;
    font-size: 13px !important;
    line-height: 20px !important;
    text-align: right !important;
    pointer-events: none !important;
}

.mfp-figure.product-lightbox-figure .mfp-counter {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
    position: static !important;
    display: inline-block !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

.mfp-figure.product-lightbox-figure .mfp-close {
    top: 10px !important;
    right: 10px !important;
    z-index: 1060 !important;
    color: #ffffff !important;
    opacity: 0.9 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    text-align: center !important;
    cursor: pointer !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.mfp-figure.product-lightbox-figure .mfp-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    transform: scale(1.1) !important;
}

@media (max-width: 549px) {
    .mfp-figure.product-lightbox-figure {
        padding: 10px 0 40px 0 !important;
    }
    .mfp-figure.product-lightbox-figure img.mfp-img,
    .mfp-figure.product-lightbox-figure .mfp-img {
        max-height: calc(100vh - 130px) !important;
        max-width: 95vw !important;
    }
    .mfp-top-overlay {
        padding: 12px 42px 24px 14px !important;
    }
    .mfp-top-title {
        font-size: 14px !important;
    }
    .mfp-bottom-overlay {
        padding: 24px 12px 14px 12px !important;
    }
    .mfp-bottom-caption {
        font-size: 12px !important;
        line-height: 1.4 !important;
        padding: 6px 12px !important;
        margin-bottom: 10px !important;
        max-height: 75px !important;
        overflow-y: auto !important;
    }
    .mfp-figure.product-lightbox-figure .mfp-product-actions .mfp-btn-detail {
        padding: 6px 18px !important;
        font-size: 12px !important;
    }
}

/* 5. Responsive */
@media (max-width: 991px) {
    .custom-category-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    /* Tràn viền container trên mobile */
    .category-page-row--custom-layout {
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    .category-page-row--custom-layout .col.large-12 {
        padding: 0 !important;
    }

    .category-page-row--custom-layout .custom-category-products {
        display: block !important;
        column-count: 1 !important;
        column-gap: 0 !important;
        margin: 15px 0 !important;
    }

    /* Toàn bộ chữ trong bài viết, tiêu đề H2-H6, đoạn văn, danh sách có lề cách viền điện thoại 16px */
    .term-description,
    .category-page-row .term-description,
    .category-page-row--custom-layout .term-description,
    .custom-category-header,
    .category-page-row .custom-category-header {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    /* Card giống Facebook Mobile Feed: Hình to Full 100%, mép phẳng */
    .custom-lookbook-card,
    .wp-caption,
    .term-description .wp-caption,
    .entry-content .wp-caption {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid #f0f2f5 !important;
        border-bottom: 1px solid #f0f2f5 !important;
        padding: 0 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
        background: #ffffff !important;
    }

    /* Các thẻ ảnh và card lookbook bên trong bài viết tự động vươn ra (breakout) tràn 100% full viền màn hình */
    .term-description .wp-caption,
    .term-description figure,
    .term-description .custom-lookbook-card,
    .term-description p > img,
    .category-page-row .term-description .wp-caption,
    .category-page-row .term-description figure,
    .custom-category-header .wp-caption,
    .custom-category-header figure {
        margin-left: -16px !important;
        margin-right: -16px !important;
        width: calc(100% + 32px) !important;
        max-width: calc(100% + 32px) !important;
        border-radius: 0 !important;
    }


    /* Ảnh to tràn full 100% chiều rộng màn hình */
    .custom-lookbook-media,
    .wp-caption-media-wrap {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .custom-lookbook-media img,
    .wp-caption img,
    .term-description .wp-caption img,
    .entry-content .wp-caption img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 0 !important;
        display: block !important;
        margin: 0 !important;
    }

    /* Phần nền đậm màu tràn ra FULL 100% viền màn hình điện thoại, chữ có padding bên trong */
    .custom-lookbook-body,
    .custom-lookbook-caption,
    .wp-caption .wp-caption-text,
    .term-description .wp-caption .wp-caption-text,
    .entry-content .wp-caption .wp-caption-text {
        background-color: #f3f5f8 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 14px 18px 16px !important;
        border-radius: 0 !important;
        border-top: 1px solid #e9edf2 !important;
        border-bottom: 1px solid #e9edf2 !important;
        border-left: none !important;
        border-right: none !important;
        text-align: left !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
        box-sizing: border-box !important;
        display: block !important;
    }


    /* Nút Zalo trên ảnh góc dưới phải ở mobile */
    .btn-zalo-on-image {
        bottom: 10px !important;
        right: 10px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .custom-category-trust-bar {
        grid-template-columns: 1fr 1fr;
        padding: 12px 10px;
        margin: 10px 12px 20px !important;
        border-radius: 10px !important;
    }
    .custom-category-trust-bar .trust-text strong {
        font-size: 12.5px;
    }
    .custom-category-trust-bar .trust-text span {
        font-size: 11px;
    }
}


/* ==========================================================================
   Tối ưu UX/UI Sản phẩm (Product Card - Dạng Lưới Mặc Định)
   ========================================================================== */
.products .product-small.box {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #edf0f3;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.products .product-small.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #dbe1e8;
}

.products .product-small .box-image {
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.products .product-small .box-image img {
    transition: transform 0.4s ease;
    width: 100%;
}

.products .product-small.box:hover .box-image img {
    transform: scale(1.05);
}

.products .product-small .box-text {
    padding: 12px 14px 16px;
    text-align: center;
}

.products .product-small .product-title,
.products .product-small .title-wrapper p.name {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #222222;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.products .product-small.box:hover .product-title {
    color: #e00000;
}

.products .product-small .price-wrapper {
    font-size: 14px;
    font-weight: 700;
    color: #e00000;
}

/* ==========================================================================
   Tối ưu UX/UI Hình ảnh Tranh/Mẫu Trên Desktop (min-width: 769px)
   ========================================================================== */
@media (min-width: 769px) {
    .wp-caption,
    .term-description .wp-caption,
    .entry-content .wp-caption {
        background: #ffffff;
        border: 1px solid #eef1f5;
        border-radius: 14px;
        padding: 0 !important;
        overflow: hidden;
        margin: 30px auto !important;
        max-width: 100% !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .wp-caption:hover,
    .term-description .wp-caption:hover,
    .entry-content .wp-caption:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
        border-color: #dbe2ea;
    }

    .wp-caption img,
    .term-description .wp-caption img,
    .entry-content .wp-caption img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 0;
        margin: 0 auto;
    }
}



/* ==========================================================================
   Tối ưu Tiêu đề Trang Danh mục & Breadcrumb (Phong cách Bách hóa XANH)
   ========================================================================== */
.hd-category-header {
    text-align: left !important;
}

/* 1. Breadcrumb: Nhỏ gọn, thanh thoát, màu xanh tươi trên cùng */
.hd-breadcrumbs,
.shop-page-title .breadcrumbs,
.rank-math-breadcrumb.breadcrumbs {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: #64748b !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    text-align: left !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.hd-breadcrumbs p,
.rank-math-breadcrumb p,
.shop-page-title .breadcrumbs p {
    margin: 0 !important;
    padding: 0 !important;
}

.hd-breadcrumbs a,
.shop-page-title .breadcrumbs a,
.rank-math-breadcrumb a {
    color: #0284c7 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.hd-breadcrumbs a:hover,
.shop-page-title .breadcrumbs a:hover,
.rank-math-breadcrumb a:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

/* Thay dấu » thô bằng dấu > tinh tế */
.hd-breadcrumbs .separator,
.rank-math-breadcrumb .separator,
.shop-page-title .breadcrumbs .divider {
    font-size: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
}

.hd-breadcrumbs .separator:after,
.rank-math-breadcrumb .separator:after,
.shop-page-title .breadcrumbs .divider:after {
    content: ">" !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.hd-breadcrumbs .last,
.rank-math-breadcrumb .last {
    color: #475569 !important;
    font-weight: 400 !important;
}

/* 2. Tiêu đề H1: Căn trái, font chữ vừa vặn, đậm đà nhưng không thô */
.hd-category-title,
h1.shop-page-title {
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    margin: 4px 0 0 0 !important;
    text-align: left !important;
    letter-spacing: -0.3px !important;
    text-transform: none !important;
}

@media (min-width: 769px) {
    .hd-category-title,
    h1.shop-page-title {
        font-size: 25px !important;
    }
}

/* 3. Subcategories Pills (Danh mục con / liên quan dạng Pills) */
.category-subcategories-wrapper {
    margin-top: 10px !important;
    margin-bottom: 8px !important;
}

.category-subcategories-wrapper:empty {
    margin: 0 !important;
    display: none !important;
}

.category-subcategories-list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.category-subcategory-pill {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 14px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    transition: all 0.2s ease-in-out !important;
    white-space: nowrap !important;
}

.category-subcategory-pill:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25) !important;
}



/* Nút đọc tiếp mô tả danh mục */
#readmore_content {
    background: #ffffff;
    color: #e00000;
    border: 1.5px solid #e00000;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(224, 0, 0, 0.08);
}

#readmore_content:hover {
    background: #e00000;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(224, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Toast thông báo sao chép mã Zalo - Thiết kế hiện đại dạng Floating Pill */
#hd-zalo-toast {
    position: fixed;
    top: 24px; /* Đặt ở đỉnh màn hình dạng Dynamic Island / Capsule để không bị che bởi thông báo hệ thống của Android ở đáy */
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-35px) scale(0.96);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    padding: 10px 18px 10px 14px;
    border-radius: 50px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.18);
    z-index: 99999999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    max-width: calc(100vw - 28px);
    width: max-content;
    box-sizing: border-box;
}

#hd-zalo-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

#hd-zalo-toast .toast-badge {
    width: 28px;
    height: 28px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45);
}

#hd-zalo-toast .toast-badge svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}

#hd-zalo-toast .toast-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.35;
}

#hd-zalo-toast .toast-text strong {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
}

#hd-zalo-toast .toast-text span {
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 400;
}

/* Nút khi đã bấm copy xong (phản hồi thị giác tức thì) */
.btn-zalo-on-image.btn-copied {
    background: #10b981 !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.04) !important;
}

@media (max-width: 480px) {
    #hd-zalo-toast {
        top: 18px;
        bottom: auto;
        padding: 9px 15px 9px 12px;
        gap: 10px;
    }
    #hd-zalo-toast .toast-badge {
        width: 25px;
        height: 25px;
    }
    #hd-zalo-toast .toast-badge svg {
        width: 14px;
        height: 14px;
    }
    #hd-zalo-toast .toast-text strong {
        font-size: 12.5px;
    }
    #hd-zalo-toast .toast-text span {
        font-size: 11px;
    }
}



/* Tương thích ngược với thẻ wp-caption cũ */
.category-page-row--custom-layout .wp-caption {
    max-width: 100%;
    clear: both;
}

.category-page-row--custom-layout .custom-category-header {
    margin-bottom: 25px;
}

.category-page-row--custom-layout .term-description {
    margin-top: 30px;
}

/* Ẩn số lượng sản phẩm và bộ lọc sắp xếp trên trang danh mục sản phẩm & shop */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* ==========================================================================
   NÂNG CẤP TRANG CHI TIẾT SẢN PHẨM (SINGLE PRODUCT - NO SIDEBAR)
   ========================================================================== */

/* Ẩn hoàn toàn form giỏ hàng, số lượng và nút đặt hàng/tư vấn mặc định */
.single-product form.cart,
.single-product .quantity,
.single-product .single_add_to_cart_button,
.single-product .cart-button-wrap,
.single-product .add-to-cart-container {
    display: none !important;
}

/* 0. Breadcrumb trên trang sản phẩm */
.single-product .rank-math-breadcrumb,
.single-product .breadcrumbs {
    padding: 14px 0 16px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.single-product .rank-math-breadcrumb a,
.single-product .breadcrumbs a {
    color: #0284c7 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.single-product .rank-math-breadcrumb a:hover,
.single-product .breadcrumbs a:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

.single-product .rank-math-breadcrumb .separator:after,
.single-product .breadcrumbs .divider:after {
    content: ">" !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
}

/* 1. Header & Tiêu đề sản phẩm chính (H1 trong khối tóm tắt sản phẩm) */
.single-product .product-info .product-title,
.single-product .product-info h1.product-title,
.single-product .entry-summary h1.product-title,
.single-product h1.product-title.entry-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.4px !important;
}

.single-product .product-short-description {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    background: #f8fafc;
    border-left: 3.5px solid #0068ff !important;
    padding: 10px 14px !important;
    border-radius: 0 8px 8px 0;
    margin-bottom: 14px !important;
}

/* Triệt tiêu padding bottom theo yêu cầu */
.single-product .product-main {
    padding-bottom: 0 !important;
}

.single-product .product-info.summary,
.single-product .entry-summary.product-summary {
    padding-bottom: 0 !important;
}

/* Sticky Product Gallery bên trái khi cuộn trên màn hình lớn */
@media (min-width: 850px) {
    .single-product .product-main .row.content-row {
        display: flex !important;
        align-items: flex-start !important;
    }

    .single-product .product-gallery {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 95px !important;
        align-self: flex-start !important;
        z-index: 10;
    }
}

.product-gallery {
    position: relative;
}

.single-product .product-gallery .woocommerce-product-gallery__wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    background: #ffffff;
}

.single-product .product-gallery .product-gallery-slider img {
    border-radius: 14px;
}

.hd-gallery-badge {
    position: absolute;
    top: 15px;
    left: 25px;
    z-index: 10;
    background: linear-gradient(135deg, #e00000 0%, #b80000 100%) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 14px rgba(224, 0, 0, 0.35) !important;
    letter-spacing: 0.3px !important;
    pointer-events: none;
}

/* 2. Hộp Chuyển Đổi (Conversion Box) */
.hd-product-conversion-box {
    margin-top: 15px;
    margin-bottom: 0 !important;
}

/* Header tin cậy: Sao & Mã số */
.hd-product-trust-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 12px;
}

.hd-stars-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 3px 8px;
    margin: -3px -8px;
    border-radius: 6px;
}

.hd-stars-wrap:hover {
    background: #fef3c7;
}

.hd-stars {
    color: #f59e0b;
    font-size: 15px;
    letter-spacing: 2px;
}

.hd-rating-text {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hd-rating-text svg {
    stroke: #b45309;
}

.hd-model-badge {
    background: #f1f5f9;
    color: #1e293b;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    border: 1px solid #e2e8f0;
}

.hd-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #16a34a;
    font-weight: 600;
}

.stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

/* 2. Bộ Nút Kêu Gọi Hành Động (CTA Buttons) */
.hd-cta-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0 !important;
}

.btn-hd-cta {
    width: 100%;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    border: none;
    box-sizing: border-box;
}

.btn-hd-zalo {
    background: linear-gradient(135deg, #0068ff 0%, #0050d0 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 104, 255, 0.28);
}

.btn-hd-zalo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 104, 255, 0.4);
    background: linear-gradient(135deg, #0077ff 0%, #0058e0 100%);
}

.btn-hd-hotline {
    background: linear-gradient(135deg, #e00000 0%, #ba0000 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(224, 0, 0, 0.25);
}

.btn-hd-hotline:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(224, 0, 0, 0.38);
    background: linear-gradient(135deg, #f00505 0%, #cc0000 100%);
}

.btn-hd-cta .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-hd-cta .btn-icon svg {
    color: #ffffff;
    fill: currentColor;
}

.btn-hd-cta .btn-label {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.3;
}

.btn-hd-cta .btn-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.btn-hd-cta .btn-sub {
    font-size: 11.5px;
    opacity: 0.9;
    font-weight: 400;
    color: #ffffff;
}

.btn-hd-cta.btn-copied {
    background: #10b981 !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4) !important;
    transform: scale(1.02);
}

/* Category & Tag chips hiện đại */
.single-product .product_meta {
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px dashed #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.single-product .product_meta span.posted_in,
.single-product .product_meta span.tagged_as {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    font-size: 12.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.single-product .product_meta a {
    display: inline-block !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.single-product .product_meta a:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

/* Ẩn bớt khối chia sẻ xã hội không cần thiết để trang gọn gàng hơn */
.single-product .social-icons.share-icons {
    margin-top: 10px;
    opacity: 0.7;
}

/* 7. Định Dạng Khối Mô Tả Chi Tiết Sản Phẩm (#product-description) */
.single-product .product-footer {
    background: #f4f6f8 !important;
    padding: 45px 0 65px 0 !important;
    margin-top: 35px !important;
    border-top: 1px solid #e2e8f0 !important;
}

#product-description {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 35px 40px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 0 !important;
    margin-bottom: 35px !important;
    font-size: 15.5px;
    line-height: 1.75;
    color: #334155;
}

#product-description > *:first-child,
#product-description > h2:first-of-type {
    margin-top: 0 !important;
}

#product-description h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 35px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #e00000;
    padding-left: 14px;
    line-height: 1.35;
}

#product-description h3 {
    font-size: 18.5px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 28px;
    margin-bottom: 14px;
    line-height: 1.4;
    border-left: none !important;
    padding-left: 0 !important;
}

/* Danh sách thông số kỹ thuật dạng Card Checklist chuyên nghiệp (loại trừ khối #thong-tin-lien-he) */
#product-description ul:not(#thong-tin-lien-he):not(#thong-tin-lien-he *) {
    list-style: none !important;
    margin: 18px 0 28px 0 !important;
    padding: 0 !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

#product-description ul:not(#thong-tin-lien-he):not(#thong-tin-lien-he *) > li {
    position: relative !important;
    padding: 11px 18px 11px 40px !important;
    border-bottom: 1px solid #eef2f6 !important;
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    display: block !important;
}

#product-description ul:not(#thong-tin-lien-he):not(#thong-tin-lien-he *) > li:last-child {
    border-bottom: none !important;
}

#product-description ul:not(#thong-tin-lien-he):not(#thong-tin-lien-he *) > li:before {
    content: "✓" !important;
    color: #10b981 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    position: absolute !important;
    left: 16px !important;
    top: 11px !important;
    line-height: 1.6 !important;
}

#product-description ul:not(#thong-tin-lien-he):not(#thong-tin-lien-he *) > li strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

#product-description .wp-caption,
#product-description figure {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e2e8f0 !important;
    margin: 28px auto !important;
    background: #ffffff !important;
    max-width: 100% !important;
}

#product-description .wp-caption img,
#product-description figure img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 8. Lưới Sản Phẩm Tương Tự (Related Products) */
.related-products-wrapper,
.single-product .related {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 35px 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 0 !important;
    border-top: none !important;
}

.related-products-wrapper h3,
.single-product .related > h3,
.single-product .related > h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 30px !important;
    position: relative !important;
}

.related-products-wrapper h3:after,
.single-product .related > h3:after,
.single-product .related > h2:after {
    content: "" !important;
    display: block !important;
    width: 50px !important;
    height: 3px !important;
    background: #e00000 !important;
    margin: 10px auto 0 !important;
    border-radius: 2px !important;
}

.single-product .related .product-small.box,
.related-products-wrapper .product-small.box {
    border-radius: 14px !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.single-product .related .product-small.box:hover,
.related-products-wrapper .product-small.box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09) !important;
    border-color: #cbd5e1 !important;
}

.single-product .related .product-small .box-image,
.related-products-wrapper .product-small .box-image {
    aspect-ratio: 1 / 1 !important;
    background: #f8fafc !important;
    overflow: hidden !important;
}

.single-product .related .product-small .box-image img,
.related-products-wrapper .product-small .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.single-product .related .product-small.box:hover .box-image img,
.related-products-wrapper .product-small.box:hover .box-image img {
    transform: scale(1.06) !important;
}

.single-product .related .product-small .product-title,
.related-products-wrapper .product-small .product-title,
.related-products-wrapper .product-small .title-wrapper p.name,
.related-products-wrapper .product-small .woocommerce-loop-product__title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 10px 10px 14px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 38px !important;
}

.related-products-wrapper .product-small .product-title a:hover,
.related-products-wrapper .product-small .title-wrapper p.name a:hover {
    color: #e00000 !important;
}

@media (max-width: 768px) {
    /* Nền tổng thể khu vực mô tả & chân trang chuẩn Facebook App (#f0f2f5) */
    .single-product .product-footer {
        padding: 16px 0 50px 0 !important;
        margin-top: 20px !important;
        background: #f0f2f5 !important;
    }

    /* Chỉnh padding của container trên mobile cho trang chi tiết sản phẩm */
    .single-product .product-main .container,
    .single-product .product-footer .container {
        padding: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    /* Khối mô tả sản phẩm dạng Card chuẩn Facebook App Feed */
    #product-description {
        background: #ffffff !important;
        padding: 18px 14px !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
        border: 1px solid #e4e6eb !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    }

    #product-description p {
        font-size: 15px !important;
        line-height: 1.65 !important;
        color: #1c1e21 !important;
        margin-bottom: 14px !important;
    }

    #product-description h2 {
        font-size: 17.5px !important;
        line-height: 1.4 !important;
        margin: 24px 0 12px 0 !important;
        border-left: 3.5px solid #e00000 !important;
        padding-left: 10px !important;
    }

    #product-description h3 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin: 18px 0 10px 0 !important;
    }

    /* Hộp Thông số kỹ thuật Checklist chuẩn mượt trên mobile (chống lỗi rớt dòng chữ) */
    #product-description ul:not(#thong-tin-lien-he):not(#thong-tin-lien-he *) {
        margin: 14px 0 !important;
        border-radius: 12px !important;
        border: 1px solid #e4e6eb !important;
        background: #f7f8fa !important;
        overflow: hidden !important;
    }

    #product-description ul:not(#thong-tin-lien-he):not(#thong-tin-lien-he *) > li {
        padding: 10px 12px 10px 34px !important;
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        border-bottom: 1px solid #edf0f2 !important;
        display: block !important;
        position: relative !important;
    }

    #product-description ul:not(#thong-tin-lien-he):not(#thong-tin-lien-he *) > li:before {
        left: 12px !important;
        top: 10px !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    #product-description ul:not(#thong-tin-lien-he):not(#thong-tin-lien-he *) > li strong {
        color: #0f172a !important;
        font-weight: 700 !important;
        display: inline !important;
    }

    /* Hình ảnh & Chú thích chuẩn Facebook Post */
    #product-description .wp-caption,
    #product-description figure {
        border-radius: 12px !important;
        border: 1px solid #e4e6eb !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        margin: 18px 0 !important;
        overflow: hidden !important;
        width: 100% !important;
        background: #ffffff !important;
    }

    #product-description .wp-caption .wp-caption-text,
    #product-description figure figcaption {
        padding: 10px 12px !important;
        font-size: 13px !important;
        line-height: 1.55 !important;
        color: #4b5563 !important;
        background: #f7f8fa !important;
        border-top: 1px solid #edf0f2 !important;
        text-align: left !important;
        font-style: normal !important;
    }

    /* Khối Sản phẩm tương tự trên mobile */
    .related-products-wrapper,
    .single-product .related {
        padding: 18px 12px !important;
        border-radius: 14px !important;
        border: 1px solid #e4e6eb !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    }

    .related-products-wrapper .product-small .product-title,
    .related-products-wrapper .product-small .title-wrapper p.name,
    .related-products-wrapper .product-small .title-wrapper p.name a,
    .related-products-wrapper .product-small .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        min-height: 35px !important;
        max-height: 35px !important;
    }
}

@media (max-width: 768px) {
    .hd-specs-list {
        grid-template-columns: 1fr;
    }

    .hd-price-row {
        flex-direction: column;
        gap: 3px;
        align-items: flex-start;
    }

    .hd-price-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hd-gallery-badge {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 4px 10px;
    }

    .hd-compact-specs-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MODAL POPUP ĐÁNH GIÁ GOOGLE MAPS
   ========================================================================== */
.hd-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.hd-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.hd-modal-dialog {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    position: relative;
    padding: 24px;
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hd-modal-backdrop.show .hd-modal-dialog {
    transform: scale(1);
}

.hd-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 28px;
    line-height: 1;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.hd-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.google-logo-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.google-score-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 18px;
}

.big-score {
    font-size: 38px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.stars-gold {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
    display: block;
}

.score-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    display: block;
}

.review-item {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.user-info strong {
    display: block;
    font-size: 13.5px;
    color: #0f172a;
}

.user-meta {
    font-size: 11.5px;
    color: #64748b;
}

.review-comment {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin: 0 !important;
}

.hd-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.modal-btn {
    width: 100%;
    text-align: center;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-view-gallery {
    background: #f1f5f9;
    color: #0284c7 !important;
    border: 1px solid #cbd5e1;
}

.btn-view-gallery:hover {
    background: #e2e8f0;
}

.btn-close-modal {
    background: #0f172a;
    color: #ffffff;
    border: none;
}

.btn-close-modal:hover {
    background: #1e293b;
}

body.hd-modal-open {
    overflow: hidden;
}
