/* ==========================================================================
   HESP Product Page — /produkt?id=N
   ========================================================================== */

body.hesp-product .content-area,
body.hesp-product .site-main,
body.single-product .content-area,
body.single-product .site-main {
	padding: 0;
	margin: 0;
	max-width: none;
}

body.hesp-product .entry-content-wrap,
body.hesp-product .entry-hero,
body.hesp-product .entry-header,
body.hesp-product .page-title,
body.single-product .entry-content-wrap,
body.single-product .entry-hero,
body.single-product .entry-header,
body.single-product .product-hero-section,
body.single-product .woocommerce-notices-wrapper {
	display: none !important;
}

.hesp-product-page {
	display: block;
	background: #ffffff;
}

.hesp-product-page .hesp-container {
	max-width: var(--hesp-content-max, 1200px);
	margin: 0 auto;
	padding-left: var(--hesp-content-gutter, 24px);
	padding-right: var(--hesp-content-gutter, 24px);
	box-sizing: border-box;
}

/* --- Breadcrumb (inline in buy column) --- */
.hesp-product-breadcrumb--inline {
	padding: 0;
	background: transparent;
	margin: 0 0 16px;
}

.hesp-product-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--hesp-font);
	font-size: 13px;
	color: #5b6472;
}

.hesp-product-breadcrumb__item a {
	color: #5b6472;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hesp-product-breadcrumb__item a:hover {
	color: #1264AA;
}

.hesp-product-breadcrumb__item--current {
	color: #10202f;
	font-weight: 600;
}

/* --- Main section --- */
.hesp-product-main {
	padding: 40px 0 64px;
	background: #ffffff;
}

.hesp-product-main__grid {
	display: grid;
	grid-template-columns: 560px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

/* Gallery */
.hesp-product-gallery {
	width: 100%;
	max-width: 560px;
}

.hesp-product-gallery__main.image-slot,
.hesp-product-gallery__thumb.image-slot {
	overflow: hidden;
	background: #f7fafd;
}

.hesp-product-gallery__main.image-slot {
	display: block;
	width: 100%;
	max-width: 560px;
	aspect-ratio: 560 / 420;
	border: 0;
	border-radius: 16px;
	padding: 0;
	cursor: zoom-in;
}

.hesp-product-gallery__main.image-slot:disabled {
	cursor: default;
}

.hesp-product-gallery__main-img,
.hesp-product-gallery__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 16px;
	box-sizing: border-box;
}

.hesp-product-gallery__placeholder {
	min-height: 100%;
	background: linear-gradient(135deg, #eef3f8 0%, #dfe8f1 100%);
}

.hesp-product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 80px);
	gap: 12px;
	margin-top: 12px;
	justify-content: start;
}

.hesp-product-gallery__thumb.image-slot {
	width: 80px;
	height: 80px;
	border-radius: 10px;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.hesp-product-gallery__thumb.is-active {
	border-color: #1264AA;
}

.hesp-product-gallery__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 6px;
	box-sizing: border-box;
	background: #f7fafd;
}

/* Lightbox */
.hesp-product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(16, 32, 47, 0.82);
}

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

.hesp-product-lightbox__img {
	max-width: min(960px, 100%);
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	background: #ffffff;
}

.hesp-product-lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	color: #10202f;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

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

/* Info column */
.hesp-product-info__tag {
	font-family: var(--hesp-font);
	font-size: 13px;
	font-weight: var(--hesp-font-semibold);
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hesp-gold, #d6a431);
	margin: 0 0 10px;
}

.hesp-product-info__title {
	font-family: var(--hesp-font);
	font-weight: var(--hesp-font-bold);
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: 0;
	color: #10202f;
	margin: 0 0 12px;
}

.hesp-product-info__sku {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	font-family: var(--hesp-font);
	font-size: 14px;
	color: #5b6472;
}

.hesp-product-info__sku-label {
	font-weight: 600;
}

.hesp-product-info__sku-label::after {
	content: ':';
}

.hesp-product-info__sku-value {
	color: #10202f;
	font-weight: 700;
}

.hesp-product-info__short {
	font-family: var(--hesp-font);
	font-size: var(--hesp-text-body);
	font-weight: var(--hesp-font-regular);
	line-height: var(--hesp-leading-body);
	color: #5b6472;
	margin: 0 0 22px;
}

/* Delivery block fills buy column (plugin markup: .hesp-delivery-block) */
.hesp-product-info {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.hesp-product-info > .hesp-delivery-block {
	width: 100%;
	max-width: 100%;
}

.hesp-product-info__price-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 16px;
}

.hesp-product-info__price-line {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.hesp-product-info__price--net {
	font-family: var(--hesp-font);
	font-weight: var(--hesp-font-bold);
	font-size: 28px;
	line-height: 1;
	color: #b9861f;
}

.hesp-product-info__price--gross {
	font-family: var(--hesp-font);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	color: #5b6472;
}

.hesp-product-info__tax {
	font-family: var(--hesp-font);
	font-size: 14px;
	color: #5b6472;
}

.hesp-product-info__price-line--gross .hesp-product-info__tax {
	font-size: 13px;
}

.hesp-product-availability {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 700;
}

.hesp-product-availability__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
}

