/* ==========================================================
BẢN FIX CHUẨN ĐẸP 100% (.product_page)
========================================================== */

/* 1. XÓA VIỀN KẺ CHẤM CỦA FLATSOME & GOM CÁC NHÃN */
.product_page .product_meta {
	border: none !important;
	padding: 0 !important;
	margin-bottom: 12px !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
}

/* 2. ĐỔI CHỮ "SKU:" THÀNH "Mã tour:" VÀ BO TRÒN NỀN XÁM */
.product_page .product_meta .sku_wrapper {
	font-size: 0 !important; /* Giấu chữ 'SKU:' gốc */
	background-color: #f3f4f6;
	padding: 5px 12px;
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
}
.product_page .product_meta .sku_wrapper::before {
	content: "Mã tour: ";
	font-size: 13px;
	font-weight: 500;
	color: #4b5563;
	margin-right: 4px;
}
.product_page .product_meta .sku_wrapper .sku {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-black);
}

/* 3. BIẾN TỪNG THẺ (TAG) THÀNH TỪNG VIÊN THUỐC MÀU XANH NHƯ MẪU GỐC */
.product_page .product_meta .tagged_as {
	font-size: 0 !important; /* Giấu chữ 'Thẻ:' và dấu phẩy rác */
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
}
.product_page .product_meta .tagged_as a {
	font-size: 12px !important;
	font-weight: 600;
	color: var(--color-main) !important;
	background-color: #ecfdf5;
	border: 1px solid #d1fae5;
	padding: 4px 12px;
	border-radius: 20px;
	text-decoration: none !important;
	display: inline-block;
}

/* 4. ẨN DANH MỤC ĐỂ GIỐNG HỆT 100% ẢNH MẪU (Không bị lộn xộn) */
.product_page .product_meta .posted_in {
	display: none !important;
}

/* 5. TIÊU ĐỀ TOUR */
.product_page .product-title-container {
	margin-bottom: 8px;
}
.product_page .product-title-container .product-title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--color-black);
	margin: 0;
	margin-bottom:20px;
}
.product_page .product-title-container .is-divider {
	display: none !important;
}

/* 6. CĂN CHỈNH GIÁ TIỀN: BỎ GẠCH CHÂN, THẲNG HÀNG */
.product_page .product-price-container {
	margin: 12px 0 20px 0;
}
.product_page .price-wrapper .price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	color: var(--color-second);
	line-height: 1;
}

/* Xóa mọi vết gạch chân ở chữ 'đ' hay số tiền */
.product_page .price-wrapper .price,
.product_page .price-wrapper .price * {
	text-decoration: none !important;
}

/* Chữ "Giá từ:" màu xám canh thẳng với số */
.product_page .price-wrapper .price:has(.woocommerce-Price-amount)::before,
.product_page .price-wrapper .price:has(bdi)::before {
	content: "Giá từ: ";
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
}

/* Chữ "/ khách" canh sau số tiền */
.product_page .price-wrapper .price:has(.woocommerce-Price-amount)::after,
.product_page .price-wrapper .price:has(bdi)::after {
	content: "/ khách";
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
}

/* ==========================================================
CSS KHU VỰC GIÁ TOUR HOÀN CHỈNH (.product_page)
========================================================== */

.product_page .product-price-container {
	margin: 12px 0 20px 0 !important;
}

/* Khung bọc toàn bộ dòng giá */
.product_page .tour-price-custom-wrap {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	line-height: 1;
}

/* 1. Chữ "Giá từ:" màu xám */
.product_page .tour-price-label {
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
}

/* 2. Giá chính (Giá sale hoặc giá thường): MÀU ĐỎ TO RÕ */
.product_page .tour-price-main {
	font-size: 30px;
	font-weight: 800;
	color: var(--color-second) !important;
	line-height: 1;
}
.product_page .tour-price-main * {
	color: var(--color-second) !important;
	text-decoration: none !important; /* Xóa gạch chân chữ đ */
}

/* 3. Chữ "/ khách" màu xám */
.product_page .tour-price-unit {
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	margin-right: 4px;
}

/* 4. Giá cũ bị gạch ngang */
.product_page .tour-price-old {
	font-size: 16px;
	color: #9ca3af !important;
	text-decoration: line-through !important;
}
.product_page .tour-price-old * {
	color: #363b42 !important;
	font-size: 12px;
}

/* 5. Nhãn phần trăm giảm giá -XX% (Viên thuốc đỏ) */
.product_page .tour-price-badge {
	background-color: var(--color-second);
	color: var(--color-white);
	font-size: 12px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 20px;
	display: inline-block;
	vertical-align: middle;
}

/* 6. Chữ (Tiết kiệm ...đ) MÀU XANH CHỦ ĐẠO */
.product_page .tour-price-save {
	color: var(--color-main) !important;
	font-size: 14px;
	font-weight: 600;
}
.product_page .tour-price-save * {
	color: var(--color-main) !important;
	text-decoration: none !important;
}

/* 7. Chữ "Liên hệ" khi không để giá */
.product_page .tour-price-contact {
	font-size: 24px;
	font-weight: 800;
	color: var(--color-second) !important;
}

.product_page .title {
	padding-bottom:0px !important;
}

.product_page.tour-gallery-container {
	margin: 15px 0 25px 0;
}

