/* foto123 — design system layer (keeps configurator image geometry intact)
   Stage 1: tokens, base typography, buttons, form fields, focus states. */

:root {
	/* Color — neutral surfaces, high-contrast ink, one accent.
	   Accent is the brand red, darkened slightly so white text on it
	   passes WCAG AA (about 5:1). */
	--c-ink: #1a1a1a;
	--c-ink-2: #3a3a3a;
	--c-muted: #5f5f5f;
	--c-line: #e5e1db;
	--c-line-strong: #d3cec6;
	--c-paper: #faf9f7;
	--c-surface: #ffffff;
	--c-surface-2: #f4f2ee;
	--c-accent: #d1301f;
	--c-accent-dark: #b52717;
	--c-accent-soft: rgba(209, 48, 31, 0.08);
	--c-accent-line: rgba(209, 48, 31, 0.28);
	--c-success: #2f7d4f;
	--c-danger: #b42318;

	/* Spacing scale (4px base) */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 24px;
	--s-6: 32px;
	--s-7: 48px;
	--s-8: 64px;

	/* Type scale */
	--font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs-xs: 12px;
	--fs-sm: 13px;
	--fs-base: 15px;
	--fs-md: 17px;
	--fs-lg: 20px;
	--fs-xl: 26px;
	--fs-2xl: 34px;
	--lh-tight: 1.2;
	--lh-base: 1.6;

	/* Shape & depth */
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--radius-pill: 999px;
	--shadow-xs: 0 1px 2px rgba(26, 26, 26, 0.05);
	--shadow-soft: 0 8px 24px rgba(26, 26, 26, 0.07);
	--focus-ring: 0 0 0 3px rgba(209, 48, 31, 0.28);

	/* Motion */
	--ease: cubic-bezier(.2, .7, .2, 1);
	--t-fast: .15s;
	--t-base: .2s;

	--wrap: 1200px;
}

body, textarea, input, select, button {
	font-family: var(--font);
	font-size: var(--fs-base);
}

html, body {
	color: var(--c-ink);
	height: 100%;
	min-height: 100% !important;
}

