/* Product catalogue (archive-product / product taxonomies) and product detail.
 * Pencil frames "Sản phẩm V2 – Ảnh vuông" and "Chi tiết sản phẩm". */

:root {
	--tone-red: #e0142b;
	--tone-red-tint: #fde7ea;
	--tone-blue: #1057a8;
	--tone-blue-tint: #e4eefa;
	--tone-amber: #8a5a05;
	--tone-amber-tint: #fff1d9;
	--soft-mint: #ebf6f0;
}

/* Group pills (shared by cards and the detail page) */
.pgroup-pill {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 5px 10px;
	border-radius: 99px;
	background: var(--brand-tint);
	color: var(--brand-dark);
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

/* Group colours: the tokens live in main.css. Each group sets --g (solid) and --g-ink (text on it). */
.pgroup-thermal { --g: var(--group-thermal); --g-ink: #fff; }
.pgroup-safety { --g: var(--group-safety); --g-ink: var(--group-safety-ink); }
.pgroup-flow { --g: var(--group-flow); --g-ink: #fff; }
.pgroup-automation { --g: var(--group-automation); --g-ink: #fff; }

.pgroup-pill--thermal,
.pgroup-pill--safety,
.pgroup-pill--flow,
.pgroup-pill--automation {
	background: var(--g);
	color: var(--g-ink);
}

.pgroup-pill--thermal { --g: var(--group-thermal); --g-ink: #fff; }
.pgroup-pill--safety { --g: var(--group-safety); --g-ink: var(--group-safety-ink); }
.pgroup-pill--flow { --g: var(--group-flow); --g-ink: #fff; }
.pgroup-pill--automation { --g: var(--group-automation); --g-ink: #fff; }

/* Group dot beside a group name in the filter sidebar */
.pgroup-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-inline-end: 8px;
	border-radius: 50%;
	background: var(--g);
}

.pgroup-dot--thermal { --g: var(--group-thermal); }
.pgroup-dot--safety { --g: var(--group-safety); }
.pgroup-dot--flow { --g: var(--group-flow); }
.pgroup-dot--automation { --g: var(--group-automation); }

/* Active-filter chip of a group */
.pchip.pgroup-thermal,
.pchip.pgroup-safety,
.pchip.pgroup-flow,
.pchip.pgroup-automation {
	border-color: var(--g);
	background: var(--g);
	color: var(--g-ink);
}

.pchip.pgroup-thermal:hover,
.pchip.pgroup-safety:hover,
.pchip.pgroup-flow:hover,
.pchip.pgroup-automation:hover {
	filter: brightness(0.92);
	color: var(--g-ink);
}

.pgroup-pill--grey {
	background: var(--surface-alt);
	color: var(--text-muted);
}

/* Catalogue layout */
.site-main > .catalogue {
	padding-block: 48px 80px;
}

.catalogue__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 30px;
}

.catalogue__head .page-title {
	margin: 0;
}

.catalogue__intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 460px;
	font-size: 13px;
	line-height: 21px;
	color: var(--text-muted);
}

.catalogue__intro .eyebrow {
	font-size: 11px;
	letter-spacing: 1.4px;
}

.catalogue__layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

/* Sidebar */
.catalogue__side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pfilter {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pfilter__search {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	color: var(--brand);
}

.pfilter__search:focus-within {
	border-color: var(--brand);
}

.pfilter__search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font: 14px/1.3 var(--font-body);
}

.pfilter__search input::placeholder {
	color: var(--text-muted);
}

.pfilter__box-group {
	margin: 0;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
}

.pfilter__box-group legend {
	float: left;
	width: 100%;
	margin-bottom: 14px;
	padding: 0;
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	color: var(--text);
}

.pfilter__box-group ul {
	clear: both;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pfilter__row label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1.3;
	color: var(--text-muted);
	cursor: pointer;
}

.pfilter__row--child label {
	padding-inline-start: 22px;
	font-size: 12.5px;
}

.pfilter__row--grand label {
	padding-inline-start: 40px;
	font-size: 12px;
}

.pfilter__row input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pfilter__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	color: transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.pfilter__row input:checked + .pfilter__box {
	border-color: var(--brand);
	background: var(--brand);
	color: var(--text-invert);
}

.pfilter__row input:focus-visible + .pfilter__box {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.pfilter__row input:checked ~ .pfilter__name {
	font-weight: 600;
	color: var(--text);
}

.pfilter__row label:hover .pfilter__name {
	color: var(--brand-dark);
}

.pfilter__name {
	flex: 1;
}

.pfilter__count {
	font-size: 12px;
	color: var(--text-muted);
}

.pfilter__more summary {
	display: inline-block;
	margin-top: 6px;
	padding-block: 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--brand-dark);
	cursor: pointer;
	list-style: none;
}

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

.pfilter__more-close,
.pfilter__more[open] .pfilter__more-open {
	display: none;
}

.pfilter__more[open] .pfilter__more-close {
	display: inline;
}

.pfilter.is-live .pfilter__apply {
	display: none;
}

.padvisor {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border-radius: 12px;
	background: var(--soft-mint);
}

.padvisor__eyebrow {
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1;
	color: var(--brand-dark);
}

.padvisor__text {
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-muted);
}

.padvisor__phone {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: var(--text);
	text-decoration: none;
}

.padvisor__mail {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 38px;
	border-radius: 8px;
	background: var(--brand);
	color: var(--text-invert);
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.padvisor__mail:hover {
	background: var(--brand-dark);
}

/* Application tabs */
.ptabs {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--border);
}

.ptabs ul {
	display: flex;
	flex-wrap: wrap;
}

.ptabs a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: -1px;
	padding: 0 20px 12px 0;
	border-bottom: 3px solid transparent;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	color: var(--text-muted);
	text-decoration: none;
}

.ptabs li + li a {
	padding-inline-start: 20px;
}

.ptabs a[aria-current="true"] {
	border-bottom-color: var(--brand);
	font-weight: 700;
	color: var(--brand-dark);
}

.ptabs a:hover {
	color: var(--brand-dark);
}

.ptabs__count {
	padding: 4px 9px;
	border-radius: 20px;
	background: var(--tone-blue-tint);
	color: var(--tone-blue);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.ptabs a[aria-current="true"] .ptabs__count {
	background: var(--brand-tint);
	color: var(--brand-dark);
}

.ptabs__note {
	padding-bottom: 12px;
	font-size: 11.5px;
	color: var(--text-muted);
	white-space: nowrap;
}

/* List heading, sort, chips */
.plist-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 20px;
}

.plist-head__title {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.2px;
	color: var(--text);
}

.plist-head__title span {
	margin-inline-start: 4px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--text-muted);
}

.psort {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 13px;
	line-height: 1;
	color: var(--text-muted);
}

.psort select {
	appearance: none;
	padding-inline-end: 18px;
	border: 0;
	background: transparent;
	color: var(--text);
	font: 600 13px/1 var(--font-body);
	cursor: pointer;
}

.psort .icon {
	position: absolute;
	right: 14px;
	pointer-events: none;
	color: var(--text-muted);
}

.pchips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	font-size: 13px;
	color: var(--text-muted);
}

