/*
Theme Name: Just Wedi
Theme URI: https://github.com/just-wedi/just-wedi
Author: Just Wedi
Description: Child theme of Astra for Just Wedi - front-page template and retailer styling. Do not edit the parent Astra theme.
Template: astra
Version: 1.0.14
Requires at least: 6.4
Requires PHP: 8.3
Text Domain: just-wedi
*/

/* Parent Astra loads first. */

/* Let the layout span the viewport (no centred letterbox on ultrawide). */
#page {
	display: flex;
	flex-direction: column;
	max-width: none;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
}

/* Short pages: main content fills the viewport; footer stays at the bottom. */
.site-content {
	flex: 1 1 auto;
	width: 100%;
	box-sizing: border-box;
}

body.admin-bar #page {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

/*
 * Astra caps .ast-container at ~1320px. Full width for the main site shell only —
 * shop, category archives, and single product pages keep Astra’s normal-width layout.
 */
body:not(.ast-woo-shop-archive):not(.single-product):not(.tax-product_cat):not(.tax-product_tag) .site-content > .ast-container,
body:not(.ast-woo-shop-archive):not(.single-product):not(.tax-product_cat):not(.tax-product_tag) .site-content .ast-container {
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

#primary {
	max-width: 100%;
}

:root {
	--jw-color-primary: #1a365d;
	--jw-color-primary-mid: #2c5282;
	--jw-color-primary-dark: #153e75;
	--jw-color-muted: #475569;
	--jw-color-body: #334155;
	--jw-color-heading: #0f172a;
	--jw-color-surface: #f8fafc;
	--jw-color-tint: #e8edf2;
	--jw-color-border: rgba(26, 54, 93, 0.12);
	--jw-audience-band-bg: #eef1f5;
	--jw-fw-body: 400;
	--jw-fw-semibold: 600;
	--jw-fw-display: 800;
	--jw-reading-max: 72ch;

	/* Shared homepage rhythm (section titles, intros, bands) — keeps blocks aligned on live + cached builds */
	--jw-home-h2-size: clamp(1.48rem, 2.55vw + 0.58rem, 2.08rem);
	--jw-home-h2-lh: 1.17;
	--jw-home-h2-track: -0.038em;
	--jw-home-h2-mt: clamp(2.85rem, 5.5vw, 4.35rem);
	--jw-home-h2-mb: clamp(1.65rem, 3.2vw, 2.4rem);
	--jw-home-lead-size: clamp(0.975rem, 1.12vw + 0.8rem, 1.055rem);
	--jw-home-lead-lh: 1.6;
	--jw-home-lead-max: min(46rem, 100%);
	--jw-home-band-pad-y: clamp(2.25rem, 4.5vw, 3.25rem);
	--jw-home-band-pad-x: clamp(0.75rem, 4vw, 2.25rem);
	--jw-text-link-cta-fs: 0.85rem;

	/* Header (Astra masthead) — shared with assets/css/header.css */
	--jw-header-pad-x: clamp(0.75rem, 4vw, 2.25rem);
	--jw-header-shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
}

/* Reserve space for vertical scrollbar — avoids horizontal “yoyo” when accordions change page height */
html {
	scrollbar-gutter: stable;
}

strong,
b {
	font-weight: var(--jw-fw-semibold);
}

.has-text-align-center {
	text-align: center;
}

.jw-home-content {
	box-sizing: border-box;
	padding-top: 1.5rem;
	padding-bottom: 2rem;
	font-weight: var(--jw-fw-body);
	color: var(--jw-color-body);
	line-height: 1.65;
}

/* Keep Astra-style horizontal centre when #primary is flex; don’t pin blocks to one edge */
.jw-home-content > .ast-container,
.jw-home-content > section.ast-container {
	margin-left: auto;
	margin-right: auto;
}

/* Trade bulk-quote banner — flush under homepage slider */
.jw-bulk-quote-banner {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
		linear-gradient(180deg, var(--jw-color-primary, #1a365d) 0%, var(--jw-color-primary-dark, #153e75) 100%);
	color: #fff;
	border-bottom: 1px solid rgba(15, 23, 42, 0.18);
}

.home .jw-swiper-section + .jw-bulk-quote-banner,
.page-template-front-page .jw-swiper-section + .jw-bulk-quote-banner {
	margin-top: 0;
}

.jw-bulk-quote-banner__inner {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.15rem;
	width: 100%;
	max-width: min(72rem, 100%);
	margin: 0 auto;
	padding: clamp(1.35rem, 3vw, 1.85rem) var(--jw-header-pad-x, clamp(0.75rem, 4vw, 2.25rem));
}

@media (min-width: 720px) {
	.jw-bulk-quote-banner__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1.75rem;
	}
}

.jw-bulk-quote-banner__copy {
	min-width: 0;
	flex: 1 1 auto;
}

.jw-bulk-quote-banner__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: var(--jw-fw-semibold, 600);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(226, 232, 240, 0.92);
}

