/* Single produit POL'HOP - version complète avec visionneuse pro */

.polhop-single-product {
	background: #eef9fb;
	color: #1d3557;
}

.polhop-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.polhop-single-hero {
	padding: 68px 0 56px;
	background:
		radial-gradient(circle at 20% 10%, rgba(80,184,72,.10), transparent 34%),
		linear-gradient(135deg, #eaf8fc 0%, #f5fbf6 100%);
}

.polhop-single-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
	gap: 44px;
	align-items: start;
}

.polhop-product-gallery,
.polhop-product-summary,
.polhop-product-section {
	background: #ffffff;
	border: 1px solid rgba(29, 53, 87, .06);
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(29, 53, 87, .08);
}

.polhop-product-gallery {
	padding: 22px;
}

.polhop-main-image {
	aspect-ratio: 1 / 1;
	width: 100%;
	background: #f4fbfd;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-in;
	position: relative;
}

.polhop-main-image::after {
	content: "Agrandir";
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(29, 53, 87, .82);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}

.polhop-main-image:hover::after {
	opacity: 1;
	transform: translateY(0);
}

.polhop-main-image img,
.polhop-main-image picture,
.polhop-main-image picture img,
.polhop-main-image .polhop-current-image {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.polhop-main-image img,
.polhop-main-image picture img,
.polhop-main-image .polhop-current-image {
	object-fit: cover !important;
	object-position: center center !important;
}

.polhop-main-image img {
	transition: transform .28s ease;
}

.polhop-main-image:hover img {
	transform: scale(1.025);
}

.polhop-product-placeholder {
	width: 100%;
	height: 100%;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed #cde2eb;
	border-radius: 18px;
	color: #50b848;
	font-weight: 900;
	letter-spacing: .08em;
	background: #f7fbfc;
}

.polhop-product-placeholder.small {
	min-height: 160px;
	border-radius: 14px;
}

.polhop-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.polhop-thumb {
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 13px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(29, 53, 87, .08);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.polhop-thumb.is-active,
.polhop-thumb:hover {
	border-color: #35aee2;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(53, 174, 226, .20);
}

.polhop-thumb img,
.polhop-thumb picture,
.polhop-thumb picture img {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.polhop-thumb img,
.polhop-thumb picture img {
	object-fit: cover !important;
	object-position: center center !important;
}

.polhop-product-summary {
	padding: 38px;
}

.polhop-product-categories {
	margin-bottom: 12px;
	color: #50b848;
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.polhop-product-summary h1 {
	margin: 0 0 16px;
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1.05;
	color: #1d3557;
	letter-spacing: -.03em;
}

.polhop-reference {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin: 0 0 24px;
	padding: 8px 15px;
	border-radius: 999px;
	background: #eaf8ee;
	color: #1d3557;
	font-weight: 800;
}

.polhop-short-description {
	margin-top: 10px;
	color: #566b7a;
	font-size: 16px;
	line-height: 1.7;
}

.polhop-short-description p {
	margin: 0 0 12px;
}

.polhop-short-description ul,
.polhop-short-description ol {
	margin: 10px 0 0 20px;
	padding: 0;
}

.polhop-short-description li {
	margin-bottom: 6px;
}

.polhop-pdf-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.polhop-pdf-links a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	justify-content: center;
	border-radius: 999px;
	padding: 12px 18px;
	background: linear-gradient(135deg, #ff4f93 0%, #e93575 100%);
	color: #fff;
	font-weight: 900;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(233, 53, 117, .26);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.polhop-pdf-links a:hover {
	transform: translateY(-2px);
	box-shadow: 0 15px 30px rgba(233, 53, 117, .34);
	color: #fff;
}

.polhop-pdf-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(255,255,255,.18);
	font-size: 13px;
}

.polhop-summary-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 28px;
}

.polhop-main-button,
.polhop-secondary-button,
.polhop-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 12px 20px;
	font-weight: 900;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.polhop-main-button,
.polhop-card-button {
	background: #35aee2;
	color: #fff;
	box-shadow: 0 10px 22px rgba(53, 174, 226, .24);
}

.polhop-secondary-button {
	background: #eef8fc;
	color: #1d3557;
}

.polhop-main-button:hover,
.polhop-card-button:hover {
	background: #1d3557;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(29, 53, 87, .22);
}

.polhop-secondary-button:hover {
	background: #dff3fa;
	color: #1d3557;
	transform: translateY(-1px);
}

.polhop-product-section {
	margin-top: 34px;
	padding: 38px;
}

.polhop-product-section h2 {
	margin: 0 0 18px;
	font-size: clamp(26px, 3vw, 38px);
	color: #1d3557;
	letter-spacing: -.02em;
}

.polhop-long-description,
.polhop-tech-wysiwyg {
	color: #566b7a;
	font-size: 16px;
	line-height: 1.78;
}

.polhop-long-description p,
.polhop-tech-wysiwyg p {
	margin: 0 0 17px;
}

.polhop-long-description ul,
.polhop-long-description ol,
.polhop-tech-wysiwyg ul,
.polhop-tech-wysiwyg ol {
	margin: 0 0 18px 22px;
	padding: 0;
}

.polhop-long-description li,
.polhop-tech-wysiwyg li {
	margin-bottom: 8px;
}

.polhop-tech-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.polhop-tech-item {
	padding: 18px;
	border: 1px solid #e5eef3;
	border-radius: 18px;
	background: #f7fbfc;
}

.polhop-tech-item span {
	display: block;
	margin-bottom: 6px;
	color: #6b7c88;
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.polhop-tech-item strong {
	display: block;
	color: #1d3557;
	font-size: 16px;
	line-height: 1.4;
}

.polhop-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.polhop-related-card {
	background: #fff;
	border: 1px solid #e5eef3;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(29, 53, 87, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}

.polhop-related-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 38px rgba(29, 53, 87, .11);
}

.polhop-related-image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: #f2fafc;
	text-decoration: none;
	overflow: hidden;
}

.polhop-related-image img,
.polhop-related-image picture,
.polhop-related-image picture img {
	width: 100% !important;
	height: 100% !important;
	display: block;
	object-fit: cover !important;
	object-position: center center !important;
}

.polhop-related-content {
	padding: 18px;
}

.polhop-related-content h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.25;
}

.polhop-related-content h3 a {
	color: #1d3557;
	text-decoration: none;
}

.polhop-related-ref {
	margin: 0 0 10px;
	font-weight: 900;
	color: #50b848;
}

.polhop-related-content p {
	color: #566b7a;
	line-height: 1.55;
}

/* Visionneuse pro */

.polhop-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 50% 30%, rgba(53, 174, 226, .12), transparent 34%),
		rgba(8, 20, 30, .88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 34px;
	opacity: 0;
	transition: opacity .22s ease;
}

.polhop-lightbox.is-open {
	display: flex;
	opacity: 1;
}

.polhop-lightbox-inner {
	position: relative;
	width: min(1180px, calc(100vw - 88px));
	height: min(820px, calc(100vh - 88px));
	display: grid;
	grid-template-rows: 1fr auto;
	gap: 16px;
}

.polhop-lightbox-figure {
	position: relative;
	margin: 0;
	min-height: 0;
	border-radius: 28px;
	background: #ffffff;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(53, 174, 226, .08);
}

.polhop-lightbox img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	display: block;
	padding: 18px;
}

