/**
 * Product / case-study detail pages — align with site tokens (JCCNC redesign).
 *
 * UX notes (ui-ux-pro-max):
 * - Keep nav/breadcrumb visible for wayfinding
 * - Match site monochrome CTA (not orphan blue)
 * - Readable body contrast, stable image aspect, touch-friendly Inquire
 */

body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-page-shell > .jcproto-container,
body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-page-shell > .container {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: var(--jcproto-container, 1380px) !important;
	width: 100% !important;
	padding-left: clamp(1rem, 2vw, 2.5rem) !important;
	padding-right: clamp(1rem, 2vw, 2.5rem) !important;
	box-sizing: border-box !important;
}

body.jcproto-layout-product .jcproto-legacy-body-wrap #outerContainer_1698805147317 > .container,
body.jcproto-layout-product .jcproto-legacy-body-wrap #outerContainer_1698805147317 > .container-opened {
	max-width: var(--jcproto-container, 1380px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Product shell spacing under relocated breadcrumb. */
body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-page-shell {
	padding-top: clamp(1.25rem, 2.5vw, 2rem) !important;
}

body.jcproto-layout-product .proddetail-wrap.proddetail-wrap-picslider {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(1.5rem, 3.5vw, 2.75rem);
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

body.jcproto-layout-product .proddetail-picArea {
	flex: 0 0 min(100%, 52%);
	max-width: 52%;
	background: var(--jcproto-surface, #f7f7f5);
	border: 1px solid var(--jcproto-border, #deded9);
	border-radius: var(--jcproto-radius, 6px);
	overflow: hidden;
	padding: 0.75rem;
	box-sizing: border-box;
}

body.jcproto-layout-product .proddetail-style-slider-description,
body.jcproto-layout-product .proddetail-style-volid-slider-description {
	flex: 1 1 300px;
	min-width: 0;
	padding-top: 0.15rem;
}

body.jcproto-layout-product .proddetail-style-slider-name.this-description-name,
body.jcproto-layout-product h1.proddetail-style-slider-name {
	font-size: clamp(1.55rem, 2.5vw, 2.05rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 0.85rem;
	color: var(--jcproto-text, #0b0b0b);
}

body.jcproto-layout-product .proddetail-picArea img,
body.jcproto-layout-product .master-slider img,
body.jcproto-layout-product .prodetail-slider img {
	max-width: 100%;
	height: auto;
	display: block;
}

/*
 * Phoenix prodDetail stacks placeholder + MasterSlider + mobile owl.
 * MasterSlider JS is not migrated — hide placeholder/thumbs so one image shows.
 */
body.jcproto-layout-product .proddetail-picArea > .placeholder-container {
	display: none !important;
}

body.jcproto-layout-product .master-slider .ms-slide:not(:first-child) {
	display: none !important;
}

body.jcproto-layout-product .master-slider .ms-thumb,
body.jcproto-layout-product .master-slider .ms-thumb-list,
body.jcproto-layout-product .master-slider .ms-nav-prev,
body.jcproto-layout-product .master-slider .ms-nav-next {
	display: none !important;
}

body.jcproto-layout-product .master-slider,
body.jcproto-layout-product .master-slider .ms-slide {
	position: relative !important;
	width: 100% !important;
	height: auto !important;
}

body.jcproto-layout-product .master-slider .ms-slide > img:not(.ms-thumb) {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	border-radius: var(--jcproto-radius-sm, 4px);
}

body.jcproto-layout-product .proddetail-picArea .labelclass {
	display: none !important;
	pointer-events: none;
}

body.jcproto-layout-product .proddetail-style-slider-detail-wrap {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
	padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
	border-top: 1px solid var(--jcproto-border, #deded9);
}

body.jcproto-layout-product .detial-cont-tabslabel {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	border-bottom: 1px solid var(--jcproto-border, #deded9);
}

body.jcproto-layout-product .detial-cont-tabslabel li {
	display: inline-block;
	margin: 0 1.5rem 0 0;
	padding: 0.75rem 0;
	color: var(--jcproto-text-muted, #737373);
}

body.jcproto-layout-product .detial-cont-tabslabel li.on {
	border-bottom: 2px solid var(--jcproto-primary, #0b0b0b);
	color: var(--jcproto-text, #0b0b0b);
	font-weight: 700;
}

body.jcproto-layout-product .proddetail-style-slider-info-list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

body.jcproto-layout-product .proddetail-style-slider-info-list li {
	margin-bottom: 0.5rem;
	color: var(--jcproto-text-body, #3f3f3a);
}

body.jcproto-layout-product .proddetail-style-slider-info-list label {
	font-weight: 700;
	margin-right: 0.35rem;
	color: var(--jcproto-text, #0b0b0b);
}

/* Intro copy from Rank Math / excerpt fallback. */
body.jcproto-layout-product .jcproto-product-intro {
	margin: 0 0 1.15rem;
	font-size: 1.015rem;
	line-height: 1.7;
	color: var(--jcproto-text-body, #3f3f3a);
	max-width: 38rem;
}

/* Share row — quieter, site-aligned. */
body.jcproto-layout-product .prodlist-pro-shareit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.75rem;
	margin: 0 0 1.25rem;
}

body.jcproto-layout-product .prodlist-pro-shareiten {
	color: var(--jcproto-text-muted, #737373);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

body.jcproto-layout-product .st-custom-button {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px;
	min-height: 32px;
	border-radius: var(--jcproto-radius-sm, 4px) !important;
	margin: 0 !important;
	opacity: 0.92;
	transition: opacity 0.2s ease, transform 0.2s ease;
	cursor: pointer;
}

body.jcproto-layout-product .st-custom-button:hover,
body.jcproto-layout-product .st-custom-button:focus-visible {
	opacity: 1;
	outline: 2px solid var(--jcproto-primary, #0b0b0b);
	outline-offset: 2px;
}

body.jcproto-layout-product .st-custom-button > img {
	width: 16px !important;
	height: 16px !important;
	margin: 6px !important;
}

/* Inquire CTA — black button, white text (beat inner-pages-final link color). */
body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-legacy-body-wrap .sitewidget-bd a.pro-detail-inquirebtn,
body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-legacy-body-wrap .sitewidget-bd a.pro-detail-inquirebtn:link,
body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-legacy-body-wrap .sitewidget-bd a.pro-detail-inquirebtn:visited,
body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-legacy-body-wrap .sitewidget-bd a.pro-detail-inquirebtn:hover,
body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-legacy-body-wrap .sitewidget-bd a.pro-detail-inquirebtn:active,
body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-legacy-body-wrap .sitewidget-bd a.pro-detail-inquirebtn:focus-visible,
body.jcproto-layout-product .pro-detail-inquirewrap a.pro-detail-inquirebtn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.45rem !important;
	background: #0b0b0b !important;
	background-color: #0b0b0b !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	border: 0 !important;
	border-radius: var(--jcproto-radius, 6px) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-legacy-body-wrap .sitewidget-bd a.pro-detail-inquirebtn:hover,
body.jcproto-layout-product.jcproto-has-legacy-body .jcproto-legacy-body-wrap .sitewidget-bd a.pro-detail-inquirebtn:focus-visible,
body.jcproto-layout-product .pro-detail-inquirewrap a.pro-detail-inquirebtn:hover,
body.jcproto-layout-product .pro-detail-inquirewrap a.pro-detail-inquirebtn:focus-visible {
	background: #2b2b2b !important;
	background-color: #2b2b2b !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

body.jcproto-layout-product .pro-detail-inquirewrap a.pro-detail-inquirebtn:focus-visible {
	outline: 2px solid #0b0b0b;
	outline-offset: 3px;
}

/* Hide empty Phoenix chrome — do NOT hide the whole description table
   (Inquire CTA lives in the same table). */
body.jcproto-layout-product .proddetail-style-slider-info-list:empty,
body.jcproto-layout-product tr.skuState.hide,
body.jcproto-layout-product .proddetail-style-slider-name .fa-qrcode {
	display: none !important;
}

body.jcproto-layout-product .pro-detail-inquirewrap {
	display: block !important;
	margin: 0.35rem 0 0;
}

body.jcproto-layout-product .this-description-table {
	display: table !important;
	width: 100%;
	border: 0 !important;
}

body.jcproto-layout-product .this-description-table td,
body.jcproto-layout-product .this-description-table th {
	border: 0 !important;
	padding: 0 !important;
}

@media (max-width: 991px) {
	body.jcproto-layout-product .proddetail-picArea,
	body.jcproto-layout-product .proddetail-style-slider-description,
	body.jcproto-layout-product .proddetail-style-volid-slider-description {
		flex: 1 1 100%;
		max-width: 100%;
	}

	body.jcproto-layout-product .pro_pic_big {
		display: none !important;
	}

	body.jcproto-layout-product .pro_pic_small {
		display: block !important;
	}

	body.jcproto-layout-product .pro-detail-inquirebtn {
		width: 100%;
		min-height: 48px;
	}
}

@media (min-width: 992px) {
	body.jcproto-layout-product .pro_pic_big {
		display: block !important;
	}

	body.jcproto-layout-product .pro_pic_small {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.jcproto-layout-product .st-custom-button,
	body.jcproto-layout-product .pro-detail-inquirebtn {
		transition: none;
	}
}
