/**
 * Ulannii — the product guide.
 *
 * Loaded on template-products.php and on the shop archive, which this theme
 * hands to the same template.
 *
 * White ground, orange marks. The page was cream until 2026-09-30, when the
 * owner asked for it white throughout; only the call-to-action box at the foot
 * (--pg-soft) keeps a warm tint, so it still stands out.
 */

/* Astra's .ast-container is a flex row on a wide screen, which squeezes a
   full-bleed section down to the width of its own text. Same treatment as the
   home page gets. */
.page-template-template-products .site-content > .ast-container,
.post-type-archive-product .site-content > .ast-container {
	display: block;
	max-width: none;
	padding: 0;
}

.page-template-template-products .site-main,
.page-template-template-products .site-main > article,
.page-template-template-products .entry-content,
.post-type-archive-product .site-main,
.post-type-archive-product .entry-content {
	margin: 0;
	padding: 0;
}

/* WooCommerce still prints its archive furniture around the guide — the shop
   title, the "showing 1-12 of 24" line and the sort box. None of it belongs on
   a page that is not a shop. */
.post-type-archive-product .woocommerce-products-header,
.post-type-archive-product .woocommerce-result-count,
.post-type-archive-product .woocommerce-ordering,
.post-type-archive-product .ast-woocommerce-container > .products,
.post-type-archive-product .woocommerce-breadcrumb {
	display: none;
}

/* Anchors on this page are navigation, not footnotes — glide rather than jump.
   `scroll-behavior` only has an effect on the element that actually scrolls the
   viewport, which is `html`, so it cannot be set from the body class alone. */
html:has(body.page-template-template-products),
html:has(body.post-type-archive-product) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

	html:has(body.page-template-template-products),
	html:has(body.post-type-archive-product) {
		scroll-behavior: auto;
	}
}

/* ============================================================
   Tokens and shared shapes
   ============================================================ */

.u-pg-page,
.u-pg-brand,
.u-pg-chips,
.u-pg-range,
.u-pg-paths,
.u-pg-proof,
.u-pg-jump {
	--pg-bg: #ffffff;
	--pg-panel: #ffffff;
	--pg-ink: #2c231d;
	--pg-muted: #8a6f5e;
	--pg-line: #eee0d2;
	--pg-accent: #e2650f;
	--pg-soft: #fbe9da;
	--pg-radius: 14px;

	/* The site header is sticky and stands 110px tall (see site.css). Anything
	   that pins itself, and every heading an anchor jumps to, has to clear it —
	   otherwise a link lands with its own heading hidden behind the menu. */
	--pg-header: 130px;

	box-sizing: border-box;
	font-family: Mulish, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--pg-ink);
	background: var(--pg-bg);
}

.u-pg-page *,
.u-pg-chips *,
.u-pg-range *,
.u-pg-paths *,
.u-pg-proof *,
.u-pg-jump * {
	box-sizing: border-box;
}

.u-pg-inner {
	max-width: 1080px;
	margin: 0 auto;
}

.u-pg-eyebrow {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pg-accent);
}

/* ============================================================
   The page: the group menu down the left, everything else beside it
   ============================================================ */

/* products.js sets --pg-sticky to the real height of the sticky site header,
   which differs between the desktop and phone headers; --pg-header is the
   fallback. */
.u-pg-page {
	--pg-top: var(--pg-sticky, var(--pg-header));
}

.u-pg-main {
	min-width: 0;
}

/* ============================================================
   1 — the brand page from the back of the 2026 catalogue
   ============================================================ */

.u-pg-brand {
	padding: 56px 40px 64px 32px;
	scroll-margin-top: var(--pg-top);
}

.u-pg-brand__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
}

.u-pg-brand__row + .u-pg-brand__row {
	margin-top: 40px;
}

.u-pg-brand__photo {
	margin: 0;
	overflow: hidden;
	border-radius: var(--pg-radius);
	background: #f3f1ee;
}

