/*
Theme Name: Foundry
Theme URI: https://redmanstudio.co.uk
Author: Redman Studio
Author URI: https://redmanstudio.co.uk
Description: A reskinnable, photo-led block theme for small-business websites. Six skins, a library of section patterns and image effects, all driven by theme.json so one click changes the whole look.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: foundry
*/

:root {
	--fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--fx-topbar-h: 2.5rem;
}

/* ============ Base ============ */
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}
:where(h1, h2, h3, h4) {
	text-wrap: balance;
}
:where(p, li) {
	text-wrap: pretty;
}
:where(h1, h2, h3) em {
	font-style: normal;
}
:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Full-width sections sit flush against each other. */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-block-post-content > .alignfull,
.fx-flow > .alignfull {
	margin-block-start: 0;
}

/* ============ Buttons ============ */
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border: 1.5px solid currentColor;
	padding: calc(0.95rem - 1.5px) calc(1.6rem - 1.5px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.has-base-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: #14171a;
}

/* ============ Header ============ */
.wp-block-template-part:has(> .fx-header) {
	position: sticky;
	top: calc(-1 * var(--fx-topbar-h));
	z-index: 50;
}
.admin-bar .wp-block-template-part:has(> .fx-header) {
	top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--fx-topbar-h));
}
.fx-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.fx-topbar {
	height: var(--fx-topbar-h);
	display: flex;
	align-items: center;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	font-size: 0.8125rem;
}
.fx-topbar > * {
	width: 100%;
}
.fx-topbar p {
	margin: 0;
	white-space: nowrap;
}
@media (max-width: 1100px) {
	.fx-hide-narrow {
		display: none;
	}
}
.fx-topbar a {
	text-decoration: none;
}
.fx-gap {
	display: inline-block;
	width: 1.5rem;
}
.fx-header .wp-block-site-title a,
.fx-header .wp-block-navigation a {
	text-decoration: none;
}
.fx-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent);
}
.fx-header .wp-block-button__link {
	padding: 0.7rem 1.2rem;
	font-size: 0.9rem;
}
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
}

/* ============ Type helpers ============ */
.fx-kicker {
	font-size: 0.9375rem !important;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.5rem !important;
}
.has-contrast-background-color .fx-kicker,
.wp-block-cover .fx-kicker {
	color: inherit;
	opacity: 0.8;
}
.fx-lede {
	color: var(--wp--preset--color--muted);
	max-width: 38rem;
}
.wp-block-cover .fx-lede,
.has-contrast-background-color .fx-lede {
	color: inherit;
	opacity: 0.85;
}
.fx-muted {
	color: var(--wp--preset--color--muted);
}
.fx-stars {
	color: #f2b01e;
	letter-spacing: 0.08em;
}
.fx-step-no {
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	font-variant-numeric: tabular-nums;
	margin-bottom: 0.25rem !important;
}

/* ============ Hero: full-bleed photo ============ */
.fx-hero-cover .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(to top, var(--wp--custom--overlay) 0%, transparent 60%),
		linear-gradient(to right, var(--wp--custom--overlay) 0%, transparent 75%) !important;
}
.fx-hero-cover h1 {
	color: #fff;
	max-width: 15ch;
	font-size: clamp(2.6rem, 6vw, 5.2rem);
}
.fx-hero-cover {
	/* Line the hero text up with the logo above it. */
	padding-inline: var(--wp--style--root--padding-left, 2.4rem) var(--wp--style--root--padding-right, 2.4rem) !important;
}
.fx-hero-cover .wp-block-cover__inner-container {
	padding-block: var(--wp--preset--spacing--60);
}
.fx-quote-panel {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.fx-quote-panel h2,
.fx-quote-panel h3 {
	color: var(--wp--preset--color--contrast);
}
.fx-quote-panel .fx-phone {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0.25rem 0 !important;
}
.fx-quote-panel a {
	text-decoration: none;
}
.fx-quote-panel .wp-block-buttons,
.fx-quote-panel .wp-block-button,
.fx-quote-panel .wp-block-button__link {
	width: 100%;
}

/* The one orchestrated moment: the hero photo settles as the page loads. */
@media (prefers-reduced-motion: no-preference) {
	.fx-hero-cover .wp-block-cover__image-background {
		animation: fx-settle 1.8s var(--fx-ease) both;
	}
	.fx-hero-cover .wp-block-cover__inner-container {
		animation: fx-lift 1s 0.35s var(--fx-ease) both;
	}
}
@keyframes fx-settle {
	from { transform: scale(1.12); filter: brightness(0.6); }
}
@keyframes fx-lift {
	from { opacity: 0; transform: translateY(24px); }
}

/* ============ Hero: split with stacked photos ============ */
.fx-stack {
	position: relative;
	padding-bottom: 3rem;
	padding-left: 3rem;
}
.fx-stack > .wp-block-image {
	margin: 0;
}
.fx-stack > .wp-block-image:first-child img {
	border-radius: var(--wp--custom--radius--lg);
	width: 100%;
}
.fx-stack > .fx-stack-sm {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44%;
}
.fx-stack > .fx-stack-sm img {
	border-radius: var(--wp--custom--radius--md);
	border: 6px solid var(--wp--preset--color--base);
	box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.45);
}