body {
	background: var(--c-paper);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

a {
	color: var(--c-ink);
	text-decoration: none;
	transition: color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

a:hover {
	color: var(--c-accent);
	text-decoration: none;
}

/* Keyboard focus: visible ring everywhere, never on mouse click */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.punktas:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
	border-radius: var(--radius-sm);
}

h1 {
	font-size: var(--fs-2xl);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: var(--lh-tight);
	padding-bottom: var(--s-4);
	color: var(--c-ink);
}

h2 {
	font-size: var(--fs-lg);
	font-weight: 650;
	letter-spacing: -0.015em;
	line-height: 1.3;
	padding-bottom: var(--s-3);
}

h3 {
	font-size: var(--fs-md);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

p {
	line-height: var(--lh-base);
	padding-bottom: var(--s-4);
	color: var(--c-ink-2);
}

::selection { background: rgba(209, 48, 31, 0.16); }

textarea {
	resize: vertical;
	line-height: var(--lh-base);
}

.wrap {
	position: relative;
	width: calc(100% - 32px);
	max-width: var(--wrap);
	margin: 0 auto;
	box-sizing: border-box;
}

.wrap2 {
	position: relative;
	margin: 0 15%;
}

.field { padding: var(--s-2) 0; }
.label { padding: var(--s-3) 0 var(--s-1); color: var(--c-muted); font-size: var(--fs-sm); font-weight: 500; }

.half {
	width: 49%;
	margin-left: 1%;
	display: inline-block;
	float: left;
}

/* Form fields (colour pickers and file inputs keep their native look) */
select,
textarea,
input:not([type="color"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]) {
	padding: 10px 12px;
	min-height: 42px;
	box-shadow: var(--shadow-xs);
	box-sizing: border-box;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius-sm);
	outline: none;
	background: var(--c-surface);
	color: var(--c-ink);
	transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

textarea { min-height: 96px; }

select:hover,
textarea:hover,
input:not([type="color"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):hover {
	border-color: #bdb7ae;
}

select:focus, input:focus, textarea:focus {
	border-color: var(--c-accent);
	box-shadow: var(--focus-ring);
}

input::placeholder, textarea::placeholder { color: #8a8a8a; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--c-accent); }

/* Buttons */
.submit,
.nice-button,
input[type="submit"],
input[type="button"],
button.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	min-height: 42px;
	background: var(--c-accent);
	color: #fff;
	border: 1px solid transparent;
	box-shadow: var(--shadow-xs);
	border-radius: var(--radius-pill);
	padding: 10px 22px;
	cursor: pointer;
	font-size: var(--fs-base);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}

.submit:hover,
.nice-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button.btn:hover {
	background: var(--c-accent-dark);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(209, 48, 31, 0.22);
}

.submit:active,
.nice-button:active,
input[type="submit"]:active,
input[type="button"]:active,
button.btn:active {
	transform: translateY(1px);
	box-shadow: var(--shadow-xs);
}

.submit:focus-visible,
.nice-button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
button.btn:focus-visible {
	box-shadow: var(--focus-ring);
	border-radius: var(--radius-pill);
}

.submit:disabled,
.nice-button.disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
	background: #c9c4bc;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

/* Secondary (outline) button, for later stages */
.btn-secondary {
	background: var(--c-surface) !important;
	color: var(--c-ink) !important;
	border-color: var(--c-line-strong) !important;
}
.btn-secondary:hover { border-color: var(--c-ink) !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Stage 2: header & navigation ---------- */
.header {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: var(--s-6);
	position: sticky;
	top: 0;
	z-index: 200;
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-5);
	padding: var(--s-3) 0;
}

.logo {
	flex: 0 0 auto;
	line-height: 0;
	border-radius: var(--radius-sm);
}

.logo img {
	display: block;
	max-height: 48px;
	width: auto;
	max-width: 260px;
}

.header-contacts {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1 1 auto;
	gap: var(--s-2);
	min-width: 0;
	font-size: var(--fs-sm);
	color: var(--c-muted);
	white-space: nowrap;
}

.header-help {
	overflow: hidden;
	text-overflow: ellipsis;
	margin-right: var(--s-2);
}

.header-help a {
	color: var(--c-ink);
	font-weight: 600;
}

.header-help a:hover { color: var(--c-accent); }

.header-cart {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	flex: 0 0 auto;
	min-height: 40px;
	padding: 0 var(--s-4);
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius-pill);
	background: var(--c-surface);
	color: var(--c-ink);
	font-weight: 600;
	transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.header-cart:hover {
	border-color: var(--c-accent);
	color: var(--c-accent);
}

.header-cart svg,
.header-fb svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	display: block;
}

.header-fb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--c-muted);
	transition: color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.header-fb:hover {
	color: #1877f2;
	background: var(--c-surface-2);
}

.header-cart:focus-visible,
.header-fb:focus-visible { border-radius: var(--radius-pill); }

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0 11px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color var(--t-base) var(--ease);
}

.nav-toggle:hover { border-color: var(--c-ink); }

.nav-toggle span {
	display: block;
	height: 2px;
	margin: 5px 0;
	background: var(--c-ink);
	border-radius: 2px;
	transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { padding-bottom: var(--s-2); }

.nav-help { display: none; }

.nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s-1);
}

.nav li {
	display: block;
	margin: 0;
}

.nav a {
	display: block;
	padding: var(--s-2) var(--s-4);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--c-ink);
	border-radius: var(--radius-pill);
}

.nav a:hover {
	background: var(--c-surface-2);
	color: var(--c-ink);
}

li.active { background: none; }

.nav li.active a {
	color: var(--c-accent);
	background: var(--c-accent-soft);
}

.submenu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
	padding: var(--s-1) 0 var(--s-2);
}

.submenu a {
	display: inline-block;
	padding: 6px var(--s-3);
	font-size: var(--fs-sm);
	color: var(--c-muted);
	border-radius: var(--radius-pill);
}

.submenu a:hover {
	color: var(--c-ink);
	background: var(--c-surface-2);
}


.mirror-top, .mirror-left, .mirror-right, .mirror-bottom, .krastas-vertical, .krastas-horizontal {
	display: none;
}

