/* ═══════════════════════════════════════════════════════════════
   MAIN GRID — 4-col (3 content left + 1 sticky buy right)
   Lec wzdłuż całej długości hero + tabs
   ═══════════════════════════════════════════════════════════════ */
.gk-pdp-v5__main-grid {
	padding: 30px 0 80px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
}
@media (min-width: 1024px) {
	.gk-pdp-v5__main-grid {
		grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
		gap: 20px;
	}
}

.gk-pdp-v5__main-left {
	min-width: 0;
}
/* Tabs margin-top — Polish 24 (user mandate 2026-05-28): tabs-wrap margin-top 0 (spacing handled by .gk-pdp-v5__product margin-bottom). */
@media (min-width: 1024px) {
	.gk-pdp-v5__tabs-wrap {
		margin-top: 0;
	}
}
@media (max-width: 1023px) {
	.gk-pdp-v5__tabs-wrap {
		margin-top: 40px;
	}
}

.gk-pdp-v5__main-right {
	min-width: 0;
}
@media (min-width: 1024px) {
	.gk-pdp-v5__main-right {
		position: sticky;
		/* taka sama wysokość jak tabs (announce 36 + header 82 + 8 gap = 126px) */
		top: 126px;
		align-self: start;
		transition: box-shadow .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1);
	}
	/* Will-change na sticky elements — GPU compositing dla smooth scroll */
	.gk-pdp-v5__main-right,
	.gk-pdp-v5__tabs {
		will-change: transform;
	}
}
/* Smooth scroll behavior globalnie na PDP body */
html:has(.gk-pdp-v5) {
	scroll-behavior: smooth;
}

/* PRODUCT HERO — w main-left, 2-col (gallery + info) */
.gk-pdp-v5__product { padding: 0; margin-bottom: 64px; }
@media (min-width: 1024px) {
	.gk-pdp-v5__product { margin-bottom: 14px; }
}
.gk-pdp-v5__product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
}
@media (min-width: 768px) {
	.gk-pdp-v5__product-grid {
		grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 1fr);
		gap: 32px;
	}
}

/* GALLERY — thumbs LEFT (vertical column) + main image RIGHT (per user mandate 2026-05-28 polish 20) */
.gk-pdp-v5__gallery {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 16px;
	align-items: start;
}
.gk-pdp-v5__gallery .gk-pdp-v5__stage { order: 2; }
.gk-pdp-v5__gallery .gk-pdp-v5__thumbs { order: 1; }
.gk-pdp-v5__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 560px;
	overflow-y: auto;
	overflow-x: visible;
	scrollbar-width: thin;
}
/* Mobile (<600px) — stack: thumbs row pod main image */
@media (max-width: 600px) {
	.gk-pdp-v5__gallery {
		display: flex;
		flex-direction: column;
		gap: 14px;
		/* FIX 2026-05-31: stretch — bez tego dziedziczone align-items:start (z desktop gridu)
		   zapadało stage do 2px → główne zdjęcie niewidoczne na mobile. */
		align-items: stretch;
	}
	.gk-pdp-v5__gallery .gk-pdp-v5__stage { order: 1; }
	.gk-pdp-v5__gallery .gk-pdp-v5__thumbs {
		order: 2;
		flex-direction: row;
		flex-wrap: wrap;
		max-height: none;
		overflow-x: auto;
		overflow-y: visible;
		gap: 8px;
		justify-content: center;
	}
}
.gk-pdp-v5__thumb {
	flex-shrink: 0;
	width: 72px; height: 72px;
	padding: 6px;
	background: #fff;
	border: 1.5px solid var(--gk-v5-border);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .2s ease, opacity .2s ease;
	opacity: 0.6;
}
.gk-pdp-v5__thumb:hover { opacity: 1; border-color: var(--gk-v5-primary-light); }
.gk-pdp-v5__thumb.is-active {
	opacity: 1;
	border-color: var(--gk-v5-primary);
	border-width: 2px;
}
.gk-pdp-v5__thumb img {
	width: 100%; height: 100%;
	object-fit: contain;
}

.gk-pdp-v5__stage {
	position: relative;
}
.gk-pdp-v5__stage-inner {
	position: relative;
	aspect-ratio: 1 / 1;
	background:
		radial-gradient(circle, rgba(93,169,53,0.12) 0%, rgba(255,255,255,0) 70%),
		#fff;
	border: 1px solid var(--gk-v5-border);
	border-radius: 16px;
	overflow: hidden;
}
.gk-pdp-v5__main-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: contain;
	/* FIX 2026-06-01: była ramka 56px (zdjęcie małe w dużym białym polu) → mały padding,
	   zdjęcie wypełnia obszar. */
	padding: clamp(8px, 1.5vw, 18px);
	opacity: 0;
	transition: opacity .35s ease, transform .6s cubic-bezier(.16,1,.3,1);
}
.gk-pdp-v5__main-img.is-active { opacity: 1; }
.gk-pdp-v5__stage-inner:hover .gk-pdp-v5__main-img.is-active { transform: scale(1.04); }

.gk-pdp-v5__sale-badge,
.gk-pdp-v5__bestseller-badge {
	position: absolute;
	top: 16px;
	z-index: 2;
	display: inline-flex; align-items: center;
	padding: 8px 16px;
	font-family: 'Geist', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 9999px; /* pill — spójność z motywem przycisków */
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.gk-pdp-v5__sale-badge {
	left: 16px;
	background: var(--gk-v5-error);
	color: #fff;
}
.gk-pdp-v5__bestseller-badge {
	/* przeniesione na lewo żeby uniknąć kolizji z heart wishlist (top-right corner) */
	left: 16px;
	top: 52px; /* pod sale-badge gdy oba widoczne */
	background: var(--gk-v5-primary-light);
	color: #fff;
}
.gk-pdp-v5__sale-badge + .gk-pdp-v5__bestseller-badge { top: 52px; }

@media (max-width: 600px) {
	.gk-pdp-v5__gallery { gap: 12px; }
}

/* Heart wishlist na main image — top-right corner (per user mandate 2026-05-28) */
.gk-pdp-v5__stage-heart-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: #fff;
	border: 1px solid var(--gk-v5-border);
	border-radius: 999px;
	cursor: pointer;
	color: var(--gk-v5-text);
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.gk-pdp-v5__stage-heart-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
	color: var(--gk-v5-primary);
	border-color: var(--gk-v5-primary);
}
.gk-pdp-v5__stage-heart-btn svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}
.gk-pdp-v5__stage-heart-btn.is-active,
.gk-pdp-v5__stage-heart-btn.is-on-wishlist {
	background: var(--gk-v5-primary-light) !important;
	border-color: var(--gk-v5-primary-light) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(93,169,53,0.30);
}
.gk-pdp-v5__stage-heart-btn.is-active svg,
.gk-pdp-v5__stage-heart-btn.is-on-wishlist svg {
	fill: #fff !important;
	stroke: #fff !important;
}
.gk-pdp-v5__stage-heart-btn.is-popping {
	animation: gk-pdp-heart-pop .35s cubic-bezier(.16,1,.3,1);
}

