/* Captain Green — Upsell & cross-sell (karta produktu) */
.cg-xs-slot:empty { display: none; }

.cg-xs {
	--cg-green: #30785A;
	--cg-green-dark: #245c45;
	--cg-line: #d9e6de;
	--cg-bg: #f6faf7;
	--cg-text: #0a0500;
	--cg-muted: #5f6b64;
	width: 100%;
	margin: 0 0 18px;
	border: 1px solid var(--cg-line);
	border-radius: 8px;
	background: var(--cg-bg);
	font-family: inherit;
	color: var(--cg-text);
	overflow: hidden;
}

.cg-xs__head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px 10px;
}
.cg-xs__title {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .01em;
	display: flex;
	align-items: center;
	gap: 8px;
}
.cg-xs__title::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--cg-green);
	flex: none;
}
.cg-xs__sub { font-size: 12.5px; color: var(--cg-muted); }

.cg-xs__list { list-style: none; margin: 0; padding: 0 8px 8px; }
.cg-xs__item {
	display: grid;
	grid-template-columns: auto 52px minmax(0, 1fr) auto auto;
	grid-template-areas: "check thumb info qty price";
	align-items: center;
	gap: 12px;
	padding: 10px 8px;
	margin: 0;
	border-radius: 6px;
	background: #fff;
	border: 1px solid transparent;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.cg-xs__item + .cg-xs__item { margin-top: 6px; }
.cg-xs__item:hover { border-color: var(--cg-line); }
.cg-xs__item.is-on { border-color: var(--cg-green); box-shadow: 0 0 0 1px var(--cg-green) inset; }

.cg-xs__check { grid-area: check; position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.cg-xs__check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cg-xs__box {
	width: 22px; height: 22px;
	border: 2px solid #b9c9c0;
	border-radius: 6px;
	background: #fff;
	display: inline-block;
	transition: background .15s, border-color .15s;
	position: relative;
}
.cg-xs__box::after {
	content: "";
	position: absolute;
	left: 6px; top: 2px;
	width: 6px; height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .15s;
}
.cg-xs__check input:checked + .cg-xs__box { background: var(--cg-green); border-color: var(--cg-green); }
.cg-xs__check input:checked + .cg-xs__box::after { transform: rotate(45deg) scale(1); }
.cg-xs__check input:focus-visible + .cg-xs__box { outline: 2px solid var(--cg-green); outline-offset: 2px; }

.cg-xs__thumb { grid-area: thumb; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: #eef3ef; display: block; flex: none; }
.cg-xs__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cg-xs__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cg-xs__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cg-xs__meta { font-size: 12px; color: var(--cg-muted); }
.cg-xs__meta a { color: var(--cg-muted); text-decoration: underline; }
.cg-xs__meta a:hover { color: var(--cg-green); }

.cg-xs__qty {
	grid-area: qty;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--cg-line);
	border-radius: 6px;
	background: #fff;
	height: 34px;
	overflow: hidden;
}
.cg-xs__qty[hidden] { display: none; }
.cg-xs__qty button {
	width: 30px; height: 100%;
	border: 0; background: transparent;
	font-size: 16px; line-height: 1;
	color: var(--cg-green-dark);
	cursor: pointer;
	padding: 0;
	box-shadow: none;
	border-radius: 0;
	min-height: 0;
}
.cg-xs__qty button:hover { background: var(--cg-bg); }
.cg-xs__qty input {
	width: 36px; height: 100%;
	border: 0; padding: 0;
	text-align: center;
	font-size: 14px; font-weight: 600;
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	min-height: 0;
}
.cg-xs__qty input::-webkit-outer-spin-button,
.cg-xs__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cg-xs__price { grid-area: price; font-weight: 700; font-size: 15px; white-space: nowrap; text-align: right; min-width: 64px; }
.cg-xs__price del { color: var(--cg-muted); font-weight: 400; font-size: 12px; margin-right: 4px; }
.cg-xs__price ins { text-decoration: none; }

.cg-xs__total {
	padding: 8px 16px 12px;
	font-size: 13px;
	color: var(--cg-muted);
	border-top: 1px dashed var(--cg-line);
	margin: 0 8px;
}
.cg-xs__total[hidden] { display: none; }
.cg-xs__total b { color: var(--cg-text); }

@media (max-width: 560px) {
	.cg-xs__item {
		grid-template-columns: auto 44px minmax(0, 1fr) auto;
		grid-template-areas:
			"check thumb info price"
			"check thumb qty  qty";
		gap: 8px 10px;
	}
	.cg-xs__thumb { width: 44px; height: 44px; }
	.cg-xs__name { font-size: 13.5px; }
	.cg-xs__price { font-size: 14px; min-width: 0; }
	.cg-xs__qty { justify-self: start; height: 32px; }
}

/* ---------- Balení ---------- */
.cg-pack { margin: 0 0 18px; }
.cg-pack__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.cg-pack__title { font-weight: 700; font-size: 15px; color: #0a0500; }
.cg-pack__sel { font-size: 13px; color: #5f6b64; }
.cg-pack__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cg-pack__opt {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	padding: 10px 12px; min-height: 0;
	border: 1.5px solid #d9e6de; border-radius: 8px; background: #fff;
	color: #0a0500; text-align: left; cursor: pointer; font-family: inherit;
	box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.cg-pack__opt:hover { border-color: #30785A; background: #f6faf7; }
.cg-pack__opt.is-on { border-color: #30785A; box-shadow: 0 0 0 1.5px #30785A inset; background: #f6faf7; }
.cg-pack__opt:focus-visible { outline: 2px solid #30785A; outline-offset: 2px; }
.cg-pack__label { font-weight: 700; font-size: 15px; line-height: 1.2; }
.cg-pack__sub { font-size: 11.5px; color: #5f6b64; }
.cg-pack__price { font-weight: 700; font-size: 14px; margin-top: 4px; }
.cg-pack__perg { font-size: 11.5px; color: #5f6b64; }
.cg-pack__note { margin: 8px 0 0; font-size: 12px; color: #5f6b64; }
@media (max-width: 560px) {
	.cg-pack__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cg-pack__opt { padding: 9px 10px; }
}

/* ---------- Sada ---------- */
.cg-sada { margin: 14px 0 18px; border: 1px solid #d9e6de; border-radius: 8px; background: #f6faf7; padding: 12px 14px; }
.cg-sada__title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.cg-sada__list { list-style: none; margin: 0; padding: 0; }
.cg-sada__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: #fff; border-radius: 6px; }
.cg-sada__item + .cg-sada__item { margin-top: 6px; }
.cg-sada__thumb { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; flex: none; background: #eef3ef; }
.cg-sada__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-sada__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cg-sada__name { font-weight: 600; font-size: 14px; color: #0a0500; text-decoration: none; }
.cg-sada__meta { font-size: 12px; color: #5f6b64; }
.cg-sada__price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.cg-sada__note { margin: 10px 0 0; font-size: 12px; color: #5f6b64; }

/* ---------- Přilepená galerie (desktop) ---------- */
@media (min-width: 1000px) {
	.single-product #main-container { overflow: visible !important; }
	/* Blocksy dává body overflow-y:auto a html má overflow-x:clip → body se stane rolovacím kontejnerem a sticky přestane fungovat */
	body.single-product { overflow-x: clip !important; overflow-y: visible !important; }
	.single-product .product-entry-wrapper { align-items: flex-start; }
	.single-product .woocommerce-product-gallery { position: sticky !important; top: var(--cg-sticky-top, 160px) !important; }
}

/* ---------- Hlídací pes ---------- */
.cg-watch { margin: 16px 0 18px; padding: 14px 16px; border: 1.5px solid #30785A; border-radius: 8px; background: #f6faf7; }
.cg-watch__title { font-weight: 700; font-size: 15px; }
.cg-watch__sub { margin: 4px 0 10px; font-size: 12.5px; color: #5f6b64; }
.cg-watch__form { display: flex; gap: 8px; position: relative; }
.cg-watch__form input[type=email] { flex: 1; min-width: 0; height: 46px; border: 1px solid #d9e6de; border-radius: 6px; padding: 0 12px; font-size: 14px; background: #fff; }
.cg-watch__form .button { height: 46px; min-height: 0; padding: 0 16px; background: #30785A; color: #fff; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.cg-watch__msg { margin-top: 8px; font-size: 13px; }
.cg-watch__msg.is-ok { color: #1d5c3f; font-weight: 600; }
.cg-watch__msg.is-err { color: #b3261e; }
@media (max-width: 560px) { .cg-watch__form { flex-direction: column; } .cg-watch__form .button { width: 100%; } }

/* ---------- Karta produktu: sjednocené informace ---------- */
.cg-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px; }
.cg-fact { background: #f6faf7; border: 1px solid #d9e6de; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cg-fact__v { font-weight: 700; font-size: 17px; color: #0a0500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-fact__l { font-size: 11.5px; color: #5f6b64; }
.cg-fact__l a { color: #245c45; text-decoration: underline; }
.cg-ppt-warn--after { margin-top: 14px; }
.single-product .summary .cg-badge-mitragynin, .single-product .summary .cg-badge-legal, .single-product .summary .cg-ppt-eyebrow, .single-product .summary .checkout-age-warning, .single-product .summary .cg-ppt-specs, .single-product .summary .cg-ppt-origin, .single-product .summary .cg-sarze { display: none; }
@media (max-width: 560px) { .cg-facts { grid-template-columns: 1fr 1fr; } .cg-fact:first-child { grid-column: 1 / -1; } }
