/*
Theme Name: Konfigūratorius
Theme URI: http://kedes-b.test
Author: Minkštos kėdės demo
Description: Demo B „Konfigūratorius“: a product configurator that happens to be a shop. Classic PHP theme with WooCommerce template overrides, one CSS file, plain JS, self-hosted Manrope.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: konfiguratorius
*/

/* ------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------ */
:root {
	--b-white: #FFFFFF;
	--b-surface: #F4F4F2;
	--b-surface-2: #ECECE9;
	--b-line: #E3E3E0;
	--b-line-strong: #C9C9C5;
	--b-text: #141414;
	--b-muted: #6B6B68;
	--b-accent: #282828;
	--b-accent-hover: #000000;
	--b-signal: #C86020;
	--b-signal-soft: #FBEFE6;
	--b-signal-text: #A04A17;  /* the signal tone for small text, 5.3:1 on the soft background */
	--b-ok: #2F6B3A;
	--b-ok-soft: #EAF3EC;
	--b-error: #B3261E;
	--b-error-soft: #FBECEA;
	--b-focus: 0 0 0 3px rgba(40, 40, 40, .25);
	--b-radius: 6px;
	--b-radius-lg: 10px;
	--b-shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 12px 32px -16px rgba(20, 20, 20, .22);
	--b-shadow-bar: 0 -8px 24px -12px rgba(20, 20, 20, .25);

	--font: "Manrope", system-ui, "Segoe UI", Arial, sans-serif;
	--fs-12: .75rem;
	--fs-13: .8125rem;
	--fs-14: .875rem;
	--fs-15: .9375rem;
	--fs-16: 1rem;
	--fs-18: 1.125rem;
	--fs-22: 1.375rem;
	--fs-28: 1.75rem;
	--fs-36: 2.25rem;
	--fs-48: 3rem;

	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 24px;
	--s-6: 32px;
	--s-7: 48px;
	--s-8: 64px;
	--s-9: 96px;

	--section: 48px;
	--gutter: 16px;
	--header-h: 64px;
	--wrap: 1360px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
	:root {
		--section: 64px;
		--gutter: 32px;
		--header-h: 72px;
	}
}

@font-face {
	font-family: "Manrope";
	src: url("assets/fonts/manrope-variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------------
   2. Reset and base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-16);
	line-height: 1.5;
	color: var(--b-text);
	background: var(--b-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

body.sheet-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; color: var(--b-muted); }

h1, h2, h3, h4 {
	margin: 0;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
	text-wrap: balance;
}

h1 { font-size: var(--fs-28); font-weight: 800; }
h2 { font-size: var(--fs-22); }
h3 { font-size: var(--fs-18); }

@media (min-width: 768px) {
	h1 { font-size: var(--fs-36); }
	h2 { font-size: var(--fs-28); }
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0; padding: 0; }
.list-plain { list-style: none; }

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

button { cursor: pointer; }

:focus-visible { outline: none; box-shadow: var(--b-focus); border-radius: var(--b-radius); }

table { border-collapse: collapse; width: 100%; }

small { font-size: var(--fs-13); }

strong { font-weight: 700; }

.screen-reader-text, .visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.num, .price, .mk-price, [data-konf-total], [data-konf-base], [data-konf-delta] {
	font-variant-numeric: tabular-nums;
}

.muted { color: var(--b-muted); }

/* ------------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------------ */
.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--narrow { max-width: calc(1080px + 2 * var(--gutter)); }
.wrap--text { max-width: calc(760px + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section--surface { background: var(--b-surface); }
.section--tight { padding-block: var(--s-6); }

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s-3) var(--s-5);
	margin-bottom: var(--s-5);
}

.section__head p { color: var(--b-muted); max-width: 56ch; }

@media (min-width: 768px) {
	.section__head { margin-bottom: var(--s-6); }
}

.site-main { min-height: 50vh; }

/* ------------------------------------------------------------------
   4. Buttons, badges, notices
   ------------------------------------------------------------------ */
.btn, .button, button.button, a.button, input[type="submit"].button, #place_order, .single_add_to_cart_button, .checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	min-height: 48px;
	padding: 0 var(--s-5);
	border: 1px solid var(--b-accent);
	border-radius: var(--b-radius);
	background: var(--b-accent);
	color: var(--b-white);
	font-size: var(--fs-15);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease), transform .12s var(--ease);
}

.btn:hover, .button:hover, #place_order:hover, .single_add_to_cart_button:hover, .checkout-button:hover {
	background: var(--b-accent-hover);
	border-color: var(--b-accent-hover);
	color: var(--b-white);
	text-decoration: none;
}

.btn--ghost, .button.btn--ghost {
	background: var(--b-white);
	color: var(--b-text);
	border-color: var(--b-line-strong);
}

.btn--ghost:hover, .button.btn--ghost:hover {
	background: var(--b-surface);
	color: var(--b-text);
	border-color: var(--b-accent);
}

.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-14); }
.btn--block { width: 100%; }
.btn--link {
	background: none; border: 0; min-height: 0; padding: 0;
	color: var(--b-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.btn--link:hover { background: none; color: var(--b-accent-hover); }

.btn:disabled, .button:disabled, .single_add_to_cart_button:disabled, .single_add_to_cart_button.disabled, .single_add_to_cart_button.mk-disabled, #place_order:disabled {
	background: var(--b-line);
	border-color: var(--b-line);
	color: var(--b-muted);
	cursor: not-allowed;
}

.badge-signal {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--b-signal-soft);
	color: var(--b-signal-text);
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.4;
}

.badge-signal::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.notice-tiksl {
	display: inline-block;
	padding: 2px 8px;
	border: 1px dashed var(--b-signal);
	border-radius: var(--b-radius);
	background: var(--b-signal-soft);
	color: var(--b-signal-text);
	font-size: var(--fs-13);
	font-weight: 600;
	line-height: 1.4;
	vertical-align: baseline;
}

.notice-tiksl--block { display: block; width: fit-content; margin-top: var(--s-3); }

.woocommerce-message, .woocommerce-error, .woocommerce-info, .woocommerce-notice, .konf-notice {
	list-style: none;
	margin: 0 0 var(--s-5);
	padding: var(--s-3) var(--s-4);
	border: 1px solid var(--b-line);
	border-left: 4px solid var(--b-accent);
	border-radius: var(--b-radius);
	background: var(--b-surface);
	font-size: var(--fs-15);
}

.woocommerce-error { border-left-color: var(--b-error); background: var(--b-error-soft); }
.woocommerce-message { border-left-color: var(--b-ok); background: var(--b-ok-soft); }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: var(--s-3); min-height: 36px; padding: 0 var(--s-3); font-size: var(--fs-13); }
.woocommerce-error li { margin: 0; }
.woocommerce-error li + li { margin-top: var(--s-1); }

.woocommerce-notices-wrapper:empty { display: none; }

/* ------------------------------------------------------------------
   5. Header
   ------------------------------------------------------------------ */
.skip-link:focus {
	position: fixed !important;
	left: 12px; top: 12px;
	width: auto; height: auto; clip: auto;
	z-index: 200;
	padding: 10px 14px;
	background: var(--b-white);
	border-radius: var(--b-radius);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--b-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	min-height: var(--header-h);
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-14);
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--b-text);
}

.wordmark:hover { text-decoration: none; }

/* Her own logo (2025, from minkstos-kedes.lt), shown as is */
.wordmark__logo { display: block; width: auto; height: 28px; transform: translateY(1px); } /* the band, not the chair legs, sits on the header's middle */
@media (min-width: 768px) { .wordmark__logo { height: 37px; } }
.wordmark__logo--sheet { height: 26px; }

.wordmark__mark {
	position: relative;
	flex: none;
	width: 16px; height: 16px;
	border-radius: 4px;
	background: var(--b-accent);
}

.wordmark__mark::after {
	content: "";
	position: absolute;
	left: 4px; right: 4px; bottom: 4px;
	height: 3px;
	border-radius: 1px;
	background: var(--b-white);
}

.site-nav { display: none; }

@media (min-width: 1024px) {
	.site-nav { display: block; }
	.site-nav ul { display: flex; gap: 2px; list-style: none; }
	.site-nav a {
		position: relative;
		display: block;
		padding: 10px 12px;
		border-radius: var(--b-radius);
		font-size: var(--fs-14);
		font-weight: 600;
		color: var(--b-muted);
		transition: color .12s var(--ease), background .12s var(--ease);
	}
	.site-nav a:hover { color: var(--b-text); background: var(--b-surface); text-decoration: none; }
	.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-product_cat-ancestor > a, .site-nav .is-active > a { color: var(--b-text); }
	.site-nav .current-menu-item > a::after, .site-nav .is-active > a::after {
		content: "";
		position: absolute;
		left: 12px; right: 12px; bottom: 2px;
		height: 2px;
		border-radius: 1px;
		background: var(--b-accent);
	}
}

@media (min-width: 1280px) {
	.site-nav a { padding: 10px 14px; font-size: var(--fs-15); }
}

.site-actions { display: flex; align-items: center; gap: var(--s-2); }

.cart-btn, .burger {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	min-height: 42px;
	min-width: 42px;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--b-line-strong);
	border-radius: 999px;
	background: var(--b-white);
	font-size: var(--fs-14);
	font-weight: 600;
	color: var(--b-text);
	transition: border-color .12s var(--ease), background .12s var(--ease);
}

.cart-btn:hover, .burger:hover { border-color: var(--b-accent); background: var(--b-surface); text-decoration: none; }
.cart-btn svg, .burger svg { width: 18px; height: 18px; }

.cart-btn__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--b-accent);
	color: var(--b-white);
	font-size: var(--fs-12);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cart-btn__count:empty, .cart-btn__count[data-count="0"] { display: none; }
.cart-btn__label { display: none; }

@media (min-width: 768px) {
	.cart-btn__label { display: inline; }
	.cart-btn { padding: 0 16px; }
}

@media (min-width: 1024px) {
	.burger { display: none; }
}

/* ------------------------------------------------------------------
   6. Sheets (phone menu, phone filters), dialogs
   ------------------------------------------------------------------ */
.sheet-backdrop {
	position: fixed;
	inset: 0;
	z-index: 80;
	background: rgba(20, 20, 20, .4);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s var(--ease), visibility 0s linear .2s;
}

.sheet-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .2s var(--ease); }

.sheet {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 90;
	max-height: 88vh;
	overflow: auto;
	overscroll-behavior: contain;
	padding: var(--s-4) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom));
	border-radius: 18px 18px 0 0;
	background: var(--b-white);
	box-shadow: var(--b-shadow-bar);
	transform: translateY(102%);
	visibility: hidden;
	transition: transform .25s var(--ease), visibility 0s linear .25s;
}

.sheet.is-open { transform: none; visibility: visible; transition: transform .25s var(--ease); }

.sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--s-3);
}

.sheet__head h2 { font-size: var(--fs-18); }

.sheet__close {
	width: 40px; height: 40px;
	border: 1px solid var(--b-line);
	border-radius: 50%;
	background: var(--b-white);
	display: inline-flex; align-items: center; justify-content: center;
}

.sheet__close svg { width: 18px; height: 18px; }

.sheet-menu ul { list-style: none; }
.sheet-menu__list li + li { border-top: 1px solid var(--b-line); }
.sheet-menu__list a { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; font-size: var(--fs-18); font-weight: 700; letter-spacing: -.01em; }
.sheet-menu__list a::after { content: "→"; color: var(--b-muted); font-weight: 500; }
.sheet-menu__sub { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--b-line); }
.sheet-menu__sub a { display: block; padding: 9px 2px; font-size: var(--fs-15); font-weight: 600; color: var(--b-muted); }
.sheet-menu__addr { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--s-4); padding: var(--s-3); border-radius: var(--b-radius); background: var(--b-surface); font-size: var(--fs-13); color: var(--b-muted); }
.sheet-menu__addr svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

@media (min-width: 1024px) {
	.sheet--menu { display: none; }
}

dialog.popover {
	border: 0;
	border-radius: var(--b-radius-lg);
	padding: var(--s-3);
	max-width: min(92vw, 640px);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}