/* ============ Trust bar ============ */
.fx-trust {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.fx-trust p {
	margin: 0;
	font-weight: 600;
	font-size: 0.9375rem;
}
.fx-tick {
	white-space: nowrap;
}
.fx-tick::before {
	content: "";
	display: inline-block;
	width: 1.1rem;
	height: 1.1rem;
	margin-right: 0.55rem;
	vertical-align: -0.2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ============ Service tiles (photo, zoom on hover) ============ */
.fx-tiles {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: clamp(220px, 22vw, 300px);
	gap: var(--wp--preset--spacing--30);
}
.fx-tiles > * {
	margin: 0 !important;
}
.fx-tile {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--md);
	isolation: isolate;
	color: #fff;
	/* Dark fallback so the white text reads before the photo has loaded. */
	background: #1c1f22;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.fx-tile:first-child {
	grid-row: span 2;
}
.fx-tile > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: -2;
}
.fx-tile > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s var(--fx-ease);
}
.fx-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 78%);
}
.fx-tile h3 {
	color: #fff;
	margin: 0;
}
.fx-tile p {
	margin: 0.4rem 0 0 !important;
	font-size: 0.9375rem;
	opacity: 0.9;
	max-width: 36ch;
}
.fx-tile:hover > .wp-block-image img {
	transform: scale(1.07);
}
@media (hover: hover) and (min-width: 782px) {
	.fx-tile:not(:first-child) p {
		max-height: 0;
		opacity: 0;
		overflow: hidden;
		transition: max-height 0.5s var(--fx-ease), opacity 0.4s ease;
	}
	.fx-tile:hover p,
	.fx-tile:focus-within p {
		max-height: 8rem;
		opacity: 0.9;
	}
}

/* ============ About: overlapping photo pair ============ */
.fx-pair {
	position: relative;
	padding-right: 18%;
	padding-bottom: 14%;
}
.fx-pair > .wp-block-image {
	margin: 0;
}
.fx-pair > .wp-block-image:first-child img {
	border-radius: var(--wp--custom--radius--lg);
	width: 100%;
}
.fx-pair > .fx-pair-sm {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 48%;
}
.fx-pair > .fx-pair-sm img {
	border-radius: var(--wp--custom--radius--md);
	border: 6px solid var(--wp--preset--color--base);
	box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.45);
}
.fx-badge {
	position: absolute;
	left: 1.25rem;
	top: 1.25rem;
	margin: 0 !important;
	padding: 0.85rem 1.1rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	border-radius: var(--wp--custom--radius--sm);
	font-weight: 700;
	line-height: 1.25;
	font-size: 0.9375rem;
}

/* ============ Image effects ============ */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		/* Wipe-in as the image scrolls into view. */
		.fx-wipe img {
			animation: fx-wipe linear both;
			animation-timeline: view();
			animation-range: entry 5% cover 35%;
		}
		/* Gentle parallax inside the frame. */
		.fx-parallax {
			overflow: hidden;
		}
		.fx-parallax img {
			scale: 1.14;
			animation: fx-par linear both;
			animation-timeline: view();
		}
	}
}
@keyframes fx-wipe {
	from { clip-path: inset(0 0 100% 0); }
	to { clip-path: inset(0 0 0 0); }
}
@keyframes fx-par {
	from { translate: 0 -6%; }
	to { translate: 0 6%; }
}