.pprice { font-size: 12px; color: #555; }
.ppriced { font-size: 12px; color: #888; text-decoration: line-through; }

.page {
	padding: 0 0 24px;
}

.page.wrap.footer,
.page.wrap {
	background: var(--c-surface);
	border: 1px solid rgba(230, 226, 220, 0.95);
	border-radius: 20px;
	box-shadow: var(--shadow-soft);
	padding: 28px;
	box-sizing: border-box;
}

.box {
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 50px;
	padding: 50px;
}

.box p {
	color: #000;
	text-shadow: 1px 1px 3px #fff;
	font-size: 20px;
}

.boxes {
	width: 100%;
}

.boxes li {
	margin-left: 20px;
	width: 270px;
	margin-bottom: 18px;
	margin-top: 10px;
	float: left;
}

.boxes li img {
	margin-bottom: 0;
	display: block;
	width: 100%;
	height: auto;
}

.boxes .description { font-size: 13px; }
.title2 { display: none; }

.bxslider {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	margin-bottom: 8px !important;
}

.bxslider li {
	border-radius: 16px;
	overflow: hidden;
}

.bxslider img {
	display: block;
	width: 100%;
	height: auto;
}

#slider { width: 100%; }

.block {
	box-shadow: none;
	background: var(--c-paper);
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--c-line);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.block:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-soft);
	border-color: var(--c-accent-line);
}

.block h2 {
	padding: 12px 14px 14px;
	text-indent: 0;
	font-size: 15px;
	text-align: left;
	color: var(--c-ink);
	font-weight: 600;
}

.block-media {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	aspect-ratio: 1 / 1;
	background: #eee;
}

.block-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.block p { text-align: center; }

.price {
	text-indent: 0;
	font-weight: 600;
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: var(--c-accent);
	width: auto;
	min-width: 72px;
	height: auto;
	line-height: 1;
	color: #fff;
	text-align: center;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 13px;
}

.price * { line-height: 1; }

.block.has-price h2 { padding-bottom: 50px; }
.block .price {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 500;
}
.block .price-from { font-size: 12px; opacity: .9; font-weight: 500; }
.block .price-value { font-size: 18px; font-weight: 700; }

#price { font-weight: bold; }

/* --- Configurator: keep original geometry so uploaded photos stay undistorted --- */
.reminimas-row {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px 40px;
	width: 100%;
}

.left-side { float: left; width: 220px; }
.left-side h3 { margin-top: 14px; font-size: 14px; font-weight: 600; }
.canvas { float: left; width: 600px; }
.picture {
	cursor: move;
	overflow: hidden;
	width: 500px;
	float: left;
	position: relative;
	z-index: 5;
	box-sizing: border-box;
}
.nuotrauka {
	cursor: move;
	overflow: visible;
	width: 500px;
	float: left;
	position: relative;
	z-index: 5;
}
.picture #image { position: relative; z-index: 4; }
#image { cursor: move; }
.right-side { float: right; width: 150px; }

.emptyborder { background: white; float: left; }
.bad { border: 1px solid red; }
.nospace p { padding: 0; }
.space { position: relative; }

.punktas {
	cursor: pointer;
	margin-bottom: 4px;
	padding: 2px 0;
	line-height: 1.2;
	display: block;
	position: relative;
}

.size-adjust {
	font-size: 11px;
	font-weight: 600;
	padding: 1px 6px;
	border-radius: 999px;
	line-height: 1.6;
}