.pchip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border: 1px solid var(--brand);
	border-radius: 99px;
	background: var(--brand-tint);
	color: var(--brand-dark);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.pchip:hover {
	background: var(--brand);
	color: var(--text-invert);
}

.pchips__clear {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	text-decoration: none;
}

.pchips__clear:hover {
	color: var(--tone-red);
	text-decoration: underline;
}

/* Product grid and cards */
.pgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.pgrid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 0;
}

.pcard {
	display: flex;
	flex-direction: column;
}

/* Framed square: light box, thin border, padding; the photo is contained, never cropped. */
.pcard__media {
	display: block;
	box-sizing: border-box;
	aspect-ratio: 1;
	padding: 12px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
}

.pcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.4s ease;
}

.pcard:hover .pcard__media img {
	transform: scale(1.04);
}

.pcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 0 18px;
}

.pcard__title {
	min-height: 42px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--text);
}

.pcard__title a {
	color: inherit;
	text-decoration: none;
}

.pcard__title a:hover {
	color: var(--brand-dark);
}

.pcard__code {
	margin-top: auto;
	font-size: 12px;
	line-height: 1.2;
	color: var(--text-muted);
}

.pcard__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 40px;
	border-radius: 8px;
	background: var(--brand-tint);
	color: var(--brand-dark);
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.pcard__cta:hover {
	background: var(--brand);
	color: var(--text-invert);
}

