/* Build the set (template-parts/home/build-the-set.php), converted from the guardrail
   sections/build-the-set.liquid stylesheet with the same geometry and breakpoints. Colours come
   from the section's --hg-bts-* properties. Buttons, links, checkboxes and images reset the Ecomus
   rules (padding, hover colours, shine pseudo-element, custom checkbox box) they would inherit. */

.hg-set {
	scroll-margin-top: var(--hg-bts-offset, 80px);
	padding-block: var(--hg-bts-pad-top-m, 64px) var(--hg-bts-pad-bottom-m, 64px);
	background: var(--hg-bts-bg, #f4efe9);
	color: var(--hg-bts-ink, #231f1b);
}
.hg-set__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hg-bts-gap-m, 28px);
	box-sizing: border-box;
	max-width: var(--hg-bts-width, 1280px);
	margin-inline: auto;
	padding-inline: var(--hg-bts-side-m, 20px);
}
.hg-set__media {
	overflow: hidden;
	aspect-ratio: var(--hg-bts-ratio, 4 / 5);
	border-radius: var(--hg-bts-radius, 20px);
	background: var(--hg-bts-card, #ebe3d9);
}
.hg-set__media img,
.hg-set__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	transition: opacity 0.35s;
}
.hg-set__placeholder { opacity: 0.3; }
.hg-set__panel { min-width: 0; }
.hg-set__eyebrow {
	margin: 0 0 10px;
	color: var(--hg-bts-muted, #5f564d);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.28em;
	line-height: 1.6;
	text-transform: uppercase;
}
.hg-set .hg-set__title {
	margin: 0 0 12px;
	color: var(--hg-bts-ink, #231f1b);
	font-size: var(--hg-bts-h-size-m, 23.4px);
	line-height: 1;
	overflow-wrap: anywhere;
}
.hg-set__text {
	max-width: 460px;
	margin: 0 0 24px;
	color: var(--hg-bts-muted, #5f564d);
	font-size: 14px;
	line-height: 1.7;
}
.hg-set__label {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.6;
	text-transform: uppercase;
}
.hg-set__label span {
	color: var(--hg-bts-muted, #5f564d);
	font-weight: 500;
}
.hg-set__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}
.hg-set__swatch {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	/* 3.5:1 against the panel, so a white or pale print still shows its edge. */
	box-shadow: 0 0 0 1px rgb(35 31 27 / 0.55);
	line-height: 1;
	cursor: pointer;
	transition: none;
	appearance: none;
}
.hg-set__swatch:hover,
.hg-set__swatch:active { border-color: transparent; }
.hg-set__swatch::after { content: none; }
.hg-set__swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--hg-bts-bg, #f4efe9), 0 0 0 4px var(--hg-bts-ink, #231f1b); }
.hg-set__swatch:focus-visible {
	outline: 2px solid var(--hg-bts-ink, #231f1b);
	outline-offset: 6px;
}
.hg-set__items {
	display: flex;
	flex-direction: column;
	gap: 8px;
	/* Room for the largest print's rows (80px each), so switching prints never moves the sizes. */
	min-height: calc(var(--hg-bts-rows, 3) * 88px - 8px);
	margin-bottom: 22px;
}
.hg-set__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding-block: 8px;
	padding-inline: 8px 14px;
	border-radius: 14px;
	background: var(--hg-bts-card, #ebe3d9);
	color: inherit;
	font-weight: inherit;
	cursor: pointer;
}
/* A native checkbox, as on the reference: drop the Ecomus box drawn over it. */
.hg-set__item input[type="checkbox"] {
	position: static;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--hg-bts-ink, #231f1b);
	cursor: pointer;
}
.hg-set__item input[type="checkbox"]::before,
.hg-set__item input[type="checkbox"]::after { content: none; }
.hg-set__item input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--hg-bts-ink, #231f1b);
	outline-offset: 2px;
}
.hg-set__thumb {
	display: block;
	flex: 0 0 auto;
	width: 52px;
	height: 64px;
	border-radius: 10px;
	background: var(--hg-bts-bg, #f4efe9);
	object-fit: cover;
}
.hg-set__name {
	flex: 1 1 0%;
	min-width: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
.hg-set__name small {
	display: block;
	color: var(--hg-bts-muted, #5f564d);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
}
/* The product name opens its page (other styles, kid sizes). A quiet underline marks it as a
   link without another control in the row; Ecomus link colours are reset. */
.hg-set__link,
.hg-set__link:visited {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: none;
}
.hg-set__link:hover,
.hg-set__link:focus-visible {
	color: var(--hg-bts-ink, #231f1b);
	text-decoration-color: currentColor;
}
.hg-set__link:focus-visible {
	outline: 2px solid var(--hg-bts-ink, #231f1b);
	outline-offset: 2px;
	border-radius: 2px;
}
.hg-set__price {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}
/* A piece not made in the chosen size (only an unticked one can be): "Not in XS" in place of a price. */
.hg-set__item--unavailable .hg-set__thumb { opacity: 0.5; }
.hg-set__item--unavailable .hg-set__price {
	color: var(--hg-bts-muted, #5f564d);
	font-weight: 500;
}
.hg-set__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 44px;
	margin-bottom: 22px;
}
.hg-set__size {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0 12px;
	border: 1px solid rgb(0 0 0 / 0.18);
	border-radius: 999px;
	background: transparent;
	color: var(--hg-bts-ink, #231f1b);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: none;
}
.hg-set__size:hover,
.hg-set__size:active {
	border-color: rgb(0 0 0 / 0.18);
	background: transparent;
	color: var(--hg-bts-ink, #231f1b);
}
.hg-set__size::after,
.hg-set__btn::after { content: none; }
.hg-set__size[aria-pressed="true"] {
	border-color: var(--hg-bts-ink, #231f1b);
	background: var(--hg-bts-ink, #231f1b);
	color: var(--hg-bts-bg, #f4efe9);
}
.hg-set__size:disabled {
	cursor: not-allowed;
	opacity: 0.35;
	text-decoration: line-through;
}
.hg-set__size:focus-visible,
.hg-set__btn:focus-visible {
	outline: 2px solid var(--hg-bts-ink, #231f1b);
	outline-offset: 3px;
}
.hg-set__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.6;
	text-transform: uppercase;
}
.hg-set__total strong {
	font-size: 22px;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: none;
}
.hg-set__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--hg-bts-accent, #231f1b);
	color: var(--hg-bts-accent-text, #fff);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.2s;
}
.hg-set__btn:hover,
.hg-set__btn:active {
	background: var(--hg-bts-accent, #231f1b);
	color: var(--hg-bts-accent-text, #fff);
}
.hg-set__btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}
.hg-set__msg {
	min-height: 18px;
	margin: 10px 0 0;
	color: var(--hg-bts-ink, #231f1b);
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}
.hg-set__note {
	margin: 12px 0 0;
	color: var(--hg-bts-muted, #5f564d);
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}
.hg-set__fallback {
	margin: 12px 0 0;
	padding: 0;
	font-size: 13px;
	list-style: none;
	text-align: center;
}
.hg-set__fallback a,
.hg-set__fallback a:hover {
	color: inherit;
	text-decoration: underline;
}
/* Under 360px the 12px gap would wrap six prints into a row of five and one of one; 8px keeps them
   on one line, still 48px from one swatch to the next. */
@media (max-width: 359px) {
	.hg-set__swatches { gap: 8px; }
}
@media (min-width: 750px) {
	.hg-set { padding-block: var(--hg-bts-pad-top, 64px) var(--hg-bts-pad-bottom, 64px); }
}
@media (min-width: 768px) {
	.hg-set .hg-set__title { font-size: var(--hg-bts-h-size, 34.5px); }
}
@media (min-width: 990px) {
	.hg-set__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: var(--hg-bts-gap, 64px);
		align-items: center;
		padding-inline: var(--hg-bts-side, 40px);
	}
	.hg-set--media-right .hg-set__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
	.hg-set--media-right .hg-set__media { order: 1; }
	.hg-set__media { max-height: var(--hg-bts-max-h, 760px); }
}
@media (min-width: 1200px) {
	.hg-set .hg-set__title { font-size: var(--hg-bts-h-size, 39.1px); }
}
@media (prefers-reduced-motion: reduce) {
	.hg-set__media img,
	.hg-set__btn { transition: none; }
}