.size-discount { color: #1a7a3c; background: #e8f6ec; }
.size-markup { color: #a3441c; background: #fdeee7; }

.punktas img {
	position: relative;
	top: 0;
	padding-right: 6px;
	vertical-align: middle;
	display: inline-block;
}

.size {
	float: left;
	margin-right: 14px;
	margin-bottom: 8px;
	display: inline-flex;
	align-items: center;
	line-height: 1;
	white-space: nowrap;
	font-size: 14px;
}

.size.punktas {
	display: inline-flex;
	align-items: center;
	padding: 0;
	margin-bottom: 8px;
	gap: 5px;
}

.size.punktas img {
	padding-right: 0;
	margin: 0;
	position: relative;
	top: 0;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	object-fit: contain;
}

.size-label {
	display: inline-block;
	line-height: 1;
	position: relative;
	top: 4px;
	font-size: 14px;
}

.left-side .punktas {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px 0;
	line-height: 1.25;
	min-height: 22px;
}

.left-side .punktas img {
	position: relative;
	top: 0;
	flex: 0 0 auto;
	align-self: center;
	width: 15px;
	height: 15px;
	object-fit: contain;
	margin-right: 5px;
	padding-right: 0;
}

.d { border: 1px solid red; }
.c { clear: both; }

.groups {
	float: left;
	margin-right: 8px;
	margin-bottom: 8px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	width: auto;
	min-width: 140px;
	text-align: center;
	border-radius: 999px;
	border: 1px solid var(--c-line);
	background: var(--c-surface);
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.active_group {
	background: var(--c-accent);
	border-color: var(--c-accent);
	border-radius: 999px;
	color: #fff;
}

.grouplist {
	display: none;
	height: auto;
	min-height: 28px;
	overflow: visible;
	padding: 4px 0 10px;
}

.krastas-vertical {
	width: 20px;
	height: 500px;
	overflow: hidden;
	float: left;
	position: relative;
	z-index: 500;
}

.krastas-horizontal {
	height: 20px;
	position: relative;
	overflow: hidden;
	z-index: 500;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
}

.l { float: left; }
.r { float: right; }
.c:after { clear: both; }
.c:before,
.c:after {
	content: "";
	display: table;
}

.ui-slider-handle {
	background: var(--c-accent) !important;
	border-radius: 20px !important;
	height: 25px !important;
	width: 25px !important;
	margin-top: -3px;
}

.border-img { position: relative; z-index: 300 !important; }
.price_all { font-weight: 700; color: var(--c-accent); font-size: 18px; }

.left-side h3 img { position: relative; top: 2px; cursor: pointer; }
.left-side h3 { position: relative; clear: both; }

.infobox {
	font-size: 12px;
	line-height: 1.45;
	font-weight: normal;
	display: none;
	width: 400px;
	position: absolute;
	top: 22px;
	left: 0;
	background: white;
	padding: 18px 22px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-soft);
	z-index: 9999;
}

.hcenter .infobox { left: 70px; }
.infoico { cursor: pointer; }
.infobox p { margin: 0; padding: 0; line-height: 1.45; }

.wallpic {
	position: absolute;
	bottom: 90px;
	left: 15px;
	width: 48px;
	height: 32px;
	overflow: hidden;
}

.wallpic-size {
	position: absolute;
	bottom: -16px;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 10px;
	color: #777;
	white-space: nowrap;
}

.sidebar-info {
	font-size: 12px;
	line-height: 1.5;
	padding: 12px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
}

.sidebar-info p { margin: 0 0 8px; padding: 0; }
.sidebar-info p:last-child { margin-bottom: 0; }

.photo-thumbs {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 6px;
	max-height: 136px;
	overflow-y: auto;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--c-line);
}

.photo-thumb {
	position: relative;
	width: 60px;
	height: 60px;
	flex: 0 0 auto;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	overflow: hidden;
	cursor: pointer;
	background: var(--c-surface);
}

.photo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.photo-thumb.active { border-color: var(--c-accent); }

.photo-thumb-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	font-size: 11px;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	color: #fff;
}

.photo-thumb-add {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	color: var(--c-accent);
	border: 2px dashed var(--c-line);
}

.banner {
	border: 1px solid var(--c-accent-line);
	border-radius: var(--radius-sm);
	font-size: 13px;
	padding: 12px;
	text-align: left;
	background: #fff7f6;
}

.banner p { margin: 0; padding: 0; line-height: 1.45; }

.remas {
	width: 48px;
	height: 48px;
	overflow: hidden;
	float: left;
	position: relative;
	margin-right: 2px;
	margin-bottom: 2px;
}

.rb {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 999;
	display: none;
}

.remas .code {
	color: white;
	position: absolute;
	bottom: 2px;
	right: 2px;
	text-shadow: 1px 1px 1px #000;
	z-index: 999;
	font-size: 12px;
}

.remas img {
	height: 50px;
	position: relative;
	left: -50px;
	cursor: pointer;
	max-width: none;
}

.paspartu_text { font-size: 11px; }

.paspartu_block {
	float: left;
	width: 42%;
	text-align: center;
	margin-bottom: 10px;
}

.paspartu_block img { margin-bottom: 3px; }

.remai_cat { margin: 10px 0; }
.remai_cat span {
	color: white;
	cursor: pointer;
	background: var(--c-accent);
	padding: 2px 8px;
	border-radius: 999px;
	margin: 0 5px;
}

.remai_box { height: 150px; overflow-y: auto; }
.paspartu_box { height: 55px; overflow-y: auto; }
.paspartu { padding: 0; margin-bottom: 5px; width: 40px; }

/* ---------- Stage 2: footer, newsletter, cookie bar ---------- */
.site-footer {
	margin-top: var(--s-7);
	border-top: 1px solid var(--c-line);
	background: var(--c-surface);
}

.subscribe-form { margin: 0; }

.subscribe-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--s-4) var(--s-6);
	padding: var(--s-6) 0;
	border-bottom: 1px solid var(--c-line);
}

.subscribe-title {
	font-size: var(--fs-md);
	font-weight: 650;
	color: var(--c-ink);
	letter-spacing: -0.01em;
}

