/* BigStar — trang chi tiết sản phẩm (Đợt 1, 05/10/2026) */

/* Nút Zalo dưới MUA NGAY / HOTLINE */
.bs-zalo-btn{display:flex;align-items:center;gap:12px;width:100%;margin:10px 0 0;padding:8px 14px;border:2px solid #0068ff;border-radius:3px;background:#fff;color:#0068ff!important;text-decoration:none;line-height:1.25;box-sizing:border-box}
.bs-zalo-btn:hover{background:#0068ff;color:#fff!important}
.bs-zalo-btn:hover .bs-zalo-btn__ic{background:#fff;color:#0068ff}
.bs-zalo-btn__ic{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#0068ff;color:#fff;font-weight:700;font-size:12px}
.bs-zalo-btn b{display:block;font-size:15px;letter-spacing:.2px}
.bs-zalo-btn small{display:block;font-size:12px;opacity:.85;font-weight:400}
.bs-zalo-wrap{margin:10px 0}
form.cart .bs-zalo-btn{flex:0 0 100%}

/* Video thực tế dưới bộ ảnh */
.bs-video-btn{display:flex;align-items:center;gap:12px;width:100%;margin:12px 0 4px;padding:6px;border:1px solid #e3e3e3;border-radius:6px;background:#fff;cursor:pointer;text-align:left;font:inherit;color:#222;box-sizing:border-box}
.bs-video-btn:hover{border-color:#e3262b}
.bs-video-btn__thumb{position:relative;flex:0 0 120px;height:68px;border-radius:4px;overflow:hidden;background:#000}
.bs-video-btn__thumb img{width:100%;height:100%;object-fit:cover;opacity:.85}
.bs-video-btn__thumb:after{content:"";position:absolute;left:50%;top:50%;width:0;height:0;margin:-11px 0 0 -7px;border-style:solid;border-width:11px 0 11px 18px;border-color:transparent transparent transparent #fff;filter:drop-shadow(0 0 3px rgba(0,0,0,.6))}
.bs-video-btn b{display:block;font-size:15px;color:#e3262b}
.bs-video-btn small{display:block;font-size:12px;color:#666}
.bs-vmodal{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.85);display:flex;align-items:center;justify-content:center;padding:16px}
.bs-vmodal[hidden]{display:none}
.bs-vmodal__box{position:relative;width:100%;max-width:960px;aspect-ratio:16/9;background:#000}
.bs-vmodal__box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.bs-vmodal__x{position:absolute;top:-44px;right:0;width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#000;font-size:24px;line-height:40px;cursor:pointer;padding:0;margin:0}

/* ===== Cột phải trang SP (v2) ===== */
.shop-sidebar .bs-trust,.shop-sidebar .bs-hot,.product-sidebar .bs-trust,.product-sidebar .bs-hot{background:#fff;border:1px solid #e6e9ef;border-radius:10px;padding:4px 14px 12px;margin:0 0 14px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.bs-trust__list,.bs-hot__list{list-style:none!important;margin:0!important;padding:0!important}
.bs-trust__list>li,.bs-hot__list>li{list-style:none!important;margin:0!important;padding:0!important;border-bottom:1px solid #eef0f4}
.bs-trust__list>li:last-child,.bs-hot__list>li:last-child{border-bottom:0}
.bs-trust .bs-trust__row{display:flex!important;align-items:center;gap:12px;padding:8px 0;color:#1f2937;text-decoration:none;width:100%}
.bs-trust a.bs-trust__row:hover b{color:#0a5bd3}
.bs-trust__ic{flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#eaf2ff;color:#0a5bd3;display:flex;align-items:center;justify-content:center}
.bs-trust__ic svg{width:20px;height:20px}
.bs-trust__tx{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.bs-trust__tx b{font-size:14px;font-weight:700;color:#1f2937}
.bs-trust__tx small{font-size:12.5px;color:#6b7280;margin-top:1px}
.bs-trust__go{color:#9ca3af;font-size:22px;line-height:1}
.bs-trust .bs-trust__hot{display:flex!important;align-items:center;gap:10px;margin-top:6px;padding:8px 14px;border-radius:8px;background:#e3262b;color:#fff!important;text-decoration:none}
.bs-trust__hot:hover{background:#c81e23}
.bs-trust__hot svg{flex:0 0 22px;width:22px;height:22px}
.bs-trust__hot span{display:flex;flex-direction:column;line-height:1.2}
.bs-trust__hot small{font-size:12px;opacity:.9}
.bs-trust__hot b{font-size:19px;letter-spacing:.3px}

.bs-hot__hd{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:2px solid #e3262b;margin-bottom:2px}
.bs-hot__title{font-size:14px;white-space:nowrap;font-weight:800;text-transform:uppercase;color:#1f2937;letter-spacing:.3px}
.bs-hot .bs-hot__more{font-size:13px;color:#0a5bd3;white-space:nowrap}
.bs-hot .bs-hot__it{display:flex!important;align-items:center;gap:12px;padding:8px 0;color:#1f2937;text-decoration:none;width:100%}
.bs-hot__img{position:relative;flex:0 0 60px;width:60px;height:60px;border:1px solid #eef0f4;border-radius:8px;background:#fff;overflow:hidden}
.bs-hot__img img{width:100%!important;height:100%!important;object-fit:contain;margin:0!important}
.bs-hot__img i{position:absolute;left:0;top:0;min-width:20px;height:20px;padding:0 5px;border-radius:8px 0 8px 0;background:#e3262b;color:#fff;font-style:normal;font-size:12px;font-weight:700;line-height:20px;text-align:center}
.bs-hot__list>li:nth-child(n+4) .bs-hot__img i{background:#9ca3af}
.bs-hot__tx{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.bs-hot__name{font-size:14px;line-height:1.35;color:#1f2937;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bs-hot__it:hover .bs-hot__name{color:#0a5bd3}
.bs-hot__price{font-size:15px;font-weight:700;color:#e3262b;line-height:1.2}
.bs-hot__price del{display:block;font-size:12px;font-weight:400;color:#9ca3af}

/* Sản phẩm bạn đã xem */
.bs-seen{margin:24px 0 8px}
.bs-seen h3{font-size:1.15em;text-transform:uppercase;margin:0 0 12px}
.bs-seen__list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.bs-seen__it{display:block;border:1px solid #eee;border-radius:4px;padding:8px;background:#fff;color:#222;font-size:13px;line-height:1.35}
.bs-seen__it img{width:100%;aspect-ratio:1/1;object-fit:contain;margin-bottom:6px}
.bs-seen__it span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bs-seen__it b{display:block;color:#e3262b;margin-top:4px}
@media (max-width:849px){.bs-seen__list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:549px){.bs-seen__list{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:6px}.bs-seen__it{flex:0 0 42%;scroll-snap-align:start}}

/* Đánh giá: thu gọn form, bỏ khung "Chúng tôi luôn sẵn sàng" lặp hotline */
.single-product .r-lh-duoi-sp-wat{display:none!important}
.bs-review-toggle{display:inline-block;margin:6px 0 14px;padding:0 22px;min-height:40px;line-height:40px;border:1px solid #e3262b;border-radius:3px;background:#fff;color:#e3262b;font-weight:700;cursor:pointer}
.bs-review-toggle:hover{background:#e3262b;color:#fff}
#review_form_wrapper.bs-collapsed{display:none}

/* Bỏ hàng 5 cam kết lặp ở chân trang (đã có ở cột phải) */
.single-product .r-ft1-nam-tren{display:none!important}

/* SP biến thể: giá đã cập nhật ở trên → ẩn giá lặp dưới ô chọn */
.single-product .single_variation_wrap .woocommerce-variation-price{display:none}

/* Điện thoại */
@media (max-width:849px){
	.single-product .mua-online-mn-mobile-wat{display:none!important}
	.single-product #top-link{display:none!important}
}

/* Cột phải bám theo khi cuộn (máy tính) */
@media (min-width:850px){
	.bs-side-sticky{position:sticky;top:var(--bs-side-top,16px);transition:top .15s}
}

/* ===== Giá & màu chữ dễ đọc hơn (mọi màn hình) ===== */
.single-product .product-info .price,.single-product .product-info .price .amount{color:#e3262b}
.single-product .ttdh-msp-wat-product-code-value{color:#c2410c}
.single-product .ttdh-msp-wat-instock{color:#15803d}

/* ===== Điện thoại: trang chi tiết SP (v4, 06/10/2026) ===== */
@media (max-width:849px){
	/* Breadcrumb 1 dòng, cuộn ngang */
	.single-product .shop-page-title .page-title-inner{padding-top:6px;padding-bottom:6px;min-height:0}
	.single-product .woocommerce-breadcrumb{display:block;white-space:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;font-size:12.5px;line-height:1.6;text-align:left!important}
	.single-product .woocommerce-breadcrumb::-webkit-scrollbar{display:none}
	/* Bộ ảnh gọn hơn */
	.single-product .product-gallery{padding-bottom:0}
	.single-product .product-gallery .woocommerce-product-gallery__image img{max-height:250px!important;width:auto!important;margin:0 auto;object-fit:contain}
	.single-product .product-gallery .woocommerce-product-gallery__image a{display:flex;justify-content:center}
	.single-product .product-gallery .product-gallery-slider{margin-bottom:0}
	.single-product .product-thumbnails img{max-height:52px!important;width:auto!important;margin:0 auto!important;object-fit:contain}
	.single-product .product-thumbnails .col a{display:flex;align-items:center;justify-content:center;height:58px}
	.single-product .shop-page-title .page-title-inner{padding-top:4px!important;padding-bottom:4px!important}
	.single-product .product-thumbnails{margin-top:6px!important}
	/* Khối thông tin */
	.single-product .product-info{padding-top:6px;padding-bottom:10px}
	.single-product .product-info .product-title{font-size:21px;line-height:1.3;margin-bottom:4px}
	.single-product .product-info .price{font-size:24px;margin:6px 0 2px}
	.single-product .product-short-description{font-size:15px}
	.single-product .product-short-description h2,.single-product .product-short-description h3,.single-product .product-short-description h4,.single-product .product-short-description p>strong:only-child{font-size:16px;margin:8px 0 4px}
	.single-product .product-short-description p{margin-bottom:6px}
	.single-product .product-short-description ul{margin-bottom:6px}
	.single-product .product-short-description li{margin-bottom:2px;line-height:1.45}
	/* MUA NGAY + HOTLINE nằm cạnh nhau */
	.single-product .custom-buttons-container-dm-wat{flex-direction:row!important;flex-wrap:nowrap!important;gap:8px}
	.single-product .custom-buttons-container-dm-wat>*{flex:1 1 50%!important;width:auto!important;min-width:0;padding:6px 8px!important;min-height:54px;display:flex!important;flex-direction:column!important;align-items:center;justify-content:center}
	.single-product .custom-buttons-container-dm-wat .buy-now-primary,.single-product .custom-buttons-container-dm-wat .hotline-sp-woo-wat{font-size:16px}
	.single-product .custom-buttons-container-dm-wat .buy-now-sp-woo-wat,.single-product .custom-buttons-container-dm-wat .hay-goi-sp-woo-wat{font-size:12px;white-space:nowrap}
	/* Nút Zalo gọn 1 dòng */
	.bs-zalo-btn{padding:6px 12px;gap:10px;margin-top:8px}
	.bs-zalo-btn__ic{width:34px;height:34px;flex-basis:34px;font-size:11px}
	.bs-zalo-btn b{font-size:14.5px}
	.bs-zalo-btn small{display:none}
	/* Video + cam kết dưới ảnh: chuyển xuống dưới nút mua (JS), giao diện gọn */
	.bs-m-extra{margin:12px 0 4px}
	.bs-m-extra .bs-video-btn{margin:0 0 8px}
	.bs-m-extra .acf-noi-dung-duoi-gallery-wat{background:#f6f8fb;border-radius:8px;padding:8px 12px;font-size:14px}
	.bs-m-extra .acf-noi-dung-duoi-gallery-wat ul{margin:0}
	.bs-m-extra .acf-noi-dung-duoi-gallery-wat li{margin:2px 0}
	/* Form để lại SĐT */
	.single-product .product-info .wpcf7{margin-top:4px}
	/* SP liên hệ báo giá: nút gọi rộng hết */
	.single-product .product-info a[href^="tel:"].button{display:block;width:100%;text-align:center}
	/* Ô chọn phiên bản */
	.single-product .variations select{font-size:14px;height:44px}
	.single-product .variations .reset_variations{font-size:12px}
	/* Tab Thông số: bỏ ảnh SP lặp lại (đã có ở đầu trang) */
	.tskt-dm-wat-specs-container>:not(.tskt-dm-wat-specs-details){display:none!important}
	.tskt-dm-wat-specs-section{padding-top:0!important}
	/* Mục lục gọn */
	#ftwp-container.ftwp-wrap #ftwp-header,.ftwp-in-post #ftwp-header{padding:6px 10px!important}
	#ftwp-header-title{font-size:16px!important}
}

/* ===== Tab Thông số / Mô tả / Đánh giá (v10, 06/10/2026) — mọi màn hình ===== */
.single-product .t-bs-wat-tabs-nav-wrapper{background:#fff!important;z-index:20;box-shadow:0 1px 0 #e6e9ef,0 4px 10px -6px rgba(16,24,40,.18)}
.single-product .t-bs-wat-tabs-nav{display:flex!important;background:#fff!important;border:0!important;gap:0;padding:0!important}
.single-product .t-bs-wat-tab-nav-item{flex:1 1 0;text-align:center;color:#4b5563!important;font-size:15px!important;font-weight:600!important;padding:13px 6px 11px!important;border-bottom:3px solid transparent!important;background:none!important;white-space:nowrap;text-decoration:none!important}
.single-product .t-bs-wat-tab-nav-item.active{color:#e3262b!important;border-bottom-color:#e3262b!important}
.single-product .t-bs-wat-tab-nav-item:after,.single-product .t-bs-wat-tab-nav-item:before{display:none!important}
.single-product .t-bs-wat-tab-panel{padding-top:18px;scroll-margin-top:60px}
.single-product .t-bs-wat-tab-panel+.t-bs-wat-tab-panel{border-top:8px solid #f3f4f6;margin-top:18px}
/* Bảng thông số */
.single-product .title_tabs-tskt-wat,.single-product #reviews .comment-reply-title{font-size:18px!important;font-weight:700!important;color:#1f2937!important;margin:0 0 12px!important;padding:0 0 0 10px!important;border-left:4px solid #e3262b;line-height:1.3!important;background:none!important}
.single-product .tskt-dm-wat-specs-table{width:100%;border:1px solid #e6e9ef;border-radius:8px;border-collapse:separate;border-spacing:0;overflow:hidden;margin-bottom:14px}
.single-product .tskt-dm-wat-specs-table tr:nth-child(odd){background:#f8fafc}
.single-product .tskt-dm-wat-specs-table th,.single-product .tskt-dm-wat-specs-table td{padding:10px 12px!important;border:0!important;border-bottom:1px solid #eef0f4!important;font-size:14.5px!important;line-height:1.45;vertical-align:top;font-style:normal!important}
.single-product .tskt-dm-wat-specs-table tr:last-child th,.single-product .tskt-dm-wat-specs-table tr:last-child td{border-bottom:0!important}
.single-product .tskt-dm-wat-specs-table th{width:38%;color:#4b5563!important;font-weight:600!important;text-transform:none}
.single-product .tskt-dm-wat-specs-table td{color:#111827!important}
.single-product .tskt-dm-wat-specs-table td p{margin:0!important}
.single-product .tskt-dm-wat-view-details-btn{display:block;width:100%;min-height:44px;margin:0;border:1px solid #0a5bd3!important;border-radius:8px!important;background:#fff!important;color:#0a5bd3!important;font-weight:700;font-size:15px;text-transform:none}
.single-product .tskt-dm-wat-view-details-btn:hover{background:#0a5bd3!important;color:#fff!important}
/* Nút Xem thêm mô tả */
.single-product .wat-description-toggle-button{text-align:center;margin:10px 0 4px}
.single-product .wat-description-toggle-button a{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 22px;border:1px solid #0a5bd3;border-radius:22px;color:#0a5bd3!important;font-weight:700;font-size:15px;background:#fff}
.single-product .wat-description-toggle-button a:hover{background:#0a5bd3;color:#fff!important}
/* Đánh giá */
.single-product #reviews .bo-lai-rv-lh-wat{background:none!important;padding:0!important;border:0!important}
.single-product #reviews .comment-reply-title{font-size:16px!important}
.single-product #reviews .col.large-8{flex-basis:100%;max-width:100%}
.single-product #reviews .woocommerce-noreviews{color:#6b7280;font-size:14px;margin:4px 0 0}

/* ===== Xem ảnh phóng to (PhotoSwipe) ===== */
.pswp .pswp__bg{background:#0b0f19!important}
.pswp .pswp__top-bar,.pswp .pswp__caption{background:rgba(11,15,25,.85)!important}
.pswp .pswp__caption__center{text-align:center;font-size:14px;color:#e5e7eb;max-width:100%;padding:10px 16px}
.pswp .pswp__counter{font-size:14px;opacity:.9}
.pswp .pswp__button{opacity:.95}
html:has(.pswp--open) .bs-cbar,html:has(.pswp--open) .bs-buybar,html:has(.pswp--open) #ftwp-container{display:none!important}

/* Ảnh trong đánh giá: dải ảnh nhỏ + xem lớn (v11) */
.bs-rv-imgs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 2px}
.bs-rv-img{display:block;width:96px;height:96px;border-radius:8px;overflow:hidden;border:1px solid #e6e9ef;cursor:zoom-in;background:#f3f4f6}
.bs-rv-img img{width:100%!important;height:100%!important;object-fit:cover;margin:0!important;transition:transform .2s}
.bs-rv-img:hover img{transform:scale(1.06)}
.bs-rvbox{position:fixed;inset:0;z-index:100000;background:#0b0f19;display:flex;align-items:center;justify-content:center}
.bs-rvbox img{max-width:92vw;max-height:84vh;border-radius:6px;object-fit:contain}
.bs-rvbox button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:50%;width:44px;height:44px;font-size:24px;line-height:44px;padding:0;margin:0;cursor:pointer;min-height:0}
.bs-rvbox .x{top:14px;right:14px}.bs-rvbox .p{left:14px;top:50%;margin-top:-22px}.bs-rvbox .n{right:14px;top:50%;margin-top:-22px}
.bs-rvbox .c{position:absolute;bottom:16px;left:0;right:0;text-align:center;color:#e5e7eb;font-size:13px}
html:has(.bs-rvbox) .bs-cbar{display:none}
@media (max-width:849px){.bs-rv-img{width:72px;height:72px}.bs-rvbox .p,.bs-rvbox .n{width:38px;height:38px;line-height:38px;margin-top:-19px;left:6px}.bs-rvbox .n{left:auto;right:6px}}

/* 23/10/2026: so thu hang bang CSS de Google khong doc nham thanh gia (vd "₫ 2") */
.bs-hot__img i::before{content:attr(data-n)}

/* v13 - dien thoai: nut dong nam trong khung video, khong de chong len noi dung trang */
@media (max-width:640px){
  .bs-vmodal{padding:12px}
  .bs-vmodal__x{top:6px;right:6px;width:34px;height:34px;line-height:34px;font-size:20px;background:rgba(255,255,255,.92);box-shadow:0 1px 6px rgba(0,0,0,.4)}
}

/* v14 (25/10/2026): nut dong video nam tren khung video (iframe chen sau nut nen de mat nut) */
.bs-vmodal__x{z-index:2}