.polhop-lightbox-caption {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 16px;
	border-radius: 18px;
	background: rgba(29, 53, 87, .74);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.polhop-lightbox-title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.polhop-lightbox-count {
	white-space: nowrap;
	opacity: .88;
}

.polhop-lightbox-thumbs {
	display: flex;
	justify-content: center;
	gap: 10px;
	max-width: 100%;
	overflow-x: auto;
	padding: 4px 4px 8px;
	scrollbar-width: thin;
}

.polhop-lightbox-thumb {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
	opacity: .82;
	box-shadow: 0 6px 18px rgba(0,0,0,.12);
	transition: opacity .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.polhop-lightbox-thumb:hover,
.polhop-lightbox-thumb.is-active {
	opacity: 1;
	border-color: #35aee2;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(53, 174, 226, .24);
}

.polhop-lightbox-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover !important;
	padding: 0;
}

.polhop-lightbox-close,
.polhop-lightbox-arrow {
	position: absolute;
	z-index: 4;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #35aee2;
	color: #fff;
	box-shadow: 0 12px 28px rgba(53, 174, 226, .35);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.polhop-lightbox-close:hover,
.polhop-lightbox-arrow:hover {
	background: #1d3557;
	color: #fff;
	box-shadow: 0 16px 34px rgba(29, 53, 87, .28);
}

.polhop-lightbox-close {
	top: 18px;
	right: 18px;
	width: 56px;
	height: 56px;
}

.polhop-lightbox-arrow {
	top: 50%;
	transform: translateY(-50%);
	width: 58px;
	height: 58px;
}

.polhop-lightbox-prev {
	left: 18px;
}

.polhop-lightbox-next {
	right: 18px;
}

.polhop-lightbox-prev:hover {
	transform: translateY(-50%) scale(1.04);
}

.polhop-lightbox-next:hover {
	transform: translateY(-50%) scale(1.04);
}

.polhop-lightbox-close:hover {
	transform: scale(1.04);
}

.polhop-lightbox-icon {
	width: 24px;
	height: 24px;
	display: block;
	flex: 0 0 24px;
}

.polhop-lightbox-arrow .polhop-lightbox-icon {
	width: 26px;
	height: 26px;
	flex-basis: 26px;
}

.polhop-lightbox.is-loading .polhop-lightbox-figure::before {
	content: "";
	position: absolute;
	z-index: 2;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	border: 4px solid rgba(53, 174, 226, .18);
	border-top-color: #35aee2;
	animation: polhopLightboxSpin .8s linear infinite;
}

@keyframes polhopLightboxSpin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 980px) {
	.polhop-single-grid {
		grid-template-columns: 1fr;
	}

	.polhop-tech-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.polhop-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.polhop-container {
		width: min(100% - 28px, 1180px);
	}

	.polhop-single-hero {
		padding: 38px 0;
	}

	.polhop-product-summary,
	.polhop-product-section,
	.polhop-product-gallery {
		padding: 20px;
	}

	.polhop-thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.polhop-tech-grid,
	.polhop-related-grid {
		grid-template-columns: 1fr;
	}

	.polhop-lightbox {
		padding: 14px;
	}

	.polhop-lightbox-inner {
		width: 100%;
		height: calc(100vh - 28px);
		grid-template-rows: 1fr auto;
		gap: 10px;
	}

	.polhop-lightbox-figure {
		border-radius: 20px;
	}

	.polhop-lightbox img {
		padding: 10px;
	}

	.polhop-lightbox-caption {
		left: 10px;
		right: 10px;
		bottom: 10px;
		font-size: 12px;
		padding: 10px 12px;
		border-radius: 14px;
	}

	.polhop-lightbox-close {
		top: 12px;
		right: 12px;
		width: 48px;
		height: 48px;
	}

	.polhop-lightbox-arrow {
		width: 48px;
		height: 48px;
	}

	.polhop-lightbox-prev {
		left: 10px;
	}

	.polhop-lightbox-next {
		right: 10px;
	}

	.polhop-lightbox-icon {
		width: 20px;
		height: 20px;
		flex-basis: 20px;
	}

	.polhop-lightbox-arrow .polhop-lightbox-icon {
		width: 22px;
		height: 22px;
		flex-basis: 22px;
	}

	.polhop-lightbox-thumb {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}
}