/*
Theme Name: Fanxiaogao Art
Theme URI: https://fanxiaogaoart.com
Author: Fanxiaogao Art
Description: Lightweight editorial theme for FANXIAOGAO ART — portfolio, brush packs and courses.
Version: 1.3.7
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fanxiaogaoart
Tags: block-theme, portfolio, e-commerce
*/

:root {
	--fx-ink: #171410;
	--fx-paper: #fbfaf7;
	--fx-clay: #a9603c;
	--fx-clay-deep: #8b4c2d;
	--fx-line: #e3ddd1;
	--fx-muted: #6e6a5e;
	--fx-sand: #efe9dd;
}

html {
	overflow-x: clip;
}

body {
	background-color: var(--fx-paper);
	color: var(--fx-ink);
	font-family: var(--wp--preset--font-family--sans);
	-webkit-font-smoothing: antialiased;
	/* Clip any sub-pixel / full-bleed overhang so no window horizontal scrollbar appears;
	   `clip` does not create a scroll container, so the sticky header keeps working. */
	overflow-x: clip;
}

h1, h2, h3, h4,
.wp-block-post-title,
.wp-block-site-title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 400;
	letter-spacing: -0.015em;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.fx-eyebrow {
	margin: 0 0 1rem;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--fx-muted);
	font-family: var(--wp--preset--font-family--sans);
}

.fx-lede {
	font-size: 1.15rem;
	line-height: 1.7;
	color: var(--fx-muted);
	max-width: 62ch;
}

/* ---------- header ---------- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Logged-in: keep the sticky bar below the fixed WP admin toolbar (32px desktop / 46px mobile) */
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

.fx-header {
	position: static;
	background: rgba(251, 250, 247, 0.94);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--fx-line);
	padding: 16px clamp(20px, 5vw, 56px);
	align-items: center;
	margin-bottom: 0 !important;
}

.fx-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	flex-wrap: wrap;
}

.fx-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	text-decoration: none;
	color: var(--fx-ink);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.05rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fx-logo span {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.68rem;
	letter-spacing: 0.3em;
	color: var(--fx-clay);
}

.fx-nav {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 34px);
	flex-wrap: wrap;
}

.fx-nav a {
	text-decoration: none;
	color: var(--fx-ink);
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.78;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.fx-nav a:hover {
	opacity: 1;
	color: var(--fx-clay);
}

.fx-nav .fx-nav-cta {
	border: 1px solid var(--fx-ink);
	padding: 10px 20px;
	border-radius: 10px;
	opacity: 1;
}

.fx-nav .fx-nav-cta:hover {
	background: var(--fx-ink);
	color: var(--fx-paper);
}

.fx-nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: var(--fx-ink);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 6px 4px;
}

@media (max-width: 860px) {
	.fx-nav-toggle { display: inline-flex; }

	.fx-nav {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		padding-top: 18px;
	}

	.fx-nav.fx-nav-open { display: flex; }

	.fx-nav .fx-nav-cta { align-self: flex-start; }
}

/* ---------- hero carousel ---------- */

.fx-hero {
	position: relative;
	margin-bottom: 0 !important;
	min-height: 820px;
	overflow: hidden;
}

.fx-slides {
	position: absolute;
	inset: 0;
}

.fx-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.fx-slide.is-active {
	opacity: 1;
}

.fx-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fx-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(23, 20, 16, 0.35);
}

.fx-hero-inner {
	position: relative;
	z-index: 2;
	min-height: 820px;
	max-width: 1160px;
	margin: 0 auto;
	padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 56px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fx-hero h1 {
	font-size: clamp(2.6rem, 6.2vw, 5.2rem);
	line-height: 1.02;
	max-width: 20ch;
	margin: 0;
	color: #fff;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.28);
}

.fx-hero .fx-eyebrow {
	color: rgba(255, 255, 255, 0.82);
}

.fx-hero .fx-lede {
	color: rgba(255, 255, 255, 0.9);
	max-width: 46ch;
	margin-top: 1.4rem;
}

.fx-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.fx-carousel-arrow.prev { left: 24px; }
.fx-carousel-arrow.next { right: 24px; }

.fx-carousel-arrow:hover {
	background: #fff;
	color: var(--fx-ink);
}

@media (max-width: 620px) {
	.fx-carousel-arrow.prev { left: 12px; }
	.fx-carousel-arrow.next { right: 12px; }

	.fx-hero,
	.fx-hero-inner { min-height: 540px; }

	.fx-hero-inner { padding-top: 72px; padding-bottom: 72px; }
}

/* ---------- about intro ---------- */

.fx-about-intro {
	text-align: center;
}

.fx-about-name {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	margin: 0.6rem 0 1.2rem;
}

.fx-about-intro .fx-lede {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- dual mini carousels ---------- */

.fx-duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 4vw, 64px);
}