.subscribe-sub {
	margin-top: 2px;
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

.subscribe-group {
	display: flex;
	gap: var(--s-2);
	flex: 0 1 440px;
	min-width: 0;
}

.subscribe-group input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	border-radius: var(--radius-pill);
	padding-left: var(--s-4);
}

.subscribe-done {
	padding: var(--s-5) 0;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-success);
	font-weight: 600;
	text-align: center;
}

.footer-menu {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s-5) var(--s-6);
	padding: var(--s-6) 0;
	margin: 0;
	list-style: none;
}

.footer-col h2 {
	font-size: var(--fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-ink);
	padding-bottom: var(--s-3);
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li { margin: 0; }

.footer-col a {
	display: inline-block;
	padding: 5px 0;
	font-size: var(--fs-sm);
	line-height: 1.4;
	color: var(--c-muted);
	border-radius: 4px;
}

.footer-col a:hover { color: var(--c-accent); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--s-2) var(--s-5);
	padding: var(--s-5) 0 var(--s-6);
	border-top: 1px solid var(--c-line);
	font-size: var(--fs-xs);
	color: var(--c-muted);
}

.footer-bottom .keywords {
	padding: 0;
	text-align: left;
	max-width: 70ch;
	line-height: 1.6;
}

.keywords {
	text-align: center;
	font-size: var(--fs-xs);
	color: var(--c-muted);
	padding: 0 var(--s-4);
}

.links {
	color: var(--c-muted);
	font-size: var(--fs-sm);
	padding: 4px 0;
	line-height: 1.5;
}

.links a:hover { color: var(--c-accent); }

.cookies {
	position: fixed;
	z-index: 9999;
	left: 50%;
	bottom: var(--s-4);
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: var(--s-4);
	width: max-content;
	max-width: calc(100% - 32px);
	box-sizing: border-box;
	padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5);
	background: var(--c-ink);
	color: #f2f2f2;
	border-radius: var(--radius-lg);
	box-shadow: 0 12px 32px rgba(26, 26, 26, 0.22);
	font-size: var(--fs-sm);
	line-height: 1.45;
	animation: cookies-in .3s var(--ease) both;
}

.cookies a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 var(--s-4);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--c-ink);
	font-weight: 600;
}

.cookies a:hover { background: #ececec; color: var(--c-ink); }
.cookies a:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }

@keyframes cookies-in {
	from { opacity: 0; transform: translate(-50%, 8px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 1000px) {
	.footer-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.subscribe-card { flex-direction: column; align-items: stretch; padding: var(--s-5) 0; }
	.subscribe-group { flex: 1 1 auto; }
	.footer-menu { gap: var(--s-5) var(--s-4); padding: var(--s-5) 0; }
	.footer-bottom { flex-direction: column; }
	.cookies {
		left: var(--s-3);
		right: var(--s-3);
		width: auto;
		max-width: none;
		transform: none;
		flex-direction: column;
		align-items: stretch;
		text-align: left;
		padding: var(--s-4);
		animation: none;
	}
	.cookies a { justify-content: center; }
}

@media (max-width: 480px) {
	.footer-menu { grid-template-columns: 1fr; }
	.subscribe-group { flex-direction: column; }
	.subscribe-group input[type="submit"] { width: 100%; }
}


/* ---------- Stage 3: pages ---------- */

/* Title page product cards: 4 / 2 / 1 columns */
.product-boxes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--s-5);
	margin: var(--s-5) 0 0;
	padding: 0;
	list-style: none;
}

.product-boxes li {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}

.product-boxes .block { height: 100%; }

/* Text pages: content blocks in a 6-column grid (100% / 50% / 33%) */
.content-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--s-4);
	margin-bottom: var(--s-6);
}

.content-block {
	grid-column: span 6;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-line) !important;
	background: var(--c-surface) !important;
	border-radius: var(--radius);
	box-shadow: var(--shadow-xs);
}

.content-block.cb-50 { grid-column: span 3; }
.content-block.cb-33 { grid-column: span 2; }

.content-block-media img {
	display: block;
	width: 100%;
	height: auto;
}

.content-block-body {
	padding: var(--s-5);
}

.content-block-body > :last-child { padding-bottom: 0; margin-bottom: 0; }

.text {
	line-height: 1.7;
	color: var(--c-ink-2);
}

