/* ============================================================
   Furuwu — runtime CSS
   Only what theme.json cannot express:
   · Block-style markers (rainbow top strip, card, ghost button…)
   · WooCommerce surface tweaks anchored on --wc-* tokens
   ============================================================ */

/* ---- Block style: Group · rainbow-top ---- */
.wp-block-group.is-style-rainbow-top {
	position: relative;
	background: var(--wp--preset--color--background-raise);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	padding: 24px;
	overflow: hidden;
}
.wp-block-group.is-style-rainbow-top::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--wp--preset--gradient--rainbow);
}

/* ---- Block style: Group · card ---- */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--background-raise);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	padding: 24px;
}

/* ---- Block style: Group · sink ---- */
.wp-block-group.is-style-sink {
	background: var(--wp--preset--color--background-sink);
}

/* ---- Block style: Heading · eyebrow / Paragraph · eyebrow ---- */
.wp-block-heading.is-style-eyebrow,
.wp-block-paragraph.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-muted);
	line-height: 1.5;
}

/* ---- Block style: Paragraph · mono ---- */
.wp-block-paragraph.is-style-mono {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-muted);
}

/* ---- Block style: Button · ghost ---- */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--foreground);
	border: 1px solid var(--wp--preset--color--line);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:focus {
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent);
}

/* ---- Block style: Button · solid (warm-paper inverse) ---- */
.wp-block-button.is-style-solid .wp-block-button__link {
	background: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--background);
	border-color: transparent;
}
.wp-block-button.is-style-solid .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}

/* ---- Block style: Separator · hairline ---- */
.wp-block-separator.is-style-hairline,
.wp-block-separator.is-style-hairline:not(.is-style-wide):not(.is-style-dots) {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 0;
	background: transparent;
	margin: 0;
	width: 100% !important;
	max-width: none !important;
	opacity: 1;
	height: auto;
}

/* ---- Site header sticky bar ---- */
.wp-site-blocks > header.wp-block-template-part,
header.wp-block-template-part[data-area="header"],
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in oklab, var(--wp--preset--color--background) 88%, transparent);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
/* When the mobile nav overlay is open, drop backdrop-filter on the header.
   Otherwise it creates a CSS containing block and traps the fixed overlay
   inside the header's height (well-known gotcha). */
body:has(.wp-block-navigation__responsive-container.is-menu-open) header.wp-block-template-part,
body.has-modal-open header.wp-block-template-part {
	backdrop-filter: none !important;
	filter: none !important;
	transform: none !important;
	position: static !important;
}

/* ---- Navigation underline on hover/active ---- */
.wp-block-navigation .wp-block-navigation-item__content {
	padding-bottom: 4px;
	border-bottom: 1px solid transparent;
	transition: color .15s, border-color .15s;
	color: var(--wp--preset--color--foreground-muted);
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--foreground);
}
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--foreground);
	border-bottom-color: var(--wp--preset--color--accent);
}

/* ---- Section "kicker" (inline mono label + dash) used in patterns ---- */
.furuwu-kicker {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-muted);
}
.furuwu-kicker::after {
	content: "";
	width: 40px;
	height: 1px;
	background: var(--wp--preset--color--line);
}

/* ---- Status dot chip ---- */
.furuwu-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 100px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-muted);
	background: var(--wp--preset--color--background-raise);
}
.furuwu-chip::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--ok);
}
.furuwu-chip.is-busy::before  { background: var(--wp--preset--color--accent); }
.furuwu-chip.is-closed::before{ background: var(--wp--preset--color--foreground-dim); }

/* ---- Category cards (furuwu/categories) ---- */
.furuwu-cat-card { overflow: hidden; cursor: pointer; transition: border-color .2s ease; }
.furuwu-cat-card:hover { border-color: var(--wp--preset--color--foreground-dim) !important; }

