/**
 * Single product layout.
 *
 * The reference informs structure only; visual decisions use VANBO tokens.
 */

.vf-product-main {
	--vf-product-header-space: 184px;
	padding-inline: var(--vf-page-gutter) 0;
}

.vf-product-main > .woocommerce-notices-wrapper,
.vf-product-main > .wc-block-components-notice-banner,
.vf-product-breadcrumb-bar,
.vf-product-hero,
.vf-product-lower {
	width: 100%;
	max-width: 1480px;
	margin-inline: auto;
}

.vf-product-breadcrumb-bar {
	padding: 14px 0 12px;
}

.vf-product-summary .vf-product-breadcrumb-bar {
	padding: 0;
}

.vf-product-breadcrumb-bar .woocommerce-breadcrumb,
.vf-product-breadcrumb-bar .wc-block-breadcrumbs {
	margin: 0 !important;
	color: var(--vf-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	text-transform: capitalize;
}

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

.vf-product-breadcrumb-bar a:hover,
.vf-product-breadcrumb-bar a:focus-visible {
	color: var(--vf-accent);
}

.vf-product-hero {
	display: grid !important;
	grid-template-columns: minmax(360px, 34fr) minmax(0, 66fr);
	gap: 0;
	align-items: stretch !important;
	max-width: none;
	min-height: 100svh;
	padding: 0;
	border-bottom: 0;
}

.vf-product-gallery-pane,
.vf-product-summary-pane,
.vf-product-details-pane {
	min-width: 0;
	margin: 0;
}

.vf-product-gallery-pane {
	position: relative;
	grid-column: 2;
	grid-row: 1;
	order: 2;
	display: block;
	width: 100%;
	height: 100svh;
	min-height: 620px;
	overflow: hidden;
	background: transparent;
}

.vf-product-gallery-pane > .wp-block-woocommerce-product-image-gallery,
.vf-product-gallery-pane .wc-block-product-gallery {
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
}

/* Classic WooCommerce gallery used by the current product image block. */
.vf-product-gallery-pane .woocommerce-product-gallery {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
}

.vf-product-gallery-pane .woocommerce-product-gallery .flex-viewport,
.vf-product-gallery-pane .woocommerce-product-gallery__wrapper {
	background: transparent;
}

.vf-product-gallery-pane .woocommerce-product-gallery .flex-viewport {
	height: 100% !important;
	overflow: hidden !important;
}

.vf-product-gallery-pane .woocommerce-product-gallery__wrapper {
	height: 100% !important;
}

.vf-product-gallery-pane .woocommerce-product-gallery__image {
	height: 100%;
	overflow: hidden;
	background: transparent;
}

.vf-product-gallery-pane .woocommerce-product-gallery__image a {
	display: block;
	width: 100%;
	height: 100%;
}

.vf-product-gallery-pane .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	object-fit: cover;
	object-position: center;
}

.vf-product-gallery-pane .flex-control-thumbs {
	position: absolute;
	top: 50%;
	right: 20px;
	z-index: 6;
	display: grid !important;
	gap: 10px;
	width: 58px;
	max-height: min(62vh, 580px);
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	transform: translateY(-50%);
	scrollbar-width: none;
}

.vf-product-gallery-pane .flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

.vf-product-gallery-pane .flex-control-thumbs li {
	float: none;
	width: 58px;
	margin: 0;
}

.vf-product-gallery-pane .flex-control-thumbs img {
	display: block;
	width: 58px;
	height: 58px;
	padding: 4px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid transparent;
	border-radius: var(--vf-radius-small);
	opacity: 0.68;
	cursor: pointer;
}

.vf-product-gallery-pane .flex-control-thumbs img:hover,
.vf-product-gallery-pane .flex-control-thumbs img.flex-active {
	border-color: var(--vf-ink);
	opacity: 1;
}