@media (max-width: 860px) {
	.fx-duo { grid-template-columns: 1fr; }
}

.fx-duo-head h2 {
	margin: 0 0 0.4rem;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.fx-duo-sub {
	color: var(--fx-muted);
	margin: 0 0 1.6rem;
}

/* Duo cards: same two-layer frame as course / brush cards, equal-height columns */
.fx-duo-col { display: flex; flex-direction: column; }
.fx-duo .fx-mini {
	border-radius: 18px;
	border: 1px solid rgba(23, 20, 16, 0.16);
	background: rgba(255, 255, 255, 0.28);
	padding: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fx-duo .fx-mini:hover {
	transform: scale(1.02);
	box-shadow: 0 14px 30px rgba(23, 20, 16, 0.12);
	position: relative;
	z-index: 5;
}
.fx-duo .fx-mini-media { border-radius: 12px; border: 1px solid rgba(23, 20, 16, 0.10); overflow: hidden; }
.fx-duo .fx-mini-meta { flex: 1; display: flex; flex-direction: column; }
.fx-duo .fx-mini-desc { flex: 1; }

/* Hover zoom on all product / course cards */
.fx-course-grid .fx-card, .fx-grid-5 .fx-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.fx-course-grid .fx-card:hover, .fx-grid-5 .fx-card:hover {
	transform: scale(1.02);
	box-shadow: 0 14px 30px rgba(23, 20, 16, 0.12);
	position: relative;
	z-index: 5;
}

.fx-mini-track { position: relative; }

.fx-mini-slide { display: none; }
.fx-mini-slide.is-active { display: block; }

.fx-mini-media {
	display: block;
}

.fx-mini-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	background: var(--fx-sand);
}

.fx-mini-meta { padding-top: 1.2rem; }

.fx-mini-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.fx-mini-row h3 {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

.fx-mini-price {
	color: var(--fx-clay);
	white-space: nowrap;
}

.fx-mini-desc {
	color: var(--fx-muted);
	margin: 0.7rem 0 0;
	font-size: 0.95rem;
	line-height: 1.6;
	min-height: 3.2em;
}

.fx-mini-link,
.fx-mini-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--fx-ink);
	border-bottom: 1px solid var(--fx-clay);
	padding-bottom: 4px;
}

.fx-mini-link { margin-top: 1rem; }
.fx-mini-link:hover,
.fx-mini-all:hover { color: var(--fx-clay); }

.fx-mini-controls { margin-top: 1.6rem; }

.fx-mini-bar {
	height: 3px;
	background: var(--fx-line);
}

.fx-mini-progress {
	display: block;
	height: 100%;
	background: var(--fx-clay);
	width: 20%;
	transition: width 0.4s ease;
}

.fx-mini-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 1.1rem;
}

.fx-mini-pager {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fx-mini-pager button {
	width: 38px;
	height: 38px;
	border: 1px solid var(--fx-line);
	background: transparent;
	color: var(--fx-ink);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 14px;
}

.fx-mini-pager button:hover {
	background: var(--fx-ink);
	color: var(--fx-paper);
	border-color: var(--fx-ink);
}

.fx-mini-count {
	font-size: 0.85rem;
	color: var(--fx-muted);
	min-width: 3.2em;
	text-align: center;
}

.fx-mini-arrow {
	position: absolute;
	top: 36%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
}

.fx-mini-arrow.prev { left: 14px; }
.fx-mini-arrow.next { right: 14px; }

.fx-mini-arrow:hover {
	background: #fff;
	color: var(--fx-ink);
}

@media (max-width: 620px) {
	.fx-mini-arrow.prev { left: 8px; }
	.fx-mini-arrow.next { right: 8px; }
}

/* ---------- sections ---------- */

.fx-section {
	padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 56px);
}