.text h1, .text h2, .text h3 { color: var(--c-ink); }
.text h2 { margin-top: var(--s-5); }
.text ul, .text ol { padding-left: var(--s-5); margin-bottom: var(--s-4); }
.text li { margin-bottom: var(--s-1); line-height: 1.6; }
.text a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.text a:hover { color: var(--c-accent-dark); }

/* Long-form copy reads best around 70 characters per line */
.text-page p,
.text-page li,
.text-page h2,
.text-page h3 { max-width: 72ch; }

/* Shop: product list and detail */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--s-5);
	margin-bottom: var(--s-6);
}

.product-card { display: flex; flex-direction: column; }

.product-card-media {
	display: block;
	aspect-ratio: 300 / 215;
	background: var(--c-surface-2);
	overflow: hidden;
}

.product-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s var(--ease);
}

.product-card:hover .product-card-media img { transform: scale(1.03); }

.product-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--s-2);
	flex: 1 1 auto;
	padding: var(--s-4);
}

.product-card-title {
	font-weight: 600;
	font-size: var(--fs-base);
	line-height: 1.35;
	color: var(--c-ink);
}

.product-card-price,
.product-price {
	font-size: var(--fs-lg);
	font-weight: 700;
	color: var(--c-ink);
	letter-spacing: -0.01em;
}

.product-card-body .nice-button { margin-top: auto; }

.akcija {
	color: var(--c-muted);
	font-weight: 500;
	font-size: .8em;
	text-decoration: line-through;
}

.product-actions { margin-top: var(--s-3); }

.nice-button.btn-small {
	min-height: 36px;
	padding: 6px 16px;
	font-size: var(--fs-sm);
}

/* Tables (cart etc.) */
.data-table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: var(--s-5);
}

.data-table th {
	background: var(--c-surface-2);
	color: var(--c-muted);
	font-size: var(--fs-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: var(--s-3);
	border-bottom: 1px solid var(--c-line);
}

.data-table td {
	padding: var(--s-2) var(--s-3);
	border-bottom: 1px solid var(--c-line);
	vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: 0; }

.data-table img { border-radius: var(--radius-sm); }

.empty-state {
	margin: var(--s-7) 0;
	padding: var(--s-7) var(--s-5);
	text-align: center;
	color: var(--c-muted);
	font-size: var(--fs-md);
	border: 1px dashed var(--c-line-strong);
	border-radius: var(--radius-lg);
}

@media (max-width: 1000px) {
	.product-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
	.content-block.cb-33 { grid-column: span 3; }
}

@media (max-width: 760px) {
	.content-block.cb-50,
	.content-block.cb-33 { grid-column: span 6; }
	.content-block-body { padding: var(--s-4); }
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
}

@media (max-width: 480px) {
	.product-boxes { grid-template-columns: 1fr; }
	.product-grid { grid-template-columns: 1fr; }
}

.text img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
}

/* Never let global responsive image rules warp configurator artwork */
.picture img,
.nuotrauka img,
#image,
.remas img,
.wallpic img,
.krastas-vertical img,
.krastas-horizontal img,
.mirror img,
.border-img,
.mirror-top img,
.mirror-left img,
.mirror-right img,
.mirror-bottom img {
	max-width: none !important;
}

/* ---------- Stage 4: configurator visuals (no geometry changes) ---------- */

/* Radio images (radio_on.jpg / radio_off.jpg) are still swapped by the
   existing JS - here the same <img> is drawn as a crisp CSS radio:
   the raster is pushed out of the box with object-position and the
   circle is painted with border + background. */
img[src*="client/img/radio_"] {
	box-sizing: border-box;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	padding: 0 !important;
	border-radius: 50%;
	object-fit: none;
	object-position: -200px -200px;
	vertical-align: middle;
	background: var(--c-surface);
	border: 1.5px solid #a9a39a;
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
	cursor: pointer;
}

img[src*="client/img/radio_on"] {
	border: 5px solid var(--c-accent);
	background: var(--c-surface);
}

.punktas:hover img[src*="client/img/radio_off"] { border-color: var(--c-accent); }

