/**
 * GH-W004 v2 native WooCommerce and Theme Builder compatibility.
 *
 * All page composition remains in Elementor. These rules only normalize native
 * product markup inside the approved v2 root.
 */

.gh-w004-v2 {
	--gh-w004-v2-border: var(--gh-color-border, #dde3e5);
	--gh-w004-v2-muted: var(--gh-color-muted, #6b7280);
	--gh-w004-v2-primary: var(--gh-color-primary, #23bcad);
	--gh-w004-v2-primary-dark: var(--gh-color-primary-dark, #0e8f8c);
	--gh-w004-v2-surface: var(--gh-color-surface, #f7f8f8);
	--gh-w004-v2-tag-accent: #d69a00;
	--gh-w004-v2-text: var(--gh-color-ink, #1f2a2f);
}

.gh-w004-v2 .gh-w004-v2__hero {
	align-items: flex-start;
}

@media (min-width: 1025px) {
	.gh-w004-v2 .gh-w004-v2__hero > .e-con-inner {
		align-items: start;
		display: grid;
		gap: 24px 48px;
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}

	.gh-w004-v2 .gh-w004-v2__hero > .e-con-inner > .gh-w004-v2__gallery {
		--width: 100%;
		grid-column: 1;
		grid-row: 1;
	}

	.gh-w004-v2 .gh-w004-v2__hero > .e-con-inner > .gh-w004-v2__buy-box {
		--width: 100%;
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.gh-w004-v2 .gh-w004-v2__hero > .e-con-inner > .gh-w004-v2__specifications {
		--width: 100%;
		grid-column: 1;
		grid-row: 2;
	}
}

.gh-w004-v2 .elementor-widget-woocommerce-product-images .woocommerce-product-gallery,
.gh-w004-v2 .elementor-widget-woocommerce-product-images .images {
	margin: 0;
	width: 100%;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-images .flex-control-thumbs {
	gap: 10px;
	margin-top: 14px;
}

@media (min-width: 1025px) {
	.gh-w004-v2 .klb-flexslider-thumbnail.horizontal .flex-viewport {
		height: auto !important;
	}

	.gh-w004-v2 .klb-flexslider-thumbnail.horizontal .flex-control-thumbs {
		display: flex;
		gap: 10px;
		transform: none !important;
		width: 100% !important;
	}

	.gh-w004-v2 .klb-flexslider-thumbnail.horizontal .flex-control-thumbs > li {
		flex: 1 1 0;
		min-width: 0;
		padding: 0;
		width: auto !important;
	}

	.gh-w004-v2 .klb-flexslider-thumbnail.horizontal .flex-control-thumbs > li > img {
		aspect-ratio: 1;
		display: block;
		height: auto;
		object-fit: contain;
		padding: 6px;
		width: 100%;
	}
}

.gh-w004-v2 .woocommerce-product-gallery .flex-control-paging,
.gh-w004-v2 .woocommerce-product-gallery .flex-direction-nav {
	display: none;
}

.gh-w004-v2 .product_title {
	color: var(--gh-w004-v2-text);
	font-family: var(--gh-font-family, Inter), sans-serif;
	font-size: clamp(32px, 3.1vw, 44px);
	font-weight: 700;
	line-height: 1.12;
	margin: 0;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-price .price {
	color: var(--gh-w004-v2-primary-dark);
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 700;
	line-height: 1.2;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-short-description {
	color: var(--gh-w004-v2-muted);
	font-size: 15px;
	line-height: 1.65;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-stock .stock {
	align-items: center;
	background: var(--gh-color-success-surface);
	border: 1px solid var(--gh-w004-v2-primary);
	border-radius: 999px;
	color: var(--gh-w004-v2-primary-dark);
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	gap: 8px;
	margin: 0;
	padding: 6px 12px;
	width: fit-content;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-stock.gh-product-stock-tags-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gh-w004-v2 .gh-product-tag-list {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gh-w004-v2 .gh-product-tag-pill {
	align-items: center;
	background: transparent;
	border: 1px solid var(--gh-w004-v2-tag-accent);
	border-radius: 999px;
	color: var(--gh-w004-v2-tag-accent);
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	min-height: 30px;
	padding: 6px 12px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
	width: auto;
}

.gh-w004-v2 .gh-product-tag-pill:hover,
.gh-w004-v2 .gh-product-tag-pill:focus-visible {
	background: var(--gh-w004-v2-tag-accent);
	border-color: var(--gh-w004-v2-tag-accent);
	color: #fff;
	text-decoration: none;
}

.gh-w004-v2 .gh-product-tag-pill:focus-visible {
	outline: 2px solid var(--gh-w004-v2-primary-dark);
	outline-offset: 2px;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-meta .tagged_as {
	display: none;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-stock .stock.available-on-backorder {
	background: var(--gh-color-warning-surface);
	border-color: var(--gh-color-warning);
	color: var(--gh-color-warning);
}

.gh-w004-v2 .elementor-widget-woocommerce-product-stock .stock.out-of-stock {
	background: var(--gh-color-error-surface);
	border-color: var(--gh-color-error);
	color: var(--gh-color-error);
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart form.cart,
.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart form.variations_form {
	margin: 0;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart form.variations_form {
	display: flex;
	flex-direction: column;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart table.variations {
	margin: 0 0 18px;
	width: 100%;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart table.variations th,
.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart table.variations td {
	display: block;
	padding: 0;
	text-align: left;
	width: 100%;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart table.variations th {
	color: var(--gh-w004-v2-text);
	font-size: 13px;
	margin-bottom: 7px;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart table.variations select {
	background-color: #fff;
	border: 1px solid var(--gh-w004-v2-border);
	border-radius: 6px;
	min-height: 46px;
	padding-inline: 12px;
	width: 100%;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .reset_variations {
	color: var(--gh-w004-v2-primary-dark);
	display: inline-block;
	font-size: 12px;
	margin-top: 7px;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .single_variation_wrap {
	border-top: 1px solid var(--gh-w004-v2-border);
	padding-top: 18px;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-price {
	margin-bottom: 14px;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-price .price {
	color: var(--gh-w004-v2-primary-dark);
	font-size: 22px;
	font-weight: 700;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-add-to-cart,
.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart form.cart:not(.variations_form) {
	align-items: stretch;
	display: flex;
	gap: 12px;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .quantity {
	flex: 0 0 auto;
	margin: 0;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .quantity .qty {
	border: 0;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button {
	background: var(--gh-w004-v2-primary);
	border: 0;
	border-radius: 6px;
	color: #fff;
	flex: 0 0 auto;
	height: 3rem;
	min-height: 3rem;
	padding-inline: 2rem;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button::before {
	content: "\ea29";
	font-family: "klbtheme";
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	margin-right: 0.5rem;
}

.gh-w004-v2 button,
.gh-w004-v2 .button,
.gh-w004-v2 a.button {
	background-color: var(--gh-w004-v2-primary);
	border: 0;
	color: #fff;
}

.gh-w004-v2 button:hover,
.gh-w004-v2 button:focus-visible,
.gh-w004-v2 .button:hover,
.gh-w004-v2 .button:focus-visible,
.gh-w004-v2 a.button:hover,
.gh-w004-v2 a.button:focus-visible {
	background-color: var(--gh-w004-v2-primary-dark);
	border: 0;
	color: #fff;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-meta .product_meta {
	color: var(--gh-w004-v2-muted);
	font-size: 13px;
}

.gh-w004-v2 .elementor-widget-woocommerce-product-meta .product_meta > span {
	display: block;
}

.gh-w004-v2 .gh-product-primary-document {
	align-items: center;
	background: var(--gh-color-white);
	border: 1px solid var(--gh-w004-v2-primary);
	border-radius: 6px;
	color: var(--gh-w004-v2-primary-dark);
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	gap: 8px;
	justify-content: center;
	min-height: 42px;
	padding: 9px 14px;
	width: 100%;
}

.gh-w004-v2 .gh-product-primary-document:hover,
.gh-w004-v2 .gh-product-primary-document:focus-visible {
	background: var(--gh-w004-v2-primary-dark);
	border-color: var(--gh-w004-v2-primary-dark);
	color: var(--gh-color-white);
}

.gh-w004-v2 .gh-product-primary-document svg {
	fill: none;
	flex: 0 0 18px;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	width: 18px;
}

.gh-w004-v2 .gh-w004-v2__information {
	align-items: stretch;
}

.gh-w004-v2 .gh-w004-v2__information-column {
	min-width: 0;
}

.gh-w004-v2 .gh-w004-v2__information-column:has(.elementor-shortcode:empty) {
	display: none;
}

.gh-w004-v2 .gh-w004-v2__information:has(.gh-w004-v2__specifications-column .elementor-shortcode:empty):has(.gh-w004-v2__description-column .elementor-shortcode:empty) {
	display: none;
}

.gh-w004-v2 .gh-w004-v2__information:has(.gh-w004-v2__specifications-column .elementor-shortcode:empty) .gh-w004-v2__description-column,
.gh-w004-v2 .gh-w004-v2__information:has(.gh-w004-v2__description-column .elementor-shortcode:empty) .gh-w004-v2__specifications-column {
	width: 100%;
}

.gh-w004-v2 .gh-product-specifications,
.gh-w004-v2 .gh-product-description {
	background: var(--gh-color-white);
	border: 1px solid var(--gh-w004-v2-border);
	border-radius: 8px;
	height: 100%;
	padding: 24px;
}

.gh-w004-v2 .gh-w004-v2__information .gh-product-data-section > h2 {
	font-size: 24px;
	margin-bottom: 24px;
}

.gh-w004-v2 .gh-product-specifications__list {
	margin: 0;
}

.gh-w004-v2 .gh-product-specifications__row {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
	margin: 0;
	padding: 12px 0;
}

.gh-w004-v2 .gh-product-specifications__row + .gh-product-specifications__row {
	border-top: 1px solid var(--gh-w004-v2-border);
}

.gh-w004-v2 .gh-product-specifications__row dt,
.gh-w004-v2 .gh-product-specifications__row dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.gh-w004-v2 .gh-product-specifications__row dt {
	color: var(--gh-w004-v2-text);
	font-weight: 600;
}

.gh-w004-v2 .gh-product-specifications__row dd {
	color: var(--gh-w004-v2-muted);
}

.gh-w004-v2 .gh-product-description__content {
	line-height: 1.65;
	max-width: 65ch;
}

.gh-w004-v2 .gh-product-description__content img,
.gh-w004-v2 .gh-product-description__content iframe,
.gh-w004-v2 .gh-product-description__content video {
	height: auto;
	max-width: 100%;
}

.gh-w004-v2 .gh-w004-v2__section-title {
	margin: 0;
}

.gh-w004-v2 .gh-w004-v2__specifications:has(.elementor-shortcode:empty),
.gh-w004-v2 .gh-w004-v2__product-tabs:has(.elementor-shortcode:empty),
.gh-w004-v2 .gh-w004-v2__resources:has(.elementor-shortcode:empty) {
	display: none;
}

.gh-w004-v2 .gh-product-specification-summary {
	background: var(--gh-color-white);
	border: 1px solid var(--gh-w004-v2-border);
	border-radius: 8px;
	padding: 24px;
}

.gh-w004-v2 .gh-product-specification-summary h2 {
	color: var(--gh-w004-v2-text);
	font-family: var(--gh-font-family);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
}

.gh-w004-v2 .gh-product-specification-summary dl,
.gh-w004-v2 .gh-product-specification-summary dt,
.gh-w004-v2 .gh-product-specification-summary dd {
	margin: 0;
}

.gh-w004-v2 .gh-product-specification-summary dl > div {
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(100px, 36%) minmax(0, 1fr);
	padding: 10px 0;
}

.gh-w004-v2 .gh-product-specification-summary dl > div + div {
	border-top: 1px solid var(--gh-w004-v2-border);
}

.gh-w004-v2 .gh-product-specification-summary dt {
	color: var(--gh-w004-v2-text);
	font-size: 13px;
	font-weight: 600;
}

.gh-w004-v2 .gh-product-specification-summary dd {
	color: var(--gh-w004-v2-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs {
	margin-top: 0;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs {
	align-items: flex-end;
	border-bottom: 1px solid var(--gh-w004-v2-border);
	display: flex;
	gap: 24px;
	margin: 0;
	overflow-x: auto;
	padding: 0;
	scrollbar-width: none;
	white-space: nowrap;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs::-webkit-scrollbar {
	display: none;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs li {
	flex: 0 0 auto;
	margin: 0;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs li a {
	border-bottom: 0;
	color: var(--gh-w004-v2-muted);
	display: block;
	font-family: var(--gh-font-family);
	font-size: 21px;
	font-weight: 400;
	margin-bottom: -1px;
	padding: 0 0 14px;
	position: relative;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs li a::after {
	background: transparent;
	bottom: 0;
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	right: 0;
	transition: background-color 160ms ease;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs li.active > a,
.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs a[aria-selected="true"] {
	color: var(--gh-w004-v2-text);
	font-weight: 700;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs li.active > a::after,
.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs a[aria-selected="true"]::after {
	background: var(--gh-w004-v2-primary);
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-tabs ul.wc-tabs a:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--gh-color-focus);
	outline-offset: 4px;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-Tabs-panel {
	margin-top: 30px;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-Tabs-panel--description .gh-product-description__content {
	max-width: 780px;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-product-attributes {
	table-layout: fixed;
	width: 100%;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-product-attributes th {
	max-width: 40%;
	width: 30%;
}

.gh-w004-v2 .gh-w004-v2__product-tabs .woocommerce-product-attributes td {
	width: 70%;
}

.gh-w004-v2 .gh-w004-v2__buy-box .product-share {
	margin: 0;
}

.gh-w004-v2 .gh-w004-v2__buy-box .product-share .social-media {
	justify-content: flex-start;
}

.gh-w004-v2 .related.products > h2,
.gh-w004-v2 section.recently-viewed .klb-title h2.entry-title {
	color: var(--gh-w004-v2-text);
	font-family: var(--gh-font-family, Inter), sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.6;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
}

/*
 * Partdo's recently-viewed renderer adds a second Bootstrap container.
 * Preserve its Customizer-controlled desktop column count while aligning the
 * surrounding module spacing with GH-W004.
 */
.gh-w004-v2 .gh-product-recently-viewed > .container {
	max-width: none;
	padding: 0;
	width: 100%;
}

.gh-w004-v2 .gh-product-recently-viewed > .container > .row {
	margin: 0;
}

.gh-w004-v2 .gh-product-recently-viewed > .container > .row > .col {
	padding: 0;
}

.gh-w004-v2 section.recently-viewed {
	margin: 0 !important;
}

.gh-w004-v2 section.recently-viewed .klb-title.module-header {
	margin-bottom: 0;
}

.gh-w004-v2 .gh-w004-v2__buy-box .product-share .social-media li {
	padding: 2px 3px;
}	

.gh-w004-v2 section.recently-viewed > .products {
	margin: 0 0 30px;
	padding: 0;
	width: 100%;
}

.gh-w004-v2 section.recently-viewed > .products > .column-item {
	flex: 0 0 calc(100% / var(--gh-w004-v2-recent-columns, 5));
	max-width: calc(100% / var(--gh-w004-v2-recent-columns, 5));
}

@media (min-width: 1025px) {
	.gh-w004-v2 section.recently-viewed > .products > .column-item {
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media (max-width: 1024px) {
	.gh-w004-v2 section.recently-viewed > .products > .column-item {
		flex-basis: 50%;
		max-width: 50%;
	}
}

@media (max-width: 767px) {
	.gh-w004-v2 section.recently-viewed > .products > .column-item {
		flex-basis: 100%;
		max-width: 100%;
	}
}

@media (max-width: 1024px) {
	.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-add-to-cart {
		bottom: auto;
		box-shadow: none;
		padding: 0;
		position: static;
		right: auto;
		width: auto;
		z-index: auto;
	}
}

@media (max-width: 767px) {
	.gh-w004-v2 .gh-product-specification-summary {
		padding: 16px;
	}

	.gh-w004-v2 .gh-product-specification-summary dl > div {
		gap: 4px;
		grid-template-columns: 1fr;
	}

	.gh-w004-v2 .gh-w004-v2__product-tabs ul.wc-tabs {
		gap: 24px;
	}

	.gh-w004-v2 .gh-product-specifications,
	.gh-w004-v2 .gh-product-description {
		padding: 16px;
	}

	.gh-w004-v2 .gh-product-specifications__row {
		gap: 4px;
		grid-template-columns: 1fr;
	}

	.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-add-to-cart,
	.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart form.cart:not(.variations_form) {
		flex-wrap: wrap;
	}

	.gh-w004-v2 .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button {
		flex-basis: calc(100% - 116px);
	}
}
