.dsp-root,
.dsp-root * {
	box-sizing: border-box;
}

.dsp-root {
	width: 100%;
	max-width: var(--dsp-max-width, 1440px);
	margin: 0 auto;
	color: #171717;
}

.dsp-layout {
	display: grid;
	grid-template-columns: minmax(0, var(--dsp-gallery-width, 64%)) minmax(0, 1fr);
	grid-template-areas: "gallery summary";
	gap: var(--dsp-column-gap, 40px);
	align-items: start;
}

.dsp-gallery {
	grid-area: gallery;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--dsp-image-gap, 8px);
}

.dsp-gallery-item {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--dsp-image-radius, 0);
	overflow: hidden;
	background: var(--dsp-image-bg, #f7f7f7);
	color: inherit;
	line-height: 0;
	cursor: zoom-in;
	appearance: none;
}

.dsp-gallery-cover {
	grid-column: 1 / -1;
	aspect-ratio: 1 / 1;
	max-height: max(240px, calc(100svh - var(--dsp-safe-offset, var(--dsp-sticky-offset, 32px)) - 24px));
}

/* Use the uncropped source and fit the entire first image inside the frame. */
.dsp-gallery-cover .dsp-product-image,
.dsp-gallery-cover.dsp-placeholder img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto;
	object-fit: contain;
}
.dsp-gallery-item.dsp-gallery-cover:hover .dsp-product-image,
.dsp-gallery-item.dsp-gallery-cover:focus-visible .dsp-product-image { transform: none; }

.dsp-product-image,
.dsp-placeholder img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	transition: transform .55s cubic-bezier(.22,.61,.36,1);
}

.dsp-gallery-item:hover .dsp-product-image,
.dsp-gallery-item:focus-visible .dsp-product-image {
	transform: scale(1.015);
}