.fx-section-tight {
	padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 56px);
}

.fx-hairline {
	border: 0;
	border-top: 1px solid var(--fx-line);
	margin: 0;
}

.fx-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: clamp(24px, 3vw, 44px);
}

.fx-head-row h2 {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.fx-link-more {
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fx-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--fx-clay);
	padding-bottom: 4px;
	white-space: nowrap;
}

/* ---------- grids ---------- */

.fx-grid {
	display: grid;
	gap: clamp(16px, 2.4vw, 32px);
	margin: 0;
}

.fx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.fx-grid > .wp-block-group {
	margin: 0;
	padding: 0;
	background: transparent;
}

/* Shared two-layer card frame (homepage rails + brushes page) */
.fx-course-grid .fx-card,
.fx-grid-5 .fx-card {
	border-radius: 18px;
	border: 1px solid rgba(23, 20, 16, 0.16);
	background: rgba(255, 255, 255, 0.28);
	padding: 14px;
	overflow: hidden;
}
.fx-course-grid .fx-card-media,
.fx-grid-5 .fx-card figure {
	border-radius: 12px;
	border: 1px solid rgba(23, 20, 16, 0.10);
	overflow: hidden;
}
.fx-grid-5 .fx-card figure {
	aspect-ratio: 16 / 10;
	margin: 0;
}
.fx-grid-5 .fx-card figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 980px) {
	.fx-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
	.fx-grid-2, .fx-grid-3, .fx-grid-5 { grid-template-columns: 1fr; }
}

/* ---------- product card ---------- */

.fx-card {
	display: flex;
	flex-direction: column;
}

.fx-card .wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	background: var(--fx-sand);
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fx-card:hover .wp-block-image img {
	transform: scale(1.015);
}

.fx-card-media {
	position: relative;
}

.fx-soon {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(23, 20, 16, 0.82);
	color: #fff;
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 6px 11px;
	border-radius: 999px;
}

/* compact course section */

.fx-course-grid {
	max-width: 900px;
}

.fx-course-grid .wp-block-image img {
	aspect-ratio: 16 / 10;
}

.fx-course-grid .fx-card h3 {
	font-size: 1.02rem;
}

.fx-course-grid .fx-card p {
	font-size: 0.88rem;
}

.fx-card h3 {
	font-size: 1.12rem;
	margin: 0.9rem 0 0.2rem;
	line-height: 1.3;
}

.fx-card p {
	margin: 0.15rem 0 0;
	font-size: 0.92rem;
	color: var(--fx-muted);
	line-height: 1.55;
}

.fx-price {
	margin-top: auto !important;
	padding-top: 0.9rem;
	color: var(--fx-clay) !important;
	letter-spacing: 0.04em;
	font-size: 0.95rem !important;
	font-variant-numeric: tabular-nums;
}

.fx-buy {
	margin-top: 0.9rem;
}

.fx-buy .wp-block-button__width-100,
.fx-buy a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 10px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* secondary ghost: course card "View course" */
.fx-course-grid .fx-buy a {
	background: #ffffff;
	color: var(--fx-ink);
	border-color: rgba(23, 20, 16, 0.25);
}

.fx-course-grid .fx-buy a:hover {
	background: rgba(169, 96, 60, 0.06);
	color: var(--fx-clay);
	border-color: var(--fx-clay);
}

/* primary: brush card "Add to cart" */
.fx-grid-5 .fx-buy a {
	background: var(--fx-clay);
	color: #ffffff;
}

.fx-grid-5 .fx-buy a:hover {
	background: var(--fx-clay-deep);
	color: #ffffff;
}

/* ---------- split feature ---------- */

.fx-split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	width: 100%;
}

.fx-split.flip > *:first-child { order: 2; }

@media (max-width: 860px) {
	.fx-split { grid-template-columns: 1fr; }
	.fx-split.flip > *:first-child { order: 0; }
}

.fx-split img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--fx-sand);
}

/* ---------- portfolio ---------- */

.fx-portfolio {
	columns: 3;
	column-gap: clamp(14px, 2vw, 26px);
}

.fx-portfolio > .wp-block-group {
	break-inside: avoid;
	margin: 0 0 clamp(14px, 2vw, 26px);
}