/* Option rows */
.left-side .punktas {
	box-sizing: border-box;
	gap: 2px 6px;
	min-height: 28px;
	margin: 0 calc(var(--s-2) * -1) 1px;
	padding: 3px var(--s-2);
	line-height: 1.25;
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	color: var(--c-ink-2);
	transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.left-side .punktas:hover { background: var(--c-surface-2); color: var(--c-ink); }

.left-side .punktas img[src*="client/img/radio_"] { margin-right: 0; width: 16px !important; height: 16px !important; min-width: 16px; }
.left-side .punktas img[src*="client/img/radio_on"] { border-width: 4.5px; }

/* Highlight the chosen row where :has() is supported (progressive) */
.left-side .punktas:has(> img[src*="client/img/radio_on"]) {
	background: var(--c-accent-soft);
	color: var(--c-ink);
	font-weight: 600;
}

.left-side .punktas .ppriced { margin-left: auto; }
.pprice { font-size: var(--fs-xs); color: var(--c-ink); font-weight: 600; }
.ppriced { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 500; text-decoration: line-through; }

.left-side h3 {
	margin-top: var(--s-3);
	padding-top: var(--s-3);
	padding-bottom: 6px;
	border-top: 1px solid var(--c-line);
	font-size: var(--fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-ink);
}

.left-side h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.left-side h3 .infoico { width: 15px; height: 15px; top: 3px; margin-left: 2px; }

/* Orientation tabs as a segmented control */
.groups {
	min-width: 0;
	padding: var(--s-2) var(--s-4);
	margin: 0 var(--s-2) var(--s-2) 0;
	border: 1px solid var(--c-line-strong);
	background: var(--c-surface);
	color: var(--c-ink-2);
	font-size: var(--fs-sm);
	font-weight: 600;
	border-radius: var(--radius-pill);
}

.groups:hover { border-color: var(--c-ink); color: var(--c-ink); }

.groups.active_group,
.active_group {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: #fff;
}

/* Size chips */
.grouplist { padding: var(--s-2) 0 var(--s-4); }

.size.punktas {
	gap: 6px;
	margin: 0 var(--s-2) var(--s-2) 0;
	padding: 6px 10px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-pill);
	background: var(--c-surface);
	font-size: var(--fs-sm);
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.size.punktas:hover { border-color: var(--c-line-strong); background: var(--c-surface-2); }

.size.punktas:has(> img[src*="client/img/radio_on"]) {
	border-color: var(--c-accent);
	background: var(--c-accent-soft);
}

.size.punktas img[src*="client/img/radio_"] { width: 16px !important; height: 16px !important; min-width: 16px; }
.size.punktas img[src*="client/img/radio_on"] { border-width: 4.5px; }

.size-label { top: 0; font-size: var(--fs-sm); font-weight: 500; }
.size-adjust { font-size: 10.5px; padding: 1px 6px; }

/* Info popovers */
.infobox {
	width: min(360px, calc(100vw - 48px));
	padding: var(--s-4) var(--s-5);
	font-size: var(--fs-sm);
	line-height: 1.55;
	color: var(--c-ink-2);
	border-radius: var(--radius);
}

/* Zoom slider (jQuery UI) */
#slider.ui-slider,
.ui-slider.ui-widget-content {
	height: 6px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--c-line);
}

.ui-slider-handle {
	background: var(--c-surface) !important;
	border: 2px solid var(--c-accent) !important;
	box-shadow: var(--shadow-xs);
	border-radius: 50% !important;
	width: 22px !important;
	height: 22px !important;
	top: -8px !important;
	margin-top: 0;
	cursor: grab;
	outline: none;
}

.ui-slider-handle:focus-visible { box-shadow: var(--focus-ring) !important; }

/* Total + order */
.price_all { color: var(--c-ink); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }

#add_to_cart { margin-top: var(--s-4); }
#add_to_cart .nice-button { min-width: 180px; font-size: var(--fs-md); }

