/**
 * Craftex Custom Single Product Page Layout Styles
 */

/* Main Container & Section Reset */
.craftex-single-product-page {
	background-color: #e4e2d7;
	color: #2b2b2a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	min-height: 100vh;
	padding: 60px 40px 0 40px;
	box-sizing: border-box;
}

.craftex-single-product-page.craftex-product-specs-widget,
.craftex-single-product-page.craftex-feature-showcase-widget {
	min-height: auto;
	padding: 0;
	background-color: transparent;
}

.craftex-feature-showcase-widget .craftex-feature-showcase-section {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	margin-top: 0;
}

/* Keep Feature Showcase images at the full height of their frames. */
.woocommerce .craftex-feature-showcase-widget img,
.woocommerce-page .craftex-feature-showcase-widget img {
	height: 100% !important;
}

.craftex-product-wrapper {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	gap: 42px;
	align-items: stretch;
	width: 100%;
}

/* Left Column: Product Featured Image */
.craftex-product-gallery {
	width: 33%;
	max-width: 33%;
	flex: 0 1 33%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.craftex-product-main-image {
	width: 100%;
	max-width: 100%;
	min-height: 0;
	height: 100%;
	border: none;
	background: #fff;
	overflow: hidden;
	box-shadow: none;
	box-sizing: border-box;
	flex: 1;
}

.craftex-product-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Desktop Gallery Decoupling (Option 1): Prevent image natural aspect ratio from expanding container height */
@media (min-width: 1025px) {
	.craftex-product-gallery {
		position: relative;
	}

	.craftex-product-main-image {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100% !important;
	}
}

.craftex-product-main-image .craftex-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: #dedcd0;
	color: #777670;
	font-size: 14px;
}

/* Right Column: Specifications & Content */
.craftex-product-details {
	width: 66%;
	max-width: 66%;
	flex: 0 1 66%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 0;
	align-self: center;
	height: auto;
}

