/* ==========================================================================
   Shop styles: made-to-order designer, binder preview, basket, checkout,
   product gallery, "added to basket" pop-up, logo.
   Loaded after main.css and re-uses its colour tokens.
   ========================================================================== */

/* 1. Logo ----------------------------------------------------------------- */
.logo--img {
	flex-direction: row;
	align-items: center;
}
.logo__img {
	display: block;
	height: 46px;
	width: auto;
	max-width: 190px;
	object-fit: contain;
}
.logo--footer .logo__img {
	height: 64px;
	max-width: 240px;
}
.preloader__logo {
	display: block;
	width: min(320px, 70vw);
	height: auto;
	margin: 0 auto 26px;
	opacity: 0;
	transform: translateY(14px);
	animation: logoIn 0.9s var(--ease) 0.15s forwards;
}
@keyframes logoIn {
	to {
		opacity: 1;
		transform: none;
	}
}

/* 2. Small shared bits ---------------------------------------------------- */
.btn.is-loading {
	pointer-events: none;
	opacity: 0.85;
}
.btn.is-loading .btn__spinner {
	display: inline-block;
}
.btn.is-disabled,
.btn[disabled] {
	opacity: 0.45;
	pointer-events: none;
	cursor: not-allowed;
}
.btn--block {
	width: 100%;
}
.link-btn {
	background: none;
	border: 0;
	padding: 0;
	color: var(--muted);
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.link-btn:hover {
	color: #fff;
}
.cart-count.bump {
	animation: bump 0.5s var(--ease);
}
@keyframes bump {
	40% {
		transform: scale(1.5);
	}
}
.product-card__badge--sold {
	background: #3a3f4d;
	color: #fff;
}

/* quantity box */
.qty {
	display: inline-flex;
	align-items: center;
	height: 44px;
	border: 1.5px solid var(--line-2);
	border-radius: 8px;
	overflow: hidden;
	background: var(--field);
}
.qty__btn {
	width: 38px;
	height: 100%;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
}
.qty__btn:hover {
	background: rgba(255, 255, 255, 0.08);
}
.qty input {
	width: 42px;
	height: 100%;
	border: 0;
	background: transparent;
	color: #fff;
	text-align: center;
	font: inherit;
	font-weight: 600;
	-moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* add-to-basket form */
.add-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}
.product-card__actions {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}
.product-card__actions .add-form {
	flex: 1;
}
.product-card__actions .add-form .btn {
	width: 100%;
	padding: 0 12px;
}
.product-card__actions > .btn {
	padding: 0 14px;
}
.product-buy {
	margin: 26px 0 8px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.product-buy__note {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--muted);
}
.product-buy__note a {
	color: var(--cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* product gallery */
.pgal__main {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid var(--line-2);
	background: radial-gradient(circle at 50% 40%, rgba(91, 108, 242, 0.22), transparent 60%), #06080d;
	aspect-ratio: 1 / 1.05;
}
.pgal__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pgal__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 10px;
	margin-top: 12px;
}
.pgal__thumb {
	padding: 0;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
	border: 2px solid var(--line);
	background: #06080d;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s, border-color 0.3s;
}
.pgal__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pgal__thumb:hover,
.pgal__thumb.is-active {
	opacity: 1;
	border-color: var(--violet);
}

/* 3. Binder preview ------------------------------------------------------- */
/* Everything inside is sized in cqw (a hundredth of the binder's width), so the
   same drawing works at any size – the designer, the basket thumbnails and the
   dashboard. Colours come from --bc (binder), --ink (engraved) and --hi (edge). */
.bp {
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='l' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='4' stitchTiles='stitch' result='n'/%3E%3CfeDiffuseLighting in='n' surfaceScale='2.4' lighting-color='%23fff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='60'/%3E%3C/feDiffuseLighting%3E%3CfeComponentTransfer in='d'%3E%3CfeFuncR type='linear' slope='2.4' intercept='-1.58'/%3E%3CfeFuncG type='linear' slope='2.4' intercept='-1.58'/%3E%3CfeFuncB type='linear' slope='2.4' intercept='-1.58'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23l)'/%3E%3C/svg%3E");
	container-type: inline-size;
	position: relative;
	width: 100%;
	aspect-ratio: var(--ar, 0.97) / 1;
	filter: drop-shadow(0 2.4cqw 3cqw rgba(0, 0, 0, 0.55));
	transition: aspect-ratio 0.5s var(--ease);
}
.bp__face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 3cqw 3.6cqw 3.6cqw 3cqw;
	background: var(--bc, #2b303b);
	transition: background-color 0.5s var(--ease);
	box-shadow: inset 0 0 0 0.25cqw rgba(255, 255, 255, 0.09), inset 0 -2.4cqw 4cqw rgba(0, 0, 0, 0.28), inset 0 1.4cqw 2.4cqw rgba(255, 255, 255, 0.1);
}
.bp__base {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.11), transparent 55%),
		linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 40%, rgba(0, 0, 0, 0.26));
}
.bp__spine {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 8cqw;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.14) 48%, rgba(255, 255, 255, 0.1) 56%, rgba(0, 0, 0, 0.32) 66%, transparent 100%);
}
/* Zip (VaultX) or stitched edge (GrailGuard) */
.bp__trim {
	position: absolute;
	pointer-events: none;
}
.bp--zip .bp__trim {
	inset: 2.1cqw;
	border-radius: 2.2cqw;
	border: 0.8cqw dashed rgba(226, 229, 238, 0.6);
	box-shadow: 0 0 0 0.45cqw rgba(0, 0, 0, 0.3), inset 0 0 0 0.45cqw rgba(0, 0, 0, 0.3);
}
.bp--zip .bp__trim::after {
	content: "";
	position: absolute;
	top: -2.6cqw;
	right: 12%;
	width: 3.2cqw;
	height: 6.6cqw;
	border-radius: 1.2cqw 1.2cqw 1.8cqw 1.8cqw;
	background: linear-gradient(90deg, #8d929e, #f4f6fb 45%, #7b808c);
	box-shadow: 0 0.6cqw 1cqw rgba(0, 0, 0, 0.45);
}
.bp--stitch .bp__trim {
	inset: 3.3cqw;
	border-radius: 2cqw;
	border: 0.5cqw dashed rgba(255, 255, 255, 0.55);
	box-shadow: 0 0.3cqw 0 rgba(0, 0, 0, 0.35);
}
.bp--stitch .bp__face::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1.5cqw rgba(0, 0, 0, 0.1), inset 0 0 0 1.7cqw rgba(255, 255, 255, 0.05);
	pointer-events: none;
}
/* Engraving area: artwork can never leave this box */
.bp__area {
	position: absolute;
	left: var(--al, 15%);
	top: var(--at, 11%);
	width: var(--aw, 73%);
	height: var(--ah, 77%);
	border-radius: 1.2cqw;
	outline: 0.35cqw dashed transparent;
	outline-offset: 0.6cqw;
	transition: outline-color 0.3s;
	touch-action: none;
}
.bp.is-empty .bp__area,
.bp:not(.has-art) .bp__area,
.bp.is-dragging .bp__area,
.bp__area:focus-visible,
.bp.has-art .bp__area:hover {
	outline-color: rgba(255, 255, 255, 0.34);
}
.bp.has-art .bp__area {
	cursor: grab;
}
.bp.is-dragging .bp__area {
	cursor: grabbing;
}
.bp.bp--mini .bp__area,
.bp.bp--mini .bp__area:hover {
	outline-color: transparent;
	cursor: default;
}
.bp__art {
	position: absolute;
	left: var(--x, 0%);
	top: var(--y, 0%);
	width: var(--w, 100%);
	height: var(--h, 100%);
}
.bp__art[hidden] {
	display: none;
}
.bp__hi,
.bp__ink {
	position: absolute;
	inset: 0;
	-webkit-mask: var(--mask) center / 100% 100% no-repeat;
	mask: var(--mask) center / 100% 100% no-repeat;
}
/* The edge highlight sits a hair below-right of the ink, like an engraved groove catching light */
.bp__hi {
	background: var(--hi, rgba(255, 255, 255, 0.3));
	transform: translate(0.32cqw, 0.32cqw);
}
.bp__ink {
	background: var(--ink, #111);
	opacity: 0.94;
}
/* Leather-style texture over the whole cover AND the engraving, so the design reads as part of the material */
.bp__grain {
	position: absolute;
	inset: 0;
	background-image: var(--grain);
	background-size: 30cqw 30cqw;
	mix-blend-mode: soft-light;
	opacity: 1;
	pointer-events: none;
}
.bp--stitch .bp__grain {
	background-size: 20cqw 20cqw;
	opacity: 0.7;
}
.bp__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(112deg, transparent 28%, rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0.03) 52%, transparent 62%);
	mix-blend-mode: screen;
	pointer-events: none;
}
.bp.is-empty .bp__face::after {
	content: "Your binder";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 8cqw;
	font-family: var(--font-head);
	font-size: 9cqw;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.18);
}
.bp.bp--mini {
	filter: drop-shadow(0 1.6cqw 2cqw rgba(0, 0, 0, 0.5));
}

