/* ==========================================================================
   Lengva – main stylesheet (v0.2)
   Design system for children's furniture e-commerce.
   Mobile first. All colours, sizes and spacing are variables in :root.
   ========================================================================== */

:root {
	/* Colours: calm Scandinavian base, one accent. All text pairs pass WCAG AA. */
	--c-bg: #ffffff;
	--c-surface: #f6f3ee;      /* warm linen: bands, panels */
	--c-surface-2: #eef4f1;    /* sage mist: benefit band, chips */
	--c-text: #1d2125;
	--c-muted: #59616a;
	--c-border: #e7e1d8;
	--c-accent: #2f6f62;       /* buttons, links, focus */
	--c-accent-hover: #245a50;
	--c-accent-soft: #e3eee9;
	--c-accent-contrast: #ffffff;
	--c-sale: #b42318;
	--c-success: #1f7a4d;
	--c-success-soft: #e7f4ec;
	--c-star: #d99a00;

	/* Typography: system fonts (zero download), fluid scale */
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	--fs-small: 0.875rem;
	--fs-h1: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem);
	--fs-h2: clamp(1.45rem, 1.2rem + 1vw, 2rem);
	--fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
	--lh-body: 1.65;
	--lh-heading: 1.15;

	/* Shape and depth: soft, rounded, child-friendly */
	--radius: 14px;
	--radius-sm: 8px;
	--radius-pill: 999px;
	--shadow: 0 10px 30px rgba(29, 33, 37, 0.10);
	--shadow-sm: 0 2px 8px rgba(29, 33, 37, 0.08);

	/* Layout */
	--max-w: 1280px;
	--gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
	--gap: clamp(1rem, 0.6rem + 1.5vw, 2rem);
	--section: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
	--header-h: 64px;
	--tap: 44px;               /* minimum touch target */
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--c-accent);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--c-accent-hover);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.6em;
	line-height: var(--lh-heading);
	font-weight: 700;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.05rem; }

p,
ul,
ol,
figure,
table,
blockquote {
	margin: 0 0 1rem;
}

p {
	text-wrap: pretty;
}

:focus-visible {
	outline: 3px solid var(--c-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--c-bg);
	color: var(--c-text);
	box-shadow: var(--shadow);
}

.icon {
	width: 1.5rem;
	height: 1.5rem;
	flex: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
	width: min(100% - 2 * var(--gutter), var(--max-w));
	margin-inline: auto;
}

.container--narrow {
	--max-w: 760px;
}

.site-main {
	padding-block: 1.25rem var(--section);
	min-height: 60vh;
}

.home .site-main {
	padding-top: 0;
}

/* --------------------------------------------------------------------------
   Buttons and forms
   -------------------------------------------------------------------------- */

.button,
button,
input[type="submit"],
input[type="button"],
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.7rem 1.5rem;
	border: 1px solid var(--c-accent);
	border-radius: var(--radius-pill);
	background: var(--c-accent);
	color: var(--c-accent-contrast);
	font: inherit;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-element-button:hover {
	background: var(--c-accent-hover);
	border-color: var(--c-accent-hover);
	color: var(--c-accent-contrast);
}

.button:active,
button:active {
	transform: translateY(1px);
}

.button--large {
	min-height: 54px;
	padding: 0.9rem 2rem;
	font-size: 1.05rem;
}

/* Disabled buttons stay readable (WCAG contrast) instead of fading out. */
.button:disabled,
.button.disabled,
button:disabled,
.button:disabled:hover,
.button.disabled:hover,
button:disabled:hover {
	border-color: var(--c-border);
	background: var(--c-surface);
	color: var(--c-muted);
	cursor: not-allowed;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
	color: var(--c-text);
	font: inherit;
	font-size: max(16px, 1rem); /* prevents zoom on iOS */
}

textarea {
	min-height: 8rem;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--c-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(47, 111, 98, 0.2);
}

label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.search-form,
.woocommerce-product-search {
	display: flex;
	gap: 0.5rem;
}

.search-form label {
	flex: 1;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Top bar and header
   -------------------------------------------------------------------------- */

.topbar {
	background: var(--c-accent);
	color: var(--c-accent-contrast);
	font-size: var(--fs-small);
	font-weight: 500;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 38px;
	text-align: center;
}

.topbar .icon {
	width: 1.15rem;
	height: 1.15rem;
	flex: none;
}

/* Promotion: icon, text and the code in a white pill; on a phone the code may drop to a second line. */
.topbar--promo .topbar__inner {
	padding-block: 0.3rem;
}

.topbar__promo {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.3rem 0.5rem;
	color: inherit;
	text-decoration: none;
}

a.topbar__promo:hover .topbar__text {
	text-decoration: underline;
}

a.topbar__promo:focus-visible {
	outline: 2px solid var(--c-accent-contrast);
	outline-offset: 2px;
}

.topbar__code {
	padding: 0.1rem 0.6rem;
	border-radius: 999px;
	background: var(--c-accent-contrast);
	color: var(--c-accent);
	font-weight: 700;
	letter-spacing: 0.06em;
}

.topbar__usual:not([hidden]) {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border);
}

.admin-bar .site-header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: var(--header-h);
	padding-block: 0.4rem;
}

.site-branding {
	flex: 1;
	min-width: 0;
}

.site-title {
	color: var(--c-text);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.custom-logo {
	display: block;
	max-height: var(--logo-h, 44px);
	width: auto;
}

.nav-toggle,
.header-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: var(--tap);
	height: var(--tap);
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--c-text);
	cursor: pointer;
}

.nav-toggle:hover,
.header-action:hover {
	background: var(--c-surface);
	color: var(--c-text);
}

.nav-toggle .icon--close,
.is-nav-open .nav-toggle .icon--menu {
	display: none;
}

.is-nav-open .nav-toggle .icon--close {
	display: block;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.cart-count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--radius-pill);
	background: var(--c-accent);
	color: var(--c-accent-contrast);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.cart-count[hidden] {
	display: none;
}

/* Search dropdown (opens without JS) */
.header-search {
	position: relative;
}

.header-search > summary {
	list-style: none;
}

.header-search > summary::-webkit-details-marker {
	display: none;
}

.header-search__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(92vw, 400px);
	padding: 0.75rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-bg);
	box-shadow: var(--shadow);
}

/* Navigation: mobile panel */
.site-nav {
	display: none;
}

.is-nav-open .site-nav {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--header-h));
	overflow-y: auto;
	padding: 0.5rem var(--gutter) 1.5rem;
	border-bottom: 1px solid var(--c-border);
	background: var(--c-bg);
	box-shadow: var(--shadow);
}

.site-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 0.85rem 0.25rem;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-text);
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
}

.site-nav .sub-menu a {
	padding-left: 1.25rem;
	font-weight: 400;
}

.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
	color: var(--c-accent);
}

html.has-nav-open {
	overflow: hidden;
}

/* Navigation: desktop. Seven menu items fit on one line only from about 1200px;
   narrower screens (tablets, small laptops) keep the menu button. */
