/* DSP Vinyl Designer 3.0 — Final UI polish
   Premium graphite / red — customer experience only */

@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Kaushan+Script&family=Lobster&family=New+Rocker&family=Poetsen+One&family=Ranchers&display=swap');

:root {
	--dsp-ink: #0b0b0c;
	--dsp-graphite: #16171a;
	--dsp-panel: #1c1d21;
	--dsp-panel-2: #24262b;
	--dsp-line: rgba(255, 255, 255, 0.08);
	--dsp-text: #f3f3f4;
	--dsp-muted: #9a9aa3;
	--dsp-red: #e11d2e;
	--dsp-red-hot: #ff2a3d;
	--dsp-radius: 18px;
	--dsp-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Catalog / archive starting price */
.dsp-vd3-catalog-price {
	display: inline-block;
	font-weight: 700;
	font-size: 1.05em;
	letter-spacing: -0.01em;
	color: var(--dsp-red);
}

.single-product.dsp-vd3-active .summary .price .dsp-vd3-catalog-price,
.single-product.dsp-vd3-active .summary > .price {
	display: block;
	margin: 0.35rem 0 1rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--dsp-red);
}

/* Premium benefits under title */
.dsp-vd3-benefits {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	display: grid;
	gap: 0.55rem;
	background: linear-gradient(180deg, #fafafa, #f3f3f4);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 14px;
	max-width: 28rem;
}

.dsp-vd3-benefits__item {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.35;
	color: #2a2a2e;
	font-weight: 500;
}

.dsp-vd3-benefits__mark {
	flex: 0 0 auto;
	color: var(--dsp-red);
	font-weight: 800;
	line-height: 1.35;
}

/* Force product stack: gallery → configurator (full width) */
.single-product.dsp-vd3-active div.product {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	overflow-x: clip;
}

.single-product.dsp-vd3-active div.product::after {
	content: '';
	display: table;
	clear: both;
}

.single-product.dsp-vd3-active div.product .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	max-width: 960px !important;
	margin: 0 auto 1.5rem !important;
	display: block !important;
}

.single-product.dsp-vd3-active div.product .summary {
	float: none !important;
	width: 100% !important;
	max-width: 960px !important;
	margin: 0 auto !important;
	padding: 0 1rem 2.5rem !important;
	clear: both !important;
	display: block !important;
}

.single-product.dsp-vd3-active .dsp-vd3-stage {
	display: block !important;
	width: 100% !important;
	max-width: 960px;
	margin: 0 auto 2rem;
	padding: 0 1rem;
	clear: both;
	float: none !important;
	box-sizing: border-box;
}

.single-product.dsp-vd3-active .dsp-vd3-stage form.cart {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	width: 100%;
	margin: 0;
	max-width: 100%;
}

.single-product.dsp-vd3-active form.cart .quantity {
	display: none !important;
}

.single-product.dsp-vd3-active form.cart .single_add_to_cart_button,
.single-product.dsp-vd3-active .dsp-vd3-stage .single_add_to_cart_button {
	width: 100% !important;
	margin: 0 !important;
	padding: 1.2rem 1.5rem !important;
	min-height: 56px;
	font-size: 1.15rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, var(--dsp-red-hot), var(--dsp-red)) !important;
	color: #fff !important;
	box-shadow: 0 14px 32px rgba(225, 29, 46, 0.35);
	transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.single-product.dsp-vd3-active form.cart .single_add_to_cart_button:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 18px 40px rgba(225, 29, 46, 0.42);
}

.single-product.dsp-vd3-active form.cart .single_add_to_cart_button:active {
	transform: translateY(0);
	filter: brightness(0.98);
}

.single-product.dsp-vd3-active form.cart .single_add_to_cart_button:disabled,
.single-product.dsp-vd3-active form.cart .single_add_to_cart_button.is-disabled {
	opacity: 0.45 !important;
	pointer-events: none;
	filter: grayscale(0.3);
	transform: none !important;
	box-shadow: none !important;
}

/* Configurator */
.dsp-vd3 {
	width: 100%;
	max-width: 100%;
	margin: 0;
	display: grid;
	gap: 1.35rem;
	color: var(--dsp-text);
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	box-sizing: border-box;
}

