/**
* Theme Name: Formrest Child
* Theme URI: https://formrest.ecomnius.com
* Author: Novaworks
* Author URI: https://themeforest.net/user/nova-works/portfolio
* Description: Child theme for Formrest. Add your own CSS here and your PHP in functions.php; Formrest updates will not overwrite them.
* Template: formrest
* Requires at least: 6.5
* Tested up to: 7.1
* Requires PHP: 7.4
* Version: 1.0.0
* License: GNU General Public License v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: formrest-child
*/

/* Add your custom CSS below. */

/* Formrest Hero Slider: MP4 background video */
.nova-hero-slider__media .nova-hero-slider__video {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	display: block;
	object-fit: cover;
	pointer-events: none;
	background: transparent;
}

.nova-hero-slider--fullscreen .nova-hero-slider__media .nova-hero-slider__video {
	transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
	.nova-hero-slider--fullscreen.nova-hero-slider--motion.is-ready .swiper-slide-active .nova-hero-slider__video {
		animation: fr-hero-photo 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
}

/* Single Product: Lite YouTube Video Section */
.fc-product-video {
	width: 100%;
	flex: 0 0 auto;
	padding-block: clamp(1rem, 2vw, 1.75rem) clamp(2.25rem, 4vw, 3.5rem);
}

.fc-product-video__inner {
	width: min(100% - 2 * var(--nova-gutter, 24px), 1440px);
	max-width: 1440px;
	margin-inline: auto;
}

.after-product-summary .fc-product-video__inner {
	width: 100%;
	max-width: 1440px;
}

.fc-product-video__heading {
	margin: 0 0 1.25rem;
	color: var(--nova-ink);
	font-family: var(--site-secondary-font, var(--font-display));
	font-size: clamp(1.5rem, 2.4vw, 2.125rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.fc-product-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--nova-radius-card, 24px);
	background: var(--nova-ink, #1c1e1b);
	box-shadow: var(--nova-shadow-soft, 0 1.25rem 3.75rem rgba(0, 0, 0, 0.08));
	cursor: pointer;
}

.fc-product-video__frame::after {
	position: absolute;
	inset: 0;
	content: "";
	background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.32));
	transition: opacity 280ms ease;
	pointer-events: none;
}

.fc-product-video__frame:hover::after {
	opacity: 0.72;
}

.fc-product-video__frame.is-playing {
	cursor: default;
}

.fc-product-video__frame.is-playing::after {
	display: none;
}

.fc-product-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-product-video__frame:hover .fc-product-video__poster {
	transform: scale(1.025);
}