@media (min-width: 1200px) {
	:root {
		--header-h: 76px;
	}

	.nav-toggle {
		display: none;
	}

	.site-branding {
		flex: 0 0 auto;
	}

	.site-nav,
	.is-nav-open .site-nav {
		display: block;
		position: static;
		flex: 1;
		max-height: none;
		overflow: visible;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	html.has-nav-open {
		overflow: auto;
	}

	.site-nav .menu {
		display: flex;
		justify-content: center;
		gap: 0.25rem;
	}

	.site-nav .menu > li {
		position: relative;
	}

	.site-nav .menu > li > a {
		padding: 0.55rem clamp(0.375rem, 8vw - 90px, 1rem);
		border: 0;
		border-radius: var(--radius-pill);
		font-size: 1rem;
		white-space: nowrap;
	}

	.site-nav .menu > li > a:hover {
		background: var(--c-surface);
	}

	.site-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 10;
		min-width: 230px;
		padding: 0.5rem;
		border: 1px solid var(--c-border);
		border-radius: var(--radius);
		background: var(--c-bg);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(4px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	}

	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav .sub-menu a {
		padding: 0.55rem 0.75rem;
		border: 0;
		border-radius: var(--radius-sm);
	}

	.site-nav .sub-menu a:hover {
		background: var(--c-surface);
	}
}

/* --------------------------------------------------------------------------
   Homepage
   -------------------------------------------------------------------------- */

.hero {
	background: var(--c-surface);
}

.hero__inner {
	display: grid;
	gap: 1.5rem;
	padding-block: clamp(2rem, 1.2rem + 4vw, 4.5rem);
}

.hero__content {
	max-width: 36rem;
}

.hero__title {
	font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);
	margin-bottom: 0.4em;
}

.hero__text {
	margin-bottom: 1.5rem;
	color: var(--c-muted);
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}

.hero__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
}

@media (min-width: 900px) {
	.hero__inner.has-image {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 3rem;
	}
}

/* Key points and the customer photos link: computers only (phones keep a short hero). */
.hero__points,
.hero__proof {
	display: none;
}

@media (min-width: 900px) {
	.hero__points {
		display: grid;
		gap: 0.7rem;
		margin: -0.25rem 0 2rem;
		padding: 0;
		list-style: none;
		font-size: 1.05rem;
		font-weight: 600;
	}

	.hero__points li {
		display: flex;
		align-items: center;
		gap: 0.75rem;
	}

	.hero__points .icon {
		width: 1.75rem;
		height: 1.75rem;
		padding: 0.3rem;
		border-radius: 50%;
		background: var(--c-surface-2);
		color: var(--c-accent);
		stroke-width: 2.5;
	}

	.hero__actions {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 1rem 1.75rem;
	}

	.hero__proof {
		display: inline-flex;
		align-items: center;
		gap: 0.75rem;
		color: var(--c-text);
		font-size: 0.95rem;
		font-weight: 600;
		line-height: 1.3;
		text-decoration: none;
	}

	.hero__proof:hover {
		color: var(--c-accent);
	}

	.hero__proof > .icon {
		width: 1.1rem;
		height: 1.1rem;
		transition: transform 0.2s ease;
	}

	.hero__proof:hover > .icon {
		transform: translateX(3px);
	}

	.hero__faces {
		display: flex;
		flex: none;
	}

	.hero__face {
		width: 2.75rem;
		height: 2.75rem;
		border: 2px solid var(--c-surface);
		border-radius: 50%;
		object-fit: cover;
		background: var(--c-surface-2);
	}

	.hero__face + .hero__face {
		margin-left: -0.8rem;
	}
}

/* Hero slider (2–3 slides): one slide per view, swipe or buttons. Scroll snap, no library. */
.hero__track {
	display: flex;
}