.hesp-product-availability--in_stock {
	color: #1f7a3f;
}

.hesp-product-availability--on_order {
	color: #b8860b;
}

.hesp-product-availability--unavailable {
	color: #7a8592;
}

.hesp-product-info__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.hesp-product-qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px;
	border: 1.5px solid #d7dee5;
	border-radius: 999px;
	background: #ffffff;
	flex-shrink: 0;
}

.hesp-product-qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	border: none;
	border-radius: 50%;
	background: #E3EEF7;
	color: #28313c;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hesp-product-qty__btn:hover {
	background: #e8eef4;
	color: #1264AA;
}

.hesp-product-qty__value {
	min-width: 28px;
	text-align: center;
	font-family: var(--hesp-font);
	font-weight: 700;
	font-size: 15px;
	color: #10202f;
}

.hesp-product-add-btn {
	flex: 1;
}

.hesp-product-add-btn.loading {
	pointer-events: none;
}

.hesp-product-add-btn--disabled,
.hesp-product-add-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.hesp-product-notify {
	margin: 0 0 22px;
	padding: 16px 18px;
	border: 1px solid #e7ecf1;
	border-radius: 14px;
	background: #f7fafd;
}

.hesp-product-notify__label {
	display: block;
	margin: 0 0 10px;
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 700;
	color: #10202f;
}

.hesp-product-notify__row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.hesp-product-notify__input {
	flex: 1 1 180px;
	min-height: 44px;
	padding: 0 14px;
	border: 1.5px solid #d7dee5;
	border-radius: 10px;
	font-family: var(--hesp-font);
	font-size: 14px;
}

.hesp-product-notify__submit {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: #1264AA;
	color: #ffffff;
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.hesp-product-notify__message {
	margin: 10px 0 0;
	font-size: 13px;
	color: #5b6472;
}

.hesp-product-notify__message.is-success {
	color: #1f7a3f;
}

.hesp-product-adr {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff6e8;
	border: 1px solid #f0d7a4;
}

.hesp-product-adr__badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #b9861f;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.hesp-product-adr__text {
	margin: 0;
	font-family: var(--hesp-font);
	font-size: 14px;
	line-height: 1.5;
	color: #5b3d08;
}

.hesp-product-delivery {
	margin: 0 0 22px;
}

.hesp-product-delivery__title {
	margin: 0 0 10px;
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 700;
	color: #10202f;
}

.hesp-product-delivery__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hesp-product-delivery__item {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #E3EEF7;
	font-family: var(--hesp-font);
	font-size: 14px;
}

.hesp-product-delivery__name {
	font-weight: 600;
	color: #10202f;
}

.hesp-product-delivery__time {
	color: #5b6472;
	text-align: right;
}

.hesp-product-warranty {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #E3EEF7;
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 0;
}

