/*
 * Bufan theme styles.
 *
 * Palette (redesign): warm cotton surfaces, deep ink navy, one muted clay accent.
 * Layout/motion refinements live in redesign.css, loaded after this file.
 */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-var.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	/* Layout: bold blue hero and bands, white working surfaces, stitched dividers. */
	--canvas: #f7f3ec;
	--paper: #fffdf9;
	--sand: #efe8dc;
	--sand-2: #e1d7c6;
	--line: #e2d9ca;
	--ink: #1c2333;
	--ink-2: #4b5160;
	--ink-3: #7d7a70;
	--thread: #1f2b46;
	--thread-600: #131b30;
	--thread-50: #ece6da;
	--klein: #1f2b46;
	--sun: #dc9068;
	--sun-600: #c97a50;
	--pink: #e6b9a0;
	--sage: #5b7a62;
	--sage-50: #e6eee7;
	--night: #151b2c;
	--white: #fff;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 26px;
	--shadow-sm: 0 1px 2px rgba(28, 35, 51, 0.06);
	--shadow: 0 1px 2px rgba(28, 35, 51, 0.05), 0 12px 32px -14px rgba(28, 35, 51, 0.22);
	--shadow-lg: 0 2px 4px rgba(28, 35, 51, 0.05), 0 28px 56px -22px rgba(28, 35, 51, 0.35);

	--font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--font-display: "Bricolage Grotesque", "Figtree", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 104px);
	--header-h: 76px;
	--stitch: rgba(31, 43, 70, 0.3);
	--woven: repeating-linear-gradient(0deg, rgba(28, 35, 51, 0.022) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(28, 35, 51, 0.022) 0 1px, transparent 1px 4px);
	--woven-light: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px);
}

/* Chinese pages: the Latin display face has no CJK glyphs; Chinese falls back to the system sans. */

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16.5px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

.lang-zh body,
body.lang-zh {
	line-height: 1.8;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--thread);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--thread-600);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	text-wrap: balance;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--ink);
}

body.lang-zh h1,
body.lang-zh h2,
body.lang-zh h3,
body.lang-zh h4 {
	letter-spacing: 0.01em;
	line-height: 1.3;
	/* Break Chinese headings at punctuation rather than inside words. */
	word-break: keep-all;
	overflow-wrap: anywhere;
}

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 2px solid var(--thread);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--thread-50);
	color: var(--ink);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--white);
	border-radius: var(--radius-sm);
}

.skip-link:focus {
	top: 12px;
	color: var(--white);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(800px + var(--gutter) * 2);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 46px;
	padding: 0.7em 1.35em;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font: 700 15px/1.2 var(--font-sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
	white-space: nowrap;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--sm {
	min-height: 40px;
	padding: 0.55em 1.1em;
	font-size: 14px;
}

.btn--lg {
	min-height: 52px;
	padding: 0.85em 1.6em;
	font-size: 16px;
}

.btn--primary {
	background: var(--thread);
	color: var(--white);
	box-shadow: 0 6px 18px -8px rgba(31, 43, 70, 0.45);
}

.btn--primary:hover {
	background: var(--thread-600);
	color: var(--white);
}

.btn--sun {
	background: var(--sun);
	color: var(--ink);
	box-shadow: 0 10px 24px -12px rgba(220, 144, 104, 0.95);
}

.btn--sun:hover {
	background: var(--sun-600);
	color: var(--ink);
}

.btn--outline {
	border-color: var(--ink);
	color: var(--ink);
	background: transparent;
}

.btn--outline:hover {
	background: var(--ink);
	color: var(--white);
}

.btn--light {
	background: var(--paper);
	color: var(--ink);
}

.btn--light:hover {
	background: var(--white);
	color: var(--thread-600);
}

.btn--ghost-light {
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--white);
}

.btn--ghost-light:hover {
	border-color: var(--white);
	color: var(--white);
	background: rgba(255, 255, 255, 0.08);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	text-decoration: none;
	color: var(--thread);
}

.link-arrow .icon {
	transition: transform 0.2s;
}

.link-arrow:hover .icon {
	transform: translateX(3px);
}

/* ---------- Eyebrow & section heads ---------- */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font: 700 12.5px/1.3 var(--font-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--thread);
	text-decoration: none;
}