.dsp-vd3 *,
.dsp-vd3 *::before,
.dsp-vd3 *::after {
	box-sizing: border-box;
}

.dsp-vd3__preview-card,
.dsp-vd3__panel {
	background: var(--dsp-panel);
	border: 1px solid var(--dsp-line);
	border-radius: var(--dsp-radius);
	box-shadow: var(--dsp-shadow);
}

.dsp-vd3__preview-card {
	padding: 1.25rem 1.25rem 1.5rem;
}

.dsp-vd3__preview-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dsp-muted);
	margin-bottom: 0.85rem;
}

.dsp-vd3__preview {
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	padding: 2rem;
	overflow: hidden;
}

.dsp-vd3__preview--checker {
	background-color: #d8d8dc;
	background-image:
		linear-gradient(45deg, #ececf0 25%, transparent 25%),
		linear-gradient(-45deg, #ececf0 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #ececf0 75%),
		linear-gradient(-45deg, transparent 75%, #ececf0 75%);
	background-size: 22px 22px;
	background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.dsp-vd3__preview:empty::after {
	content: 'A felirat itt jelenik meg';
	color: #666;
	font-size: 0.95rem;
}

/* Let checkerboard show through — preview SVG pad rect stays in markup but transparent */
.dsp-vd3__preview svg > rect:first-child {
	fill: transparent !important;
}

.dsp-vd3__preview svg {
	width: 100%;
	max-width: 100%;
	max-height: 380px;
	height: auto;
	display: block;
	margin: auto;
}

/* Preview-only helper when white / very light fill — never exported */
.dsp-vd3__preview--white-helper svg path {
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 1px rgba(80, 80, 90, 0.55));
}

.dsp-vd3__panel {
	padding: 1.5rem 1.35rem 1.75rem;
	display: grid;
	gap: 1.35rem;
	background: linear-gradient(180deg, var(--dsp-panel-2), var(--dsp-panel));
}

.dsp-vd3__field {
	display: grid;
	gap: 0.55rem;
}

.dsp-vd3__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dsp-muted);
}

.dsp-vd3__input,
.dsp-vd3__select {
	width: 100%;
	appearance: none;
	border: 1px solid var(--dsp-line);
	border-radius: 14px;
	background: var(--dsp-ink);
	color: var(--dsp-text);
	padding: 1rem 1.1rem;
	font-size: 1.05rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dsp-vd3__input::placeholder {
	color: #6f6f78;
}

.dsp-vd3__input:focus,
.dsp-vd3__select:focus {
	outline: none;
	border-color: rgba(225, 29, 46, 0.55);
	box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.18);
}

.dsp-vd3__select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239a9aa3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
}

#dsp-vd3-font option[value='ranchers'],
#dsp-vd3-font.dsp-vd3-font--ranchers { font-family: 'Ranchers', system-ui, sans-serif; font-size: 1.2rem; }
#dsp-vd3-font option[value='kaushan-script'],
#dsp-vd3-font.dsp-vd3-font--kaushan-script { font-family: 'Kaushan Script', cursive; font-size: 1.25rem; }
#dsp-vd3-font option[value='lobster'],
#dsp-vd3-font.dsp-vd3-font--lobster { font-family: 'Lobster', cursive; font-size: 1.3rem; }
#dsp-vd3-font option[value='new-rocker'],
#dsp-vd3-font.dsp-vd3-font--new-rocker { font-family: 'New Rocker', system-ui, sans-serif; font-size: 1.15rem; }
#dsp-vd3-font option[value='caveat-brush'],
#dsp-vd3-font.dsp-vd3-font--caveat-brush { font-family: 'Caveat Brush', cursive; font-size: 1.35rem; }
#dsp-vd3-font option[value='poetsen-one'],
#dsp-vd3-font.dsp-vd3-font--poetsen-one { font-family: 'Poetsen One', system-ui, sans-serif; font-size: 1.2rem; }

.dsp-vd3__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.dsp-vd3__swatch {
	width: 48px;
	height: 48px;
	min-width: 44px;
	min-height: 44px;
	border-radius: 50%;
	border: 2px solid transparent;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	padding: 0;
	position: relative;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	touch-action: manipulation;
}