.furuwu-cat-card__cover {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background:
		repeating-linear-gradient(45deg,
			rgba(242,237,228,0.035) 0,
			rgba(242,237,228,0.035) 1px,
			transparent 1px,
			transparent 9px),
		linear-gradient(180deg, #1a1a1d 0%, #101012 100%);
	color: var(--wp--preset--color--foreground-dim);
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	position: relative;
}
.furuwu-cat-card__icon {
	width: 60px;
	height: 60px;
	border: 1px solid var(--wp--preset--color--foreground-dim);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}
.furuwu-cat-card__kicker {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}
.furuwu-cat-card h3 a { color: inherit; text-decoration: none; }
.furuwu-cat-card h3 a:hover { color: var(--wp--preset--color--accent); }
.furuwu-arrow {
	display: inline-block;
	color: var(--wp--preset--color--foreground-muted);
	transition: transform .2s ease, color .2s ease;
}
.furuwu-cat-card:hover .furuwu-arrow {
	color: var(--wp--preset--color--accent);
	transform: translateX(4px);
}

/* Light-mode tweak for the placeholder cover */
body:where(.is-light, .has-light-style) .furuwu-cat-card__cover,
.wp-site-blocks:has([class*="style-light"]) .furuwu-cat-card__cover {
	background:
		repeating-linear-gradient(45deg,
			rgba(14,14,15,0.04) 0,
			rgba(14,14,15,0.04) 1px,
			transparent 1px,
			transparent 9px),
		linear-gradient(180deg, #ece7de 0%, #ddd6c6 100%);
}

/* ---- Team strip art (furuwu/team-strip) ---- */
.furuwu-team-art {
	aspect-ratio: 4 / 5;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	overflow: hidden;
	background:
		repeating-linear-gradient(45deg,
			rgba(242,237,228,0.035) 0,
			rgba(242,237,228,0.035) 1px,
			transparent 1px,
			transparent 9px),
		linear-gradient(180deg, #1a1a1d 0%, #101012 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--foreground-dim);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 16px;
}
.furuwu-team-art__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}
.furuwu-team-art__icon {
	width: 60px;
	height: 60px;
	border: 1px solid var(--wp--preset--color--foreground-dim);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

/* ---- Product card quickview · CSS-only "查看商品" overlay ----
   The WC product-image block renders <div.wp-block-woocommerce-product-image>
   > <a href="permalink"> > <img>. We anchor the overlay on the container
   (not the anchor) because the anchor has no defined box height by itself.
   Pointer-events pass through, so clicking the overlay still follows the
   underlying anchor to the product page.
*/
.furuwu-p-card__art {
	position: relative;
}

.furuwu-p-card__art .wp-block-woocommerce-product-image {
	position: relative;
	aspect-ratio: 4 / 3;
	width: 100%;
}
.furuwu-p-card__art .wp-block-woocommerce-product-image > a {
	display: block;
	width: 100%;
	height: 100%;
	position: static;
}
.furuwu-p-card__art .wp-block-woocommerce-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.furuwu-p-card__art .wp-block-woocommerce-product-image::after {
	content: "查看商品";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	background: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--background);
	text-align: center;
	padding: 10px 14px;
	border-radius: 2px;
	font-size: 12px;
	font-weight: 500;
	font-family: var(--wp--preset--font-family--sans);
	letter-spacing: 0.04em;
	line-height: 1.3;
	transform: translateY(8px);
	opacity: 0;
	transition: transform .25s ease, opacity .25s ease, background-color .15s ease, color .15s ease;
	pointer-events: none;
	z-index: 3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wc-block-product:hover .furuwu-p-card__art .wp-block-woocommerce-product-image::after,
li.product:hover .furuwu-p-card__art .wp-block-woocommerce-product-image::after {
	transform: translateY(0);
	opacity: 1;
}
.wc-block-product:hover .furuwu-p-card__art .wp-block-woocommerce-product-image:hover::after,
li.product:hover .furuwu-p-card__art .wp-block-woocommerce-product-image:hover::after {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}

/* ---- WooCommerce product card · 漸層灰邊框 + hover ----
   Standard "gradient border with border-radius" technique: the container
   has no real border; a ::before pseudo fills the border area with a
   gradient, then mask-composite cuts out the inner content area so only
   a 1 px ring of gradient remains. Preserves `border-radius` + lets us
   swap the gradient on hover.
*/
.wp-block-woocommerce-product-image,
.wc-block-components-product-image {
	display: block;
	position: relative;
	overflow: hidden;
	border: 0 !important;
	border-radius: 4px;
	background: var(--wp--preset--color--background-sink);
}

.wp-block-woocommerce-product-image::before,
.wc-block-components-product-image::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(180deg, #3a3a42 0%, #26262a 50%, #15151a 100%);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	pointer-events: none;
	z-index: 2;
	transition: background .25s ease, opacity .25s ease;
}

.wp-block-woocommerce-product-image > a,
.wc-block-components-product-image > a {
	display: block;
	position: relative;
}

/* Darken overlay on image (vignette) when hovering */
.wp-block-woocommerce-product-image > a::after,
.wc-block-components-product-image > a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.5) 100%);
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}
.wc-block-product:hover .wp-block-woocommerce-product-image > a::after,
.wc-block-product:hover .wc-block-components-product-image > a::after,
li.product:hover .wp-block-woocommerce-product-image > a::after,
li.product:hover .wc-block-components-product-image > a::after {
	opacity: 1;
}