body.lang-zh .eyebrow {
	letter-spacing: 0.08em;
	font-size: 13px;
}

.eyebrow::before {
	content: "";
	width: 26px;
	border-top: 2px dashed currentColor;
	opacity: 0.8;
}

.eyebrow--link:hover {
	color: var(--thread-600);
}

.eyebrow--sun {
	color: var(--sun);
}

.section {
	padding-block: var(--section);
}

.section--tint {
	background: var(--sand);
	background-image: var(--woven);
}

.section--flush-top {
	padding-top: clamp(32px, 5vw, 56px);
}

.section-head {
	max-width: 700px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.section-title {
	font-size: clamp(1.9rem, 3.6vw, 2.9rem);
	font-weight: 800;
}

.section-lead {
	margin: 0;
	font-size: 1.075rem;
	color: var(--ink-2);
}

.section-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head-row .section-head {
	margin-bottom: 0;
}

/* ---------- Top bar ---------- */
.topbar {
	background: var(--night);
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}

.topbar__note {
	margin: 0;
}

.topbar__contact {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__contact a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
	text-decoration: none;
}

.topbar__contact a:hover {
	color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

/*
 * The frosted background sits on a pseudo-element: backdrop-filter on the header itself
 * would become the containing block of the fixed mobile menu and collapse it.
 */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: 0 6px 20px -16px rgba(30, 43, 47, 0.4);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--header-h);
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	color: var(--ink);
	text-decoration: none;
}

.site-logo:hover {
	color: var(--ink);
}

.site-logo__img {
	width: auto;
	max-height: 48px;
}

.site-logo__img--default {
	width: auto;
	height: 52px;
	max-height: none;
	aspect-ratio: 361 / 112;
}

.site-logo__mark {
	display: inline-flex;
	color: var(--thread);
}

.site-logo__text {
	font: 800 25px/1 var(--font-display);
	letter-spacing: -0.02em;
}

.site-nav {
	margin-left: auto;
}

.site-nav .menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu > li {
	position: relative;
}

.site-nav .menu a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current-menu-ancestor > a,
.site-nav .menu .current-menu-parent > a {
	color: var(--thread);
}

.site-nav .menu .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.6;
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-nav .sub-menu a {
	padding: 9px 12px;
	font-size: 14.5px;
}

.site-nav .sub-menu a:hover {
	background: var(--canvas);
}

