/* Standard — storefront styles.
   Deliberately neutral so it sits inside any theme; override in the theme's CSS if needed. */

.vskc {
	--vskc-accent: #1a1a1a;
	--vskc-border: #e2e2e2;
	--vskc-muted: #6b6b6b;
	--vskc-radius: 10px;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 1.5em;
	font-size: 15px;
}
.vskc *, .vskc *::before, .vskc *::after { box-sizing: inherit; }

/* ---- preview ---- */
.vskc__preview {
	margin-bottom: 1.25em;
}
.vskc__preview--in-gallery {
	margin-bottom: 2em;
}
@media (min-width: 900px) {
	/* Keep the picture in view while the customer scrolls through the options. */
	.vskc__preview--in-gallery {
		position: sticky;
		top: 24px;
	}
}
.vskc__stage {
	position: relative;
	background: #f4f3f1;
	border-radius: var(--vskc-radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.vskc__canvas {
	display: block;
	width: 100%;
	height: auto;
}
.vskc__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.55);
	font-size: .9em;
	color: var(--vskc-muted);
	pointer-events: none;
}
.vskc__loading[hidden] { display: none; }

.vskc__summary {
	margin-top: 1em;
	padding: 1em 1.25em;
	border: 1px solid var(--vskc-border);
	border-radius: var(--vskc-radius);
	background: #fff;
}
.vskc__summary-title {
	font-weight: 600;
	margin-bottom: .5em;
}
.vskc__summary-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: .35em 1.5em;
	font-size: .92em;
}
.vskc__summary-list li {
	display: flex;
	justify-content: space-between;
	gap: .75em;
	border-bottom: 1px dashed var(--vskc-border);
	padding: .25em 0;
}
.vskc__summary-list li span { color: var(--vskc-muted); }
.vskc__price {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: .9em;
	padding-top: .75em;
	border-top: 1px solid var(--vskc-border);
}
.vskc__price-label { color: var(--vskc-muted); }
.vskc__price-value {
	font-size: 1.5em;
	font-weight: 700;
	color: var(--vskc-accent);
}

/* ---- option groups ---- */
.vskc__group {
	border: 0;
	padding: 0;
	margin: 0 0 1.5em;
	min-width: 0;
}
.vskc__group-title {
	display: flex;
	align-items: center;
	gap: .6em;
	font-weight: 600;
	margin-bottom: .6em;
	padding: 0;
}
.vskc__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: var(--vskc-accent);
	color: #fff;
	font-size: .8em;
	font-weight: 700;
}
.vskc__group-current {
	font-weight: 400;
	color: var(--vskc-muted);
}
.vskc__tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: .6em;
}
.vskc__tile {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .35em;
	padding: .4em;
	margin: 0;
	background: #fff;
	border: 2px solid var(--vskc-border);
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	line-height: 1.2;
	color: inherit;
	font: inherit;
	transition: border-color .15s, box-shadow .15s, transform .1s;
}
.vskc__tile:hover { border-color: #bdbdbd; }
.vskc__tile:focus-visible { outline: 2px solid var(--vskc-accent); outline-offset: 2px; }
.vskc__tile.is-selected {
	border-color: var(--vskc-accent);
	box-shadow: 0 0 0 1px var(--vskc-accent);
}
.vskc__tile.is-unavailable {
	opacity: .35;
	cursor: not-allowed;
}
.vskc__tile-visual {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 5px;
	background-size: cover;
	background-position: center;
	background-color: #f0f0f0;
}
.vskc__tile-visual--thumb {
	background-size: contain;
	background-repeat: no-repeat;
	background-color: #fafafa;
}
.vskc__tile-visual--text {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}
.vskc__tile-label {
	font-size: .8em;
	font-weight: 600;
	white-space: normal;
	overflow-wrap: anywhere;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vskc__tile-price {
	font-size: .72em;
	color: var(--vskc-muted);
}
.vskc__tile.is-selected .vskc__tile-price { color: var(--vskc-accent); }

.vskc__inputs { display: none; }

.vskc__preview-note, .vskc__breakdown { font-size: .8em; line-height: 1.5; color: #666; margin: .75em 0 0; }
.vskc__cart-status { margin: .75em 0; padding: .7em .9em; border-radius: 6px; background: #f5f5f5; font-size: .9em; }
.vskc__cart-status.is-error { color: #8a1f11; background: #fff0ee; }
.vskc__group[data-group="type"] .vskc__tiles,
.vskc__group[data-group="size"] .vskc__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vskc__group[data-group="type"] .vskc__tile-visual { aspect-ratio: 4 / 3; }
.vskc__group[data-group="size"] .vskc__tile-visual { aspect-ratio: 3 / 1; font-weight: 700; }
.vskc__group[data-group="design"] .vskc__tile { max-width: 220px; }

/* Cart thumbnail */
.vskc-cart-thumb { max-width: 120px; height: auto; }

@media (max-width: 600px) {
	.vskc__tiles { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
	.vskc__summary-list { grid-template-columns: 1fr; }
}

/* ---- Standard scene details and selected finish strip ---- */
.vskc__scene-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75em 1em;
	flex-wrap: wrap;
	margin: .65em 0 0;
	font-size: .82em;
}
.vskc__scene-dimensions { color: var(--vskc-muted); }
.vskc__floorplan-link { font-weight: 600; text-decoration: underline; }
.vskc__group[data-group="design"] .vskc__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vskc__group[data-group="design"] .vskc__tile { max-width: none; }
.vskc__group[data-group="design"] .vskc__tile-visual { aspect-ratio: 4 / 3; }
@media (max-width: 700px) {
	.vskc__group[data-group="design"] .vskc__tiles { grid-template-columns: 1fr; }
}


/* v3.0 live image sync: keep the normal WooCommerce main image visible and
   replace it with the current configured canvas after every selection. */
.vskc-active .woocommerce-product-gallery,
.vskc-active .product .images { display: block !important; }
.vskc-active .woocommerce-product-gallery img[data-vskc-live-image="1"],
.vskc-active .product .images img[data-vskc-live-image="1"] {
\tdisplay: block !important;
\twidth: 100% !important;
\theight: auto !important;
\tobject-fit: contain !important;
\topacity: 1 !important;
}
.vskc__canvas { background: #fff; }

/* Main product image replaced by the live kitchen (4:3). Placeholders are
   square, so let the configured picture keep its own proportions. */
img[data-vskc-live-image] {
	aspect-ratio: 4 / 3;
	height: auto !important;
	object-fit: cover;
	transition: opacity .15s ease;
}