dialog.popover::backdrop { background: rgba(20, 20, 20, .55); }
dialog.popover img { border-radius: var(--b-radius); width: 100%; max-height: 70vh; object-fit: contain; background: var(--b-surface); }
dialog.popover .popover__cap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-15); font-weight: 700; }

/* ------------------------------------------------------------------
   7. Photo wells and category tiles
   ------------------------------------------------------------------ */
.photo {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius-lg);
	background: var(--b-surface);
}

.photo img { width: 100%; height: 100%; object-fit: contain; }
.photo--cover img { object-fit: cover; }
.photo--1x1 { aspect-ratio: 1 / 1; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--white { background: var(--b-white); }

.placeholder-sofa {
	display: grid;
	place-items: center;
	align-content: center;
	gap: var(--s-2);
	width: 100%; height: 100%;
	padding: 10%;
	text-align: center;
	color: var(--b-muted);
	background:
		linear-gradient(var(--b-white), var(--b-white)) padding-box,
		repeating-linear-gradient(0deg, transparent 0 23px, rgba(20, 20, 20, .04) 23px 24px),
		repeating-linear-gradient(90deg, transparent 0 23px, rgba(20, 20, 20, .04) 23px 24px);
}

.placeholder-sofa svg { width: min(100%, 300px); height: auto; color: var(--b-accent); }
.placeholder-sofa .notice-tiksl { font-size: var(--fs-12); }

.tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.tile-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius-lg);
	background: var(--b-white);
	overflow: hidden;
	transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.tile-cat:hover { text-decoration: none; border-color: var(--b-line-strong); }

@media (hover: hover) and (min-width: 768px) {
	.tile-cat:hover { transform: translateY(-2px); box-shadow: var(--b-shadow); }
}

.tile-cat__index {
	position: absolute;
	top: 12px; left: 14px;
	z-index: 1;
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--b-muted);
	font-variant-numeric: tabular-nums;
}

.tile-cat__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--b-white);
	overflow: hidden;
}

.tile-cat__media img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10% 8% 4%; object-fit: contain; transition: transform .3s var(--ease); }
.tile-cat:hover .tile-cat__media img { transform: scale(1.04); }

.tile-cat__drawing { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--s-2); padding: 12% 10% 6%; color: var(--b-accent); }
.tile-cat__drawing svg { width: 100%; height: auto; }
.tile-cat__drawing .notice-tiksl { font-size: var(--fs-12); }

.tile-cat__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 52px 14px 14px;
	border-top: 1px solid var(--b-line);
}

.tile-cat__name { font-size: var(--fs-15); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.tile-cat__meta { font-size: var(--fs-12); color: var(--b-muted); font-variant-numeric: tabular-nums; }

.tile-cat__go {
	position: absolute;
	right: 12px; bottom: 14px;
	display: grid;
	place-items: center;
	width: 32px; height: 32px;
	border: 1px solid var(--b-line-strong);
	border-radius: 50%;
	color: var(--b-text);
	transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}

.tile-cat__go svg { width: 15px; height: 15px; }
.tile-cat:hover .tile-cat__go { background: var(--b-accent); border-color: var(--b-accent); color: var(--b-white); }

@media (min-width: 768px) {
	.tile-cat__body { padding: 14px 56px 16px 16px; }
	.tile-cat__name { font-size: var(--fs-18); }
	.tile-cat__meta { font-size: var(--fs-13); }
}

.tiles .tile-cat:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
.tiles .tile-cat:last-child:nth-child(odd) .tile-cat__media { width: 50%; aspect-ratio: 4 / 3; }
.tiles .tile-cat:last-child:nth-child(odd) .tile-cat__body { flex: 1; justify-content: center; border-top: 0; border-left: 1px solid var(--b-line); }
/* the wide phone tile (Sofos) is a 4:3 well: a smaller drawing leaves room for the placeholder line */
@media (max-width: 639.98px) {
	.tiles .tile-cat:last-child:nth-child(odd) .tile-cat__drawing { padding: 10% 8% 6%; }
	.tiles .tile-cat:last-child:nth-child(odd) .tile-cat__drawing svg { width: 70%; justify-self: center; }
	.tiles .tile-cat:last-child:nth-child(odd) .tile-cat__drawing .notice-tiksl { font-size: 11px; padding: 2px 6px; }
}

@media (min-width: 640px) {
	.tiles .tile-cat:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; }
	.tiles .tile-cat:last-child:nth-child(odd) .tile-cat__media { width: auto; aspect-ratio: 1 / 1; }
	.tiles .tile-cat:last-child:nth-child(odd) .tile-cat__body { justify-content: flex-start; border-top: 1px solid var(--b-line); border-left: 0; }
}

/* ------------------------------------------------------------------
   8. Product cards
   ------------------------------------------------------------------ */
.products, ul.products {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 640px) { .products, ul.products { gap: var(--s-4); } }
@media (min-width: 768px) { .products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { ul.products--home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) {
	ul.products--home { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); }
	ul.products--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card-product { min-width: 0; }

.card-product__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius-lg);
	background: var(--b-white);
	overflow: hidden;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}

.card-product__link:hover { text-decoration: none; border-color: var(--b-line-strong); }

@media (hover: hover) and (min-width: 768px) {
	.card-product__link:hover { box-shadow: var(--b-shadow); transform: translateY(-2px); }
}

.card-product__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--b-white); }
.card-product__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: opacity .3s var(--ease); }
.card-product__img--alt { opacity: 0; }

@media (hover: hover) {
	.card-product__link:hover .has-alt .card-product__img--alt { opacity: 1; }
	.card-product__link:hover .has-alt .card-product__img:not(.card-product__img--alt) { opacity: 0; }
}

.card-product__media .placeholder-sofa { position: absolute; inset: 0; padding: 14%; }
.card-product__media .placeholder-sofa .notice-tiksl { font-size: 11px; }

.card-product__badge {
	position: absolute;
	left: 10px; top: 10px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--b-surface);
	font-size: 11px;
	font-weight: 700;
	color: var(--b-muted);
	font-variant-numeric: tabular-nums;
}

.card-product__body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	flex: 1;
	padding: 12px 12px 2px;
	border-top: 1px solid var(--b-line);
}

.card-product__kind { font-size: var(--fs-12); font-weight: 500; color: var(--b-muted); }
.card-product__name { font-size: var(--fs-16); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.card-product__price { margin-top: 6px; font-size: var(--fs-15); font-weight: 700; font-variant-numeric: tabular-nums; }
.card-product__price small { font-size: var(--fs-12); font-weight: 500; color: var(--b-muted); }
.card-product__opts {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 4px;
	font-size: var(--fs-12);
	line-height: 1.45;
	color: var(--b-muted);
}

.card-product__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-2);
	margin: 10px 12px 12px;
	padding: 9px 12px;
	border-radius: var(--b-radius);
	background: var(--b-surface);
	font-size: var(--fs-14);
	font-weight: 700;
	transition: background .15s var(--ease), color .15s var(--ease);
}

.card-product__cta svg { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.card-product__link:hover .card-product__cta { background: var(--b-accent); color: var(--b-white); }
.card-product__link:hover .card-product__cta svg { transform: translateX(3px); }

@media (min-width: 768px) {
	.card-product__body { padding: 14px 16px 2px; }
	.card-product__name { font-size: var(--fs-18); }
	.card-product__cta { margin: 12px 16px 16px; }
}

/* ------------------------------------------------------------------
   9. Home
   ------------------------------------------------------------------ */
.hero-picker {
	padding-block: var(--s-6) var(--s-6);
	background: var(--b-surface);
	border-bottom: 1px solid var(--b-line);
}

@media (min-width: 768px) { .hero-picker { padding-block: var(--s-7) var(--s-7); } }

.flow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	list-style: none;
	margin-bottom: var(--s-4);
}

.flow li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-12); font-weight: 600; color: var(--b-muted); }
.flow li + li::before { content: ""; width: 14px; height: 1px; background: var(--b-line-strong); }
.flow__num {
	display: inline-grid;
	place-items: center;
	width: 22px; height: 22px;
	border: 1px solid var(--b-line-strong);
	border-radius: 50%;
	font-size: 11px;
	font-weight: 800;
	background: var(--b-white);
}
.flow .is-current { color: var(--b-text); }
.flow .is-current .flow__num { background: var(--b-accent); border-color: var(--b-accent); color: var(--b-white); }

@media (min-width: 768px) {
	.flow li { font-size: var(--fs-13); }
	.flow li + li::before { width: 28px; }
}

/* phone: one line, short labels („Konfigūracija“, „Pristatymas“), never a wrapped connector */
@media (max-width: 639.98px) {
	.flow { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
	.flow::-webkit-scrollbar { display: none; }
	.flow li { flex: none; gap: 6px; }
	.flow li + li::before { width: 10px; }
	.flow__more { display: none; }
}

.hero-picker__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-2); }
.hero-picker h1 { font-size: 2.375rem; letter-spacing: -.035em; line-height: 1.02; }

@media (min-width: 768px) {
	.hero-picker h1 { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
	.hero-picker__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-6); margin-bottom: var(--s-3); }
	.hero-picker h1 { font-size: 4rem; }
}

.hero-picker__claim {
	margin-bottom: var(--s-5);
	font-size: var(--fs-28);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
	color: var(--b-text);
}
@media (min-width: 768px) { .hero-picker__claim { font-size: var(--fs-36); margin-bottom: var(--s-6); } }
.hero-picker .flow { margin: var(--s-5) 0 0; }

.how { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }

.how__card {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	padding: var(--s-5);
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius-lg);
	background: var(--b-white);
}

.how__num {
	display: inline-grid;
	place-items: center;
	width: 30px; height: 30px;
	margin-bottom: var(--s-2);
	border-radius: 50%;
	background: var(--b-accent);
	color: var(--b-white);
	font-size: var(--fs-13);
	font-weight: 800;
}

.how__card h3 { font-size: var(--fs-18); letter-spacing: -.015em; }
.how__card p { color: var(--b-muted); font-size: var(--fs-15); }
.how__visual { margin-top: auto; padding-top: var(--s-3); }

/* Card 1: the first four models; card 3: one model six times, a whole set in one order */
.model-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; }
.model-strip li { aspect-ratio: 1; overflow: hidden; border-radius: 4px; border: 1px solid var(--b-line); background: var(--b-white); }
.model-strip img { width: 100%; height: 100%; object-fit: contain; }

.set-strip { display: flex; align-items: center; gap: var(--s-3); }
.set-strip ul { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; list-style: none; }
.set-strip li { aspect-ratio: 1; overflow: hidden; border-radius: 4px; border: 1px solid var(--b-line); background: var(--b-white); }
.set-strip img { width: 100%; height: 100%; object-fit: contain; }
.set-strip__qty { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--b-accent); color: var(--b-white); font-size: var(--fs-13); font-weight: 800; font-variant-numeric: tabular-nums; }

.swatch-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; list-style: none; }
.swatch-strip li { aspect-ratio: 1; overflow: hidden; border-radius: 4px; border: 1px solid var(--b-line); }
.swatch-strip img { width: 100%; height: 100%; object-fit: cover; }
.swatch-strip li:first-child { box-shadow: 0 0 0 2px var(--b-white), 0 0 0 3.5px var(--b-accent); }

.horeca-teaser { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .horeca-teaser { grid-template-columns: 5fr 6fr; gap: var(--s-8); } }
.horeca-teaser h2 { margin: var(--s-2) 0 var(--s-3); font-size: var(--fs-28); letter-spacing: -.03em; }
@media (min-width: 768px) { .horeca-teaser h2 { font-size: var(--fs-36); } }
.horeca-teaser__text > p { color: var(--b-muted); font-size: var(--fs-16); max-width: 46ch; }
.horeca-teaser__text .btn { margin-top: var(--s-5); }
.horeca-teaser__media { margin: 0; }
.horeca-teaser__media .photo { aspect-ratio: 795 / 600; max-width: 795px; }
.horeca-teaser__media figcaption { margin-top: var(--s-2); }

.ticks { list-style: none; display: grid; gap: 8px; margin-top: var(--s-4); font-size: var(--fs-15); font-weight: 500; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--b-accent); color: var(--b-white); stroke-width: 2.6; }

/* ------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------ */
.site-footer {
	margin-top: var(--section);
	padding-block: var(--s-7) var(--s-5);
	background: #161616;
	color: rgba(255, 255, 255, .62);
	font-size: var(--fs-14);
}