.jw-bulk-quote-banner__title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.2rem, 2.2vw + 0.55rem, 1.55rem);
	font-weight: var(--jw-fw-display, 800);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
	font-family: inherit;
}

.jw-bulk-quote-banner__text {
	margin: 0;
	max-width: 38rem;
	font-size: var(--jw-home-lead-size, 1rem);
	line-height: 1.5;
	font-weight: var(--jw-fw-body, 400);
	color: rgba(226, 232, 240, 0.92);
}

.jw-bulk-quote-banner__action {
	margin: 0;
	flex: 0 0 auto;
}

.jw-bulk-quote-banner__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.78em 1.35em;
	border-radius: 4px;
	font-size: 0.92rem;
	font-weight: var(--jw-fw-semibold, 600);
	line-height: 1.3;
	text-decoration: none;
	color: var(--jw-color-primary, #1a365d);
	background: #fff;
	border: 1px solid #fff;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.jw-bulk-quote-banner__cta:hover {
	background: var(--jw-color-surface, #f8fafc);
	color: var(--jw-color-primary-dark, #153e75);
	border-color: var(--jw-color-surface, #f8fafc);
	text-decoration: none;
	transform: translateY(-1px);
}

.jw-bulk-quote-banner__cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Trust strip under the bulk-quote banner / homepage hero */
.jw-trust-badges {
	box-sizing: border-box;
	padding: clamp(1rem, 2.75vw, 1.35rem) clamp(0.75rem, 4vw, 2.25rem);
	margin-bottom: 1rem;
	background: #fff;
	border: 1px solid rgba(26, 54, 93, 0.08);
	border-radius: 0 0 10px 10px;
	box-shadow: 0 8px 28px rgba(26, 54, 93, 0.06);
}

.site-content .jw-trust-badges.ast-container {
	display: block;
	width: 100%;
}

.jw-trust-badges__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
	gap: clamp(1rem, 2.5vw, 1.65rem);
	align-items: start;
}

.jw-trust-badges__item {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0.85rem;
	min-width: 0;
}

.jw-trust-badges__icon {
	flex-shrink: 0;
	box-sizing: border-box;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--jw-color-tint);
	border: 1px solid var(--jw-color-border);
	color: var(--jw-color-primary);
}

.jw-trust-badges__icon svg {
	display: block;
	width: 1.45rem;
	height: 1.45rem;
}

.jw-trust-badges__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.22rem;
}

.jw-trust-badges__title {
	display: block;
	font-weight: var(--jw-fw-display);
	font-size: 0.94rem;
	line-height: 1.28;
	letter-spacing: -0.02em;
	color: var(--jw-color-heading);
}

.jw-trust-badges__sub {
	display: block;
	font-size: 0.8125rem;
	line-height: 1.5;
	font-weight: var(--jw-fw-body);
	color: var(--jw-color-muted);
}

@media (min-width: 1000px) {
	.jw-trust-badges__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.jw-trust-badges__list {
		grid-template-columns: 1fr 1fr;
		gap: 1rem 0.85rem;
	}
}

@media (max-width: 380px) {
	.jw-trust-badges__list {
		grid-template-columns: 1fr;
	}
}

.jw-home-heading {
	margin-top: var(--jw-home-h2-mt);
	margin-bottom: var(--jw-home-h2-mb);
	font-size: var(--jw-home-h2-size);
	font-weight: var(--jw-fw-display);
	line-height: var(--jw-home-h2-lh);
	letter-spacing: var(--jw-home-h2-track);
	color: var(--jw-color-heading);
	text-wrap: balance;
}

#primary .jw-home-content h2.jw-home-heading {
	font-family: inherit;
}

.jw-audience-band {
	box-sizing: border-box;
	background: var(--jw-audience-band-bg);
	padding: var(--jw-home-band-pad-y) var(--jw-home-band-pad-x) calc(var(--jw-home-band-pad-y) * 0.92);
	margin-bottom: 2.5rem;
	border-top: 1px solid rgba(26, 54, 93, 0.06);
	border-bottom: 1px solid rgba(26, 54, 93, 0.06);
}

.site-content .jw-audience-band.ast-container {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: clamp(1.5rem, 3vw, 2rem);
	align-items: stretch;
}

.jw-audience__intro {
	text-align: center;
	max-width: min(46rem, 100%);
	margin: 0 auto;
	padding: 0 0.35rem;
	box-sizing: border-box;
}

.jw-audience__heading {
	margin: 0 0 0.65rem;
	font-size: var(--jw-home-h2-size);
	font-weight: var(--jw-fw-display);
	line-height: var(--jw-home-h2-lh);
	letter-spacing: var(--jw-home-h2-track);
	color: var(--jw-color-heading);
	text-wrap: balance;
	font-family: inherit;
}

