/* Catalogue-matched product cards for the Talking Headsets dealer homepage. */
.thdp-v2 .thdp-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.thdp-v2 .thdp-product-grid--columns-1 {
	grid-template-columns: minmax(0, 1fr);
}

.thdp-v2 .thdp-product-grid--columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thdp-v2 .thdp-product-grid--columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thdp-v2 .thdp-product-grid--columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thdp-v2 .thdp-product-grid--columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.thdp-v2 .thdp-product-grid--columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.thdp-v2 .thdpc-product-card {
	min-width: 0;
	margin: 0;
	border: 1px solid var(--thdp-line, #d7e7e5);
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--thdp-shadow-soft, 0 10px 32px rgba(3, 59, 57, 0.09));
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.thdp-v2 .thdpc-product-card:hover {
	border-color: rgba(0, 115, 106, 0.34);
	box-shadow: var(--thdp-shadow, 0 20px 60px rgba(3, 59, 57, 0.15));
	transform: translateY(-4px);
}

.thdp-v2 .thdpc-product-link,
.thdp-v2 .thdpc-product-link:visited {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--thdp-ink, #173438) !important;
}

.thdp-v2 .thdpc-product-image {
	position: relative;
	display: grid;
	place-items: center;
	width: auto;
	margin: 12px 12px 0;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}

.thdp-v2 .thdpc-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 5px;
	object-fit: contain;
	box-shadow: none !important;
	filter: none !important;
}

.thdp-v2 .thdpc-product-card:hover .thdpc-product-image img {
	transform: none !important;
}