.hero--slider .hero__track {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.hero--slider .hero__track::-webkit-scrollbar {
	display: none;
}

.hero__slide {
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.hero--slider .hero__inner {
	padding-bottom: 1rem;
}

.hero__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding-bottom: 1.25rem;
}

.hero__dots {
	display: flex;
	gap: 0.25rem;
}

.hero__arrow,
.hero__arrow:hover,
.hero__dot,
.hero__dot:hover {
	transform: none;
}

.hero__arrow {
	width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: 50%;
	background: var(--c-bg);
	color: var(--c-text);
}

.hero__arrow:hover {
	border-color: var(--c-text);
	background: var(--c-bg);
	color: var(--c-text);
}

.hero__arrow--prev .icon {
	transform: rotate(180deg);
}

.hero__dot {
	width: 28px;
	min-height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
}

.hero__dot::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c9c1b5;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.hero__dot:hover {
	background: transparent;
}

.hero__dot[aria-current="true"]::before {
	background: var(--c-accent);
	transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
	.hero--slider .hero__track {
		scroll-behavior: auto;
	}
}

.usp-band {
	background: var(--c-surface-2);
}

/* Phones: the same benefits are in the footer band, so the homepage skips them here to keep the
   categories close to the top. */
@media (max-width: 767px) {
	.usp-band {
		display: none;
	}
}

.benefits {
	margin: 0;
	padding: 0;
	list-style: none;
}

.benefits li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.benefits .icon {
	width: 1.35rem;
	height: 1.35rem;
	margin-top: 0.1rem;
	color: var(--c-accent);
}

.benefit-icon {
	display: inline-grid;
	flex: none;
	place-items: center;
}

/* Bands (homepage and footer): icons in pastel bubbles in the logo colours, a little
   wiggle on hover. */
.benefits--band li,
.benefits--footer li {
	align-items: center;
}

.benefits--band .benefit-icon,
.benefits--footer .benefit-icon {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: var(--bubble, #ffe0c2);
	box-shadow: 0 3px 0 rgba(40, 18, 34, 0.12);
	transform: rotate(-4deg);
	transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.benefits--band li:nth-child(4n + 2),
.benefits--footer li:nth-child(4n + 2) {
	--bubble: #ffd2e3;
}

.benefits--band li:nth-child(4n + 2) .benefit-icon,
.benefits--footer li:nth-child(4n + 2) .benefit-icon {
	transform: rotate(5deg);
}

.benefits--band li:nth-child(4n + 3),
.benefits--footer li:nth-child(4n + 3) {
	--bubble: #e6d8ff;
}

.benefits--band li:nth-child(4n + 4),
.benefits--footer li:nth-child(4n + 4) {
	--bubble: #cfe9ff;
}

.benefits--band li:nth-child(4n + 4) .benefit-icon,
.benefits--footer li:nth-child(4n + 4) .benefit-icon {
	transform: rotate(6deg);
}

.benefits--band .benefit-icon .icon,
.benefits--footer .benefit-icon .icon {
	width: 1.45rem;
	height: 1.45rem;
	margin: 0;
	color: var(--c-accent-hover);
	stroke-width: 1.8;
}

.benefits--band li:hover .benefit-icon,
.benefits--footer li:hover .benefit-icon {
	transform: rotate(-10deg) scale(1.12);
}

.benefits--band {
	display: grid;
	gap: 0.75rem 1.5rem;
	padding-block: 1.1rem;
	font-weight: 600;
}

@media (min-width: 700px) {
	.benefits--band {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		justify-items: center;
	}
}

.home-section {
	margin-top: var(--section);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 1.25rem;
}

.section-head h2 {
	margin: 0;
}

.section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 650;
	text-decoration: none;
}

.section-head__link .icon {
	width: 1.1rem;
	height: 1.1rem;
}

/* Tiles share the row evenly (up to 4 per row, see --cat-cols in front-page.php)
   and an incomplete last row is centred. */
.category-grid {
	--cat-gap: 1rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--cat-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-tile {
	flex: 0 0 calc((100% - var(--cat-gap)) / 2);
	min-width: 0;
}

/* Phones and tablets: one row. It is centred when the tiles fit and scrolls sideways
   when they do not (the auto margins collapse, so scrolling starts at the first tile). */
@media (max-width: 899px) {
	.category-grid {
		--cat-gap: 0.75rem;
		flex-wrap: nowrap;
		justify-content: flex-start;
		padding-bottom: 0.25rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.category-grid::-webkit-scrollbar {
		display: none;
	}

	.category-tile {
		flex: 1 1 0;
		min-width: 6.25rem;
		max-width: 12rem;
		scroll-snap-align: start;
		text-align: center;
	}

	.category-tile:first-child {
		margin-inline-start: auto;
	}

	.category-tile:last-child {
		margin-inline-end: auto;
	}

	.category-tile__name {
		display: block;
		font-size: 0.9rem;
		line-height: 1.3;
	}
}

@media (min-width: 900px) {
	.category-grid {
		--cat-gap: 1.5rem;
	}

	.category-tile {
		flex-basis: calc((100% - (var(--cat-cols, 4) - 1) * var(--cat-gap)) / var(--cat-cols, 4));
	}
}

.category-tile a {
	display: block;
	color: var(--c-text);
	text-decoration: none;
}

.category-tile__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	margin-bottom: 0.6rem;
	border-radius: var(--radius);
	background: var(--c-surface);
}

.category-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.category-tile a:hover img {
	transform: scale(1.03);
}

.category-tile__name {
	font-size: 1.05rem;
	font-weight: 650;
}

.home-seo {
	margin-top: var(--section);
	padding-block: var(--section);
	background: var(--c-surface);
}

/* --------------------------------------------------------------------------
   Content: pages, posts, cards, pagination
   -------------------------------------------------------------------------- */

.page-header,
.entry-header {
	margin-bottom: 1.5rem;
}

.entry-meta {
	color: var(--c-muted);
	font-size: var(--fs-small);
}

.entry-media {
	margin: 0 0 1.75rem;
}

.entry-media img {
	width: 100%;
	border-radius: var(--radius);
}

.entry-content {
	overflow-wrap: break-word;
}

.entry-content > * {
	max-width: 70ch;
}

/* Product grids, cart and checkout use the full container width */
.entry-content > .woocommerce,
.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > [class*="wp-block-woocommerce-"] {
	max-width: none;
}

.entry-content > * + h2 {
	margin-top: 2.25rem;
}

.entry-content > * + h3 {
	margin-top: 1.75rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

.entry-content img {
	border-radius: var(--radius-sm);
}

.entry-content figcaption,
.wp-element-caption {
	margin-top: 0.5rem;
	color: var(--c-muted);
	font-size: var(--fs-small);
}

.entry-content blockquote {
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 4px solid var(--c-accent);
	font-size: 1.1rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
}

.entry-content th {
	background: var(--c-surface);
}

.archive-description {
	color: var(--c-muted);
	max-width: 70ch;
}

.post-grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	margin-bottom: 2rem;
}

/* Homepage guides: one row. Phones and tablets scroll it sideways (the next card peeks in),
   computers show all three side by side. */
@media (max-width: 899px) {
	.post-grid--rail {
		grid-template-columns: none;
		grid-auto-columns: 80%;
		grid-auto-flow: column;
		gap: 0.85rem;
		margin-bottom: 0;
		padding-bottom: 0.25rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.post-grid--rail::-webkit-scrollbar {
		display: none;
	}

	.post-grid--rail > .card {
		scroll-snap-align: start;
	}

	.post-grid--rail .card__excerpt {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	.post-grid--rail {
		grid-auto-columns: 46%;
	}
}

@media (min-width: 900px) {
	.post-grid--rail {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-bg);
	transition: box-shadow 0.2s ease;
}

.card:hover {
	box-shadow: var(--shadow-sm);
}

.card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.card__body {
	padding: 1.1rem 1.25rem 1.25rem;
}

.card__title {
	font-size: 1.15rem;
}

.card__title a {
	color: var(--c-text);
	text-decoration: none;
}

.card__title a:hover {
	color: var(--c-accent);
}

.card__excerpt {
	color: var(--c-muted);
	font-size: 0.95rem;
}

.card__excerpt p {
	margin: 0;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.nav-links .page-numbers,
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--tap);
	height: var(--tap);
	padding: 0 0.75rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-pill);
	color: var(--c-text);
	text-decoration: none;
}

.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.nav-links .current,
.woocommerce-pagination .page-numbers .current {
	border-color: var(--c-accent);
	background: var(--c-accent);
	color: var(--c-accent-contrast);
}

.post-navigation .nav-links {
	justify-content: space-between;
	margin-top: 2rem;
}

.post-navigation a {
	text-decoration: none;
}

.not-found {
	text-align: center;
}

.not-found .woocommerce-product-search,
.not-found .search-form {
	max-width: 480px;
	margin: 1.5rem auto;
}

/* --------------------------------------------------------------------------
   Customer photos (gallery page wall, homepage mosaic, product page strip, lightbox)
   -------------------------------------------------------------------------- */

.ugc {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ugc__item {
	position: relative;
}

.ugc__link {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-surface);
	color: #fff;
	text-decoration: none;
}

.ugc__img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ugc__link:focus-visible {
	outline: 3px solid var(--c-accent);
	outline-offset: 3px;
}

/* Label on the photo: which bed it is and its price, links to the product. */
.ugc__tag {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	left: 0.5rem;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.5rem;
	padding: 0.45rem 2rem 0.45rem 0.65rem;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.93);
	box-shadow: var(--shadow-sm);
	color: var(--c-text);
	font-size: 0.8rem;
	line-height: 1.3;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

span.ugc__tag {
	padding-right: 0.65rem;
}

.ugc__name {
	font-weight: 650;
}

.ugc__price {
	color: var(--c-accent);
	font-weight: 700;
	white-space: nowrap;
}

.ugc__tag .icon {
	position: absolute;
	top: 50%;
	right: 0.55rem;
	width: 1rem;
	height: 1rem;
	color: var(--c-accent);
	transform: translateY(-50%);
	transition: right 0.3s ease;
}

a.ugc__tag:hover {
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

a.ugc__tag:hover .icon {
	right: 0.35rem;
}

a.ugc__tag:focus-visible {
	outline: 3px solid var(--c-accent);
	outline-offset: 2px;
}

@media (hover: hover) {
	.ugc__link:hover .ugc__img {
		transform: scale(1.06);
	}
}

@media (min-width: 700px) {
	.ugc__tag {
		right: 0.75rem;
		bottom: 0.75rem;
		left: 0.75rem;
		font-size: 0.875rem;
	}
}

/* Gallery page: masonry wall, photos keep their own proportions. */
.ugc-wrap {
	margin-block: 1.5rem 2.5rem;
}

.entry-content .ugc {
	padding: 0;
}

.ugc--wall {
	columns: 2;
	column-gap: 0.75rem;
}

.ugc--wall .ugc__item {
	margin-bottom: 0.75rem;
	break-inside: avoid;
}

/* Phones, two narrow columns: the label sits under the photo instead of covering it. */
@media (max-width: 699px) {
	.ugc--wall .ugc__tag {
		position: relative;
		inset: auto;
		margin-top: 0.4rem;
		padding: 0 1.25rem 0 0.15rem;
		background: none;
		box-shadow: none;
		font-size: 0.78rem;
	}

	.ugc--wall .ugc__tag .icon {
		right: 0;
	}

	.ugc--wall a.ugc__tag:hover {
		box-shadow: none;
		transform: none;
	}
}

@media (min-width: 700px) {
	.ugc--wall {
		columns: 3;
		column-gap: 1.25rem;
	}

	.ugc--wall .ugc__item {
		margin-bottom: 1.25rem;
	}
}

/* With JavaScript the wall fills in reading order (left to right, then down), so the
   first photos sit at the top: 1px grid rows, each photo spans its own height (--rows, gallery.js). */
.ugc--wall.is-masonry {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1px;
	row-gap: 0;
	columns: auto;
}

@media (min-width: 700px) {
	.ugc--wall.is-masonry {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ugc--wall.is-masonry .ugc__item {
	align-self: start;
	grid-row-end: span var(--rows, 1);
	margin-bottom: 0;
}

/* Homepage: swipeable strip on phones, mosaic with one large photo from 700px. */
.ugc--home,
.ugc--strip {
	display: grid;
	grid-auto-columns: 72%;
	grid-auto-flow: column;
	gap: 0.75rem;
	padding-bottom: 0.25rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ugc--home::-webkit-scrollbar,
.ugc--strip::-webkit-scrollbar {
	display: none;
}

.ugc--home .ugc__item,
.ugc--strip .ugc__item {
	scroll-snap-align: start;
}

.ugc--home .ugc__link,
.ugc--strip .ugc__link {
	height: 100%;
	aspect-ratio: 4 / 5;
}

.ugc--home .ugc__img,
.ugc--strip .ugc__img {
	height: 100%;
	object-fit: cover;
}

@media (min-width: 700px) {
	.ugc--home {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: repeat(2, clamp(200px, 19vw, 280px));
		grid-auto-flow: row;
		gap: 1rem;
		overflow: visible;
	}

	.ugc--home .ugc__item:first-child {
		grid-row: span 2;
		grid-column: span 2;
	}

	.ugc--home .ugc__link {
		aspect-ratio: auto;
	}

	.ugc--strip {
		grid-auto-columns: 260px;
		gap: 1rem;
	}
}

/* Last homepage tile: "+5" more photos, links to the gallery page. */
.ugc__more {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	border-radius: var(--radius);
	background: rgba(40, 18, 34, 0.5);
	font-size: clamp(1.8rem, 1.2rem + 2vw, 2.75rem);
	font-weight: 700;
	transition: background 0.3s ease;
}

.ugc__link--more:hover .ugc__more {
	background: rgba(40, 18, 34, 0.35);
}

/* Photos fade up as they scroll into view (class added by gallery.js). */
.ugc--reveal .ugc__item {
	opacity: 0;
	transform: translateY(1.25rem) scale(0.98);
	transition: opacity 0.6s ease var(--d, 0ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}

.ugc--reveal .ugc__item.is-in {
	opacity: 1;
	transform: none;
}

.product-ugc {
	margin-top: var(--section);
}

/* Invitation under the wall (a Group block with the class "ugc-cta"). */
.entry-content > .ugc-cta {
	max-width: none;
	margin-block: 1rem 0;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--radius);
	background: var(--c-surface-2);
	text-align: center;
}

.ugc-cta :is(h2, h3, p) {
	max-width: 46ch;
	margin-inline: auto;
}

.ugc-cta h2 {
	margin-top: 0;
}

.ugc-cta p:last-child {
	margin-bottom: 0;
}

/* Lightbox */
html.has-lightbox {
	overflow: hidden;
}

.lightbox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 4.5rem 1rem 1.25rem;
	border: 0;
	background: rgba(18, 12, 16, 0.94);
	color: #fff;
}

.lightbox::backdrop {
	background: transparent;
}

.lightbox[open] {
	display: grid;
	place-items: center;
	animation: lightbox-in 0.25s ease;
}

.lightbox__fig {
	display: grid;
	justify-items: center;
	gap: 0.85rem;
	max-width: min(100%, 1100px);
	margin: 0;
}

.lightbox__img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100dvh - 11rem);
	border-radius: var(--radius-sm);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	transition: opacity 0.2s ease;
}

.lightbox__img.is-loading {
	opacity: 0.35;
}

.lightbox__cap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
	font-weight: 600;
	text-align: center;
}

.lightbox__product {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.15rem 0.6rem;
	padding: 0.6rem 1.1rem;
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--c-text);
	text-decoration: none;
}

.lightbox [hidden] {
	display: none;
}

.lightbox__product:hover {
	background: var(--c-surface);
}

.lightbox__price {
	color: var(--c-accent);
	font-weight: 700;
}

.lightbox__product .icon {
	width: 1.1rem;
	height: 1.1rem;
	color: var(--c-accent);
}

.lightbox__count {
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

.lightbox__btn {
	position: fixed;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
	background: rgba(255, 255, 255, 0.28);
}

.lightbox__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.lightbox__btn .icon {
	width: 1.4rem;
	height: 1.4rem;
}

.lightbox__btn--close {
	top: 1rem;
	right: 1rem;
}

.lightbox__btn--prev,
.lightbox__btn--next {
	top: 50%;
	translate: 0 -50%;
}

.lightbox__btn--prev {
	left: 1rem;
}

.lightbox__btn--prev .icon {
	transform: scaleX(-1);
}

.lightbox__btn--next {
	right: 1rem;
}

.lightbox.is-single .lightbox__btn--prev,
.lightbox.is-single .lightbox__btn--next {
	display: none;
}

/* Phones: arrows next to each other at the bottom (swipe works too). */
@media (max-width: 699px) {
	.lightbox {
		padding-bottom: 5.5rem;
	}

	.lightbox__img {
		max-height: calc(100dvh - 14rem);
	}

	.lightbox__btn--prev,
	.lightbox__btn--next {
		top: auto;
		bottom: 1.25rem;
		translate: none;
	}

	.lightbox__btn--prev {
		left: calc(50% - 3.5rem);
	}

	.lightbox__btn--next {
		right: calc(50% - 3.5rem);
	}
}

@keyframes lightbox-in {
	from {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ugc__img,
	.ugc__tag,
	.lightbox[open] {
		transition: none;
		animation: none;
	}

	.ugc__link:hover .ugc__img {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	padding-block: 3rem 1.5rem;
	background: var(--c-surface);
	font-size: 0.95rem;
}

/* Accent band with short promises at the top of the footer. */
.site-footer:has(.footer-band) {
	padding-top: 0;
}

.footer-band {
	margin-bottom: 3rem;
	background: var(--c-accent);
	color: var(--c-accent-contrast);
}

.benefits--footer {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem 1.25rem;
	padding-block: 1.4rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}


@media (min-width: 900px) {
	.benefits--footer {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		justify-items: center;
		font-size: 1rem;
	}
}

.footer-widgets {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	margin-bottom: 2.5rem;
}

.footer-widget__title {
	margin-bottom: 0.75rem;
	font-size: 1rem;
}

.footer-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-widget li {
	margin-bottom: 0.4rem;
}

.footer-widget a,
.footer-ask a {
	color: var(--c-text);
}

/* "Masz pytania?": contact section at the top of the footer, the form on the right
   (phones: heading, form, then the contact details). */
.footer-band:has(+ .footer-ask) {
	margin-bottom: 0;
}

.footer-ask {
	position: relative;
	overflow: hidden;
	margin-bottom: 2.5rem;
	padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
	border-bottom: 1px solid var(--c-border);
	scroll-margin-top: 5rem;
}

.footer-ask__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-areas: "title" "form" "info";
	gap: 1.75rem;
}

.footer-ask__title {
	grid-area: title;
	margin: 0;
	font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
	line-height: 1.08;
}

.footer-ask__form {
	grid-area: form;
}

.footer-ask__info {
	grid-area: info;
	font-size: 1.05rem;
}

@media (min-width: 900px) {
	.footer-ask__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		grid-template-rows: auto 1fr;
		grid-template-areas: "title form" "info form";
		gap: 2rem clamp(2rem, 6vw, 6rem);
	}

	.footer-ask__info {
		font-size: 1.15rem;
	}
}

.footer-ask .footer-contact li {
	gap: 0.7rem;
	margin-bottom: 0.65rem;
}

.footer-ask .footer-contact .icon {
	width: 1.35rem;
	height: 1.35rem;
	margin-top: 0.2rem;
}

.footer-ask .social-links {
	margin-top: 1.5rem;
}

/* Decorative shapes (logo pastels). */
.footer-ask__doodle {
	position: absolute;
	z-index: 0;
	pointer-events: none;
}

.footer-ask__doodle--sun {
	bottom: -3rem;
	left: -4rem;
	width: 13rem;
}

.footer-ask__doodle--smile {
	top: -3.5rem;
	right: -3.5rem;
	width: 15rem;
}

@media (max-width: 899px) {
	.footer-ask__doodle--sun {
		display: none;
	}

	.footer-ask__doodle--smile {
		top: -2.5rem;
		right: -2.75rem;
		width: 8rem;
	}
}

/* Contact form */
.contact-form {
	display: grid;
	gap: 0.75rem 1rem;
	align-content: start;
}

.contact-form p {
	margin: 0;
}

.contact-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
}

.contact-form textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.contact-form__req {
	color: var(--c-accent);
}

.footer-ask .contact-form {
	gap: 1rem;
	max-width: 42rem;
}

.footer-ask .contact-form label {
	font-size: 0.95rem;
}

.footer-ask .contact-form input,
.footer-ask .contact-form textarea {
	min-height: 3.25rem;
	padding: 0.8rem 1rem;
	border-radius: 12px;
	background: #fff;
}

.footer-ask .contact-form textarea {
	min-height: 8.5rem;
}

.footer-ask .contact-form .button {
	min-width: 9.5rem;
}

.contact-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}

.contact-form__privacy {
	flex: 1 1 14rem;
	color: var(--c-muted);
	font-size: 0.8rem;
	line-height: 1.4;
}

.contact-form__status {
	padding: 0.7rem 0.9rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.contact-form__status.is-ok {
	background: #e8f5ee;
	color: var(--c-success);
}

.contact-form__status.is-error {
	background: #fdecea;
	color: var(--c-sale);
}

/* Hidden field for spam bots. */
.contact-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.footer-contact {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-bottom: 0.45rem;
}

.footer-contact .icon {
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.15rem;
	color: var(--c-accent);
}

.social-links {
	display: flex;
	gap: 0.6rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.footer-ask .social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--tap);
	height: var(--tap);
	border-radius: 50%;
	background: var(--c-accent);
	color: #fff;
	transition: background-color 0.15s ease;
}

.footer-ask .social-links a:hover,
.footer-ask .social-links a:focus-visible {
	background: var(--c-accent-hover);
}

.social-links .icon {
	width: 1.35rem;
	height: 1.35rem;
}

.footer-legal {
	font-style: normal;
	color: var(--c-muted);
	font-size: var(--fs-small);
	line-height: 1.6;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-border);
	color: var(--c-muted);
	font-size: var(--fs-small);
}