/* KHUNG TỔNG 380px */
.product_page .tour-gallery-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 8px;
	height: 430px !important;
	border-radius: 12px;
	overflow: hidden;
}

/* 1. ẢNH LỚN BÊN TRÁI */
.product_page .gallery-col-main {
	height: 100%;
	min-height: 0; /* Cho phép co giãn */
	border-radius: 8px;
	overflow: hidden;
}
.product_page .gallery-col-main a,
.product_page .gallery-col-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 2. CỘT PHẢI: ÉP BUỘC CHIA ĐỀU 2 HÀNG x 2 CỘT (50% - 50%) */
.product_page .gallery-col-sub {
	display: grid;
	gap: 8px;
	height: 100%;
	min-height: 0;
}

/* ÉP 2 HÀNG BẰNG NHAU CHẰN CHẶN, BẤT CHẤP ẢNH DỌC HAY NGANG */
.product_page .tour-gallery-grid.layout-sub-many .gallery-col-sub {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
}

/* Từng ô ảnh nhỏ bên phải */
.product_page .sub-img-item {
	height: 100% !important;
	width: 100% !important;
	min-height: 0 !important; 
	min-width: 0 !important;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}
.product_page .sub-img-item a {
	display: block;
	width: 100%;
	height: 100%;
}
.product_page .sub-img-item img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important; /* Tự cắt ảnh vào giữa cho vừa ô */
	display: block;
	transition: transform 0.3s ease;
}
.product_page .sub-img-item:hover img {
	transform: scale(1.04);
}

/* CÁC TRƯỜNG HỢP ÍT ẢNH HƠN */
.product_page .tour-gallery-grid.layout-sub-1 .gallery-col-sub {
	grid-template-columns: minmax(0, 1fr) !important;
	grid-template-rows: minmax(0, 1fr) !important;
}
.product_page .tour-gallery-grid.layout-sub-2 .gallery-col-sub {
	grid-template-columns: minmax(0, 1fr) !important;
	grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
}
.product_page .tour-gallery-grid.layout-sub-3 .gallery-col-sub {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
}
.product_page .tour-gallery-grid.layout-sub-3 .sub-img-item.item-1 {
	grid-column: span 2;
}

/* LỚP PHỦ MỜ +X ẢNH KHÁC */
.product_page .more-photos-badge {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: var(--color-white);
	text-align: center;
	border-radius: 8px;
}
.product_page .more-photos-badge strong { font-size: 15px; font-weight: 700; }
.product_page .more-photos-badge small { font-size: 11px; opacity: 0.85; }
/* ==========================================================
CSS 4 KHỐI THÔNG SỐ TOUR (.product_page)
========================================================== */

.product_page.tour-specs-wrapper {
	margin: 15px 0 25px 0;
}

/* Lưới 4 cột ngang bằng chằn chặn */
.product_page .tour-specs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

/* Từng thẻ thông số */
.product_page .tour-spec-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 13px;
	background-color: var(--color-white);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
	border: 1px solid #d6dae0;
	border-radius: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.product_page .tour-spec-item:hover {
	border-color: #d1d5db;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Ô chứa Icon bo góc tròn màu xanh chủ đạo */
.product_page .tour-spec-item .spec-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background-color: #ecfdf5;
	color: var(--color-main);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.product_page .tour-spec-item .spec-icon svg {
	stroke: var(--color-main);
}

/* Phần chữ bên cạnh */
.product_page .tour-spec-item .spec-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.product_page .tour-spec-item .spec-label {
	font-size: 13px;
	color: #344669;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.product_page .tour-spec-item .spec-value {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.product_page .chitiet {
	padding-bottom:0px !important;
}
.pd_tuongtu .product-section-title{
	color: var(--color-main);
	font-size:22px;
}
.pd_tuongtu  .product-section{
	border-top: none;
}

.pd_tuongtu .row.large-columns-4 > .col {
	max-width: 33.33333% !important;
	flex-basis: 33.33333% !important;
}
.pd_tuongtu .tour-price-main .amount,
.pd_tuongtu .tour-price-unit,
.pd_tuongtu .tour-price-contact{
	color: var(--color-second) !important;
	font-size: 17.5px;
	font-weight: bold;
}
.pd_tuongtu .tour-price-label,
.pd_tuongtu .tour-price-save,
.pd_tuongtu .tour-price-badge{
	display:none;
}

.shop-container .product_page .price-wrapper{
	position:unset !important;	
}
/* Mobile & Tablet: Tự động chia 2 hàng x 2 cột cho đẹp mắt */
@media (max-width: 992px) {
	.product_page .tour-specs-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
@media (max-width: 480px) {
	.product_page .tour-spec-item {
		padding: 10px;
		gap: 8px;
	}
	.product_page .tour-spec-item .spec-icon {
		width: 36px;
		height: 36px;
	}
	.product_page .tour-spec-item .spec-value {
		font-size: 13px;
	}
}
/* Responsive Mobile */
@media (max-width: 768px) {
	.product_page .tour-gallery-grid {
		grid-template-columns: 1fr !important;
		height: 475px !important;
	}
	.product_page .gallery-col-sub {
		display: none !important;
	}
	.product_page .tour-price-main{
		font-size: 26px;
	}
	.pd_tuongtu  .shop-container .price-wrapper{
		bottom:0px !important;
	}
}