.jj-gallery,
.jj-buy {
	--jjp-ink: var(--jj-ink, #2B1631);
	--jjp-text: var(--jj-text, #6E6272);
	--jjp-pink: var(--jj-pink, #EC4B86);
	--jjp-pink-dark: var(--jj-pink-dark, #D23671);
	--jjp-blush: var(--jj-blush, #FDEDF2);
	--jjp-line: var(--jj-line, #EFE2E6);
	--jjp-white: var(--jj-white, #FFFFFF);
	--jjp-lime: var(--jj-lime, #B5E05A);
	font-family: var(--jj-font-body, "Inter"), sans-serif;
	color: var(--jjp-ink);
}

.elementor-widget-jolly_jar_productgalerij_206,
.elementor-widget-jolly_jar_koopblok_206 {
	width: 100%;
	margin-block-end: 0 !important;
}

/* ---------- Galerij ---------- */
.jj-gallery .jj-gallery__main {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 28px;
	overflow: hidden;
	background: var(--jjp-blush);
}

.jj-gallery .jj-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: opacity .2s;
}

.jj-gallery .jj-gallery__img.is-loading { opacity: .35; }

.jj-gallery .jj-gallery__badge {
	position: absolute;
	top: 22px;
	left: 22px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--jjp-white);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--jjp-ink);
}

.jj-gallery .jj-gallery__badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--jjp-pink);
}

.jj-gallery a.jj-gallery__zoom {
	position: absolute;
	right: 20px;
	bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--jjp-white);
	color: var(--jjp-ink);
	box-shadow: 0 6px 18px rgba(43, 22, 49, .12);
	transition: transform .2s, color .2s;
}

.jj-gallery a.jj-gallery__zoom:hover { transform: scale(1.06); color: var(--jjp-pink); }
.jj-gallery .jj-gallery__zoom svg { width: 22px; height: 22px; }

.jj-gallery .jj-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.jj-gallery button.jj-thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--jjp-text);
	cursor: pointer;
	font: inherit;
	box-shadow: none;
}

.jj-gallery button.jj-thumb:hover,
.jj-gallery button.jj-thumb:focus { background: none; color: var(--jjp-ink); }

.jj-gallery .jj-thumb__frame {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	overflow: hidden;
	border: 2px solid transparent;
	background: var(--jjp-blush);
	transition: border-color .2s;
}

.jj-gallery .jj-thumb__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	display: block;
}

.jj-gallery .jj-thumb__label { font-size: 13px; line-height: 1.3; }
.jj-gallery .jj-thumb.is-active .jj-thumb__frame { border-color: var(--jjp-pink); }
.jj-gallery .jj-thumb.is-active .jj-thumb__label { color: var(--jjp-pink); font-weight: 700; }
.jj-gallery button.jj-thumb:focus-visible { outline: 2px solid var(--jjp-pink); outline-offset: 3px; border-radius: 14px; }

.jj-gallery .jj-gallery__caption {
	margin: 18px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--jjp-text);
}

/* ---------- Koopblok ---------- */
.jj-buy .jj-buy__notices .woocommerce-message,
.jj-buy__notices .woocommerce-message,
.jj-buy__notices .woocommerce-error,
.jj-buy__notices .woocommerce-info {
	margin: 0 0 18px;
	padding: 14px 18px;
	border: 1px solid var(--jj-line, #EFE2E6);
	border-radius: 16px;
	background: var(--jj-white, #fff);
	font-family: var(--jj-font-body, "Inter"), sans-serif;
	font-size: 14px;
	color: var(--jj-ink, #2B1631);
	list-style: none;
}

.jj-buy__notices .woocommerce-message::before,
.jj-buy__notices .woocommerce-error::before,
.jj-buy__notices .woocommerce-info::before { display: none; }

.jj-buy__notices a.button {
	float: right;
	margin-left: 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--jj-ink, #2B1631);
	color: var(--jj-white, #fff);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.jj-buy .jj-buy__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 26px;
}

.jj-buy .jj-buy__price {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--jjp-ink);
}

.jj-buy .jj-buy__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #7FAE2A;
}

.jj-buy .jj-buy__stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--jjp-lime);
}

.jj-buy .jj-buy__stock.is-out { color: var(--jjp-text); }
.jj-buy .jj-buy__stock.is-out::before { background: var(--jjp-line); }