/* 4. Made-to-order designer ----------------------------------------------- */
.mto__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}
.mto__preview {
	position: sticky;
	top: 104px;
}
.mto-stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: clamp(28px, 5vw, 56px) clamp(24px, 6vw, 72px) 26px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: radial-gradient(circle at 50% 42%, rgba(91, 108, 242, 0.2), transparent 62%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 10px), #070a10;
	min-height: 360px;
}
.mto-stage .bp {
	max-width: 440px;
}
.mto-stage__hint {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	min-height: 1.4em;
}
.mto-summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-top: 14px;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--card);
	border: 1px solid var(--line);
}
.mto-summary__line {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 14px;
	color: var(--muted);
}
.mto-summary__line span:first-child {
	color: #fff;
	font-weight: 700;
}
.mto-summary__price {
	font-family: var(--font-head);
	font-size: 1.9rem;
	line-height: 1;
	background: var(--grad-text-r);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.mto-bw {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px dashed var(--line-2);
	font-size: 12.5px;
	color: var(--muted);
}
.mto-bw[hidden] {
	display: none;
}
.mto-bw p {
	margin: 0;
}
.mto-bw strong {
	color: #fff;
}
.mto-bw__thumb {
	flex: none;
	width: 78px;
	height: 78px;
	border-radius: 8px;
	overflow: hidden;
	background: repeating-conic-gradient(#e8e8ec 0% 25%, #fff 0% 50%) 0 0 / 14px 14px;
	display: grid;
	place-items: center;
}
.mto-bw__thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.mto-disclaimer {
	margin: 14px 2px 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--dim);
}
.mto-note {
	font-size: 13px;
	color: var(--muted);
}

/* stepper */
.mto-steps {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
}
.mto-steps li {
	flex: 1;
	min-width: 0;
}
.mto-steps__btn {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0 2px 10px;
	border: 0;
	border-bottom: 3px solid var(--line-2);
	background: none;
	color: var(--dim);
	font: inherit;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.3s, border-color 0.3s;
}
.mto-steps__btn span {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--field);
	font-size: 12px;
}
.mto-steps__btn:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}
.mto-steps__btn.is-done {
	color: #cfd4e2;
	border-color: rgba(91, 108, 242, 0.55);
}
.mto-steps__btn.is-done span {
	background: var(--indigo);
	color: #fff;
}
.mto-steps__btn.is-active {
	color: #fff;
	border-color: var(--violet);
}
.mto-steps__btn.is-active span {
	background: var(--grad);
	color: #fff;
}

