/* Vents & Covers — Floor product page v2.
 * One typography system, one message per section, native WooCommerce purchase behavior.
 */
body.single-product:has(.vfp-product) {
	--vfp-navy: #17354d;
	--vfp-navy-hover: #294d66;
	--vfp-red: #b12738;
	--vfp-ink: #263c49;
	--vfp-muted: #68767d;
	--vfp-line: #dde2e1;
	--vfp-paper: #f7f6f2;
	--vfp-soft: #f3f6f7;
	background: #fff;
	color: var(--vfp-ink);
	font-family: 'DM Sans', 'Source Sans 3', sans-serif;
}

.vfp-page,
.vfp-page button,
.vfp-page input,
.vfp-page select,
.vfp-page textarea {
	font-family: 'DM Sans', 'Source Sans 3', sans-serif;
}

.vfp-page h1,
.vfp-page h2,
.vfp-page h3,
.vfp-page h4 {
	font-family: 'DM Sans', 'Source Sans 3', sans-serif;
	color: var(--vfp-navy);
	letter-spacing: -.035em;
}

.vfp-shell {
	width: min(1220px, calc(100% - 64px));
	margin-inline: auto;
}

.vfp-breadcrumb {
	padding: 22px 0 10px;
	color: #728087;
	font-size: 13px;
}
.vfp-breadcrumb p { margin: 0; }
.vfp-breadcrumb a { color: #728087; text-decoration: none; }
.vfp-breadcrumb a:hover { color: var(--vfp-red); text-decoration: underline; text-underline-offset: 3px; }

/* Above the fold */
.vfp-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
	gap: clamp(44px, 6vw, 76px);
	align-items: start;
	padding: 14px 0 78px;
}

.vfp-gallery { min-width: 0; }
.vfp-gallery .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}
.vfp-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.vfp-gallery .woocommerce-product-gallery__image { background: var(--vfp-paper); }
.vfp-gallery .woocommerce-product-gallery__image > a { display: block; }
.vfp-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--vfp-paper);
	border: 1px solid #e4e4df;
	border-radius: 4px;
}
.vfp-gallery .woocommerce-product-gallery__trigger {
	top: 14px !important;
	right: 14px !important;
}
.vfp-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}
.vfp-gallery .flex-control-thumbs li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}
.vfp-gallery .flex-control-thumbs img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 2px;
	border: 1px solid #dfe2df !important;
	border-radius: 3px;
	background: #fff;
	opacity: .68;
	cursor: pointer;
}
.vfp-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--vfp-navy) !important;
	opacity: 1;
}
.vfp-gallery-count {
	margin: 10px 0 0;
	color: #7b878d;
	font-size: 12px;
}

.vfp-summary { min-width: 0; padding-top: 4px; }
.vfp-summary h1 {
	margin: 0 0 14px;
	font-size: clamp(38px, 4.1vw, 54px);
	font-weight: 600;
	line-height: 1.05;
}
.vfp-summary .woocommerce-product-rating { margin: 0 0 12px; }
.vfp-price { min-height: 42px; margin-bottom: 16px; }
.vfp-price .price,
.vfp-price > .price,
.vfp-price .woocommerce-Price-amount {
	color: var(--vfp-navy) !important;
}
.vfp-price .price {
	margin: 0 !important;
	font-size: 29px !important;
	font-weight: 700 !important;
	line-height: 1.25;
}

.vfp-intro {
	margin: 0 0 20px;
	color: #4f6069;
	font-size: 16px;
	line-height: 1.7;
}

