﻿/**
 * 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;
}

/* Structured Store Profile card data. */
.miner-product-card__title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;min-height:2.5em;overflow:hidden}.miner-product-card__description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:2.8em;margin:7px 0 10px;color:#687b88;font-size:var(--text-xs);line-height:1.4;overflow:hidden}.miner-product-card__region{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 10px;padding:8px 10px;border:1px solid #dce6eb;border-radius:8px;background:#f7fafb}.miner-product-card__region span{color:#758691;font-size:.58rem}.miner-product-card__region strong{color:#087c65;font-size:var(--text-xs)}.miner-product-card__specs>div small{display:block;color:#83929b;font-size:.54rem;line-height:1.2}.miner-product-card__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;padding-top:12px}.miner-product-card__actions .miner-product-card__stock{grid-column:1/-1;color:#14806a;font-size:var(--text-xs);font-weight:var(--fw-semibold);text-transform:uppercase}.miner-product-card__actions .btn{width:100%;padding:9px 8px;text-align:center;font-size:var(--text-xs)}.miner-product-card__badges{max-width:calc(100% - 18px);flex-wrap:wrap}.official-product-grid>.miner-product-card,.miner-catalog-grid>.miner-product-card,.woocommerce ul.products li.product>.miner-product-card{height:100%}

.official-product-grid,
.miner-catalog-grid,
.hosted-device-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,
.hosted-device-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,
.hosted-device-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 {
	position: absolute;
	inset: 0;
	display: flex;
	width: auto;
	height: auto;
	padding: 10px 14px;
	align-items: center;
	justify-content: center;
	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: 100% !important;
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
	margin: 0 !important;
	object-fit: contain;
	object-position: center;
	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;
	gap: 6px;
	max-width: calc(100% - 116px);
	pointer-events: none;
}

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

.miner-product-card__discount{color:#fff;background:#dc2626;box-shadow:0 5px 14px rgba(220,38,38,.2)}

.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: 16px;
	font-weight: var(--fw-semibold);
	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: 15px;
	font-weight: var(--fw-semibold);
	line-height: 1.2;
	text-align: center;
}

.miner-product-card__price del {
	margin-right: 4px;
	color: #82929b;
	font-size: 14px;
	font-weight: var(--fw-regular);
}

.miner-product-card__price ins {
	font-size: 16px;
	font-weight: var(--fw-semibold);
	text-decoration: none;
}

