/* ==========================================================================
   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-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;
}

.button:disabled,
.button.disabled,
button:disabled {
	opacity: 0.5;
	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;
}

.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 */
@media (min-width: 960px) {
	: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 1rem;
		border: 0;
		border-radius: var(--radius-pill);
		font-size: 1rem;
	}

	.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;
	}
}

.usp-band {
	background: var(--c-surface-2);
}

.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);
}

.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;
}

.category-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.category-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.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;
}

.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;
}

.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;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	padding-block: 3rem 1.5rem;
	background: var(--c-surface);
	font-size: 0.95rem;
}

.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-company a {
	color: var(--c-text);
}

.footer-company address {
	font-style: normal;
	line-height: 1.7;
}

.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;
}

/* 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;
}

@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;
}

.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, 1.15fr) 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-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);
}

.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.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;
}

.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;
}

.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;
	}
}

/* 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;
}

.woocommerce-Tabs-panel > h2:first-child {
	font-size: var(--fs-h3);
}

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: 35%;
	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;
}