/* ============ Recent work gallery ============ */
.fx-gallery {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
}
.fx-gallery > * {
	margin: 0 !important;
}
.fx-gallery .wp-block-image {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--md);
}
.fx-gallery .wp-block-image img {
	width: 100%;
	transition: transform 1.1s var(--fx-ease);
}
.fx-gallery .wp-block-image:hover img {
	transform: scale(1.06);
}
.fx-gallery figcaption {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	margin: 0;
	padding: 0.45rem 0.8rem;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 0.8125rem;
	font-weight: 600;
	transition: transform 0.45s var(--fx-ease), opacity 0.3s ease;
}
@media (hover: hover) {
	.fx-gallery figcaption {
		opacity: 0;
		transform: translateY(8px);
	}
	.fx-gallery .wp-block-image:hover figcaption {
		opacity: 1;
		transform: none;
	}
}

/* ============ Before / after slider ============ */
.fx-compare {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
	--pos: 50%;
	user-select: none;
	touch-action: pan-y;
}
.fx-compare > .wp-block-image {
	margin: 0 !important;
}
.fx-compare > .wp-block-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.fx-compare > .wp-block-image:first-child img {
	filter: grayscale(0.85) brightness(0.85) contrast(0.9);
}
.fx-compare.is-real > .wp-block-image:first-child img {
	filter: none;
}
.fx-compare > .wp-block-image:nth-child(2) {
	position: absolute;
	inset: 0;
	clip-path: inset(0 0 0 var(--pos));
}
.fx-compare > .wp-block-image:nth-child(2) img {
	height: 100%;
}
.fx-compare figcaption {
	position: absolute;
	top: 1rem;
	margin: 0;
	padding: 0.35rem 0.7rem;
	border-radius: var(--wp--custom--radius--sm);
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
}
.fx-compare > .wp-block-image:first-child figcaption {
	left: 1rem;
}
.fx-compare > .wp-block-image:nth-child(2) figcaption {
	right: 1rem;
}
.fx-compare-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 2px;
	margin-left: -1px;
	background: #fff;
	pointer-events: none;
}
.fx-compare-handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2.75rem;
	height: 2.75rem;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6' fill='none' stroke='%2314171a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.fx-compare input[type="range"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: ew-resize;
	margin: 0;
}
.fx-compare:has(input:focus-visible) .fx-compare-handle::after {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* ============ Lists ============ */
.fx-checks {
	list-style: none;
	padding-left: 0;
}
.fx-checks li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: 0.65rem;
}
.fx-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.28em;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ============ Process ============ */
.fx-step {
	border-top: 2px solid var(--wp--preset--color--contrast);
	padding-top: 1.25rem;
}

/* ============ Reviews ============ */
.fx-review {
	border-left: 1px solid var(--wp--preset--color--line);
	padding-left: var(--wp--preset--spacing--40);
}
.fx-review .fx-quote {
	font-size: 1.125rem;
	line-height: 1.55;
}
.fx-score {
	font-size: clamp(3rem, 6vw, 4.5rem) !important;
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	margin: 0 !important;
}

/* ============ FAQ ============ */
.wp-block-details {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.wp-block-details summary {
	font-weight: 600;
	font-size: 1.0625rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker {
	display: none;
}
.wp-block-details summary::after {
	content: "+";
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	transition: transform 0.3s var(--fx-ease);
}
.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}
.wp-block-details > :not(summary) {
	color: var(--wp--preset--color--muted);
	margin-top: 0.75rem;
}

/* ============ Pricing ============ */
.fx-plan {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface);
}
.fx-plan .fx-price {
	font-size: clamp(2rem, 3.4vw, 2.75rem) !important;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}
.fx-plan.fx-featured {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--contrast);
}
.fx-plan.fx-featured .fx-muted {
	color: inherit;
	opacity: 0.7;
}

/* ============ Call-to-action photo band ============ */
.fx-cta-cover .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(to right, var(--wp--custom--overlay) 0%, var(--wp--custom--overlay) 40%, transparent 100%) !important;
}
.fx-cta-cover h2 {
	color: #fff;
	max-width: 16ch;
}
.fx-cta-cover .fx-phone a {
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: -0.03em;
}

/* ============ Contact ============ */
.fx-contact-row {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 1rem;
	margin-top: 1rem !important;
}
.fx-contact-row p {
	margin: 0.15rem 0 0;
}
.fx-label {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}
.fx-contact-row a {
	text-decoration: none;
}
.fx-form-card {
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--lg);
}