.site-nav__mobile-extra {
	display: none;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.lang-switch {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 3px;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
}

.lang-switch a {
	display: block;
	padding: 4px 10px;
	border-radius: 999px;
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.lang-switch a:hover {
	color: var(--ink);
}

.lang-switch a.is-current {
	background: var(--thread);
	color: var(--white);
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle__icon--close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close {
	display: inline-flex;
}

@media (max-width: 1080px) {
	:root {
		--header-h: 66px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-header__actions {
		margin-left: auto;
		gap: 10px;
	}

	.site-nav {
		position: fixed;
		inset: var(--nav-top, 66px) 0 0 0;
		z-index: 99;
		margin: 0;
		padding: 16px var(--gutter) 40px;
		overflow-y: auto;
		background: var(--canvas);
		border-top: 1px solid var(--line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}

	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav .menu > li {
		border-bottom: 1px dashed var(--line);
	}

	.site-nav .menu a {
		padding: 14px 4px;
		font-size: 18px;
	}

	.site-nav .menu .menu-item-has-children > a::after {
		display: none;
	}

	.site-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 10px 12px;
		border: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav .sub-menu a {
		padding: 8px 4px;
		font-size: 15.5px;
		color: var(--ink-2);
	}

	.site-nav__mobile-extra {
		display: grid;
		gap: 24px;
		margin-top: 28px;
	}

	body.nav-open {
		overflow: hidden;
	}
}

@media (max-width: 560px) {
	.site-header__cta {
		display: none;
	}

	.topbar__note {
		display: none;
	}

	.topbar__inner {
		justify-content: center;
	}

	.topbar__contact {
		gap: 14px;
	}

	.site-logo__text {
		font-size: 21px;
	}
}

@media (max-width: 380px) {
	.topbar__contact li:first-child:not(:only-child) {
		display: none;
	}
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(40px, 6vw, 84px);
	background-color: var(--klein);
	background-image: var(--woven-light);
	color: rgba(255, 255, 255, 0.86);
}

/* A large stitched ring, echoing an embroidery hoop. */
.hero::before {
	content: "";
	position: absolute;
	top: -240px;
	right: -200px;
	width: 760px;
	height: 760px;
	border: 2px dashed rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	pointer-events: none;
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	align-items: center;
	gap: clamp(32px, 5vw, 64px);
}

.hero .eyebrow {
	color: var(--sun);
}

.hero__title {
	margin-bottom: 22px;
	font-size: clamp(2.5rem, 5vw, 3.9rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
	color: var(--white);
}

body.lang-zh .hero__title {
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.hl {
	position: relative;
	font-style: normal;
	color: var(--sun);
	white-space: nowrap;
}

.hl__stitch {
	position: absolute;
	left: -2%;
	bottom: -0.1em;
	width: 104%;
	height: 0.26em;
	overflow: visible;
	clip-path: inset(0 100% 0 0);
	animation: bufan-stitch 1.1s 0.35s cubic-bezier(0.6, 0.1, 0.2, 1) forwards;
}

.hl__stitch path {
	fill: none;
	stroke: var(--pink);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-dasharray: 10 8;
	vector-effect: non-scaling-stroke;
}

@keyframes bufan-stitch {
	to {
		clip-path: inset(0 0 0 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hl__stitch {
		clip-path: none;
		animation: none;
	}
}

.hero__text {
	max-width: 560px;
	margin-bottom: 32px;
	font-size: clamp(1.06rem, 1.4vw, 1.2rem);
	color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}

.hero__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.86);
}

.hero__checks li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.hero__checks .icon {
	color: var(--sun);
}

.hero__media {
	position: relative;
}

/* Sun-yellow disc behind the products. */
.hero__media::before {
	content: "";
	position: absolute;
	inset: 4% 2% 2% 4%;
	z-index: 0;
	background: var(--sun);
	border-radius: 50%;
}

.hero__frame {
	position: relative;
	z-index: 1;
	aspect-ratio: 1 / 1;
}

.hero__media--photo .hero__frame {
	overflow: hidden;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	transform: rotate(-2deg);
}

.hero__media--photo .hero__frame::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 2px dashed rgba(255, 255, 255, 0.85);
	border-radius: calc(var(--radius-lg) - 8px);
	pointer-events: none;
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__img--illustration {
	object-fit: contain;
}

.hero__stats {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px 32px;
	margin: clamp(36px, 5vw, 60px) 0 0;
	padding: 28px 0 clamp(32px, 4vw, 48px);
	list-style: none;
	border-top: 2px dashed rgba(255, 255, 255, 0.24);
}

.hero__stat {
	display: grid;
	gap: 4px;
}

.hero__stat strong {
	font: 800 clamp(1.35rem, 2.3vw, 1.85rem) / 1.1 var(--font-display);
	letter-spacing: -0.02em;
	color: var(--white);
}

.hero__stat span {
	font-size: 14.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
	.hero__inner {
		grid-template-columns: 1fr;
	}

	.hero__media {
		width: 100%;
		max-width: 460px;
		margin-inline: auto;
	}

	.hero__stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Ticker ---------- */
.ticker {
	overflow: hidden;
	background: var(--sun);
	color: var(--ink);
}

.ticker__track {
	display: flex;
	width: max-content;
	animation: bufan-ticker 40s linear infinite;
}

.ticker:hover .ticker__track {
	animation-play-state: paused;
}

.ticker__list {
	display: flex;
	margin: 0;
	padding: 15px 0;
	list-style: none;
}

.ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	padding-left: 22px;
	font: 700 15px/1 var(--font-display);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ticker__item::after {
	content: "";
	width: 10px;
	height: 10px;
	border: 2px dashed var(--klein);
	border-radius: 50%;
}

body.lang-zh .ticker__item {
	letter-spacing: 0.1em;
}

@keyframes bufan-ticker {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ticker__track {
		animation: none;
	}
}

/* ---------- Category cards ---------- */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-card {
	position: relative;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform 0.25s, box-shadow 0.25s;
}

.cat-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.cat-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sand);
}

.cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.cat-card:hover .cat-card__media img {
	transform: scale(1.04);
}

.cat-card__body {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 18px;
}

.cat-card__title {
	margin: 0;
	font-size: 1.2rem;
}

.cat-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.cat-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cat-card__count {
	flex-shrink: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--thread-50);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--thread);
}

@media (max-width: 600px) {
	.cat-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.cat-card__body {
		flex-direction: column;
		gap: 2px;
		padding: 12px 14px 14px;
	}

	.cat-card__title {
		font-size: 1rem;
	}
}

/* ---------- Product cards ---------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

@media (max-width: 1080px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 760px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.product-card:hover {
	transform: translateY(-3px);
	border-color: var(--sand-2);
	box-shadow: var(--shadow);
}

.product-card__media {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--sand);
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.product-card:hover .product-card__media img {
	transform: scale(1.04);
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}

.product-card__cat {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--thread);
}

.product-card__title {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.25;
}

.product-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.product-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.product-card__meta {
	display: grid;
	gap: 2px;
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--ink-2);
}

.product-card__meta div {
	display: flex;
	gap: 6px;
}

.product-card__meta dt {
	color: var(--ink-3);
}

.product-card__meta dd {
	margin: 0;
}

.product-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--thread);
}

.product-card:hover .product-card__more .icon {
	transform: translateX(3px);
}

.product-card__more .icon {
	transition: transform 0.2s;
}

@media (max-width: 480px) {
	.product-card__body {
		padding: 12px 12px 14px;
	}

	.product-card__title {
		font-size: 0.98rem;
	}

	.product-card__meta {
		font-size: 12px;
	}
}

/* ---------- Features ---------- */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 900px) {
	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.feature-grid {
		grid-template-columns: 1fr;
	}
}

.feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	border: 1.5px dashed var(--stitch);
	border-radius: 50%;
	background: var(--thread-50);
	color: var(--thread);
}

.feature:nth-child(4n + 2) .feature__icon {
	border-color: rgba(224, 68, 122, 0.4);
	background: #ffe7ef;
	color: #d63c72;
}

.feature:nth-child(4n + 3) .feature__icon {
	border-color: rgba(19, 163, 110, 0.4);
	background: var(--sage-50);
	color: var(--sage);
}

.feature:nth-child(4n + 4) .feature__icon {
	border-color: rgba(200, 145, 0, 0.45);
	background: #fff4cc;
	color: #a77800;
}

.feature__title {
	margin-bottom: 6px;
	font-size: 1.25rem;
}

.feature__text {
	margin: 0;
	color: var(--ink-2);
}

/* ---------- Story ---------- */
.section--story {
	padding-top: 0;
}

.story {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}

.story__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 13 / 10;
	background: var(--sand);
	border-radius: var(--radius-lg);
}

.story__media::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1.5px dashed rgba(255, 253, 248, 0.85);
	border-radius: calc(var(--radius-lg) - 8px);
	pointer-events: none;
}