.home .site-footer { margin-top: 0; }

.site-footer__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4) var(--s-5);
	padding-bottom: var(--s-6);
	margin-bottom: var(--s-6);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__lead { margin-top: 6px; max-width: 30ch; font-size: var(--fs-22); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--b-white); }
@media (min-width: 768px) { .site-footer__lead { font-size: var(--fs-28); } }

.btn--light { background: var(--b-white); border-color: var(--b-white); color: #161616; }
.btn--light:hover { background: var(--b-line); border-color: var(--b-line); color: #161616; }
.btn--light svg { width: 16px; height: 16px; }

.site-footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); } }

.site-footer__h { margin-bottom: var(--s-3); font-size: var(--fs-12); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--b-white); }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: var(--s-2); }
.site-footer a:hover { color: var(--b-white); }
.site-footer .wordmark { color: var(--b-white); margin-bottom: var(--s-3); }
.site-footer .wordmark__mark { background: var(--b-white); }
.site-footer .wordmark__mark::after { background: #161616; }
.site-footer .notice-tiksl { background: rgba(200, 96, 32, .16); border-color: rgba(240, 160, 106, .55); color: #F2A774; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--s-2) var(--s-4);
	margin-top: var(--s-6);
	padding-top: var(--s-4);
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: var(--fs-13);
	color: rgba(255, 255, 255, .6);
}

body.has-sticky-bar .site-footer { padding-bottom: 104px; }

/* ------------------------------------------------------------------
   11. Category page: filters and grid
   ------------------------------------------------------------------ */
.page-hero { padding-block: var(--s-6) var(--s-5); }
@media (min-width: 768px) { .page-hero { padding-block: var(--s-7) var(--s-6); } }
.page-hero h1 { font-size: 2.25rem; letter-spacing: -.035em; line-height: 1.02; }
@media (min-width: 768px) { .page-hero h1 { font-size: var(--fs-48); } }
.page-hero p { margin-top: var(--s-3); color: var(--b-muted); max-width: 60ch; font-size: var(--fs-16); text-wrap: pretty; }
@media (min-width: 768px) { .page-hero p { font-size: var(--fs-18); } }

.cat-switch { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.cat-switch a {
	padding: 7px 14px;
	border: 1px solid var(--b-line-strong);
	border-radius: 999px;
	font-size: var(--fs-13);
	font-weight: 600;
	color: var(--b-muted);
	transition: all .12s var(--ease);
}
.cat-switch a:hover { text-decoration: none; color: var(--b-text); border-color: var(--b-accent); }
.cat-switch a.is-active { background: var(--b-accent); border-color: var(--b-accent); color: var(--b-white); }

.catalog { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: start; }

@media (min-width: 1024px) {
	.catalog { grid-template-columns: 272px minmax(0, 1fr); gap: var(--s-7); }
}

/* one form: a bottom sheet on phones, a sticky rail on desktop */
@media (max-width: 1023.98px) {
	.filter-rail {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 90;
		max-height: 88vh;
		overflow: auto;
		padding: var(--s-4) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom));
		border-radius: 16px 16px 0 0;
		background: var(--b-white);
		box-shadow: var(--b-shadow-bar);
		transform: translateY(102%);
		visibility: hidden;
		transition: transform .25s var(--ease), visibility 0s linear .25s;
	}
	.filter-rail.is-open { transform: none; visibility: visible; transition: transform .25s var(--ease); }
}

@media (min-width: 1024px) {
	.filter-rail { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
	.filter-rail .sheet__close { display: none; }
	.filter-rail .filter-actions [data-filter-apply] { display: none; }
}

.filter-rail__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.filter-rail__head h2 { font-size: var(--fs-16); }

.filter-group { min-width: 0; margin: 0; padding: var(--s-4) 0; border: 0; border-top: 1px solid var(--b-line); }
.filter-group > legend { float: left; width: 100%; padding: 0; }
.filter-group > legend + * { clear: both; }
.filter-group:last-of-type { border-bottom: 1px solid var(--b-line); }
.filter-group__label {
	display: block;
	margin-bottom: var(--s-3);
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--b-muted);
}

.check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: var(--fs-14);
	font-weight: 500;
	cursor: pointer;
}

.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
	flex: none;
	width: 18px; height: 18px;
	border: 1.5px solid var(--b-line-strong);
	border-radius: 4px;
	background: var(--b-white);
	display: inline-grid; place-items: center;
	transition: all .12s var(--ease);
}
.check__box::after {
	content: "";
	width: 10px; height: 6px;
	border: 2px solid var(--b-white);
	border-top: 0; border-right: 0;
	transform: translateY(-1px) rotate(-45deg) scale(0);
	transition: transform .12s var(--ease);
}
.check input:checked + .check__box { background: var(--b-accent); border-color: var(--b-accent); }
.check input:checked + .check__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { box-shadow: var(--b-focus); }
.check__count { margin-left: auto; color: var(--b-muted); font-size: var(--fs-13); }
.check__swatch { flex: none; width: 22px; height: 22px; border-radius: 4px; border: 1px solid rgba(20, 20, 20, .12); background: var(--b-surface) center / cover no-repeat; }

.dot {
	flex: none;
	width: 20px; height: 20px;
	border-radius: 50%;
	border: 1px solid rgba(20, 20, 20, .18);
	background: var(--dot, #ccc);
}
.dot--languota {
	background:
		linear-gradient(45deg, #3b3b3b 25%, transparent 25%, transparent 75%, #3b3b3b 75%),
		linear-gradient(45deg, #3b3b3b 25%, #e8e4dc 25%, #e8e4dc 75%, #3b3b3b 75%);
	background-size: 8px 8px;
	background-position: 0 0, 4px 4px;
}
.check--dot input:checked ~ .dot { box-shadow: 0 0 0 2px var(--b-white), 0 0 0 3.5px var(--b-accent); }
.check--dot input:checked ~ span:last-of-type { font-weight: 700; }
.check--dot .check__box { display: none; }
.check--dot input:focus-visible ~ .dot { box-shadow: var(--b-focus); }
.filter-dots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-3); }
.check.is-empty { opacity: .4; }
.check.is-empty .check__count { visibility: hidden; }

.range { padding-top: var(--s-2); }
.range__vals { display: flex; justify-content: space-between; font-size: var(--fs-14); font-weight: 600; margin-bottom: var(--s-3); }
.range__track { position: relative; height: 28px; }
.range__rail { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--b-line); }
.range__fill { position: absolute; top: 12px; height: 4px; border-radius: 2px; background: var(--b-accent); }
.range input[type="range"] {
	-webkit-appearance: none; appearance: none;
	position: absolute; left: 0; top: 0; width: 100%; height: 28px;
	margin: 0; background: none; pointer-events: none;
}
.range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--b-white); border: 2px solid var(--b-accent);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	pointer-events: auto; cursor: grab;
}
.range input[type="range"]::-moz-range-thumb {
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--b-white); border: 2px solid var(--b-accent);
	pointer-events: auto; cursor: grab;
}
.range input[type="range"]:focus-visible { box-shadow: none; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--b-focus); }

.filter-actions { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.filter-actions .btn { flex: 1; }

.catalog__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
	margin-bottom: var(--s-4);
}

.result-count { font-size: var(--fs-14); color: var(--b-muted); margin: 0; }

.sort { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-14); }
.sort select {
	min-height: 40px;
	padding: 0 32px 0 12px;
	border: 1px solid var(--b-line-strong);
	border-radius: var(--b-radius);
	background: var(--b-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23141414' stroke-width='1.5'/></svg>") no-repeat right 12px center;
	-webkit-appearance: none; appearance: none;
	font-weight: 600;
}

.filter-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filter-toggle { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.chips:empty { display: none; }
.chip-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px 6px 12px;
	border: 1px solid var(--b-line-strong);
	border-radius: 999px;
	background: var(--b-white);
	font-size: var(--fs-13);
	font-weight: 600;
}
.chip-filter button {
	display: inline-grid; place-items: center;
	width: 18px; height: 18px;
	border: 0; border-radius: 50%;
	background: var(--b-surface-2);
	font-size: 14px; line-height: 1;
}
.chip-filter button:hover { background: var(--b-accent); color: var(--b-white); }
.chip-filter--clear { border-style: dashed; color: var(--b-muted); background: none; cursor: pointer; }
.chip-filter--clear:hover { color: var(--b-text); border-color: var(--b-accent); }

#konf-results { transition: opacity .15s var(--ease); }
#konf-results.is-loading { opacity: .45; pointer-events: none; }

.no-products {
	padding: var(--s-7) var(--s-4);
	border: 1px dashed var(--b-line-strong);
	border-radius: var(--b-radius-lg);
	text-align: center;
	color: var(--b-muted);
}

.woocommerce-pagination { margin-top: var(--s-6); }
.woocommerce-pagination ul { display: flex; gap: var(--s-2); list-style: none; justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span {
	display: inline-grid; place-items: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--b-line-strong); border-radius: var(--b-radius);
	font-weight: 600; font-size: var(--fs-14);
}
.woocommerce-pagination .current { background: var(--b-accent); color: var(--b-white); border-color: var(--b-accent); }

/* a short category continues with the other categories */
.more-cats { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--b-line); }
.more-cats__title { margin-bottom: var(--s-4); font-size: var(--fs-18); letter-spacing: -.015em; }
@media (min-width: 640px) { .tiles--more { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tiles--more .tile-cat__name { font-size: var(--fs-16); } }

/* ------------------------------------------------------------------
   12. Product page: configurator
   ------------------------------------------------------------------ */
.configurator { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }

@media (min-width: 1024px) {
	.configurator {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--s-7);
		align-items: start;
	}
	.configurator__media { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}

@media (min-width: 1280px) { .configurator { gap: var(--s-8); } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-block: var(--s-4); font-size: var(--fs-13); color: var(--b-muted); }
.crumbs a:hover { color: var(--b-text); }
.crumbs [aria-current] { color: var(--b-text); font-weight: 600; }

.product-head { margin-bottom: var(--s-5); }
.product-head__title { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s-2); }
.product-head__kind { font-size: var(--fs-16); font-weight: 600; letter-spacing: -.005em; color: var(--b-muted); }
.product-head__model { font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; line-height: .95; }
@media (min-width: 768px) { .product-head__model { font-size: var(--fs-48); } }
.product-head__short { margin-top: var(--s-3); color: var(--b-muted); font-size: var(--fs-15); max-width: 56ch; }

.product-head__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3) var(--s-6);
	margin: var(--s-4) 0 0;
	padding-top: var(--s-4);
	border-top: 1px solid var(--b-line);
}
.product-head__facts > div { display: flex; flex-direction: column; gap: 2px; }
.product-head__facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-muted); }
.product-head__facts dd { margin: 0; font-size: var(--fs-15); font-weight: 700; font-variant-numeric: tabular-nums; }
.product-head__facts small { font-weight: 500; color: var(--b-muted); }
.product-head__jump { display: none; }
.steps { scroll-margin-top: calc(var(--header-h) + var(--s-3)); }

/* stacked layout (phone, tablet): name, price and „Konfigūruoti“ first, the tool one tap away */
@media (max-width: 1023.98px) {
	.product-head { display: flex; flex-direction: column; margin-bottom: var(--s-4); }
	.product-head__title { order: 1; margin-top: 0; }
	.product-head__row { order: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); padding-block: var(--s-3); border-block: 1px solid var(--b-line); }
	.product-head__short { order: 3; }
	.product-head__row .product-head__facts { margin: 0; padding: 0; border: 0; gap: var(--s-2) var(--s-5); }
	.product-head__jump { display: inline-flex; flex: none; }
	.product-head__jump svg { width: 16px; height: 16px; }
}
@media (max-width: 767.98px) {
	.product-head__model { font-size: 2.25rem; }
	.product-head__facts > div:not(.product-head__fact--price) { display: none; }
	.product-head__short { font-size: var(--fs-14); }
}

/* main photo: Woo's gallery classes stay so its variation JS can swap the image */
.woocommerce-product-gallery { opacity: 1 !important; }
.gallery-main {
	position: relative;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius-lg);
	background: var(--b-white);
	overflow: hidden;
}
@media (max-width: 767.98px) { .gallery-main { aspect-ratio: 3 / 2; } }
@media (min-width: 1024px) { .gallery-main { aspect-ratio: 1 / 1; } }

