/* Arcade Pop: modern interface over a 16-bit pixel world */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--night: #0f1733;
	--surface: rgb(252 250 246 / .9);
	--surface-solid: #fcfaf6;
	--field: #ffffff;
	--ink: #14172b;
	--muted: #5a6078;
	--line: rgb(20 23 43 / .12);
	--line-strong: rgb(20 23 43 / .22);
	--accent: #cf271d;
	--accent-deep: #a91d15;
	--accent-soft: rgb(207 39 29 / .1);
	--on-dark: #f6f3ee;

	--font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-panel: 28px;
	--r-card: 16px;
	--r-field: 12px;
	--shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 30px 80px -20px rgb(6 9 28 / .55), 0 10px 30px -10px rgb(6 9 28 / .35);
	--ease: cubic-bezier(.16, 1, .3, 1);

	color-scheme: light;
	interpolate-size: allow-keywords;
}

:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol, fieldset) { margin: 0; }
:where(ul, ol, fieldset, legend) { padding: 0; }
:where(fieldset) { border: 0; min-width: 0; }
:where(ul[class], ol[class]) { list-style: none; }
:where(img, svg, canvas, video) { display: block; max-width: 100%; }
:where(img) { height: auto; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(a) { color: inherit; }

html { background: var(--night); }
body {
	background: linear-gradient(#0f1733, #1c3266 35%, #395a8f 60%, #b07a7c 82%, #e3906a);
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	font-optical-sizing: auto;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 16px;
	font-weight: 650;
	letter-spacing: -.005em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease), border-color .25s;
	-webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--accent { background: var(--accent); box-shadow: 0 10px 24px -10px rgb(207 39 29 / .8); }
.btn--accent:hover { background: var(--accent-deep); box-shadow: 0 16px 30px -12px rgb(207 39 29 / .9); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgb(20 23 43 / .05); }
.btn--ghost:hover .icon:first-child { transform: translateX(-3px); }

/* ---------- The world ---------- */

html.is-world, body.world { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.world { background: var(--night); }
.scene {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background:
		radial-gradient(30% 24% at 62% 66%, #ffd98a 0 30%, transparent 31%),
		linear-gradient(#0f1733, #1c3266 30%, #395a8f 52%, #b07a7c 66%, #f6bf6e 78%, #2f6248 78.2%, #5b9a46 82%, #3f7a36);
}
.scene__canvas { position: absolute; left: 0; top: 0; image-rendering: pixelated; opacity: 0; transition: opacity .3s; }
html.scene-on .scene__canvas { opacity: 1; }
.scene__sprite-src { position: absolute; right: 14%; bottom: 18%; height: 56vh; width: auto; }
html.scene-on .scene__sprite-src { visibility: hidden; }
html.is-hovering-cab .scene { cursor: pointer; }

/* Top bar */
.topbar {
	position: fixed;
	inset: 0 0 auto;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: max(18px, env(safe-area-inset-top)) clamp(16px, 3vw, 40px) 0;
	color: var(--on-dark);
	pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgb(207 39 29 / .9); }
.brand__mark .icon { width: 20px; height: 20px; }
.brand__name { font-size: 18px; font-weight: 750; letter-spacing: -.01em; text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
.topnav {
	display: flex;
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	background: rgb(15 18 40 / .35);
	border: 1px solid rgb(255 255 255 / .14);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
}
.topnav a { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 550; text-decoration: none; transition: background-color .25s; }
.topnav a:hover { background: rgb(255 255 255 / .14); }
.topbar__menu {
	display: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgb(255 255 255 / .18);
	border-radius: 999px;
	background: rgb(15 18 40 / .35);
	color: var(--on-dark);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	cursor: pointer;
}

/* Hotspots on the cabinet */
.hotspots { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hotspot {
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
	visibility: hidden;
	opacity: 0;
	transition: opacity .5s var(--ease), visibility .5s;
}
html.scene-done .hotspot { visibility: visible; opacity: 1; }
html.in-checkout .hotspot { visibility: hidden; opacity: 0; }
.hotspot::before {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgb(207 39 29 / .9), 0 4px 14px rgb(0 0 0 / .4);
	transition: transform .3s var(--ease);
}
.hotspot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid #fff;
	animation: ping 2.2s var(--ease) infinite;
}
.hotspot:nth-child(2)::after { animation-delay: .5s; }
.hotspot:nth-child(3)::after { animation-delay: 1s; }
.hotspot:hover::before { transform: scale(1.25); }
.hotspot__label {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	translate: -50% 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--surface-solid);
	color: var(--ink);
	font-size: 13px;
	font-weight: 650;
	white-space: nowrap;
	box-shadow: 0 8px 20px -8px rgb(0 0 0 / .5);
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .25s, transform .35s var(--ease);
	pointer-events: none;
}
.hotspot:hover .hotspot__label, .hotspot:focus-visible .hotspot__label { opacity: 1; transform: none; }

/* ---------- The order flow panel ---------- */

.flow {
	position: fixed;
	z-index: 5;
	left: clamp(16px, 3vw, 40px);
	top: calc(max(18px, env(safe-area-inset-top)) + 70px);
	bottom: 44px;
	width: min(600px, 45vw);
	display: flex;
	flex-direction: column;
	border-radius: var(--r-panel);
	background: var(--surface);
	border: 1px solid rgb(255 255 255 / .55);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(22px) saturate(1.5);
	backdrop-filter: blur(22px) saturate(1.5);
	overflow: hidden;
	transition: width .9s var(--ease);
}

.flow__head { padding: 20px 28px 0; }
.progress { display: flex; gap: 6px; }
.progress li { flex: 1; }
.progress button {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: color .3s;
}
.progress button:disabled { cursor: default; opacity: .55; }
.progress button[aria-current="step"] { color: var(--ink); }
.progress__n {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	font-size: 12px;
	font-weight: 700;
	transition: background-color .4s var(--ease), border-color .4s, color .4s;
}
.progress button[aria-current="step"] .progress__n { background: var(--accent); border-color: var(--accent); color: #fff; }
.progress li.is-done .progress__n { background: var(--ink); border-color: var(--ink); color: #fff; font-size: 0; }
.progress li.is-done .progress__n::before { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.progress__bar { height: 3px; margin-top: 12px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.3333); border-radius: 3px; }

.flow__viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.flow__track { display: flex; height: 100%; will-change: transform; }
.flow__checkout, form.flow__form { display: contents; }
form.flow__form > :not(.step):not(.woocommerce-NoticeGroup) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
form.flow__form > .woocommerce-NoticeGroup { position: absolute; opacity: 0; pointer-events: none; }

.step { flex: 0 0 100%; min-width: 0; height: 100%; display: flex; flex-direction: column; }
.step__scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 26px 28px 20px;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}
.step__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 28px 22px;
	border-top: 1px solid var(--line);
}
.step__foot--solo { justify-content: flex-start; }
.step__error { margin: 0 28px 18px; padding: 12px 14px; border-radius: var(--r-field); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; font-size: 15px; }

.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.step__title { margin-top: 12px; font-size: clamp(40px, 4.4vw, 64px); font-weight: 780; line-height: .98; letter-spacing: -.035em; }
.step__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.step__title .line > span { display: inline-block; }
.step__title em { font-style: normal; color: var(--accent); }
.step__lead { margin-top: 16px; max-width: 32em; font-size: 17px; color: var(--muted); }
.step__h2 { font-size: 30px; font-weight: 760; line-height: 1.05; letter-spacing: -.025em; outline: 0; }
.step__sub { display: flex; align-items: center; gap: 8px; margin: 8px 0 22px; color: var(--muted); font-size: 15px; }
.step__sub .icon { color: var(--accent); }

/* Configurator */
.config { display: grid; gap: 22px; margin-top: 28px; }
.field { display: grid; gap: 10px; }
.field__label { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px 8px 8px;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	background: var(--field);
	font-weight: 600;
	cursor: pointer;
	transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.swatch:hover { transform: translateY(-1px); }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch__chip { width: 28px; height: 28px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 -3px 6px rgb(0 0 0 / .2); }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.stepper { display: inline-flex; align-items: center; width: max-content; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--field); }
.stepper__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color .2s; }
.stepper__btn:hover { background: rgb(20 23 43 / .06); }
.stepper input { width: 48px; border: 0; background: transparent; text-align: center; font-size: 18px; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.stepper input:focus { outline: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.total { display: grid; line-height: 1.15; }
.total__label { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.total__price { font-size: 30px; font-weight: 780; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.total__note { font-size: 12.5px; color: var(--muted); }

.skeleton { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.skeleton span { flex: 1 1 100%; height: 52px; border-radius: var(--r-field); background: linear-gradient(90deg, rgb(20 23 43 / .05) 0 40%, rgb(20 23 43 / .1) 50%, rgb(20 23 43 / .05) 60%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton span.half { flex-basis: calc(50% - 7px); }
.skeleton span.tall { height: 220px; }

/* ---------- WooCommerce fields (flow and inner pages) ---------- */

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-error, .woocommerce-message, .woocommerce-info {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: var(--r-field);
	background: var(--accent-soft);
	color: var(--accent-deep);
	font-size: 15px;
	font-weight: 600;
}
.woocommerce-info, .woocommerce-message { background: rgb(20 23 43 / .05); color: var(--ink); }
.woocommerce-error li + li { margin-top: 4px; }
.col2-set { display: grid; gap: 24px; }
.col2-set h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.flow .woocommerce-billing-fields > h3 { display: none; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper, .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
}
.form-row { display: grid; gap: 6px; margin: 0 0 14px; grid-column: 1 / -1; }
.form-row-first { grid-column: 1; }
.form-row-last { grid-column: 2; }
.form-row label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-row label .optional { color: var(--muted); font-weight: 400; }
abbr.required, .required { color: var(--accent); text-decoration: none; border: 0; }
.woocommerce-input-wrapper { display: block; }
.input-text, .flow select, .shop select, .select2-container .select2-selection--single, .flow textarea, .shop textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-field);
	background-color: var(--field);
	color: var(--ink);
	font-size: 16px;
	transition: border-color .2s, box-shadow .3s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
.flow select, .shop select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314172b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-size: 18px;
	background-repeat: no-repeat;
	padding-right: 42px;
}
textarea.input-text { min-height: 100px; resize: vertical; }
.input-text:hover { border-color: rgb(20 23 43 / .35); }
.input-text:focus, .flow select:focus, .shop select:focus, .select2-container--focus .select2-selection--single, .select2-container--open .select2-selection--single { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(20 23 43 / .08); }
.woocommerce-invalid .input-text, .woocommerce-invalid select { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.checkout-inline-error-message { color: var(--accent-deep); font-size: 13px; font-weight: 600; }
#ship-to-different-address label, .woocommerce-form__label-for-checkbox { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; cursor: pointer; }
input[type="checkbox"].input-checkbox, .woocommerce-form__input-checkbox, #payment input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	display: inline-grid;
	width: 20px;
	height: 20px;
	flex: none;
	margin: 0;
	border: 1.5px solid var(--line-strong);
	border-radius: 6px;
	background: var(--field);
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
#payment input[type="radio"] { border-radius: 50%; }
input[type="checkbox"].input-checkbox:checked, .woocommerce-form__input-checkbox:checked { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--field); }
#payment input[type="radio"]:checked { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--field); }

.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { display: flex; align-items: center; cursor: pointer; }
.select2-container .select2-selection__rendered { padding: 0 !important; color: var(--ink) !important; }
.select2-container .select2-selection__arrow { display: none; }
.select2-dropdown { position: absolute; z-index: 1051; display: block; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--r-field); box-shadow: 0 20px 40px -12px rgb(6 9 28 / .35); }
.select2-search--dropdown { padding: 8px; }
.select2-search__field { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; }
.select2-results__options { list-style: none; margin: 0; padding: 4px; max-height: 240px; overflow-y: auto; }
.select2-results__option { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.select2-results__option--highlighted, .select2-results__option[aria-selected="true"] { background: rgb(20 23 43 / .06); }
.select2-hidden-accessible { border: 0 !important; clip: rect(0 0 0 0) !important; height: 1px !important; margin: -1px !important; overflow: hidden !important; padding: 0 !important; position: absolute !important; width: 1px !important; }

/* Order review and payment */
#order_review { display: grid; gap: 18px; }
table.shop_table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.shop_table th, table.shop_table td { padding: 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.shop_table thead th { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.shop_table td:last-child, table.shop_table th:last-child { text-align: right; }
table.shop_table .product-name { padding-right: 12px; font-weight: 600; }
table.shop_table .product-name input.qty { width: 72px; min-height: 38px; padding: 6px 10px; margin-bottom: 6px; }
table.shop_table dl.variation { display: flex; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
table.shop_table dl.variation dt, table.shop_table dl.variation dd, table.shop_table dl.variation p { margin: 0; }
table.shop_table .order-total th, table.shop_table .order-total td { border-bottom: 0; padding-top: 16px; }
table.shop_table .order-total td > strong .amount { font-size: 26px; font-weight: 780; letter-spacing: -.02em; }
table.shop_table .includes_tax { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
#payment .payment_methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#payment .payment_methods > li { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--field); }
#payment .payment_methods > li label { font-weight: 650; cursor: pointer; }
#payment .payment_box { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
#payment .payment_box p { margin: 0; }
#payment .place-order { margin-top: 18px; display: grid; gap: 14px; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); }
.woocommerce-privacy-policy-text p { margin: 0; }
.woocommerce-privacy-policy-text a { color: var(--ink); }
#place_order, .shop .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 16px;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
	transition: transform .35s var(--ease), background-color .25s;
}
#place_order { width: 100%; font-size: 17px; background: var(--accent); box-shadow: 0 12px 26px -10px rgb(207 39 29 / .8); }
#place_order:hover { background: var(--accent-deep); transform: translateY(-2px); }
.shop .button:hover { transform: translateY(-2px); }
.blockUI.blockOverlay { background: var(--surface-solid) !important; border-radius: var(--r-card); }

/* ---------- Info modals ---------- */

.modal {
	width: min(860px, calc(100vw - 24px));
	max-width: none;
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	background: none;
	overflow: visible;
	color: var(--ink);
}
.modal::backdrop { background: rgb(8 10 28 / .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__frame { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 24px 28px 28px; border-radius: var(--r-panel); background: var(--surface-solid); box-shadow: var(--shadow); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 760; line-height: 1.05; letter-spacing: -.025em; }
.modal__close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; transition: transform .4s var(--ease), background-color .2s; }
.modal__close:hover { transform: rotate(90deg); background: rgb(20 23 43 / .05); }
.modal--menu { width: min(420px, calc(100vw - 24px)); }
.menu-list { display: grid; }
.menu-list a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.menu-list a.menu-list__small { font-size: 15px; font-weight: 500; color: var(--muted); }

.tabs__list { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: rgb(20 23 43 / .06); }
.tab { padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .3s, color .3s, box-shadow .3s; }
.tab[aria-selected="true"] { background: var(--field); color: var(--ink); box-shadow: 0 2px 8px -2px rgb(20 23 43 / .2); }
.tabs__view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.zoom { aspect-ratio: 1; border-radius: var(--r-card); overflow: hidden; background: #121527; }
.zoom__canvas { width: 100%; height: 100%; }
.pane h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 760; line-height: 1.05; letter-spacing: -.025em; }
.pane p { margin-top: 12px; font-size: 17px; color: var(--muted); }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.features__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.features h3 { font-size: 17px; font-weight: 700; line-height: 1.2; }
.features p { margin-top: 4px; font-size: 15px; color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; font-size: 18px; font-weight: 650; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__toggle { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .2s; }
.qa__toggle::before, .qa__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.qa__toggle::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.qa[open] .qa__toggle::after { transform: rotate(0); }
.qa summary:hover .qa__toggle { background: rgb(20 23 43 / .05); }
.qa::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.qa[open]::details-content { height: auto; }
.qa__body { padding: 0 44px 18px 0; color: var(--muted); }

.legal { position: fixed; z-index: 4; right: clamp(16px, 3vw, 40px); bottom: 14px; display: flex; gap: 16px; font-size: 12.5px; color: rgb(246 243 238 / .85); text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.legal a { text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* Before scripts run, the interface is simply visible. */
html.js:not(.ui-in) .flow, html.js:not(.ui-in) .topbar, html.js:not(.ui-in) .legal { visibility: hidden; }

/* ---------- Inner pages (order received, account, privacy) ---------- */

.site-head { display: flex; align-items: center; gap: 12px; padding: 18px clamp(16px, 3vw, 40px); color: var(--on-dark); }
.site-head .brand { margin-right: auto; }
.site-head .pbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); color: var(--on-dark); font-weight: 600; text-decoration: none; }
.page { padding: 8px clamp(16px, 3vw, 40px) 56px; }
.page__wrap { max-width: 980px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-panel); background: var(--surface-solid); box-shadow: var(--shadow); }
.page__title { font-size: clamp(32px, 4vw, 52px); font-weight: 780; line-height: 1.02; letter-spacing: -.03em; margin-bottom: 24px; }
.page__lead { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.bignum { font-size: clamp(96px, 14vw, 180px); font-weight: 800; line-height: .85; letter-spacing: -.05em; color: var(--accent); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose a { color: var(--accent); }
.entry + .entry { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.entry__title { font-size: 26px; margin-bottom: 8px; }
.shop h2, .shop h3 { font-size: 22px; font-weight: 720; margin: 0 0 14px; }
.shop form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
.shop form.checkout > * { grid-column: 1 / -1; }
.shop form.checkout #customer_details { grid-column: 1; }
.shop form.checkout #order_review_heading, .shop form.checkout #order_review { grid-column: 2; }
.woocommerce-order { display: grid; gap: 28px; }
.woocommerce-thankyou-order-received { font-size: 19px; font-weight: 600; }
ul.woocommerce-order-overview { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; border-radius: var(--r-card); overflow: hidden; background: var(--line); }
ul.woocommerce-order-overview li { padding: 14px 18px; background: var(--field); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 17px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.wc-bacs-bank-details { list-style: none; padding: 0; display: grid; gap: 4px; }
.woocommerce-customer-details address { font-style: normal; }
.woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-foot { padding: 0 clamp(16px, 3vw, 40px) 28px; }
.site-foot__inner { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: 13px; color: var(--on-dark); }
.site-foot__inner a { text-decoration: none; }

/* Inline flow: one cabinet line, quantity lives in step 1 */
.flow table.shop_table .product-name .quantity, .flow table.shop_table .product-name input.qty, .flow table.shop_table .product-name a.remove, .flow table.shop_table .product-name .product-remove { display: none; }
.flow #payment #place_order { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; min-height: 0; }
.flow #payment .place-order { margin-top: 14px; }
.btn__amount { padding-left: 12px; margin-left: 2px; border-left: 1px solid rgb(255 255 255 / .35); font-variant-numeric: tabular-nums; }

@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes shimmer { to { background-position: -100% 0; } }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.topnav { display: none; }
	.topbar__menu { display: grid; }
}

@media (max-width: 760px), (max-aspect-ratio: 19/20) {
	.flow, .flow.is-checkout {
		left: 10px;
		right: 10px;
		bottom: max(10px, env(safe-area-inset-bottom));
		top: 47%;
		width: auto;
		border-radius: 24px;
		transition: top .9s var(--ease);
	}
	.flow.is-checkout { top: calc(max(18px, env(safe-area-inset-top)) + 58px); }
	.flow__head { padding: 14px 18px 0; }
	.step__scroll { padding: 18px 18px 14px; }
	.step__foot { padding: 12px 18px 14px; }
	.step__title { font-size: clamp(30px, 8.4vw, 40px); margin-top: 6px; }
	.config { grid-template-columns: 1fr auto; align-items: end; }
	.swatch { padding: 6px 14px 6px 6px; }
	.swatch__chip { width: 24px; height: 24px; }
	.stepper__btn { width: 34px; height: 34px; }
	.stepper input { width: 34px; }
	.step__lead { display: none; }
	.eyebrow { font-size: 12px; }
	.config { gap: 16px; margin-top: 18px; }
	.total__price { font-size: 24px; }
	.progress__t { font-size: 13px; }
	.legal { display: none; }
	.tabs__view, .features { grid-template-columns: 1fr; }
	.zoom { max-width: 340px; width: 100%; justify-self: center; }
	.modal__frame { padding: 18px; }
	.shop form.checkout { grid-template-columns: 1fr; }
	.shop form.checkout #customer_details, .shop form.checkout #order_review_heading, .shop form.checkout #order_review { grid-column: 1; }
}

@media (max-width: 420px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
	.form-row-first, .form-row-last { grid-column: 1 / -1; }
	.btn { padding: 0 18px; }
}

@media (max-height: 760px) and (min-aspect-ratio: 19/20) {
	.step__title { font-size: 44px; }
	.step__lead { display: none; }
	.config { margin-top: 18px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