.hesp-product-warranty__icon {
	color: var(--hesp-blue, #1264aa);
	flex-shrink: 0;
	margin-top: 2px;
}

.hesp-product-warranty__title {
	font-family: var(--hesp-font);
	font-weight: 700;
	font-size: 14.5px;
	color: #10202f;
	margin: 0 0 6px;
}

.hesp-product-warranty__text {
	font-family: var(--hesp-font);
	font-size: 14px;
	line-height: 1.55;
	color: #5b6472;
	margin: 0;
}

/* --- Below-the-fold sections --- */
.hesp-product-details {
	background: #E3EEF7;
	padding: 72px 0;
}

.hesp-product-details__stack {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 900px;
}

.hesp-product-details__block {
	background: #ffffff;
	border-radius: 16px;
	padding: 28px 28px;
}

.hesp-product-details__title {
	font-family: var(--hesp-font);
	font-weight: var(--hesp-font-bold);
	font-size: 22px;
	color: #10202f;
	margin: 0 0 18px;
}

.hesp-product-details__content {
	font-family: var(--hesp-font);
	font-size: 15.5px;
	line-height: 1.75;
	color: #28313c;
}

.hesp-product-details__content p {
	margin: 0 0 16px;
}

.hesp-product-details__content p:last-child {
	margin-bottom: 0;
}

.hesp-product-details__specs {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	max-width: 100%;
}

.hesp-product-specs {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	font-family: var(--hesp-font);
	font-size: 14.5px;
	table-layout: fixed;
}

.hesp-product-specs th,
.hesp-product-specs td {
	padding: 12px 0;
	border-top: 1px solid #eef2f6;
	vertical-align: top;
	text-align: left;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.hesp-product-specs tr:first-child th,
.hesp-product-specs tr:first-child td {
	border-top: none;
	padding-top: 0;
}

.hesp-product-specs th {
	width: 42%;
	font-weight: 600;
	color: #5b6472;
	padding-right: 16px;
}

.hesp-product-specs td {
	font-weight: 700;
	color: #10202f;
}

.hesp-product-downloads__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hesp-product-downloads__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	background: #E3EEF7;
	border: 1px solid #e7ecf1;
	color: #1264AA;
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.hesp-product-downloads__link:hover {
	border-color: #1264AA;
	background: #eef6fc;
}

.hesp-product-sds__intro {
	margin: 0 0 14px;
	font-family: var(--hesp-font);
	font-size: 14.5px;
	line-height: 1.55;
	color: #5b6472;
}

.hesp-product-sds__link {
	background: #fff8e8;
	border-color: #f0d7a4;
	color: #8a6410;
}

.hesp-product-sds__link:hover {
	background: #fff1d1;
	border-color: #b9861f;
	color: #5b3d08;
}

.hesp-product-clp__pictograms {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hesp-product-clp__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 100px;
	max-width: 120px;
	text-align: center;
}

.hesp-product-clp__diamond {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	transform: rotate(45deg);
	border: 2px solid #1a1a1a;
	background: #ffffff;
	box-shadow: inset 0 0 0 1px #f5c518;
}

.hesp-product-clp__diamond-code {
	transform: rotate(-45deg);
	font-family: var(--hesp-font);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #10202f;
}

.hesp-product-clp__label {
	font-size: 12px;
	line-height: 1.35;
	color: #5b6472;
}

.hesp-product-clp__statements {
	font-family: var(--hesp-font);
	font-size: 14px;
	line-height: 1.6;
	color: #28313c;
	padding-top: 4px;
	border-top: 1px solid #eef2f6;
}

.hesp-product-realizations__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hesp-product-realizations__item {
	margin: 0;
}

.hesp-product-realizations__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #E3EEF7;
	border: 1px solid #e7ecf1;
	text-decoration: none;
	color: #10202f;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.hesp-product-realizations__link:hover {
	border-color: #1264AA;
	background: #eef6fc;
	color: #1264AA;
	transform: translateY(-1px);
}

.hesp-product-realizations__thumb {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	overflow: hidden;
	background: #e7ecf1;
}

.hesp-product-realizations__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hesp-product-realizations__name {
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

/* --- Cross-sell --- */
.hesp-product-cross-sell {
	background: #ffffff;
	padding: 80px 0;
}

.hesp-product-cross-sell__eyebrow {
	font-family: var(--hesp-font);
	font-weight: var(--hesp-font-semibold);
	font-size: var(--hesp-text-eyebrow);
	letter-spacing: var(--hesp-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--hesp-eyebrow-on-light, #8a6410);
	margin: 0 0 12px;
}

.hesp-product-cross-sell__title {
	font-family: var(--hesp-font);
	font-weight: var(--hesp-font-bold);
	font-size: var(--hesp-text-h2);
	line-height: var(--hesp-leading-h2);
	color: #10202f;
	margin: 0 0 36px;
}

/* --- Empty state --- */
.hesp-product-empty {
	padding: 80px 0 120px;
	text-align: center;
}

.hesp-product-empty__title {
	font-family: var(--hesp-font);
	font-weight: var(--hesp-font-bold);
	font-size: var(--hesp-text-h2);
	line-height: var(--hesp-leading-h2);
	color: #10202f;
	margin: 0 0 12px;
}

.hesp-product-empty__text {
	font-family: var(--hesp-font);
	font-size: var(--hesp-text-body);
	line-height: var(--hesp-leading-body);
	color: #5b6472;
	margin: 0 0 24px;
}

.hesp-product-empty .hesp-btn {
	margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
	.hesp-product-main__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.hesp-product-gallery {
		max-width: 560px;
		margin: 0 auto;
	}
}

@media (max-width: 767px) {
	.hesp-product-page .hesp-container {
		padding-left: var(--hesp-content-gutter, 20px);
		padding-right: var(--hesp-content-gutter, 20px);
	}

	.hesp-product-info__title {
		font-size: 26px;
	}

	.hesp-product-info__price--net {
		font-size: 28px;
	}

	.hesp-product-info__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hesp-product-qty {
		justify-content: center;
	}

	.hesp-product-details {
		padding: 48px 0;
	}

	.hesp-product-details__block {
		padding: 20px;
	}

	.hesp-product-cross-sell {
		padding: 56px 0;
	}

	.hesp-product-gallery__thumbs {
		grid-template-columns: repeat(4, minmax(0, 80px));
		gap: 8px;
	}
}

/* Audit 15.3 — sticky „Do koszyka” at bottom of phone viewport */
@media (max-width: 639px) {
	.hesp-product-page {
		padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	}

	.hesp-product-info__actions {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 110;
		flex-direction: row;
		align-items: center;
		gap: 10px;
		margin: 0;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: #ffffff;
		border-top: 1px solid #e7ecf1;
		box-shadow: 0 -8px 28px rgba(16, 32, 47, 0.1);
		box-sizing: border-box;
	}

	.hesp-product-info__actions--unavailable {
		justify-content: stretch;
	}

	.hesp-product-qty {
		justify-content: center;
		flex-shrink: 0;
	}

	.hesp-product-add-btn {
		flex: 1 1 auto;
		min-height: 48px;
		width: auto;
	}
}