.gallery-main .woocommerce-product-gallery__wrapper, .gallery-main .woocommerce-product-gallery__image, .gallery-main .woocommerce-product-gallery__image--placeholder { width: 100%; height: 100%; margin: 0; }
.gallery-main .woocommerce-product-gallery__image a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 5%; transition: opacity .2s var(--ease); }
.gallery-main img.is-fading { opacity: 0; }
.gallery-main .placeholder-sofa { position: absolute; inset: 0; }

.photo-swatch {
	position: absolute;
	right: var(--s-3); bottom: var(--s-3);
	z-index: 2;
	width: 84px;
	padding: 6px 6px 7px;
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius);
	background: var(--b-white);
	box-shadow: var(--b-shadow);
	text-align: center;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.photo-swatch.is-visible { opacity: 1; transform: none; }
.photo-swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.photo-swatch span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 5px; font-size: 11px; font-weight: 700; line-height: 1.25; overflow: hidden; }
@media (min-width: 768px) { .photo-swatch { width: 104px; right: var(--s-4); bottom: var(--s-4); } }

.thumbs { margin-top: var(--s-3); }
.thumbs__label { font-size: var(--fs-12); color: var(--b-muted); margin-bottom: var(--s-2); }
.thumbs__row { display: flex; gap: var(--s-2); overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.thumbs__row button {
	flex: none;
	width: 60px; height: 60px;
	padding: 0;
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius);
	background: var(--b-white);
	overflow: hidden;
	transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.thumbs__row button img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.thumbs__row button:hover { border-color: var(--b-line-strong); }
.thumbs__row button.is-active { border-color: var(--b-accent); box-shadow: inset 0 0 0 1px var(--b-accent); }
@media (max-width: 767.98px) {
	.thumbs { margin-top: var(--s-2); }
	.thumbs__label { margin-bottom: 6px; }
	.thumbs__row { gap: 6px; padding-bottom: 2px; }
	.thumbs__row button { width: 50px; height: 50px; }
}

/* steps: one card per decision, numbered in visual order by app.js */
.steps { display: flex; flex-direction: column; gap: var(--s-3); }
.steps form.cart, .single_variation_wrap { display: flex; flex-direction: column; gap: var(--s-3); }
.single_variation_wrap > .woocommerce-variation { display: none !important; }

.step, .mk-group {
	position: relative;
	margin: 0;
	padding: var(--s-4);
	min-width: 0;
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius-lg);
	background: var(--b-white);
}
@media (min-width: 768px) { .step, .mk-group { padding: 20px var(--s-5) var(--s-5); } }

.step__head, .mk-group > .mk-group__label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px var(--s-3);
	float: none;
	width: 100%;
	margin: 0 0 var(--s-4);
	padding: 0;
	font-size: var(--fs-16);
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.3;
}

fieldset.mk-group > legend.mk-group__label { float: left; }
fieldset.mk-group > legend.mk-group__label ~ * { clear: both; }
.mk-group::after { content: ""; display: table; clear: both; }

.step__num, .mk-group > .mk-group__label[data-konf-num]::before {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--b-accent);
	color: var(--b-white);
	font-size: var(--fs-13);
	font-weight: 800;
	letter-spacing: 0;
}
.mk-group > .mk-group__label[data-konf-num]::before { content: attr(data-konf-num); }
.step__title { font-weight: 800; }

.mk-required { color: var(--b-signal-text); font-weight: 700; }

.step__picked, .mk-group__picked {
	flex-basis: 100%;
	padding-left: 38px;
	font-size: var(--fs-13);
	font-weight: 500;
	letter-spacing: 0;
	color: var(--b-muted);
}
.step__picked:empty, .mk-group__picked:empty { display: none; }
.step__picked strong, .mk-group__picked strong { color: var(--b-text); font-weight: 700; }
.mk-group__picked .badge-signal { margin-left: 4px; vertical-align: 1px; }

@media (min-width: 640px) {
	.step__picked, .mk-group__picked { flex-basis: auto; margin-left: auto; padding-left: 0; text-align: right; }
}

/* version cards (Woo attribute) */
.variations { display: none; }
.mk-single .step--version, .konf-single .step--version { display: none; }

.version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }

.version-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--s-3);
	min-width: 0;
	padding: 8px 34px 8px 8px;
	border: 1px solid var(--b-line-strong);
	border-radius: var(--b-radius);
	background: var(--b-white);
	cursor: pointer;
	transition: border-color .12s var(--ease), background .12s var(--ease), box-shadow .12s var(--ease);
}
.version-card:hover { border-color: var(--b-accent); }
.version-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.version-card:has(input:checked) { border-color: var(--b-accent); box-shadow: inset 0 0 0 1px var(--b-accent); background: var(--b-surface); }
.version-card:has(input:focus-visible) { box-shadow: var(--b-focus); }

.version-card__img {
	flex: none;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	border-radius: 4px;
	background: var(--b-white);
	border: 1px solid var(--b-line);
	overflow: hidden;
	color: var(--b-accent);
}
.version-card__img img { width: 100%; height: 100%; object-fit: contain; }
.version-card__img--code { background: var(--b-surface); }
.version-card:has(input:checked) .version-card__img--code { background: var(--b-white); }
.version-card__code { font-size: var(--fs-14); font-weight: 800; letter-spacing: .02em; text-align: center; line-height: 1.1; padding: 0 4px; }
.version-card__img .sofa-plan { width: 52px; height: 52px; }

.version-card__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.version-card__name { font-size: var(--fs-14); font-weight: 600; line-height: 1.3; }
.version-card__name b { font-weight: 800; margin-right: 4px; }
.version-card__price { font-size: var(--fs-13); font-weight: 700; color: var(--b-muted); font-variant-numeric: tabular-nums; }
.version-card:has(input:checked) .version-card__price { color: var(--b-text); }
.version-card__tick {
	position: absolute; top: 50%; right: 10px;
	width: 18px; height: 18px; margin-top: -9px;
	border-radius: 50%;
	background: var(--b-accent); color: var(--b-white);
	display: none; place-items: center;
}
.version-card__tick svg { width: 11px; height: 11px; stroke-width: 2.6; }
.version-card:has(input:checked) .version-card__tick { display: grid; }

/* mk-demo-core option markup, styled to this concept; visual order set here */
.mk-options { display: flex; flex-direction: column; gap: var(--s-3); }
.mk-set { display: contents; }
.mk-set[hidden] { display: none; }

.mk-options [data-mk-group="fabric_type"] { order: 1; }
.mk-options [data-mk-group="fabric"] { order: 2; }
.mk-options [data-mk-group="wood_colour"] { order: 3; }
.mk-options [data-mk-group="height"], .mk-options [data-mk-group="legs"], .mk-options [data-mk-group="back"], .mk-options [data-mk-group="corner_side"], .mk-options [data-mk-group="leg_colour"] { order: 4; }
.mk-options [data-mk-group="handle"], .mk-options [data-mk-group="nails"], .mk-options [data-mk-group="tufting"], .mk-options [data-mk-group="nail_pattern"], .mk-options [data-mk-group="base"], .mk-options [data-mk-group="shelf"] { order: 5; }
.mk-options .mk-group--text { order: 6; }
.mk-options .mk-message { order: 8; }
.mk-options .mk-summary, .mk-options .mk-price { order: 9; }

.mk-group__help { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; margin: 0; object-fit: cover; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: var(--b-white); }
.mk-group:has(.mk-group__help) > .mk-group__label { padding-right: 60px; }
@media (min-width: 768px) { .mk-group__help { top: 16px; right: 16px; width: 56px; height: 56px; } .mk-group:has(.mk-group__help) > .mk-group__label { padding-right: 68px; } }
.mk-group__note { display: block; clear: both; margin-top: var(--s-3); font-size: var(--fs-13); color: var(--b-muted); }
.mk-message { margin: 0; padding: 10px 14px; border-radius: var(--b-radius); background: var(--b-error-soft); color: var(--b-error); font-size: var(--fs-14); font-weight: 600; }
.mk-message[hidden] { display: none; }

.mk-choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.mk-choice {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	min-height: 42px;
	padding: 6px 14px;
	border: 1px solid var(--b-line-strong);
	border-radius: 999px;
	background: var(--b-white);
	font-size: var(--fs-14);
	font-weight: 500;
	line-height: 1.25;
	cursor: pointer;
	transition: border-color .12s var(--ease), background .12s var(--ease), box-shadow .12s var(--ease), color .12s var(--ease);
}
.mk-choice:hover { border-color: var(--b-accent); }
.mk-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mk-choice:has(input:checked) { border-color: var(--b-accent); background: var(--b-accent); color: var(--b-white); }
.mk-choice:has(input:focus-visible) { box-shadow: var(--b-focus); }
.mk-choice:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.mk-choice__label { font-weight: 600; }
.mk-choice__delta { font-size: var(--fs-13); font-weight: 600; color: var(--b-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-choice:has(input:checked) .mk-choice__delta { color: rgba(255, 255, 255, .72); }

.mk-choice__media { flex: none; width: 34px; height: 34px; margin-left: -8px; border-radius: 50%; overflow: hidden; background: var(--b-surface); }
.mk-choice__media img { width: 100%; height: 100%; object-fit: cover; }
.mk-choice__chip { flex: none; width: 20px; height: 20px; margin-left: -4px; border-radius: 50%; background: var(--mk-chip, #ccc); border: 1px solid rgba(20, 20, 20, .18); }
.mk-choice__chip[data-mk-approx="1"] { border-style: dashed; }

/* image pills (handle, nails, tufting, nail pattern, back, leg finish): square media, tile layout */
.mk-group--handle .mk-choices, .mk-group--nails .mk-choices, .mk-group--tufting .mk-choices, .mk-group--back .mk-choices, .mk-group--leg_colour .mk-choices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: var(--s-2);
}
.mk-group--handle .mk-choice, .mk-group--nails .mk-choice, .mk-group--tufting .mk-choice, .mk-group--back .mk-choice, .mk-group--leg_colour .mk-choice {
	min-height: 60px;
	padding: 6px 10px 6px 6px;
	border-radius: var(--b-radius);
}
.mk-group--handle .mk-choice__media, .mk-group--nails .mk-choice__media, .mk-group--tufting .mk-choice__media, .mk-group--back .mk-choice__media, .mk-group--leg_colour .mk-choice__media {
	width: 46px; height: 46px; margin: 0; border-radius: 4px; background: var(--b-white);
}
.mk-group--handle .mk-choice--text, .mk-group--nails .mk-choice--text, .mk-group--tufting .mk-choice--text, .mk-group--back .mk-choice--text, .mk-group--leg_colour .mk-choice--text { padding-left: 14px; }
.mk-group--handle .mk-choice--chip .mk-choice__chip, .mk-group--nails .mk-choice--chip .mk-choice__chip, .mk-group--leg_colour .mk-choice--chip .mk-choice__chip { width: 46px; height: 46px; margin: 0; border-radius: 4px; }
.mk-group--tufting .mk-choice__label { white-space: normal; font-size: var(--fs-13); }
.mk-group--handle .mk-choice:has(input:checked), .mk-group--nails .mk-choice:has(input:checked), .mk-group--tufting .mk-choice:has(input:checked), .mk-group--back .mk-choice:has(input:checked), .mk-group--leg_colour .mk-choice:has(input:checked) {
	background: var(--b-surface);
	color: var(--b-text);
	box-shadow: inset 0 0 0 1px var(--b-accent);
}
.mk-group--handle .mk-choice:has(input:checked) .mk-choice__delta, .mk-group--nails .mk-choice:has(input:checked) .mk-choice__delta, .mk-group--tufting .mk-choice:has(input:checked) .mk-choice__delta, .mk-group--back .mk-choice:has(input:checked) .mk-choice__delta, .mk-group--leg_colour .mk-choice:has(input:checked) .mk-choice__delta { color: var(--b-text); }
.mk-choice__label + .mk-choice__delta { margin-left: auto; }

/* nail pattern: image cards (picture, code, description) with a zoom button outside the label */
.mk-group--nail_pattern .mk-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); }
.np-card { position: relative; display: flex; min-width: 0; }
.mk-choice.np-card__choice {
	flex: 1;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-height: 0;
	padding: 0;
	border-radius: var(--b-radius);
	overflow: hidden;
}
.np-card__media { display: flex; align-items: center; justify-content: center; flex: none; height: 112px; padding: 8px; background: var(--b-white); border-bottom: 1px solid var(--b-line); color: var(--b-line-strong); overflow: hidden; }
.np-card__media img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 768px) { .np-card__media { height: 140px; } }
/* phone: one swipeable row instead of a four-row wall */
@media (max-width: 639.98px) {
	.mk-group--nail_pattern .mk-choices {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 44%;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scroll-padding-inline: var(--s-4);
		margin-inline: calc(-1 * var(--s-4));
		padding: 2px var(--s-4) 6px;
		scrollbar-width: thin;
	}
	.mk-group--nail_pattern .np-card { scroll-snap-align: start; }
}
.np-card__media svg { width: 34px; height: 34px; }
.np-card__text { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px 10px; }
.np-card .mk-choice__label { font-size: var(--fs-13); font-weight: 500; line-height: 1.35; white-space: normal; }
.np-card .mk-choice__label b { display: block; font-size: var(--fs-14); font-weight: 800; letter-spacing: .01em; }
.np-card .mk-choice__delta { margin-left: auto; }
.mk-choice.np-card__choice:has(input:checked) { background: var(--b-surface); color: var(--b-text); border-color: var(--b-accent); box-shadow: inset 0 0 0 1px var(--b-accent); }
.mk-choice.np-card__choice:has(input:checked) .mk-choice__delta { color: var(--b-text); }
.mk-choice.np-card__choice:has(input:checked)::after {
	content: "";
	position: absolute; left: 6px; top: 6px;
	width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid var(--b-white);
	background: var(--b-accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 5.2l2.2 2.2L8.2 3' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center;
}
.np-card__zoom {
	position: absolute; top: 6px; right: 6px;
	display: grid; place-items: center;
	width: 32px; height: 32px; padding: 0;
	border: 1px solid var(--b-line-strong); border-radius: 50%;
	background: rgba(255, 255, 255, .94); color: var(--b-text);
	cursor: zoom-in;
	transition: border-color .12s var(--ease), background .12s var(--ease);
}
.np-card__zoom svg { width: 16px; height: 16px; }
.np-card__zoom:hover { border-color: var(--b-accent); background: var(--b-white); }

/* group help picture (handle ring, nail strip, ROYAL legs): a button that opens it large */
.mk-help-btn {
	position: absolute; top: 12px; right: 12px;
	width: 52px; height: 52px; padding: 0;
	border: 1px solid var(--b-line); border-radius: var(--b-radius);
	background: var(--b-white);
	overflow: hidden;
	cursor: zoom-in;
	transition: border-color .12s var(--ease);
}
.mk-help-btn:hover { border-color: var(--b-accent); }
.mk-help-btn img.mk-group__help { position: static; width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; }
.mk-help-btn__icon { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--b-accent); color: var(--b-white); }
.mk-help-btn__icon svg { width: 11px; height: 11px; }
/* From 768 px the group label is one line: a 44 px button ends above the first row of choices instead of covering its corner. */
@media (min-width: 768px) { .mk-help-btn { top: 12px; right: 16px; width: 44px; height: 44px; } .mk-group:has(.mk-help-btn) > .mk-group__label { padding-right: 60px; } }

