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

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

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

.vkc__summary {
	margin-top: 1em;
	padding: 1em 1.25em;
	border: 1px solid var(--vkc-border);
	border-radius: var(--vkc-radius);
	background: #fff;
}
.vkc__summary-title {
	font-weight: 600;
	margin-bottom: .5em;
}
.vkc__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;
}
.vkc__summary-list li {
	display: flex;
	justify-content: space-between;
	gap: .75em;
	border-bottom: 1px dashed var(--vkc-border);
	padding: .25em 0;
}
.vkc__summary-list li span { color: var(--vkc-muted); }
.vkc__price {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: .9em;
	padding-top: .75em;
	border-top: 1px solid var(--vkc-border);
}
.vkc__price-label { color: var(--vkc-muted); }
.vkc__price-value {
	font-size: 1.5em;
	font-weight: 700;
	color: var(--vkc-accent);
}

/* ---- option groups ---- */
.vkc__group {
	border: 0;
	padding: 0;
	margin: 0 0 1.5em;
	min-width: 0;
}
.vkc__group-title {
	display: flex;
	align-items: center;
	gap: .6em;
	font-weight: 600;
	margin-bottom: .6em;
	padding: 0;
}
.vkc__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: var(--vkc-accent);
	color: #fff;
	font-size: .8em;
	font-weight: 700;
}
.vkc__group-current {
	font-weight: 400;
	color: var(--vkc-muted);
}
.vkc__tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: .6em;
}
.vkc__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(--vkc-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;
}
.vkc__tile:hover { border-color: #bdbdbd; }
.vkc__tile:focus-visible { outline: 2px solid var(--vkc-accent); outline-offset: 2px; }
.vkc__tile.is-selected {
	border-color: var(--vkc-accent);
	box-shadow: 0 0 0 1px var(--vkc-accent);
}
.vkc__tile.is-unavailable {
	opacity: .35;
	cursor: not-allowed;
}
.vkc__tile-visual {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 5px;
	background-size: cover;
	background-position: center;
	background-color: #f0f0f0;
}
.vkc__tile-visual--thumb {
	background-size: contain;
	background-repeat: no-repeat;
	background-color: #fafafa;
}
.vkc__tile-visual--text {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}
.vkc__tile-label {
	font-size: .8em;
	font-weight: 600;
	white-space: normal;
	overflow-wrap: anywhere;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vkc__tile-price {
	font-size: .72em;
	color: var(--vkc-muted);
}
.vkc__tile.is-selected .vkc__tile-price { color: var(--vkc-accent); }

.vkc__inputs { display: none; }

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

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

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

/* ---- Live main image ----
   The normal WooCommerce main image stays visible and is replaced with the
   current configured kitchen (same camera view) after every selection. */
.vkc-active .woocommerce-product-gallery,
.vkc-active .product .images { display: block !important; }
.vkc-active .woocommerce-product-gallery img[data-vkc-live-image="1"],
.vkc-active .product .images img[data-vkc-live-image="1"] {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	opacity: 1 !important;
}
.vkc__canvas { background: #fff; }

/* The live kitchen is 4:3; placeholders are square, so let the configured
   picture keep its own proportions. */
img[data-vkc-live-image] {
	aspect-ratio: 4 / 3;
	height: auto !important;
	object-fit: cover;
	transition: opacity .15s ease;
}

/* 2.0.2: own lightbox showing the generated kitchen */
.vkc-lightbox{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;overflow:auto;cursor:zoom-out}
.vkc-lightbox img{max-width:96vw;max-height:94vh;width:auto;height:auto;cursor:zoom-in;background:#fff}
.vkc-lightbox.is-actual{align-items:flex-start;justify-content:flex-start}
.vkc-lightbox.is-actual img{max-width:none;max-height:none;cursor:zoom-out}
.vkc-lightbox__close{position:fixed;top:12px;right:16px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#111;font-size:28px;line-height:1;cursor:pointer}
html.vkc-lightbox-open{overflow:hidden}
.woocommerce-product-gallery[data-vkc-live] img.zoomImg{display:none!important}