.footer-copy {
	margin: 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	color: var(--c-muted);
}

/* ==========================================================================
   WooCommerce
   ========================================================================== */

/* Notices */
.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--c-accent);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	list-style: none;
}

.woocommerce-message {
	border-left-color: var(--c-success);
}

.woocommerce-error {
	display: block;
	border-left-color: var(--c-sale);
}

.woocommerce-message .button,
.woocommerce-info .button {
	order: 2;
	min-height: 40px;
	padding: 0.5rem 1.1rem;
}

/* Breadcrumb */
.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	color: var(--c-muted);
	font-size: var(--fs-small);
}

.breadcrumb li + li::before {
	content: "/";
	margin-right: 0.25rem;
	color: #b9b2a8;
}

.breadcrumb a {
	color: var(--c-muted);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--c-accent);
	text-decoration: underline;
}

/* Phones and tablets: one line that scrolls sideways, running to the screen edge and fading out
   there, so a long product name does not push the page down. */
@media (max-width: 899px) {
	.breadcrumb ol {
		flex-wrap: nowrap;
		margin-right: calc(-1 * var(--gutter));
		padding-right: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		white-space: nowrap;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--gutter)), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - var(--gutter)), transparent);
	}

	.breadcrumb ol::-webkit-scrollbar {
		display: none;
	}

	.breadcrumb li {
		flex: none;
	}
}

