/* Život hvězdy – Single product (from reference plugin, unchanged) */

.zh-product-cart {
	--zh-navy: #2d2d5f;
	--zh-navy-dark: #1e1e42;
	--zh-pink: #e84393;
	--zh-text: #1a1a2e;
	--zh-muted: #6b6b8a;
	--zh-border: #e8e6f0;
	--zh-radius: 12px;

	margin: 24px 0 0;
	font-family: inherit;
	color: var(--zh-text);
	position: relative;
	z-index: 20;
	isolation: isolate;
	touch-action: manipulation;
}

.zh-product-cart__form { margin: 0; }

.zh-product-cart__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.zh-product-cart__quantity { flex: 0 0 auto; }

.zh-product-cart__qty-label {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--zh-muted);
}

.zh-product-cart__stepper {
	display: flex;
	align-items: center;
	height: 52px;
	background: #fff;
	border: 1.5px solid var(--zh-border);
	border-radius: var(--zh-radius);
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.zh-product-cart__stepper:focus-within {
	border-color: var(--zh-navy);
	box-shadow: 0 0 0 3px rgba(45, 45, 95, 0.1);
}

.zh-product-cart__stepper-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 100%;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--zh-navy);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	flex-shrink: 0;
}

.zh-product-cart__stepper-btn:hover {
	background: #f4f3f8;
	color: var(--zh-pink);
}

.zh-product-cart__stepper-btn:active { background: #ebe9f2; }

.zh-product-cart__qty-input {
	width: 52px !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-left: 1.5px solid var(--zh-border) !important;
	border-right: 1.5px solid var(--zh-border) !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-align: center !important;
	color: var(--zh-text) !important;
	-moz-appearance: textfield;
	appearance: textfield;
	box-shadow: none !important;
}

.zh-product-cart__qty-input::-webkit-outer-spin-button,
.zh-product-cart__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.zh-product-cart__qty-input:focus {
	outline: none !important;
	box-shadow: none !important;
}

.zh-product-cart__button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 1 1 200px;
	min-height: 52px;
	margin: 0 !important;
	padding: 14px 28px !important;
	background: var(--zh-navy) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--zh-radius) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	text-transform: none !important;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
	box-shadow: 0 4px 14px rgba(45, 45, 95, 0.2);
	position: relative !important;
	z-index: 40 !important;
	pointer-events: auto !important;
	touch-action: manipulation !important;
}

.zh-product-cart__button > * { pointer-events: none !important; }

.zh-product-cart__button:hover,
.zh-product-cart__button:focus {
	background: var(--zh-pink) !important;
	color: #fff !important;
	box-shadow: 0 6px 20px rgba(232, 67, 147, 0.3) !important;
}

.zh-product-cart__button:active { transform: translateY(1px); }

.zh-product-cart__button-icon { flex-shrink: 0; }

@media (max-width: 768px) {
	.zh-product-cart__row { flex-direction: column; align-items: stretch; }
	.zh-product-cart__stepper { width: fit-content; }
	.zh-product-cart__button { width: 100%; flex: 1 1 auto; }
}

.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.shopengine-product-image .woocommerce-product-gallery,
.shopengine-product-image .woocommerce-product-gallery__wrapper {
	background: transparent;
	border-radius: 0;
}

.single-product .woocommerce-product-gallery__image,
.shopengine-product-image .woocommerce-product-gallery__image {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	overflow: visible;
}

.single-product .woocommerce-product-gallery__image a,
.shopengine-product-image .woocommerce-product-gallery__image a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	line-height: 0;
	background: transparent;
}

.single-product img.wp-post-image,
.single-product .woocommerce-product-gallery__image img,
.shopengine-product-image img.wp-post-image,
.shopengine-product-image .woocommerce-product-gallery__image img {
	display: block !important;
	width: auto !important;
	max-width: min(100%, 360px) !important;
	height: auto !important;
	max-height: min(100%, 360px) !important;
	margin: 0 auto !important;
	object-fit: contain !important;
	opacity: 1 !important;
	visibility: visible !important;
	cursor: zoom-in;
}

.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.shopengine-product-image .woocommerce-product-gallery,
.shopengine-product-image .woocommerce-product-gallery__wrapper {
	opacity: 1 !important;
	visibility: visible !important;
}

.shopengine-product-image {
	position: relative;
}

.shopengine-product-image-toggle {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #101010;
	border: 1px solid #fff;
	background-color: #fff;
	font-size: 18px;
	height: 40px;
	width: 80px;
	border-radius: 100px;
	box-shadow: none;
	cursor: pointer;
}

.shopengine-product-image-toggle svg { width: 18px; height: 18px; }

.zh-product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(20, 18, 40, 0.82);
	cursor: zoom-out;
}

.zh-product-lightbox[hidden] { display: none !important; }

.zh-product-lightbox__img {
	display: block;
	max-width: min(92vw, 1100px);
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
	cursor: default;
}

.zh-product-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: #2d2d5f;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

body.zh-product-lightbox-open { overflow: hidden; }

.single-product p.price del,
.single-product .shopengine-product-price .price del,
.single-product p.price ins,
.single-product .shopengine-product-price .price ins {
	background: transparent !important;
	text-decoration: none !important;
	padding: 0 !important;
}

.single-product p.price del .woocommerce-Price-amount,
.single-product .shopengine-product-price .price del .woocommerce-Price-amount {
	color: #6b6b8a !important;
	text-decoration: line-through !important;
	font-weight: 500 !important;
}

.single-product p.price ins .woocommerce-Price-amount,
.single-product .shopengine-product-price .price ins .woocommerce-Price-amount {
	color: #e84393 !important;
	font-weight: 700 !important;
}

/* Sale badge — růžové kolečko s procenty (ShopEngine / live UI) */
.single-product span.onsale,
.single-product .onsale,
.single-product span.onsale.position-top-left,
.single-product .shopengine-product-image span.onsale,
.single-product .shopengine-product-image .onsale,
body.single-product span.onsale,
body.woocommerce span.onsale.position-top-left {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	font-family: Figtree, "DM Sans", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	letter-spacing: 0;
	white-space: normal;
	background: #e84393 !important;
	background-color: #e84393 !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
}

.single-product span.onsale:hover,
.single-product .shopengine-product-image span.onsale:hover {
	background: #e84393 !important;
	background-color: #e84393 !important;
	color: #fff !important;
	filter: none !important;
	opacity: 1 !important;
}

@media (max-width: 768px) {
	.single-product img.wp-post-image,
	.single-product .woocommerce-product-gallery__image img,
	.shopengine-product-image img.wp-post-image {
		max-width: min(100%, 280px) !important;
		max-height: min(100%, 280px) !important;
	}
}
