/*
Theme Name: Reflecfilm Native Blocks
Theme URI: https://reflecfilm.com/
Author: China Xingyuan Reflective Materials Co., Ltd.
Description: A native WordPress block theme for the Reflecfilm B2B website.
Version: 1.0.7
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: reflecfilm-native-blocks
*/

:root {
	--xy-red: #c62030;
	--xy-red-bright: #ef4052;
	--xy-black: #111417;
	--xy-charcoal: #191d24;
	--xy-gray: #5f6872;
	--xy-surface: #f5f7f9;
	--xy-border: #e3e6e8;
	--xy-green: #16a263;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
}

.wp-site-blocks {
	padding-top: 0;
	padding-bottom: 0;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

a {
	text-underline-offset: 0.16em;
}

img,
video {
	max-width: 100%;
	height: auto;
}

.xy-wrap {
	overflow-x: clip;
}

@supports not (overflow: clip) {
	.xy-wrap {
		overflow-x: hidden;
	}
}

.xy-wrap .xy-site-header {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr) max-content;
	align-items: center;
	gap: 18px clamp(22px, 2.6vw, 42px);
	box-sizing: border-box;
	width: 100%;
}

.xy-wrap .xy-brand {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 12px;
	min-width: 0;
}

.xy-wrap .xy-brand-mark,
.xy-wrap .xy-brand-name {
	margin: 0;
}

.xy-wrap .xy-brand-mark {
	flex: 0 0 auto;
}

.xy-wrap .xy-brand-name {
	white-space: nowrap;
}

.xy-wrap .xy-primary-nav {
	justify-self: end;
	min-width: 0;
}

.xy-wrap .xy-primary-nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	gap: clamp(14px, 1.45vw, 24px);
}

.xy-wrap .xy-primary-nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

.xy-wrap .xy-header-actions {
	justify-self: end;
	flex-wrap: nowrap;
}

.xy-wrap .xy-header-actions .wp-block-button__link {
	white-space: nowrap;
}

.xy-wrap .has-contrast-color {
	color: #111417;
}

.xy-wrap .has-contrast-2-color {
	color: #5f6872;
}

.xy-wrap #xy-products .wp-block-image a,
.xy-wrap #xy-products .wp-block-image img,
.xy-wrap #xy-oem .wp-block-image img {
	display: block;
	width: 100%;
}

.xy-wrap #xy-products > .wp-block-columns,
.xy-wrap #xy-about > .wp-block-columns,
.xy-wrap #xy-apps > .wp-block-columns,
.xy-wrap #xy-oem > .wp-block-columns,
.xy-wrap #xy-contact > .wp-block-columns,
.xy-wrap #xy-live-products,
.xy-wrap #xy-live-products .wp-block-query,
.xy-wrap #xy-live-products .wp-block-post-template,
.xy-wrap #xy-docs .wp-block-query,
.xy-wrap #xy-docs .wp-block-post-template {
	width: 100%;
	max-width: 1280px !important;
	margin-right: auto;
	margin-left: auto;
}

.xy-wrap #xy-products > .wp-block-columns,
.xy-wrap #xy-apps > .wp-block-columns,
.xy-wrap #xy-oem > .wp-block-columns {
	gap: 20px !important;
}

.xy-wrap #xy-about > .wp-block-columns,
.xy-wrap #xy-contact > .wp-block-columns {
	gap: 56px !important;
}

.xy-wrap #xy-live-products .wp-block-post-template,
.xy-wrap #xy-docs .wp-block-post-template {
	align-items: stretch;
	gap: 20px;
}

.xy-wrap #xy-live-products .wp-block-post-template {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xy-wrap #xy-docs .wp-block-post-template {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xy-wrap #xy-live-products .wp-block-post-template > li > .wp-block-group,
.xy-wrap #xy-docs .wp-block-post-template > li > .wp-block-group,
.xy-wrap #xy-products > .wp-block-columns > .wp-block-column > .wp-block-group,
.xy-wrap #xy-apps .wp-block-column > .wp-block-group {
	box-sizing: border-box;
	height: 100%;
}

