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

/* ==========================================================================
   HOMEPAGE DYNAMIC COUNT CENTERING & LAYOUT (1, 2, 3, 4 Products)
   Guarantees that 1, 2, or 3 products are centered cleanly rather than left-biased.
   ========================================================================== */

/* 1 Product: Single centered card */
.official-product-grid--count-1,
.official-product-grid.count-1 {
	max-width: 400px !important;
	justify-content: center !important;
	margin-inline: auto !important;
}
.official-product-grid--count-1 > .miner-product-card,
.official-product-grid.count-1 > .miner-product-card,
.official-product-grid--count-1 > .official-product,
.official-product-grid.count-1 > .official-product {
	flex: 0 1 100% !important;
	max-width: 360px !important;
	width: 100% !important;
	margin-inline: auto !important;
}

/* 2 Products: Two centered cards */
.official-product-grid--count-2,
.official-product-grid.count-2 {
	max-width: 760px !important;
	justify-content: center !important;
	margin-inline: auto !important;
}
.official-product-grid--count-2 > .miner-product-card,
.official-product-grid.count-2 > .miner-product-card,
.official-product-grid--count-2 > .official-product,
.official-product-grid.count-2 > .official-product {
	flex: 0 1 calc(50% - 10px) !important;
	max-width: 350px !important;
	min-width: 260px !important;
}

/* 3 Products: Three centered cards */
.official-product-grid--count-3,
.official-product-grid.count-3 {
	max-width: 1080px !important;
	justify-content: center !important;
	margin-inline: auto !important;
}
.official-product-grid--count-3 > .miner-product-card,
.official-product-grid.count-3 > .miner-product-card,
.official-product-grid--count-3 > .official-product,
.official-product-grid.count-3 > .official-product {
	flex: 0 1 calc(33.333% - 14px) !important;
	max-width: 335px !important;
	min-width: 260px !important;
}

/* 4+ Products: Four columns balanced grid */
.official-product-grid--count-4,
.official-product-grid.count-4 {
	max-width: 1200px !important;
	justify-content: center !important;
	margin-inline: auto !important;
}
.official-product-grid--count-4 > .miner-product-card,
.official-product-grid.count-4 > .miner-product-card,
.official-product-grid--count-4 > .official-product,
.official-product-grid.count-4 > .official-product {
	flex: 1 1 calc(25% - 15px) !important;
	max-width: 285px !important;
	min-width: 250px !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) {
	/* Home and catalog grids drop to 3 columns */
	.official-product-grid > .miner-product-card,
	.miner-catalog-grid > .miner-product-card {
		max-width: 375px !important;
		flex: 1 1 calc(33.333% - 20px) !important;
	}
	/* Shop stays at 4 columns — no change here */
}

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

	/* Home and catalog drop to 2 columns */
	.official-product-grid > .miner-product-card,
	.official-product-grid[class*="count-"] > .miner-product-card,
	.official-product-grid[class*="count-"] > .official-product,
	.miner-catalog-grid > .miner-product-card {
		max-width: 375px !important;
		flex: 1 1 calc(50% - 16px) !important;
	}
	.official-product-grid.count-1 > .miner-product-card,
	.official-product-grid--count-1 > .miner-product-card,
	.official-product-grid.count-1 > .official-product,
	.official-product-grid--count-1 > .official-product {
		flex: 0 1 100% !important;
		max-width: 360px !important;
	}
	/* Shop keeps 4 columns until 840px */
}

/* Shop: switch from 4 to 2 columns */
@media (max-width: 840px) {
	.woocommerce ul.products li.product {
		max-width: 400px !important;
		min-width: 200px !important;
		flex: 1 1 calc(50% - 16px) !important;
	}
}

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

	.official-product-grid > .miner-product-card,
	.official-product-grid[class*="count-"] > .miner-product-card,
	.official-product-grid[class*="count-"] > .official-product,
	.miner-catalog-grid > .miner-product-card {
		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;
	}
}

/* Shop: 1 column on very small screens */
@media (max-width: 520px) {
	.woocommerce ul.products li.product {
		max-width: 380px !important;
		flex: 1 1 100% !important;
	}
}

