/*
 * 41-product.css — trang san pham (9 trang WP slug phang; WooCommerce khong cai).
 * Mobile: breadcrumb -> thu vien anh -> ten -> gia -> so luong -> CTA -> uy tin -> accordion -> san pham khac.
 * Desktop (>=850): 2 cot, thu vien dinh (sticky) ben trai, thong tin + accordion ben phai.
 * Chi 2 moc @media: max 849 / min 850; 2 cot o 768-849 di bang container `bc-shell` (khong them moc thu 3).
 * Chi hien truong co du lieu that (xem production/2026-10-02-banhcom-final-professional-ui-v1.md).
 */
.bc-sec--pdp {
	--sec-pt: var(--s-4);
	--sec-pb: var(--s-12);
}

.bc-pdp {
	color: var(--bc-ink);
}

.bc-pdp p,
.bc-pdp h1,
.bc-pdp ul,
.bc-pdp li,
.bc-pdp dl,
.bc-pdp dd {
	margin: 0;
	padding: 0;
}

/* ---------- BREADCRUMB ---------- */
.bc-bc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-2);
	margin-bottom: var(--s-4);
	font-size: var(--fs-small);
	line-height: 20px;
	color: var(--bc-ink);
}

.bc-bc a,
.bc-pdp-brand a {
	padding: 12px 0; /* vung bam >= 44, khong doi bo cuc */
	margin: -12px 0;
}

.bc-bc a {
	color: var(--bc-muted);
}

.bc-bc a:hover {
	color: var(--bc-green-700);
}

.bc-bc i {
	font-style: normal;
	color: var(--bc-muted);
}

/* ---------- LUOI CHINH ---------- */
.bc-pdp-shell {
	container: bc-shell / inline-size;
}

.bc-pdp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--s-6);
	align-items: start;
}

@media (max-width: 849px) {
	@container bc-shell (min-width: 736px) {
		.bc-pdp-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
			gap: var(--s-6);
		}
	}
}

/* ---------- THU VIEN ANH ---------- */
.bc-pdp-img {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-md);
	background: var(--bc-surface-soft);
}

.bc-pdp-img::-webkit-scrollbar {
	display: none;
}

.bc-slide {
	flex: 0 0 100%;
	height: 100%;
	scroll-snap-align: center;
}

.bc-slide picture {
	display: block;
	height: 100%;
}

.bc-pdp-img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

/* Anh chinh cua khach co ty le ngang/doc: giu TOAN khung, khong crop. */
.bc-pdp-img .bc-slide--contain img {
	object-fit: contain;
}

.bc-pdp-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--s-3);
	margin-top: var(--s-3);
}

.bc-pdp .bc-thumb {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 0;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--bc-line);
	border-radius: var(--radius-xs);
	background: var(--bc-surface-soft);
	line-height: 0;
	cursor: pointer;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.bc-pdp .bc-thumb:hover {
	border-color: var(--bc-green-700);
}

.bc-pdp .bc-thumb.is-active {
	border-color: var(--bc-green-700);
	box-shadow: 0 0 0 1px var(--bc-green-700);
}

.bc-thumb picture {
	display: block;
	height: 100%;
}

.bc-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

/* ---------- THONG TIN ---------- */
.bc-pdp-info {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}

.bc-pdp-brand {
	font-size: var(--fs-small);
	line-height: 20px;
	font-weight: 500;
}

.bc-pdp-brand a {
	color: var(--bc-green-700);
}

.bc-pdp-name {
	font-size: 30px;
	line-height: 38px;
	font-weight: 700;
}

.bc-pdp-sub {
	margin-top: calc(-1 * var(--s-2));
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--bc-muted);
}

.bc-pdp-price {
	line-height: 32px;
	color: var(--bc-green-900);
}

.bc-pdp-price b {
	font-size: 26px;
	font-weight: 700;
}

.bc-pdp-price span {
	font-size: 14px;
	font-weight: 400;
	color: var(--bc-muted);
}

.bc-pdp-facts {
	border-top: 1px solid var(--bc-line);
	text-transform: none;
	letter-spacing: 0;
}

.bc-pdp-facts div {
	display: flex;
	gap: var(--s-4);
	padding: var(--s-3) 0;
	border-bottom: 1px solid var(--bc-line);
	font-size: 14px;
	line-height: 20px;
}