.dsp-gallery-item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.dsp-zoom-icon {
	position: absolute;
	top: 14px;
	left: 14px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--dsp-zoom-bg, #fff);
	color: var(--dsp-zoom-color, #111);
	box-shadow: 0 4px 18px rgb(0 0 0 / 10%);
	opacity: 0;
	transform: translateY(5px);
	transition: opacity .2s ease, transform .2s ease;
}

.dsp-gallery-item:hover .dsp-zoom-icon,
.dsp-gallery-item:focus-visible .dsp-zoom-icon {
	opacity: 1;
	transform: translateY(0);
}

.dsp-summary {
	grid-area: summary;
	min-width: 0;
	position: sticky;
	top: var(--dsp-summary-top, var(--dsp-sticky-offset, 32px));
	align-self: start;
}

.dsp-summary-inner {
	position: static;
}

.dsp-eyebrow {
	margin: 0 0 9px;
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.dsp-title {
	margin: 0;
	padding: 0;
	letter-spacing: -.025em;
	line-height: 1.18;
}

.dsp-price {
	margin-top: 18px;
	line-height: 1.4;
}

.dsp-price del {
	opacity: .5;
}

.dsp-short-description,
.dsp-description {
	margin-top: 30px;
	line-height: 1.8;
}

.dsp-short-description > :first-child,
.dsp-description > :first-child {
	margin-top: 0;
}

.dsp-short-description > :last-child,
.dsp-description > :last-child {
	margin-bottom: 0;
}

.dsp-short-description p,
.dsp-description p {
	margin: 0 0 22px;
}

.dsp-short-description p,
.dsp-short-description li,
.dsp-short-description a,
.dsp-description p,
.dsp-description li,
.dsp-description a {
	color: inherit;
	font-family: inherit;
	font-size: inherit;
}

.dsp-short-description ul,
.dsp-short-description ol,
.dsp-description ul,
.dsp-description ol {
	margin: 0 0 22px;
	padding-inline-start: 1.25em;
}

.dsp-description img {
	max-width: 100%;
	height: auto;
}

.dsp-meta {
	display: grid;
	gap: 6px;
	margin-top: 30px;
	line-height: 1.6;
}

.dsp-meta a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dsp-root .dsp-sku { margin-top: 12px; overflow-wrap: anywhere; }
.dsp-sizes { margin-top: 26px; }
.dsp-detail-label { margin-bottom: 10px; font-size: 13px; font-weight: 500; color: #707070; }
.dsp-root .dsp-size-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dsp-root .dsp-size-chip {
	display: block;
	max-width: 100%;
	margin: 0;
	padding: 8px 15px;
	border: 1px solid #d9dce1;
	border-radius: 999px;
	background: #f6f7f8;
	color: #343434;
	font: inherit;
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.dsp-documents { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.dsp-root .dsp-document-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	max-width: 100%;
	padding: 12px 16px;
	border: 1px solid #004098;
	border-radius: 4px;
	background: transparent;
	color: #004098;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.dsp-document-button svg { flex-shrink: 0; }
.dsp-root .dsp-document-button:hover { background: #004098; color: #fff; }
.dsp-root .dsp-document-button:focus-visible { outline: 2px solid #004098; outline-offset: 3px; }
@media (max-width: 420px) { .dsp-root .dsp-document-button { width: 100%; } }

.dsp-related-products,
.dsp-related-products * {
	box-sizing: border-box;
}

.dsp-related-products {
	width: 100%;
	max-width: var(--dsp-related-max-width, var(--dsp-max-width, 1440px));
	margin: var(--dsp-related-spacing-top, 90px) auto 0;
	color: #343434;
	font-family: inherit;
}

.dsp-related-heading {
	margin: 0 0 28px;
	padding: 0;
	color: #171717;
	font-family: inherit;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.25;
}

.dsp-related-grid {
	display: grid;
	grid-template-columns: repeat(var(--dsp-related-columns, 4), minmax(0, 1fr));
	gap: 34px 12px;
}

.dsp-related-card {
	min-width: 0;
	margin: 0;
}

.dsp-related-link {
	display: block;
	color: #333;
	text-decoration: none !important;
}

.dsp-related-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f7f7f7;
}

.dsp-related-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
	transition: opacity .45s ease, transform .65s cubic-bezier(.22,.61,.36,1);
}

.dsp-related-hover-image {
	opacity: 0;
}

.dsp-related-link:hover .has-hover-image .dsp-related-primary-image,
.dsp-related-link:focus-visible .has-hover-image .dsp-related-primary-image {
	opacity: 0;
}

.dsp-related-link:hover .dsp-related-hover-image,
.dsp-related-link:focus-visible .dsp-related-hover-image {
	opacity: 1;
	transform: scale(1.015);
}

.dsp-related-title {
	margin: 14px 0 0;
	padding: 0;
	color: #373737;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: .005em;
}

.dsp-related-link:hover .dsp-related-title,
.dsp-related-link:focus-visible .dsp-related-title {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.dsp-related-price {
	display: block;
	margin-top: 6px;
	color: #555;
	font-size: 14px;
	line-height: 1.5;
}

.dsp-share {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 38px;
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: inherit;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}

.dsp-share:hover span,
.dsp-share:focus-visible span {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.dsp-lightbox[hidden] {
	display: none;
}

.dsp-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(44px, 1fr) minmax(0, 1200px) minmax(44px, 1fr);
	align-items: center;
	padding: 28px;
	background: rgb(0 0 0 / 92%);
}

.dsp-lightbox figure {
	grid-column: 2;
	display: grid;
	place-items: center;
	max-height: calc(100vh - 56px);
	margin: 0;
}

.dsp-lightbox figure img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 92px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.dsp-lightbox figcaption {
	margin-top: 10px;
	color: #fff;
	font: 400 12px/1.4 Arial, sans-serif;
	letter-spacing: .08em;
}

.dsp-lightbox-close,
.dsp-lightbox-prev,
.dsp-lightbox-next {
	position: absolute;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 25%);
	border-radius: 999px;
	background: rgb(0 0 0 / 20%);
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 32px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}

.dsp-lightbox-close {
	top: 20px;
	right: 20px;
}

.dsp-lightbox-prev,
.dsp-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
}

.dsp-lightbox-prev { left: 20px; }
.dsp-lightbox-next { right: 20px; }

body.dsp-lightbox-open {
	overflow: hidden !important;
}

body.single-product .product.dsp-auto-product {
	display: block !important;
	width: 100%;
}

body.single-product .product.dsp-auto-product::before,
body.single-product .product.dsp-auto-product::after {
	display: none !important;
}

body.single-product .product.dsp-auto-product > .dsp-root {
	float: none;
	clear: both;
}

body.single-product .product.dsp-auto-product > .summary.entry-summary {
	display: none !important;
}

@media (max-width: 1024px) {
	.dsp-layout {
		grid-template-columns: minmax(0, 55%) minmax(0, 1fr);
		gap: min(var(--dsp-column-gap, 40px), 28px);
	}

	.dsp-short-description,
	.dsp-description { margin-top: 24px; }

	.dsp-related-grid {
		grid-template-columns: repeat(var(--dsp-related-columns-tablet, 3), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.dsp-layout {
		display: block;
	}

	.dsp-summary {
		position: static;
		margin: 0 0 30px;
	}

	.dsp-summary-inner {
		position: static;
	}

	.dsp-gallery {
		grid-template-columns: 1fr;
	}

	.dsp-gallery-item,
	.dsp-gallery-cover {
		grid-column: 1;
	}
	.dsp-gallery-cover { max-height: none; }

	.dsp-zoom-icon {
		top: 10px;
		left: 10px;
		opacity: 1;
		transform: none;
	}

	.dsp-lightbox {
		grid-template-columns: 1fr;
		padding: 64px 14px 42px;
	}

	.dsp-lightbox figure { grid-column: 1; }
	.dsp-lightbox-prev { left: 10px; }
	.dsp-lightbox-next { right: 10px; }
	.dsp-lightbox-close { top: 10px; right: 10px; }

	.dsp-related-heading {
		margin-bottom: 22px;
		font-size: 25px;
	}

	.dsp-related-grid {
		grid-template-columns: repeat(var(--dsp-related-columns-mobile, 2), minmax(0, 1fr));
		gap: 28px 14px;
	}
}

@media (max-width: 520px) {
	.dsp-related-grid {
		gap: 24px 10px;
	}

	.dsp-related-title {
		margin-top: 10px;
		font-size: 14px;
	}
}

@media (hover: none) {
	.dsp-related-hover-image {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dsp-product-image,
	.dsp-zoom-icon,
	.dsp-related-image { transition: none; }
}