/* wood colour: 40 px round swatches, label on hover, chosen label in the picked line */
.mk-group--wood_colour .mk-choices { gap: 10px; }
.mk-group--wood_colour .mk-choice {
	width: 44px; height: 44px; min-height: 0;
	padding: 2px;
	border-radius: 50%;
	justify-content: center;
	border-color: var(--b-line);
}
.mk-group--wood_colour .mk-choice:has(input:checked) { background: var(--b-white); color: var(--b-text); box-shadow: 0 0 0 2px var(--b-white), 0 0 0 4px var(--b-accent); border-color: transparent; }
.mk-group--wood_colour .mk-choice__media, .mk-group--wood_colour .mk-choice__chip { width: 100%; height: 100%; margin: 0; border-radius: 50%; }
.mk-group--wood_colour .mk-choice__chip[data-mk-approx="1"]::after { content: "~"; display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: 13px; }
.mk-group--wood_colour .mk-choice__label, .mk-group--wood_colour .mk-choice__delta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mk-group--wood_colour .mk-choice::after {
	content: attr(data-mk-title);
	position: absolute;
	left: 50%; bottom: calc(100% + 8px);
	transform: translateX(-50%);
	padding: 5px 9px;
	border-radius: 4px;
	background: var(--b-accent);
	color: var(--b-white);
	font-size: var(--fs-12);
	font-weight: 600;
	white-space: nowrap;
	display: none;
	pointer-events: none;
	z-index: 3;
}
@media (hover: hover) {
	.mk-group--wood_colour .mk-choice:hover::after { display: block; }
}
.mk-group--wood_colour .mk-choice[data-mk-delta]:not([data-mk-delta="0"])::before {
	content: "";
	position: absolute;
	top: -1px; right: -1px;
	width: 10px; height: 10px;
	border: 2px solid var(--b-white);
	border-radius: 50%;
	background: var(--b-accent);
}

/* fabric tiers, tabs and swatches */
.mk-tiers { display: flex; flex-direction: column; gap: var(--s-4); }
.mk-tier { padding-top: var(--s-4); border-top: 1px dashed var(--b-line-strong); }
.mk-tier:first-child { padding-top: 0; border-top: 0; }
.mk-tier[hidden] { display: none; }
.mk-tier__label { margin: 0 0 var(--s-2); font-size: var(--fs-13); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--b-muted); }
.mk-tier__badge {
	display: inline-flex; align-items: center; gap: 6px;
	width: fit-content;
	margin: 0 0 var(--s-3);
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--b-signal-soft); color: var(--b-signal-text);
	font-size: var(--fs-12); font-weight: 700; letter-spacing: .02em;
}
.mk-tier__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* the „už papildomą mokestį“ tier: closed under the base tier, opens in place */
.mk-tier.mk-tier--more { padding-top: 0; border-top: 0; }
.tier-more__summary {
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
	min-height: 50px; padding: 10px 12px 10px 14px;
	border: 1px solid var(--b-line-strong); border-radius: var(--b-radius);
	background: var(--b-surface);
	font-size: var(--fs-14); font-weight: 700; line-height: 1.3;
	list-style: none; cursor: pointer;
	transition: border-color .12s var(--ease), background .12s var(--ease);
}
.tier-more__summary::-webkit-details-marker { display: none; }
.tier-more__summary::marker { content: ""; }
.tier-more__summary:hover { border-color: var(--b-accent); }
.tier-more__summary:focus-visible { box-shadow: var(--b-focus); }
.tier-more__count { font-weight: 500; color: var(--b-muted); font-variant-numeric: tabular-nums; }
.tier-more__chev { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border: 1px solid var(--b-line-strong); border-radius: 50%; background: var(--b-white); transition: transform .15s var(--ease); }
.tier-more__chev svg { width: 14px; height: 14px; }
.tier-more[open] .tier-more__chev { transform: rotate(45deg); }
.tier-more[open] > .tier-more__summary { margin-bottom: var(--s-3); background: var(--b-white); }

.mk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-3); }
.mk-tabs [role="tab"] {
	min-height: 34px;
	padding: 4px 14px;
	border: 1px solid var(--b-line-strong);
	border-radius: 999px;
	background: var(--b-white);
	font-size: var(--fs-13);
	font-weight: 600;
	color: var(--b-muted);
	transition: all .12s var(--ease);
}
.mk-tabs [role="tab"]:hover { color: var(--b-text); border-color: var(--b-accent); }
.mk-tabs [role="tab"][aria-selected="true"] { background: var(--b-accent); border-color: var(--b-accent); color: var(--b-white); }
.mk-tabs [role="tab"].has-pick::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: currentColor; vertical-align: 2px; }

.mk-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mk-swatches[hidden] { display: none; }
@media (min-width: 480px) { .mk-swatches { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 640px) { .mk-swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; } }

.mk-swatch {
	position: relative;
	display: block;
	aspect-ratio: 1;
	padding: 0;
	border: 1px solid rgba(20, 20, 20, .08);
	border-radius: 6px;
	background: var(--b-surface);
	overflow: visible;
	cursor: pointer;
	transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.mk-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mk-swatch img, .mk-swatch .mk-swatch__chip { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; background: var(--mk-chip, transparent); }
.mk-swatch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (hover: hover) { .mk-swatch:hover { transform: scale(1.06); z-index: 2; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); } }
.mk-swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--b-white), 0 0 0 4px var(--b-accent); border-color: transparent; z-index: 1; transform: none; }
.mk-swatch:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--b-white), 0 0 0 4px var(--b-accent), var(--b-focus); }
.mk-swatch:has(input:checked)::after {
	content: "";
	position: absolute; right: -6px; top: -6px;
	width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid var(--b-white);
	background: var(--b-accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 5.2l2.2 2.2L8.2 3' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center;
}

.fabric-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--b-line); font-size: var(--fs-13); color: var(--b-muted); }
.fabric-tools button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--b-text); font-weight: 700; font-size: var(--fs-13); }
.fabric-tools button svg { width: 16px; height: 16px; }
.fabric-tools button:hover { text-decoration: underline; text-underline-offset: 3px; }
.fabric-tools button[disabled] { color: var(--b-muted); cursor: default; text-decoration: none; }

/* text groups (notes), collapsed by default */
.mk-group--text { padding-block: var(--s-3); }
.mk-group--text > .mk-group__label { margin-bottom: 0; cursor: pointer; }
.mk-group--text > .mk-group__label::after { content: "+"; margin-left: auto; font-size: 20px; font-weight: 500; line-height: 1; color: var(--b-muted); }
.mk-group--text.is-open > .mk-group__label::after { content: "−"; }
.mk-group--text.is-open > .mk-group__label { margin-bottom: var(--s-3); }
.mk-group--text:not(.is-open) > input, .mk-group--text:not(.is-open) > textarea, .mk-group--text:not(.is-open) > .mk-group__note { display: none; }
.mk-group--text input[type="text"] { width: 100%; }

/* the plugin's own summary and price stay hidden: the theme has its own */
.mk-summary, .mk-price { display: none !important; }

/* summary card: a dark receipt at the end of the steps */
.summary-card {
	position: relative;
	padding: var(--s-5);
	border-radius: var(--b-radius-lg);
	background: #161616;
	color: rgba(255, 255, 255, .7);
}