.vf-product-gallery-pane .flex-direction-nav {
	position: absolute;
	bottom: 20px;
	left: 20px;
	z-index: 6;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vf-product-gallery-pane .flex-direction-nav li {
	margin: 0;
}

.vf-product-gallery-pane .flex-direction-nav a {
	position: static;
	display: grid;
	width: 48px;
	height: 48px;
	margin: 0;
	color: var(--vf-ink);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--vf-line);
	border-radius: 50%;
	font-size: 0;
	text-decoration: none;
	opacity: 1;
	place-items: center;
	transform: none;
}

.vf-product-gallery-pane .flex-direction-nav a::before {
	font-family: var(--vf-font-sans);
	font-size: 25px;
	font-weight: 400;
	line-height: 1;
}

.vf-product-gallery-pane .flex-direction-nav .flex-prev::before {
	content: "‹";
}

.vf-product-gallery-pane .flex-direction-nav .flex-next::before {
	content: "›";
}

.vf-product-gallery-pane .flex-direction-nav a:hover,
.vf-product-gallery-pane .flex-direction-nav a:focus-visible {
	color: #fff;
	background: var(--vf-ink);
	border-color: var(--vf-ink);
}

.vf-product-gallery-pane .flex-direction-nav .flex-disabled {
	pointer-events: none;
	opacity: 0.35 !important;
}

/* Product Gallery block fallback/newer markup. */
.vf-product-gallery-pane .wc-block-product-gallery-large-image {
	width: 100%;
	height: 100%;
	margin-left: 0;
	overflow: hidden;
	background: transparent;
}

.vf-product-gallery-pane .wc-block-product-gallery-large-image__container,
.vf-product-gallery-pane .wc-block-product-gallery-large-image__wrapper,
.vf-product-gallery-pane .wc-block-components-product-image,
.vf-product-gallery-pane .wc-block-components-product-image a {
	width: 100%;
	height: 100%;
}

.vf-product-gallery-pane .wc-block-product-gallery-large-image img {
	width: 100%;
	height: 100%;
	max-height: none;
	padding: 0;
	object-fit: cover !important;
	object-position: center;
}

.vf-product-gallery-pane .wc-block-product-gallery-thumbnails {
	position: absolute;
	top: 50%;
	right: 20px;
	z-index: 6;
	width: 58px;
	transform: translateY(-50%);
}

.vf-product-gallery-pane .woocommerce-product-gallery__trigger {
	display: none !important;
}

.vf-product-summary-pane {
	position: sticky;
	top: 0;
	grid-column: 1;
	grid-row: 1 / span 2;
	order: 1;
	display: flex;
	align-items: center;
	height: 100svh;
	min-height: 620px;
	padding: var(--vf-product-header-space) clamp(24px, 4vw, 64px) 40px clamp(28px, 3vw, 48px);
	background: transparent;
	border-right: 0;
}

.vf-product-summary {
	width: 100%;
	max-width: 500px;
	max-height: none;
	margin-inline: auto;
	padding-right: 0;
	overflow: visible;
}

.vf-product-summary > * {
	margin-block: 0;
}

.vf-product-summary > * + * {
	margin-top: 16px;
}

.vf-product-heading-row {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	justify-content: space-between;
	margin: 24px 0 0 !important;
}

.vf-product-heading-row > * {
	margin: 0 !important;
}

.vf-product-title {
	flex: 1 1 auto;
	margin: 0 !important;
	font-family: var(--vf-font-sans);
	font-size: 36px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 40px;
}

.vf-product-rating {
	flex: 0 0 auto;
	margin: 1px 0 0 !important;
	color: var(--vf-ink);
	font-size: 13px;
	line-height: 22px;
	white-space: nowrap;
}

.vf-product-rating .wc-block-components-product-rating__stars {
	color: var(--vf-accent);
}