/* ============ Page intro ============ */
.fx-pagehead {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* ============ Footer ============ */
.fx-footer a {
	text-decoration: none;
}
.fx-footer a:hover {
	text-decoration: underline;
}
.fx-footer .fx-label {
	color: inherit;
	font-weight: 700;
	margin-bottom: 0.5rem !important;
}
.fx-footer .fx-footer-name {
	font-size: 1.5rem !important;
	font-weight: 800;
	letter-spacing: -0.03em;
}
.fx-dim {
	opacity: 0.7;
}
.fx-footer .wp-block-separator {
	color: color-mix(in srgb, var(--wp--preset--color--base) 18%, transparent);
	opacity: 1;
}
.fx-footer .wp-block-button__link:hover {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/* ============ Responsive ============ */
@media (max-width: 781px) {
	.fx-hide-mobile,
	.fx-header .wp-block-buttons {
		display: none !important;
	}
	.fx-tiles {
		grid-template-columns: 1fr;
		grid-auto-rows: 240px;
	}
	.fx-tile:first-child {
		grid-row: span 1;
	}
	.fx-gallery {
		grid-template-columns: 1fr 1fr;
	}
	.fx-stack {
		padding-left: 1.5rem;
		padding-bottom: 2rem;
	}
	.fx-review {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--wp--preset--color--line);
		padding-top: var(--wp--preset--spacing--40);
	}
}
@media (max-width: 1024px) and (min-width: 782px) {
	.fx-tiles {
		grid-template-columns: 1fr 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* =========================================================== Form controls: dropdowns and quantities */
:root {
	--fx-acc: var(--sig-accent, var(--wp--preset--color--accent));
	--fx-acc-ink: var(--sig-ink, var(--wp--preset--color--accent-ink));
}
select,
.woocommerce .quantity input.qty,
.wc-block-components-quantity-selector {
	font: inherit;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select {
	appearance: none;
	-webkit-appearance: none;
	min-height: 2.9rem;
	padding: 0.65rem 2.75rem 0.65rem 1rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 12px 8px;
	cursor: pointer;
	max-width: 100%;
}
select:hover,
.woocommerce .quantity input.qty:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 35%, var(--wp--preset--color--line));
}
select:focus-visible,
.woocommerce .quantity input.qty:focus-visible {
	outline: none;
	border-color: var(--fx-acc);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fx-acc) 22%, transparent);
}
select::-ms-expand {
	display: none;
}
.woocommerce .quantity input.qty {
	width: 4.5rem;
	min-height: 2.9rem;
	padding: 0.5rem;
	text-align: center;
}

/* =========================================================== Shop: header basket */
.fx-basket {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.25rem;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
	flex-shrink: 0;
}
.fx-basket:hover .fx-basket-label {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.fx-basket-n {
	display: inline-grid;
	place-items: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.35rem;
	border-radius: 99px;
	background: var(--fx-acc);
	color: var(--fx-acc-ink);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.fx-basket-n.is-empty {
	background: transparent;
	color: inherit;
	box-shadow: inset 0 0 0 1px currentColor;
	opacity: 0.55;
}
@media (max-width: 1100px) {
	.fx-basket-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.fx-basket-n {
		position: absolute;
		top: -0.1rem;
		right: -0.55rem;
		min-width: 1.15rem;
		height: 1.15rem;
		font-size: 0.65rem;
	}
	.fx-basket-n.is-empty {
		display: none;
	}
}

/* =========================================================== Shop: slide-in basket */
.fx-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
}
.fx-drawer[hidden] {
	display: none;
}
.fx-drawer-scrim {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 15, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.fx-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 100%);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	padding: 1.5rem 1.75rem 1.75rem;
	box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.5);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
	overflow-y: auto;
	outline: none;
}
.fx-drawer.is-open .fx-drawer-scrim {
	opacity: 1;
}
.fx-drawer.is-open .fx-drawer-panel {
	transform: none;
}
html.fx-drawer-open {
	overflow: hidden;
}
.fx-drawer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.fx-drawer-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.fx-drawer-close {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.fx-drawer-close:hover {
	border-color: currentColor;
}
.fx-drawer-added {
	margin: 1rem 0 0;
	padding: 0.8rem 1rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--fx-acc) 12%, var(--wp--preset--color--base));
	font-size: 0.92rem;
	font-weight: 600;
}
.fx-drawer-added::before {
	content: "✓ ";
	color: var(--fx-acc);
}
.fx-drawer .widget_shopping_cart_content {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.fx-drawer ul.woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fx-drawer .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	grid-template-rows: auto auto;
	column-gap: 1rem;
	align-content: center;
	min-height: 4.5rem;
	padding: 1.1rem 2rem 1.1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 0.95rem;
	line-height: 1.35;
}
.fx-drawer .woocommerce-mini-cart-item > a:not(.remove) {
	display: contents;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}