/* Gradient border brightens on hover (more visible highlight range) */
.wc-block-product:hover .wp-block-woocommerce-product-image::before,
.wc-block-product:hover .wc-block-components-product-image::before,
li.product:hover .wp-block-woocommerce-product-image::before,
li.product:hover .wc-block-components-product-image::before {
	background: linear-gradient(180deg, #6b675f 0%, #3a3a42 50%, #1c1c20 100%);
}

/* Image fits the 4:3 frame cleanly */
.wp-block-woocommerce-product-image img,
.wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* Light style variation — gradient greys go lighter */
.wp-site-blocks:has([class*="light"]) .wp-block-woocommerce-product-image::before,
body.has-light-style .wp-block-woocommerce-product-image::before {
	background: linear-gradient(180deg, #d6d1c6 0%, #c0bbad 50%, #a8a39a 100%);
}
.wp-site-blocks:has([class*="light"]) .wc-block-product:hover .wp-block-woocommerce-product-image::before,
body.has-light-style .wc-block-product:hover .wp-block-woocommerce-product-image::before {
	background: linear-gradient(180deg, #a8a39a 0%, #6b675f 50%, #4a463f 100%);
}

/* Sale badge — blend with brand */
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 4px 8px;
	margin: 12px;
}

/* Price uses mono */
.wc-block-components-product-price {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--foreground);
}
.wc-block-components-product-price__value {
	color: inherit;
}

/* Product title hover — pick up accent like the rest of the brand links */
.wc-block-product .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

/* ---- Header icon buttons · 統一 38×38 圓 ---- */
.furuwu-header-actions {
	align-items: center;
}

/* Search block (button-only mode) */
.furuwu-header-actions .wp-block-search {
	margin: 0;
	padding: 0;
}
.furuwu-header-actions .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	background: transparent;
	gap: 0;
}
.furuwu-header-actions .wp-block-search__button {
	width: 38px;
	height: 38px;
	min-width: 0;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1px solid transparent !important;
	background: transparent !important;
	color: var(--wp--preset--color--foreground) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	transition: background .15s ease, border-color .15s ease;
}
.furuwu-header-actions .wp-block-search__button:hover {
	background: var(--wp--preset--color--background-raise) !important;
	border-color: var(--wp--preset--color--line) !important;
}
.furuwu-header-actions .wp-block-search__button svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
/* When the search field opens, give it a compact inline field */
.furuwu-header-actions .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--background-raise);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	padding: 2px 2px 2px 10px;
}
.furuwu-header-actions .wp-block-search__input {
	background: transparent !important;
	border: 0 !important;
	padding: 0 8px !important;
	font-size: 14px;
	color: var(--wp--preset--color--foreground);
	min-width: 160px;
}