.pfilter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	margin-inline-end: auto;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	font: 600 13px/1 var(--font-body);
}

.pfilter-toggle .icon {
	color: var(--brand-dark);
}

.pfilter-toggle__count {
	padding: 3px 7px;
	border-radius: 99px;
	background: var(--brand);
	color: var(--text-invert);
	font-size: 11px;
	font-weight: 700;
}

.pempty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-top: 24px;
	padding: 40px;
	border: 1px dashed var(--border-strong);
	border-radius: 12px;
	color: var(--text-muted);
}

.pempty--term {
	max-width: 640px;
	border-style: solid;
	border-color: var(--border);
	background: var(--surface-alt);
	line-height: 1.6;
}

.pempty__logo {
	width: auto;
	max-width: 180px;
	height: 56px;
	object-fit: contain;
}

.pempty__title {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 700;
	color: var(--text);
}

.pempty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Footer: count + pager */
.pfoot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-muted);
}

.ppager {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ppager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 6px;
	border: 1px solid var(--border);
	border-radius: 8px;
	color: var(--text);
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ppager a.page-numbers:hover {
	border-color: var(--brand);
	color: var(--brand-dark);
}

.ppager .page-numbers.current {
	border-color: var(--brand);
	background: var(--brand);
	color: var(--text-invert);
}

.ppager .page-numbers.dots {
	border-color: transparent;
}

/* Detail: top */
.pdetail__top {
	display: grid;
	grid-template-columns: minmax(0, 624fr) minmax(0, 648fr);
	gap: 40px;
	padding-block: 48px 52px;
}

.pgallery {
	display: flex;
	gap: 14px;
	align-self: start;
}

.pgallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 0 0 110px;
}

.pgallery__thumb {
	display: block;
	box-sizing: border-box;
	width: 110px;
	height: 110px;
	padding: 6px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
}

.pgallery__thumb[aria-current="true"] {
	border-color: var(--brand);
	box-shadow: 0 0 0 1px var(--brand);
}

.pgallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pgallery__main {
	position: relative;
	flex: 1;
	box-sizing: border-box;
	aspect-ratio: 1;
	padding: 24px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
}

.pgallery__main > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pgallery__badges {
	position: absolute;
	top: 18px;
	left: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pgallery__badges span,
.pgallery__zoom {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border-radius: 99px;
	background: rgba(11, 21, 18, 0.85);
	backdrop-filter: blur(6px);
	color: var(--text-invert);
	font-family: var(--font-head);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.8px;
}

.pgallery__badges .icon {
	color: var(--brand-on-dark);
}

.pgallery__zoom {
	position: absolute;
	left: 18px;
	bottom: 18px;
	gap: 7px;
	padding: 7px 12px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 8px rgba(11, 21, 18, 0.12);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-decoration: none;
}

.pgallery__dialog {
	max-width: min(1100px, 92vw);
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--surface);
	cursor: zoom-out;
}

.pgallery__dialog[open] {
	animation: pdialog-in 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes pdialog-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
}

.pgallery__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(11, 21, 18, 0.7);
	color: var(--text-invert);
	cursor: pointer;
}

.pgallery__close:hover {
	background: var(--ink);
}

.pgallery__dialog::backdrop {
	background: rgba(11, 21, 18, 0.8);
}

.pgallery__dialog img {
	display: block;
	box-sizing: border-box;
	max-width: 100%;
	max-height: 90vh;
	padding: 16px;
	background: #fff;
	object-fit: contain;
}

.psummary {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.psummary__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.psummary__title {
	font-family: var(--font-head);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.9px;
	line-height: 1.12;
	color: var(--text);
}

.psummary__meta {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin: 0;
	padding-block: 16px;
	border-block: 1px solid var(--border);
}

.psummary__meta > div {
	padding-inline: 22px 10px;
	border-inline-start: 1px solid var(--border);
}

.psummary__meta > div:first-child {
	padding-inline-start: 0;
	border-inline-start: 0;
}

.psummary__meta dt {
	margin-bottom: 7px;
	font-family: var(--font-head);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	color: var(--text-muted);
}

.psummary__meta dd {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text);
}