.story__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.story__content .prose {
	margin-bottom: 20px;
	color: var(--ink-2);
	font-size: 1.05rem;
}

@media (max-width: 900px) {
	.story {
		grid-template-columns: 1fr;
	}
}

/* ---------- Process ---------- */
.section--process {
	background: var(--night);
	background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 18px 18px;
	color: rgba(255, 255, 255, 0.78);
}

.section--process .section-title {
	color: var(--white);
}

.section--process .section-lead {
	color: rgba(255, 255, 255, 0.7);
}

.section--process .eyebrow {
	color: var(--sun);
}

.section--process .section-title {
	font-weight: 800;
}

.process {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.process__step {
	position: relative;
	padding: 26px 24px 24px;
	border: 1.5px dashed rgba(255, 255, 255, 0.18);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.03);
}

.process__num {
	position: absolute;
	top: 16px;
	right: 20px;
	font: 800 2.4rem/1 var(--font-display);
	color: rgba(220, 144, 104, 0.22);
}

.process__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: rgba(220, 144, 104, 0.14);
	color: var(--sun);
}

.process__title {
	margin-bottom: 6px;
	font-size: 1.15rem;
	color: var(--white);
}

.process__text {
	margin: 0;
	font-size: 15px;
}

@media (max-width: 900px) {
	.process {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.process {
		grid-template-columns: 1fr;
	}
}

/* ---------- Inquiry ---------- */
.section--inquiry {
	background: var(--sand);
	background-image: var(--woven);
}

.inquiry-layout {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	align-items: start;
	gap: clamp(32px, 5vw, 72px);
}

.inquiry-layout__aside .section-lead {
	margin-bottom: 28px;
}

.inquiry-layout__aside .prose {
	margin-bottom: 24px;
	font-size: 1.05rem;
}

@media (max-width: 900px) {
	.inquiry-layout {
		grid-template-columns: 1fr;
	}
}

.inquiry {
	position: relative;
	padding: clamp(22px, 4vw, 40px);
	background: var(--paper);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.inquiry::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1.5px dashed var(--line);
	border-radius: calc(var(--radius-lg) - 6px);
	pointer-events: none;
}

.inquiry > * {
	position: relative;
}

.inquiry__title {
	font-size: 1.6rem;
}

.inquiry__lead {
	color: var(--ink-2);
}

.inquiry__product {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 14px;
	background: var(--thread-50);
	border-radius: var(--radius-sm);
	font-size: 14.5px;
	color: var(--ink-2);
}

.inquiry__product .icon {
	flex-shrink: 0;
	color: var(--thread);
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}

@media (max-width: 560px) {
	.form-grid {
		grid-template-columns: 1fr;
	}
}

.field {
	margin: 0;
}

.field--full {
	grid-column: 1 / -1;
}

.field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.field .req {
	color: var(--thread);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.search-form input[type="search"] {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: var(--white);
	color: var(--ink);
	font: 400 16px/1.5 var(--font-sans);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
	min-height: 130px;
	resize: vertical;
}

.field input:focus,
.field textarea:focus,
.search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--thread);
	box-shadow: 0 0 0 4px rgba(168, 90, 53, 0.22);
}