@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 / IoT Product Cards — Unified redesign
   Auto-height, profile type chip, 2-line title, 3 specs (icon + value + label),
   coloured stock dot, full-width View Product button.
   Identical design on Home, Shop, archive, and taxonomy pages.
   ========================================================================== */

/* Card: height:auto lets align-items:stretch on the parent equalise row height */
.miner-product-card.is-connected-product {
	box-sizing: border-box;
	height: auto !important;
	min-height: 0 !important;
}

/* Media */
.miner-product-card.is-connected-product .miner-product-card__media {
	height: 170px;
	min-height: 170px;
	background: linear-gradient(180deg, #fff 0%, #f8fbfb 100%);
}
.miner-product-card.is-connected-product .miner-product-card__image-link { padding: 14px 18px; }

/* Body */
.miner-product-card.is-connected-product .miner-product-card__body {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 11px 14px 13px;
	flex: 1 1 auto;
}

/* ── Profile type chip (brand div repurposed) ── */
.miner-product-card.is-connected-product .miner-product-card__brand {
	display: inline-flex !important;
	align-self: flex-start;
	margin: 0 0 7px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #e4f3ef;
	color: #0a6b5e;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Hide subtitle — type chip handles this; measurements appear in specs */
.miner-product-card.is-connected-product .miner-product-card__subtitle { display: none !important; }
.miner-product-card__subtitle { display: none !important; }

/* ── Title: 2-line clamp, left-aligned ── */
.miner-product-card.is-connected-product .miner-product-card__title {
	display: -webkit-box !important;
	min-height: 0;
	margin: 0 0 8px;
	overflow: hidden;
	color: #0f2d3f;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.38;
	text-align: left;
	white-space: normal !important;
	text-overflow: clip;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* ── Region row ── */
.miner-product-card.is-connected-product .miner-product-card__region {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	min-height: 0;
	margin: 0 0 8px;
	padding: 4px 9px;
	background: #f5faf8;
	border: 1px solid #d8e8e3;
	border-radius: 7px;
}
.miner-product-card.is-connected-product .miner-product-card__region span {
	color: #7a8e99;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
}
.miner-product-card.is-connected-product .miner-product-card__region strong {
	overflow: hidden;
	color: #0a6b5d;
	font-size: 10px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.miner-product-card.is-connected-product .miner-product-card__region.is-empty { display: none; }

/* ── Specs: flex row, equal-width cells, icon + value + label ── */
.miner-product-card.is-connected-product .miner-product-card__specs {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 0;
	min-height: 0;
	margin: 0 0 8px;
	padding: 6px 0;
	border-top: 1px solid #edf2f4;
	border-bottom: 1px solid #edf2f4;
}

/* Each cell grows equally; hide 4th+ */
.miner-product-card.is-connected-product .miner-product-card__specs > div {
	display: flex !important;
	flex: 1 1 0;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 2px 5px;
	gap: 2px;
	text-align: center;
}
.miner-product-card.is-connected-product .miner-product-card__specs > div + div {
	border-left: 1px solid #edf2f4;
}
.miner-product-card.is-connected-product .miner-product-card__specs > div:nth-child(n + 4) { display: none !important; }

/* Icons */
.miner-product-card.is-connected-product .miner-product-card__specs svg {
	display: block !important;
	width: 12px !important;
	height: 12px !important;
	flex-shrink: 0;
	color: #5a9e91;
	stroke: #5a9e91;
	fill: none;
	opacity: .9;
	margin-bottom: 1px;
}

/* Value */
.miner-product-card.is-connected-product .miner-product-card__specs strong {
	display: block !important;
	max-width: 100%;
	overflow: hidden;
	color: #1b3a4a;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Label */
.miner-product-card.is-connected-product .miner-product-card__specs small,
.miner-product-card.is-connected-product .miner-product-card__specs span {
	display: block !important;
	overflow: visible;
	color: #8fa0ab;
	font-size: 8px;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1.2;
	text-align: center;
	text-overflow: clip;
	text-transform: uppercase;
	white-space: normal;
}

/* ── Price — pushed to card bottom via margin-top: auto ── */
.miner-product-card.is-connected-product .miner-product-card__price-row {
	margin-top: auto;
	margin-bottom: 7px;
	text-align: center;
}
.miner-product-card.is-connected-product .miner-product-card__price {
	font-size: 18px;
	font-weight: 700;
	color: #0a7f72;
	line-height: 1.2;
}

/* ── Actions: stock dot on its own row, then full-width button ── */
.miner-product-card.is-connected-product .miner-product-card__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 7px;
	min-height: 0;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Stock dot + text */
.miner-product-card.is-connected-product .miner-product-card__stock {
	display: inline-flex !important;
	align-self: center;
	align-items: center;
	gap: 5px;
	padding: 0;
	background: transparent;
	border-radius: 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1;
	text-transform: uppercase;
}
.miner-product-card.is-connected-product .miner-product-card__stock::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}
.miner-product-card.is-connected-product .miner-product-card__stock.is-in-stock    { color: #16803c; }
.miner-product-card.is-connected-product .miner-product-card__stock.is-out-of-stock { color: #b91c1c; }
.miner-product-card.is-connected-product .miner-product-card__stock.is-backorder   { color: #b45309; }
.miner-product-card.is-connected-product .miner-product-card__stock.is-batch-open  { color: #b45309; }

/* View Product button */
.miner-product-card.is-connected-product .miner-product-card__actions .btn {
	display: flex !important;
	width: 100% !important;
	min-height: 36px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 9px 14px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 8px !important;
	letter-spacing: .02em;
}

@media (max-width: 640px) {
	.miner-product-card.is-connected-product { height: auto !important; min-height: 0 !important; }
	.miner-product-card.is-connected-product .miner-product-card__media { height: 188px; min-height: 188px; }
	.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: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
}
.woocommerce ul.products li.product .miner-product-card__actions .btn {
	display: flex !important;
	width: 100% !important;
	height: auto !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 9px 14px !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 8px !important;
	font-size: 12px !important;
	font-weight: 700 !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: auto !important;
		min-height: 0 !important;
	}
}

.shop-catalog-navigation {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto 24px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 30, 45, 0.03);
    box-sizing: border-box;
}

.shop-catalog-navigation__heading {
    text-align: center;
    margin-bottom: 20px;
}

.shop-catalog-navigation__heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.shop-catalog-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.shop-catalog-tab,
.shop-catalog-tabs a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 56px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #1e293b !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(15, 30, 45, 0.02);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
    text-align: left;
}

.shop-catalog-tab:hover,
.shop-catalog-tabs a:hover {
    border-color: #07835f;
    background: #f9fdfb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 131, 95, 0.09);
}

.shop-catalog-tab.is-active,
.shop-catalog-tabs a.is-active {
    border-color: #07835f;
    background: linear-gradient(135deg, #07835f 0%, #05684b 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(7, 131, 95, 0.22);
}

.shop-catalog-tab.is-active:hover,
.shop-catalog-tabs a.is-active:hover {
    background: linear-gradient(135deg, #07835f 0%, #05684b 100%);
    color: #ffffff !important;
    border-color: #05684b;
    box-shadow: 0 8px 22px rgba(7, 131, 95, 0.26);
}

.shop-catalog-tab__header {
    display: contents;
}

.shop-catalog-tab__icon,
.shop-catalog-tabs a .shop-catalog-tab__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s ease;
}

.shop-catalog-tab:hover .shop-catalog-tab__icon,
.shop-catalog-tabs a:hover .shop-catalog-tab__icon {
    background: #ecfdf5;
    color: #07835f;
    transform: scale(1.04);
}

.shop-catalog-tab.is-active .shop-catalog-tab__icon,
.shop-catalog-tabs a.is-active .shop-catalog-tab__icon {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.shop-catalog-tab__icon svg,
.shop-catalog-tabs svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.shop-catalog-tab__name {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1e293b;
    white-space: normal !important;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    transition: color 0.2s ease;
}

.shop-catalog-tab:hover .shop-catalog-tab__name,
.shop-catalog-tabs a:hover .shop-catalog-tab__name {
    color: #07835f;
}

.shop-catalog-tab.is-active .shop-catalog-tab__name,
.shop-catalog-tabs a.is-active .shop-catalog-tab__name {
    color: #ffffff !important;
}

.shop-catalog-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    min-width: 22px;
    text-align: center;
    transition: all 0.2s ease;
}

.shop-catalog-tab:hover .shop-catalog-tab__count,
.shop-catalog-tabs a:hover .shop-catalog-tab__count {
    background: #ecfdf5;
    color: #07835f;
}

.shop-catalog-tab.is-active .shop-catalog-tab__count,
.shop-catalog-tabs a.is-active .shop-catalog-tab__count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

@media (max-width: 1080px) {
    .shop-catalog-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .shop-catalog-tab,
    .shop-catalog-tabs a {
        min-height: 52px;
        padding: 9px 12px;
    }
}

@media (max-width: 580px) {
    .shop-catalog-navigation {
        width: calc(100% - 24px);
        padding: 12px 12px;
        margin-bottom: 18px;
        border-radius: 14px;
    }
    .shop-catalog-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .shop-catalog-tab,
    .shop-catalog-tabs a {
        min-height: 48px;
        padding: 8px 12px;
        border-radius: 10px;
    }
    .shop-catalog-tab__icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        flex: 0 0 32px;
    }
    .shop-catalog-tab__icon svg {
        width: 16px;
        height: 16px;
    }
    .shop-catalog-tab__name {
        font-size: 0.81rem;
    }
    .shop-catalog-tab__count {
        font-size: 0.68rem;
        padding: 2px 6px;
    }
}

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

/* Taxonomy Catalog Toolbar */
.taxonomy-catalog-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 12px 20px;
	margin-bottom: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(15, 30, 45, 0.03);
	width: 100%;
	box-sizing: border-box;
}

.taxonomy-count-badge,
.taxonomy-catalog-toolbar #miner-count-display {
	font-size: 0.88rem;
	font-weight: 600;
	color: #475569;
	display: flex;
	align-items: center;
}

.taxonomy-search-wrap,
.taxonomy-catalog-toolbar .miner-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 320px;
}

.taxonomy-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
	display: flex;
	align-items: center;
}

#miner-search-input {
	width: 100%;
	height: 40px;
	padding: 8px 16px 8px 38px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	font-size: 0.84rem;
	font-weight: 500;
	color: #0f172a;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#miner-search-input:focus {
	border-color: #087c5c;
	box-shadow: 0 0 0 3px rgba(8, 124, 92, 0.12);
}