.psummary__lede {
	font-size: 14px;
	line-height: 24px;
	color: var(--text-muted);
}

.phighlights {
	display: flex;
	flex-direction: column;
	padding: 18px 22px;
	border-radius: 12px;
	background: var(--surface-alt);
}

.phighlights li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-block: 11px;
	font-size: 13.5px;
	line-height: 1.3;
}

.phighlights li:first-child {
	padding-top: 0;
}

.phighlights li:last-child {
	padding-bottom: 0;
}

.phighlights li + li {
	border-top: 1px solid var(--border);
}

.phighlights .icon {
	color: var(--brand-dark);
}

.phighlights__label {
	flex: 0 1 auto;
	max-width: 45%;
	color: var(--text-muted);
}

.phighlights strong {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--text);
	text-align: right;
}

.psummary__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.psummary__actions .btn-primary {
	gap: 9px;
	padding-inline: 30px;
}

.psummary__sheet {
	height: 52px;
	gap: 9px;
	padding-inline: 26px;
	border-radius: 8px;
}

/* Detail: body */
.ptabbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 1px solid var(--border);
}

.ptabbar__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: -1px;
	padding: 0 2px 12px;
	border-bottom: 2px solid var(--brand);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	color: var(--brand-dark);
}

.ptabbar__tab .icon {
	color: var(--brand);
}

.ptabbar__note {
	padding-bottom: 12px;
	font-size: 12.5px;
	color: var(--text-muted);
}

.psection {
	padding-top: 32px;
}

.psection + .psection {
	padding-top: 56px;
}

.psection .eyebrow {
	font-size: 11px;
	letter-spacing: 1.4px;
}

.psection__title {
	margin-top: 12px;
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.3px;
	line-height: 1.15;
	color: var(--text);
}

.psection__title::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin-top: 12px;
	background: var(--brand);
}

.psection__content {
	max-width: 880px;
	margin-top: 22px;
	font-size: 14.5px;
	line-height: 1.85;
	color: var(--text-muted);
}

.psection__content > * + * {
	margin-top: 1.1em;
}

.psection__content ul,
.psection__content ol {
	padding-inline-start: 1.3em;
	list-style: disc;
}

.psection__content h2,
.psection__content h3,
.psection__content h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.3;
	color: var(--text);
}

.psection__content h2 {
	font-size: 21px;
}

.psection__content h3,
.psection__content h4 {
	font-size: 17px;
}

.psection__content table {
	display: block;
	width: max-content;
	min-width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 13.5px;
	line-height: 1.5;
	/* Edge shadows show on the side that still has hidden columns (covers fade them out at each end). */
	background:
		linear-gradient(to right, var(--surface) 30%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
		linear-gradient(to left, var(--surface) 30%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
		linear-gradient(to right, rgba(11, 21, 18, 0.2), rgba(11, 21, 18, 0)) left center / 12px 100% no-repeat scroll,
		linear-gradient(to left, rgba(11, 21, 18, 0.2), rgba(11, 21, 18, 0)) right center / 12px 100% no-repeat scroll;
	background-color: var(--surface);
}

/* Reference codes and sizes stay on one line (the table scrolls instead of breaking "VPG4648-" / "02EP0040"). */
.psection__content td,
.psection__content th {
	padding: 8px 10px;
	border: 1px solid var(--border);
	text-align: start;
	vertical-align: top;
	white-space: nowrap;
}

.pspecs-wrap {
	margin-top: 22px;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 12px;
}

.pspecs {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.pspecs thead th {
	padding: 14px 22px;
	background: var(--soft-mint);
	font-family: var(--font-head);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.2px;
	color: var(--text);
	text-align: start;
}

.pspecs thead th + th {
	color: var(--brand-dark);
}

.pspecs tbody th,
.pspecs tbody td {
	padding: 14px 22px;
	border-top: 1px solid var(--border);
	text-align: start;
	vertical-align: top;
}

.pspecs tbody tr:nth-child(even) {
	background: var(--surface-alt);
}

.pspecs thead th:first-child,
.pspecs tbody th {
	width: 342px;
	font-weight: 600;
	color: var(--text);
}

.pspecs tbody td {
	color: var(--text-muted);
}

.pspecs-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 12px;
	color: var(--text-muted);
}

.pdetail__body {
	padding-bottom: 72px;
}

/* Detail: related */
.prelated.section {
	padding-block: 64px;
}

.prelated__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--border-strong);
}