.mto-step[hidden] {
	display: none;
}
.mto-step.is-active {
	animation: stepIn 0.5s var(--ease);
}
@keyframes stepIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}
.mto-step__title {
	font-family: var(--font-head);
	font-weight: 400;
	font-size: clamp(1.8rem, 3.4vw, 2.5rem);
	letter-spacing: 0.01em;
	margin: 0 0 18px;
}
.mto-lead {
	color: var(--muted);
	margin: -6px 0 18px;
}
.mto-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 26px;
}
.mto-nav .btn:only-child {
	margin-left: auto;
}

/* choice cards */
.choice-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.choice-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brand-card,
.size-card {
	position: relative;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 18px;
	border-radius: 14px;
	border: 1.5px solid var(--line-2);
	background: var(--card);
	color: var(--text);
	font: inherit;
	cursor: pointer;
	transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.brand-card:hover,
.size-card:hover {
	transform: translateY(-3px);
	border-color: rgba(168, 85, 247, 0.6);
}
.brand-card.is-selected,
.size-card.is-selected {
	border-color: var(--violet);
	background: linear-gradient(180deg, rgba(91, 108, 242, 0.16), rgba(155, 63, 240, 0.08)), var(--card);
	box-shadow: 0 14px 40px -22px rgba(155, 63, 240, 0.9);
}
.brand-card__name {
	font-family: var(--font-head);
	font-size: 2.3rem;
	line-height: 1;
	letter-spacing: 0.02em;
}
.brand-card__text {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
}
.brand-card__meta {
	margin-top: auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cyan);
}
.brand-card__check {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--grad);
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.3s, transform 0.4s var(--ease);
}
.brand-card__check .icon {
	width: 14px;
	height: 14px;
}
.brand-card.is-selected .brand-card__check {
	opacity: 1;
	transform: none;
}
.size-card {
	align-items: flex-start;
}
.size-card__shape {
	display: flex;
	align-items: flex-end;
	height: 74px;
	margin-bottom: 4px;
}
.size-card__shape i {
	display: block;
	height: 100%;
	aspect-ratio: var(--r, 1) / 1;
	max-width: 100px;
	border-radius: 7px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 12%, transparent 12%);
}
.size-card.is-selected .size-card__shape i {
	border-color: var(--violet);
}
.size-card__name {
	font-family: var(--font-head);
	font-size: 1.8rem;
	line-height: 1;
}
.size-card__note {
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.4;
}
.size-card__price {
	margin-top: auto;
	font-weight: 700;
	font-size: 15px;
}