/* Uploaded photo strip */
.photo-thumb { border: 1px solid var(--c-line); border-radius: var(--radius-sm); transition: border-color var(--t-fast) var(--ease); }
.photo-thumb:hover { border-color: var(--c-line-strong); }
.photo-thumb.active { border: 2px solid var(--c-accent); }
.photo-thumb-remove {
	width: 22px;
	height: 22px;
	line-height: 22px;
	font-size: 14px;
	background: rgba(26, 26, 26, 0.7);
}
.photo-thumb-remove:hover { background: var(--c-accent); color: #fff; }
.photo-thumb-add { border: 1px dashed var(--c-line-strong); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.photo-thumb-add:hover { border-color: var(--c-accent); background: var(--c-accent-soft); }

.sidebar-info {
	padding: var(--s-4);
	font-size: var(--fs-sm);
	border-radius: var(--radius);
	background: var(--c-surface-2);
	border-color: var(--c-line);
}

/* Wall preview: wall colour + room image (review.png, 150x187) with the
   customer's photo hung above the sofa. */
.wall {
	width: 150px;
	max-width: 100%;
	margin: 0 auto;
	height: 187px;
	border-radius: var(--radius);
	border: 1px solid var(--c-line);
	overflow: hidden;
	box-sizing: border-box;
}

.wallpic { box-shadow: 0 6px 14px rgba(26, 26, 26, 0.25); z-index: 1; }

.wall-room {
	position: absolute;
	left: 0;
	bottom: 0;
	display: block;
	width: 150px;
	max-width: none !important;
	height: auto;
	pointer-events: none;
}

/* Size dropdown (left column). The original tabs + size chips stay in the
   DOM for the existing JS but are hidden. */
.size-picker-legacy { display: none !important; }

.size-select-wrap { position: relative; margin-bottom: var(--s-2); }

.size-select-wrap::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -5px;
	border-right: 2px solid var(--c-ink);
	border-bottom: 2px solid var(--c-ink);
	transform: rotate(45deg);
	pointer-events: none;
}

select.size-select {
	width: 100%;
	min-height: 40px;
	padding: 8px 36px 8px 12px;
	font-size: var(--fs-base);
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.size-desc {
	margin-bottom: var(--s-2);
	padding: var(--s-2) var(--s-3);
	font-size: var(--fs-xs);
	line-height: 1.5;
	color: var(--c-muted);
	background: var(--c-surface-2);
	border-radius: var(--radius-sm);
}

/* Photo upload (configurator empty state) */
.upload-zone {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	min-height: 360px;
	margin: var(--s-2) 0 var(--s-4);
	padding: var(--s-7) var(--s-5);
	box-sizing: border-box;
	text-align: center;
	background: var(--c-surface-2);
	border: 2px dashed var(--c-line-strong);
	border-radius: var(--radius-lg);
	cursor: pointer;
	transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.upload-zone:hover,
.upload-zone.is-dragover {
	border-color: var(--c-accent);
	background: var(--c-accent-soft);
}

.upload-zone.is-dragover { transform: scale(1.01); }

.upload-zone:focus-within { box-shadow: var(--focus-ring); }

.upload-zone-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: var(--s-2);
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-accent);
	box-shadow: var(--shadow-soft);
	transition: transform var(--t-base) var(--ease);
}

.upload-zone:hover .upload-zone-icon { transform: translateY(-2px); }
.upload-zone-icon svg { width: 30px; height: 30px; }

.upload-zone-title {
	font-size: var(--fs-lg);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--c-ink);
}

.upload-zone-hint { font-size: var(--fs-sm); color: var(--c-muted); }

.upload-zone-btn { margin-top: var(--s-2); pointer-events: none; }

.upload-zone-formats {
	margin-top: var(--s-1);
	font-size: var(--fs-xs);
	color: var(--c-muted);
	letter-spacing: 0.02em;
}

/* Visually hidden but still focusable / usable by the label */
.upload-zone-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.upload-zone-loading {
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	gap: var(--s-3);
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.9);
	font-weight: 600;
	color: var(--c-ink);
}

.upload-zone .upload-zone-loading:not([style*="none"]),
.upload-zone.is-loading .upload-zone-loading { display: flex !important; }

.upload-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--c-line);
	border-top-color: var(--c-accent);
	border-radius: 50%;
	animation: upload-spin .8s linear infinite;
}

@keyframes upload-spin { to { transform: rotate(360deg); } }

.upload-error {
	margin: 0 0 var(--s-3);
	padding: var(--s-3) var(--s-4);
	font-size: var(--fs-sm);
	color: var(--c-danger);
	background: #fdf0ee;
	border: 1px solid #f5c9c2;
	border-radius: var(--radius-sm);
}

@media (max-width: 760px) {
	.upload-zone { min-height: 280px; padding: var(--s-6) var(--s-4); }
}

/* Crop stage keeps its 600px geometry; on narrow screens it is scaled
   down as a whole by JS (see views/reminimas.php) instead of reflowing. */
.stage-fit { position: relative; width: 100%; }
.stage { width: 600px; }
.stage-fit.is-scaled { overflow: hidden; }
/* mobile.css un-floats .picture under 1000px, which breaks the frame row
   (left edge | picture | right edge). Inside the stage keep the original. */
.stage .picture,
.stage .nuotrauka {
	float: left !important;
	margin: 0 !important;
	max-width: none !important;
}

@media (max-width: 480px) {
	/* keep rotate-left | change photo | rotate-right on one row */
	#keisti { width: auto !important; }
}