.field ::placeholder {
	color: #a3a9aa;
}

.field--hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field--check {
	margin-top: 18px;
}

.field--check label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	font-size: 14px;
	color: var(--ink-2);
}

.field--check input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--thread);
}

.inquiry__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin: 22px 0 0;
}

.inquiry__hint {
	font-size: 13.5px;
	color: var(--ink-3);
}

.notice-box {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 20px;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	font-size: 15px;
}

.notice-box p {
	margin: 0;
}

.notice-box .icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.notice-box--success {
	background: var(--sage-50);
	color: #0b6644;
}

.notice-box--error {
	background: #fbe6e1;
	color: #8a2f1a;
}

/* ---------- Contact list & social ---------- */
.contact-list {
	display: grid;
	gap: 16px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-size: 15.5px;
}

.contact-list__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--paper);
	border: 1px solid var(--line);
	color: var(--thread);
}

.contact-list__label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.contact-list a {
	color: var(--ink);
	text-decoration: none;
	word-break: break-word;
}

.contact-list a:hover {
	color: var(--thread);
}

.contact-list--compact li {
	font-size: 15px;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line);
	color: var(--ink);
	transition: background-color 0.2s, color 0.2s;
}

.social-links a:hover {
	background: var(--thread);
	border-color: var(--thread);
	color: var(--white);
}