/* Shop / category header */
.woocommerce-products-header {
	margin-bottom: 1rem;
}

.woocommerce-products-header .page-title {
	margin-bottom: 0.4em;
}

.term-description,
.page-description {
	max-width: 70ch;
	color: var(--c-muted);
}

.term-description p:last-child,
.page-description p:last-child {
	margin-bottom: 0;
}

/* Category shortcuts (chips) */
.category-links ul {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	margin: 1rem 0 0;
	padding: 0 0 0.25rem;
	list-style: none;
	scrollbar-width: thin;
}

.category-links a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.4rem 1rem;
	border-radius: var(--radius-pill);
	background: var(--c-surface-2);
	color: var(--c-text);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.category-links a:hover {
	background: var(--c-accent-soft);
	color: var(--c-accent-hover);
}

/* Sorting bar */
.woocommerce-result-count {
	margin: 0;
	color: var(--c-muted);
	font-size: var(--fs-small);
}

.woocommerce-ordering select {
	min-height: var(--tap);
}

.woocommerce-result-count {
	margin: 1.25rem 0 0.5rem;
}

.woocommerce-ordering {
	margin: 0 0 1.25rem;
}

/* Category filter (e.g. mattress sizes): looks like the size fold on product pages. */
.attr-filter {
	margin: 0.5rem 0 0;
}

.attr-filter__toggle {
	display: block;
	list-style: none;
	cursor: pointer;
}

.attr-filter__toggle::-webkit-details-marker {
	display: none;
}

.attr-filter__bar {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	min-height: 56px;
	padding: 0.55rem 1rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
	transition: border-color 0.15s ease;
}

.attr-filter__toggle:hover .attr-filter__bar {
	border-color: #b9b2a8;
}

.attr-filter[open] .attr-filter__bar {
	border-color: var(--c-text);
}

.attr-filter__bar > .icon {
	width: 1.35rem;
	height: 1.35rem;
	color: var(--c-accent);
}

.attr-filter__action {
	color: var(--c-accent);
	font-size: 0.9rem;
	font-weight: 650;
}

.attr-filter__action::after {
	content: attr(data-show);
}

.attr-filter[open] .attr-filter__action::after {
	content: attr(data-hide);
}

.attr-filter[open] .fold__chev {
	margin-bottom: -0.25rem;
	transform: rotate(-135deg);
}

.attr-filter__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
	gap: 0.5rem;
	margin: 0.6rem 0 0;
	padding: 0;
	list-style: none;
}

.attr-filter .attr-filter__opt {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 0.45rem 0.5rem;
	font-size: 0.95rem;
	text-decoration: none;
	white-space: nowrap;
}

.attr-filter .attr-filter__opt.is-selected {
	background: var(--c-surface-2);
	font-weight: 650;
}

@media (min-width: 900px) {
	.attr-filter__bar {
		width: fit-content;
		min-width: 20rem;
	}

	.attr-filter__list {
		grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
	}
}

@media (min-width: 600px) {
	.woocommerce-result-count,
	.woocommerce-ordering {
		display: inline-block;
		margin: 1.25rem 0;
		line-height: var(--tap);
	}

	.woocommerce-ordering {
		float: right;
	}

	.woocommerce-ordering select {
		width: auto;
	}
}

/* Product grid */
ul.products {
	clear: both;
	display: grid;
	gap: 1.75rem 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.25rem 1.5rem;
	}
}

@media (min-width: 1100px) {
	ul.products.columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
}

.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: var(--c-text);
	text-decoration: none;
}

ul.products li.product img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	margin-bottom: 0.85rem;
	padding: 4%;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	transition: border-color 0.2s ease;
}

ul.products li.product a:hover img {
	border-color: #cfc6b9;
}

/* Interior photos: fill the tile instead of showing the whole product on white */
.lengva-img-cover ul.products li.product img {
	object-fit: cover;
	padding: 0;
	background: var(--c-surface);
}

.woocommerce-loop-product__title,
.woocommerce-loop-category__title {
	margin: 0 0 0.3rem;
	font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
	font-weight: 600;
	line-height: 1.35;
}