.fx-portfolio img {
	width: 100%;
	height: auto;
	display: block;
	background: var(--fx-sand);
	transition: transform 0.5s ease, filter 0.5s ease;
}

.fx-portfolio > .wp-block-group:hover img {
	transform: scale(1.01);
	filter: brightness(1.03);
}

@media (max-width: 900px) { .fx-portfolio { columns: 2; } }
@media (max-width: 560px) { .fx-portfolio { columns: 1; } }

/* ---------- faq ---------- */

.fx-faq details {
	border-top: 1px solid var(--fx-line);
	padding: 1.15rem 0;
}

.fx-faq details[open] {
	padding-bottom: 1.5rem;
}

.fx-faq summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.08rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.fx-faq summary::-webkit-details-marker { display: none; }

.fx-faq details p {
	color: var(--fx-muted);
	margin: 0.85rem 0 0;
	max-width: 70ch;
}

/* ---------- quote ---------- */

.fx-quote {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.35rem, 2.6vw, 2rem);
	line-height: 1.45;
	max-width: 34ch;
	margin: 0;
}

.fx-quote cite {
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-style: normal;
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fx-muted);
	margin-top: 1.2rem;
}

/* ---------- footer ---------- */

.fx-footer {
	background: var(--fx-ink);
	color: #eae5da;
	padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 56px) 32px;
	margin-bottom: 0 !important;
}

.fx-footer h2 {
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.1;
	margin: 0 0 1rem;
	max-width: 22ch;
}