/* ---------- CTA band ---------- */
.cta-band {
	position: relative;
	padding-block: clamp(44px, 6vw, 72px);
	background: var(--sun);
	color: var(--ink-2);
	overflow: hidden;
}

.cta-band::before {
	content: "";
	position: absolute;
	inset: 14px;
	border: 2px dashed rgba(28, 35, 51, 0.22);
	border-radius: var(--radius-lg);
	pointer-events: none;
}

.cta-band__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
}

.cta-band__title {
	margin-bottom: 8px;
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	font-weight: 800;
	color: var(--ink);
}

.cta-band__text {
	max-width: 560px;
	margin: 0;
	font-size: 1.05rem;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Page header & breadcrumbs ---------- */
.page-header {
	position: relative;
	overflow: hidden;
	padding-block: clamp(36px, 5vw, 64px) clamp(36px, 5vw, 60px);
	background-color: var(--klein);
	background-image: var(--woven-light);
	color: rgba(255, 255, 255, 0.82);
}

.page-header::after {
	content: "";
	position: absolute;
	right: -120px;
	bottom: -260px;
	width: 480px;
	height: 480px;
	border: 2px dashed rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	pointer-events: none;
}

.page-header .container {
	position: relative;
	z-index: 1;
}

.page-header .eyebrow {
	color: var(--sun);
}

.page-header__title {
	margin-bottom: 10px;
	font-size: clamp(2.2rem, 4.6vw, 3.4rem);
	font-weight: 800;
	color: var(--white);
}

.page-header__lead {
	max-width: 680px;
	margin: 0;
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumbs ol,
.page-header .breadcrumbs li + li::before {
	color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumbs a {
	color: rgba(255, 255, 255, 0.85);
}

.page-header .breadcrumbs a:hover {
	color: var(--sun);
}

.page-header--article .page-header__title {
	font-size: clamp(1.9rem, 3.8vw, 2.7rem);
}

.article__meta {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	color: var(--ink-3);
}

.breadcrumbs li + li::before {
	content: "/";
	margin-inline: 8px;
	color: var(--ink-3);
	opacity: 0.5;
}

.breadcrumbs a {
	color: var(--ink-2);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--thread);
}

/* ---------- Prose (page content) ---------- */
.section--page {
	padding-block: clamp(40px, 6vw, 72px);
}

.page-figure {
	margin: 0 0 32px;
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.prose {
	font-size: 1.05rem;
	color: var(--ink);
}

.prose > *:first-child {
	margin-top: 0;
}

.prose > *:last-child {
	margin-bottom: 0;
}

.prose h2 {
	margin: 1.8em 0 0.6em;
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.prose h3 {
	margin: 1.5em 0 0.4em;
	font-size: 1.22rem;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li {
	margin-bottom: 0.45em;
}

.prose ul {
	list-style: none;
	padding-left: 0;
}

.prose ul > li {
	position: relative;
	padding-left: 1.6em;
}

.prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 0.2em;
	width: 12px;
	border-top: 2px dashed var(--thread);
}

.prose ol > li::marker {
	color: var(--thread);
	font-weight: 600;
}

.prose a {
	font-weight: 500;
}

.prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--thread);
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--ink-2);
}

.prose img {
	border-radius: var(--radius);
}

.prose figure {
	margin: 1.6em 0;
}

.prose figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--ink-3);
	text-align: center;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.prose hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1.5px dashed var(--line);
}

.prose .wp-block-details {
	margin: 0 0 12px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: box-shadow 0.2s;
}