.vf-product-price {
	margin-top: 8px !important;
	color: var(--vf-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 30px;
}

.vf-product-price .wc-block-components-product-price {
	font-size: inherit;
}

.vf-product-category {
	margin-top: 16px !important;
	color: var(--vf-ink);
	font-size: 15px;
	font-weight: 400;
	line-height: 22px;
	text-transform: capitalize;
}

.vf-product-category a {
	color: inherit;
	text-decoration: none;
}

.vf-product-excerpt {
	margin-top: 16px !important;
	color: var(--vf-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
}

.vf-product-excerpt p {
	margin: 0;
}

.vf-product-divider {
	margin-top: 20px !important;
	border-color: var(--vf-line);
}

.vf-product-summary .wp-block-woocommerce-add-to-cart-form {
	margin-top: 20px;
}

.vf-product-summary form.cart {
	width: 100%;
	margin: 0;
}

.vf-product-summary form.cart:not(.variations_form),
.vf-product-summary .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.vf-product-summary form.cart .quantity {
	display: flex;
	flex: 0 0 72px;
	min-height: var(--vf-control-height-large);
	padding: 0 8px;
	background: var(--vf-soft);
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
}

.vf-product-summary form.cart .qty {
	width: 100%;
	padding: 0;
	text-align: center;
	background: transparent;
	border: 0;
}

.vf-product-summary form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	min-height: var(--vf-control-height-large);
	padding: 14px 28px;
	color: #fff;
	background: var(--vf-ink);
	border: 1px solid var(--vf-ink);
	border-radius: var(--vf-radius);
	font-family: var(--vf-font-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: capitalize;
}

.vf-product-summary form.cart .single_add_to_cart_button:hover,
.vf-product-summary form.cart .single_add_to_cart_button:focus-visible {
	color: #fff;
	background: var(--vf-accent);
	border-color: var(--vf-accent);
}

.vf-product-summary table.variations {
	display: block;
	width: 100%;
	margin: 0 0 20px;
}

.vf-product-summary table.variations tbody,
.vf-product-summary table.variations tr,
.vf-product-summary table.variations th,
.vf-product-summary table.variations td {
	display: block;
	width: 100%;
}

.vf-product-summary table.variations tr + tr {
	margin-top: 22px;
}

.vf-product-summary table.variations th,
.vf-product-summary table.variations td {
	padding: 0;
	text-align: left;
}

.vf-product-summary table.variations th {
	margin-bottom: 9px;
	font-size: 13px;
	font-weight: 600;
	line-height: 22px;
}

.vf-product-summary table.variations select {
	width: 100%;
	min-height: var(--vf-control-height);
	padding: 0 42px 0 14px;
	background: var(--vf-soft);
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
}

.vf-product-summary table.variations select.vf-variation-select--enhanced {
	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;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.vf-variation-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.vf-variation-option {
	color: var(--vf-ink);
	background: transparent;
	border-radius: var(--vf-radius);
	font: inherit;
	cursor: pointer;
}

.vf-variation-option--image {
	display: grid;
	gap: 6px;
	width: 64px;
	padding: 0;
	border: 0;
	text-align: center;
}

.vf-variation-option__media {
	display: block;
	width: 64px;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--vf-soft);
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
}

.vf-variation-option__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vf-variation-option--image .vf-variation-option__label {
	overflow: hidden;
	font-size: 12px;
	line-height: 18px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vf-variation-option--text {
	min-width: 52px;
	min-height: 44px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--vf-line);
	font-size: 14px;
	font-weight: 500;
	line-height: 22px;
}

.vf-variation-option--image:hover .vf-variation-option__media,
.vf-variation-option--image:focus-visible .vf-variation-option__media,
.vf-variation-option--image.is-selected .vf-variation-option__media {
	border-color: var(--vf-accent);
	box-shadow: 0 0 0 1px var(--vf-accent);
}

.vf-variation-option--text:hover,
.vf-variation-option--text:focus-visible,
.vf-variation-option--text.is-selected {
	color: #fff;
	background: var(--vf-ink);
	border-color: var(--vf-ink);
}

.vf-variation-option:focus-visible {
	outline: 2px solid var(--vf-accent);
	outline-offset: 3px;
}

.vf-variation-option:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

.vf-product-meta {
	gap: 6px 9px;
	margin-top: 22px !important;
	color: var(--vf-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 20px;
	text-transform: capitalize;
}

.vf-product-meta a {
	color: inherit;
}

.vf-product-details {
	margin-top: 28px !important;
	padding-top: 18px;
	border-top: 1px solid var(--vf-line);
}

.vf-product-details-pane {
	grid-column: 2;
	grid-row: 2;
	order: 3;
	padding: clamp(48px, 5vw, 80px);
	background: #fff;
}

.vf-product-details-pane .vf-product-details {
	margin-top: 0 !important;
	padding-top: 0;
	border-top: 0;
}

.vf-product-details ul.tabs.wc-tabs {
	display: flex;
	gap: 20px;
	margin: 0 0 18px;
	padding: 0;
	border-bottom: 1px solid var(--vf-line);
	list-style: none;
}

.vf-product-details ul.tabs.wc-tabs li {
	margin: 0 0 -1px;
	padding: 0;
	background: transparent;
	border: 0;
}

.vf-product-details ul.tabs.wc-tabs li a {
	display: block;
	padding: 0 0 12px;
	color: var(--vf-muted);
	border-bottom: 1px solid transparent;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.vf-product-details ul.tabs.wc-tabs li.active a {
	color: var(--vf-ink);
	border-color: var(--vf-ink);
}

.vf-product-details .woocommerce-Tabs-panel {
	margin: 0;
	color: var(--vf-muted);
	font-size: 13px;
	line-height: 1.65;
}

.vf-product-details .woocommerce-Tabs-panel > :first-child {
	margin-top: 0;
}

.vf-product-details .woocommerce-Tabs-panel h2 {
	font-size: 15px;
	line-height: 22px;
}

.vf-product-lower {
	max-width: none;
	margin: 0 auto;
	padding: clamp(56px, 6vw, 88px) 0;
	background: transparent;
	border-top: 0;
}

.vf-product-lower h2,
.vf-product-lower h3 {
	font-family: var(--vf-font-sans);
	font-weight: 600;
}

@media (max-width: 1100px) {
	.vf-product-main {
		--vf-product-header-space: 212px;
	}

	.vf-product-hero {
		grid-template-columns: minmax(320px, 42fr) minmax(0, 58fr);
	}

	.vf-product-summary-pane {
		padding-inline: 28px;
	}

	.vf-product-details-pane {
		padding-inline: 28px;
	}
}

@media (max-width: 782px) {
	.vf-product-main {
		padding-inline: var(--vf-page-gutter);
	}

	.vf-product-breadcrumb-bar {
		padding-block: 12px;
	}

	.vf-product-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		min-height: 0;
		padding-bottom: 64px;
		border-bottom: 0;
	}

	.vf-product-gallery-pane,
	.vf-product-summary-pane,
	.vf-product-details-pane {
		grid-column: 1;
		grid-row: auto;
	}

	.vf-product-gallery-pane {
		order: 1;
		height: auto;
		min-height: 0;
		aspect-ratio: 1;
	}

	.vf-product-summary-pane {
		position: static;
		top: auto;
		order: 2;
		display: block;
		height: auto;
		min-height: 0;
		padding: 40px 0 0;
		border-right: 0;
	}

	.vf-product-details-pane {
		order: 3;
		padding: 40px 0 0;
	}

	.vf-product-summary {
		max-width: 680px;
		max-height: none;
		padding-right: 0;
		overflow: visible;
	}

	.vf-product-gallery-pane .flex-control-thumbs,
	.vf-product-gallery-pane .wc-block-product-gallery-thumbnails {
		display: none !important;
	}

	.vf-product-gallery-pane .woocommerce-product-gallery__image img,
	.vf-product-gallery-pane .wc-block-product-gallery-large-image img {
		padding: 24px 24px 70px;
		object-fit: contain !important;
	}
}

@media (max-width: 600px) {
	.vf-product-title {
		font-size: 30px;
		line-height: 34px;
	}

	.vf-product-rating {
		font-size: 12px;
	}

	.vf-product-summary form.cart:not(.variations_form),
	.vf-product-summary .woocommerce-variation-add-to-cart {
		flex-wrap: wrap;
	}

	.vf-product-summary form.cart .single_add_to_cart_button {
		flex: 1 1 190px;
	}

	.vf-product-lower {
		padding-block: 48px;
	}
}