ul.products li.product .price {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 1.05rem;
}

.card-delivery {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.8rem;
	color: var(--c-success);
	font-size: 0.85rem;
	font-weight: 600;
}

.card-delivery .icon {
	width: 1.05rem;
	height: 1.05rem;
}

ul.products li.product .button {
	align-self: flex-start;
	min-height: 42px;
	padding: 0.5rem 1.1rem;
	border-color: var(--c-accent);
	background: transparent;
	color: var(--c-accent);
	font-size: 0.9rem;
}

ul.products li.product .button:hover {
	background: var(--c-accent);
	color: var(--c-accent-contrast);
}

ul.products li.product .added_to_cart {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.9rem;
}

/* Homepage "Popular right now": one row that scrolls sideways (swipe, trackpad or the arrows).
   Phones show 2 cards and the edge of the next one, tablets 3, computers 4. */
.product-rail ul.products {
	--rail: 2.2;
	--rail-gap: 0.85rem;
	grid-template-columns: none;
	grid-auto-columns: calc((100% - (var(--rail) - 1) * var(--rail-gap)) / var(--rail));
	grid-auto-flow: column;
	gap: var(--rail-gap);
	margin-bottom: 0;
	padding-bottom: 0.25rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.product-rail ul.products::-webkit-scrollbar {
	display: none;
}

.product-rail ul.products li.product {
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.product-rail ul.products {
		--rail: 3.25;
		--rail-gap: 1.25rem;
	}
}

@media (min-width: 1100px) {
	.product-rail ul.products {
		--rail: 4;
		--rail-gap: 1.5rem;
	}
}

.section-head__end {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.rail-nav {
	display: flex;
	gap: 0.5rem;
}

.rail-nav[hidden] {
	display: none;
}

.rail-nav__btn,
.rail-nav__btn:hover,
.rail-nav__btn:active {
	width: 42px;
	min-height: 42px;
	padding: 0;
	border-color: var(--c-border);
	background: var(--c-bg);
	color: var(--c-text);
	transform: none;
}

.rail-nav__btn:hover:not(:disabled) {
	border-color: var(--c-text);
}

.rail-nav__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.rail-nav__btn--prev .icon {
	transform: rotate(180deg);
}

/* Phones swipe; the arrows are for a mouse. */
@media (max-width: 767px) {
	.rail-nav {
		display: none;
	}
}

.button.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Sale badge */
.onsale {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 2;
	padding: 0.25rem 0.65rem;
	border-radius: var(--radius-pill);
	background: var(--c-sale);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

/* Price */
.price {
	color: var(--c-text);
	font-weight: 700;
}

.price del {
	margin-right: 0.35rem;
	color: var(--c-muted);
	font-weight: 400;
}

.price ins {
	color: var(--c-sale);
	text-decoration: none;
}

/* Star rating (no icon font) */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5.6em;
	height: 1.1em;
	overflow: hidden;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	line-height: 1.1;
}

.star-rating::before,
.star-rating span::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
	letter-spacing: 0.12em;
}

.star-rating::before {
	color: #ddd6cb;
}

.star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	height: 1.1em;
	overflow: hidden;
	padding-top: 1.5em;
}

.star-rating span::before {
	color: var(--c-star);
}

/* Review form stars */
p.stars a {
	position: relative;
	display: inline-block;
	width: 1.6em;
	height: 1.6em;
	overflow: hidden;
	text-indent: -999em;
	text-decoration: none;
}

p.stars a::before {
	content: "★";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	text-indent: 0;
	color: #ddd6cb;
	font-size: 1.5rem;
	line-height: 1;
}

p.stars:hover a::before,
p.stars.selected a.active::before,
p.stars.selected a:not(.active)::before {
	color: var(--c-star);
}

p.stars a:hover ~ a::before,
p.stars.selected a.active ~ a::before {
	color: #ddd6cb;
}

/* SEO text below the product list */
.seo-text {
	clear: both;
	max-width: 760px;
	margin: var(--section) auto 0;
	padding-top: var(--section);
	border-top: 1px solid var(--c-border);
}

/* --------------------------------------------------------------------------
   Single product
   -------------------------------------------------------------------------- */

.single-product div.product {
	position: relative;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.single-product div.product {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
		gap: 2.5rem 3.5rem;
		align-items: start;
	}

	.single-product div.product > *:not(.woocommerce-product-gallery):not(.summary):not(.onsale):not(.sticky-cart) {
		grid-column: 1 / -1;
	}

}

/* Gallery */
.woocommerce-product-gallery {
	position: relative;
	min-width: 0;
	/* WooCommerce hides the gallery until its slider script has run; showing the first photo
	   at once makes the page appear sooner. */
	opacity: 1 !important;
	container-type: inline-size;
}

/* While the slider is being set up its slides have no width yet; they stay exactly as wide
   as the gallery, so the photo does not balloon for a moment and push the page down. */
.woocommerce-product-gallery__image:not([style]) {
	width: 100cqw;
}

/* The photo viewer's own styles load later; until then it stays hidden. */
.pswp:not(.pswp--open) {
	display: none;
}

/* Until the slider starts, only the first photo shows and room is kept for the thumbnail
   row, so the product details next to or below it do not jump while the page loads. */
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) {
	display: none;
}

.woocommerce-product-gallery:has(.woocommerce-product-gallery__image + .woocommerce-product-gallery__image):not(:has(.flex-control-thumbs))::after {
	content: "";
	display: block;
	margin-top: 0.75rem;
	padding-top: calc((100% - 2rem) / 4.5 + 0.35rem);
}

@media (min-width: 900px) {
	.woocommerce-product-gallery:has(.woocommerce-product-gallery__image + .woocommerce-product-gallery__image):not(:has(.flex-control-thumbs))::after {
		padding-top: calc((100% - 2.5rem) / 5.5 + 0.35rem);
	}
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	background: #fff;
}

.woocommerce-product-gallery .flex-viewport {
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

/* Thumbnails: one row that scrolls sideways; part of the next one shows when there are more. */
.woocommerce-product-gallery .flex-control-thumbs {
	--thumbs: 4.5;
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--thumbs) - 0.5) * 0.5rem) / var(--thumbs));
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0 0 0.35rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
	scroll-snap-align: start;
}

@media (min-width: 900px) {
	.woocommerce-product-gallery .flex-control-thumbs {
		--thumbs: 5.5;
	}
}

.woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	border: 2px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: #fff;
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--c-accent);
	opacity: 1;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 5;
	width: var(--tap);
	height: var(--tap);
	overflow: hidden;
	border-radius: 50%;
	background: var(--c-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2125' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: var(--shadow-sm);
	font-size: 0;
	text-indent: -999em;
}

/* Summary */
.summary .product_title {
	margin-bottom: 0.4rem;
	font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.15rem);
}

.summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	font-size: var(--fs-small);
}

.summary .woocommerce-product-rating .star-rating {
	margin: 0;
}

.summary .woocommerce-review-link {
	color: var(--c-muted);
}

.summary > .price,
.price-block .price {
	margin-bottom: 0.5rem;
	font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.85rem);
}

/* Price block below the product options, right above quantity + add to cart */
.price-block {
	flex: 1 1 100%;
	margin: 0.25rem 0 1rem;
	padding: 1rem 1.1rem;
	border-radius: var(--radius);
	background: var(--c-surface);
}

.price-block .price {
	margin: 0 0 0.35rem;
}

.price-block .delivery-note {
	margin: 0;
}

/* Omnibus line and the note under the price ("Price includes VAT") */
.price-omnibus,
.price-note {
	margin: 0 0 0.5rem;
	color: var(--c-muted);
	font-size: var(--fs-small);
	line-height: 1.4;
}

.price-omnibus[hidden] {
	display: none;
}