.xy-wrap .xy-metform-shell {
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 12px;
	background: var(--xy-red);
	color: #ffffff;
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.xy-wrap .xy-metform-shell,
.xy-wrap .xy-metform-shell form,
.xy-wrap .xy-metform-shell input,
.xy-wrap .xy-metform-shell select,
.xy-wrap .xy-metform-shell textarea {
	box-sizing: border-box;
	max-width: 100%;
}

.xy-wrap .xy-metform-shell input:not([type="checkbox"]):not([type="radio"]),
.xy-wrap .xy-metform-shell select,
.xy-wrap .xy-metform-shell textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid rgba(17, 20, 23, 0.22) !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	color: var(--xy-black) !important;
	box-shadow: none !important;
}

.xy-wrap .xy-metform-shell textarea {
	min-height: 116px;
	resize: vertical;
}

.xy-wrap .xy-metform-shell label,
.xy-wrap .xy-metform-shell .mf-input-label,
.xy-wrap .xy-metform-shell h1,
.xy-wrap .xy-metform-shell h2,
.xy-wrap .xy-metform-shell h3,
.xy-wrap .xy-metform-shell h4,
.xy-wrap .xy-metform-shell h5,
.xy-wrap .xy-metform-shell h6 {
	color: #ffffff !important;
}

.xy-wrap .xy-metform-shell input::placeholder,
.xy-wrap .xy-metform-shell textarea::placeholder {
	color: #6b737c !important;
	opacity: 1;
}

.xy-wrap .xy-metform-shell input:focus,
.xy-wrap .xy-metform-shell select:focus,
.xy-wrap .xy-metform-shell textarea:focus {
	border-color: var(--xy-black) !important;
	outline: 3px solid rgba(17, 20, 23, 0.18);
	outline-offset: 1px;
}

.xy-wrap .xy-metform-shell input[type="checkbox"],
.xy-wrap .xy-metform-shell input[type="radio"] {
	accent-color: var(--xy-black);
}

.xy-wrap .xy-metform-shell .metform-submit-btn {
	width: 100%;
	min-height: 48px;
	justify-content: center;
	border: 1px solid var(--xy-black) !important;
	border-radius: 6px !important;
	background: var(--xy-black) !important;
	color: #ffffff !important;
	font-weight: 750 !important;
}

.xy-wrap .xy-metform-shell .metform-submit-btn:hover,
.xy-wrap .xy-metform-shell .metform-submit-btn:focus-visible {
	background: var(--xy-charcoal) !important;
}

.xy-wrap .xy-metform-shell .mf-error-message {
	color: #ffffff !important;
	font-weight: 650;
}

.xy-wrap .xy-metform-shell > p:last-child {
	color: rgba(255, 255, 255, 0.86);
}

.xy-wrap .xy-footer h3,
.xy-wrap .xy-footer h4 {
	color: #ffffff;
}

.xy-wrap .xy-footer a,
.xy-wrap #xy-contact a {
	color: inherit;
}

.xy-wrap .xy-rfq-strip {
	display: none !important;
}

.xy-wrap .xy-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9998;
}

.xy-wrap .xy-float > .wp-block-button .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	padding: 0;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.xy-content-shell {
	box-sizing: border-box;
}

.xy-loop-card {
	height: 100%;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.xy-loop-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(17, 20, 23, 0.09);
}

.xy-article-content > * {
	max-width: 820px;
	margin-right: auto;
	margin-left: auto;
}

.xy-article-content > .alignwide {
	max-width: 1280px;
}

.xy-article-content > .alignfull {
	max-width: none;
}

.xy-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 4px 10px;
	border: 1px solid var(--xy-border);
	border-radius: 5px;
	background: #ffffff;
}

.xy-pagination .page-numbers.current {
	border-color: var(--xy-red);
	background: var(--xy-red);
	color: #ffffff;
}

/* Product catalog and taxonomy templates. */
.xy-catalog-hero .wp-block-cover__image-background {
	object-position: center center;
}