/* Top Section Wrapper (Top Bar + Specs Grid) */
.craftex-product-top-section {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* Top Bar: SKU Title Left, Breadcrumbs Right */
.craftex-product-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

/* Category Path Breadcrumbs */
.craftex-product-breadcrumbs {
	text-align: right;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: #6d6b63;
	text-transform: uppercase;
	padding-top: 6px;
}

.craftex-product-breadcrumbs a {
	color: #6d6b63;
	text-decoration: none;
	transition: color 0.2s ease;
}

.craftex-product-breadcrumbs a:hover,
.craftex-product-breadcrumbs a:focus-visible {
	color: #111;
}

/* Product Titles */
.craftex-product-header {
	display: flex;
	flex-direction: column;
}

.craftex-product-sku {
	font-size: 36px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.craftex-product-material {
	font-size: 24px;
	font-weight: 300;
	color: #4a4943;
	margin: 8px 0 0 0;
	line-height: 1.2;
}

/* Specifications Grid (Type & Size) */
.craftex-product-specs-grid {
	display: grid;
	grid-template-columns: 125px 1fr;
	gap: 28px;
	margin-top: 44px;
}

/* Original Product Specs: share the row equally, or fill it with the sole enabled spec. */
@media (min-width: 768px) {
	[data-craftex-design-widget="single-product-specs"] .craftex-product-specs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

[data-craftex-design-widget="single-product-specs"] .craftex-product-specs-grid > .craftex-spec-group {
	min-width: 0;
	overflow-wrap: anywhere;
}

[data-craftex-design-widget="single-product-specs"] .craftex-product-specs-grid > .craftex-spec-group:only-child {
	grid-column: 1 / -1;
}

.craftex-spec-group {
	display: flex;
	flex-direction: column;
}

.craftex-spec-label {
	font-size: 18px;
	font-weight: 700;
	color: #2b2b2a;
	margin-bottom: 12px;
}

.craftex-spec-value {
	font-size: 14px;
	line-height: 1.6;
	color: #77756d;
}

.craftex-spec-value-line {
	display: block;
	margin-bottom: 4px;
}

/* ==========================================================================
   Color Swatches Section (2 Rows x 11 Columns)
   ========================================================================== */
.craftex-product-color-section {
	margin-top: 24px;
	margin-bottom: 24px;
	width: 100%;
}

.craftex-color-spec-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.craftex-selected-color-name {
	font-size: 14px;
	color: #77756d;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: color 0.2s ease;
}

.craftex-color-grid {
	display: grid;
	grid-template-columns: repeat(11, minmax(0, 1fr));
	gap: 8px 10px;
	width: 100%;
	box-sizing: border-box;
}

/* Original widget: fixed cells, capped row count, natural wrapping. */
[data-craftex-design-widget="single-product-specs"] .craftex-color-grid {
	--craftex-swatches-column-limit: clamp(1, var(--craftex-swatches-max-columns, 11), 11);
	width: min(100%, calc(var(--craftex-swatches-column-limit) * var(--craftex-swatches-cell-width, 64px) + (var(--craftex-swatches-column-limit) - 1) * var(--craftex-swatches-gap, 18px)));
	grid-template-columns: repeat(auto-fill, min(100%, var(--craftex-swatches-cell-width, 64px))) !important;
	gap: var(--craftex-swatches-gap, 18px);
	row-gap: var(--craftex-swatches-row-gap, var(--craftex-swatches-gap, 18px)) !important;
	justify-content: start;
	justify-items: center;
	min-width: 0;
	max-width: 100%;
}

@media (max-width: 1024px) {
	[data-craftex-design-widget="single-product-specs"] .craftex-color-grid { --craftex-swatches-max-columns: 6; }
}
@media (max-width: 767px) {
	[data-craftex-design-widget="single-product-specs"] .craftex-color-grid { --craftex-swatches-max-columns: 4; }
}

/* Swatch Button Reset & High Specificity Override against Theme Resets (e.g. Hello Elementor) */
button.craftex-color-swatch-btn,
.craftex-color-grid button.craftex-color-swatch-btn,
.craftex-color-grid [type="button"].craftex-color-swatch-btn,
.craftex-color-swatch-btn {
	width: 100% !important;
	max-width: 44px !important;
	aspect-ratio: 1 / 1 !important;
	height: auto !important;
	border-radius: 50% !important;
	-webkit-border-radius: 50% !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	outline: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
	position: relative !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	background-position: center !important;
	display: inline-block !important;
	line-height: 1 !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	vertical-align: middle !important;
}

[data-craftex-design-widget="single-product-specs"] .craftex-color-grid button.craftex-color-swatch-btn {
	width: min(100%, var(--craftex-swatches-diameter, 34px)) !important;
	max-width: var(--craftex-swatches-diameter, 34px) !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	aspect-ratio: 1 / 1 !important;
}

button.craftex-color-swatch-btn:hover,
button.craftex-color-swatch-btn:focus,
.craftex-color-grid button.craftex-color-swatch-btn:hover,
.craftex-color-grid button.craftex-color-swatch-btn:focus,
.craftex-color-swatch-btn:hover,
.craftex-color-swatch-btn:focus {
	transform: scale(1.08) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
	opacity: 1 !important;
}

button.craftex-color-swatch-btn.is-active,
.craftex-color-grid button.craftex-color-swatch-btn.is-active,
.craftex-color-grid [type="button"].craftex-color-swatch-btn.is-active,
.craftex-color-swatch-btn.is-active {
	border: none !important;
	outline: none !important;
	box-shadow: 0 0 0 2px #2b2b2a !important;
}

/* ==========================================================================
   Accordion Section (Highlight & Features)
   ========================================================================== */
.craftex-product-accordion {
	width: 100%;
	border-top: 1px solid #b8b5ac;
	border-bottom: 1px solid #b8b5ac;
	margin-top: 20px;
	margin-bottom: 32px;
	box-sizing: border-box;
}

.craftex-accordion-item {
	border-bottom: 1px solid #b8b5ac;
}

.craftex-accordion-item:last-child {
	border-bottom: none;
}

/* Accordion Header Reset against Theme Button Styles (e.g. Hello Elementor) */
button.craftex-accordion-header,
.craftex-product-accordion button.craftex-accordion-header,
.craftex-product-accordion [type="button"].craftex-accordion-header,
.craftex-accordion-header {
	width: 100% !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-top: none !important;
	border-right: none !important;
	border-bottom: none !important;
	border-left: none !important;
	border-radius: 0 !important;
	-webkit-border-radius: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 18px;
	padding-bottom: 18px;
	margin: 0 !important;
	cursor: pointer !important;
	text-align: left !important;
	transition: opacity 0.2s ease !important;
	box-shadow: none !important;
	outline: none !important;
	color: inherit !important;
	font-family: inherit !important;
	line-height: normal !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

button.craftex-accordion-header:hover,
button.craftex-accordion-header:focus,
.craftex-product-accordion button.craftex-accordion-header:hover,
.craftex-product-accordion button.craftex-accordion-header:focus,
.craftex-accordion-header:hover,
.craftex-accordion-header:focus {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	opacity: 0.85 !important;
	color: inherit !important;
}

.craftex-accordion-title {
	font-size: 20px;
	font-weight: 700;
	color: #2b2b2a;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.craftex-accordion-icon {
	font-size: 20px;
	font-weight: 400;
	color: #2b2b2a;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	user-select: none;
}

.craftex-accordion-icon .craftex-icon-closed {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.craftex-accordion-icon .craftex-icon-opened {
	display: none;
	align-items: center;
	justify-content: center;
}

.craftex-accordion-item.is-open .craftex-accordion-icon .craftex-icon-closed {
	display: none !important;
}

.craftex-accordion-item.is-open .craftex-accordion-icon .craftex-icon-opened {
	display: inline-flex !important;
}

.craftex-accordion-icon svg {
	width: 1em;
	height: 1em;
	display: inline-block;
	fill: currentColor;
	stroke: currentColor;
	vertical-align: middle;
}

.craftex-accordion-icon i {
	font-size: inherit;
	line-height: 1;
	display: inline-block;
}

.craftex-accordion-icon img.craftex-accordion-custom-icon {
	width: 20px;
	height: 20px;
	object-fit: contain;
	display: block;
}

.craftex-accordion-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
}

.craftex-accordion-item.is-open .craftex-accordion-body {
	grid-template-rows: 1fr;
}

.craftex-accordion-inner {
	min-height: 0;
	overflow: hidden;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.craftex-accordion-item.is-open .craftex-accordion-inner {
	visibility: visible;
	opacity: 1;
}

/* Highlight Panel */
.craftex-highlight-content {
	padding-bottom: 22px;
	font-size: 14px;
	line-height: 1.65;
	color: #4a4943;
	letter-spacing: 0.01em;
}

.craftex-highlight-content p {
	margin: 0 0 10px 0;
}

.craftex-highlight-content p:last-child {
	margin-bottom: 0;
}

/* Features Panel: Single row of circular line-art icons */
.craftex-features-single-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 8px 0 24px 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.craftex-features-single-row::-webkit-scrollbar {
	display: none;
}

.craftex-feature-badge-circle {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none !important;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: transparent;
	transition: transform 0.2s ease, opacity 0.2s ease;
	box-sizing: border-box;
	padding: 0;
}

.craftex-feature-badge-circle:hover {
	transform: translateY(-2px);
	opacity: 0.8;
}

.craftex-feature-badge-circle img {
	max-width: 90%;
	max-height: 90%;
	width: 33px;
	height: 33px;
	object-fit: contain;
}

.craftex-feature-badge-circle svg {
	width: 33px;
	height: 33px;
	stroke: #66645c;
	fill: none;
	transition: stroke 0.2s ease;
}

.craftex-feature-badge-circle:hover svg {
	stroke: #2b2b2a;
}

/* Smooth transition on image during color switch */
.craftex-product-main-image img {
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.craftex-product-main-image.is-switching img {
	opacity: 0.35;
	transform: scale(0.98);
}

/* Responsive grid adjustments */
@media (max-width: 1024px) {
	.craftex-color-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.craftex-color-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Bottom Section Wrapper (Badges Row + Bottom Area) */
.craftex-product-bottom-section {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* Repeater Feature Badges Row (Desktop: Fixed 8 Columns Grid) */
.craftex-product-badges-row {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 64px));
	gap: 12px 18px;
	margin-bottom: 20px;
	width: 100%;
	box-sizing: border-box;
}

.craftex-badge-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 64px;
	box-sizing: border-box;
	text-align: center;
}

.craftex-badge-icon-circle {
	width: 44px;
	height: 44px;
	border-radius: 0;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
	background: transparent;
	transition: transform 0.2s ease;
}

.craftex-badge-card:hover .craftex-badge-icon-circle {
	transform: translateY(-2px);
}

.craftex-badge-icon-circle img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.craftex-badge-icon-circle svg {
	width: 100%;
	height: 100%;
	stroke: #66645c;
	fill: none;
}

.craftex-badge-label {
	font-size: 12px;
	color: #66645c;
	font-weight: 500;
	line-height: 1.2;
}

/* Bottom Area: Disclaimer & Buttons */
.craftex-product-bottom-area {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

/* Disclaimer text */
.craftex-product-disclaimer {
	font-size: 10px;
	color: #88867d;
}

/* Action Download Buttons Grid */
.craftex-download-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	border: 1px solid #99968c;
	background: transparent;
	color: #2b2b2a;
	text-decoration: none;
	font-family: Consolas, Monaco, "Courier New", monospace, sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	transition: all 0.25s ease;
	box-sizing: border-box;
	width: 240px;
}

.craftex-download-btn:hover {
	background: rgba(0, 0, 0, 0.04);
	border-color: #1a1a1a;
	color: #000;
}

.craftex-download-btn .craftex-btn-arrow {
	font-size: 16px;
	margin-left: 10px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.craftex-download-btn .craftex-btn-arrow svg,
.craftex-download-btn .craftex-btn-arrow i,
.craftex-download-btn .craftex-btn-arrow .craftex-custom-icon {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.craftex-download-btn img.craftex-custom-btn-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	margin-left: 10px;
}

.craftex-product-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* ==========================================================================
   SECTION 2: FEATURE SHOWCASE SECTION (3-LAYER VISUAL DESIGN)
   ========================================================================== */

.craftex-feature-showcase-section {
	position: relative;
	width: calc(100% + 80px);
	margin-left: -40px;
	margin-right: -40px;
	margin-top: 100px;
	padding: 100px 40px;
	box-sizing: border-box;
	overflow: hidden;
}

/* Layer 1: Background Color (Clean - No Grid Pattern) */
.craftex-layer-bg-color {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	background-color: #e4e2d7;
}

/* Background Shape Layer (Referenced from Footer widget) */
.craftex-feature-showcase__shape {
	align-items: flex-end;
	bottom: var(--feature-shape-bottom, 24px);
	display: flex;
	justify-content: var(--feature-shape-position, center);
	left: 0;
	overflow: hidden;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;
}

.craftex-feature-showcase__shape img {
	display: block;
	height: auto;
	max-height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: bottom var(--feature-shape-position, center);
	width: var(--feature-shape-width, 100%);
}

.craftex-feature-showcase__shape-image--mobile {
	display: none !important;
}

@media (max-width: 767px) {
	.craftex-feature-showcase__shape--has-mobile .craftex-feature-showcase__shape-image--desktop {
		display: none;
	}

	.craftex-feature-showcase__shape--has-mobile .craftex-feature-showcase__shape-image--mobile {
		display: block !important;
	}
}

/* Layer 2: Optional Middle Layer Picture Overlay */
.craftex-layer-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	pointer-events: none;
}

/* Layer 3: Foreground Content Container */
.craftex-layer-content {
	position: relative;
	z-index: 3;
	max-width: 100%;
}

.craftex-showcase-container {
	display: flex;
	flex-direction: column;
	gap: 70px;
}

/* 100vh / Full Screen Flex Layout Mode */
.craftex-feature-showcase-section.mode-full_screen,
.craftex-height-full_screen .craftex-feature-showcase-section {
	min-height: 100vh;
	height: 100vh;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.craftex-feature-showcase-section.mode-full_screen .craftex-layer-content,
.craftex-height-full_screen .craftex-layer-content {
	flex: 1 1 auto;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.craftex-feature-showcase-section.mode-full_screen .craftex-showcase-container,
.craftex-height-full_screen .craftex-showcase-container {
	flex: 1 1 auto;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

.craftex-feature-showcase-section.mode-full_screen .craftex-showcase-upper-div,
.craftex-height-full_screen .craftex-showcase-upper-div,
.craftex-feature-showcase-section.mode-full_screen .craftex-showcase-lower-div,
.craftex-height-full_screen .craftex-showcase-lower-div {
	width: 100%;
	flex: 0 0 auto;
}

@media (max-width: 767px) {

	.craftex-feature-showcase-section.mode-full_screen,
	.craftex-height-full_screen .craftex-feature-showcase-section {
		height: auto !important;
		min-height: auto !important;
	}
}

/* UPPER DIV: Title (Left) & Description + Full Video Button (Right) */
.craftex-showcase-upper-div {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 50px;
	align-items: start;
}

@media (max-width: 767px) {
	.craftex-showcase-upper-div {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.craftex-showcase-title-col {
	width: 100%;
}

.craftex-showcase-title {
	font-size: 38px;
	font-weight: 400;
	color: #2b2b2a;
	margin: 0;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.craftex-showcase-desc-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.craftex-showcase-description {
	font-size: 14px;
	line-height: 1.75;
	color: #6d6b63;
	margin-bottom: 25px;
	width: 100%;
	max-width: none;
	text-align: justify;
}

/* High-specificity Button Override & Enforced Layout */
button.craftex-full-video-btn,
button[type="button"].craftex-full-video-btn,
.craftex-single-product-page button.craftex-full-video-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 0 !important;
	width: 240px !important;
	height: 33px !important;
	min-height: 33px !important;
	padding: 0 20px !important;
	border: 1px solid #757575;
	border-radius: 0 !important;
	background-color: transparent;
	color: #2b2b2a;
	font-family: "OCRBLetterpressMW01-Regular", "OCR B Std", "Courier New", monospace;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.14em;
	cursor: pointer;
	transition: all 0.25s ease;
	box-sizing: border-box !important;
	outline: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	line-height: normal !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

button.craftex-full-video-btn:hover,
button[type="button"].craftex-full-video-btn:hover,
.craftex-single-product-page button.craftex-full-video-btn:hover {
	background-color: rgba(0, 0, 0, 0.04) !important;
	border-color: #1a1a1a !important;
	color: #000 !important;
}

button.craftex-full-video-btn.has-no-icon,
button[type="button"].craftex-full-video-btn.has-no-icon,
.craftex-full-video-btn.has-no-icon,
.craftex-single-product-page button.craftex-full-video-btn.has-no-icon,
.craftex-feature-showcase-widget .craftex-full-video-btn.has-no-icon {
	justify-content: center !important;
}

.craftex-full-video-btn .craftex-play-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 15px;
	border: none;
	border-radius: 0;
	background: transparent;
	padding: 0;
	box-sizing: border-box;
}

.craftex-play-icon-box img.craftex-custom-btn-icon,
.craftex-play-icon-box svg,
.craftex-play-icon-box i {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* LOWER DIV: Feature Comparison Cards Repeater */
.craftex-showcase-lower-div {
	display: grid;
	width: 100%;
}

/* Dynamic Column Layouts */
.craftex-showcase-lower-div.cols-3 {
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.craftex-showcase-lower-div.cols-2 {
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	max-width: calc(((100% - 60px) / 3) * 2 + 30px);
	margin: 0 auto;
}

.craftex-showcase-lower-div.cols-1 {
	grid-template-columns: 1fr;
	max-width: calc((100% - 60px) / 3);
	margin: 0 auto;
}

/* Individual Comparison Card */
.craftex-comparison-card {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.craftex-card-header-title {
	text-align: right !important;
	font-family: "OCRBLetterpressMW01-Regular";
	font-style: normal;
	font-size: 13px;
	font-weight: 400;
	color: #55534c;
	letter-spacing: normal;
	line-height: 14px;
	margin-bottom: 12px;
	margin-top: 0;
	text-transform: none;
	width: 100%;
}

.craftex-card-comparison-box {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: transparent;
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	width: 100%;
}

.craftex-card-comparison-box.mode-single {
	grid-template-columns: 1fr;
}

.craftex-sub-card {
	position: relative;
	aspect-ratio: 1.05 / 1;
	background: #3e281b;
	overflow: hidden;
	width: 100%;
}

.craftex-sub-card.single-veneer {
	aspect-ratio: 2.09 / 1.29;
}

.craftex-sub-card img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.craftex-sub-card .craftex-img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #4a3427, #2b1c13);
}

.craftex-sub-card .craftex-sub-label {
	position: absolute;
	top: 14px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 11px;
	color: #e5e3d8;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	z-index: 2;
}

button.craftex-picture-play-btn,
button[type="button"].craftex-picture-play-btn {
	position: absolute !important;
	bottom: 14px !important;
	right: 14px !important;
	width: 34px;
	height: 34px;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	color: #fff;
	border-radius: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin: 0 !important;
	transition: transform 0.2s ease, opacity 0.2s ease;
	backdrop-filter: none !important;
	box-shadow: none !important;
	z-index: 2 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.craftex-picture-play-btn:hover {
	background: transparent;
	border: none !important;
	transform: scale(1.08);
	opacity: 0.85;
}

.craftex-picture-play-btn img.craftex-custom-btn-icon,
.craftex-picture-play-btn svg,
.craftex-picture-play-btn i {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* LIGHTBOX VIDEO MODAL */
.craftex-video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.craftex-video-modal.is-active {
	opacity: 1;
	pointer-events: auto;
}

.craftex-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(5px);
}

.craftex-modal-dialog {
	position: relative;
	width: 90%;
	max-width: 900px;
	z-index: 2;
}

button.craftex-modal-close,
button[type="button"].craftex-modal-close,
.craftex-video-modal button.craftex-modal-close {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: absolute !important;
	top: -48px !important;
	right: 0 !important;
	width: 36px !important;
	height: 36px !important;
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.15) !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-decoration: none !important;
	transition: all 0.25s ease !important;
	z-index: 10 !important;
	box-sizing: border-box !important;
}

button.craftex-modal-close:hover,
button.craftex-modal-close:focus,
button.craftex-modal-close:active,
button[type="button"].craftex-modal-close:hover {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
	background: rgba(255, 255, 255, 0.35) !important;
	color: #ffffff !important;
	transform: scale(1.08) !important;
}

/* Icon Font (<i>), SVG, and Uploaded Image Sizing inside Close Button */
.craftex-modal-close i {
	font-size: 16px;
	line-height: 1 !important;
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: middle !important;
}

.craftex-modal-close i:before,
.craftex-modal-close i:after {
	line-height: 1 !important;
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.craftex-modal-close svg,
.craftex-modal-close img {
	display: block !important;
	width: 16px;
	height: 16px;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	margin: 0 !important;
	padding: 0 !important;
}

.craftex-modal-body {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.craftex-modal-body iframe,
.craftex-modal-body video {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES (<= 768px)
   Matching Mobile Mockup Design Exactly
   ========================================================================== */

@media (max-width: 768px) {
	.craftex-single-product-page {
		padding: 40px 30px 0 30px;
	}

	.craftex-product-wrapper {
		flex-direction: column;
		gap: 0;
		width: 100%;
	}

	/* 1st Element: Product Featured Image; dimensions and alignment come from Elementor controls. */
	.craftex-product-gallery,
	.craftex-single-product-page .craftex-product-gallery,
	.craftex-product-specs-widget .craftex-product-gallery {
		margin-bottom: 30px;
		order: 1;
	}

	/* Flatten containers for flexible flex reordering on mobile */
	.craftex-product-details,
	.craftex-single-product-page .craftex-product-details,
	.craftex-product-specs-widget .craftex-product-details,
	.craftex-product-top-section,
	.craftex-product-bottom-section,
	.craftex-product-bottom-area {
		display: flex;
		flex-direction: column;
		height: auto;
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
	}

	.craftex-product-details {
		gap: 10px;
		order: 2;
	}

	/* Hide category breadcrumbs on mobile */
	.craftex-product-breadcrumbs {
		display: none;
	}

	/* 2nd Element: SKU Number & Material */
	.craftex-product-top-bar {
		order: 1;
		display: block;
		margin-bottom: 25px;
	}

	.craftex-product-sku {
		font-size: 32px;
		margin-bottom: 4px;
	}

	.craftex-product-material {
		font-size: 22px;
		margin-top: 0;
	}

	/* 3rd Element: Type & Size Specs */
	.craftex-product-specs-grid {
		order: 2;
		display: flex;
		flex-direction: column;
		gap: 20px;
		margin-top: 0;
		margin-bottom: 25px;
	}

	/* Keep swatches after the Type / Size block in the mobile flex layout. */
	.craftex-product-color-section {
		order: 3;
		margin-top: 0;
	}

	.craftex-spec-label {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.craftex-spec-value {
		font-size: 13px;
	}

	/* 3rd Element Part B: Stacked Download Action Buttons */
	.craftex-product-downloads {
		order: 3;
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		margin-bottom: 40px;
		width: 100%;
	}

	.craftex-download-btn {
		padding: 12px 18px;
		font-size: 12.5px;
		width: 100% !important;
		max-width: 100% !important;
	}

	/* 4th Element: Feature Icons Badges Repeater (4-Column Grid: 4 Top, 4 Bottom) */
	.craftex-product-badges-row {
		order: 4;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 24px 10px;
		justify-items: center;
		margin-bottom: 0;
		width: 100%;
	}

	.craftex-badge-card {
		width: 100%;
		max-width: 70px;
	}

	.craftex-badge-icon-circle {
		width: 48px;
		height: 48px;
		margin-bottom: 6px;
	}

	.craftex-badge-label {
		font-size: 11px;
	}

	.craftex-product-disclaimer {
		display: none;
	}

	/* Feature Showcase Section Mobile Adjustments */
	.craftex-feature-showcase-section,
	.craftex-feature-showcase-widget .craftex-feature-showcase-section,
	.craftex-single-product-page.craftex-feature-showcase-widget .craftex-feature-showcase-section {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	.craftex-layer-content,
	.craftex-showcase-container {
		width: 100% !important;
		max-width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: auto !important;
		margin-right: auto !important;
		box-sizing: border-box !important;
		gap: 60px !important;
	}

	.craftex-showcase-upper-div,
	.craftex-single-product-page .craftex-showcase-upper-div,
	.craftex-feature-showcase-widget .craftex-showcase-upper-div {
		display: flex !important;
		flex-direction: column !important;
		grid-template-columns: 1fr !important;
		gap: 20px !important;
		text-align: left !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.craftex-showcase-title-col,
	.craftex-single-product-page .craftex-showcase-title-col,
	.craftex-feature-showcase-widget .craftex-showcase-title-col {
		order: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.craftex-showcase-title {
		font-size: 34px;
		font-weight: 300;
		text-align: left;
		margin: 0;
	}

	.craftex-showcase-desc-col,
	.craftex-single-product-page .craftex-showcase-desc-col,
	.craftex-feature-showcase-widget .craftex-showcase-desc-col {
		order: 2 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		text-align: left !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.craftex-showcase-description {
		font-size: 14px;
		line-height: 1.7;
		margin-bottom: 20px;
		text-align: left;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		word-break: break-word;
	}

	button.craftex-full-video-btn,
	button[type="button"].craftex-full-video-btn,
	.craftex-full-video-btn,
	.craftex-single-product-page button.craftex-full-video-btn,
	.craftex-feature-showcase-widget .craftex-full-video-btn {
		width: 100% !important;
		max-width: 100% !important;
		height: 33px !important;
		min-height: 33px !important;
		max-height: 33px !important;
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-between !important;
		gap: 0 !important;
		align-items: center !important;
		padding: 0 16px !important;
		font-size: 13px !important;
		box-sizing: border-box !important;
	}

	.craftex-showcase-lower-div.cols-3,
	.craftex-showcase-lower-div.cols-2,
	.craftex-showcase-lower-div.cols-1 {
		grid-template-columns: 1fr !important;
		gap: 36px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.craftex-comparison-card,
	.craftex-single-product-page .craftex-comparison-card,
	.craftex-feature-showcase-widget .craftex-comparison-card {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.craftex-card-comparison-box,
	.craftex-single-product-page .craftex-card-comparison-box,
	.craftex-feature-showcase-widget .craftex-card-comparison-box {
		order: 1 !important;
		width: 342px !important;
		max-width: 100% !important;
		height: 210.58px !important;
		margin: 0 auto !important;
		overflow: hidden !important;
		box-sizing: border-box !important;
	}

	.craftex-sub-card,
	.craftex-single-product-page .craftex-sub-card,
	.craftex-feature-showcase-widget .craftex-sub-card {
		height: 210.58px !important;
		height: 100% !important;
		aspect-ratio: auto !important;
		position: relative !important;
		overflow: hidden !important;
	}

	.craftex-sub-card img,
	.craftex-sub-card .craftex-img-placeholder,
	.craftex-single-product-page .craftex-sub-card img,
	.craftex-feature-showcase-widget .craftex-sub-card img {
		width: 100% !important;
		height: 210.58px !important;
		height: 100% !important;
		object-fit: cover !important;
		display: block !important;
	}

	.craftex-sub-card .craftex-sub-label {
		display: block !important;
		position: absolute !important;
		top: 10px !important;
		left: 4px !important;
		right: 4px !important;
		text-align: right !important;
		font-size: 11px !important;
		color: #e5e3d8 !important;
		font-weight: 400 !important;
		letter-spacing: 0.02em !important;
		text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
		z-index: 2 !important;
	}

	.craftex-card-header-title,
	.craftex-single-product-page .craftex-card-header-title,
	.craftex-feature-showcase-widget .craftex-card-header-title {
		order: 2 !important;
		text-align: center !important;
		margin-top: 10px !important;
		margin-bottom: 0 !important;
		font-size: 12px !important;
		width: 342px !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
}

@media (max-width: 1024px) {
	.craftex-product-navigation__media { position: relative; }
}
.craftex-product-navigation__media > .craftex-product-navigation__image.is-incoming { position: absolute; inset: 0; }
/* Navigation for the original Core Product Specs widget. Images retain a fixed frame during crossfades. */
.craftex-product-navigation__media > .craftex-product-navigation__image {
	width: 100%;
	height: 100%;
	transform: none;
}
.craftex-product-navigation__navigation[hidden] { display: none !important; }
.craftex-product-navigation__navigation {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	transition: opacity 220ms ease;
}
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:hover,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:focus,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:focus-visible,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:active,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:disabled {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: absolute;
	top: 50%;
	transform: translateY(-50%) !important;
	z-index: 1;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: max(44px, var(--craftex-product-nav-hit-size, 44px));
	height: max(44px, var(--craftex-product-nav-hit-size, 44px));
	min-width: 44px;
	min-height: 44px;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	background-image: none !important;
	background-color: rgba(0, 0, 0, var(--craftex-product-nav-opacity, .2)) !important;
	background-color: color-mix(in srgb, var(--craftex-product-nav-overlay-color, #000) calc(var(--craftex-product-nav-opacity, .2) * 100%), transparent) !important;
	color: var(--craftex-product-nav-color, #fff) !important;
	font-size: var(--craftex-product-nav-icon-size, 26px);
	line-height: 1 !important;
	text-decoration: none !important;
	text-shadow: none !important;
	opacity: 1;
	pointer-events: auto;
	cursor: pointer;
	transition: background-color 220ms ease, color 220ms ease, opacity 220ms ease;
}
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow::before,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow::after { content: none !important; display: none !important; }
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow[data-craftex-product-direction="prev"] { left: var(--craftex-product-nav-inset, 24px); right: auto; }
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow[data-craftex-product-direction="next"] { right: var(--craftex-product-nav-inset, 24px); left: auto; }
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow svg { width: var(--craftex-product-nav-icon-size, 26px); height: var(--craftex-product-nav-icon-size, 26px); }
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow i { font-size: inherit; color: inherit; }
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:hover,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:focus,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:focus-visible,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:active {
	color: var(--craftex-product-nav-hover-color, #fff) !important;
	background-color: rgba(0, 0, 0, var(--craftex-product-nav-hover-opacity, .32)) !important;
	background-color: color-mix(in srgb, var(--craftex-product-nav-overlay-color, #000) calc(var(--craftex-product-nav-hover-opacity, .32) * 100%), transparent) !important;
}
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:focus-visible {
	outline: 2px solid #1d82ea !important;
	outline-offset: 2px !important;
}
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:disabled,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:disabled:hover,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:disabled:focus,
.craftex-product-specs-widget .craftex-product-navigation__navigation button.craftex-product-navigation__arrow:disabled:active {
	color: var(--craftex-product-nav-color, #fff) !important;
	background-color: rgba(0, 0, 0, var(--craftex-product-nav-opacity, .2)) !important;
	background-color: color-mix(in srgb, var(--craftex-product-nav-overlay-color, #000) calc(var(--craftex-product-nav-opacity, .2) * 100%), transparent) !important;
	opacity: .3;
	cursor: default;
}
.craftex-product-navigation__media:focus-visible { outline: 2px solid #1d82ea; outline-offset: -3px; }
.craftex-product-navigation__status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
	.craftex-product-navigation__media[data-craftex-product-visibility="hover"] .craftex-product-navigation__navigation { opacity: 0; }
	.craftex-product-navigation__media[data-craftex-product-visibility="hover"]:hover .craftex-product-navigation__navigation,
	.craftex-product-navigation__media[data-craftex-product-visibility="hover"]:focus-within .craftex-product-navigation__navigation { opacity: 1; }
}
@media (max-width: 767px) {
	.craftex-product-navigation__media { --craftex-product-nav-icon-size: 22px; --craftex-product-nav-inset: 12px; }
	.craftex-product-navigation__media.has-craftex-product-swipe { touch-action: pan-y pinch-zoom; }
}
@media (prefers-reduced-motion: reduce) {
	.craftex-product-navigation__navigation,
	.craftex-product-navigation__arrow { transition-duration: .01ms !important; }
}