.vfp-fit-answer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	margin: 0 0 22px;
	padding: 15px 17px;
	border-left: 3px solid var(--vfp-red);
	background: var(--vfp-paper);
}
.vfp-fit-answer strong,
.vfp-fit-answer span { display: block; }
.vfp-fit-answer strong {
	color: var(--vfp-navy);
	font-size: 14px;
	line-height: 1.4;
}
.vfp-fit-answer span {
	margin-top: 3px;
	color: #718087;
	font-size: 12px;
}
.vfp-fit-answer a {
	color: var(--vfp-red);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Purchase area */
.vfp-buy {
	padding: 22px;
	border: 1px solid #d8ddda;
	border-top: 3px solid var(--vfp-navy);
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(23, 53, 77, .065);
}
.vfp-buy-heading {
	margin-bottom: 11px;
	color: var(--vfp-navy);
	font-size: 14px;
}
.vfp-finish-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 15px;
}
.vfp-finish-option {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) 20px;
	gap: 11px;
	align-items: center;
	min-height: 78px;
	padding: 7px;
	border: 1px solid #d7dcda;
	border-radius: 4px;
	background: #fafaf8;
	color: var(--vfp-ink);
	text-align: left;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.vfp-finish-option:hover { border-color: #9da9ad; background: #fff; }
.vfp-finish-option.is-selected {
	border-color: var(--vfp-navy);
	background: #fff;
	box-shadow: 0 0 0 1px var(--vfp-navy);
}
.vfp-finish-option:focus-visible { outline: 2px solid var(--vfp-red); outline-offset: 3px; }
.vfp-finish-image {
	display: block;
	width: 62px;
	height: 62px;
	border: 1px solid #e0e2df;
	border-radius: 3px;
	background: #fff;
	overflow: hidden;
}
.vfp-finish-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vfp-finish-label { color: var(--vfp-navy); font-size: 14px; font-weight: 700; }
.vfp-finish-check {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1px solid #c7cfd1;
	border-radius: 50%;
	color: transparent;
	font-size: 11px;
	font-weight: 900;
}
.vfp-finish-option.is-selected .vfp-finish-check {
	border-color: var(--vfp-navy);
	background: var(--vfp-navy);
	color: #fff;
}

.vfp-native-cart table.variations {
	width: 100%;
	margin: 0 0 12px;
}
.vfp-native-cart table.variations th,
.vfp-native-cart table.variations td {
	display: block;
	padding: 0 !important;
	text-align: left;
}
.vfp-native-cart table.variations th { margin-bottom: 5px; }
.vfp-native-cart table.variations label { color: var(--vfp-navy); font-size: 13px; }
.vfp-native-cart table.variations select {
	width: 100%;
	min-height: 46px;
	border: 1px solid #cbd2d4;
	border-radius: 4px;
	background: #fff;
}
.vfp-product.is-enhanced .vfp-native-cart table.variations {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.vfp-product.is-enhanced .vfp-native-cart .reset_variations { display: none !important; }
.vfp-native-cart .single_variation { margin: 0; }
.vfp-native-cart .woocommerce-variation-description { display: none; }
.vfp-native-cart .woocommerce-variation-price { margin: 0 0 9px; }
.vfp-native-cart .woocommerce-variation-add-to-cart {
	display: grid !important;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 10px;
	align-items: stretch;
}
.vfp-native-cart .quantity { width: 96px; margin: 0 !important; }
.vfp-native-cart .quantity .qty {
	width: 100% !important;
	min-height: 54px;
	border: 1px solid #cbd2d4;
	border-radius: 4px;
	background: #fff;
	text-align: center;
	font-size: 16px;
}
.vfp-native-cart .single_add_to_cart_button {
	min-height: 54px !important;
	margin: 0 !important;
	border: 1px solid var(--vfp-navy) !important;
	border-radius: 4px !important;
	background: var(--vfp-navy) !important;
	color: #fff !important;
	font: inherit !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	box-shadow: none !important;
}
.vfp-native-cart .single_add_to_cart_button:hover {
	border-color: var(--vfp-navy-hover) !important;
	background: var(--vfp-navy-hover) !important;
}
.vfp-native-cart .single_add_to_cart_button.disabled { opacity: .45; }
.vfp-insert-note {
	margin: 13px 0 0;
	padding-top: 13px;
	border-top: 1px solid #eceeeb;
	color: #6b7980;
	font-size: 12px;
	line-height: 1.55;
}
.vfp-insert-note strong { color: var(--vfp-navy); }

.vfp-quick-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 15px 0 0;
	padding: 0;
	border-top: 1px solid var(--vfp-line);
	border-bottom: 1px solid var(--vfp-line);
}
.vfp-quick-specs > div { padding: 13px 10px 13px 0; }
.vfp-quick-specs > div + div { padding-left: 14px; border-left: 1px solid #e4e7e5; }
.vfp-quick-specs dt,
.vfp-quick-specs dd { margin: 0; }
.vfp-quick-specs dt { color: #7a878d; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.vfp-quick-specs dd { margin-top: 4px; color: var(--vfp-navy); font-size: 12px; font-weight: 700; line-height: 1.45; }

/* Product details */
.vfp-details {
	padding: 78px 0;
	background: var(--vfp-paper);
	border-block: 1px solid #e8e6e0;
}
.vfp-details-grid {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
	gap: clamp(48px, 7vw, 86px);
	align-items: start;
}
.vfp-kicker {
	margin: 0 0 11px !important;
	color: var(--vfp-red) !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.vfp-details-copy h2,
.vfp-section-head h2,
.vfp-related-head h2 {
	margin: 0;
	font-size: clamp(30px, 3.5vw, 43px);
	font-weight: 600;
	line-height: 1.12;
}
.vfp-details-copy > p:not(.vfp-kicker) {
	margin: 16px 0 0;
	color: #566871;
	font-size: 16px;
	line-height: 1.75;
}

.vfp-spec-list {
	margin: 0;
	padding: 0;
	border-top: 1px solid #cfd5d5;
	background: #fff;
}
.vfp-spec-list > div {
	display: grid;
	grid-template-columns: minmax(145px, .8fr) minmax(0, 1.2fr);
	gap: 20px;
	padding: 15px 17px;
	border-bottom: 1px solid #e1e4e2;
}
.vfp-spec-list dt,
.vfp-spec-list dd { margin: 0; }
.vfp-spec-list dt { color: #748087; font-size: 12px; }
.vfp-spec-list dd { color: var(--vfp-navy); font-size: 12px; font-weight: 700; text-align: right; }

/* Before ordering */
.vfp-before-ordering { padding: 76px 0; background: #fff; }
.vfp-section-head { max-width: 720px; margin-bottom: 30px; }
.vfp-ordering-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.vfp-ordering-grid > div {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 16px;
	padding: 22px;
	border-top: 2px solid var(--vfp-navy);
	background: #f8f9f7;
}
.vfp-ordering-grid > div > span {
	color: var(--vfp-red);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
}
.vfp-ordering-grid strong { display: block; color: var(--vfp-navy); font-size: 15px; }
.vfp-ordering-grid p { margin: 7px 0 0; color: #68767d; font-size: 13px; line-height: 1.65; }
.vfp-ordering-grid a { display: inline-block; margin-top: 10px; color: var(--vfp-red); font-size: 12px; font-weight: 700; text-underline-offset: 3px; }

/* FAQ */
.vfp-faq { padding: 76px 0; background: #f8f8f5; border-top: 1px solid #e7e7e2; }
.vfp-faq-grid {
	display: grid;
	grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
	gap: clamp(46px, 7vw, 82px);
	align-items: start;
}
.vfp-faq-list { border-top: 1px solid #d7dcda; }
.vfp-faq-list details { border-bottom: 1px solid #d7dcda; }
.vfp-faq-list summary {
	position: relative;
	padding: 19px 42px 19px 0;
	color: var(--vfp-navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}
.vfp-faq-list summary::-webkit-details-marker { display: none; }
.vfp-faq-list summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 14px;
	font-size: 23px;
	font-weight: 400;
}
.vfp-faq-list details[open] summary::after { content: '−'; }
.vfp-faq-list details p {
	margin: 0;
	padding: 0 38px 19px 0;
	color: #64737a;
	font-size: 13px;
	line-height: 1.7;
}

/* Related products */
.vfp-related { padding: 76px 0 86px; background: #fff; }
.vfp-related-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 24px;
}
.vfp-related-head a { color: var(--vfp-red); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.vfp-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.vfp-related-card { display: flex; min-width: 0; flex-direction: column; color: var(--vfp-navy); text-decoration: none; }
.vfp-related-image {
	display: block;
	aspect-ratio: 1 / 1;
	border: 1px solid #e7e7e2;
	border-radius: 4px;
	background: var(--vfp-paper);
	overflow: hidden;
}
.vfp-related-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vfp-related-card > strong { margin-top: 13px; font-size: 14px; line-height: 1.45; }
.vfp-related-price { margin-top: 6px; color: #3d505a; font-size: 14px; font-weight: 700; }
.vfp-related-card:hover > strong { color: var(--vfp-red); text-decoration: underline; text-underline-offset: 3px; }

.vfp-mobile-atc { display: none; }

@media (max-width: 1020px) {
	.vfp-shell { width: calc(100% - 40px); }
	.vfp-hero { grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); gap: 38px; }
	.vfp-summary h1 { font-size: clamp(35px, 4.7vw, 47px); }
	.vfp-details-grid,
	.vfp-faq-grid { gap: 44px; }
	.vfp-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}

@media (max-width: 820px) {
	.vfp-hero { grid-template-columns: 1fr; padding-top: 8px; }
	.vfp-gallery { max-width: 680px; }
	.vfp-details-grid,
	.vfp-faq-grid { grid-template-columns: 1fr; }
	.vfp-ordering-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
	.vfp-shell { width: calc(100% - 28px); }
	.vfp-breadcrumb { padding-top: 15px; font-size: 11px; }
	.vfp-hero { gap: 25px; padding-bottom: 54px; }
	.vfp-gallery .flex-control-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
	.vfp-summary h1 { font-size: 33px; }
	.vfp-price .price { font-size: 25px !important; }
	.vfp-intro { font-size: 15px; }
	.vfp-fit-answer { grid-template-columns: 1fr; gap: 7px; }
	.vfp-fit-answer a { justify-self: start; }
	.vfp-buy { padding: 17px; }
	.vfp-finish-options { grid-template-columns: 1fr; }
	.vfp-native-cart .woocommerce-variation-add-to-cart { grid-template-columns: 84px minmax(0, 1fr); }
	.vfp-native-cart .quantity { width: 84px; }
	.vfp-quick-specs { grid-template-columns: 1fr; }
	.vfp-quick-specs > div { padding: 10px 0; }
	.vfp-quick-specs > div + div { padding-left: 0; border-left: 0; border-top: 1px solid #e4e7e5; }
	.vfp-details,
	.vfp-before-ordering,
	.vfp-faq,
	.vfp-related { padding: 54px 0; }
	.vfp-spec-list > div { grid-template-columns: 1fr; gap: 5px; }
	.vfp-spec-list dd { text-align: left; }
	.vfp-ordering-grid > div { grid-template-columns: 34px minmax(0, 1fr); padding: 18px; }
	.vfp-related-head { align-items: flex-start; flex-direction: column; }
	.vfp-related-grid { gap: 20px 12px; }
	.vfp-related-card > strong { font-size: 13px; }
	.vfp-mobile-atc {
		position: fixed;
		z-index: 99990;
		left: 0;
		right: 0;
		bottom: 0;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: 'copy button' 'price button';
		gap: 2px 12px;
		align-items: center;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid #d9dedd;
		background: rgba(255,255,255,.98);
		box-shadow: 0 -12px 30px rgba(23,53,77,.12);
		transform: translateY(120%);
		transition: transform .2s ease;
	}
	.vfp-mobile-atc.is-visible { transform: translateY(0); }
	.vfp-mobile-atc > div { grid-area: copy; min-width: 0; }
	.vfp-mobile-atc > div strong,
	.vfp-mobile-atc > div span { display: block; }
	.vfp-mobile-atc > div strong { color: var(--vfp-navy); font-size: 12px; }
	.vfp-mobile-atc > div span { margin-top: 1px; color: #758289; font-size: 10px; }
	.vfp-mobile-price { grid-area: price; color: var(--vfp-navy); font-size: 12px; font-weight: 700; }
	.vfp-mobile-price .price { margin: 0 !important; font-size: inherit !important; }
	.vfp-mobile-atc-button {
		grid-area: button;
		min-height: 44px;
		padding: 10px 16px;
		border: 0;
		border-radius: 4px;
		background: var(--vfp-navy);
		color: #fff;
		font: inherit;
		font-size: 12px;
		font-weight: 800;
		cursor: pointer;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vfp-finish-option,
	.vfp-mobile-atc { transition: none !important; }
}
