/* Shared Store-style WooCommerce product detail widgets. */

.jdw-product-gallery,
.jdw-product-gallery *,
.jdw-product-inquiry,
.jdw-product-inquiry *,
.jdw-product-faqs,
.jdw-product-faqs *,
.jdw-product-recommendations,
.jdw-product-recommendations *,
.jdw-product-reviews,
.jdw-product-reviews * {
	box-sizing: border-box;
}

.jdw-product-gallery__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
	border: 0;
}

.jdw-product-gallery__slide {
	width: 100%;
	height: 100%;
	margin: 0;
}

.jdw-product-gallery__slide[hidden] {
	display: none;
}

.jdw-product-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jdw-product-gallery__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: 16px;
}

.jdw-product-gallery__arrow,
.jdw-product-gallery__dots {
	display: none;
}

.jdw-product-gallery__counter {
	position: absolute;
	right: 18px;
	bottom: 16px;
	padding: 7px 10px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	background: #161616;
}

.jdw-product-gallery__thumbs {
	display: flex;
	gap: var(--jdw-gallery-thumbnail-gap, 8px);
	width: 100%;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.jdw-product-gallery__thumbs::-webkit-scrollbar { display: none; }

.jdw-product-gallery__thumb {
	flex: 0 0 calc(var(--jdw-gallery-thumbnail-size, 64px) + 4px);
	width: calc(var(--jdw-gallery-thumbnail-size, 64px) + 4px);
	height: calc(var(--jdw-gallery-thumbnail-size, 64px) + 4px);
	min-height: 0;
	padding: 2px !important;
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.jdw-product-gallery button.jdw-product-gallery__thumb {
	background-color: transparent !important;
	border: 0 !important;
}

.jdw-product-gallery__thumb-frame {
	position: relative;
	display: block;
	width: var(--jdw-gallery-thumbnail-size, 64px);
	height: var(--jdw-gallery-thumbnail-size, 64px);
	padding: 2px;
	background: #f5f5f5;
}

.jdw-product-gallery__thumb-frame::after {
	position: absolute;
	inset: 0;
	content: "";
	box-shadow: 0 0 0 2px #f65e1e;
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.jdw-product-gallery__thumb[aria-current="true"] .jdw-product-gallery__thumb-frame::after {
	opacity: 1;
	transform: scale(1);
}

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

@media (min-width: 1000px) and (pointer: fine) {
	.jdw-product-gallery__stage.is-hovering-left { cursor: w-resize; }
	.jdw-product-gallery__stage.is-hovering-right { cursor: e-resize; }
}

@media (max-width: 999px) {
	.jdw-product-gallery__nav { margin-top: 18px; }

	.jdw-product-gallery__thumbs { display: none; }

	.jdw-product-gallery__arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		min-height: 0;
		padding: 0 !important;
		color: #161616;
		background: transparent !important;
		border: 0 !important;
		border-radius: 0;
		cursor: pointer;
	}

	.jdw-product-gallery__arrow svg { display: block; }

	.jdw-product-gallery__dots {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 1 1 auto;
	}

	.jdw-product-gallery__dot,
	.jdw-product-gallery button.jdw-product-gallery__dot {
		width: 6px;
		height: 6px;
		min-height: 0;
		margin: 6px;
		padding: 0 !important;
		background-color: #161616;
		border: 0 !important;
		border-radius: 50%;
		opacity: 0.3;
		transition: opacity 0.2s ease;
	}

	.jdw-product-gallery__dot[aria-current="true"],
	.jdw-product-gallery button.jdw-product-gallery__dot[aria-current="true"] {
		opacity: 1;
	}
}

.jdw-product-inquiry {
	margin-top: 28px;
	padding-top: 30px;
	color: #161616;
	border-top: 1px solid #c7c6c4;
}

.jdw-product-inquiry__title {
	margin: 0 0 12px;
	font-family: "Suisse Intl", sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.jdw-product-inquiry__intro,
.jdw-product-inquiry__note {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.55;
}

.jdw-product-inquiry__options,
.jdw-product-inquiry__contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.jdw-product-inquiry label,
.jdw-product-inquiry__group,
.jdw-product-inquiry__message {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.jdw-product-inquiry__message {
	margin-bottom: 18px;
}

.jdw-product-inquiry__field {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	color: #161616;
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	background: #fff;
	border: 1px solid #c7c6c4;
	border-radius: 0;
	outline: 1px solid transparent;
}

.jdw-product-inquiry textarea.jdw-product-inquiry__field {
	min-height: 112px;
	resize: vertical;
}

.jdw-product-inquiry__field:focus {
	border-color: #f65e1e;
	outline-color: #f65e1e;
	outline-offset: 1px;
}

.jdw-product-inquiry__submit {
	width: 100%;
	min-height: 54px;
	padding: 14px 24px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	background: #f65e1e;
	border: 1px solid #f65e1e;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.jdw-product-inquiry__submit:hover,
.jdw-product-inquiry__submit:focus-visible {
	background: #161616;
	border-color: #161616;
}

.jdw-product-inquiry__notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	font-size: 14px;
	border: 1px solid currentColor;
}

.jdw-product-inquiry__notice.is-success { color: #26743a; }
.jdw-product-inquiry__notice.is-error { color: #a52a2a; }
.jdw-product-inquiry__honeypot { position: absolute !important; left: -9999px !important; }

.jdw-product-faqs {
	margin-top: 24px;
}

.jdw-product-faqs__title {
	margin: 0 0 18px;
	font-size: 28px;
	line-height: 1.1;
}

.jdw-product-faqs__item {
	margin: 0;
	border-top: 1px solid #c7c6c4;
}

.jdw-product-faqs__item:last-child {
	border-bottom: 1px solid #c7c6c4;
}

.jdw-product-faqs__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 21px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.jdw-product-faqs__question::-webkit-details-marker { display: none; }

.jdw-product-faqs__chevron {
	flex: 0 0 12px;
	width: 12px;
	height: 12px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.2s ease;
}

.jdw-product-faqs__item[open] .jdw-product-faqs__question { color: #f65e1e; }
.jdw-product-faqs__item[open] .jdw-product-faqs__chevron { transform: rotate(225deg) translate(-2px, -2px); }

.jdw-product-faqs__answer {
	padding: 0 34px 24px 0;
	font-size: 15px;
	line-height: 1.65;
}

.jdw-product-faqs__answer > :first-child { margin-top: 0; }
.jdw-product-faqs__answer > :last-child { margin-bottom: 0; }

.jdw-product-recommendations,
.jdw-product-reviews {
	width: 100%;
}

.jdw-product-recommendations__heading {
	margin: 0;
	padding: 16px 0 48px;
	color: #282828;
	font-family: "Suisse Intl", sans-serif;
	font-size: 40px;
	font-weight: 800;
	line-height: 44px;
	text-align: center;
}

.jdw-product-recommendations__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	border-top: 1px solid #c7c6c4;
	border-bottom: 1px solid #c7c6c4;
}

.jdw-product-recommendations__card {
	display: flex;
	min-width: 0;
	min-height: 443px;
	flex-direction: column;
	padding: 32px 12px 16px;
	color: #282828;
	text-decoration: none;
	background: #fff;
	border-right: 1px solid #c7c6c4;
}

.jdw-product-recommendations__card:first-child {
	border-left: 1px solid #c7c6c4;
}

.jdw-product-recommendations__title {
	display: block;
	min-height: 64px;
	margin: 0 0 4px;
	color: #000;
	font-family: "Suisse Intl", sans-serif;
	font-size: 18px;
	font-weight: 800;
	line-height: 32px;
	text-align: center;
	transition: color 0.2s ease;
}

.jdw-product-recommendations__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.jdw-product-recommendations__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.3s ease;
}

.jdw-product-recommendations__image.is-hover { opacity: 0; }
.jdw-product-recommendations__card:hover .is-hover { opacity: 1; }

.jdw-product-recommendations__price {
	display: flex;
	min-height: 40px;
	align-items: flex-start;
	justify-content: center;
	margin-top: 24px;
	padding-top: 16px;
	color: #282828;
	font-family: "Suisse Intl", sans-serif;
	font-size: 16px;
	font-weight: 450;
	line-height: 24px;
	text-align: center;
}

.jdw-product-recommendations__price del { margin-right: 8px; opacity: 0.6; }
.jdw-product-recommendations__price ins { text-decoration: none; }
.jdw-product-recommendations__card:focus-visible { outline: 2px solid #f65e1e; outline-offset: -2px; }

.jdw-product-reviews {
	padding-top: 0;
}

.jdw-product-reviews__title-strip {
	padding: 0;
}

.jdw-product-reviews__title-shell {
	padding: 48px 32px;
	border-right: 1px solid #c7c6c4;
	border-left: 1px solid #c7c6c4;
}

.jdw-product-reviews__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	margin: 0;
	font-family: "Suisse Intl", sans-serif;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.jdw-product-reviews__stars {
	display: inline-flex;
	gap: 5px;
	color: #f65e1e;
	font-size: 30px;
	line-height: 1;
}

.jdw-product-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.jdw-product-reviews__card {
	display: flex;
	min-width: 0;
	min-height: 390px;
	flex-direction: column;
	align-items: flex-start;
	padding: 46px;
	border: 1px solid #c7c6c4;
}

.jdw-product-reviews__card + .jdw-product-reviews__card { border-left-width: 0; }

.jdw-product-reviews__headline {
	margin: 0 0 30px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
}

.jdw-product-reviews__body {
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.55;
}

.jdw-product-reviews__body p { margin: 0; }
.jdw-product-reviews__card > .jdw-product-reviews__stars { margin-top: auto; font-size: 28px; }

.jdw-product-reviews__author {
	margin: 14px 0 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
}

/* Woo description tab: use the site's square, bordered content language. */
.mdx-product-description.elementor-widget-woocommerce-product-data-tabs .woocommerce-tabs {
	padding: 0;
	background: #f9f8f6;
	border: 1px solid #c7c6c4;
}

.mdx-product-description .woocommerce-tabs ul.tabs {
	display: flex;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff;
	border-bottom: 1px solid #c7c6c4;
}

.mdx-product-description .woocommerce-tabs ul.tabs::before,
.mdx-product-description .woocommerce-tabs ul.tabs li::before,
.mdx-product-description .woocommerce-tabs ul.tabs li::after { display: none !important; }

.mdx-product-description .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-right: 1px solid #c7c6c4 !important;
	border-radius: 0 !important;
}

.mdx-product-description .woocommerce-tabs ul.tabs li a {
	padding: 18px 24px !important;
	color: #161616 !important;
	font-size: 15px;
	font-weight: 700 !important;
}

.mdx-product-description .woocommerce-tabs ul.tabs li.active a { color: #f65e1e !important; }

.mdx-product-description .woocommerce-Tabs-panel {
	margin: 0 !important;
	padding: 42px !important;
	color: #161616;
	font-size: 16px;
	line-height: 1.65;
}

.mdx-product-description .woocommerce-Tabs-panel > h2:first-child {
	margin-top: 0;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

@media (max-width: 1199px) {
	.jdw-product-recommendations__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.jdw-product-reviews__title-strip { padding: 0 32px; }
	.jdw-product-reviews__card { padding: 34px; }
}

@media (max-width: 767px) {
	.jdw-product-inquiry__options,
	.jdw-product-inquiry__contact { grid-template-columns: 1fr; }
	.jdw-product-inquiry__title { font-size: 26px; }
	.jdw-product-recommendations__heading { padding: 32px 0; font-size: 30px; line-height: 34px; }
	.jdw-product-recommendations__grid {
		grid-template-columns: none;
		grid-auto-columns: min(75vw, 310px);
		grid-auto-flow: column;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}
	.jdw-product-recommendations__card { min-height: 390px; scroll-snap-align: start; }
	.jdw-product-recommendations__title { min-height: 56px; font-size: 17px; line-height: 28px; }
	.jdw-product-reviews { padding-top: 0; }
	.jdw-product-reviews__title-strip { padding: 0; }
	.jdw-product-reviews__title-shell { padding: 34px 18px; border-right: 0; border-left: 0; }
	.jdw-product-reviews__heading { font-size: 30px; }
	.jdw-product-reviews__heading .jdw-product-reviews__stars { width: 100%; justify-content: center; font-size: 25px; }
	.jdw-product-reviews__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
	.jdw-product-reviews__card { flex: 0 0 86vw; min-height: 360px; padding: 28px; scroll-snap-align: start; }
	.jdw-product-reviews__card + .jdw-product-reviews__card { border-left-width: 0; }
	.mdx-product-description .woocommerce-tabs ul.tabs { overflow-x: auto; }
	.mdx-product-description .woocommerce-tabs ul.tabs li { flex: 0 0 auto; }
	.mdx-product-description .woocommerce-Tabs-panel { padding: 26px 20px !important; }
	.mdx-product-description .woocommerce-Tabs-panel > h2:first-child { font-size: 28px; }
}