.xy-catalog-hero-copy {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.xy-catalog-benefits > p {
	margin: 0;
	padding: 7px 11px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.3);
	color: #ffffff;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-shadow: none;
}

.xy-product-archive .woocommerce-breadcrumb,
.xy-single-product-main .woocommerce-breadcrumb {
	margin: 0;
	color: var(--xy-gray);
	font-size: 12px;
}

.xy-archive-heading {
	max-width: 900px;
}

.xy-archive-heading .wp-block-query-title,
.xy-archive-heading .wp-block-term-description > :first-child {
	margin-top: 0;
}

.xy-archive-heading .wp-block-query-title,
.xy-archive-heading .wp-block-term-description > :last-child {
	margin-bottom: 0;
}

.xy-product-results-toolbar {
	box-sizing: border-box;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--xy-border);
	border-radius: 7px;
	background: #ffffff;
}

.xy-product-results-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--xy-gray);
	font-size: 13px;
}

.xy-product-results-toolbar select {
	max-width: 100%;
	padding: 8px 32px 8px 10px;
	border: 1px solid var(--xy-border);
	border-radius: 5px;
	background-color: #ffffff;
	color: var(--xy-black);
}

.xy-product-collection .wc-block-product-template,
.xy-related-products .wc-block-product-template {
	align-items: stretch;
}

.xy-product-collection .wc-block-product-template > li,
.xy-related-products .wc-block-product-template > li {
	display: flex;
}

.xy-product-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	overflow: hidden;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.xy-product-card:hover {
	transform: translateY(-3px);
	border-color: rgba(198, 32, 48, 0.34) !important;
	box-shadow: 0 16px 38px rgba(17, 20, 23, 0.1);
}

.xy-product-card .wc-block-components-product-image,
.xy-product-card .wp-block-woocommerce-product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: #f7f8f9;
}

.xy-product-card .wc-block-components-product-image a,
.xy-product-card .wp-block-woocommerce-product-image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.xy-product-card .wc-block-components-product-image img,
.xy-product-card .wp-block-woocommerce-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.xy-product-card-category,
.xy-product-card-category a {
	color: var(--xy-red);
}

.xy-product-card .wp-block-post-title {
	min-height: 2.7em;
}

.xy-product-card .wp-block-post-title a {
	color: var(--xy-black);
}

.xy-product-card-excerpt {
	flex-grow: 1;
	margin-top: 0;
	margin-bottom: 0;
}

.xy-product-card-excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.xy-product-inquiry-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	width: 100%;
	margin-top: auto;
}

.xy-inquiry-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 42px;
	padding: 9px 13px;
	border: 1px solid transparent;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.25;
	text-align: center;
	transition: filter 160ms ease, transform 160ms ease;
}

.xy-inquiry-button:hover {
	color: #ffffff;
	filter: brightness(0.93);
	transform: translateY(-1px);
}

.xy-inquiry-button--quote {
	background: var(--xy-red);
	color: #ffffff;
}

.xy-inquiry-button--whatsapp {
	background: var(--xy-green);
	color: #ffffff;
}

.xy-product-inquiry-actions.is-layout-card .xy-inquiry-button {
	flex: 1 1 calc(50% - 5px);
}

.xy-product-inquiry-actions.is-layout-single {
	margin-top: 10px;
}

.xy-product-inquiry-actions.is-layout-single .xy-inquiry-button {
	min-height: 50px;
	padding: 13px 20px;
	font-size: 14px;
}

.xy-product-inquiry-actions.is-layout-single .xy-inquiry-button--quote {
	flex: 1 1 210px;
}

.xy-product-inquiry-actions.is-layout-single .xy-inquiry-button--whatsapp {
	flex: 0 1 180px;
}

.xy-product-no-results {
	box-sizing: border-box;
	width: 100%;
}

/* Single-product template. */
.xy-product-gallery-shell,
.xy-product-details-shell {
	box-shadow: 0 12px 34px rgba(17, 20, 23, 0.05);
}