.u-pg-brand__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.u-pg-brand__photo.is-tall {
	aspect-ratio: 4 / 5;
}

.u-pg-brand__photo.is-wide {
	aspect-ratio: 9 / 7;
}

.u-pg-brand__title {
	margin: 10px 0 16px;
	font-size: clamp(26px, 2.8vw, 36px);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: balance;
	color: #1b1b1b;
}

.u-pg-brand__lead {
	margin: 0;
	max-width: 52ch;
	font-size: 17px;
	line-height: 1.7;
	color: #3b332d;
}

.u-pg-brand__icons,
.u-pg-brand__badges,
.u-pg-brand__claims {
	margin: 0;
	padding: 0;
	list-style: none;
}

.u-pg-brand__icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
	margin-top: 30px;
}

.u-pg-brand__icons img {
	display: block;
	width: auto;
	height: 88px;
}

.u-pg-brand__hundred {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 48px;
	align-items: center;
}

/* "100%" stood on its side, with a grey copy behind it, as printed. */
.u-pg-brand__big {
	position: relative;
	isolation: isolate;
	font-size: 104px;
	font-weight: 900;
	line-height: 0.8;
	letter-spacing: -0.02em;
	color: #111;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.u-pg-brand__big::after {
	content: "100%";
	position: absolute;
	inset: 0;
	z-index: -1;
	color: #d4d4d4;
	transform: translate(-28px, 20px);
}

.u-pg-brand__claims li {
	margin: 0;
	padding: 13px 0 11px;
	border-bottom: 2px solid #f0a060;
	font-size: 19px;
	color: #222;
}

.u-pg-brand__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 22px;
	margin-top: 28px;
}

.u-pg-brand__badges img {
	display: block;
	width: auto;
	height: 54px;
}

.u-pg-brand__badges .is-wide img {
	height: 36px;
}

.u-pg-brand__slogan {
	max-width: 1180px;
	margin: 56px auto 0;
	padding: 24px 0;
	border-block: 2px solid var(--pg-accent);
	font-size: clamp(22px, 3.2vw, 42px);
	font-weight: 300;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	color: #111;
}

.u-pg-brand__slogan b {
	font-weight: 900;
}

.u-pg-brand__break {
	max-width: 1180px;
	margin: 48px auto 28px;
	font-size: clamp(21px, 2.6vw, 34px);
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-wrap: balance;
	color: #1b1b1b;
}

.u-pg-brand__duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	max-width: 1180px;
	margin: 0 auto;
}

.u-pg-brand__tile {
	position: relative;
	aspect-ratio: 7 / 5;
	overflow: hidden;
	border-radius: var(--pg-radius);
}

.u-pg-brand__tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.u-pg-brand__tile div {
	position: absolute;
	max-width: 62%;
	padding: 26px 30px;
}

.u-pg-brand__tile.is-left div {
	left: 0;
	bottom: 0;
}

.u-pg-brand__tile.is-right div {
	right: 0;
	top: 0;
	text-align: right;
}

.u-pg-brand__tile h3 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 900;
	text-transform: uppercase;
	color: #1b1b1b;
}

.u-pg-brand__tile p {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	color: #2b2b2b;
}

/* ============================================================
   2 — the group menu across the top
   ============================================================ */

.u-pg-chips {
	position: sticky;
	top: var(--pg-top);
	z-index: 20;
	padding: 12px 20px;
	border-bottom: 1px solid var(--pg-line);
	background: rgba(255, 255, 255, 0.96);
	overflow-x: auto;
	scrollbar-width: none;
}

.u-pg-chips::-webkit-scrollbar {
	display: none;
}

.u-pg-chips__row {
	display: flex;
	gap: 8px;
	width: max-content;
	min-width: 100%;
	max-width: 1080px;
	margin: 0 auto;
}

.u-pg-chip {
	padding: 7px 15px;
	border: 1px solid var(--pg-line);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
	white-space: nowrap;
	text-decoration: none;
	color: var(--pg-muted);
}