.fx-drawer .woocommerce-mini-cart-item img {
	grid-row: 1 / span 2;
	width: 4.5rem !important;
	height: 4.5rem !important;
	object-fit: cover;
	border-radius: 8px;
	margin: 0 !important;
	float: none !important;
}
.fx-drawer .woocommerce-mini-cart-item .quantity {
	grid-column: 2;
	color: var(--wp--preset--color--muted);
	font-size: 0.88rem;
	margin-top: 0.25rem;
}
.fx-drawer .woocommerce-mini-cart-item a.remove {
	position: absolute;
	top: 1rem;
	right: 0;
	width: 1.6rem;
	height: 1.6rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--wp--preset--color--muted) !important;
	text-decoration: none;
	font-size: 1.15rem;
	line-height: 1;
}
.fx-drawer .woocommerce-mini-cart-item a.remove:hover {
	background: var(--wp--preset--color--line);
	color: var(--wp--preset--color--contrast) !important;
}
.fx-drawer .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: auto 0 0;
	padding: 1.25rem 0 1rem;
	font-size: 1.05rem;
}
.fx-drawer .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem;
	margin: 0;
}
.fx-drawer .woocommerce-mini-cart__buttons a {
	background: transparent !important;
	display: block;
	text-align: center;
	padding: 0.9rem 1rem;
	border-radius: var(--sig-btn-radius, 99px);
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--contrast) !important;
	padding: 0.9rem 1rem !important;
}
.fx-drawer .woocommerce-mini-cart__buttons a.checkout {
	background: var(--fx-acc) !important;
	border-color: var(--fx-acc) !important;
	color: var(--fx-acc-ink) !important;
}
.fx-drawer .woocommerce-mini-cart__empty-message {
	margin: 2rem 0;
	color: var(--wp--preset--color--muted);
}
.fx-drawer-more {
	display: block;
	margin-top: 1rem;
	text-align: center;
	color: inherit;
	font-size: 0.92rem;
}
/* The drawer replaces WooCommerce's small "View basket" link under each product. */
.woocommerce ul.products li.product a.added_to_cart,
.wc-block-components-product-button .added_to_cart {
	display: none !important;
}
.woocommerce ul.products li.product .button.loading {
	opacity: 0.6;
}
.woocommerce ul.products li.product .button.added::after {
	content: " ✓";
}
@media (prefers-reduced-motion: reduce) {
	.fx-drawer-panel,
	.fx-drawer-scrim,
	.fx-basket-n {
		transition: none;
	}
}

/* =========================================================== Shop: product page */
.single-product div.product:has(> .summary) {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.single-product div.product:has(> .summary) > * {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}
.single-product div.product:has(> .summary) > :is(.woocommerce-tabs, .related, .upsells, section) {
	grid-column: 1 / -1;
}
.single-product .woocommerce-product-gallery img {
	border-radius: var(--sig-radius, 14px);
}
.single-product .woocommerce-product-gallery__trigger {
	display: none !important;
}
.single-product :is(.summary, .wp-block-columns > .wp-block-column:last-child) {
	align-self: start;
	position: sticky;
	top: 2rem;
}
.single-product :is(.summary, .wp-block-columns > .wp-block-column:last-child) :is(.product_title, .wp-block-post-title) {
	font-size: clamp(2rem, 3.6vw, 3.25rem) !important;
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0 0 0.75rem !important;
}
.single-product :is(.summary, .wp-block-columns > .wp-block-column:last-child) :is(.price, .wp-block-woocommerce-product-price) {
	font-size: 1.35rem !important;
	font-weight: 600;
	color: var(--fx-acc) !important;
	margin: 0 0 1.25rem !important;
}
.single-product :is(.summary, .wp-block-columns > .wp-block-column:last-child) :is(.woocommerce-product-details__short-description, .wp-block-post-excerpt) {
	font-size: 1.05rem;
	line-height: 1.6;
	max-width: 46ch;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.single-product form.cart {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
	margin: 0 0 1.5rem !important;
}
.single-product form.cart .quantity {
	margin: 0 !important;
}
.single-product form.cart .single_add_to_cart_button {
	flex: 1;
	max-width: 22rem;
	min-height: 3.25rem;
	font-size: 1rem !important;
	background: var(--fx-acc) !important;
	color: var(--fx-acc-ink) !important;
	border-radius: var(--sig-btn-radius, 99px) !important;
	border: 0 !important;
	font-weight: 600;
	cursor: pointer;
}
.single-product form.cart .single_add_to_cart_button:hover {
	filter: brightness(1.08);
}
.single-product .product_meta .sku_wrapper,
.single-product .wc-block-components-product-sku {
	display: none;
}
.single-product :is(.product_meta, .wp-block-woocommerce-product-meta) {
	font-size: 0.9rem;
	color: var(--wp--preset--color--muted);
}
.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 1.5rem;
	padding: 0 !important;
	margin: 0 0 1.25rem !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}
.single-product .woocommerce-tabs ul.tabs li {
	list-style: none;
	background: none !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.single-product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.75rem 0 !important;
	font-weight: 600;
	color: var(--wp--preset--color--muted) !important;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.single-product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--contrast) !important;
	border-color: var(--fx-acc);
}
.single-product .woocommerce-tabs .panel > h2:first-child {
	display: none;
}
.single-product :is(.related > h2, .wp-block-woocommerce-product-collection > h2) {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	letter-spacing: -0.02em;
	margin: 1rem 0 1.5rem;
}
@media (max-width: 781px) {
	.single-product div.product {
		grid-template-columns: 1fr;
	}
	.single-product :is(.summary, .wp-block-columns > .wp-block-column:last-child) {
	align-self: start;
		position: static;
	}
}

