/**
 * 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: 100%;
	min-height: 455px;
}

.miner-product-card {
	position: relative;
	display: flex;
	min-width: 0;
	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: 190px;
	min-height: 190px;
	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: contrast(1.04) saturate(.98) drop-shadow(0 12px 13px rgba(22, 45, 58, .13));
	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 {
	position: absolute;
	z-index: 2;
	top: 12px;
	right: 12px;
	gap: 6px;
	color: #176c45;
	background: rgba(255, 255, 255, .9);
	border: 1px solid rgba(201, 224, 213, .9);
}

.miner-product-card__stock i {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	background: #22a66c;
	border-radius: 50%;
}

.miner-product-card__stock.is-out-of-stock {
	color: #9a342e;
	border-color: #f0d3d0;
}

.miner-product-card__stock.is-out-of-stock i {
	background: #d5534b;
}

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

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

.miner-product-card__title {
	display: -webkit-box;
	min-height: 42px;
	margin: 0 0 4px;
	overflow: hidden;
	color: #12394f;
	font-size: 1.02rem;
	font-weight: 820;
	line-height: 1.38;
	-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: 19px;
	margin-bottom: 10px;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: #71828d;
	font-size: .66rem;
	font-weight: 700;
}

.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: #b2bec5;
	font-style: normal;
}

.miner-product-card__specs {
	display: grid;
	margin-bottom: 11px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border-block: 1px solid #e7edef;
}

.miner-product-card__specs > div {
	display: flex;
	min-width: 0;
	padding: 8px;
	flex-direction: column;
	background: transparent;
	border: 0;
	border-radius: 0;
	text-align: left;
}

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

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

.miner-product-card__specs span {
	position: static;
	display: block;
	width: auto;
	height: auto;
	margin-bottom: 3px;
	overflow: visible;
	color: #7a8b95;
	clip: auto;
	font-size: .61rem;
	font-weight: 650;
	line-height: 1.2;
	white-space: normal;
}

.miner-product-card__specs strong {
	display: block;
	overflow: hidden;
	color: #15394c;
	font-size: .86rem;
	font-weight: 850;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

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

.miner-product-card__price-row {
	display: flex;
	min-height: 43px;
	margin: 0 0 7px;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
}

.miner-product-card__price-label {
	display: block;
	margin-bottom: 2px;
	color: #71848f;
	font-size: .61rem;
	font-weight: 650;
}

.miner-product-card__price {
	color: #0f7f72;
	font-size: 1.34rem;
	font-weight: 850;
	line-height: 1.15;
}

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

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

.miner-product-card__saving {
	color: #176c45;
	background: #ddf6e9;
}

.miner-product-card__availability {
	display: flex;
	min-height: 34px;
	margin-bottom: 8px;
	align-items: flex-start;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	color: #637782;
	font-size: .61rem;
	font-weight: 680;
}

.miner-product-card__availability span,
.miner-product-card__availability small {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 5px;
	font-size: inherit;
	white-space: nowrap;
}

.miner-product-card__availability small {
	color: #768994;
}

.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: flex;
	margin-top: auto;
	flex-direction: column;
	align-items: stretch;
	gap: 7px;
}

.miner-product-card__primary {
	display: inline-flex;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 12px;
	align-items: center;
	justify-content: center;
	font-size: .72rem;
	line-height: 1.2;
	text-align: center;
}

.miner-product-card__compare {
	display: inline-flex;
	min-height: 24px;
	padding: 2px 4px;
	align-self: center;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #6a7f8a;
	background: transparent;
	border: 0;
	font: inherit;
	font-size: .62rem;
	font-weight: 720;
	line-height: 1.2;
}

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

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

.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;
	}
}