.u-pg-chip span {
	opacity: 0.7;
}

.u-pg-chip:hover,
.u-pg-chip:focus-visible,
.u-pg-chip[aria-current="true"] {
	background: var(--pg-soft);
	border-color: var(--pg-accent);
	color: var(--pg-accent);
}

/* ============================================================
   3 — the range
   ============================================================ */

.u-pg-range__inner {
	margin: 0 auto;
}

.u-pg-index {
	display: none;
}

.u-pg-group {
	padding: 56px 48px;
	scroll-margin-top: calc(var(--pg-top) + 56px);
}

.u-pg-group + .u-pg-group {
	border-top: 1px solid var(--pg-line);
}

.u-pg-group:nth-of-type(odd) {
	background: var(--pg-panel);
}

.u-pg-group__head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 36px;
	align-items: baseline;
	padding-bottom: 18px;
	margin-bottom: 28px;
	border-bottom: 2px solid var(--pg-accent);
}

.u-pg-group__name {
	margin: 0;
	font-size: clamp(22px, 3.2vw, 36px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.1;
	text-transform: uppercase;
}

.u-pg-group__count {
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	white-space: nowrap;
	color: var(--pg-muted);
	font-variant-numeric: tabular-nums;
}

.u-pg-group__note {
	grid-column: 1 / -1;
	margin: 0;
	max-width: 64ch;
	font-size: 15px;
	line-height: 1.65;
	color: var(--pg-muted);
}

.u-pg-shelf {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.u-pg-card {
	display: flex;
	flex-direction: column;
	gap: 11px;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.u-pg-card__shot {
	display: block;
	overflow: hidden;
	border-radius: var(--pg-radius);
	background: var(--pg-panel);
	aspect-ratio: 4 / 5;
}

.u-pg-card__shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.u-pg-card:hover .u-pg-card__shot img {
	transform: scale(1.05);
}

.u-pg-card__name {
	display: block;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.u-pg-card:hover .u-pg-card__name,
.u-pg-card:focus-visible .u-pg-card__name {
	color: var(--pg-accent);
}

.u-pg-card__cert {
	display: block;
	margin-top: auto;
	padding-top: 2px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--pg-muted);
	font-variant-numeric: tabular-nums;
}

.u-pg-card__cert b {
	display: block;
	margin-bottom: 2px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.72;
}

/* ============================================================
   4 — the four routines
   ============================================================ */

.u-pg-paths {
	padding: 72px 48px;
	background: var(--pg-panel);
	border-top: 1px solid var(--pg-line);
}

.u-pg-paths__title {
	margin: 12px 0 0;
	max-width: 22ch;
	font-size: clamp(25px, 3.4vw, 38px);
	font-weight: 800;
	letter-spacing: -0.028em;
	line-height: 1.1;
	text-wrap: balance;
}

.u-pg-paths__note {
	margin: 12px 0 0;
	max-width: 60ch;
	font-size: 15px;
	line-height: 1.65;
	color: var(--pg-muted);
}

.u-pg-paths__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 34px;
}

.u-pg-path {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 22px;
	background: var(--pg-bg);
	border: 1px solid var(--pg-line);
	border-radius: var(--pg-radius);
}

.u-pg-path h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
}

.u-pg-path__note {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--pg-muted);
}