@media (max-width: 600px) {
	.taxonomy-catalog-toolbar {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 12px;
		padding: 12px 14px;
	}
	.taxonomy-search-wrap,
	.taxonomy-catalog-toolbar .miner-search-wrap {
		max-width: 100%;
	}
	.taxonomy-count-badge,
	.taxonomy-catalog-toolbar #miner-count-display {
		font-size: 0.8rem;
	}
}

/* Unavailable Product Card Styling */
.miner-product-card.is-unavailable {
	opacity: 0.85;
}
.miner-product-card.is-unavailable:hover {
	opacity: 0.95;
}
.miner-product-card.is-unavailable .miner-product-card__image-link img,
.miner-product-card.is-unavailable .miner-product-card__image {
	filter: grayscale(35%);
	transition: filter 0.25s ease;
}
.miner-product-card.is-unavailable:hover .miner-product-card__image-link img,
.miner-product-card.is-unavailable:hover .miner-product-card__image {
	filter: grayscale(10%);
}
.miner-product-card__stock.stock-unavailable,
.miner-product-card__stock.is-unavailable {
	color: #f59e0b !important;
	font-weight: 600;
}
.miner-product-card__actions .btn-disabled,
.miner-product-card__actions .btn.is-disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
	background: #334155 !important;
	color: #94a3b8 !important;
	border-color: #475569 !important;
}

.miner-product-card.is-unavailable .miner-product-card__badges {
	max-width: calc(100% - 24px) !important;
	z-index: 10 !important;
}
.miner-product-card .miner-product-badge.is-unavailable-badge {
	background: #dc2626 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 0.68rem !important;
	padding: 4px 9px !important;
	border-radius: 6px !important;
	letter-spacing: 0.02em !important;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
	text-transform: uppercase !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	z-index: 10 !important;
	border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

