.wpvip-demo-product {
	--demo-product-background: var(--wp--preset--color--base, var(--wp--preset--color--background, #fff));
	--demo-product-surface: var(--wp--preset--color--surface, #f5f5f7);
	--demo-product-text: var(--wp--preset--color--contrast, var(--wp--preset--color--foreground, #111317));
	--demo-product-muted: var(--wp--preset--color--muted, #667085);
	--demo-product-primary: var(--wp--preset--color--brand-primary, var(--wp--preset--color--primary, #2563eb));
	--demo-product-border: var(--wp--preset--color--border, color-mix(in srgb, currentColor 18%, transparent));
	box-sizing: border-box;
	color: var(--demo-product-text);
	font-family: inherit;
	margin-block: clamp(2rem, 6vw, 5rem);
}

.wpvip-demo-product *,
.wpvip-demo-product *::before,
.wpvip-demo-product *::after {
	box-sizing: inherit;
}

.wpvip-demo-product__hero {
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
	margin-block-end: clamp(3rem, 7vw, 6rem);
}

.wpvip-demo-product__gallery,
.wpvip-demo-product__stage,
.wpvip-demo-product__slides,
.wpvip-demo-product__slide {
	min-width: 0;
}

.wpvip-demo-product__stage {
	background: var(--demo-product-surface);
	border-radius: var(--wp--custom--border-radius--large, 1rem);
	overflow: hidden;
	position: relative;
}

.wpvip-demo-product__slide {
	margin: 0;
}

.wpvip-demo-product__slide[hidden] {
	display: none;
}

.wpvip-demo-product__zoom {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	cursor: zoom-in;
	display: flex;
	justify-content: center;
	padding: 0;
	position: relative;
	width: 100%;
}

.wpvip-demo-product__zoom img,
.wpvip-demo-product__editor-image {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto;
	object-fit: contain;
	width: 100%;
}

.wpvip-demo-product__zoom-hint {
	background: color-mix(in srgb, var(--demo-product-background) 92%, transparent);
	border-radius: 999px;
	bottom: 1rem;
	box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
	color: var(--demo-product-text);
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.5rem 0.75rem;
	position: absolute;
	right: 1rem;
}

.wpvip-demo-product__slide figcaption {
	background: color-mix(in srgb, var(--demo-product-surface) 92%, transparent);
	bottom: 0;
	font-size: 0.8125rem;
	left: 0;
	padding: 0.5rem 0.75rem;
	position: absolute;
}

.wpvip-demo-product__arrow,
.wpvip-demo-product__lightbox-arrow,
.wpvip-demo-product__lightbox-close {
	align-items: center;
	appearance: none;
	background: color-mix(in srgb, var(--demo-product-background) 94%, transparent);
	border: 1px solid var(--demo-product-border);
	border-radius: 999px;
	color: var(--demo-product-text);
	cursor: pointer;
	display: flex;
	font-size: 2rem;
	height: 2.75rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	z-index: 2;
}

.wpvip-demo-product__arrow--previous { left: 0.75rem; }
.wpvip-demo-product__arrow--next { right: 0.75rem; }

.wpvip-demo-product__thumbnails {
	display: flex;
	gap: 0.75rem;
	margin-block-start: 0.75rem;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 0.15rem 0.15rem 0.65rem;
	scroll-snap-type: inline mandatory;
	scrollbar-width: thin;
}

.wpvip-demo-product__thumbnails button {
	appearance: none;
	background: var(--demo-product-surface);
	border: 2px solid transparent;
	border-radius: 0.5rem;
	cursor: pointer;
	flex: 0 0 5rem;
	overflow: hidden;
	padding: 0;
	scroll-snap-align: start;
}

.wpvip-demo-product__thumbnails button[aria-selected="true"] {
	border-color: var(--demo-product-primary);
}

.wpvip-demo-product__thumbnails img {
	aspect-ratio: 1;
	display: block;
	object-fit: cover;
	width: 100%;
}

.wpvip-demo-product__summary {
	align-self: center;
}

.wpvip-demo-product__eyebrow {
	color: var(--demo-product-primary);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.wpvip-demo-product__title {
	font-family: inherit;
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	letter-spacing: -0.035em;
	line-height: 1.02;
	margin: 0;
}

.wpvip-demo-product__price {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	margin: 1.25rem 0;
}

.wpvip-demo-product__description {
	color: var(--demo-product-muted);
	font-size: 1.075rem;
	line-height: 1.7;
	max-width: 42rem;
}

.wpvip-demo-product__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 2rem;
}

.wpvip-demo-product__button {
	align-items: center;
	border: 2px solid var(--demo-product-primary);
	border-radius: var(--wp--custom--border-radius--button, 0.5rem);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 0.45rem;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 1.35rem;
	text-decoration: none;
	transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.wpvip-demo-product__button:hover { transform: translateY(-1px); }
.wpvip-demo-product__button--primary { background: var(--demo-product-primary); color: var(--demo-product-background); }
.wpvip-demo-product__button--secondary { background: transparent; color: var(--demo-product-primary); }
.wpvip-demo-product__button--secondary.is-selected { background: color-mix(in srgb, var(--demo-product-primary) 12%, transparent); }

.wpvip-demo-product__section {
	border-top: 1px solid var(--demo-product-border);
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.wpvip-demo-product__section h2 {
	font-size: clamp(1.65rem, 3vw, 2.5rem);
	line-height: 1.15;
	margin: 0 0 1.75rem;
}

.wpvip-demo-product__section-heading {
	align-items: flex-start;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.wpvip-demo-product__section-heading h2 {
	flex: 1;
}

.wpvip-demo-product__section-heading .components-button {
	flex: 0 0 auto;
	margin-block-start: 0.25rem;
}

.wpvip-demo-product__section-content {
	font-size: 1.05rem;
	line-height: 1.75;
	max-width: 56rem;
}

.wpvip-demo-product__feature-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpvip-demo-product__feature {
	align-items: flex-start;
	background: var(--demo-product-surface);
	border-radius: 0.75rem;
	display: flex;
	gap: 0.75rem;
	line-height: 1.55;
	padding: 1.25rem;
}

.wpvip-demo-product__feature p { margin: 0; }
.wpvip-demo-product__feature-icon { color: var(--demo-product-primary); font-weight: 800; }

.wpvip-demo-product__specifications {
	border-block: 1px solid var(--demo-product-border);
	margin: 0;
}

.wpvip-demo-product__specification {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr);
	padding: 1rem 0;
}

.wpvip-demo-product__specification + .wpvip-demo-product__specification { border-top: 1px solid var(--demo-product-border); }
.wpvip-demo-product__specification dt { font-weight: 700; }
.wpvip-demo-product__specification dd { margin: 0; }

.wpvip-demo-product__warning {
	background: color-mix(in srgb, #f59e0b 10%, var(--demo-product-background));
	border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent);
	border-left: 0.35rem solid #d97706;
	border-radius: 0.5rem;
	margin-block-start: 2rem;
	padding: clamp(1.25rem, 4vw, 2rem);
}

.wpvip-demo-product__warning h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); margin-block-end: 0.75rem; }

.wpvip-demo-product__placeholder {
	align-items: center;
	aspect-ratio: 1;
	background: var(--demo-product-surface);
	color: var(--demo-product-muted);
	display: flex;
	justify-content: center;
	padding: 2rem;
	text-align: center;
}

.wpvip-demo-product__lightbox {
	background: transparent;
	border: 0;
	color: #fff;
	height: 100dvh;
	margin: 0;
	max-height: none;
	max-width: none;
	padding: clamp(1rem, 4vw, 4rem);
	width: 100vw;
}

.wpvip-demo-product__lightbox[open] {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-rows: minmax(0, 1fr) auto;
	place-items: center;
}

.wpvip-demo-product__lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.wpvip-demo-product__lightbox img { grid-column: 2; max-height: calc(100dvh - 7rem); max-width: 100%; object-fit: contain; }
.wpvip-demo-product__lightbox [data-gallery-status] { grid-column: 2; margin: 1rem 0 0; }
.wpvip-demo-product__lightbox-close { background: #fff; color: #111; right: 1rem; top: 1rem; transform: none; }
.wpvip-demo-product__lightbox-arrow { position: relative; top: auto; transform: none; }
.wpvip-demo-product__lightbox-arrow--previous { grid-column: 1; }
.wpvip-demo-product__lightbox-arrow--next { grid-column: 3; }

.wpvip-demo-product :focus-visible {
	outline: 3px solid var(--demo-product-primary);
	outline-offset: 3px;
}

.wpvip-demo-product--editor { padding-inline: 1rem; }
.wpvip-demo-product__editor-gallery-count { color: var(--demo-product-muted); font-size: 0.875rem; }
.wpvip-demo-product__editor-row { position: relative; }
.wpvip-demo-product__editor-row-actions { display: flex; gap: 0.25rem; margin-left: auto; }
.wpvip-demo-product__editor-row-actions .components-button { min-width: 2.25rem; }
.wpvip-demo-product--editor .wpvip-demo-product__specification { align-items: center; grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr) auto; }
.wpvip-demo-product--editor .wpvip-demo-product__feature { flex-wrap: wrap; }
.wpvip-demo-product--editor .wpvip-demo-product__feature > p { flex: 1; }
.wpvip-demo-product--editor > .wpvip-demo-product__section > .components-button { margin-block-start: 1rem; }

@media (max-width: 780px) {
	.wpvip-demo-product__hero { grid-template-columns: 1fr; }
	.wpvip-demo-product__feature-grid { grid-template-columns: 1fr; }
	.wpvip-demo-product__summary { align-self: auto; }
	.wpvip-demo-product__actions { flex-direction: column; }
	.wpvip-demo-product__button { width: 100%; }
	.wpvip-demo-product__thumbnails button { flex-basis: 4rem; }
	.wpvip-demo-product__lightbox { padding: 4rem 0.5rem 1rem; }
	.wpvip-demo-product__lightbox[open] { grid-template-columns: 1fr 1fr; }
	.wpvip-demo-product__lightbox img { grid-column: 1 / -1; grid-row: 1; }
	.wpvip-demo-product__lightbox-arrow { grid-row: 2; }
	.wpvip-demo-product__lightbox-arrow--previous { grid-column: 1; justify-self: end; margin-right: 0.5rem; }
	.wpvip-demo-product__lightbox-arrow--next { grid-column: 2; justify-self: start; margin-left: 0.5rem; }
	.wpvip-demo-product__lightbox [data-gallery-status] { grid-column: 1 / -1; grid-row: 3; }
}

@media (max-width: 480px) {
	.wpvip-demo-product__specification { grid-template-columns: 1fr; gap: 0.25rem; }
	.wpvip-demo-product--editor .wpvip-demo-product__specification { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.wpvip-demo-product *,
	.wpvip-demo-product *::before,
	.wpvip-demo-product *::after { scroll-behavior: auto !important; transition: none !important; }
}
