/* DSA Item Page product template */
.dsa-item-page {
	--dsa-item-surface: #fff;
	--dsa-item-soft: #f6f9fa;
	--dsa-item-border: #e5ecee;
	--dsa-item-text: var(--dsa-gray-900, #212529);
	--dsa-item-muted: var(--dsa-gray-600, #6c757d);
	background: var(--dsa-item-soft);
	color: var(--dsa-item-text);
	padding: 0 0 72px;
}

.dsa-item-page__shell {
	width: min(1240px, calc(100% - 40px));
	margin: 0 auto;
}

.dsa-item-page__breadcrumb {
	padding: 20px 0 12px;
	font-size: .82rem;
	color: var(--dsa-item-muted);
}
.dsa-item-page__breadcrumb .woocommerce-breadcrumb { margin: 0; color: inherit; }
.dsa-item-page__breadcrumb a { color: inherit; text-decoration: none; }
.dsa-item-page__breadcrumb a:hover { color: var(--dsa-accent, #06AABB); }

.dsa-item-page__hero {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	min-height: 520px;
	background: var(--dsa-item-surface);
	border: 1px solid var(--dsa-item-border);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 32px rgba(22, 34, 41, .06);
}

.dsa-item-page__hero--no-media {
	grid-template-columns: minmax(0, 1fr);
	min-height: 420px;
}
.dsa-item-page__hero--no-media .dsa-item-page__hero-copy {
	max-width: 860px;
}

.dsa-item-page__hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(36px, 5vw, 72px);
}

.dsa-item-page__eyebrow,
.dsa-item-page__section-heading > span,
.dsa-item-page__quote-kicker {
	color: var(--dsa-accent, #06AABB);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .095em;
	text-transform: uppercase;
}

.dsa-item-page__title {
	margin: 10px 0 14px;
	font-size: clamp(2.2rem, 5vw, var(--dsa-item-title-max, 4.5rem));
	font-weight: 620;
	line-height: 1.03;
	letter-spacing: -.035em;
	color: var(--dsa-item-text);
}

.dsa-item-page__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 22px;
}
.dsa-item-page__meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 10px;
	border-radius: 999px;
	background: var(--dsa-item-soft);
	color: #566168;
	font-size: .78rem;
	font-weight: 600;
}
.dsa-item-page__meta i { color: var(--dsa-accent, #06AABB); }

.dsa-item-page__intro {
	max-width: 620px;
	font-size: clamp(1rem, 1.8vw, 1.12rem);
	line-height: 1.75;
	color: #515d64;
}
.dsa-item-page__intro > :last-child { margin-bottom: 0; }

.dsa-item-page__hero-actions { margin-top: 28px; }
.dsa-item-page .dsa-product-quote-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: auto;
	max-width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 11px 18px;
	border-radius: 7px;
	background: var(--dsa-accent, #06AABB);
	border: 1px solid var(--dsa-accent, #06AABB);
	color: #fff !important;
	font-size: .9rem;
	font-weight: 650;
	text-decoration: none;
	box-shadow: none;
	transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.dsa-item-page .dsa-product-quote-btn i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: .84rem;
	line-height: 1;
}
@media (hover:hover) and (pointer:fine) {
	.dsa-item-page .dsa-product-quote-btn:hover {
		background: var(--dsa-accent-hover, #059DAD);
		border-color: var(--dsa-accent-hover, #059DAD);
		transform: translateY(-2px);
	}
}

.dsa-item-page__hero-media {
	min-width: 0;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(26px, 4vw, 52px);
	background:
		radial-gradient(circle at 70% 34%, rgba(6,170,187,.12), transparent 34%),
		linear-gradient(145deg, #fbfcfd, #eef3f4);
}
.dsa-item-page__gallery {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.dsa-item-page__gallery-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 360px;
	background: #fff;
	border: 1px solid rgba(22, 34, 41, .06);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 18px 38px rgba(22, 34, 41, .08);
}

.dsa-item-page__gallery-slides {
	position: absolute;
	inset: 0;
}

.dsa-item-page__gallery-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: clamp(16px, 2.4vw, 30px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(18px);
	transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s;
}

.dsa-item-page__gallery-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
	transition-delay: 0s;
}

.dsa-item-page__gallery-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	object-fit: contain;
	filter: drop-shadow(0 20px 24px rgba(22, 34, 41, .10));
}

.dsa-item-page__gallery-arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(22, 34, 41, .10);
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: var(--dsa-item-text);
	box-shadow: 0 8px 22px rgba(22, 34, 41, .12);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dsa-item-page__gallery-arrow--prev { left: 14px; }
.dsa-item-page__gallery-arrow--next { right: 14px; }

.dsa-item-page__gallery-arrow:hover,
.dsa-item-page__gallery-arrow:focus-visible {
	background: var(--dsa-accent, #06AABB);
	border-color: var(--dsa-accent, #06AABB);
	color: #fff;
	box-shadow: 0 10px 24px rgba(6, 170, 187, .22);
	transform: translateY(-50%);
}

.dsa-item-page__gallery-footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.dsa-item-page__gallery-thumbs {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 2px 5px;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
}

.dsa-item-page__gallery-thumb {
	position: relative;
	flex: 0 0 66px;
	width: 66px;
	height: 66px;
	margin: 0;
	padding: 4px;
	border: 2px solid transparent;
	border-radius: 9px;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	overflow: hidden;
	scroll-snap-align: start;
	opacity: .68;
	transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dsa-item-page__gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dsa-item-page__gallery-thumb:hover,
.dsa-item-page__gallery-thumb:focus-visible,
.dsa-item-page__gallery-thumb.is-active {
	opacity: 1;
	border-color: var(--dsa-accent, #06AABB);
	box-shadow: 0 0 0 2px rgba(6, 170, 187, .08);
}

.dsa-item-page__gallery-counter {
	min-width: 48px;
	color: var(--dsa-item-muted);
	font-size: .78rem;
	font-weight: 650;
	text-align: right;
	white-space: nowrap;
}

.dsa-item-page__gallery.has-single .dsa-item-page__gallery-stage {
	box-shadow: 0 18px 38px rgba(22, 34, 41, .07);
}

.dsa-item-page__features { margin-top: 72px; }
.dsa-item-page__section-heading { margin-bottom: 24px; }
.dsa-item-page__section-heading h2 {
	margin: 6px 0 0;
	font-size: clamp(1.65rem, 3vw, var(--dsa-item-section-heading-max, 2.35rem));
	font-weight: 620;
	letter-spacing: -.02em;
}
.dsa-item-page__feature-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.dsa-item-page__feature-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--dsa-item-border);
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(22, 34, 41, .035);
}
.dsa-item-page__feature-icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(6,170,187,.09);
	color: var(--dsa-accent, #06AABB);
	font-size: 1rem;
}
.dsa-item-page__feature-label {
	margin-bottom: 4px;
	color: var(--dsa-item-muted);
	font-size: .74rem;
	font-weight: 650;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.dsa-item-page__feature-value {
	overflow-wrap: anywhere;
	font-size: .96rem;
	font-weight: 600;
	line-height: 1.45;
}

.dsa-item-page__content-sections { margin-top: 76px; }
.dsa-item-page__content-block {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	min-height: 430px;
	margin-bottom: 28px;
	background: #fff;
	border: 1px solid var(--dsa-item-border);
	border-radius: 16px;
	overflow: hidden;
}
.dsa-item-page__content-block--image_right .dsa-item-page__content-media { order: 2; }
.dsa-item-page__content-block--image_right .dsa-item-page__content-copy { order: 1; }
.dsa-item-page__content-block--full { grid-template-columns: 1fr; }
.dsa-item-page__content-block--full .dsa-item-page__content-media { min-height: 460px; }

.dsa-item-page__content-media {
	min-width: 0;
	background: #eef3f4;
}
.dsa-item-page__content-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 430px;
	object-fit: cover;
}
.dsa-item-page__content-block--full .dsa-item-page__content-image { min-height: 460px; max-height: 620px; }
.dsa-item-page__content-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(32px, 5vw, 68px);
}
.dsa-item-page__content-copy h2 {
	margin: 0 0 18px;
	font-size: clamp(1.55rem, 3vw, var(--dsa-item-content-heading-max, 2.25rem));
	font-weight: 620;
	line-height: 1.18;
	letter-spacing: -.02em;
}
.dsa-item-page__richtext {
	color: #59646b;
	font-size: 1rem;
	line-height: 1.75;
}
.dsa-item-page__richtext h2,
.dsa-item-page__richtext h3,
.dsa-item-page__richtext h4 { color: var(--dsa-item-text); font-weight: 620; }
.dsa-item-page__richtext a { color: var(--dsa-accent, #06AABB); }
.dsa-item-page__richtext > :last-child { margin-bottom: 0; }

.dsa-item-page__fallback-description { margin-top: 76px; padding: clamp(30px, 5vw, 60px); background: #fff; border: 1px solid var(--dsa-item-border); border-radius: 16px; }

/* Optional Elementor content region for per-product extras. The DSA Item Page
 * remains the structural template; Elementor can add arbitrary widgets here. */
.dsa-item-page__elementor {
	width: 100%;
	min-width: 0;
	margin-top: 72px;
}
.dsa-item-page__elementor > .elementor,
.dsa-item-page__elementor .elementor {
	width: 100%;
	max-width: 100%;
}
body.elementor-editor-active .dsa-item-page__elementor,
body.elementor-editor-preview .dsa-item-page__elementor {
	min-height: 90px;
}


/* Optional centered supplier-style feature strip. It sits inside the ordered
 * content-section flow so an editor can place it before/between/after sections. */
.dsa-item-page__custom-feature-panel {
	width: 100%;
	max-width: var(--dsa-feature-max-width, 1120px);
	margin: 28px auto;
	border: 1px solid var(--dsa-item-border);
	border-radius: 16px;
	background: #e3e8ea;
	box-shadow: 0 8px 24px rgba(22, 34, 41, .055);
	overflow: hidden;
}
.dsa-item-page__custom-feature-panel-title {
	margin: 0;
	padding: 22px 26px 18px;
	background: #fff;
	color: var(--dsa-item-text);
	font-size: clamp(1.25rem, 2.3vw, 1.75rem);
	font-weight: 620;
	text-align: center;
	letter-spacing: -.015em;
}
.dsa-item-page__custom-feature-grid {
	display: grid;
	grid-template-columns: repeat(var(--dsa-feature-cols, 4), minmax(0, 1fr));
	gap: 1px;
	background: #dfe4e7;
}
.dsa-item-page__custom-feature-item {
	min-width: 0;
	min-height: 166px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 26px 20px 24px;
	background: #fff;
	text-align: center;
}
.dsa-item-page__custom-feature-icon {
	width: 68px;
	height: 68px;
	display: grid;
	place-items: center;
	margin-bottom: 13px;
	color: #172126;
	font-size: 2.45rem;
	line-height: 1;
}
.dsa-item-page__custom-feature-icon i { display: block; line-height: 1; }
.dsa-item-page__custom-feature-icon-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.dsa-item-page__custom-feature-label {
	max-width: 190px;
	color: var(--dsa-item-text);
	font-size: .94rem;
	font-weight: 600;
	line-height: 1.35;
}
.dsa-item-page__custom-feature-value {
	max-width: 190px;
	margin-top: 5px;
	color: var(--dsa-item-muted);
	font-size: .78rem;
	font-weight: 500;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.dsa-item-page__content-sections--feature-panel-only .dsa-item-page__custom-feature-panel {
	margin-top: 0;
	margin-bottom: 0;
}

.dsa-item-page__quote {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(28px, 5vw, 64px);
	margin-top: 72px;
	padding: clamp(34px, 5vw, 56px);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 18px;
	background:
		radial-gradient(circle at 88% 10%, rgba(6,170,187,.16), transparent 28%),
		linear-gradient(135deg, #172126, #111a1f);
	color: #fff;
	box-shadow: 0 12px 30px rgba(17,26,31,.12);
}
.dsa-item-page__quote > div:first-child { max-width: 720px; min-width: 0; }
.dsa-item-page__quote h2 { margin: 7px 0 10px; color: #fff; font-size: clamp(1.6rem, 3vw, var(--dsa-item-quote-heading-max, 2.45rem)); font-weight: 620; }
.dsa-item-page__quote p { margin: 0; max-width: 680px; color: rgba(255,255,255,.72); line-height: 1.65; }
.dsa-item-page__quote-action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
}
.dsa-item-page__quote-action .dsa-product-quote-btn {
	width: auto;
	margin: 0;
	padding: 13px 20px;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(6,170,187,.18);
}

/* Keep the review card aligned with the Item Page shell instead of adding a
 * second inset width inside it. */
.dsa-item-page .dsa-product-reviews {
	width: 100%;
	max-width: none;
	margin: 44px 0 0;
	box-sizing: border-box;
}

@media (max-width: 980px) {
	.dsa-item-page__custom-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dsa-item-page__hero { grid-template-columns: 1fr; }
	.dsa-item-page__hero-media { min-height: 360px; }
	.dsa-item-page__feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dsa-item-page__content-block { grid-template-columns: 1fr; }
	.dsa-item-page__content-block .dsa-item-page__content-media,
	.dsa-item-page__content-block .dsa-item-page__content-copy { order: initial; }
	.dsa-item-page__content-media,
	.dsa-item-page__content-image { min-height: 340px; }
}

@media (max-width: 640px) {
	.dsa-item-page__custom-feature-grid { grid-template-columns: 1fr; }
	.dsa-item-page__custom-feature-item { min-height: 138px; padding: 22px 18px; }
	.dsa-item-page__custom-feature-icon { width: 58px; height: 58px; font-size: 2.05rem; }
	.dsa-item-page { padding-bottom: 44px; }
	.dsa-item-page__shell { width: min(100% - 24px, 1240px); }
	.dsa-item-page__hero { min-height: 0; border-radius: 12px; }
	.dsa-item-page__hero-copy { padding: 30px 24px; }
	.dsa-item-page__hero-media { min-height: 280px; padding: 20px; }
	.dsa-item-page__gallery-stage { min-height: 280px; aspect-ratio: 1 / 1; }
	.dsa-item-page__gallery-slide { padding: 18px; }
	.dsa-item-page__gallery-arrow { width: 40px; height: 40px; }
	.dsa-item-page__gallery-arrow--prev { left: 8px; }
	.dsa-item-page__gallery-arrow--next { right: 8px; }
	.dsa-item-page__gallery-footer { grid-template-columns: 1fr; }
	.dsa-item-page__gallery-counter { display: none; }
	.dsa-item-page__gallery-thumb { flex-basis: 58px; width: 58px; height: 58px; }
	.dsa-item-page__title { font-size: clamp(2rem, 12vw, var(--dsa-item-title-max, 3.1rem)); }
	.dsa-item-page__features,
	.dsa-item-page__content-sections,
	.dsa-item-page__fallback-description,
	.dsa-item-page__elementor,
	.dsa-item-page__quote { margin-top: 44px; }
	.dsa-item-page__feature-grid { grid-template-columns: 1fr; }
	.dsa-item-page__content-block { min-height: 0; border-radius: 12px; }
	.dsa-item-page__content-media,
	.dsa-item-page__content-image,
	.dsa-item-page__content-block--full .dsa-item-page__content-image { min-height: 250px; }
	.dsa-item-page__content-copy { padding: 28px 24px 32px; }
	.dsa-item-page__quote { flex-direction: column; align-items: flex-start; gap: 22px; border-radius: 12px; }
	.dsa-item-page__quote-action,
	.dsa-item-page__quote-action .dsa-product-quote-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.dsa-item-page .dsa-product-quote-btn { transition: none; }
}