.xy-product-gallery-shell .woocommerce-product-gallery,
.xy-product-gallery-shell .wp-block-woocommerce-product-image-gallery {
	margin-bottom: 0;
}

.xy-product-gallery-shell img {
	border-radius: 5px;
}

.xy-product-summary-copy .wp-block-post-title,
.xy-product-summary-copy .wp-block-post-excerpt,
.xy-product-summary-copy .wp-block-separator {
	margin-top: 0;
	margin-bottom: 0;
}

.xy-single-product-excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.xy-product-meta,
.xy-product-meta .wp-block-group {
	gap: 7px;
	color: var(--xy-gray);
	font-size: 12px;
}

.xy-product-meta .wp-block-group {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 16px;
}

/* Keep hot product images at a compact, original-style scale. */
.xy-wrap #xy-live-products .wp-block-post-featured-image {
	width: 60%;
	margin-right: auto;
	margin-left: auto;
}

.xy-wrap #xy-live-products .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.xy-product-meta a {
	color: var(--xy-black);
	font-weight: 650;
}

.xy-product-details-shell .wc-block-components-tabs__list,
.xy-product-details-shell .woocommerce-tabs ul.tabs {
	border-bottom-color: var(--xy-border);
}

.xy-product-details-shell h2 {
	font-size: clamp(24px, 3vw, 34px);
}

.xy-related-products > .wp-block-heading {
	margin-top: 0;
}

/* Fallback guard for classic WooCommerce output on catalog screens. */
body.reflecfilm-b2b-site.woocommerce-shop .price,
body.reflecfilm-b2b-site.woocommerce-shop .add_to_cart_button,
body.reflecfilm-b2b-site.tax-product_cat .price,
body.reflecfilm-b2b-site.tax-product_cat .add_to_cart_button,
body.reflecfilm-b2b-site.tax-product_tag .price,
body.reflecfilm-b2b-site.tax-product_tag .add_to_cart_button,
body.reflecfilm-b2b-site.single-product .price,
body.reflecfilm-b2b-site.single-product form.cart {
	display: none !important;
}

@media (min-width: 601px) and (max-width: 1024px) {
	.xy-wrap #xy-live-products .wp-block-post-template,
	.xy-wrap #xy-docs .wp-block-post-template,
	.xy-wrap .xy-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.xy-wrap #xy-oem > .wp-block-columns,
	.xy-wrap .xy-footer > .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.xy-wrap #xy-oem > .wp-block-columns > .wp-block-column,
	.xy-wrap .xy-footer > .wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - 12px) !important;
		flex-grow: 0;
	}

	.xy-product-collection .wc-block-product-template > li,
	.xy-related-products .wc-block-product-template > li {
		width: calc(50% - 0.625em) !important;
	}

	.xy-wrap #xy-about > .wp-block-columns,
	.xy-wrap #xy-contact > .wp-block-columns {
		gap: 36px !important;
	}
}

@media (max-width: 1180px) {
	.xy-wrap .xy-primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.xy-wrap .xy-primary-nav .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}
}