.prelated__head .eyebrow {
	font-size: 11px;
	letter-spacing: 1.4px;
}

.prelated__title {
	margin-top: 10px;
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.2px;
	line-height: 1;
	color: var(--text);
}

.prelated__head .link-arrow {
	font-family: var(--font-body);
	font-size: 13.5px;
	letter-spacing: 0;
}


/* Responsive */
@media (max-width: 1180px) {
	.catalogue__layout {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 24px;
	}

	.pgrid,
	.pgrid--4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pdetail__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.psummary__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-flow: row;
		gap: 14px 0;
	}

	.psummary__meta > div:nth-child(odd) {
		padding-inline-start: 0;
		border-inline-start: 0;
	}
}

@media (max-width: 860px) {
	.site-main > .catalogue {
		padding-top: 40px;
	}

	.catalogue__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		margin-bottom: 24px;
	}

	.catalogue__head .page-title {
		margin: 0 0 20px;
	}

	.catalogue__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	/* With JS the sidebar becomes a panel opened by the "Bộ lọc" button. */
	.catalogue__layout.is-collapsible .catalogue__side {
		display: none;
	}

	.catalogue__layout.is-open .catalogue__side {
		display: flex;
	}

	.catalogue__layout.is-collapsible .pfilter-toggle {
		display: inline-flex;
	}

	.catalogue__layout.is-open .pfilter-toggle {
		border-color: var(--brand);
		background: var(--brand-tint);
	}

	.catalogue__main {
		grid-row: 1;
	}

	.catalogue__layout.is-open .catalogue__main {
		grid-row: auto;
	}

	.ptabs ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ptabs a {
		white-space: nowrap;
	}

	.ptabs__note {
		display: none;
	}
}

@media (max-width: 640px) {
	.pgrid,
	.pgrid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 12px;
	}

	.pcard__title {
		font-size: 14px;
	}

	.pcard__media {
		padding: 8px;
	}

	.pcard__cta-more {
		display: none;
	}

	.plist-head {
		flex-wrap: wrap;
	}

	.plist-head__title {
		font-size: 19px;
	}

	.pgallery {
		flex-direction: column-reverse;
	}

	.pgallery__thumbs {
		flex-direction: row;
		flex-basis: auto;
		overflow-x: auto;
	}

	.pgallery__thumb {
		flex: 0 0 72px;
		width: 72px;
		height: 72px;
	}

	.psummary__title {
		font-size: 28px;
	}

	.psummary__actions > * {
		flex: 1 1 100%;
		justify-content: center;
	}

	.prelated__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.pspecs thead th:first-child,
	.pspecs tbody th {
		width: 40%;
	}

	.pspecs thead th,
	.pspecs tbody th,
	.pspecs tbody td {
		padding-inline: 14px;
	}
}

.pfilter__more ul {
	margin-top: 12px;
}

/* Sub-categories of the current category, above the list. */
.psubcats {
	margin-bottom: 24px;
}

.psubcats__label {
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--text);
}

.psubcats .pchips {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.psubcats__n {
	font-weight: 500;
	opacity: .7;
}

/* Below the grid: related categories/brands and the term's buying guide. */
.pseo {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--border);
	display: grid;
	gap: 28px;
}

.pseo__label {
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--text);
}

.pseo__links .pchips {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.pseo__guide {
	max-width: 860px;
	color: var(--text);
	line-height: 1.7;
}

.pseo__guide h2 {
	font-family: var(--font-head);
	font-size: 24px;
	line-height: 1.25;
}

.pseo__guide h3 {
	font-family: var(--font-head);
	font-size: 18px;
}

.pseo__guide a {
	color: var(--brand-dark);
}

.psummary__meta dd a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--border-strong);
	text-underline-offset: 3px;
}

.psummary__meta dd a:hover {
	color: var(--brand-dark);
	text-decoration-color: currentColor;
}

.pseo__guide ul,
.pseo__guide ol {
	padding-left: 1.25em;
}

.pseo__guide ul {
	list-style: disc;
}

.pseo__guide ol {
	list-style: decimal;
}

.pseo__guide li + li {
	margin-top: 4px;
}