.miner-product-card__signals{display:flex;min-height:25px;margin:0 0 5px;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.miner-product-card__daily-profit{display:inline-flex;padding:3px 9px;align-items:center;border-radius:6px;color:#fff;background:#1f9d57;font-size:12px;font-weight:var(--fw-semibold);line-height:1.4;white-space:nowrap}
.miner-product-card__daily-profit.is-negative{background:#dc2626}
.miner-product-card__roi{display:inline-flex;padding:3px 8px;align-items:center;border:1px solid #a9d8ce;border-radius:6px;color:#126f63;background:#edf8f5;font-size:10px;font-weight:var(--fw-semibold);line-height:1.4;white-space:nowrap}
.miner-product-card__rating{display:inline-flex;align-items:center;gap:4px;color:#667985;font-size:11px;white-space:nowrap}
.miner-product-card__rating>span{display:inline-block;background:linear-gradient(90deg,#f5a623 var(--rating-width),#d7dee3 var(--rating-width));background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;font-size:13px;letter-spacing:1px}
.miner-product-card__rating b{color:#29485e;font-size:11px}
.miner-product-card__rating small{color:#84939d;font-size:10px}
.miner-product-card__electricity-note{margin:-1px 0 6px;color:#728390;font-size:var(--text-xs);font-weight:var(--fw-semibold);line-height:1.35;text-align:center}

.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%;
	transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

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

/* Fine-pointer devices reveal card actions on intent. Keeping the action row's
 * space reserved prevents content and neighbouring cards from jumping. */
@media (hover: hover) and (pointer: fine) {
	.miner-product-card:not(.is-hosting-plan) .miner-product-card__actions {
		opacity: 0;
		visibility: hidden;
		transform: translateY(7px);
		pointer-events: none;
	}
	.miner-product-card:not(.is-hosting-plan):hover .miner-product-card__actions,
	.miner-product-card:not(.is-hosting-plan):focus .miner-product-card__actions,
	.miner-product-card:not(.is-hosting-plan):focus-within .miner-product-card__actions {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}
}

/* Product actions are permanent across touch and pointer devices. */
.miner-product-card .miner-product-card__actions,
.miner-product-card:not(.is-hosting-plan) .miner-product-card__actions,
.miner-product-card:hover .miner-product-card__actions,
.miner-product-card:focus-within .miner-product-card__actions {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	pointer-events: auto !important;
}

.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: var(--fw-medium) !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: var(--fw-medium) !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;
}

@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,
	.miner-product-card__actions {
		transition: none;
	}
}

/* Connected-hardware cards: concise, uniform and shared by Home + Shop. */
.miner-product-card.is-connected-product{box-sizing:border-box;height:402px!important;min-height:402px!important}
.miner-product-card.is-connected-product .miner-product-card__media{height:174px;min-height:174px;background:linear-gradient(180deg,#fff 0%,#f8fbfa 100%)}
.miner-product-card.is-connected-product .miner-product-card__image-link{padding:16px 18px}
.miner-product-card.is-connected-product .miner-product-card__body{box-sizing:border-box;height:auto;min-height:0;padding:12px 15px 13px;flex:1 1 0}
.miner-product-card.is-connected-product .miner-product-card__title{display:block!important;min-height:22px;margin:0;color:#102f42;font-size:16px;line-height:22px;white-space:nowrap!important;text-overflow:ellipsis}
.miner-product-card__subtitle{min-height:17px;margin:3px 0 7px;overflow:hidden;color:#6b7d89;font-size:11px;font-weight:var(--fw-semibold);line-height:17px;text-align:center;white-space:nowrap;text-overflow:ellipsis}
.miner-product-card.is-connected-product .miner-product-card__region{min-height:30px;margin:0 0 8px;padding:5px 9px;background:#f5faf8;border-color:#dcebe6}
.miner-product-card.is-connected-product .miner-product-card__region span{font-size:var(--text-xs);font-weight:var(--fw-semibold);text-transform:uppercase;letter-spacing:.04em}
.miner-product-card.is-connected-product .miner-product-card__region strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.miner-product-card.is-connected-product .miner-product-card__region.is-empty{display:none}
.miner-product-card.is-connected-product .miner-product-card__specs{min-height:39px;margin:0 0 6px;padding:3px 0}
.miner-product-card.is-connected-product .miner-product-card__specs strong{display:block;max-width:100%;overflow:hidden;font-size:10px;font-weight:var(--fw-semibold);line-height:15px;white-space:nowrap;text-overflow:ellipsis}
.miner-product-card.is-connected-product .miner-product-card__specs small{margin-top:1px;font-size:var(--text-xs)}
.miner-product-card.is-connected-product .miner-product-card__price-row{margin-top:auto;margin-bottom:7px}
.miner-product-card.is-connected-product .miner-product-card__price{font-size:17px;font-weight:var(--fw-semibold)}
.miner-product-card.is-connected-product .miner-product-card__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-height:46px;max-width:none;width:100%;margin:0;padding-bottom:0}
.miner-product-card.is-connected-product .miner-product-card__actions .btn{display:flex;width:100%;min-height:34px;padding:8px 12px;font-size:11px;font-weight:var(--fw-semibold);align-items:center;justify-content:center;border-radius:8px}

@media(max-width:640px){
	.miner-product-card.is-connected-product{height:424px!important;min-height:424px!important}
	.miner-product-card.is-connected-product .miner-product-card__media{height:194px;min-height:194px}
	.miner-product-card.is-connected-product .miner-product-card__body{height:auto;min-height:0}
}

/* WooCommerce wraps each unified card in a legacy product <li>. Neutralize
 * that wrapper so Shop cards cannot be cropped or receive a second hover. */
.woocommerce ul.products li.product{
	box-sizing:border-box!important;
	height:auto!important;
	min-height:0!important;
	overflow:visible!important;
	align-self:stretch!important;
	background:transparent!important;
	border:0!important;
	border-radius:0!important;
	box-shadow:none!important;
}
.woocommerce ul.products li.product:hover{
	transform:none!important;
	border:0!important;
	box-shadow:none!important;
}
.woocommerce ul.products li.product > .miner-product-card.is-connected-product,
.taxonomy-product-catalog .miner-catalog-grid > .miner-product-card.is-connected-product{
	width:100%!important;
	height:402px!important;
	min-height:402px!important;
	margin:0!important;
}
.woocommerce ul.products li.product .miner-product-card__actions .btn{
	display:flex!important;
	width:100%!important;
	height:34px!important;
	min-height:34px!important;
	margin:0!important;
	padding:8px 12px!important;
	align-items:center!important;
	justify-content:center!important;
	border-radius:8px!important;
	font-size:11px!important;
}
@media(max-width:640px){
	.woocommerce ul.products li.product > .miner-product-card.is-connected-product,
	.taxonomy-product-catalog .miner-catalog-grid > .miner-product-card.is-connected-product{
		height:424px!important;
		min-height:424px!important;
	}
}

/* IoT shop catalog selector. */
.shop-catalog-navigation{width:100%;margin:0 0 26px;padding:24px;border:1px solid #dce9e5;border-radius:16px;background:#f5fbf8}
.shop-catalog-navigation__heading{text-align:center;margin-bottom:18px}.shop-catalog-navigation__heading>span{color:#087c5c;font-size:var(--text-xs);font-weight:var(--fw-semibold);letter-spacing:.13em}.shop-catalog-navigation__heading h2{margin:5px 0 4px;color:#102f42;font-size:clamp(1.45rem,2.4vw,2rem)}.shop-catalog-navigation__heading p{margin:0;color:#627681;font-size:.86rem}
.shop-catalog-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.shop-catalog-tabs a{display:flex;min-width:0;min-height:50px;padding:8px 10px;gap:7px;align-items:center;border:1px solid #dbe6e2;border-radius:10px;background:#fff;color:#244555!important;font-size:.73rem;font-weight:var(--fw-semibold);line-height:1.25;text-decoration:none!important;transition:.2s ease}.shop-catalog-tabs a:hover{border-color:#75bda8;transform:translateY(-1px)}.shop-catalog-tabs a.is-active{border-color:#07835f;background:#087c5c;color:#fff!important;box-shadow:0 7px 18px rgba(8,124,92,.18)}.shop-catalog-tabs a>span{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center}.shop-catalog-tabs svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.shop-catalog-tabs small{margin-left:auto;padding:2px 6px;border-radius:999px;background:#edf5f2;color:#507266;font-size:var(--text-xs)}.shop-catalog-tabs a.is-active small{background:rgba(255,255,255,.18);color:#fff}
@media(max-width:1040px){.shop-catalog-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.shop-catalog-navigation{padding:20px 14px}.shop-catalog-tabs{display:flex;margin-inline:-14px;padding:2px 14px 9px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin}.shop-catalog-tabs a{min-width:190px;scroll-snap-align:start}}

/* Category archive hero and product grid. */
.taxonomy-product-catalog .miner-archive-hero{padding:42px 24px!important;border-radius:18px;background:linear-gradient(125deg,#062d27,#075f4b)!important}.taxonomy-product-catalog .miner-archive-hero h1{margin:8px 0 10px!important;color:#fff!important;font-size:clamp(1.85rem,4vw,2.75rem)!important;line-height:1.12}.taxonomy-product-catalog .taxonomy-hero__description{max-width:760px;margin:0 auto;color:rgba(255,255,255,.82);font-size:clamp(.87rem,1.5vw,.98rem);font-weight:var(--fw-regular);line-height:1.7}.taxonomy-product-catalog .taxonomy-hero__description p{margin:0;color:inherit}.taxonomy-product-catalog .hero-badge{color:#9ff2cf!important}.taxonomy-product-catalog .miner-catalog-grid>.miner-product-card{margin:0}