.prose .wp-block-details[open] {
	box-shadow: var(--shadow);
}

.prose .wp-block-details summary {
	position: relative;
	padding: 18px 56px 18px 22px;
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
	list-style: none;
}

.prose .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.prose .wp-block-details summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 20px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border: 1.5px dashed var(--stitch);
	border-radius: 50%;
	color: var(--thread);
	font-size: 18px;
	line-height: 1;
}

.prose .wp-block-details[open] summary::after {
	content: "−";
}

.prose .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 22px 18px;
	color: var(--ink-2);
}

.prose .wp-block-button__link {
	display: inline-flex;
	padding: 0.75em 1.4em;
	border-radius: 999px;
	background: var(--thread);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}

.prose .alignwide {
	margin-inline: calc(var(--gutter) * -1);
}

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

/* ---------- Product page ---------- */
.product-top {
	padding-block: clamp(24px, 4vw, 40px) clamp(40px, 6vw, 72px);
	background-image: var(--woven);
}

.product-layout {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: start;
	gap: clamp(28px, 5vw, 64px);
}

@media (max-width: 900px) {
	.product-layout {
		grid-template-columns: 1fr;
	}
}

.product-gallery {
	position: sticky;
	top: calc(var(--header-h) + 20px);
}

@media (max-width: 900px) {
	.product-gallery {
		position: static;
	}
}

.product-gallery__main {
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.product-gallery__zoom {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.product-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.product-gallery__thumb {
	display: block;
	width: 76px;
	height: 76px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 12px;
	background: var(--paper);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s, border-color 0.2s;
}

.product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
	opacity: 1;
}

.product-gallery__thumb.is-active {
	border-color: var(--thread);
}

.product-info__title {
	margin-bottom: 8px;
	font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

.product-info__model {
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--ink-3);
	letter-spacing: 0.02em;
}

.product-info__excerpt {
	margin-bottom: 24px;
	font-size: 1.1rem;
	color: var(--ink-2);
}

.spec-table {
	width: 100%;
	margin-bottom: 28px;
	border-collapse: collapse;
	font-size: 15px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.spec-table th,
.spec-table td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
}

.spec-table tr + tr th,
.spec-table tr + tr td {
	border-top: 1px dashed var(--line);
}

.spec-table th {
	width: 38%;
	font-weight: 500;
	color: var(--ink-3);
}

.product-info__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
}

.product-info__promise {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 18px 0 0;
	list-style: none;
	border-top: 1.5px dashed var(--line);
	font-size: 14.5px;
	color: var(--ink-2);
}

.product-info__promise li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.product-info__promise .icon {
	color: var(--sage);
}

.product-details {
	padding-top: clamp(16px, 3vw, 32px);
}

.product-details__grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	align-items: start;
	gap: clamp(28px, 5vw, 64px);
}

.product-details__grid > :only-child {
	grid-column: 1 / -1;
	max-width: 820px;
}

@media (max-width: 900px) {
	.product-details__grid {
		grid-template-columns: 1fr;
	}
}

.product-details__title {
	font-size: 1.5rem;
}

.stitch-card {
	position: relative;
	padding: 28px;
	background: var(--paper);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.stitch-card::before {
	content: "";
	position: absolute;
	inset: 9px;
	border: 1.5px dashed var(--stitch);
	border-radius: calc(var(--radius-lg) - 6px);
	pointer-events: none;
}

.check-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.check-list .icon {
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--thread);
}

/* ---------- Lightbox ---------- */
.lightbox {
	width: min(92vw, 1100px);
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--paper);
	overflow: hidden;
}

.lightbox::backdrop {
	background: rgba(24, 39, 43, 0.82);
}

.lightbox img {
	display: block;
	width: 100%;
	max-height: 92vh;
	object-fit: contain;
}

.lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	box-shadow: var(--shadow);
	cursor: pointer;
}

/* ---------- Catalogue ---------- */
.filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 32px;
}