.jj-buy .jj-buy__sizes {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.jj-buy .jj-buy__step {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 14px;
}

.jj-buy .jj-buy__legend {
	float: left;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--jjp-ink);
}

.jj-buy a.jj-buy__guide {
	font-size: 12px;
	font-weight: 500;
	color: var(--jjp-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jj-buy a.jj-buy__guide:hover { color: var(--jjp-pink); }

.jj-buy .jj-buy__tiles {
	clear: both;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.jj-buy .jj-buy__radio {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.jj-buy label.jj-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 156px;
	padding: 20px 10px;
	border: 1px solid var(--jjp-line);
	border-radius: 20px;
	background: var(--jjp-white);
	color: var(--jjp-ink);
	cursor: pointer;
	text-align: center;
	transition: border-color .2s, background-color .2s;
}

.jj-buy label.jj-tile:hover { border-color: var(--jjp-pink); }

.jj-buy .jj-tile__icon { width: 34px; height: 38px; margin-bottom: 4px; color: var(--jjp-ink); }
.jj-buy .jj-tile__name { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; }
.jj-buy .jj-tile__check { display: none; width: 14px; height: 14px; }
.jj-buy .jj-tile__meta { font-size: 12px; color: var(--jjp-text); }
.jj-buy .jj-tile__price { font-size: 15px; font-weight: 700; margin-top: 4px; }

.jj-buy .jj-buy__radio:checked + label.jj-tile {
	border: 2px solid var(--jjp-pink);
	background: var(--jjp-blush);
	padding: 19px 9px;
}

.jj-buy .jj-buy__radio:checked + label.jj-tile .jj-tile__icon { color: var(--jjp-pink); }
.jj-buy .jj-buy__radio:checked + label.jj-tile .jj-tile__check { display: inline-block; }
.jj-buy .jj-buy__radio:focus-visible + label.jj-tile { outline: 2px solid var(--jjp-ink); outline-offset: 3px; }
.jj-buy .jj-buy__radio:disabled + label.jj-tile { opacity: .45; cursor: not-allowed; }

.jj-buy .jj-buy__actions {
	display: flex;
	gap: 14px;
	align-items: stretch;
}

.jj-buy .jj-qty {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	height: 58px;
	padding: 0 6px;
	border: 1px solid var(--jjp-line);
	border-radius: 999px;
	background: var(--jjp-white);
}

.jj-buy button.jj-qty__btn {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--jjp-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.jj-buy button.jj-qty__btn:hover,
.jj-buy button.jj-qty__btn:focus { background: var(--jjp-blush); color: var(--jjp-ink); }

.jj-buy input.jj-qty__input[type="number"] {
	width: 40px !important;
	min-height: 0 !important;
	height: 40px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var(--jjp-ink) !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

.jj-buy input.jj-qty__input::-webkit-outer-spin-button,
.jj-buy input.jj-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.jj-buy button.jj-buy__submit {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 58px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--jjp-pink);
	color: var(--jjp-white);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}

.jj-buy button.jj-buy__submit:hover,
.jj-buy button.jj-buy__submit:focus { background: var(--jjp-pink-dark); color: var(--jjp-white); }
.jj-buy button.jj-buy__submit:focus-visible { outline: 2px solid var(--jjp-ink); outline-offset: 3px; }
.jj-buy button.jj-buy__submit:disabled { background: var(--jjp-line); color: var(--jjp-text); cursor: not-allowed; }
.jj-buy .jj-buy__submit svg { width: 22px; height: 22px; }

@media (max-width: 767px) {
	.jj-gallery .jj-gallery__main { border-radius: 22px; }
	.jj-gallery .jj-gallery__thumbs { gap: 8px; }
	.jj-gallery .jj-thumb__label { font-size: 11px; }
	.jj-buy .jj-buy__price { font-size: 26px; }
	.jj-buy .jj-buy__tiles { gap: 8px; }
	.jj-buy label.jj-tile { min-height: 130px; padding: 16px 6px; }
	.jj-buy .jj-buy__radio:checked + label.jj-tile { padding: 15px 5px; }
	.jj-buy button.jj-buy__submit { font-size: 15px; padding: 0 18px; }
}