.bc-pdp-facts dt {
	flex: 0 0 84px;
	color: var(--bc-muted);
}

.bc-pdp-facts dd {
	font-weight: 500;
	color: var(--bc-ink);
}

/* ---------- SO LUONG + CTA ---------- */
.bc-pdp-buy {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}

.bc-pdp-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
}

.bc-pdp-qty label {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: var(--bc-ink);
}

.bc-step {
	display: flex;
	align-items: center;
	gap: var(--s-2);
}

.bc-step button {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	min-height: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--bc-line);
	border-radius: var(--radius-sm);
	background: var(--bc-white);
	box-shadow: none;
	color: var(--bc-ink);
	font-size: 20px;
	line-height: 1;
	font-weight: 400;
	text-transform: none;
	cursor: pointer;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.bc-step button:hover {
	border-color: var(--bc-green-700);
	background: var(--bc-green-100);
	box-shadow: none;
}

/* Specificity 0,2,1 + min-height 0: Flatsome input[type=number] ep chieu cao theo em. */
.bc-pdp .bc-step input {
	box-sizing: border-box;
	flex: 0 0 64px;
	width: 64px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--bc-line);
	border-radius: var(--radius-sm);
	background: var(--bc-white);
	box-shadow: none;
	text-align: center;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--bc-ink);
	-moz-appearance: textfield;
}

.bc-step input::-webkit-outer-spin-button,
.bc-step input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.bc-pdp-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-3);
}

.bc-pdp-stock {
	font-size: 14px;
	line-height: 20px;
	color: var(--bc-muted);
}

.bc-pdp-stock b {
	font-weight: 700;
	color: var(--bc-green-900);
}

.bc-pdp-stock a {
	font-weight: 600;
	color: var(--bc-green-700);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- UY TIN (chi su that) ---------- */
.bc-pdp .bc-pdp-trust {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--s-3);
	padding: var(--s-4);
	border-radius: var(--radius-md);
	background: var(--bc-surface-soft);
	list-style: none;
}

.bc-pdp-trust li {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	font-size: 14px;
	line-height: 20px;
	color: var(--bc-ink);
}

.bc-pdp-trust svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--bc-green-700);
}

/* ---------- ACCORDION ---------- */
.bc-acc {
	margin-top: var(--s-2);
	border-bottom: 1px solid var(--bc-line);
}

.bc-acc details {
	interpolate-size: allow-keywords;
	border-top: 1px solid var(--bc-line);
}

.bc-acc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	box-sizing: border-box;
	min-height: 52px;
	padding: var(--s-3) 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--bc-green-900);
	list-style: none;
	cursor: pointer;
}

.bc-acc summary::-webkit-details-marker {
	display: none;
}

.bc-acc summary::after {
	content: "";
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border: solid var(--bc-muted);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform var(--dur) var(--ease);
}

.bc-acc details[open] summary::after {
	transform: rotate(-135deg);
}

.bc-acc details::details-content {
	block-size: 0;
	overflow: clip;
	transition: block-size var(--dur) var(--ease), content-visibility var(--dur) var(--ease) allow-discrete;
}

.bc-acc details[open]::details-content {
	block-size: auto;
}

.bc-acc-body {
	padding: 0 0 var(--s-4);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--bc-ink);
}

.bc-acc-body ul {
	padding-left: var(--s-6);
	list-style: disc;
}

.bc-acc-body li {
	list-style: disc;
}

.bc-acc-body li + li {
	margin-top: var(--s-1);
}

/* ---------- SAN PHAM KHAC ---------- */
.bc-sec--related {
	--sec-pt: var(--s-4);
	--sec-pb: var(--s-12);
}

@media (min-width: 850px) {
	.bc-sec--pdp {
		--sec-pt: var(--s-6);
		--sec-pb: var(--s-16);
	}

	.bc-sec--related {
		--sec-pb: var(--s-20);
	}

	.bc-bc {
		margin-bottom: var(--s-6);
	}

	.bc-pdp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--s-12);
	}

	.bc-pdp-gal {
		position: sticky;
		top: 128px;
	}

	.bc-pdp-name {
		font-size: 40px;
		line-height: 48px;
	}

	.bc-pdp-price b {
		font-size: 30px;
	}

	.bc-pdp-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.bc-pdp .bc-thumb,
	.bc-step button,
	.bc-acc summary::after,
	.bc-acc details::details-content {
		transition: none;
	}
}