/* WooCommerce customer-account icon button */
.furuwu-header-actions .wc-block-customer-account,
.furuwu-header-actions .wp-block-woocommerce-customer-account {
	width: 38px;
	height: 38px;
	padding: 0 !important;
	border-radius: 50%;
	border: 1px solid transparent;
	background: transparent;
	color: var(--wp--preset--color--foreground);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	transition: background .15s ease, border-color .15s ease;
}
.furuwu-header-actions .wc-block-customer-account:hover,
.furuwu-header-actions .wp-block-woocommerce-customer-account:hover {
	background: var(--wp--preset--color--background-raise);
	border-color: var(--wp--preset--color--line);
}
.furuwu-header-actions .wc-block-customer-account svg,
.furuwu-header-actions .wp-block-woocommerce-customer-account svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* WooCommerce mini-cart trigger */
.furuwu-header-actions .wc-block-mini-cart__button,
.furuwu-header-actions button.wc-block-mini-cart__button {
	width: 38px;
	height: 38px;
	padding: 0 !important;
	min-width: 0;
	border-radius: 50% !important;
	border: 1px solid transparent !important;
	background: transparent !important;
	color: var(--wp--preset--color--foreground) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	font-size: 0;
	transition: background .15s ease, border-color .15s ease;
}
.furuwu-header-actions .wc-block-mini-cart__button:hover {
	background: var(--wp--preset--color--background-raise) !important;
	border-color: var(--wp--preset--color--line) !important;
}
.furuwu-header-actions .wc-block-mini-cart__button svg {
	width: 20px;
	height: 20px;
}
.furuwu-header-actions .wc-block-mini-cart__badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}
/* Hide quantity text inside mini-cart button (icon-only) */
.furuwu-header-actions .wc-block-mini-cart__amount,
.furuwu-header-actions .wc-block-mini-cart__quantity-badge > *:not(svg):not(.wc-block-mini-cart__badge) {
	display: none;
}

/* ---- Navigation · force collapse at 860px (not WP default 600px) ---- */
@media (max-width: 860px) {
	.wp-block-navigation.is-responsive .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}
	.wp-block-navigation.is-responsive .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex !important;
	}
}

/* ---- Hamburger trigger (when visible) ---- */
.wp-block-navigation__responsive-container-open {
	width: 38px !important;
	height: 38px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	border: 1px solid transparent !important;
	color: var(--wp--preset--color--foreground) !important;
	background: transparent !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, border-color .15s ease;
}
.wp-block-navigation__responsive-container-open:hover {
	background: var(--wp--preset--color--background-raise);
	border-color: var(--wp--preset--color--line) !important;
}
.wp-block-navigation__responsive-container-open svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* ---- Open overlay · force full-screen modal ---- */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-width: none !important;
	max-height: none !important;
	z-index: 100000 !important;
	background-color: var(--wp--preset--color--background) !important;
	color: var(--wp--preset--color--foreground) !important;
	padding: 0 !important;
	overflow-y: auto;
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	animation: furuwu-nav-in .24s cubic-bezier(.16,1,.3,1);
}
@keyframes furuwu-nav-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Inner modal wrapper · fills viewport */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 0;
	margin: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	justify-content: flex-start;
	padding: 76px 24px 40px;
	position: relative;
}

/* An "eyebrow" label at the top of the overlay, inserted via pseudo */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "MENU";
	display: block;
	text-align: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-muted);
	padding: 24px 0 32px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* Menu list · stacked, full width, divided by hairlines */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 0 !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	display: block;
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: 26px !important;
	font-weight: 500 !important;
	letter-spacing: -0.01em !important;
	line-height: 1.2 !important;
	padding: 22px 0 !important;
	color: var(--wp--preset--color--foreground) !important;
	border: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent !important;
	transition: color .15s ease, background .15s ease;
}
/* Trailing arrow on every item · hints it's tappable */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: "→";
	margin-left: 16px;
	color: var(--wp--preset--color--foreground-dim);
	font-size: 20px;
	font-weight: 400;
	transition: transform .18s ease, color .18s ease;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:active,
.wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent) !important;
	background: var(--wp--preset--color--background-raise) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::after,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:active::after,
.wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content::after {
	color: var(--wp--preset--color--accent) !important;
	transform: translateX(4px);
}