/* colours */
.col-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin: -4px 0 16px;
	font-size: 12.5px;
	color: var(--muted);
}
.col-legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.col-legend strong {
	margin-left: auto;
	color: #fff;
	font-weight: 600;
}
.col-legend__dot,
.col-chip__dot {
	position: relative;
	display: inline-block;
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #27c46a;
}
.col-legend__dot.is-out {
	background: #6b7385;
}
.col-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}
.col-chip {
	position: relative;
	display: grid;
	grid-template-columns: 38px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1.5px solid var(--line-2);
	background: var(--card);
	color: var(--text);
	text-align: left;
	font: inherit;
	cursor: pointer;
	transition: border-color 0.3s, transform 0.35s var(--ease), background 0.3s;
}
.col-chip .col-chip__dot {
	grid-row: 1 / 3;
	width: 38px;
	height: 38px;
	background: var(--c);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), inset 0 -6px 10px rgba(0, 0, 0, 0.25), 0 4px 10px -4px rgba(0, 0, 0, 0.6);
}
.col-chip__name {
	font-weight: 700;
	font-size: 14px;
	align-self: end;
}
.col-chip__state {
	align-self: start;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #4fd68b;
}
.col-chip:hover:not(:disabled) {
	transform: translateY(-2px);
	border-color: rgba(168, 85, 247, 0.6);
}
.col-chip.is-selected {
	border-color: var(--violet);
	background: linear-gradient(180deg, rgba(91, 108, 242, 0.16), rgba(155, 63, 240, 0.08)), var(--card);
	box-shadow: 0 12px 34px -22px rgba(155, 63, 240, 0.9);
}
/* Out of stock: greyed, struck through, clearly labelled and not clickable */
.col-chip.is-out {
	cursor: not-allowed;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 8px, transparent 8px 16px), var(--card);
	border-style: dashed;
}
.col-chip.is-out .col-chip__dot {
	filter: grayscale(1);
	opacity: 0.4;
}
.col-chip.is-out .col-chip__dot::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -3px;
	bottom: -3px;
	width: 2px;
	background: #fff;
	transform: rotate(45deg);
	opacity: 0.9;
}
.col-chip.is-out .col-chip__name {
	color: var(--dim);
	text-decoration: line-through;
}
.col-chip.is-out .col-chip__state {
	color: #ff8a8a;
}