.u-pg-path__steps {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.u-pg-path__steps li {
	display: grid;
	grid-template-columns: 21px 1fr;
	gap: 10px;
	align-items: start;
	font-size: 13px;
	line-height: 1.45;
}

.u-pg-path__steps a {
	color: inherit;
	text-decoration: none;
}

.u-pg-path__steps a:hover,
.u-pg-path__steps a:focus-visible {
	color: var(--pg-accent);
	text-decoration: underline;
}

.u-pg-path__n {
	display: grid;
	place-items: center;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: var(--pg-soft);
	color: var(--pg-accent);
	font-size: 10px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

/* ============================================================
   5 — the paperwork, and a way to reach a person
   ============================================================ */

.u-pg-proof {
	padding: 72px 48px;
	border-top: 1px solid var(--pg-line);
}

.u-pg-proof__title {
	margin: 0 0 30px;
	max-width: 26ch;
	font-size: clamp(23px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -0.026em;
	line-height: 1.12;
	text-wrap: balance;
}

.u-pg-proof__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.u-pg-proof__grid li {
	padding-top: 15px;
	border-top: 2px solid var(--pg-accent);
}

.u-pg-proof__grid h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
}

.u-pg-proof__grid p {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--pg-muted);
}

.u-pg-ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 26px;
	margin-top: 40px;
	padding: 28px 30px;
	background: var(--pg-soft);
	border-radius: var(--pg-radius);
}

.u-pg-ask__text {
	flex: 1 1 280px;
}

.u-pg-ask__text h3 {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.u-pg-ask__text p {
	margin: 5px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--pg-muted);
}