.jw-audience__lead {
	margin: 0 auto;
	max-width: var(--jw-home-lead-max);
	font-size: var(--jw-home-lead-size);
	line-height: var(--jw-home-lead-lh);
	font-weight: var(--jw-fw-body);
	color: var(--jw-color-body);
	font-family: inherit;
}

.jw-audience__cards {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 1.35rem;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 782px) {
	.jw-audience__cards {
		flex-direction: row;
		align-items: stretch;
		gap: 1.5rem;
	}

	.jw-audience__cards > .jw-audience__card {
		flex: 1 1 0;
		min-width: 0;
	}
}

.jw-audience__card {
	min-width: 0;
	overflow-wrap: break-word;
	border: 1px solid rgba(26, 54, 93, 0.1);
	border-left: 4px solid var(--jw-color-primary);
	padding: 1.45rem 1.35rem 1.35rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(26, 54, 93, 0.06), 0 6px 20px rgba(26, 54, 93, 0.07);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.jw-audience__card h3 {
	margin-top: 0;
	margin-bottom: 0.45rem;
	font-size: clamp(1.08rem, 2vw + 0.55rem, 1.28rem);
	font-weight: var(--jw-fw-display);
	line-height: 1.22;
	color: var(--jw-color-heading);
	letter-spacing: -0.03em;
}

.jw-audience__tagline {
	margin: 0 0 0.55rem;
	font-size: clamp(0.9575rem, 1.1vw + 0.78rem, 1.025rem);
	font-weight: var(--jw-fw-semibold);
	line-height: 1.42;
	color: var(--jw-color-heading);
	max-width: min(68ch, 100%);
}

.jw-audience__copy {
	margin: 0;
	font-weight: var(--jw-fw-body);
	font-size: 0.9575rem;
	line-height: 1.66;
	color: var(--jw-color-body);
	max-width: min(68ch, 100%);
}

.jw-audience__list {
	margin: 0.85rem 0 0;
	padding-left: 1.35rem;
	font-weight: var(--jw-fw-body);
	font-size: 0.9325rem;
	color: var(--jw-color-body);
	line-height: 1.62;
	max-width: min(68ch, 100%);
	flex: 1 1 auto;
}

.jw-audience__list li + li {
	margin-top: 0.35rem;
}

.jw-audience__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 1rem;
	margin-top: 1.2rem;
	padding-top: 1.05rem;
	border-top: 1px solid var(--jw-color-border);
}

.jw-audience__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8675rem;
	font-weight: var(--jw-fw-semibold);
	line-height: 1.35;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.jw-audience__cta--primary {
	padding: 0.52rem 1.05rem;
	border-radius: 6px;
	background: var(--jw-color-primary);
	color: #fff;
	border: 1px solid var(--jw-color-primary);
}

.jw-audience__cta--primary:hover {
	background: var(--jw-color-primary-dark);
	border-color: var(--jw-color-primary-dark);
	color: #fff;
}

.jw-audience__cta--secondary {
	padding: 0.45rem 0;
	font-size: var(--jw-text-link-cta-fs);
	color: var(--jw-color-primary-mid);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	background: transparent;
	border: 0;
}

.jw-audience__cta--secondary:hover {
	color: var(--jw-color-primary-dark);
}

.jw-audience__cta--primary:focus-visible {
	outline: 2px solid var(--jw-color-primary-mid);
	outline-offset: 3px;
}