.dsp-vd3__swatch:hover {
	transform: scale(1.08);
}

.dsp-vd3__swatch.is-selected {
	border-color: var(--dsp-red);
	transform: scale(1.12);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(225, 29, 46, 0.28);
}

.dsp-vd3__swatch.is-selected::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 12px;
	height: 7px;
	border-left: 2.5px solid #fff;
	border-bottom: 2.5px solid #fff;
	transform: rotate(-45deg) translate(1px, -1px);
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.dsp-vd3__swatch[data-light='1'].is-selected::after {
	border-color: #111;
	filter: none;
}

.dsp-vd3__stepper {
	display: grid;
	grid-template-columns: 52px 1fr 52px;
	gap: 0.65rem;
	align-items: center;
}

.dsp-vd3__step {
	width: 52px;
	height: 52px;
	min-width: 44px;
	min-height: 44px;
	border-radius: 14px;
	border: 1px solid var(--dsp-line);
	background: var(--dsp-ink);
	color: var(--dsp-text);
	font-size: 1.5rem;
	cursor: pointer;
	touch-action: manipulation;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.dsp-vd3__step:hover {
	border-color: rgba(225, 29, 46, 0.45);
}

.dsp-vd3__step:active {
	transform: scale(0.96);
}

.dsp-vd3__step-value {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.35rem;
	min-height: 52px;
	border-radius: 14px;
	background: var(--dsp-ink);
	border: 1px solid var(--dsp-line);
	font-size: 1.4rem;
	font-weight: 800;
}

.dsp-vd3__height-input {
	width: 5.5rem;
	border: 0;
	background: transparent;
	color: var(--dsp-text);
	font: inherit;
	font-weight: 800;
	font-size: 1.4rem;
	text-align: center;
	padding: 0;
	appearance: textfield;
	-moz-appearance: textfield;
}

.dsp-vd3__height-input::-webkit-outer-spin-button,
.dsp-vd3__height-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.dsp-vd3__height-input:focus {
	outline: none;
}

.dsp-vd3__unit {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--dsp-muted);
}

.dsp-vd3__slider {
	width: 100%;
	accent-color: var(--dsp-red);
	margin-top: 0.25rem;
	min-height: 28px;
}

.dsp-vd3__summary {
	display: grid;
	gap: 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid var(--dsp-line);
}

.dsp-vd3__length {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}

.dsp-vd3__summary-label {
	color: var(--dsp-muted);
	font-size: 0.95rem;
}

.dsp-vd3__summary-label--price {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dsp-vd3__summary-value {
	font-size: 1.05rem;
}

.dsp-vd3__warn {
	margin: 0;
	color: var(--dsp-red-hot);
	font-size: 0.9rem;
	font-weight: 600;
}

.dsp-vd3__price-block {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.35rem 0 0.15rem;
}

.dsp-vd3__price {
	font-size: clamp(2.25rem, 5.5vw, 3.1rem);
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--dsp-red-hot);
	text-shadow: 0 0 24px rgba(225, 29, 46, 0.25);
}

@media (min-width: 768px) {
	.dsp-vd3__preview {
		min-height: 380px;
		padding: 2.5rem;
	}

	.dsp-vd3__preview svg {
		max-height: 440px;
	}

	.dsp-vd3__panel,
	.dsp-vd3__preview-card {
		padding-left: 1.75rem;
		padding-right: 1.75rem;
	}

	.dsp-vd3-benefits {
		grid-template-columns: 1fr 1fr;
		max-width: 36rem;
		gap: 0.65rem 1.25rem;
	}
}

@media (max-width: 600px) {
	.single-product.dsp-vd3-active .dsp-vd3-stage,
	.single-product.dsp-vd3-active div.product .summary {
		padding-left: 0.75rem !important;
		padding-right: 0.75rem !important;
	}

	.dsp-vd3__preview {
		min-height: 240px;
		padding: 1.15rem;
	}

	.dsp-vd3__preview svg {
		max-height: 260px;
	}

	.dsp-vd3__swatch {
		width: 44px;
		height: 44px;
	}

	.dsp-vd3__swatches {
		gap: 0.7rem;
	}

	.dsp-vd3-benefits {
		max-width: none;
	}
}