.pill {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 18px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.pill:hover {
	border-color: var(--thread);
	color: var(--thread);
}

.pill.is-active {
	border-color: var(--thread);
	background: var(--thread);
	color: var(--white);
}

.navigation.pagination {
	margin-top: 44px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--thread);
	background: var(--thread);
	color: var(--white);
}

a.page-numbers:hover {
	border-color: var(--thread);
	color: var(--thread);
}

.empty-state {
	padding: 56px 24px;
	border: 1.5px dashed var(--sand-2);
	border-radius: var(--radius-lg);
	text-align: center;
	color: var(--ink-2);
}

/* ---------- Blog ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.post-grid {
		grid-template-columns: 1fr;
	}
}

.post-card {
	position: relative;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.post-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--sand);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	padding: 20px 22px 24px;
}

.post-card__date {
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--ink-3);
}

.post-card__title {
	font-size: 1.25rem;
	line-height: 1.3;
}

.post-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card__excerpt {
	margin: 0;
	font-size: 15px;
	color: var(--ink-2);
}

.search-form {
	display: flex;
	gap: 10px;
	margin-bottom: 32px;
}

.search-results {
	margin: 0;
	padding: 0;
	list-style: none;
}

.search-results li {
	padding: 18px 0;
	border-bottom: 1px dashed var(--line);
}

.search-results__title {
	font: 600 1.2rem/1.3 var(--font-display);
	color: var(--ink);
	text-decoration: none;
}

.search-results p {
	margin: 6px 0 0;
	color: var(--ink-2);
}

/* ---------- 404 ---------- */
.not-found {
	text-align: center;
}

.not-found__code {
	margin: 0;
	font: 800 clamp(5rem, 14vw, 9rem)/1 var(--font-display);
	color: var(--thread);
	opacity: 0.2;
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
	padding-top: clamp(56px, 7vw, 88px);
	background: var(--night);
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 40px;
	padding-bottom: 48px;
}

@media (max-width: 960px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.site-footer .site-logo {
	color: var(--white);
	margin-bottom: 16px;
}

.site-footer .site-logo__mark {
	color: var(--thread);
}

.site-footer .site-logo__img:not(.site-logo__img--default) {
	filter: brightness(0) invert(1);
}

.site-footer__tagline {
	max-width: 320px;
	margin-bottom: 20px;
}

.site-footer__title {
	margin-bottom: 16px;
	font: 600 12.5px/1.3 var(--font-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.footer-menu {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a,
.site-footer__bottom a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.footer-menu a:hover,
.site-footer__bottom a:hover {
	color: var(--white);
}

.footer-menu .sub-menu {
	display: none;
}

.site-footer .contact-list {
	gap: 12px;
}

.site-footer .contact-list li {
	font-size: 14.5px;
}

.site-footer .contact-list__icon {
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
	color: var(--sun);
}

.site-footer .contact-list__label {
	color: rgba(255, 255, 255, 0.45);
}

.site-footer .contact-list a {
	color: rgba(255, 255, 255, 0.85);
}

.site-footer .social-links a {
	border-color: rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.85);
}

.site-footer__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 22px 26px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.5);
}

.site-footer__bottom::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	border-top: 1.5px dashed rgba(255, 255, 255, 0.12);
}

.site-footer__bottom p {
	margin: 0;
}

/* ---------- WhatsApp button ---------- */
.wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	color: var(--white);
	box-shadow: 0 10px 24px -8px rgba(18, 140, 70, 0.6);
	transition: transform 0.2s;
}

.wa-float:hover {
	color: var(--white);
	transform: scale(1.06);
}

@media (max-width: 560px) {
	.wa-float {
		right: 14px;
		bottom: 14px;
		width: 52px;
		height: 52px;
	}
}

/* ---------- Placeholder & misc ---------- */
.bufan-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.icon {
	flex-shrink: 0;
}

.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption-text {
	font-size: 14px;
	color: var(--ink-3);
}

.page-links {
	margin-top: 32px;
}