/* Shop notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	border: 0 !important;
	border-radius: 12px !important;
	background: color-mix(in srgb, var(--fx-acc) 10%, var(--wp--preset--color--base)) !important;
	color: var(--wp--preset--color--contrast) !important;
	padding: 1rem 1.25rem !important;
}
.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--fx-acc) !important;
}
.fx-account + .fx-basket {
	margin-left: 0.25rem;
}
/* Account pages */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.25rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.6rem 0.9rem;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: color-mix(in srgb, var(--fx-acc) 12%, var(--wp--preset--color--base));
}
.woocommerce form .input-text,
.woocommerce form input[type="email"],
.woocommerce form input[type="password"],
.woocommerce form input[type="text"] {
	font: inherit;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 0.75rem 1rem;
}
.woocommerce-account .woocommerce h2 {
	font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
}

/* =========================================================== Shop pages (basket, checkout, account) on the wide grid */
.fx-layout-signature.woocommerce-page .fx-pagehead {
	background: transparent !important;
	padding-top: clamp(2.5rem, 5vw, 4rem) !important;
	padding-bottom: 0.5rem !important;
}
.fx-layout-signature.woocommerce-page :is(.fx-pagehead, .entry-content) > * {
	max-width: 1320px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.fx-layout-signature.woocommerce-page .fx-pagehead .wp-block-post-title {
	font-size: clamp(2.4rem, 5vw, 4rem) !important;
	line-height: 1.05;
	letter-spacing: -0.035em;
	margin-top: 0.5rem !important;
}
.fx-layout-signature.woocommerce-page .entry-content {
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Sign in and register side by side, as two cards */
.woocommerce-account .u-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}
.woocommerce-account .u-columns::before,
.woocommerce-account .u-columns::after {
	display: none !important;
}
.woocommerce-account .u-columns > * {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--wp--preset--color--surface, var(--wp--preset--color--base));
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sig-radius, 16px);
}
.woocommerce-account .u-columns h2 {
	margin-top: 0 !important;
}
.woocommerce-account form.login,
.woocommerce-account form.register {
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
}
.woocommerce-account form .form-row {
	padding: 0 !important;
	margin: 0 0 1.1rem !important;
}
.woocommerce-account form .form-row label {
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
	display: block;
}
.woocommerce-account form .input-text {
	width: 100%;
}
.woocommerce-account form .input-text:focus {
	outline: none;
	border-color: var(--fx-acc);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fx-acc) 22%, transparent);
}
.woocommerce-account form .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	font-size: 0.92rem;
}
.woocommerce-account form button.button {
	min-height: 3rem;
	padding: 0.75rem 1.75rem !important;
	background: var(--fx-acc) !important;
	color: var(--fx-acc-ink) !important;
	border-radius: var(--sig-btn-radius, 99px) !important;
	border: 0 !important;
	font-weight: 600;
	cursor: pointer;
}
.woocommerce-account .woocommerce-LostPassword {
	margin: 1rem 0 0;
	font-size: 0.92rem;
}
.woocommerce-account .woocommerce-privacy-policy-text p {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}
/* Signed in: menu on the left, content on the right */
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: start;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
}
@media (max-width: 781px) {
	.woocommerce-account .u-columns,
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: 1fr;
	}
}