.thdp-v2 .thdpc-view-cue {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(0, 115, 106, 0.12);
	border-radius: 50%;
	color: var(--thdp-teal-dark, #004f4b);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 8px 18px rgba(3, 59, 57, 0.09);
	opacity: 0;
	transform: translateY(3px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.thdp-v2 .thdpc-view-cue .thdpc-icon {
	display: block;
	width: 16px;
	height: 16px;
}

.thdp-v2 .thdpc-product-card:hover .thdpc-view-cue {
	opacity: 1;
	transform: translateY(0);
}

.thdp-v2 .thdpc-product-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 16px 18px;
}

.thdp-v2 .thdpc-product-brand {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 7px;
	align-items: baseline;
	min-height: 19px;
	margin: 0 0 7px;
	font-size: 0.72rem;
	line-height: 1.25;
}

.thdp-v2 .thdpc-product-brand span {
	color: var(--thdp-muted, #60767b);
	font-size: 0.66rem;
	font-weight: 850;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.thdp-v2 .thdpc-product-brand strong {
	color: var(--thdp-teal-dark, #004f4b);
	font-weight: 900;
}

.thdp-v2 .thdpc-product-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	min-height: 24px;
	margin-bottom: 9px;
}

.thdp-v2 .thdpc-product-tags span {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 4px 7px;
	border-radius: 999px;
	color: var(--thdp-teal-dark, #004f4b);
	background: var(--thdp-mint, #eef9f7);
	font-size: 0.67rem;
	font-weight: 850;
	line-height: 1.1;
	letter-spacing: 0.025em;
}

.thdp-v2 .thdpc-product-body h3 {
	margin: 0 0 10px;
	color: var(--thdp-ink, #173438);
	font-size: 0.98rem;
	font-weight: 900;
	line-height: 1.32;
	letter-spacing: -0.018em;
}

.thdp-v2 .thdpc-sku {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 6px;
	align-items: baseline;
	margin: 0 0 13px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e8f0ef;
	color: var(--thdp-muted, #60767b);
	font-size: 0.74rem;
}

.thdp-v2 .thdpc-sku strong {
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--thdp-ink, #173438);
}

.thdp-v2 .thdpc-product-commercial {
	display: grid;
	gap: 7px;
	margin-top: auto;
}

.thdp-v2 .thdpc-price {
	display: block;
	width: 100%;
	color: var(--thdp-teal-dark, #004f4b);
	font-size: 0.98rem;
	font-weight: 900;
	line-height: 1.35;
	text-align: left !important;
}

.thdp-v2 .thdpc-price .wctdlp-price--has-alignment,
.thdp-v2 .thdpc-price .wctdlp-price--align-center,
.thdp-v2 .thdpc-price .wctdlp-price--align-right {
	justify-content: flex-start !important;
	text-align: left !important;
}

.thdp-v2 .thdpc-price .wctdlp-price--layout-stacked {
	align-items: flex-start !important;
}

.thdp-v2 .thdpc-price del {
	color: #839396;
	font-size: 0.83em;
	font-weight: 700;
	opacity: 0.8;
}

.thdp-v2 .thdpc-price ins {
	color: var(--thdp-teal-dark, #004f4b);
	text-decoration: none;
}

.thdp-v2 .thdpc-price-note {
	color: var(--thdp-muted, #60767b);
	font-size: 0.86rem;
}

.thdp-v2 .thdpc-stock,
.thdp-v2 .thdpc-stock p {
	margin: 0;
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1.3;
}

.thdp-v2 .thdpc-stock--instock,
.thdp-v2 .thdpc-stock--instock p {
	color: #197447;
}

.thdp-v2 .thdpc-stock--onbackorder,
.thdp-v2 .thdpc-stock--onbackorder p {
	color: #9a5a00;
}

.thdp-v2 .thdpc-stock--outofstock,
.thdp-v2 .thdpc-stock--outofstock p {
	color: #9d2c32;
}

.thdp-v2 .thdpc-product-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 40px;
	margin-top: 15px;
	padding: 9px 12px;
	border-radius: 12px;
	color: #fff;
	background: var(--thdp-teal-dark, #004f4b);
	font-size: 0.82rem;
	font-weight: 900;
	transition: background 0.18s ease;
}

.thdp-v2 .thdpc-product-card:hover .thdpc-product-cta {
	background: var(--thdp-red, #e5252a);
}

/* Native WooCommerce brand logos used by [thdp_brand_cloud]. */
.thdp-v2 .thdp-brand-cloud {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.thdp-v2 .thdp-brand-card,
.thdp-v2 .thdp-brand-card:visited {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--thdp-line, #d7e7e5);
	border-radius: 22px;
	color: var(--thdp-ink, #173438) !important;
	background: #fff;
	box-shadow: var(--thdp-shadow-soft, 0 10px 32px rgba(3, 59, 57, 0.09));
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.thdp-v2 .thdp-brand-card:hover {
	border-color: rgba(0, 115, 106, 0.38);
	box-shadow: var(--thdp-shadow, 0 20px 60px rgba(3, 59, 57, 0.15));
	transform: translateY(-3px);
}

.thdp-v2 .thdp-brand-logo {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 112px;
	min-width: 0;
	min-height: 0;
	padding: 14px;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}

.thdp-v2 .thdp-brand-logo > img.thdp-brand-thumbnail {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	min-width: 0;
	min-height: 0;
	margin: 0 !important;
	object-fit: contain !important;
	object-position: center !important;
	transform: none !important;
}

.thdp-v2 .thdp-brand-logo > img.thdp-brand-thumbnail--square-canvas {
	transform: scale(1.5) !important;
}

.thdp-v2 .thdp-brand-fallback {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 21px;
	color: #fff;
	background: linear-gradient(145deg, var(--thdp-teal, #00736a), var(--thdp-teal-dark, #004f4b));
	font-size: 1.6rem;
	font-weight: 900;
}

.thdp-v2 .thdp-brand-name {
	min-width: 0;
	color: var(--thdp-ink, #173438);
	font-weight: 900;
	line-height: 1.25;
}

.thdp-v2 .thdp-brand-arrow {
	color: var(--thdp-red, #e5252a);
	font-size: 1.12rem;
	font-weight: 900;
	transition: transform 0.18s ease;
}

.thdp-v2 .thdp-brand-card:hover .thdp-brand-arrow {
	transform: translateX(3px);
}

@media (max-width: 1050px) {
	.thdp-v2 .thdp-product-grid,
	.thdp-v2 .thdp-brand-cloud {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.thdp-v2 .thdp-product-grid,
	.thdp-v2 .thdp-brand-cloud {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thdp-v2 .thdpc-product-card,
	.thdp-v2 .thdpc-view-cue,
	.thdp-v2 .thdpc-product-cta,
	.thdp-v2 .thdp-brand-card,
	.thdp-v2 .thdp-brand-arrow {
		transition-duration: 0.01ms !important;
	}
}