/* Close (X) button · floating top-right over the eyebrow */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute !important;
	top: 18px !important;
	right: 18px !important;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border-radius: 50%;
	color: var(--wp--preset--color--foreground) !important;
	background: transparent !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: background .15s ease, border-color .15s ease;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
	background: var(--wp--preset--color--background-raise) !important;
	border-color: var(--wp--preset--color--foreground-dim) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Lock body scroll when overlay open */
body.has-modal-open,
body:has(.wp-block-navigation__responsive-container.is-menu-open) {
	overflow: hidden;
}

/* ---- Footer · mobile compact layout ---- */
@media (max-width: 860px) {
	.wp-site-blocks footer.wp-block-group {
		padding-top: 48px !important;
		padding-bottom: 24px !important;
	}
	/* Force the top-level footer columns to wrap */
	.wp-site-blocks footer.wp-block-group > .wp-block-columns,
	.wp-site-blocks footer > .wp-block-columns {
		flex-wrap: wrap;
		gap: 32px 24px;
	}
	/* First column (logo + tagline + social) — full width, centered */
	.wp-site-blocks footer.wp-block-group > .wp-block-columns > .wp-block-column:first-child {
		flex: 1 1 100% !important;
		max-width: 420px;
		margin: 0 auto;
		text-align: center;
	}
	.wp-site-blocks footer .wp-block-column:first-child .wp-block-site-logo,
	.wp-site-blocks footer .wp-block-column:first-child .wp-block-social-links {
		display: flex;
		justify-content: center;
	}
	.wp-site-blocks footer .wp-block-column:first-child p {
		text-align: center;
	}
	/* Three link columns — 3-across compact */
	.wp-site-blocks footer.wp-block-group > .wp-block-columns > .wp-block-column:not(:first-child) {
		flex: 1 1 calc((100% - 48px) / 3) !important;
		min-width: 0;
	}
	.wp-site-blocks footer .wp-block-column h4 {
		font-size: 10px;
		letter-spacing: 0.14em;
	}
	.wp-site-blocks footer .wp-block-column ul {
		font-size: 12.5px !important;
	}
	.wp-site-blocks footer .wp-block-column ul li {
		line-height: 1.5;
	}
	/* Baseline row — stay horizontal even on mobile, shrink font */
	.wp-site-blocks footer .has-mono-font-family {
		flex-wrap: wrap;
		gap: 8px !important;
		font-size: 9.5px !important;
	}
}

@media (max-width: 520px) {
	/* Very small: 3 → 2 columns, third wraps */
	.wp-site-blocks footer.wp-block-group > .wp-block-columns > .wp-block-column:not(:first-child) {
		flex: 1 1 calc((100% - 24px) / 2) !important;
	}
	.wp-site-blocks footer .wp-block-column ul {
		font-size: 12px !important;
	}
	/* Baseline: allow wrap, left-align both */
	.wp-site-blocks footer .has-mono-font-family {
		justify-content: flex-start !important;
	}
}

/* ---- WooCommerce surface tweaks ---- */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--mono);
}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	background: var(--wp--preset--color--background-raise);
	border-top-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--foreground);
}
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
	border-radius: 2px;
	padding: 12px 22px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 80%, white);
	color: var(--wp--preset--color--accent-ink);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-ink);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	background: var(--wp--preset--color--background-sink);
	color: var(--wp--preset--color--foreground);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 2px;
	padding: 12px 14px;
}
.woocommerce table.shop_table,
.woocommerce-cart table.cart,
.woocommerce-checkout #order_review {
	background: var(--wp--preset--color--background-raise);
	border-color: var(--wp--preset--color--line);
}

/* ---- About page · timeline rows (/ 02 TIMELINE) ---- */
.furuwu-timeline { display: block; }
.furuwu-timeline__row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 24px;
	padding: 28px 0;
	border-top: 1px solid var(--wp--preset--color--line-soft);
}
.furuwu-timeline__year {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	padding-top: 4px;
}
.furuwu-timeline__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--wp--preset--color--foreground);
	line-height: 1.3;
	margin-bottom: 8px;
}
.furuwu-timeline__title:last-child { margin-bottom: 0; }
.furuwu-timeline__desc {
	font-size: 14px;
	line-height: 1.7;
	color: var(--wp--preset--color--foreground-muted);
	margin: 0;
}
@media (max-width: 600px) {
	.furuwu-timeline__row {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 20px 0;
	}
}