/* image step */
.mto-tabs {
	margin-bottom: 18px;
}
.mto-presets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 12px;
}
.mto-presets[hidden],
.mto-upload[hidden],
.mto-tune[hidden] {
	display: none;
}
.preset {
	position: relative;
	padding: 0;
	overflow: hidden;
	border-radius: 12px;
	border: 2px solid var(--line-2);
	background: #fff;
	cursor: pointer;
	transition: border-color 0.3s, transform 0.35s var(--ease);
}
.preset img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}
.preset span {
	display: block;
	padding: 6px 8px;
	background: #0a0d15;
	color: #cfd4e2;
	font-size: 11px;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: capitalize;
}
.preset:hover {
	transform: translateY(-2px);
}
.preset.is-selected {
	border-color: var(--violet);
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.28);
}
.mto-upload input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.mto-upload__drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 34px 20px;
	text-align: center;
	border-radius: 14px;
	border: 2px dashed var(--line-2);
	background: var(--card);
	cursor: pointer;
	transition: border-color 0.3s, background 0.3s;
}
.mto-upload__drop:hover,
.mto-upload__drop.is-over,
.mto-upload input:focus-visible + .mto-upload__drop {
	border-color: var(--violet);
	background: rgba(91, 108, 242, 0.08);
}
.mto-upload__drop .icon {
	width: 34px;
	height: 34px;
	color: var(--cyan);
}
.mto-upload__drop small {
	color: var(--muted);
	font-size: 12px;
}
.mto-upload__name {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--muted);
	word-break: break-all;
}
.mto-tune {
	display: grid;
	gap: 16px;
	margin-top: 22px;
	padding: 18px;
	border-radius: 14px;
	background: var(--card);
	border: 1px solid var(--line);
}
.mto-tune .mto-note {
	margin: 0;
}
.mto-tune__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}
.mto-tune__row .check {
	margin: 0;
}
.range {
	display: grid;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
}
.range output {
	color: var(--cyan);
	margin-left: 6px;
	font-weight: 700;
}
.range input[type="range"] {
	width: 100%;
	height: 4px;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 4px;
	background: var(--field);
	accent-color: var(--violet);
}
.range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--grad);
	border: 2px solid #fff;
	cursor: pointer;
}
.range input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--violet);
	border: 2px solid #fff;
	cursor: pointer;
}
.mto .form-status {
	margin: 14px 0 0;
}
.mto .form-status[hidden] {
	display: none;
}

/* recap */
.mto-recap {
	margin: 0;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--card);
	overflow: hidden;
}
.mto-recap > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
}
.mto-recap > div:last-child {
	border-bottom: 0;
}
.mto-recap dt {
	color: var(--muted);
}
.mto-recap dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}
.mto-recap .is-total {
	background: rgba(91, 108, 242, 0.1);
	font-size: 17px;
}
.mto-recap .is-total dd {
	font-weight: 800;
}

/* 5. "Added to basket" pop-up --------------------------------------------- */
.cart-modal {
	position: fixed;
	inset: 0;
	z-index: 9500;
	display: grid;
	place-items: center;
	padding: 20px;
}
.cart-modal[hidden] {
	display: none;
}
.cart-modal__bg {
	position: absolute;
	inset: 0;
	background: rgba(2, 4, 9, 0.72);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.3s;
}
.cart-modal__card {
	position: relative;
	width: min(440px, 100%);
	padding: 34px 28px 28px;
	border-radius: 18px;
	background: #0b0f19;
	border: 1px solid rgba(155, 63, 240, 0.4);
	box-shadow: 0 40px 100px -30px rgba(91, 108, 242, 0.55);
	text-align: center;
	opacity: 0;
	transform: translateY(18px) scale(0.97);
	transition: opacity 0.3s, transform 0.45s var(--ease);
}
.cart-modal.is-open .cart-modal__bg {
	opacity: 1;
}
.cart-modal.is-open .cart-modal__card {
	opacity: 1;
	transform: none;
}
.cart-modal__icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--grad);
}
.cart-modal__icon .icon {
	width: 26px;
	height: 26px;
}
.cart-modal h2 {
	font-family: var(--font-head);
	font-weight: 400;
	font-size: 2rem;
	margin: 0 0 6px;
}
.cart-modal p {
	margin: 0 0 22px;
	color: var(--muted);
	font-size: 14px;
}
.cart-modal__actions {
	display: grid;
	gap: 10px;
}
html.modal-open {
	overflow: hidden;
}