.fx-footer p { color: #b9b3a6; }

.fx-footer a { color: #eae5da; }

.fx-footer .fx-foot-links {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	margin-top: 2.2rem;
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.fx-footer .fx-foot-links a { text-decoration: none; }

.fx-footer .fx-copyright {
	border-top: 1px solid rgba(234, 229, 218, 0.18);
	margin-top: 3rem;
	padding-top: 1.4rem;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: #8d8779;
}

/* ---------- forms ---------- */

/* ---------- button system: primary / secondary ---------- */

.fx-btn,
.wp-block-button__link,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button,
.single_add_to_cart_button,
.added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	line-height: 1.2;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 10px;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* primary — clay filled */
.fx-btn--primary,
.single_add_to_cart_button,
.add_to_cart_button,
.wc-block-components-button:not(.is-link),
.checkout-button,
#place_order,
.comment-form input[type=submit],
.form-submit input[type=submit],
.woocommerce button.button.alt {
	background: var(--fx-clay) !important;
	color: #ffffff !important;
	border-color: transparent !important;
}

.fx-btn--primary:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover,
.woocommerce button.button.alt:hover {
	background: var(--fx-clay-deep) !important;
	color: #ffffff !important;
}

/* secondary — ghost outline */
.fx-btn--ghost,
.added_to_cart,
.wc-block-components-button.is-link,
.woocommerce a.button:not(.checkout-button):not(.added_to_cart),
.woocommerce button.button:not(.alt):not(.add_to_cart_button) {
	background: #ffffff !important;
	color: var(--fx-ink) !important;
	border: 1px solid rgba(23, 20, 16, 0.25) !important;
}

.fx-btn--ghost:hover,
.added_to_cart:hover,
.woocommerce a.button:not(.checkout-button):hover,
.woocommerce button.button:not(.alt):not(.add_to_cart_button):hover {
	background: rgba(169, 96, 60, 0.06) !important;
	color: var(--fx-clay) !important;
	border-color: var(--fx-clay) !important;
}

/* ---------- woocommerce ---------- */

.woocommerce div.product .product_title,
.woocommerce div.product p.price {
	font-family: var(--wp--preset--font-family--serif);
}

.woocommerce div.product p.price,
/* ---------- Brush PDP: right summary column ---------- */

.fx-eyebrow {
	margin: 0 0 10px;
	color: var(--fx-clay);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.wc-block-components-product-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.fx-price-now {
	font-weight: 800;
	font-size: 1.75rem;
	line-height: 1.1;
	color: var(--fx-ink);
	letter-spacing: 0.01em;
}

.fx-price-cur {
	color: var(--fx-muted);
	font-size: 0.95rem;
	font-weight: 500;
}

.fx-ref-price {
	color: var(--fx-muted);
	font-size: 1rem;
	font-weight: 400;
	text-decoration: line-through;
}

.wp-block-post-excerpt__excerpt {
	color: #4a443a;
	line-height: 1.6;
}

/* Compatibility card */
.fx-compat {
	background: #f4ecdf;
	border: 1px solid rgba(169, 96, 60, 0.45);
	border-radius: 12px;
	padding: 18px 20px;
	margin-top: 18px;
}

.fx-compat-title {
	margin: 0 0 12px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--fx-ink);
}

.fx-compat-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fx-compat-check {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--fx-clay);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fx-compat-main {
	font-weight: 700;
	color: var(--fx-ink);
	font-size: 0.98rem;
}

.fx-compat-sub {
	margin: 8px 0 0 32px;
	color: var(--fx-muted);
	font-size: 0.9rem;
}

/* Instant download line */
.fx-delivery {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--fx-ink);
	font-size: 0.92rem;
	margin: 16px 0 0;
}

.fx-delivery svg {
	flex: 0 0 auto;
	color: var(--fx-clay);
}

/* Buy now + heart row */
.fx-atc-row {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	align-items: stretch;
}

.fx-buy-now {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 50px;
	border: 0;
	border-radius: 10px;
	background: var(--fx-clay);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.2s ease;
}

.fx-buy-now:hover { background: var(--fx-clay-deep); }
.fx-buy-now:disabled { opacity: 0.6; cursor: default; }

.fx-fav-btn {
	flex: 0 0 50px;
	width: 50px;
	border-radius: 10px;
	border: 1px solid rgba(23, 20, 16, 0.25);
	background: #ffffff;
	color: var(--fx-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fx-fav-btn:hover {
	border-color: var(--fx-clay);
	color: var(--fx-clay);
}

.fx-fav-btn.active {
	background: var(--fx-clay);
	border-color: var(--fx-clay);
	color: #ffffff;
}

/* License note under the buttons */
.fx-license {
	margin: 12px 0 0;
	color: var(--fx-muted);
	font-size: 0.85rem;
}

/* Share row: label + divider + circular icons */
.fx-share {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
}

.fx-share-label {
	color: var(--fx-muted);
	font-size: 0.92rem;
}

.fx-share-divider {
	width: 1px;
	height: 22px;
	background: var(--fx-line);
}

.fx-share-btns {
	display: flex;
	gap: 10px;
}

.fx-share-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	text-decoration: none;
}

.fx-share-btn.fb { background: #3b5998; }
.fx-share-btn.pin { background: #c8232c; }
.fx-share-btn.x { background: #171410; }
.fx-share-btn.li { background: #0a66c2; }

/* Accordion */
.fx-accordion {
	margin-top: 22px;
	border-top: 1px solid var(--fx-line);
}

.fx-acc-item {
	border-bottom: 1px solid var(--fx-line);
}

.fx-acc-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	color: var(--fx-ink);
	font-size: 0.98rem;
}

.fx-acc-item summary::-webkit-details-marker { display: none; }

.fx-acc-plus {
	color: var(--fx-muted);
	display: inline-flex;
}

.fx-acc-plus svg { transition: transform 0.2s ease; }
.fx-acc-item[open] .fx-acc-plus svg { transform: rotate(45deg); }

.fx-acc-body {
	padding: 0 0 16px;
	color: var(--fx-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.fx-acc-body p { margin: 0; }

/* Wrapper regions: borderless on brush PDPs. */
.fx-buy-box,
.fx-share-box {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.fx-buy-box { margin-bottom: 18px; }

.fx-buy-box > :first-child,
.fx-share-box > :first-child { margin-top: 0; }

.fx-buy-box .wp-block-post-title { margin-top: 0; }

@media (max-width: 600px) {
	.fx-fav-btn { flex: 0 0 50px; }
}

.wp-block-woocommerce-product-image-gallery {
	position: relative;
}

.fx-pdp-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 14px;
}

.fx-pdp-thumb {
	padding: 0;
	border-radius: 12px;
	border: 1px solid rgba(23, 20, 16, 0.10);
	overflow: hidden;
	cursor: pointer;
	background: var(--fx-sand);
	aspect-ratio: 1 / 1;
}

.fx-pdp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fx-pdp-thumb.active {
	outline: 2px solid var(--fx-clay);
	outline-offset: 2px;
}

.fx-gallery-arrow {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(23, 20, 16, 0.12);
	background: rgba(255, 255, 255, 0.9);
	color: var(--fx-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(23, 20, 16, 0.12);
}

.fx-gallery-arrow.prev { left: 12px; }
.fx-gallery-arrow.next { right: 12px; }

/* My Account favorites list */

.fx-fav-list { margin-top: 1rem; }
.fx-fav-empty { color: var(--fx-muted); }

.fx-fav-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.fx-fav-item {
	display: flex;
	gap: 14px;
	border: 1px solid rgba(23, 20, 16, 0.16);
	border-radius: 16px;
	padding: 14px;
	background: rgba(255, 255, 255, 0.28);
}

.fx-fav-thumb img {
	width: 88px;
	height: 88px;
	border-radius: 10px;
	object-fit: cover;
	display: block;
}

.fx-fav-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fx-fav-name {
	font-weight: 600;
	color: var(--fx-ink);
	text-decoration: none;
}

.fx-fav-price { color: var(--fx-clay); }

.fx-fav-remove {
	align-self: flex-start;
	border: 0;
	background: transparent;
	color: var(--fx-muted);
	cursor: pointer;
	font-size: 0.85rem;
	text-decoration: underline;
	padding: 0;
}

.fx-fav-remove:hover { color: var(--fx-clay); }

.fx-btn-ghost {
	display: inline-flex;
	padding: 11px 22px;
	border: 1px solid rgba(23, 20, 16, 0.25);
	border-radius: 10px;
	color: var(--fx-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	background: #ffffff;
}

@media (max-width: 620px) {
	.fx-fav-grid { grid-template-columns: 1fr; }
}

/* ---------- Checkout: order summary / email / payment cards ---------- */

.fx-co-card {
	border: 1px solid var(--fx-line);
	border-radius: 16px;
	background: #ffffff;
	padding: clamp(18px, 2.2vw, 26px);
	margin-bottom: 18px;
}

.fx-co-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: var(--fx-ink);
}

.fx-co-summary .shop_table { margin: 0; }
.fx-co-summary .shop_table th,
.fx-co-summary .shop_table td { padding: 10px 0; }

.fx-co-email .form-row { margin: 0; }
.fx-co-email .form-row label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 0.9rem;
}
.fx-co-email input[type=email] {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--fx-line);
	border-radius: 10px;
	font: inherit;
	background: #ffffff;
	color: var(--fx-ink);
}

.fx-co-pay .wc_payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fx-co-pay .wc_payment_methods > li {
	padding: 12px 0;
	border-bottom: 1px solid var(--fx-line);
}
.fx-co-pay .wc_payment_methods > li:last-child { border-bottom: 0; }

.fx-co-other { display: none; }
ul.show-others .fx-co-other { display: block; }

.fx-co-other-toggle { padding: 12px 0; border-bottom: 1px solid var(--fx-line); }
.fx-co-other-btn {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--fx-clay);
	font-weight: 600;
	font-size: 0.92rem;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.fx-co-chevron {
	display: inline-block;
	transition: transform 0.2s ease;
	font-size: 0.8em;
}
.fx-co-other-toggle.open .fx-co-chevron { transform: rotate(180deg); }

.fx-co-pay .place-order { margin-top: 16px; }
.fx-co-pay #place_order { width: 100%; min-height: 48px; }

@media (max-width: 600px) {
	.fx-co-card { padding: 18px; }
}

/* ---------- Brush PDP: 4:3 main gallery + smaller summary text ---------- */

/* Square source images are framed in a 4:3 box; cover fills the frame without stretching. */
body.product_cat-brushes .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

body.product_cat-brushes .woocommerce-product-gallery__image a {
	display: block;
	width: 100%;
	height: 100%;
}

body.product_cat-brushes .woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Right summary: smaller heading, price and body copy. */
body.product_cat-brushes .wp-block-post-title {
	font-size: clamp(1.45rem, 2.2vw, 1.8rem);
	line-height: 1.15;
}

body.product_cat-brushes .fx-price-now {
	font-size: 1.5rem;
}

body.product_cat-brushes .fx-ref-price {
	font-size: 0.9rem;
}

body.product_cat-brushes .wp-block-post-excerpt__excerpt {
	font-size: 0.95rem;
}

body.product_cat-brushes .fx-delivery {
	font-size: 0.88rem;
}

body.product_cat-brushes .fx-buy-now {
	font-size: 0.98rem;
}

/* Outline Add to cart overrides the global clay primary button. */
body.product_cat-brushes form.cart .single_add_to_cart_button {
	width: 100%;
	min-height: 50px;
	margin-top: 12px;
	background: transparent !important;
	color: var(--fx-ink) !important;
	border: 1px solid var(--fx-clay) !important;
}

body.product_cat-brushes form.cart .single_add_to_cart_button:hover {
	background: var(--fx-clay) !important;
	color: #ffffff !important;
}

/* ---------- Brush PDP: 7:3 gallery/summary columns ---------- */

body.product_cat-brushes .wp-block-woocommerce-product-image-gallery {
	max-width: 100% !important;
}

@media (min-width: 1200px) {
	body.product_cat-brushes .wp-block-columns > .wp-block-column:first-child {
		flex: 0 0 70% !important;
	}

	body.product_cat-brushes .wp-block-columns > .wp-block-column:last-child {
		flex: 1 1 0% !important;
		min-width: 0;
		display: flex;
		flex-direction: column;
	}

	body.product_cat-brushes .wp-block-columns > .wp-block-column:last-child > .fx-buy-box {
		flex: 0 0 auto;
		margin-bottom: 18px;
	}

	body.product_cat-brushes .wp-block-columns > .wp-block-column:last-child > .fx-share-box {
		flex: 1 1 auto;
		margin-top: 0;
	}

	body.product_cat-brushes .woocommerce-product-gallery {
		margin-bottom: 0 !important;
	}

	body.product_cat-brushes .fx-buy-box > * {
		margin-top: 8px;
	}

	body.product_cat-brushes .fx-buy-box > *:first-child {
		margin-top: 0;
	}
}

/* Below the large-desktop breakpoint the columns stack full width. */
@media (max-width: 1199px) {
	body.product_cat-brushes .wp-block-columns {
		flex-wrap: wrap;
	}

	body.product_cat-brushes .wp-block-columns > .wp-block-column {
		flex: 0 0 100% !important;
		min-width: 0;
	}
}

/* Approved editorial header and transparent brush-card frames. */
header.wp-block-template-part .fx-header { padding:14px 32px!important; background:rgba(251,248,245,.97)!important; border-bottom:1px solid #dfd3c7; }
header.wp-block-template-part .fx-header-inner { max-width:1320px!important; flex-wrap:nowrap!important; gap:24px!important; }
header.wp-block-template-part .fx-header .fx-logo { color:#421f14!important; font-family:Georgia,'Times New Roman',serif!important; font-size:24px!important; font-weight:600; letter-spacing:.07em; gap:6px; order:0; }
header.wp-block-template-part .fx-header .fx-logo span { color:inherit!important; font:inherit!important; letter-spacing:inherit!important; }
header.wp-block-template-part .fx-header .fx-nav { order:1; justify-content:flex-end!important; gap:24px!important; }
header.wp-block-template-part .fx-header .fx-nav a { color:#421f14!important; opacity:1; font-size:14px!important; font-weight:500; letter-spacing:.015em; text-transform:none; }
header.wp-block-template-part .fx-header .fx-nav a:hover { color:#ad5736!important; }
header.wp-block-template-part .fx-header .fx-header-actions { order:2; border-left:1px solid #d9c6b8; padding-left:20px; gap:18px!important; }
header.wp-block-template-part .fx-header .fx-nav-register { display:none!important; }
header.wp-block-template-part .fx-header .fx-nav-account { display:inline-flex; align-items:center; gap:8px; color:#421f14!important; font-size:14px!important; }
header.wp-block-template-part .fx-header .fx-nav-account:before { content:''; display:inline-block; width:18px; height:18px; flex-shrink:0; background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23421f14%22%20stroke-width%3D%221.5%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22M4%2021v-2a8%208%200%200%201%2016%200v2Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; }
header.wp-block-template-part .fx-header .fx-header-actions .fx-nav-cart { background:#ad5736!important; border-color:#ad5736!important; border-radius:6px!important; padding:9px 15px!important; font-size:13px!important; }
.fx-product-grid .fx-product-card { border:1px solid rgba(121,88,64,.22)!important; border-radius:16px!important; background:rgba(255,255,255,.16)!important; padding:16px!important; box-sizing:border-box; overflow:hidden; transition:border-color .2s,box-shadow .2s; }
.fx-product-grid .fx-product-card:hover { border-color:rgba(156,90,52,.42)!important; box-shadow:0 7px 22px rgba(74,47,29,.05); }
.fx-product-grid .fx-product-card figure { margin:0!important; overflow:hidden; border-radius:10px!important; }
.fx-product-grid .fx-product-card .fx-product-title { margin-top:15px!important; }
.fx-bundle { border:1px solid rgba(121,88,64,.22)!important; border-radius:16px!important; background:rgba(255,255,255,.16)!important; padding:24px!important; overflow:hidden; box-sizing:border-box; }
@media(max-width:1080px) {
 header.wp-block-template-part .fx-header-inner { flex-wrap:wrap!important; gap:14px!important; }
 header.wp-block-template-part .fx-header .fx-logo { font-size:22px!important; }
 header.wp-block-template-part .fx-header .fx-header-actions { order:1; margin-left:auto; }
 header.wp-block-template-part .fx-header .fx-nav-toggle { display:inline-flex!important; order:2; align-items:center; justify-content:center; }
 header.wp-block-template-part .fx-header .fx-nav { display:none!important; order:3; flex:0 0 100%!important; width:100%; flex-direction:column; align-items:flex-start!important; gap:18px!important; padding-top:14px; }
 header.wp-block-template-part .fx-header .fx-nav.fx-nav-open { display:flex!important; }
}
@media(max-width:580px) {
 header.wp-block-template-part .fx-header { padding:12px 16px!important; }
 header.wp-block-template-part .fx-header .fx-logo { font-size:17px!important; letter-spacing:.045em; gap:4px; }
 header.wp-block-template-part .fx-header .fx-header-actions { border-left:0; padding-left:0; gap:10px!important; }
 header.wp-block-template-part .fx-header .fx-nav-account { font-size:0!important; gap:0; padding:0!important; }
 header.wp-block-template-part .fx-header .fx-header-actions .fx-nav-cart { padding:8px 10px!important; font-size:12px!important; }
 header.wp-block-template-part .fx-header-inner { gap:10px!important; }
 .fx-product-grid .fx-product-card { padding:13px!important; }
}

/* Keep the shared navigation visible beyond individual template containers. */
html body header.wp-block-template-part:has(.fx-header) { position:fixed!important; top:0!important; left:0; right:0; width:100%; z-index:1000; margin:0!important; }
html body.admin-bar header.wp-block-template-part:has(.fx-header) { top:32px!important; }
body:has(header.wp-block-template-part .fx-header) { padding-top:72px!important; }
@media(max-width:782px) { html body.admin-bar header.wp-block-template-part:has(.fx-header) { top:46px!important; } }
@media(max-width:580px) { body:has(header.wp-block-template-part .fx-header) { padding-top:64px!important; } }

header.wp-block-template-part .fx-header { box-sizing:border-box!important; width:100%!important; max-width:none!important; margin-left:0!important; margin-right:0!important; }

/* Consistent, gentle lift for brush and course cards. */
.fx-product-grid .fx-product-card, .fx-bundle, .fx-courses .fx-cs-plan, .fx-offers .fx-offer-card { position:relative; transform-origin:center; transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease!important; }
@media(hover:hover) and (pointer:fine) {
 .fx-product-grid .fx-product-card:hover, .fx-bundle:hover, .fx-courses .fx-cs-plan:hover, .fx-offers .fx-offer-card:hover { transform:translateY(-3px) scale(1.025)!important; box-shadow:0 10px 24px rgba(55,33,21,.10)!important; z-index:2; }
}
.fx-product-grid .fx-product-card:focus-within, .fx-bundle:focus-within, .fx-courses .fx-cs-plan:focus-within { box-shadow:0 8px 20px rgba(55,33,21,.09)!important; }
@media(prefers-reduced-motion:reduce) { .fx-product-grid .fx-product-card, .fx-bundle, .fx-courses .fx-cs-plan, .fx-offers .fx-offer-card { transition:none!important; transform:none!important; } }
