/**
 * GH-C002 v0.3 — native Partdo product-card visual and AJAX-state refinement.
 *
 * Partdo owns interaction, footer reveal, fade-layer behavior and WooCommerce
 * actions. This file changes only GH-owned presentation beneath approved card
 * surfaces.
 */

.gh-product-card-surface .product.custom-hover {
	background: var(--gh-color-white);
	border: 0;
	border-radius: 8px;
	height: 100%;
	padding: var(--gh-space-2);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.klbth-module-category-products.style-1 .klbth-module-wrapper {
	padding: 0.5rem;
}

.gh-product-card-surface .product.custom-hover .thumbnail-wrapper {
	align-items: center;
	aspect-ratio: 1;
	border-color: var(--gh-color-border);
	border-radius: 8px;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.gh-product-card-surface .product.custom-hover .thumbnail-wrapper > a {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.gh-product-card-surface .product.custom-hover .thumbnail-wrapper img {
	height: auto !important;
	max-height: 80%;
	max-width: 80%;
	object-fit: contain;
	width: auto !important;
}

.gh-product-card-surface .product.custom-hover .product-title {
	color: var(--gh-color-ink);
	display: -webkit-box;
	font-family: var(--gh-font-family);
	min-height: calc(1.2857142857em * 2);
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.gh-product-card-surface .product.custom-hover .price {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	white-space: normal;
}

.gh-product-card-surface .product.custom-hover .product-stock {
	align-items: center;
	background: var(--gh-color-success-surface);
	background: color-mix(in srgb, var(--gh-color-primary) 12%, white);
	border: 1px solid var(--gh-color-primary);
	border: 1px solid color-mix(in srgb, var(--gh-color-primary) 35%, white);
	border-radius: 999px;
	color: var(--gh-color-primary-dark);
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	gap: 5px;
	letter-spacing: 0.04em;
	line-height: 1;
	margin-top: 2px;
	padding: 5px 8px;
	text-transform: uppercase;
	width: fit-content;
}

.gh-product-card-surface .product.custom-hover .product-stock::before {
	content: "\2713";
	font-size: 10px;
	font-weight: 800;
}

.gh-product-card-surface .product.custom-hover .product-stock.out-of-stock {
	background: var(--gh-color-error-surface);
	border-color: color-mix(in srgb, var(--gh-color-error) 35%, white);
	color: var(--gh-color-error);
}

.gh-product-card-surface .product.custom-hover .product-footer-details {
	display: none;
}

.gh-product-card-surface .product .product-content-fade {
	bottom: -1.2rem;
	left: -1rem;
	right: -1rem;
	top: -0.9rem;
}

.gh-product-card-surface .product.custom-hover .product-footer .product-footer-inner {
	margin-left: -12px;
	margin-right: -12px;
	margin-top: 18px;
	padding-left: 12px;
	padding-right: 12px;
	padding-top: 0;
}

.gh-product-card-surface .product.custom-hover .product-footer .button {
	background: var(--gh-color-primary);
	border: 0;
	border-radius: 8px;
	color: var(--gh-color-white);
	font-size: 14px;
	font-weight: 600;
	height: 43px;
	margin: 23px 0 8px;
	width: 100%;
}

.gh-product-card-surface .product.custom-hover .product-footer .button:hover,
.gh-product-card-surface .product.custom-hover .product-footer .button:focus-visible {
	background: var(--gh-color-primary-dark);
	color: var(--gh-color-white);
}

.gh-product-card-surface .product.custom-hover .product-footer a.added_to_cart {
	display: none;
}

/*
 * Keep Elementor Kit global button defaults out of Partdo's AJAX Quick View.
 * These values restate Partdo's native form-control contract without changing
 * Kit-owned buttons elsewhere.
 */
.elementor-kit-11 .quickview-product button:not(.mfp-close),
.elementor-kit-11 .quickview-product .button,
.elementor-kit-11 .quickview-product input[type="button"],
.elementor-kit-11 .quickview-product input[type="submit"],
.elementor-kit-11 .quickview-product .elementor-button {
	align-items: center;
	background-color: var(--color-info);
	border: 1px solid transparent;
	border-radius: var(--theme-form-radius);
	color: var(--color-text-primary);
	display: inline-flex;
	font-family: var(--theme-primary-font);
	font-size: var(--theme-form-font-size);
	font-weight: 600;
	height: var(--theme-form-height);
	justify-content: center;
	padding: 0 1.25rem;
}

.elementor-kit-11 .quickview-product button:not(.mfp-close):hover,
.elementor-kit-11 .quickview-product button:not(.mfp-close):focus,
.elementor-kit-11 .quickview-product .button:hover,
.elementor-kit-11 .quickview-product .button:focus,
.elementor-kit-11 .quickview-product input[type="button"]:hover,
.elementor-kit-11 .quickview-product input[type="button"]:focus,
.elementor-kit-11 .quickview-product input[type="submit"]:hover,
.elementor-kit-11 .quickview-product input[type="submit"]:focus,
.elementor-kit-11 .quickview-product .elementor-button:hover,
.elementor-kit-11 .quickview-product .elementor-button:focus {
	background-color: var(--color-info-dark);
	border-color: transparent;
	color: var(--color-text-primary);
}

.elementor-kit-11 .quickview-product .product-detail .single_add_to_cart_button {
	background-color: var(--color-success);
	border-color: var(--color-success);
	color: var(--gh-color-white);
	flex: 1;
	height: 2.875rem;
	margin-right: 7px;
	padding: 0 1.875rem;
}

.elementor-kit-11 .quickview-product .product-detail .single_add_to_cart_button:hover,
.elementor-kit-11 .quickview-product .product-detail .single_add_to_cart_button:focus {
	background-color: var(--color-success-dark);
	border-color: var(--color-success-dark);
	color: var(--gh-color-white);
}

.elementor-kit-11 .quickview-product .mfp-close {
	background-color: var(--color-info-dark) !important;
	border: 0;
	border-radius: 50%;
	color: var(--gh-color-white) !important;
	font-family: Arial, Baskerville, monospace;
	font-size: 0;
	font-weight: 600;
	height: 36px;
	line-height: 38px;
	padding: 0;
	width: 36px;
}

.quickview-product .quick-product-wrapper .input-text.qty.text {
	border-style: none;
}

.quickview-product .quick-product-wrapper h1.product_title.entry-title {
	font-size: 2rem;
}

.gh-product-card-surface .product.custom-hover .product-buttons > * {
	background: var(--gh-color-white);
	border-color: var(--gh-color-border);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(31, 42, 47, 0.08);
	color: var(--gh-color-ink);
}

.gh-product-card-surface .product.custom-hover .product-buttons > *:hover,
.gh-product-card-surface .product.custom-hover .product-buttons > *:focus-visible {
	background: var(--gh-color-white);
	border-color: var(--gh-color-primary);
	color: var(--gh-color-primary-dark);
}

.gh-product-card-surface .product.custom-hover .product-buttons > .woosc-btn,
.gh-product-card-surface .product.custom-hover .product-buttons > [class*="compare"] {
	display: none;
}

@media (min-width: 992px) {
	.gh-product-card-surface .product.custom-hover .product-footer {
		transform: translateY(8px);
	}

	.gh-product-card-surface .product.custom-hover:hover {
		box-shadow: 0 12px 28px rgba(31, 42, 47, 0.1);
		transform: translateY(-3px);
	}

	.gh-product-card-surface .product.custom-hover:hover .product-footer {
		transform: translateY(0);
	}
}

/*
 * Partdo's secondary mobile stylesheet is not active on the current Elementor
 * product template. Keep the two retained native controls touch-accessible
 * without altering footer/fade interaction.
 */
@media (max-width: 991px), (hover: none) {
	.gh-product-card-surface .product.custom-hover .product-buttons > .wishlist-button,
	.gh-product-card-surface .product.custom-hover .product-buttons > .quickview {
		opacity: 1;
		transform: none;
	}
}