@media (max-width: 781px) {
	.xy-catalog-hero {
		min-height: 560px !important;
	}

	.xy-catalog-hero .wp-block-cover__image-background {
		object-position: 62% center;
	}

	.xy-single-product-summary {
		gap: 34px !important;
	}

	.xy-wrap #xy-top {
		align-items: stretch;
		min-height: 0 !important;
		padding: 76vw clamp(20px, 6vw, 48px) 48px !important;
		background-color: #070c12;
		background-image: url("https://reflecfilm.com/wp-content/uploads/2026/09/xingyuan-night-truck-products-hero-mobile-v1.webp") !important;
		background-repeat: no-repeat;
		background-position: top center;
		background-size: 100% auto;
	}

	.xy-wrap #xy-top .wp-block-cover__image-background {
		opacity: 0;
	}

	.xy-wrap #xy-top .wp-block-cover__background {
		opacity: 1 !important;
		background: linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.06) 0,
			rgba(0, 0, 0, 0.16) 76vw,
			rgba(7, 12, 18, 0.97) 76vw,
			rgba(7, 12, 18, 0.97) 100%
		) !important;
	}

	.xy-wrap #xy-top .wp-block-cover__inner-container {
		width: 100%;
	}

	.xy-wrap .xy-float {
		display: none !important;
	}

	.xy-wrap .xy-rfq-strip {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 0 !important;
		width: 100%;
		padding-bottom: env(safe-area-inset-bottom);
		background: #ffffff;
		box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.18);
	}

	.xy-wrap .xy-rfq-strip > .wp-block-button {
		flex: 1 1 50%;
		margin: 0;
	}

	.xy-wrap .xy-rfq-strip > .wp-block-button .wp-block-button__link {
		display: block;
		box-sizing: border-box;
		width: 100%;
		padding: 16px 8px;
		border: 0;
		text-align: center;
	}

	.xy-wrap .xy-rfq-strip > .wp-block-button:first-child .wp-block-button__link {
		background-color: #16a263 !important;
	}

	.xy-wrap .xy-rfq-strip > .wp-block-button:last-child .wp-block-button__link {
		background-color: #c62030 !important;
	}

	.xy-wrap .xy-footer {
		padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
	}
}

@media (max-width: 600px) {
	.xy-catalog-hero {
		padding: 54px 20px !important;
	}

	.xy-catalog-hero-copy .wp-block-buttons,
	.xy-catalog-hero-copy .wp-block-button,
	.xy-catalog-hero-copy .wp-block-button__link {
		width: 100%;
	}

	.xy-catalog-benefits {
		gap: 7px !important;
	}

	.xy-product-results-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
	}

	.xy-product-results-toolbar select {
		width: 100%;
	}

	.xy-product-collection .wc-block-product-template > li,
	.xy-related-products .wc-block-product-template > li {
		width: 100% !important;
	}

	.xy-product-inquiry-actions.is-layout-single .xy-inquiry-button {
		flex-basis: 100%;
	}

	.xy-product-details-shell {
		margin-bottom: 52px !important;
	}

	.xy-wrap #xy-live-products .wp-block-post-template,
	.xy-wrap #xy-docs .wp-block-post-template,
	.xy-wrap .xy-post-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.xy-wrap .xy-site-header {
		grid-template-columns: minmax(0, 1fr) max-content;
		gap: 12px;
		padding-right: 16px !important;
		padding-left: 16px !important;
	}

	.xy-wrap .xy-brand {
		gap: 9px;
	}

	.xy-wrap .xy-brand-mark {
		padding: 9px !important;
		font-size: 18px !important;
	}

	.xy-wrap .xy-brand-name {
		font-size: clamp(12px, 4vw, 15px) !important;
		letter-spacing: 0.02em !important;
	}

	.xy-wrap .xy-header-actions {
		display: none !important;
	}

	.xy-wrap #xy-top {
		padding-right: 20px !important;
		padding-bottom: 42px !important;
		padding-left: 20px !important;
	}

	.xy-wrap #xy-top h1 {
		font-size: clamp(34px, 10.5vw, 42px) !important;
	}

	.xy-wrap .xy-metform-shell {
		padding: 20px !important;
	}

	.xy-wrap #xy-oem > .wp-block-columns > .wp-block-column,
	.xy-wrap .xy-footer > .wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.xy-loop-card {
		transition: none;
	}
}


.xy-wrap .xy-news-archive-nav .wp-block-button__link {
	color: var(--xy-red) !important;
}

.xy-wrap .xy-news-archive-nav .wp-block-button__link:hover,
.xy-wrap .xy-news-archive-nav .wp-block-button__link:focus-visible {
	background: var(--xy-red) !important;
	color: #ffffff !important;
}

.xy-wrap .xy-news-archive-nav .wp-block-button__link:hover,
.xy-wrap .xy-news-archive-nav .wp-block-button__link:focus-visible {
	border-color: var(--xy-red) !important;
}

.xy-wrap .xy-news-archive-nav .wp-block-button__link:focus-visible {
	outline: 2px solid var(--xy-red-bright);
	outline-offset: 2px;
}