.jw-audience__cta--secondary:focus-visible {
	outline: 2px solid rgba(44, 82, 130, 0.45);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Tertiary CTA — outline button (e.g. Create account on sign-in) */
.jw-cta--tertiary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.52rem 1.05rem;
	border-radius: 6px;
	font-size: 0.8675rem;
	font-weight: var(--jw-fw-semibold, 600);
	line-height: 1.35;
	text-decoration: none;
	box-sizing: border-box;
	background: transparent;
	color: var(--jw-color-primary, #1a365d);
	border: 1px solid var(--jw-color-primary-mid, #2c5282);
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.jw-cta--tertiary:hover {
	background: var(--jw-color-surface, #f8fafc);
	color: var(--jw-color-primary-dark, #153e75);
	border-color: var(--jw-color-primary-dark, #153e75);
	text-decoration: none;
}

.jw-cta--tertiary:focus-visible {
	outline: 2px solid var(--jw-color-primary-mid, #2c5282);
	outline-offset: 3px;
}

.jw-shop-by-intro {
	max-width: min(var(--jw-reading-max), 100%);
	margin-left: auto;
	margin-right: auto;
	margin-bottom: clamp(2rem, 4.5vw, 2.75rem);
	box-sizing: border-box;
	padding-left: clamp(0.25rem, 2vw, 0.5rem);
	padding-right: clamp(0.25rem, 2vw, 0.5rem);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-weight: var(--jw-fw-body);
	color: var(--jw-color-body);
}

.jw-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
	align-items: stretch;
	gap: clamp(1rem, 2.8vw, 1.35rem);
	margin-bottom: clamp(2.75rem, 5vw, 3.65rem);
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

/* #primary uses flex layouts; stretch this row so four desktop columns use full track width */
.site-content .jw-shop-grid.ast-container {
	display: grid;
	align-self: stretch;
}

@media (min-width: 600px) and (max-width: 781px) {
	.jw-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 782px) {
	.jw-shop-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: clamp(1.1rem, 1.85vw, 1.85rem);
	}

	.jw-shop-card {
		min-height: clamp(15.25rem, 26vw, 22rem);
	}
}

.jw-shop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-width: 0;
	min-height: 12.75rem;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(26, 54, 93, 0.06), 0 10px 28px rgba(26, 54, 93, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
	.jw-shop-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 6px 20px rgba(26, 54, 93, 0.16), 0 16px 40px rgba(26, 54, 93, 0.12);
	}
}

.jw-shop-card:focus-visible {
	outline: 3px solid var(--jw-color-primary-mid);
	outline-offset: 4px;
}

.jw-shop-card__visual {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.jw-shop-card__placeholder,
.jw-shop-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	border: 0;
}

.jw-shop-card__placeholder {
	transition: opacity 0.35s ease;
}

.jw-shop-card__visual:has(img.jw-shop-card__img) .jw-shop-card__placeholder {
	opacity: 0;
}

.jw-shop-card__img {
	object-fit: cover;
	z-index: 1;
}

.jw-shop-card--tile-backer-boards .jw-shop-card__placeholder {
	background: linear-gradient(145deg, #1a365d 0%, #2c5282 42%, #5b7fad 88%);
}

.jw-shop-card--showers-trays .jw-shop-card__placeholder {
	background: linear-gradient(148deg, #153e54 0%, #1f6f7a 45%, #3d8fa0 92%);
}

.jw-shop-card--details .jw-shop-card__placeholder {
	background: linear-gradient(138deg, #2c3e5f 5%, #3d4f6f 42%, #6b8299 94%);
}

.jw-shop-card--installation-accessories .jw-shop-card__placeholder {
	background: linear-gradient(152deg, #1e2a52 8%, #2c4782 52%, #4a6594 94%);
}

.jw-shop-card__body {
	position: relative;
	z-index: 2;
	margin-top: auto;
	padding: clamp(2.85rem, 12vw, 3.85rem) 1rem 1rem;
	min-height: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	background: linear-gradient(
		to top,
		rgba(15, 23, 42, 0.92) 0%,
		rgba(15, 23, 42, 0.55) 45%,
		transparent 100%
	);
}

.jw-shop-card__title {
	font-size: clamp(1rem, 3vw, 1.075rem);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	letter-spacing: -0.02em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.jw-shop-card__hint {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(226, 232, 240, 0.95);
	text-underline-offset: 0.2em;
	text-decoration: underline transparent;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.jw-shop-card:hover .jw-shop-card__hint {
	color: #fff;
	text-decoration-color: rgba(255, 255, 255, 0.75);
}

/* ——— How it works (homepage timeline) ——— */
.jw-how {
	box-sizing: border-box;
	background: var(--jw-audience-band-bg);
	padding: var(--jw-home-band-pad-y) var(--jw-home-band-pad-x);
	margin-bottom: 2.5rem;
	border-top: 1px solid rgba(26, 54, 93, 0.06);
	border-bottom: 1px solid rgba(26, 54, 93, 0.06);
}

.site-content .jw-how.ast-container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.jw-how__intro {
	text-align: center;
	max-width: min(52rem, 100%);
	margin: 0 auto clamp(2rem, 4vw, 2.65rem);
	padding: 0 0.25rem;
}

.jw-how__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.75rem;
	font-weight: var(--jw-fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--jw-color-muted);
}

.jw-how__title {
	margin: 0 0 0.85rem;
	font-size: var(--jw-home-h2-size);
	font-weight: var(--jw-fw-display);
	line-height: var(--jw-home-h2-lh);
	color: var(--jw-color-heading);
	letter-spacing: var(--jw-home-h2-track);
	text-wrap: balance;
	font-family: inherit;
}

.jw-how__lead {
	margin: 0 auto;
	max-width: var(--jw-home-lead-max);
	font-size: var(--jw-home-lead-size);
	line-height: var(--jw-home-lead-lh);
	font-weight: var(--jw-fw-body);
	color: var(--jw-color-body);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.jw-how__track {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
}

.jw-how__step {
	position: relative;
	box-sizing: border-box;
	padding: 1.35rem 1.15rem 1.25rem;
	background: #fff;
	border: 1px solid var(--jw-color-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.045);
}

.jw-how__step:nth-child(even) {
	background: var(--jw-color-surface);
}

.jw-how__step-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.jw-how__step-phase {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.45rem 0.55rem;
	margin: 0 0 0.55rem;
	width: 100%;
}

.jw-how__step-digit {
	font-size: clamp(2rem, 3.75vw, 2.4rem);
	font-weight: var(--jw-fw-display);
	line-height: 1;
	color: var(--jw-color-primary);
	letter-spacing: -0.045em;
}

.jw-how__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.45rem;
	height: 2.45rem;
	margin-bottom: 0.6rem;
	border-radius: 8px;
	background: var(--jw-color-tint);
	color: var(--jw-color-primary);
}

.jw-how__step-title {
	margin: 0 0 0.28rem;
	font-size: clamp(1.03rem, 1.65vw + 0.58rem, 1.14rem);
	font-weight: var(--jw-fw-display);
	line-height: 1.22;
	color: var(--jw-color-heading);
	letter-spacing: -0.025em;
}

.jw-how__step-subtitle {
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	font-weight: var(--jw-fw-semibold);
	line-height: 1.38;
	color: var(--jw-color-primary-mid);
	letter-spacing: 0.01em;
}

.jw-how__step-copy {
	margin: 0;
	font-size: 0.9125rem;
	line-height: 1.57;
	color: var(--jw-color-body);
	font-weight: var(--jw-fw-body);
}

.jw-how__step-note {
	margin: 0.5rem 0 0;
	font-size: 0.7825rem;
	line-height: 1.45;
	color: var(--jw-color-muted);
	font-weight: var(--jw-fw-semibold);
}

.jw-how__step-action {
	margin: 1rem 0 0;
}

.jw-how__cta {
	display: inline-flex;
	align-items: center;
	font-size: var(--jw-text-link-cta-fs);
	font-weight: var(--jw-fw-semibold);
	color: var(--jw-color-primary-mid);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	background: transparent;
	border: 0;
}

.jw-how__cta:hover {
	color: var(--jw-color-primary-dark);
}

.jw-how__cta:focus-visible {
	outline: 2px solid rgba(44, 82, 130, 0.45);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (max-width: 781px) {
	.jw-how__lead {
		-webkit-line-clamp: 3;
	}
}

@media (min-width: 782px) {
	.jw-how__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.15rem 1.25rem;
	}

	.jw-how__step:nth-child(even),
	.jw-how__step:nth-child(odd) {
		background: #fff;
	}
}

@media (min-width: 1024px) {
	.jw-how__track {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: clamp(1.35rem, 2.75vw, 2.25rem);
		align-items: stretch;
	}

	.jw-how__step:not(:last-child)::after {
		content: "→";
		position: absolute;
		top: 3rem;
		right: calc(-0.48 * clamp(1.35rem, 2.75vw, 2.25rem));
		transform: translateX(50%);
		font-size: 1.15rem;
		font-weight: var(--jw-fw-semibold);
		line-height: 1;
		color: var(--jw-color-primary-mid);
		opacity: 0.42;
		pointer-events: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jw-how__cta {
		text-underline-offset: 0.15em;
	}
}

/* Homepage wedi project builder (configurator widget) */
.jw-configurator {
	box-sizing: border-box;
	padding: var(--jw-home-band-pad-y) var(--jw-home-band-pad-x);
	margin-bottom: 2.5rem;
	scroll-margin-top: clamp(5.5rem, 12vw, 8rem);
}

.site-content .jw-configurator.ast-container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.jw-configurator__intro {
	text-align: center;
	max-width: min(52rem, 100%);
	margin: 0 auto clamp(1.5rem, 3.5vw, 2.25rem);
	padding: 0 0.25rem;
}

.jw-configurator__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.75rem;
	font-weight: var(--jw-fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--jw-color-muted);
}

.jw-configurator__title {
	margin: 0 0 0.85rem;
	font-size: var(--jw-home-h2-size);
	font-weight: var(--jw-fw-display);
	line-height: var(--jw-home-h2-lh);
	color: var(--jw-color-heading);
	letter-spacing: var(--jw-home-h2-track);
	text-wrap: balance;
	font-family: inherit;
}

.jw-configurator__lead {
	margin: 0 auto;
	max-width: var(--jw-home-lead-max);
	font-size: var(--jw-home-lead-size);
	line-height: var(--jw-home-lead-lh);
	color: var(--jw-color-body);
	font-weight: var(--jw-fw-body);
}

.jw-configurator__widget {
	width: 100%;
	min-height: 12rem;
}

.jw-products {
	margin-bottom: 2rem;
}

/* Homepage “Most popular”: single-row strip; compact tiles; horizontal scroll when needed */
.jw-home-content .jw-products {
	overflow: hidden;
}

.jw-home-content .jw-products ul.products {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.65rem;
	margin: 0;
	padding: 0 0 0.4rem;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.jw-home-content .jw-products ul.products::before,
.jw-home-content .jw-products ul.products::after {
	display: none;
}

.jw-home-content .jw-products ul.products li.product {
	flex: 0 0 auto;
	width: 10.25rem !important;
	max-width: 10.25rem;
	float: none !important;
	margin: 0 !important;
	padding: 0.55rem 0.42rem 0.65rem;
	box-sizing: border-box;
	scroll-snap-align: start;
}

.jw-home-content .jw-products ul.products li.product a.woocommerce-LoopProduct-link,
.jw-home-content .jw-products ul.products li.product a.woocommerce-loop-product__link {
	display: block;
	text-align: center;
}

.jw-home-content .jw-products ul.products li.product img {
	height: auto !important;
	width: auto !important;
	max-width: 100%;
	max-height: 6.25rem;
	margin-inline: auto;
	object-fit: contain;
}

.jw-home-content .jw-products .woocommerce-loop-product__title,
.jw-home-content .jw-products ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.875rem;
	font-weight: var(--jw-fw-semibold);
	line-height: 1.35;
	margin: 0.45rem 0 0.25rem;
	letter-spacing: -0.01em;
	color: var(--jw-color-heading);
	font-family: inherit;
}

.jw-home-content .jw-products ul.products li.product .price {
	font-size: 0.78125rem;
	margin: 0;
	color: var(--jw-color-heading);
}

.jw-home-content .jw-products ul.products li.product .star-rating {
	font-size: 0.6875rem;
	margin: 0.3rem auto 0;
}

.jw-home-content .jw-products ul.products li.product .button {
	font-size: 0.71875rem;
	padding: 0.4rem 0.7rem;
	margin-top: 0.4rem;
}

.jw-home-content .jw-products .jw-products__excerpt {
	font-size: 0.71875rem;
	line-height: 1.45;
	font-weight: var(--jw-fw-body);
	color: var(--jw-color-muted);
	margin: 0.4rem 0 0;
	text-align: center;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	word-break: break-word;
}

.jw-home-content .jw-products .jw-products__meta {
	font-size: 0.65625rem;
	line-height: 1.4;
	color: var(--jw-color-muted);
	margin: 0.35rem 0 0;
	text-align: center;
}

.jw-home-content .jw-products .jw-products__sku-label {
	font-weight: var(--jw-fw-semibold);
	color: var(--jw-color-heading);
	margin-right: 0.12em;
}

.jw-home-content .jw-products .jw-products__sku-value,
.jw-home-content .jw-products .jw-products__dimensions {
	font-variant-numeric: tabular-nums;
}

.jw-home-content .jw-products .jw-products__meta-sep {
	opacity: 0.55;
	margin: 0 0.12em;
}

@media (min-width: 782px) {
	.jw-home-content .jw-products ul.products {
		gap: 0.85rem;
	}

	.jw-home-content .jw-products ul.products li.product {
		width: 11.25rem !important;
		max-width: 11.25rem;
	}

	.jw-home-content .jw-products ul.products li.product img {
		max-height: 6.75rem;
	}

	.jw-home-content .jw-products .jw-products__excerpt {
		-webkit-line-clamp: 5;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jw-home-content .jw-products ul.products {
		scroll-snap-type: none;
	}
}

/*
 * #primary / Astra flex layouts: .ast-container can sit in a flex row context.
 * Stack children vertically; keep margin-inline auto + width so we don’t override
 * Astra’s centring (avoid max-width: 100% beating narrower block rules).
 */
.jw-testimonial.ast-container,
.jw-faq.ast-container,
.jw-products.ast-container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-content: flex-start;
	box-sizing: border-box;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0;
}

.jw-faq.ast-container {
	align-items: stretch;
	margin-bottom: 2.75rem;
}

/* FAQ widget wrapper: edge-to-edge inside the homepage content strip */
.jw-faq.jw-faq-widget.ast-container {
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
	align-self: stretch;
	box-sizing: border-box;
}

.jw-products.ast-container {
	margin-bottom: 2rem;
}

/* FAQ collapsible widget: flat surface, subtle edge only */
.jw-faq-widget {
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid var(--jw-color-border);
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.jw-faq-topic {
	margin: 0;
	border-bottom: 1px solid var(--jw-color-border);
}

.jw-faq-topic:last-child {
	border-bottom: 0;
}

.jw-faq-topic__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(0.85rem, 3vw, 1.35rem);
	margin: 0;
	padding: clamp(1rem, 3.25vw, 1.38rem) clamp(1rem, 3vw, 1.5rem);
	list-style: none;
	cursor: pointer;
	font: inherit;
	color: inherit;
	box-sizing: border-box;
	transition: background 0.18s ease;
}

.jw-faq-topic__summary::-webkit-details-marker {
	display: none;
}

.jw-faq-topic__summary:focus-visible {
	outline: none;
	box-shadow:
		inset 0 0 0 2px #fff,
		inset 0 0 0 5px rgba(44, 82, 130, 0.55);
	background: rgba(244, 247, 250, 0.9);
}

@media (hover: hover) {
	.jw-faq-topic__summary:hover {
		background: var(--jw-color-surface);
	}
}

.jw-faq-topic[open] > .jw-faq-topic__summary {
	background: var(--jw-color-tint);
}

.jw-faq-topic__badge {
	flex: 0 0 auto;
	width: 2.45rem;
	height: 2.45rem;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: var(--jw-fw-display);
	font-size: 0.94rem;
	letter-spacing: -0.03em;
	color: #fff;
	line-height: 1;
	box-shadow: none;
	background: var(--jw-color-primary);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.jw-faq-topic__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.jw-faq-topic__title {
	font-size: clamp(1.02rem, 2.65vw, 1.16rem);
	font-weight: var(--jw-fw-display);
	line-height: 1.22;
	color: var(--jw-color-heading);
	letter-spacing: -0.03em;
}

.jw-faq-topic__tagline {
	font-size: 0.8125rem;
	font-weight: var(--jw-fw-body);
	line-height: 1.5;
	text-transform: none;
	letter-spacing: 0.01em;
	color: var(--jw-color-muted);
}

.jw-faq-item__body {
	padding: 0.25rem clamp(0.82rem, 2.75vw, 1.06rem) 1.05rem;
	border-top: 1px solid var(--jw-color-border);
	box-sizing: border-box;
	width: 100%;
}

.jw-faq-item__body p {
	max-width: none;
	width: 100%;
	margin: 0.85rem 0 0;
	font-size: clamp(0.9375rem, 2vw, 1.0125rem);
	line-height: 1.72;
	font-weight: var(--jw-fw-body);
	color: var(--jw-color-body);
}

.jw-faq-item__body p + p {
	margin-top: 0.65rem;
}

.jw-faq-topic__caret {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	margin-left: auto;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: rgba(26, 54, 93, 0.07);
	color: var(--jw-color-heading);
	transition: transform 0.22s ease, background 0.18s ease;
}

.jw-faq-topic__caret::after {
	content: "";
	display: block;
	width: 0.5rem;
	height: 0.5rem;
	margin-top: -0.08rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.22s ease;
}

.jw-faq-topic[open] > .jw-faq-topic__summary .jw-faq-topic__caret::after {
	transform: rotate(-135deg);
	margin-top: 0.06rem;
}

.jw-faq-topic[open] > .jw-faq-topic__summary .jw-faq-topic__caret {
	background: rgba(26, 54, 93, 0.1);
}

.jw-faq-topic__panel {
	box-sizing: border-box;
	padding: 0.85rem clamp(0.82rem, 2.75vw, 1.25rem) 1.25rem;
	background: var(--jw-color-surface);
	border-top: 1px solid var(--jw-color-border);
}

.jw-faq-item {
	box-sizing: border-box;
	width: 100%;
	border-radius: 8px;
	margin: 0 0 0.55rem;
	background: #fff;
	border: 1px solid var(--jw-color-border);
	box-shadow: none;
	overflow: clip;
	transition: border-color 0.18s ease;
}

.jw-faq-item:last-child {
	margin-bottom: 0;
}

@media (hover: hover) {
	.jw-faq-item:hover {
		border-color: rgba(44, 82, 130, 0.25);
	}
}

.jw-faq-item[open] {
	border-color: var(--jw-color-primary-mid);
	box-shadow: inset 3px 0 0 var(--jw-color-primary);
}

.jw-faq-item__summary {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
	padding: 0.7rem clamp(0.82rem, 2.75vw, 1.06rem);
	list-style: none;
	cursor: pointer;
	font-weight: var(--jw-fw-semibold);
	font-size: clamp(0.93rem, 2.05vw, 1rem);
	line-height: 1.42;
	color: var(--jw-color-heading);
	min-width: 0;
	transition: background 0.18s ease, color 0.18s ease;
}

.jw-faq-item__summary::-webkit-details-marker {
	display: none;
}

.jw-faq-item__summary::after {
	content: "+";
	flex: 0 0 1.15rem;
	width: 1.15rem;
	min-width: 1.15rem;
	margin-left: auto;
	font-weight: var(--jw-fw-display);
	font-size: 1.06rem;
	line-height: 1;
	text-align: center;
	opacity: 0.42;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.jw-faq-item[open] > .jw-faq-item__summary::after {
	content: "";
	width: 1.15rem;
	min-width: 1.15rem;
	height: 3px;
	margin-top: 0.06rem;
	border-radius: 2px;
	background: var(--jw-color-primary);
	opacity: 1;
}

.jw-faq-item__summary:focus-visible {
	outline: 2px solid rgba(44, 82, 130, 0.45);
	outline-offset: 2px;
	border-radius: 8px;
}

.jw-faq-item__summary:hover {
	color: var(--jw-color-primary-mid);
	background: var(--jw-color-surface);
	border-radius: 8px;
}

.jw-faq-widget a {
	color: var(--jw-color-primary-mid);
	font-weight: var(--jw-fw-semibold);
	text-underline-offset: 0.16em;
	text-decoration-thickness: 1px;
}

.jw-faq-widget a:hover {
	color: var(--jw-color-primary-dark);
}

.jw-faq-more {
	margin-top: clamp(1.35rem, 3.5vw, 2rem);
	margin-bottom: 2.75rem;
	max-width: min(var(--jw-reading-max), 100%);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(0.25rem, 2vw, 0.5rem);
	padding-right: clamp(0.25rem, 2vw, 0.5rem);
	font-size: 1rem;
	font-weight: var(--jw-fw-semibold);
	line-height: 1.55;
	box-sizing: border-box;
	color: var(--jw-color-heading);
}

.jw-trade-footnote {
	max-width: min(var(--jw-reading-max), 100%);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding: 1rem 1.35rem;
	margin-bottom: 2.25rem;
	font-size: 0.9175rem;
	line-height: 1.62;
	font-weight: var(--jw-fw-body);
	background: linear-gradient(90deg, var(--jw-color-tint), transparent);
	border-left: 4px solid var(--jw-color-heading);
	border-radius: 0 6px 6px 0;
	color: var(--jw-color-body);
}

.jw-trade-footnote strong {
	font-weight: var(--jw-fw-display);
	color: var(--jw-color-heading);
}

/* Astra Pro + WooCommerce shop filters (toolbar flyout panel) */
.astra-off-canvas-sidebar .ast-filter-wrap .widget {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--jw-color-border, #e5e7eb);
}

.astra-off-canvas-sidebar .ast-filter-wrap .widget:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.astra-off-canvas-sidebar .widget .widget-title {
	font-size: 0.9375rem;
	font-weight: var(--jw-fw-display, 600);
	margin-bottom: 0.65rem;
}

/* Search results — thumb left, details right (flex) */
body.search article.product.type-product .ast-article-inner.blog-layout-1 > .post-content {
	display: flex !important;
	flex-direction: row;
	align-items: flex-start;
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

body.search article.product.type-product .ast-blog-featured-section.post-thumb {
	flex: 0 0 clamp(5.5rem, 20%, 10rem);
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	width: auto !important;
	max-width: none !important;
}

body.search article.product.type-product .post-thumb-img-content {
	float: none !important;
	margin: 0 !important;
	width: 100% !important;
}

body.search article.product.type-product .ast-blog-featured-section.post-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--jw-color-surface, #f8fafc);
	border-radius: 6px;
}

body.search article.product.type-product .jw-search-product-body {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

body.search article.product.type-product .entry-title {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.3;
	margin: 0;
}

body.search article.product.type-product .entry-title a {
	color: inherit;
	text-decoration: none;
}

body.search article.product.type-product .entry-title a:hover {
	color: var(--jw-color-primary-mid, #2c5282);
}

body.search article.product.type-product .jw-search-product-price {
	font-size: 1.0625rem;
	font-weight: var(--jw-fw-semibold, 600);
	line-height: 1.35;
	margin: 0.2rem 0 0;
	color: var(--jw-color-heading, #0f172a);
}

body.search article.product.type-product .jw-search-product-price .woocommerce-Price-amount {
	font-weight: inherit;
}

body.search article.product.type-product .ast-excerpt-container {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--jw-color-body);
	margin: 0.15rem 0 0;
}

body.search article.product.type-product .ast-excerpt-container p {
	margin: 0;
}

body.search article.product.type-product .jw-search-product-meta {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--jw-color-muted, #475569);
	margin: 0.5rem 0 0;
	padding-top: 0.5rem;
	border-top: 1px solid var(--jw-color-border, #e5e7eb);
}

body.search .jw-search-product-meta p {
	margin: 0 0 0.35rem;
}

body.search .jw-search-label {
	font-weight: var(--jw-fw-semibold, 600);
	color: var(--jw-color-heading, #0f172a);
}

body.search .jw-search-product-variations {
	margin: 0.35rem 0 0;
	padding-left: 1.1rem;
	list-style: disc;
}

body.search .jw-search-product-variations li {
	margin-bottom: 0.2rem;
}

body.search .jw-search-product-categories a {
	color: var(--jw-color-primary-mid, #2c5282);
	text-decoration: none;
}

body.search .jw-search-product-categories a:hover {
	text-decoration: underline;
}

body.search article.product.type-product .post-content > .entry-content:empty {
	display: none;
}

body.search article.product.type-product .ast-read-more-container {
	margin-top: 0.25rem;
}

body.search article.product.type-product .ast-read-more-container a {
	font-size: 0.875rem;
	font-weight: var(--jw-fw-semibold, 600);
}

body.search .ast-article-post.type-product {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--jw-color-border, #e5e7eb);
}

body.search .ast-article-post.type-product:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

@media (max-width: 640px) {
	body.search article.product.type-product .ast-article-inner.blog-layout-1 > .post-content {
		gap: 0.75rem;
	}

	body.search article.product.type-product .ast-blog-featured-section.post-thumb {
		flex-basis: clamp(4.5rem, 26%, 5.5rem);
	}
}