.u-pg-ask__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.u-pg-btn {
	display: inline-block;
	padding: 13px 24px;
	border: 1px solid var(--pg-accent);
	border-radius: var(--pg-radius);
	background: var(--pg-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-decoration: none;
	white-space: nowrap;
}

.u-pg-btn:hover,
.u-pg-btn:focus-visible {
	background: #c9550a;
	border-color: #c9550a;
	color: #fff;
}

.u-pg-btn--ghost {
	background: transparent;
	color: var(--pg-accent);
}

.u-pg-btn--ghost:hover,
.u-pg-btn--ghost:focus-visible {
	background: var(--pg-accent);
	color: #fff;
}

/* ============================================================
   6 — the round button that carries the group menu down the page
   ============================================================ */

.u-pg-jump {
	position: sticky;
	bottom: 20px;
	z-index: 30;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	height: 54px;
	margin-top: -54px;
	padding: 0 20px;
	background: none;
	pointer-events: none;
}

.u-pg-jump > * {
	pointer-events: auto;
}

.u-pg-jump__btn {
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border: 0;
	border-radius: 50%;
	background: var(--pg-accent);
	color: #fff;
	font-family: inherit;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	line-height: 1.15;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.u-pg-jump__btn:focus-visible {
	outline: 3px solid var(--pg-ink);
	outline-offset: 3px;
}

.u-pg-jump__panel {
	position: absolute;
	right: 20px;
	bottom: 64px;
	width: 268px;
	max-width: calc(100vw - 40px);
	overflow: hidden;
	background: var(--pg-panel);
	border: 1px solid var(--pg-line);
	border-radius: var(--pg-radius);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.u-pg-jump__panel[hidden] {
	display: none;
}

.u-pg-jump__panel p {
	margin: 0;
	padding: 14px 16px 8px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pg-muted);
}

.u-pg-jump__panel a {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: baseline;
	padding: 11px 16px;
	border-top: 1px solid var(--pg-line);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	color: var(--pg-ink);
}

.u-pg-jump__panel a small {
	font-size: 11px;
	color: var(--pg-muted);
	font-variant-numeric: tabular-nums;
}

.u-pg-jump__panel a:hover,
.u-pg-jump__panel a:focus-visible {
	background: var(--pg-soft);
	color: var(--pg-accent);
}

.u-pg-jump__top {
	font-size: 12px !important;
	font-weight: 800;
	color: var(--pg-muted) !important;
}

/* ============================================================
   Wide screens — the index takes over from the round button
   ============================================================ */

@media (min-width: 1100px) {

	/* The column down the left edge does this job here. */
	.u-pg-chips {
		display: none;
	}

	.u-pg-page {
		display: grid;
		grid-template-columns: 200px minmax(0, 1fr);
		column-gap: 8px;
		align-items: start;
		max-width: 1440px;
		margin: 0 auto;
		padding-left: 32px;
	}

	.u-pg-index {
		display: block;
		position: sticky;
		top: var(--pg-top);
		padding: 56px 0 24px;
	}

	.u-pg-shelf {
		grid-template-columns: repeat(5, 1fr);
	}

	.u-pg-index__title {
		margin: 0 0 4px;
		padding-bottom: 12px;
		border-bottom: 1px solid var(--pg-line);
		font-size: 10px;
		font-weight: 900;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--pg-muted);
	}

	.u-pg-index ol {
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.u-pg-index li {
		position: relative;
	}

	.u-pg-index a {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 8px;
		align-items: baseline;
		padding: 10px 0;
		border-bottom: 1px solid var(--pg-line);
		font-size: 12px;
		font-weight: 700;
		line-height: 1.35;
		text-decoration: none;
		color: var(--pg-muted);
	}

	.u-pg-index a small {
		font-size: 11px;
		opacity: 0.75;
		font-variant-numeric: tabular-nums;
	}

	.u-pg-index a:hover,
	.u-pg-index a:focus-visible {
		color: var(--pg-accent);
	}

	.u-pg-index a[aria-current="true"] {
		color: var(--pg-ink);
	}

	.u-pg-index a[aria-current="true"]::before {
		content: "";
		position: absolute;
		left: -14px;
		width: 3px;
		height: 1.1em;
		border-radius: 2px;
		background: var(--pg-accent);
	}

	.u-pg-range__list {
		min-width: 0;
	}

	.u-pg-group {
		padding: 48px 40px 48px 32px;
	}

	.u-pg-jump {
		display: none;
	}
}

/* ============================================================
   Narrower screens
   ============================================================ */

@media (max-width: 1000px) {

	.u-pg-brand__row,
	.u-pg-brand__duo {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.u-pg-brand__row.is-flip .u-pg-brand__photo {
		order: 2;
	}

	.u-pg-shelf {
		grid-template-columns: repeat(3, 1fr);
	}

	.u-pg-paths__grid {
		grid-template-columns: 1fr;
	}

	.u-pg-proof__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}

@media (max-width: 720px) {

	.u-pg-brand {
		padding: 28px 20px 40px;
	}

	.u-pg-brand__icons {
		gap: 22px;
	}

	.u-pg-brand__icons img {
		height: 64px;
	}

	.u-pg-brand__hundred {
		gap: 34px;
	}

	.u-pg-brand__big {
		font-size: 68px;
	}

	.u-pg-brand__big::after {
		transform: translate(-18px, 14px);
	}

	.u-pg-brand__claims li {
		padding: 10px 0 8px;
		font-size: 15.5px;
	}

	.u-pg-brand__badges {
		gap: 12px 14px;
	}

	.u-pg-brand__badges img {
		height: 42px;
	}

	.u-pg-brand__badges .is-wide img {
		height: 28px;
	}

	.u-pg-brand__lead {
		font-size: 15.5px;
	}

	.u-pg-brand__tile div {
		max-width: 80%;
		padding: 16px 18px;
	}

	.u-pg-brand__tile h3 {
		font-size: 16px;
	}

	.u-pg-brand__tile p {
		font-size: 14.5px;
	}

	.u-pg-chips,
	.u-pg-group,
	.u-pg-paths,
	.u-pg-proof {
		padding-left: 20px;
		padding-right: 20px;
	}

	.u-pg-group {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.u-pg-paths,
	.u-pg-proof {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.u-pg-group__head {
		grid-template-columns: 1fr;
	}

	.u-pg-shelf {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 12px;
	}

	.u-pg-ask {
		padding: 22px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.u-pg-card__shot img {
		transition: none;
	}
}

/* Mẫu 0 (2026-10-26): the clean cut-out on a silver tile in place of the
   poster, which carries printed claims. */
.u-pg-card__shot--clean {
	position: relative;
	background: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, #eceef1 55%, #dfe2e7 100%);
}

.u-pg-card__shot--clean img {
	position: absolute;
	inset: 12%;
	width: 76%;
	height: 76%;
	object-fit: contain;
	filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.14));
}