.fc-product-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	transform: translate(-50%, -50%);
	width: 78px;
	height: 78px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--nova-surface, #ffffff) 65%, transparent);
	border-radius: var(--nova-radius-control, 999px);
	background: color-mix(in srgb, var(--nova-surface, #ffffff) 92%, transparent);
	color: var(--nova-ink, #1c1e1b);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	cursor: pointer;
	transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease, color 220ms ease;
}

.fc-product-video__play-icon {
	display: grid;
	place-items: center;
	transform: translateX(2px);
}

.fc-product-video__frame:hover .fc-product-video__play,
.fc-product-video__play:focus-visible {
	transform: translate(-50%, -50%) scale(1.08);
	background: var(--nova-surface, #ffffff);
	color: var(--nova-leaf, var(--e-global-color-primary, #243e32));
}

.fc-product-video__play:focus-visible {
	outline: 3px solid var(--nova-surface, #ffffff);
	outline-offset: 4px;
}

.fc-product-video__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (max-width: 767px) {
	.fc-product-video {
		padding-block: 0.75rem 1.75rem;
	}

	.fc-product-video__frame {
		border-radius: 16px;
	}

	.fc-product-video__play {
		width: 60px;
		height: 60px;
	}

	.fc-product-video__play svg {
		width: 20px;
		height: 20px;
	}
}

/* Simplified Chinese (zh_CN) typography & spacing refinements */
:is(html:lang(zh), body.fc-lang-zh, body.translatepress-zh_CN) {
	--fc-zh-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

body.fc-lang-zh,
body.translatepress-zh_CN,
html:lang(zh) body {
	--site-main-font: var(--fc-zh-font);
	--site-secondary-font: var(--fc-zh-font);
	--font-body: var(--fc-zh-font);
	--font-display: var(--fc-zh-font);
	--e-global-typography-primary-font-family: var(--fc-zh-font);
	--e-global-typography-secondary-font-family: var(--fc-zh-font);
	--e-global-typography-text-font-family: var(--fc-zh-font);
	font-family: var(--fc-zh-font);
	line-height: 1.7;
}

:is(body.fc-lang-zh, body.translatepress-zh_CN, html:lang(zh) body) :is(h1, h2, h3, .nova-hero-slider__title, .fr-editorial__title, .fc-product-video__heading, .product_title) {
	font-family: var(--fc-zh-font);
	letter-spacing: 0.01em;
}

:is(body.fc-lang-zh, body.translatepress-zh_CN, html:lang(zh) body) .nova-hero-slider__title {
	max-width: 14em;
	line-height: 1.2;
}

:is(body.fc-lang-zh, body.translatepress-zh_CN, html:lang(zh) body) .nova-hero-slider--fullscreen .nova-hero-slider__title {
	max-width: none;
	line-height: 1.24;
}

:is(body.fc-lang-zh, body.translatepress-zh_CN, html:lang(zh) body) .nova-hero-slider--fullscreen .nova-hero-slider__line {
	margin-block-end: 0;
	padding-block-end: 0.14em;
}

:is(body.fc-lang-zh, body.translatepress-zh_CN, html:lang(zh) body) .fr-editorial__title {
	line-height: 1.24;
}

/* Language switcher pill ([formrest_lang_switcher]) */
.fc-lang-switcher {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid color-mix(in srgb, var(--nova-ink, #18231e) 14%, transparent);
	border-radius: var(--nova-radius-control, 999px);
	background: color-mix(in srgb, var(--nova-surface, #ffffff) 92%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.fc-lang-switcher__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 12px;
	border-radius: var(--nova-radius-control, 999px);
	color: var(--nova-subdued, #526159);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease;
}

.fc-lang-switcher__item:hover,
.fc-lang-switcher__item:focus-visible {
	color: var(--nova-ink, #18231e);
}

.fc-lang-switcher__item.is-active {
	background: var(--nova-leaf, var(--e-global-color-primary, #285c45));
	color: var(--nova-on-accent, #ffffff);
}

/* TranslatePress floating switcher alignment with Formrest aesthetic */
#trp-floater-ls {
	border-radius: 16px !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
	font-family: var(--font-body) !important;
}

/* Pre-order / Unpriced Quote Flow */
.fc-quote-price-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.65rem;
	border-radius: var(--nova-radius-control, 999px);
	background: color-mix(in srgb, var(--nova-leaf, #285c45) 11%, transparent);
	color: var(--nova-leaf, #285c45);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
}

.fc-quote-total-note {
	color: var(--nova-leaf, #285c45);
	font-weight: 500;
}

.fc-quote-total-plus {
	display: inline-block;
	margin-left: 0.25rem;
	color: var(--nova-subdued, #526159);
	font-size: 0.85em;
	font-weight: 400;
}

.fc-quote-cart-hint {
	margin: 0.75rem 0 0;
	color: var(--nova-subdued, #526159);
	font-size: 0.875rem;
	line-height: 1.5;
}

.fc-open-quote-modal {
	width: 100%;
	cursor: pointer;
}

html.fc-quote-modal-open {
	overflow: hidden;
}

.fc-quote-modal {
	position: fixed;
	inset: 0;
	z-index: 100000000;
	display: grid;
	place-items: center;
	padding: 1rem;
	opacity: 0;
	transition: opacity 200ms ease;
}

.fc-quote-modal[hidden] {
	display: none;
}

.fc-quote-modal.is-open {
	opacity: 1;
}

.fc-quote-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 35, 30, 0.56);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.fc-quote-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 880px);
	max-height: min(92vh, 820px);
	overflow-y: auto;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--nova-radius-card, 24px);
	background: var(--nova-surface, #ffffff);
	color: var(--nova-ink, #18231e);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
	transform: translateY(12px) scale(0.985);
	transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-quote-modal.is-open .fc-quote-modal__dialog {
	transform: translateY(0) scale(1);
}

.fc-quote-modal__close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--nova-ink, #18231e) 14%, transparent);
	border-radius: 999px;
	background: var(--nova-surface, #ffffff);
	color: var(--nova-ink, #18231e);
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.fc-quote-modal__close:hover,
.fc-quote-modal__close:focus-visible {
	border-color: var(--nova-ink, #18231e);
	background: var(--nova-soft, #f5f7f4);
}

.fc-quote-modal__header {
	padding-right: 3rem;
	margin-bottom: 1.5rem;
}

.fc-quote-modal__eyebrow {
	margin: 0 0 0.375rem;
	color: var(--nova-leaf, #285c45);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fc-quote-modal__title {
	margin: 0;
	color: var(--nova-ink, #18231e);
	font-family: var(--site-secondary-font, var(--font-display));
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 400;
	line-height: 1.15;
}

.fc-quote-modal__subtitle {
	margin: 0.5rem 0 0;
	color: var(--nova-subdued, #526159);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.fc-quote-modal__body {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(1.25rem, 2.5vw, 2rem);
	align-items: start;
}

.fc-quote-modal__summary {
	padding: 1.25rem;
	border: 1px solid color-mix(in srgb, var(--nova-ink, #18231e) 10%, transparent);
	border-radius: 16px;
	background: var(--nova-soft, #f5f7f4);
}

.fc-quote-modal__section-title {
	margin: 0 0 0.875rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--nova-ink, #18231e);
}

.fc-quote-modal__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.875rem;
	max-height: 320px;
	overflow-y: auto;
}

.fc-quote-modal__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
	padding-bottom: 0.875rem;
	border-bottom: 1px solid color-mix(in srgb, var(--nova-ink, #18231e) 9%, transparent);
}

.fc-quote-modal__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.fc-quote-modal__thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--nova-surface, #ffffff);
}

.fc-quote-modal__item-info {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.fc-quote-modal__item-name {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--nova-ink, #18231e);
}

.fc-quote-modal__item-meta,
.fc-quote-modal__item-qty {
	font-size: 0.8125rem;
	color: var(--nova-subdued, #526159);
}

.fc-quote-modal__item-price {
	font-size: 0.875rem;
	font-weight: 500;
	text-align: right;
}

.fc-quote-modal__totals {
	margin-top: 1rem;
	padding-top: 0.875rem;
	border-top: 1px solid color-mix(in srgb, var(--nova-ink, #18231e) 12%, transparent);
}

.fc-quote-modal__total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9375rem;
}

.fc-quote-modal__total-note {
	margin: 0.25rem 0 0;
	color: var(--nova-subdued, #526159);
	font-size: 0.8125rem;
}

.fc-quote-modal__loading,
.fc-quote-modal__empty {
	margin: 0;
	color: var(--nova-subdued, #526159);
	font-size: 0.875rem;
}

.fc-quote-modal__form {
	display: grid;
	gap: 0.9375rem;
}

.fc-quote-modal__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fc-quote-modal__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.875rem;
}

.fc-quote-modal__field {
	display: grid;
	gap: 0.375rem;
}

.fc-quote-modal__field label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--nova-ink, #18231e);
}

.fc-quote-modal__field label span {
	color: var(--nova-clay, #b96842);
}

.fc-quote-modal__field input,
.fc-quote-modal__field textarea {
	width: 100%;
	padding: 0.75rem 0.9375rem;
	border: 1px solid color-mix(in srgb, var(--nova-ink, #18231e) 18%, transparent);
	border-radius: 12px;
	background: var(--nova-surface, #ffffff);
	color: var(--nova-ink, #18231e);
	font-size: 0.9375rem;
	line-height: 1.45;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.fc-quote-modal__field input:focus,
.fc-quote-modal__field textarea:focus {
	outline: none;
	border-color: var(--nova-leaf, #285c45);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nova-leaf, #285c45) 16%, transparent);
}

.fc-quote-modal__error {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: #fdf2f2;
	color: #9b1c1c;
	font-size: 0.875rem;
	line-height: 1.45;
}

.fc-quote-modal__submit {
	width: 100%;
	min-height: 48px;
	padding: 0.875rem 1.5rem;
	border: 0;
	border-radius: var(--nova-radius-control, 999px);
	background: var(--nova-leaf, var(--e-global-color-primary, #285c45));
	color: var(--nova-on-accent, #ffffff);
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 180ms ease, transform 180ms ease;
}

.fc-quote-modal__submit:hover,
.fc-quote-modal__submit:focus-visible {
	opacity: 0.92;
}

.fc-quote-modal__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.fc-quote-modal__success {
	padding: 1.5rem 0 0.5rem;
	text-align: center;
}

.fc-quote-modal__success-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 1rem;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nova-leaf, #285c45) 14%, transparent);
	color: var(--nova-leaf, #285c45);
}

.fc-quote-modal__success-title {
	margin: 0 0 0.5rem;
	font-family: var(--site-secondary-font, var(--font-display));
	font-size: 1.625rem;
	font-weight: 400;
}

.fc-quote-modal__success-text {
	max-width: 46ch;
	margin: 0 auto 1.5rem;
	color: var(--nova-subdued, #526159);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.fc-quote-modal__success-actions {
	max-width: 260px;
	margin: 0 auto;
}

@media (max-width: 767px) {
	.fc-quote-modal__body,
	.fc-quote-modal__row {
		grid-template-columns: 1fr;
	}

	.fc-quote-modal__item {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.fc-quote-modal__thumb {
		width: 48px;
		height: 48px;
	}

	.fc-quote-modal__item-price {
		grid-column: 2;
		text-align: left;
	}
}