/* ---- About page · kicker column stacks on tablet-down ---- */
@media (max-width: 860px) {
	.wp-block-column[style*="flex-basis:280px"] {
		flex-basis: auto !important;
		margin-bottom: 8px;
	}
}

/* ---- Hero · right-anchored portrait bg + gradient fade scoped to image ----
   The image pseudo is an absolutely-positioned box sized by the image's own
   aspect ratio (3585/5378) at 120% of hero height, pinned top-right so it
   overflows downward into the next section. Gradient stops are therefore
   relative to the image's *own* width (not the section), and sit as a second
   background layer on top of the image inside the same pseudo.
   Hero has z-index: 1 (no isolation, no overflow: hidden) so the overflowing
   image visually sits above subsequent static sections; inner content stacks
   at z-index: 2 inside the same positioned ancestor. */
.wp-block-group.furuwu-hero-bg {
	position: relative;
	z-index: 1;
}
.wp-block-group.furuwu-hero-bg::before {
	content: "";
	position: absolute;
	top: 0;
	/* Clamp the right edge to the 1600px content container on wide viewports
	   — otherwise the image bleeds into the outer margin past where the
	   columns end. Below 1600px + padding, the edge padding wins. */
	right: max(0px, calc((100% - 2000px) / 2));
	height: 120%;
	aspect-ratio: 2048 / 1365;
	background:
		linear-gradient(
			90deg,
			var(--wp--preset--color--background) 0%,
			var(--wp--preset--color--background) 3%,
			transparent 100%
		),
		linear-gradient(
			to bottom,
			transparent 0%,
			transparent 97%,
			var(--wp--preset--color--background) 100%
		),
		url("/wp-content/themes/furuwu/assets/images/hero.webp")
			center / cover no-repeat;
	z-index: 0;
	pointer-events: none;
}
.wp-block-group.furuwu-hero-bg > * {
	position: relative;
	z-index: 2;
}
@media (max-width: 860px) {
	.wp-block-group.furuwu-hero-bg::before {
		display: none;
	}
}


/* ---- Shop archive · toolbar + chips ---- */
.furuwu-toolbar .wp-block-group {
	row-gap: 16px;
}
.furuwu-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.furuwu-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 100px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-muted);
	background: var(--wp--preset--color--background-raise);
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
	white-space: nowrap;
}
.furuwu-chip:hover {
	color: var(--wp--preset--color--foreground);
	border-color: var(--wp--preset--color--foreground-dim);
}
.furuwu-chip--on,
.furuwu-chip--on:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	background: transparent;
}
.furuwu-toolbar__sort {
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
}
.furuwu-toolbar__label {
	margin: 0;
	white-space: nowrap;
}
.furuwu-toolbar .wc-block-catalog-sorting,
.furuwu-toolbar .wp-block-woocommerce-catalog-sorting {
	margin: 0;
}
.furuwu-toolbar .wc-block-catalog-sorting select,
.furuwu-toolbar .wp-block-woocommerce-catalog-sorting select {
	background: transparent;
	color: var(--wp--preset--color--foreground);
	border: 1px solid var(--wp--preset--color--line);
	padding: 6px 28px 6px 10px;
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(-45deg, transparent 50%, currentColor 50%);
	background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	transition: border-color .15s ease, color .15s ease;
}
.furuwu-toolbar .wc-block-catalog-sorting select:hover,
.furuwu-toolbar .wp-block-woocommerce-catalog-sorting select:hover,
.furuwu-toolbar .wc-block-catalog-sorting select:focus,
.furuwu-toolbar .wp-block-woocommerce-catalog-sorting select:focus {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	outline: none;
}
.furuwu-shop-count {
	margin: 0;
	color: var(--wp--preset--color--foreground-muted);
}
@media (max-width: 860px) {
	.furuwu-toolbar > .wp-block-group {
		justify-content: flex-start !important;
	}
}