.price-omnibus--card {
	margin: -0.1rem 0 0.35rem;
	font-size: 0.78rem;
}

/* Promotion code the cart adds by itself: a green line under the price */
.promo-note {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 0.6rem;
	padding: 0.35rem 0.7rem;
	border-radius: 6px;
	background: var(--c-success-soft);
	color: var(--c-success);
	font-size: var(--fs-small);
	font-weight: 600;
	line-height: 1.35;
}

.promo-note .icon {
	width: 1rem;
	height: 1rem;
	flex: none;
}

.promo-note strong {
	font-weight: 800;
	letter-spacing: 0.04em;
}

.promo-note--card {
	margin: 0 0 0.4rem;
	padding: 0.2rem 0.5rem;
	font-size: 0.78rem;
}

.promo-note--card .icon {
	width: 0.9rem;
	height: 0.9rem;
}

/* Cart and checkout show only the price paid: a crossed-out price there would need the
   Omnibus line too. */
.wc-block-components-product-price__regular,
.wc-block-components-sale-badge {
	display: none !important;
}

/* The discount line in the cart and checkout in green, the code in capitals */
.wc-block-components-totals-discount .wc-block-components-totals-item__label,
.wc-block-components-totals-discount .wc-block-components-totals-item__value,
.cart-discount th,
.cart-discount td,
.cart-discount .woocommerce-Price-amount {
	color: var(--c-success);
	font-weight: 700;
}

.wc-block-components-totals-discount .wc-block-components-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.15rem 0.2rem 0.15rem 0.75rem;
	border-color: transparent;
	background: var(--c-success-soft);
	color: var(--c-success);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wc-block-components-totals-discount .wc-block-components-chip__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-height: 32px;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-success);
}

.wc-block-components-totals-discount .wc-block-components-chip__remove:hover,
.wc-block-components-totals-discount .wc-block-components-chip__remove:focus-visible {
	background: rgba(31, 122, 77, 0.12);
}

.wc-block-components-totals-discount .wc-block-components-chip svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.single_variation_wrap .price-block + .woocommerce-variation .woocommerce-variation-price {
	display: none;
}

.delivery-note {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0 0 1.25rem;
	color: var(--c-success);
	font-size: 0.95rem;
	font-weight: 600;
}

.delivery-note .icon {
	width: 1.3rem;
	height: 1.3rem;
	margin-top: 0.05rem;
}

.woocommerce-product-details__short-description {
	margin-bottom: 1rem;
}

.product-dimensions {
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	font-size: 0.95rem;
}

/* Sizes kept only on the variations: hidden until a size is chosen. */
.product-dimensions:has(.product_dimensions:empty) {
	display: none;
}

.summary .stock {
	font-weight: 600;
}

.summary .in-stock {
	color: var(--c-success);
}

.summary .out-of-stock {
	color: var(--c-sale);
}

/* Variations */
table.variations {
	display: block;
	width: 100%;
	margin-bottom: 1rem;
	border: 0;
}

table.variations tbody,
table.variations tr,
table.variations th,
table.variations td {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
}

table.variations tr {
	margin-bottom: 1rem;
}

table.variations th.label {
	margin-bottom: 0.35rem;
}

table.variations label {
	margin: 0;
}

.reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	color: var(--c-muted);
	font-size: var(--fs-small);
}

.woocommerce-variation-price {
	margin-bottom: 0.75rem;
	font-size: 1.35rem;
}

.woocommerce-variation-availability p {
	margin-bottom: 0.75rem;
}

/* Option buttons ("chips") and fabric swatches – used instead of dropdowns */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chip,
.chip:hover,
.chip:active {
	transform: none;
}

.chip {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	min-height: 48px;
	padding: 0.5rem 1rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
	color: var(--c-text);
	font: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (max-width: 599px) {
	.chip {
		padding: 0.5rem 0.75rem;
	}
}

.chip:hover {
	border-color: #b9b2a8;
	background: var(--c-bg);
	color: var(--c-text);
}

.chip[aria-checked="true"],
.chip.is-selected {
	border-color: var(--c-text);
	box-shadow: inset 0 0 0 2px var(--c-text);
}

.chip:disabled,
.chip.is-unavailable {
	opacity: 0.45;
	text-decoration: line-through;
	cursor: not-allowed;
}

.chip__price {
	margin-top: 0.15rem;
	color: var(--c-muted);
	font-size: 0.78rem;
	font-weight: 500;
}

/* Long option lists (more than 6, e.g. sizes) are folded into one row that opens on tap */
.fold,
.fold:hover,
.fold:active {
	transform: none;
}

.fold {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 56px;
	padding: 0.55rem 1rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
	color: var(--c-text);
	font-weight: 400;
	text-align: left;
}

.fold:hover {
	border-color: #b9b2a8;
	background: var(--c-bg);
	color: var(--c-text);
}

.fold[aria-expanded="true"] {
	border-color: var(--c-text);
}

.has-error .fold {
	border-color: var(--c-sale);
}

.fold__main {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.fold__value {
	font-weight: 650;
}

.fold__value--empty {
	font-weight: 500;
}

.fold__meta {
	color: var(--c-muted);
	font-size: 0.85rem;
}

.fold__action {
	color: var(--c-accent);
	font-size: 0.9rem;
	font-weight: 650;
}

.fold__chev {
	width: 9px;
	height: 9px;
	margin: 0 0.15rem 0.25rem 0;
	border-right: 2px solid currentcolor;
	border-bottom: 2px solid currentcolor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.fold[aria-expanded="true"] .fold__chev {
	margin-bottom: -0.25rem;
	transform: rotate(-135deg);
}

.fold + .chips {
	margin-top: 0.6rem;
}

.fold + .chips[hidden] {
	display: none;
}

/* Options with pictures (e.g. left / right corner): picture cards */
.chips--media {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	max-width: 520px;
}

.chip--media {
	min-height: 0;
	padding: 6px 6px 8px;
}

.chip__img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 0.4rem;
	border-radius: 6px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (max-width: 599px) {
	.chips--media {
		grid-template-columns: 1fr 1fr;
	}
}

/* Four picture cards (e.g. side barrier: none / left / right / both) share one row. */
@media (min-width: 600px) {
	.chips--media:has(> :nth-child(4):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		max-width: 600px;
	}
}

/* An option with a picture among options without one: small thumbnail, enlarged on hover / tap */
.chip--thumb {
	flex-direction: row;
	gap: 0.6rem;
	padding-left: 0.4rem;
	text-align: left;
}

.chip__thumb {
	flex: 0 0 auto;
	width: 48px;
	height: 36px;
	border-radius: 4px;
	object-fit: cover;
}

.chip__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.field legend,
.field > label {
	font-size: 1.05rem;
}

.swatch-group + .swatch-group {
	margin-top: 0.75rem;
}

.swatch-group__title {
	margin: 0 0 0.4rem;
	color: var(--c-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

.swatches {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 64px));
	gap: 0.5rem;
}

.swatch,
.swatch:hover,
.swatch:active {
	transform: none;
}

.swatch {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	min-height: 0;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 10px;
	box-shadow: 0 0 0 1px var(--c-border);
	background-size: cover;
	cursor: pointer;
	transition: box-shadow 0.15s ease;
}

.swatch:hover {
	box-shadow: 0 0 0 1px #9c958b;
}

.swatch[aria-checked="true"],
.swatch.is-selected {
	box-shadow: 0 0 0 3px var(--c-text);
}

/* Enlarged fabric photo on hover / focus / tap */
.fabric-zoom {
	position: absolute;
	z-index: 60;
	width: min(300px, calc(100vw - 16px));
	padding: 8px 8px 6px;
	border-radius: 12px;
	background: var(--c-bg);
	box-shadow: 0 10px 30px rgb(0 0 0 / 0.18), 0 0 0 1px rgb(0 0 0 / 0.04);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}

.fabric-zoom.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.fabric-zoom::after {
	position: absolute;
	top: 100%;
	left: var(--arrow-x, 50%);
	border: 8px solid transparent;
	border-top-color: var(--c-bg);
	content: "";
	transform: translateX(-50%);
}

.fabric-zoom.is-below::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: var(--c-bg);
}

.fabric-zoom__img {
	aspect-ratio: 3 / 2;
	border-radius: 8px;
	background: center / cover no-repeat;
}

.fabric-zoom__label {
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.fabric-zoom {
		transition: none;
	}
}

/* Other fabric or colour on request */
.swatch-custom__row {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.swatch-custom__tile {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 0.15rem;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1px dashed #b9b2a8;
	border-radius: 10px;
	background: var(--c-surface);
	color: var(--c-text);
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
}

.swatch-custom__tile:hover {
	border-color: var(--c-text);
	color: var(--c-text);
}

.swatch-custom__text {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.swatch-custom__text a {
	font-weight: 600;
}

/* WooCommerce variation selects turned into chips by the theme script */
.lengva-chip-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	opacity: 0;
	pointer-events: none;
}

/* Quantity + add to cart */
form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.quantity .qty {
	width: 5rem;
	height: 54px;
	text-align: center;
}

.single_add_to_cart_button {
	flex: 1;
	min-height: 54px;
	font-size: 1.05rem;
}

.benefits--product {
	display: grid;
	gap: 0.45rem;
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.product_meta {
	color: var(--c-muted);
	font-size: var(--fs-small);
}

.product_meta > span {
	display: block;
	margin-bottom: 0.25rem;
}

/* Tabs */
.woocommerce-tabs {
	margin-top: 1rem;
}

.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 0.25rem;
	overflow-x: auto;
	margin: 0 0 1.5rem;
	padding: 0;
	border-bottom: 1px solid var(--c-border);
	list-style: none;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.85rem 1rem;
	border-bottom: 3px solid transparent;
	color: var(--c-muted);
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
}

.woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: var(--c-accent);
	color: var(--c-text);
}

.woocommerce-Tabs-panel {
	max-width: 80ch;
	line-height: 1.55;
}

/* Description and details: compact headings and spacing, the tab name is the title. */
.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3 {
	margin: 1.4rem 0 0.45rem;
	font-size: 1.15rem;
}

.woocommerce-Tabs-panel h3 {
	font-size: 1.05rem;
}

.woocommerce-Tabs-panel > :first-child {
	margin-top: 0;
}

.woocommerce-Tabs-panel p {
	margin-bottom: 0.7rem;
}

.woocommerce-Tabs-panel ul {
	margin-bottom: 0.9rem;
	padding-left: 1.15rem;
}

.woocommerce-Tabs-panel li + li {
	margin-top: 0.25rem;
}

/* Specification table: wider than the text column so values fit on one line. */
.woocommerce-Tabs-panel--additional_information,
.woocommerce-Tabs-panel--additional_information > table {
	max-width: 60rem;
}

table.woocommerce-product-attributes {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
	padding: 0.7rem 0.75rem;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
	vertical-align: top;
}

.woocommerce-product-attributes th {
	width: 30%;
	background: var(--c-surface);
	font-weight: 600;
}

.woocommerce-product-attributes td p {
	margin: 0;
}

/* Reviews */
#reviews .commentlist {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

#reviews .commentlist li {
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--c-border);
}

