/**
 * Clean unified product cards used by Home, Shop, Miners and taxonomy archives.
 */

.official-product-grid > .official-product,
.miner-catalog-grid > .miner-product-card + .tech-card.miner-card {
	display: none !important;
}

.official-product-grid,
.miner-catalog-grid,
.woocommerce ul.products {
	display: flex !important;
	width: 100% !important;
	max-width: 1200px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	justify-content: center !important;
	gap: 20px !important;
}

.official-product-grid > .miner-product-card,
.miner-catalog-grid > .miner-product-card,
.woocommerce ul.products li.product {
	width: auto !important;
	min-width: 250px !important;
	max-width: 375px !important;
	margin: 0 !important;
	flex: 1 1 calc(25% - 20px) !important;
}

.woocommerce ul.products li.product {
	display: flex;
	padding: 0;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.official-product-grid > .miner-product-card,
.miner-catalog-grid > .miner-product-card,
.woocommerce ul.products li.product > .miner-product-card {
	width: 100% !important;
	height: auto !important;
	min-height: auto !important;
}

.miner-product-card {
	position: relative;
	display: flex;
	min-width: 0;
	height: auto !important;
	min-height: auto !important;
	overflow: hidden;
	flex-direction: column;
	background: #fff;
	border: 1px solid #dbe4e9;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 36, 50, .07);
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
	cursor: pointer;
}

.miner-product-card:hover {
	transform: translateY(-4px);
	border-color: rgba(22, 143, 125, .42);
	box-shadow: 0 16px 36px rgba(15, 36, 50, .12);
}

.miner-product-card:focus-visible {
	outline: 3px solid rgba(22, 143, 125, .4);
	outline-offset: 3px;
}

.miner-product-card a,
.miner-product-card button {
	cursor: pointer;
}

.miner-product-card__media {
	position: relative;
	display: grid;
	height: 175px;
	min-height: 175px;
	overflow: hidden;
	place-items: center;
	background: #fff;
	border-bottom: 1px solid #e5ecef;
}

.miner-product-card__image-link {
	display: grid;
	width: 100%;
	height: 100%;
	padding: 18px 24px 14px;
	place-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.miner-product-card__image-link::before {
	display: none;
	content: none;
}

.miner-product-card__image {
	position: relative;
	z-index: 1;
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 88%;
	max-height: 158px;
	margin: 0 !important;
	object-fit: contain;
	filter: none !important;
	box-shadow: none !important;
	mix-blend-mode: normal;
	transition: transform .28s ease;
}

.miner-product-card:hover .miner-product-card__image {
	transform: scale(1.035);
}

.miner-product-card__badges {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	display: flex;
	max-width: calc(100% - 116px);
	pointer-events: none;
}

.miner-product-badge,
.miner-product-card__stock,
.miner-product-card__saving {
	display: inline-flex;
	min-height: 23px;
	padding: 4px 8px;
	align-items: center;
	border-radius: 999px;
	font-size: .6rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: .02em;
	white-space: nowrap;
}

.miner-product-badge.is-gold { color: #76520a; background: #fff1bd; }
.miner-product-badge.is-blue { color: #174f8c; background: #dceeff; }
.miner-product-badge.is-purple { color: #6537a1; background: #eee3ff; }
.miner-product-badge.is-green { color: #16663e; background: #dcf6e8; }
.miner-product-badge.is-teal { color: #0d665c; background: #d8f5f0; }
.miner-product-badge.is-navy { color: #183e62; background: #dfeaf4; }
.miner-product-badge.is-orange { color: #864311; background: #ffead6; }

.miner-product-card__stock {
	display: none !important;
}

.miner-product-card__body {
	display: flex;
	min-width: 0;
	padding: 10px 14px 12px;
	flex: 0 0 auto;
	flex-direction: column;
}

.miner-product-card__brand {
	display: none;
}

.miner-product-card__title {
	display: -webkit-box;
	min-height: auto;
	margin: 0 0 4px;
	overflow: hidden;
	color: #12394f;
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.miner-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.miner-product-card__chips {
	display: flex;
	min-height: auto;
	margin-top: 0;
	margin-bottom: 7px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
	color: #8fa0ab;
	font-size: .56rem;
	font-weight: 300;
	letter-spacing: .02em;
	-webkit-font-smoothing: antialiased;
	text-align: center;
}

.miner-product-card__chips span {
	padding: 0;
	color: inherit;
	background: transparent;
	border-radius: 0;
	font-size: inherit;
	font-weight: inherit;
}

.miner-product-card__chips i {
	color: #cbd5e1;
	font-style: normal;
	font-size: .45rem;
}

.miner-product-card__specs {
	display: grid;
	margin-bottom: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	padding: 3px 0;
	border-block: 1px solid #edf2f4;
	align-items: center;
	justify-content: center;
}

.miner-product-card__specs > div {
	display: flex;
	min-width: 0;
	padding: 2px 6px;
	flex-direction: column;
	background: transparent;
	border: 0;
	border-radius: 0;
	text-align: center;
	align-items: center;
	justify-content: center;
}

.miner-product-card__specs > div + div {
	padding-left: 6px;
	border-left: 1px solid #edf2f4;
}

.miner-product-card__specs > div:nth-child(n+3),
.miner-product-card__specs svg {
	display: none;
}

.miner-product-card__specs span {
	display: none !important;
}

.miner-product-card__specs strong {
	display: block;
	overflow: hidden;
	color: #476171;
	font-size: .72rem;
	font-weight: 300;
	letter-spacing: .02em;
	line-height: 1.2;
	-webkit-font-smoothing: antialiased;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.miner-product-card__fulfilment {
	display: none;
}

.miner-product-card__price-row {
	display: flex;
	min-height: auto;
	margin: 0 0 6px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 4px;
}

.miner-product-card__price-label {
	display: none !important;
}

.miner-product-card__price {
	color: #0f7f72;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.miner-product-card__price del {
	margin-right: 4px;
	color: #82929b;
	font-size: .75rem;
	font-weight: 400;
}

.miner-product-card__price ins {
	text-decoration: none;
}

.miner-product-card__saving {
	color: #176c45;
	background: #ddf6e9;
	font-size: .58rem;
	padding: 2px 7px;
	border-radius: 999px;
	align-self: center;
}

.miner-product-card__availability {
	display: none !important;
}

.miner-product-card svg {
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.miner-product-card__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 6px;
	align-items: center;
	gap: 6px;
	max-width: 200px;
	margin-inline: auto;
	width: 100%;
}

.miner-product-card__primary {
	display: inline-flex;
	width: 100%;
	min-height: 26px !important;
	height: 26px !important;
	margin: 0;
	padding: 2px 8px !important;
	align-items: center;
	justify-content: center;
	font-size: .68rem !important;
	font-weight: 500 !important;
	letter-spacing: .02em;
	line-height: 1;
	text-align: center;
	border-radius: 6px !important;
}

/* Center Buy button when no hosting button exists */
a.miner-product-card__primary:only-of-type,
.miner-product-card__actions:not(:has(.miner-product-card__host)) .miner-product-card__primary {
	grid-column: 1 / -1;
	justify-self: center;
	width: auto !important;
	min-width: 90px;
	max-width: 130px;
	margin-inline: auto;
}

.miner-product-card__host {
	display: inline-flex;
	width: 100%;
	min-height: 26px !important;
	height: 26px !important;
	margin: 0;
	padding: 2px 8px !important;
	align-items: center;
	justify-content: center;
	border-color: #86bcb2;
	color: #126f64 !important;
	background: #f1fbf8;
	font-size: .68rem !important;
	font-weight: 500 !important;
	letter-spacing: .02em;
	line-height: 1;
	text-align: center;
	border-radius: 6px !important;
}

.miner-product-card__host:hover,
.miner-product-card__host:focus-visible {
	border-color: #147f70;
	background: #e4f6f1;
	color: #0c5a51 !important;
}

.miner-product-card__compare {
	grid-column: 1 / -1;
	display: inline-flex;
	min-height: 18px !important;
	height: auto;
	padding: 2px 4px;
	align-self: center;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #7b8f9a;
	background: transparent;
	border: 0;
	font: inherit;
	font-size: .56rem !important;
	font-weight: 500 !important;
	line-height: 1;
	margin-top: 2px;
}

@media(max-width:420px){.miner-product-card__actions{grid-template-columns:1fr;max-width:100%}.miner-product-card__compare{grid-column:auto}}

.miner-product-card__compare:hover,
.miner-product-card__compare:focus-visible {
	color: #0f7f72;
}

.miner-product-card__compare svg {
	width: 11px;
	height: 11px;
}

.miner-product-card__compare.is-active,
.miner-product-card__compare.in-compare {
	color: #0f7f72;
}

@media (max-width: 1180px) {
	.official-product-grid > .miner-product-card,
	.miner-catalog-grid > .miner-product-card,
	.woocommerce ul.products li.product {
		max-width: 375px !important;
		flex: 1 1 calc(33.333% - 20px) !important;
	}
}

@media (max-width: 940px) {
	.official-product-grid,
	.miner-catalog-grid,
	.woocommerce ul.products {
		gap: 16px !important;
	}

	.official-product-grid > .miner-product-card,
	.miner-catalog-grid > .miner-product-card,
	.woocommerce ul.products li.product {
		max-width: 375px !important;
		flex: 1 1 calc(50% - 16px) !important;
	}
}

@media (max-width: 640px) {
	.official-product-grid,
	.miner-catalog-grid,
	.woocommerce ul.products {
		gap: 18px !important;
	}

	.official-product-grid > .miner-product-card,
	.miner-catalog-grid > .miner-product-card,
	.woocommerce ul.products li.product {
		max-width: 380px !important;
		flex: 1 1 100% !important;
	}

	.miner-product-card {
		margin-inline: auto;
	}

	.miner-product-card__media {
		height: 205px;
		min-height: 205px;
	}

	.miner-product-card__image {
		max-height: 168px;
	}
}

@media (max-width: 370px) {
	.miner-product-card__availability {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.miner-product-card,
	.miner-product-card__image {
		transition: none;
	}
}