.summary-card__title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); font-size: var(--fs-16); font-weight: 800; color: var(--b-white); }
.summary-card__title small { font-size: var(--fs-12); font-weight: 600; color: rgba(255, 255, 255, .5); }
/* one column grid for all rows (subgrid), so every value starts on the same line whatever the delta width */
.summary-list { list-style: none; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; column-gap: var(--s-3); margin-bottom: var(--s-3); font-size: var(--fs-14); }
.summary-list:empty { display: none; }
.summary-list li { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; grid-template-columns: subgrid; align-items: center; gap: var(--s-3); padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
/* rows wrap instead of cutting with „…“: on a phone „Standartinis aukštis 98 cm“ must stay readable */
.summary-list li > span:first-child { min-width: 0; color: rgba(255, 255, 255, .55); line-height: 1.35; overflow-wrap: break-word; }
.summary-list li strong { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; line-height: 1.35; color: var(--b-white); }
.summary-list li strong span { min-width: 0; overflow-wrap: break-word; }
/* phone: the „priemoka tikslinama“ badge goes under the fabric name, so the amount column stays narrow */
@media (max-width: 767px) {
	.summary-list li em:has(.badge-signal) { grid-column: 2 / -1; justify-self: start; text-align: left; }
}
.summary-list li em { font-style: normal; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.summary-list li img, .summary-list li .chip { flex: none; width: 20px; height: 20px; border-radius: 4px; object-fit: cover; background: var(--mk-chip, #444); }
.summary-list li .badge-signal { padding: 1px 8px; font-size: 11px; background: rgba(200, 96, 32, .2); color: #F2A774; }
.summary-list li.is-missing strong { color: #F2A774; font-weight: 600; }
.summary-list__empty { color: rgba(255, 255, 255, .6); font-size: var(--fs-14); margin-bottom: var(--s-3); }
.summary-list__empty:empty { display: none; }

.price-lines { display: grid; gap: 6px; margin: 0; padding-top: var(--s-2); font-size: var(--fs-14); }
.price-lines > div { display: flex; justify-content: space-between; gap: var(--s-3); }
.price-lines dt { color: rgba(255, 255, 255, .55); }
.price-lines dd { margin: 0; font-weight: 600; color: var(--b-white); font-variant-numeric: tabular-nums; }
.price-lines .price-lines__total { align-items: baseline; margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, .14); }
.price-lines .price-lines__total dt { color: var(--b-white); font-weight: 700; font-size: var(--fs-16); }
.price-lines .price-lines__total dd { display: inline-block; font-size: var(--fs-28); font-weight: 800; letter-spacing: -.03em; line-height: 1; transform-origin: right center; }
@media (min-width: 768px) { .price-lines .price-lines__total dd { font-size: var(--fs-36); } }
.price-lines__vat { margin-top: 2px; text-align: right; font-size: var(--fs-12); color: rgba(255, 255, 255, .5); }

[data-konf-total].is-flash, [data-konf-bar-total].is-flash { color: var(--b-signal); animation: priceflash .25s var(--ease); }
.summary-card [data-konf-total].is-flash { color: #F08A45; }
@keyframes priceflash { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

.summary-card__missing { margin-top: var(--s-3); font-size: var(--fs-13); color: #F2A774; font-weight: 600; }
.summary-card__missing[hidden] { display: none; }
.summary-card__note { margin-top: var(--s-3); font-size: var(--fs-12); color: rgba(255, 255, 255, .5); }
.summary-card__note .notice-tiksl { background: rgba(200, 96, 32, .16); border-color: rgba(240, 160, 106, .55); color: #F2A774; font-size: 11px; }

.summary-card__actions { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.summary-card .single_add_to_cart_button { flex: 1; min-height: 52px; background: var(--b-white); border-color: var(--b-white); color: #161616; font-size: var(--fs-16); font-weight: 700; }
.summary-card .single_add_to_cart_button:hover { background: var(--b-line); border-color: var(--b-line); color: #161616; }
.summary-card .single_add_to_cart_button:disabled, .summary-card .single_add_to_cart_button.disabled, .summary-card .single_add_to_cart_button.mk-disabled { background: rgba(255, 255, 255, .14); border-color: transparent; color: rgba(255, 255, 255, .6); cursor: not-allowed; }
.summary-card .quantity { background: transparent; border-color: rgba(255, 255, 255, .22); }
.summary-card .quantity button { background: transparent; color: var(--b-white); }
.summary-card .quantity button:hover { background: rgba(255, 255, 255, .08); }
.summary-card .quantity input.qty { background: transparent; color: var(--b-white); }

.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--b-line-strong); border-radius: var(--b-radius); overflow: hidden; background: var(--b-white); }
.quantity.hidden { display: none; }
.quantity button { width: 40px; border: 0; background: var(--b-white); font-size: 18px; font-weight: 500; }
.quantity button:hover { background: var(--b-surface); }
.quantity input.qty { width: 44px; min-height: 46px; padding: 0; border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.quantity input.qty:focus-visible { box-shadow: none; }
.quantity input.qty::-webkit-inner-spin-button, .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; }

/* sticky bar: price and button while the summary card is off screen */
.sticky-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 40;
	padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--b-line);
	box-shadow: var(--b-shadow-bar);
	transform: translateY(110%);
	visibility: hidden;
	transition: transform .25s var(--ease), visibility 0s linear .25s;
}
.sticky-bar.is-visible { transform: none; visibility: visible; transition: transform .25s var(--ease); }
.sticky-bar__inner { display: flex; align-items: center; gap: var(--s-4); }
.sticky-bar__product { display: none; align-items: center; gap: var(--s-3); min-width: 0; margin-right: auto; }
.sticky-bar__swatch img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; border: 1px solid var(--b-line); }
.sticky-bar__swatch[hidden] { display: none; }
.sticky-bar__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sticky-bar__text strong { font-size: var(--fs-16); font-weight: 800; }
.sticky-bar__text small { font-size: var(--fs-13); color: var(--b-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
.sticky-bar__price { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.sticky-bar__price small { font-size: var(--fs-12); color: var(--b-muted); }
.sticky-bar__price strong { display: inline-block; font-size: var(--fs-22); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transform-origin: left center; }
.sticky-bar__btn { min-height: 46px; }
@media (min-width: 768px) {
	.sticky-bar__product { display: flex; }
	.sticky-bar__price { margin-right: 0; text-align: right; }
	.sticky-bar__btn { min-width: 220px; }
}

/* below the configurator: specs, description, tiksl */
.product-info { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--b-line); }
.product-info__grid { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .product-info__grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }
.product-info h2 { font-size: var(--fs-22); letter-spacing: -.02em; margin-bottom: var(--s-4); }
.product-info .prose { color: #3d3d3b; font-size: var(--fs-16); max-width: 64ch; }
.product-info .prose p { margin-bottom: .9em; }
.spec-table { width: 100%; font-size: var(--fs-15); }
.spec-table th, .spec-table td { padding: 11px 0; border-bottom: 1px solid var(--b-line); text-align: left; vertical-align: top; }
.spec-table th { width: 44%; padding-right: var(--s-3); font-weight: 500; color: var(--b-muted); }
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-table__caption th { padding-top: 0; font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-text); }
.spec-note { margin-top: var(--s-4); font-size: var(--fs-13); color: var(--b-muted); }
.tiksl-box { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); border: 1px dashed var(--b-signal); border-radius: var(--b-radius-lg); background: #FFFAF6; }
.tiksl-box h3 { margin-bottom: var(--s-3); font-size: var(--fs-12); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--b-signal-text); }
.tiksl-list { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tiksl-list .notice-tiksl { background: transparent; border: 0; padding: 0; font-size: var(--fs-14); font-weight: 600; }

/* ------------------------------------------------------------------
   13. Cart
   ------------------------------------------------------------------ */
.cart-layout { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-7); } }

.cart-lines { list-style: none; display: flex; flex-direction: column; }
.cart-line {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: var(--s-3) var(--s-4);
	padding: var(--s-4) 0;
	border-top: 1px solid var(--b-line);
}
.cart-line:last-child { border-bottom: 1px solid var(--b-line); }
.cart-line__thumb { width: 84px; }
.cart-line__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-line__main { min-width: 0; }
.cart-line__name { font-size: var(--fs-16); font-weight: 700; }
.cart-line__name a:hover { text-decoration: underline; }
.cart-line__unit { font-size: var(--fs-13); color: var(--b-muted); margin-top: 2px; }
.cart-line__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cart-line__sub { font-weight: 700; font-size: var(--fs-16); font-variant-numeric: tabular-nums; }
.cart-line__remove { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; font-size: var(--fs-13); color: var(--b-muted); }
.cart-line__remove:hover { color: var(--b-error); text-decoration: none; }

@media (min-width: 768px) {
	.cart-line { grid-template-columns: 96px minmax(0, 1fr) auto; }
	.cart-line__thumb { width: 96px; }
	.cart-line__foot { grid-column: 3; flex-direction: column; align-items: flex-end; justify-content: flex-start; min-width: 140px; }
}

dl.variation, .cart-line dl.variation {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 3px 10px;
	margin: var(--s-2) 0 0;
	font-size: var(--fs-13);
}
dl.variation dt { color: var(--b-muted); font-weight: 500; }
dl.variation dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
dl.variation dd p { margin: 0; display: inline; }
dl.variation dd img { width: 20px; height: 20px; border-radius: 3px; object-fit: cover; border: 1px solid var(--b-line); display: inline-block; vertical-align: middle; }

.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); }
.cart-actions .coupon { display: flex; gap: var(--s-2); }
.cart-actions .coupon input { max-width: 180px; }

.cart_totals, .totals-card {
	padding: var(--s-5);
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius-lg);
	background: var(--b-surface);
}
.cart_totals h2 { font-size: var(--fs-18); margin-bottom: var(--s-3); }
.cart_totals table th, .cart_totals table td { padding: 8px 0; text-align: left; vertical-align: top; font-size: var(--fs-14); border-bottom: 1px solid var(--b-line); }
.cart_totals table th { font-weight: 500; color: var(--b-muted); padding-right: var(--s-3); }
.cart_totals table td { text-align: right; font-weight: 600; }
.cart_totals .order-total th, .cart_totals .order-total td { font-size: var(--fs-16); font-weight: 800; color: var(--b-text); border-bottom: 0; padding-top: var(--s-3); }
.cart_totals .order-total td .includes_tax, .order-total .includes_tax { display: block; font-size: var(--fs-12); font-weight: 500; color: var(--b-muted); }
.cart_totals .woocommerce-shipping-totals td { text-align: left; }
.cart_totals .woocommerce-shipping-totals ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cart_totals .woocommerce-shipping-totals li { display: flex; align-items: flex-start; gap: 8px; }
.cart_totals .woocommerce-shipping-totals label { font-weight: 500; font-size: var(--fs-14); }
.cart_totals .woocommerce-shipping-destination { font-size: var(--fs-13); color: var(--b-muted); margin-top: var(--s-2); }
.cart_totals .shipping-calculator-button { font-size: var(--fs-13); }
.cart_totals .shipping-calculator-form { display: none; }
.wc-proceed-to-checkout { margin-top: var(--s-4); }
.wc-proceed-to-checkout .button { width: 100%; }
.cart-empty-wrap { padding: var(--s-8) 0; text-align: center; }
.cart-empty-wrap .btn { margin-top: var(--s-4); }
.return-to-shop { margin-top: var(--s-4); }
.cart-note { font-size: var(--fs-13); color: var(--b-muted); margin-top: var(--s-3); }

/* ------------------------------------------------------------------
   14. Forms (checkout, quote, contact)
   ------------------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], textarea, select.input, .select2-container .select2-selection--single, select {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--b-line-strong);
	border-radius: var(--b-radius);
	background: var(--b-white);
	font-size: var(--fs-15);
	transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--b-accent); box-shadow: var(--b-focus); outline: none; }
input::placeholder, textarea::placeholder { color: #9a9a97; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--b-accent); width: 18px; height: 18px; }

.form-row, .field { margin-bottom: var(--s-3); }
.form-row label, .field label { display: block; margin-bottom: 6px; font-size: var(--fs-13); font-weight: 600; }
.required, .field .req { color: var(--b-signal-text); text-decoration: none; }
.form-row.woocommerce-invalid input, .field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--b-error); }
.field__error { display: block; margin-top: 4px; font-size: var(--fs-13); color: var(--b-error); }
.field__error:empty { display: none; }
.form-grid { display: grid; gap: 0 var(--s-4); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full { grid-column: 1 / -1; } }

.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { display: flex; align-items: center; height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.4; padding-left: 0; color: var(--b-text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.select2-dropdown { border-color: var(--b-line-strong); border-radius: var(--b-radius); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--b-accent); }

/* ------------------------------------------------------------------
   15. Checkout
   ------------------------------------------------------------------ */
.checkout-layout { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: 7fr 5fr; gap: var(--s-7); } }

.checkout-section { margin-bottom: var(--s-6); }
.checkout-section h3, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { font-size: var(--fs-18); margin-bottom: var(--s-4); }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { display: grid; gap: 0 var(--s-4); }
@media (min-width: 640px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.form-row-wide, .woocommerce-billing-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
}
.form-row.form-row-first, .form-row.form-row-last { width: auto; float: none; }
.woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); font-weight: 500; }
.woocommerce-form__label-for-checkbox input { margin: 0; }
/* The terms checkbox sits in a .form-row, whose label rule is display: block: a hanging indent keeps the box
   apart from the text and the „*“ on the text line. */
.form-row label.woocommerce-form__label-for-checkbox { display: block; position: relative; padding-left: 28px; margin-bottom: 0; font-size: var(--fs-14); font-weight: 500; line-height: 1.45; }
.form-row label.woocommerce-form__label-for-checkbox input { position: absolute; left: 0; top: 1px; }
#ship-to-different-address { font-size: var(--fs-16); }
.woocommerce-input-wrapper { display: block; }
.form-row.konf-hidden-field { display: none !important; }

.order-review-card {
	padding: var(--s-5);
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius-lg);
	background: var(--b-surface);
}
@media (min-width: 1024px) { .order-review-card { position: sticky; top: calc(var(--header-h) + var(--s-4)); } }
#order_review_heading { font-size: var(--fs-18); margin-bottom: var(--s-3); }