#reviews .comment_container {
	display: flex;
	gap: 1rem;
}

#reviews .avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

#reviews .meta {
	color: var(--c-muted);
	font-size: var(--fs-small);
}

.comment-form > p {
	margin-bottom: 1rem;
}

/* Related / upsells */
.related > h2,
.upsells > h2,
.cross-sells > h2 {
	margin-top: 2rem;
}

/* Sticky add-to-cart bar (phones) */
.sticky-cart {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--c-border);
	background: var(--c-bg);
	box-shadow: 0 -6px 20px rgba(29, 33, 37, 0.08);
}

.sticky-cart[hidden] {
	display: none;
}

.sticky-cart__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.sticky-cart__title {
	overflow: hidden;
	font-size: var(--fs-small);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.sticky-cart__price {
	font-size: 1rem;
}

.sticky-cart__button {
	min-height: 48px;
	padding-inline: 1.25rem;
}

body.has-sticky-cart {
	padding-bottom: 80px;
}

@media (min-width: 900px) {
	.sticky-cart {
		display: none !important;
	}

	body.has-sticky-cart {
		padding-bottom: 0;
	}
}

/* --------------------------------------------------------------------------
   Cart, checkout, account (classic templates; block cart/checkout style themselves)
   -------------------------------------------------------------------------- */

table.shop_table {
	width: 100%;
	border-collapse: collapse;
}

table.shop_table th,
table.shop_table td {
	padding: 0.85rem 0.5rem;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
	vertical-align: middle;
}

table.shop_table .product-thumbnail img {
	width: 72px;
	border-radius: var(--radius-sm);
}

table.shop_table .product-remove a {
	color: var(--c-muted);
	font-size: 1.4rem;
	text-decoration: none;
}

table.shop_table td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

table.shop_table td.actions .coupon input {
	width: auto;
	flex: 1;
}

.cart-collaterals,
#order_review {
	margin-top: 2rem;
}

.cart_totals,
#order_review {
	padding: 1.5rem;
	border-radius: var(--radius);
	background: var(--c-surface);
}

.wc-proceed-to-checkout .checkout-button,
#place_order {
	width: 100%;
	min-height: 54px;
	margin-top: 1rem;
}

.woocommerce form .form-row {
	margin: 0 0 1rem;
}

.woocommerce form .form-row .required {
	color: var(--c-sale);
	text-decoration: none;
}

@media (min-width: 900px) {
	.woocommerce-checkout .col2-set {
		display: grid;
		gap: 2rem;
		grid-template-columns: 1fr 1fr;
	}

	.cart-collaterals .cart_totals {
		max-width: 460px;
		margin-left: auto;
	}

	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last {
		display: inline-block;
		width: calc(50% - 0.5rem);
	}

	.woocommerce form .form-row-first {
		margin-right: 1rem;
	}
}

#payment ul.payment_methods {
	padding: 0;
	list-style: none;
}

#payment .payment_box {
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	background: var(--c-bg);
	font-size: 0.9rem;
}

@media (min-width: 900px) {
	.woocommerce-account .woocommerce {
		display: grid;
		gap: 2.5rem;
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.woocommerce-account .woocommerce > .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}
}

.woocommerce-MyAccount-navigation ul {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.65rem 0.9rem;
	border-radius: var(--radius-pill);
	color: var(--c-text);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
	background: var(--c-surface);
	font-weight: 600;
}

/* Order withdrawal form (WooCommerce): plain fieldset, small step indicator */
.woocommerce-order-withdrawal-content__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	counter-reset: wstep;
	font-size: var(--fs-small);
	color: var(--c-muted);
}

.woocommerce-order-withdrawal-content__step {
	counter-increment: wstep;
}

.woocommerce-order-withdrawal-content__step::before {
	content: counter(wstep) ". ";
}

.woocommerce-order-withdrawal-content__step--current {
	font-weight: 600;
	color: var(--c-accent);
}

.woocommerce-OrderWithdrawalForm fieldset {
	min-width: 0;
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
}

.woocommerce-OrderWithdrawalForm legend {
	margin-bottom: 0.35rem;
	padding: 0;
	font-weight: 600;
}

.woocommerce-order-withdrawal-content__radio-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.35rem 0;
	font-weight: 400;
	cursor: pointer;
}
