/* ===== KHUNG CHÍNH ===== */
.chi_tiet {
	padding: 22px;
	border: 1px solid rgba(14, 95, 73, .18);
	border-top: 4px solid var(--color-main);
	border-radius: 16px;
	background: var(--color-white);
	box-shadow: 0 8px 28px rgba(14, 95, 73, .06);
}

.profile-box,
.profile-box *,
.booking-popup,
.booking-popup * {
	box-sizing: border-box;
}

.profile-box {
	display: flex;
	align-items: flex-start;
	gap: 30px;
}

/* ===== CỘT ẢNH ===== */
.profile-avatar {
	flex: 0 0 350px;
	width: 350px;
	min-width: 0;
}

.profile-main-image {
	padding: 6px;
	margin-bottom: 12px;
	background: #f2f7f5;
	border: 1px solid rgba(14, 95, 73, .12);
	border-radius: 16px;
	overflow: hidden;
}

.profile-main-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 11px;
	object-fit: cover;
}

/* ===== GALLERY ===== */
.profile-gallery-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
}

.profile-gallery {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 16px) / 3);
	gap: 8px;
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.profile-gallery::-webkit-scrollbar {
	display: none;
}

.profile-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 9px;
	border: 2px solid transparent;
	cursor: pointer;
	scroll-snap-align: start;
	transition: border-color .2s ease, opacity .2s ease;
}

.profile-gallery img:hover,
.profile-gallery img.active {
	border-color: var(--color-main);
	opacity: .85;
}

.profile-gallery-wrap .gallery-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	min-width: 0;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(14, 95, 73, .2);
	border-radius: 8px;
	background: #f2f7f5;
	color: var(--color-main);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.profile-gallery-wrap .gallery-nav:hover {
	background: var(--color-main);
	color: var(--color-white);
}

/* ===== THÔNG TIN ===== */
.profile-info {
	flex: 1;
	min-width: 0;
}

.profile-info ul {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.profile-info li {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	padding: 11px 14px;
	margin: 0 !important;
	border-bottom: 1px solid rgba(14, 95, 73, .12);
	font-size: 16px;
	color: var(--color-black);
	font-weight: 600;
}

.profile-info li:first-child {
	background: #f2f7f5;
	border-left: 3px solid var(--color-main);
	border-bottom: 0;
	border-radius: 0 8px 8px 0;
}

.profile-info li span {
	color: var(--color-main);
	font-weight: 600;
}

.profile-info .price-red {
	color: var(--color-phu);
	font-size: 20px;
	font-weight: 700;
}

.profile-info .price-green {
	color: var(--color-main);
	font-weight: 600;
}

/* ===== KHUNG NỘI DUNG ===== */
.info-box {
	max-width: 100%;
	padding: 18px;
	background: #fbfdfc;
	border: 1px solid rgba(14, 95, 73, .14);
	border-radius: 12px;
	line-height: 1.8;
	color: var(--color-black);
}

.info-box b {
	color: var(--color-main);
	font-weight: 700;
}

.info-box .hotline {
	color: var(--color-phu);
	font-size: 19px;
	font-weight: 700;
	white-space: nowrap;
}

.info-box .note {
	color: #66736e;
	font-size: 13px;
}

.info-box .list {
	margin-top: 13px;
	padding-top: 12px;
	border-top: 1px dashed rgba(14, 95, 73, .25);
	color: var(--color-black);
	font-size: 14px;
}

.info-box .list div {
	margin-bottom: 6px;
}

.info-box .list div:last-child {
	margin-bottom: 0;
}

/* ===== LIÊN HỆ ===== */
.profile-contact {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid rgba(14, 95, 73, .12);
}

.profile-contact .contact-label {
	color: var(--color-main);
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
}

.profile-buttons {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 10px;
}

.profile-buttons .btn,
.profile-buttons .td-book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	height: auto;
	margin: 0;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 9px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	color: var(--color-white);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}

.profile-buttons .btn img {
	display: block;
	width: 23px;
	height: 23px;
	object-fit: contain;
}

.profile-buttons .btn.whatsapp {
	background: var(--color-main);
}

.profile-buttons .btn.telegram {
	background: #edf6f2;
	border-color: rgba(14, 95, 73, .25);
	color: var(--color-main);
}

.profile-buttons .td-book {
	background: var(--color-phu);
	box-shadow: 0 4px 12px rgba(231, 0, 11, .15);
}

.profile-buttons .btn:hover,
.profile-buttons .td-book:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(14, 95, 73, .15);
}

.profile-buttons a:focus-visible,
.profile-buttons button:focus-visible,
.profile-gallery-wrap button:focus-visible {
	outline: 3px solid var(--color-main);
	outline-offset: 3px;
}

/* ===== TIÊU ĐỀ ===== */
.chi_tiet .product-title {
	margin-top: 10px;
	margin-bottom: 18px;
	color: var(--color-main);
	font-weight: 700;
}

.section-title-normal span {
	width: 100%;
	border-bottom: 2px solid var(--color-main) !important;
}

/* ===== POPUP ===== */
.booking-popup {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 99999;
}

.booking-popup.active {
	display: flex;
}

.booking-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 25, 18, .65);
}

.booking-popup-content {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
	max-width: 600px;
	max-height: 90vh;
	max-height: 90dvh;
	overflow: auto;
	padding: 28px;
	background: var(--color-white);
	border-top: 5px solid var(--color-main);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

/* ===== TABLET / MOBILE ===== */
@media (max-width: 768px) {
	.chi_tiet {
		padding: 14px;
		border-radius: 12px;
	}

	.profile-box {
		flex-direction: column;
		gap: 22px;
	}

	.profile-avatar {
		flex: none;
		width: 100%;
	}

	.profile-info {
		width: 100%;
	}

	.profile-gallery {
		grid-auto-columns: calc((100% - 24px) / 4);
	}

	.profile-gallery-wrap .gallery-nav {
		display: none;
	}

	.profile-info li,
	.profile-info li span {
		font-size: 14px;
	}

	.profile-info .price-red {
		font-size: 17px;
	}

	.info-box {
		padding: 14px;
		font-size: 14px;
	}

	.profile-contact {
		align-items: flex-start;
		gap: 10px;
	}

	.profile-contact .contact-label {
		width: 100%;
		font-size: 17px;
	}

	.profile-buttons {
		width: 100%;
	}

	.profile-buttons .btn {
		flex: 1;
		padding: 10px 12px;
	}

	.profile-buttons .td-book {
		flex: 1 0 100%;
	}

	.booking-popup-content {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.profile-buttons .btn,
	.profile-buttons .td-book,
	.profile-gallery img,
	.profile-gallery-wrap .gallery-nav {
		transition: none;
	}
}