.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0; border-bottom: 1px solid var(--b-line); text-align: left; vertical-align: top; font-size: var(--fs-14); }
.woocommerce-checkout-review-order-table thead th { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .08em; color: var(--b-muted); font-weight: 700; }
.woocommerce-checkout-review-order-table .product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: right; font-weight: 600; white-space: nowrap; }
.woocommerce-checkout-review-order-table tfoot th { font-weight: 500; color: var(--b-muted); }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: var(--fs-16); font-weight: 800; color: var(--b-text); border-bottom: 0; padding-top: var(--s-3); }
.woocommerce-checkout-review-order-table .product-name { font-weight: 600; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 500; color: var(--b-muted); }
.woocommerce-checkout-review-order-table dl.variation { display: none; margin-top: 6px; }
.woocommerce-checkout-review-order-table .cart_item.is-open dl.variation { display: grid; }
.config-toggle { display: block; margin-top: 4px; background: none; border: 0; padding: 0; font-size: var(--fs-13); font-weight: 600; color: var(--b-muted); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td { text-align: left; }
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals th { display: none; }
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td { padding-top: var(--s-3); }
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td::before { content: "Pristatymas"; display: block; font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .08em; color: var(--b-muted); font-weight: 700; margin-bottom: 8px; }

ul#shipping_method, .woocommerce-shipping-methods { list-style: none; display: flex; flex-direction: column; gap: 8px; }
ul#shipping_method li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--b-line-strong); border-radius: var(--b-radius); background: var(--b-white); }
ul#shipping_method li:has(input:checked) { border-color: var(--b-accent); box-shadow: inset 0 0 0 1px var(--b-accent); }
ul#shipping_method li input { margin: 2px 0 0; flex: none; }
ul#shipping_method li label { font-size: var(--fs-14); font-weight: 600; line-height: 1.35; cursor: pointer; flex: 1; }
ul#shipping_method li label .woocommerce-Price-amount, ul#shipping_method li label .notice-tiksl { font-weight: 500; }
ul#shipping_method li:only-child label { cursor: default; }
.woocommerce-shipping-destination { font-size: var(--fs-13); color: var(--b-muted); margin-top: var(--s-2); }

#payment { margin-top: var(--s-4); }
#payment .wc_payment_methods { list-style: none; display: flex; flex-direction: column; gap: 8px; }
#payment .wc_payment_method { padding: 12px 14px; border: 1px solid var(--b-line-strong); border-radius: var(--b-radius); background: var(--b-white); }
#payment .wc_payment_method:has(input:checked) { border-color: var(--b-accent); box-shadow: inset 0 0 0 1px var(--b-accent); }
#payment .wc_payment_method > label { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); font-weight: 600; cursor: pointer; }
#payment .wc_payment_method > input { position: absolute; opacity: 0; }
#payment .wc_payment_method > label::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--b-line-strong); background: var(--b-white); flex: none; box-sizing: border-box; }
#payment .wc_payment_method:has(input:checked) > label::before { border: 5px solid var(--b-accent); }
#payment .wc_payment_method > label img { max-height: 24px; margin-left: auto; }
#payment .payment_box { margin-top: 10px; padding: 10px 12px; border-radius: var(--b-radius); background: var(--b-surface); font-size: var(--fs-13); color: var(--b-muted); }
#payment .payment_box p:last-child { margin-bottom: 0; }
/* Card payment set up but not connected yet: a status card, no radio */
#payment .payment-pending { border-style: dashed; background: transparent; color: var(--b-muted); }
#payment .payment-pending__head { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); font-weight: 600; color: var(--b-text); }
#payment .payment-pending__head svg { width: 18px; height: 18px; flex: none; color: var(--b-muted); }
#payment .payment-pending p { margin: 6px 0 0 28px; font-size: var(--fs-13); line-height: 1.45; }
#payment .place-order { margin-top: var(--s-4); }
#payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: var(--s-3); font-size: var(--fs-13); color: var(--b-muted); }
/* The privacy policy and terms links read as links, not as plain words. */
.woocommerce-terms-and-conditions-wrapper a, .woocommerce-privacy-policy-text a { color: var(--b-text); text-decoration: underline; text-underline-offset: 3px; }
#payment .woocommerce-privacy-policy-text p { margin-bottom: var(--s-3); }
#place_order { width: 100%; font-size: var(--fs-16); }
.checkout-note { margin-top: var(--s-3); font-size: var(--fs-13); color: var(--b-muted); }
.checkout-intro { margin-bottom: var(--s-5); }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }
.woocommerce-checkout-payment .wc-stripe-elements-field, .woocommerce-checkout-payment .wc-stripe-upe-element { padding: 10px 12px; border: 1px solid var(--b-line-strong); border-radius: var(--b-radius); background: var(--b-white); }


/* cart and checkout refinements */
.page-hero--shop { padding-block: var(--s-5) var(--s-5); }
.page-hero--shop .flow { margin-bottom: var(--s-3); }
.flow .is-done .flow__num { background: var(--b-surface-2); border-color: var(--b-line-strong); }
.flow .is-done { color: var(--b-text); }

.cart_totals table, .woocommerce-checkout-review-order-table { width: 100%; table-layout: fixed; }
.cart_totals tr.woocommerce-shipping-totals, .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--b-line); }
.cart_totals tr.woocommerce-shipping-totals th, .cart_totals tr.woocommerce-shipping-totals td,
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.cart_totals tr.woocommerce-shipping-totals th { margin-bottom: var(--s-2); font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-muted); }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { padding-top: 0; }
ul#shipping_method { width: 100%; }
.woocommerce-shipping-totals td, ul#shipping_method label { white-space: normal; }
.notice-tiksl { max-width: 100%; white-space: normal; }
ul#shipping_method li { width: 100%; }
.cart_totals ul#shipping_method li { padding: 10px 12px; }
.cart_totals .shipping-calculator-button, .cart_totals .woocommerce-shipping-destination, .woocommerce-checkout-review-order-table .woocommerce-shipping-destination { display: none; }
.woocommerce-checkout-review-order-table td, .woocommerce-checkout-review-order-table th { overflow-wrap: anywhere; }
.woocommerce-checkout-review-order-table .product-total { width: 34%; }
.woocommerce-checkout-review-order-table .product-name { width: 66%; }
.cart_totals .order-total td, .woocommerce-checkout-review-order-table .order-total td { font-variant-numeric: tabular-nums; }

@media (min-width: 640px) {
	.woocommerce-billing-fields__field-wrapper #billing_city_field,
	.woocommerce-billing-fields__field-wrapper #billing_state_field,
	.woocommerce-billing-fields__field-wrapper #billing_postcode_field,
	.woocommerce-billing-fields__field-wrapper #billing_phone_field,
	.woocommerce-shipping-fields__field-wrapper #shipping_city_field,
	.woocommerce-shipping-fields__field-wrapper #shipping_state_field,
	.woocommerce-shipping-fields__field-wrapper #shipping_postcode_field { grid-column: auto; }
}
.checkout-section { min-width: 0; }
.checkout-layout > * { min-width: 0; }
.woocommerce-checkout .woocommerce-info, .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { font-size: var(--fs-14); }
.woocommerce-form-coupon { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); padding: var(--s-4); border: 1px solid var(--b-line); border-radius: var(--b-radius); }
.woocommerce-form-coupon p { margin: 0; }
.woocommerce-form-coupon p:first-child { flex-basis: 100%; font-size: var(--fs-14); color: var(--b-muted); }
.woocommerce-message .wc-forward + .wc-forward { margin-left: var(--s-2); }


/* totals tables as flex rows: robust at any width */
.cart_totals table, .cart_totals tbody, .woocommerce-checkout-review-order-table, .woocommerce-checkout-review-order-table thead, .woocommerce-checkout-review-order-table tbody, .woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
.cart_totals tr, .woocommerce-checkout-review-order-table tr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--b-line); }
.cart_totals tr > *, .woocommerce-checkout-review-order-table tr > * { display: block; padding: 0 !important; border: 0 !important; width: auto !important; }
.woocommerce-checkout-review-order-table .product-name, .cart_totals tr > th { flex: 1 1 0; min-width: 0; }
.woocommerce-checkout-review-order-table .product-total, .cart_totals tr > td { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.cart_totals tr.woocommerce-shipping-totals > th, .cart_totals tr.woocommerce-shipping-totals > td, .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td { flex: 1 1 100%; text-align: left; white-space: normal; }
.cart_totals tr.order-total, .woocommerce-checkout-review-order-table tr.order-total { border-bottom: 0; padding-top: var(--s-3); }
.cart_totals tr.order-total td, .woocommerce-checkout-review-order-table tr.order-total td { white-space: normal; }
.order-total .includes_tax { display: block; margin-top: 2px; white-space: normal; }
.woocommerce-checkout-review-order-table thead tr { padding-top: 0; }

/* ------------------------------------------------------------------
   16. Thank-you page and account
   ------------------------------------------------------------------ */
.verify-email { max-width: 520px; padding-bottom: var(--s-6); }
.verify-email .woocommerce-verify-email { padding: var(--s-5); border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); }
.verify-email .woocommerce-verify-email .button { width: 100%; }
.woocommerce-order > .woocommerce-notice--success:has(+ .verify-email), .woocommerce-thankyou-order-received:has(~ .verify-email) { display: none; }
.thankyou-head { text-align: left; margin-bottom: var(--s-6); padding-top: var(--s-6); }
.thankyou-head .flow { margin-bottom: var(--s-4); }
.thankyou-head h1 { margin-top: var(--s-2); font-size: var(--fs-28); letter-spacing: -.03em; }
@media (min-width: 768px) { .thankyou-head h1 { font-size: var(--fs-48); } }
.flow__num svg { width: 12px; height: 12px; stroke-width: 2.6; }
.woocommerce-order > p, .woocommerce-order > .woocommerce-notice { margin-bottom: var(--s-4); }
.thankyou-head p { margin-top: var(--s-3); color: var(--b-muted); font-size: var(--fs-16); }
.order-overview { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-6); }
@media (min-width: 640px) { .order-overview { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.order-overview li { padding: var(--s-3) var(--s-4); border: 1px solid var(--b-line); border-radius: var(--b-radius); background: var(--b-surface); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .08em; color: var(--b-muted); font-weight: 700; }
.order-overview li strong { display: block; margin-top: 4px; font-size: var(--fs-16); text-transform: none; letter-spacing: -.01em; color: var(--b-text); font-weight: 700; }
.woocommerce-order-details, .woocommerce-customer-details, .woocommerce-bacs-bank-details { margin-bottom: var(--s-6); }
.woocommerce-order-details__title, .woocommerce-column__title, .wc-bacs-bank-details-heading { font-size: var(--fs-18); margin-bottom: var(--s-3); }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 10px 0; border-bottom: 1px solid var(--b-line); text-align: left; vertical-align: top; font-size: var(--fs-14); }
.woocommerce-table--order-details thead th { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .08em; color: var(--b-muted); }
.woocommerce-table--order-details .product-total, .woocommerce-table--order-details tfoot td { text-align: right; font-weight: 600; }
/* order details as flex rows (like the cart totals): the item column keeps its width, long values wrap on the right */
.woocommerce-table--order-details, .woocommerce-table--order-details thead, .woocommerce-table--order-details tbody, .woocommerce-table--order-details tfoot { display: block; width: 100%; }
.woocommerce-table--order-details tr { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--b-line); }
.woocommerce-table--order-details tr > * { display: block; padding: 0 !important; border: 0 !important; }
.woocommerce-table--order-details .product-name, .woocommerce-table--order-details tfoot th { flex: 1 1 0; min-width: 0; }
.woocommerce-table--order-details .product-total { flex: none; white-space: nowrap; }
.woocommerce-table--order-details tfoot td { flex: 0 1 auto; max-width: 70%; }
.woocommerce-table--order-details tfoot tr:last-child { border-bottom: 0; }
.woocommerce-table--order-details tfoot th { font-weight: 500; color: var(--b-muted); }
/* the total row, wherever it sits: a customer note („Pastaba“) can be the last row (mk-demo-core marks the total) */
.woocommerce-table--order-details tfoot tr:has(.mk-order-total) th, .woocommerce-table--order-details tfoot tr:has(.mk-order-total) td { font-weight: 800; color: var(--b-text); font-size: var(--fs-16); }
.woocommerce-table--order-details .wc-item-meta { list-style: none; margin-top: 6px; font-size: var(--fs-13); color: var(--b-muted); display: grid; gap: 2px; }
.woocommerce-table--order-details .wc-item-meta p { display: inline; margin: 0; }
.woocommerce-table--order-details .wc-item-meta strong { font-weight: 500; overflow-wrap: anywhere; }
.woocommerce-table--order-details .wc-item-meta li { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 8px; }
.woocommerce-table--order-details .wc-item-meta img { display: none; }
.woocommerce-customer-details address { font-style: normal; font-size: var(--fs-15); line-height: 1.6; }
.woocommerce-columns--addresses { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .woocommerce-columns--addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-bacs-bank-details { padding: var(--s-4); border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); background: var(--b-surface); }
.woocommerce-bacs-bank-details ul { list-style: none; }
.woocommerce-thankyou-order-received { font-size: var(--fs-18); }
.thankyou-note { padding: var(--s-4); border-left: 4px solid var(--b-accent); background: var(--b-surface); border-radius: var(--b-radius); font-size: var(--fs-15); }