/* 6. Basket & checkout ---------------------------------------------------- */
.basket__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}
.basket__notice {
	max-height: none;
	margin: 0 0 20px;
}
.bline {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto auto;
	gap: 6px 20px;
	align-items: center;
	padding: 18px;
	margin-bottom: 14px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--card);
}
.bline.is-unavailable {
	border-color: rgba(240, 80, 80, 0.5);
}
.bline__media {
	width: 112px;
}
.bline__media img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 10px;
}
.bline__info h3 {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
}
.bline__info p {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}
.bline__tag {
	margin-top: 6px !important;
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--cyan) !important;
}
.bline__warn {
	margin-top: 8px !important;
	color: #ff9a9a !important;
}
.bline__qty {
	display: grid;
	gap: 8px;
	justify-items: start;
}
.bline__price {
	font-weight: 800;
	font-size: 17px;
	min-width: 76px;
	text-align: right;
}
.basket__continue {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}
.basket__side {
	position: sticky;
	top: 104px;
}
.basket__box {
	padding: 24px;
	border-radius: 16px;
	border: 1px solid var(--line-2);
	background: var(--card);
}
.basket__box .title {
	margin: 0 0 14px;
}
.totals {
	margin: 0 0 20px;
}
.totals > div {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 14px;
	color: var(--muted);
}
.totals dd {
	margin: 0;
	color: #fff;
}
.totals .is-total {
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid var(--line-2);
	font-size: 18px;
	font-weight: 800;
	color: #fff;
}
.checkout-form__title {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 6px 0 14px;
	color: var(--muted);
}
.checkout-form .mform__grid {
	margin-bottom: 14px;
}
.check--terms {
	margin: 4px 0 18px;
	font-size: 12.5px;
	line-height: 1.5;
}
.check--terms a {
	color: var(--cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.checkout-form__note {
	margin: 12px 0 0;
	text-align: center;
	font-size: 12px;
	color: var(--dim);
}
.basket__box .form-status.is-error {
	margin: 0 0 16px;
}
.basket-done {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}
.basket-done__icon {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--grad);
}
.basket-done__icon .icon {
	width: 34px;
	height: 34px;
}
.basket-done__ref {
	font-weight: 700;
	color: var(--cyan);
}
.basket-done p {
	color: var(--muted);
}
.basket-done__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 26px;
}

/* 7. Responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
	.mto__grid,
	.basket__grid {
		grid-template-columns: 1fr;
	}
	.mto__preview,
	.basket__side {
		position: static;
	}
	.mto-stage {
		min-height: 0;
		padding: 26px 22px 20px;
	}
	.mto-stage .bp {
		max-width: 340px;
	}
}
@media (max-width: 640px) {
	.choice-grid--2,
	.choice-grid--3 {
		grid-template-columns: 1fr;
	}
	.choice-grid--3 {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
	.col-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.mto-steps__btn {
		font-size: 10px;
		letter-spacing: 0.02em;
	}
	.bline {
		grid-template-columns: 84px minmax(0, 1fr);
		padding: 14px;
	}
	.bline__media {
		width: 84px;
	}
	.bline__qty {
		grid-column: 1 / 2;
		grid-row: 2;
	}
	.bline__price {
		grid-column: 2;
		grid-row: 2;
		text-align: right;
	}
	.mto-nav .btn {
		padding: 0 18px;
	}
	.mto-summary {
		flex-direction: column;
		align-items: flex-start;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bp,
	.bp__face,
	.mto-step.is-active,
	.cart-modal__card {
		transition: none;
		animation: none;
	}
}

.check__text {
	font-style: normal;
}