.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 7px 14px; border: 1px solid var(--b-line-strong); border-radius: 999px; font-size: var(--fs-13); font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--b-accent); color: var(--b-white); border-color: var(--b-accent); }
.woocommerce-form-login, .woocommerce-form-register { max-width: 420px; }

/* ------------------------------------------------------------------
   17. Content pages (HoReCa, Kontaktai, legal, 404)
   ------------------------------------------------------------------ */
.prose { font-size: var(--fs-16); line-height: 1.65; color: #2d2d2b; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-22); letter-spacing: -.02em; margin-top: 1.8em; color: var(--b-text); }
.prose h3 { font-size: var(--fs-18); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .notice-tiksl { margin: 0 2px; }
.page-template-default .wrap--text .prose > p:first-child { font-size: var(--fs-18); color: var(--b-muted); }

.page-hero--split { display: grid; gap: var(--s-3); }
@media (min-width: 1024px) {
	.page-hero--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: var(--s-7); }
	.page-hero--split p { margin: 0 0 6px; }
}

.photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .photo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
.photo-row .photo:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .photo-row .photo:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4 / 3; } }
.photo-row__cap { margin-top: var(--s-3); font-size: var(--fs-13); color: var(--b-muted); }

.info-box {
	padding: var(--s-4) var(--s-5);
	border: 1px solid var(--b-line);
	border-left: 4px solid var(--b-accent);
	border-radius: var(--b-radius);
	background: var(--b-surface);
	font-size: var(--fs-15);
}
.info-box h3 { margin-bottom: var(--s-2); font-size: var(--fs-12); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--b-muted); }

.horeca-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .horeca-grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); } .horeca-form { position: sticky; top: calc(var(--header-h) + var(--s-4)); } }
.horeca-aside { display: flex; flex-direction: column; gap: var(--s-6); }
.horeca-aside h2 { font-size: var(--fs-22); letter-spacing: -.02em; margin-bottom: var(--s-2); }
.horeca-aside > section > p { font-size: var(--fs-15); }

.mini-models { list-style: none; display: grid; gap: 8px; margin-top: var(--s-4); }
.mini-models a { display: flex; align-items: center; gap: var(--s-3); padding: 8px 14px 8px 8px; border: 1px solid var(--b-line); border-radius: var(--b-radius); background: var(--b-white); transition: border-color .12s var(--ease); }
.mini-models a:hover { border-color: var(--b-accent); text-decoration: none; }
.mini-models__img { flex: none; width: 52px; height: 52px; border-radius: 4px; background: var(--b-white); overflow: hidden; }
.mini-models__img img { width: 100%; height: 100%; object-fit: contain; }
.mini-models__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mini-models__text small { font-size: var(--fs-12); color: var(--b-muted); }
.mini-models__text strong { font-size: var(--fs-15); font-weight: 800; }
.mini-models__price { margin-left: auto; font-size: var(--fs-14); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-models__note { margin-top: var(--s-2); font-size: var(--fs-12); color: var(--b-muted); }

.how-list { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.how-list li { display: flex; gap: var(--s-3); font-size: var(--fs-14); color: var(--b-muted); }
.how-list li > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--b-accent); color: var(--b-text); font-size: var(--fs-13); font-weight: 800; }
.how-list strong { display: block; font-size: var(--fs-15); color: var(--b-text); }

.quote-form {
	padding: var(--s-5);
	border: 1px solid var(--b-line);
	border-radius: var(--b-radius-lg);
	background: var(--b-white);
	box-shadow: var(--b-shadow);
}
@media (min-width: 768px) { .quote-form { padding: var(--s-6); } }
.quote-form__head { margin-bottom: var(--s-5); }
.quote-form h2 { margin: 4px 0 var(--s-2); font-size: var(--fs-22); letter-spacing: -.02em; }
@media (min-width: 768px) { .quote-form h2 { font-size: var(--fs-28); } }
.quote-form__intro { color: var(--b-muted); font-size: var(--fs-15); }
.quote-step { min-width: 0; margin: 0 0 var(--s-5); padding: 0; border: 0; }
.quote-step legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: var(--s-3); padding: 0; font-size: var(--fs-16); font-weight: 800; }
.quote-step legend + * { clear: both; }
.quote-step__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--b-accent); color: var(--b-white); font-size: var(--fs-12); font-weight: 800; }
.quote-items { display: flex; flex-direction: column; gap: var(--s-2); }
.quote-item { display: grid; grid-template-columns: minmax(0, 1fr) 104px 44px; gap: var(--s-2); align-items: center; }
.quote-item select, .quote-item input { min-height: 46px; }
.quote-item__qty { position: relative; }
.quote-item__qty input { padding-right: 38px; font-weight: 700; }
.quote-item__qty span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: var(--fs-13); color: var(--b-muted); pointer-events: none; }
.quote-item__remove { width: 44px; height: 46px; border: 1px solid var(--b-line-strong); border-radius: var(--b-radius); background: var(--b-white); color: var(--b-muted); font-size: 18px; }
.quote-item__remove:hover { color: var(--b-error); border-color: var(--b-error); }
.quote-item__model { grid-column: 1 / -1; }
.quote-item__model[hidden] { display: none; }
.quote-items__add { margin-top: var(--s-3); }
.quote-items__add svg { width: 16px; height: 16px; }
.quote-form .check { align-items: flex-start; font-size: var(--fs-14); font-weight: 500; }
.quote-form .check__box { margin-top: 2px; }
.quote-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.quote-form__actions .btn { min-width: 220px; }
.quote-form__actions .btn svg { width: 16px; height: 16px; }
.quote-form__status { font-size: var(--fs-14); font-weight: 600; }
.quote-form__status.is-error { color: var(--b-error); }
.quote-form__success { padding: var(--s-6) var(--s-5); text-align: center; }
.quote-form__success-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--s-3); border-radius: 50%; background: var(--b-ok); color: var(--b-white); }
.quote-form__success-icon svg { width: 28px; height: 28px; stroke-width: 2.4; }
.quote-form__success h2 { color: var(--b-text); }
.quote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form.is-sending { opacity: .6; pointer-events: none; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: var(--s-6); } }
.contact-card { padding: var(--s-5); border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); background: var(--b-white); }
@media (min-width: 768px) { .contact-card { padding: var(--s-6); } }
.contact-card__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-22); letter-spacing: -.02em; }
.contact-card__title svg { width: 22px; height: 22px; }
.contact-card__addr { margin: var(--s-2) 0 var(--s-4); font-style: normal; font-size: var(--fs-18); line-height: 1.45; color: var(--b-muted); }
.contact-card .btn svg { width: 16px; height: 16px; }
.contact-list { display: grid; margin: var(--s-6) 0 0; border-top: 1px solid var(--b-line); }
.contact-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: 14px 0; border-bottom: 1px solid var(--b-line); }
.contact-list dt { display: flex; align-items: center; gap: 10px; font-size: var(--fs-15); font-weight: 600; }
.contact-list dt svg { width: 18px; height: 18px; color: var(--b-muted); }
.contact-list dd { margin: 0; }
.contact-visual { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); background: var(--b-white); }
.swatch-wall { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--b-surface); }
.swatch-wall li { aspect-ratio: 1; overflow: hidden; }
.swatch-wall img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639.98px) { .swatch-wall li:nth-child(n+9) { display: none; } }
/* beside the contact card the wall takes the card's height (contain: size keeps it from setting the row height) */
@media (min-width: 900px) {
	.swatch-wall { flex: 1 1 auto; contain: size; min-height: 320px; grid-template-rows: repeat(3, minmax(0, 1fr)); }
	.swatch-wall li { aspect-ratio: auto; min-height: 0; }
}
.contact-visual__cap { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding: var(--s-4); border-top: 1px solid var(--b-line); background: var(--b-surface); font-size: var(--fs-13); color: var(--b-muted); }
.contact-visual__cap strong { font-size: var(--fs-15); color: var(--b-text); }
.contact-links { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 768px) { .contact-links { grid-template-columns: 1fr 1fr; } }
.contact-link { position: relative; display: flex; flex-direction: column; gap: 4px; padding: var(--s-5) 64px var(--s-5) var(--s-5); border: 1px solid var(--b-line); border-radius: var(--b-radius-lg); background: var(--b-surface); transition: border-color .12s var(--ease); }
.contact-link:hover { border-color: var(--b-accent); text-decoration: none; }
.contact-link strong { font-size: var(--fs-18); letter-spacing: -.01em; }
.contact-link svg { position: absolute; right: var(--s-5); top: 50%; width: 22px; height: 22px; margin-top: -11px; transition: transform .15s var(--ease); }
.contact-link:hover svg { transform: translateX(3px); }

/* 404 */
.error-page { padding: var(--s-8) 0 var(--s-6); text-align: center; }
.error-page__code { font-size: 120px; font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--b-line); }
.error-page h1 { margin-top: var(--s-2); font-size: var(--fs-36); letter-spacing: -.03em; }
.error-page p { margin: var(--s-3) auto 0; max-width: 46ch; color: var(--b-muted); }
.error-page .cat-switch { justify-content: center; margin-top: var(--s-5); }
.error-page .tiles { margin-top: var(--s-6); text-align: left; }

/* Phone refinements */
@media (max-width: 639.98px) {
	dl.variation, .cart-line dl.variation { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
	.version-card { gap: 10px; padding: 6px 28px 6px 6px; }
	.version-card__img { width: 44px; height: 44px; }
	.version-card__code { font-size: var(--fs-12); }
	.version-card__img .sofa-plan { width: 42px; height: 42px; }
	.version-card__name { font-size: var(--fs-13); }
	.version-card__tick { right: 8px; width: 16px; height: 16px; margin-top: -8px; }
	.mk-group--handle .mk-choices, .mk-group--nails .mk-choices, .mk-group--tufting .mk-choices, .mk-group--back .mk-choices, .mk-group--leg_colour .mk-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile-cat__body { padding: 10px 12px 12px; }
	.tile-cat__go { display: none; }
	.tiles .tile-cat:last-child:nth-child(odd) .tile-cat__go { display: grid; }
	.tiles .tile-cat:last-child:nth-child(odd) .tile-cat__body { padding-right: 52px; }
	.card-product__opts { display: none; }
	.card-product__media .placeholder-sofa { gap: 4px; padding: 12%; }
	.card-product__media .placeholder-sofa .notice-tiksl { font-size: 10px; padding: 1px 5px; line-height: 1.3; text-align: center; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
	.site-footer__grid > :nth-child(-n+2) { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
   18. Motion preferences
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
