/**
 * Product single — clean dossier layout
 */

.ms-product-page {
	padding: var(--ms-space-xl) 0 var(--ms-space-3xl);
	background: #fff;
}

.ms-product-page__crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: var(--ms-color-text-muted);
	margin-bottom: 1rem;
}

.ms-product-page__crumb a {
	color: inherit;
	text-decoration: none;
}

.ms-product-page__crumb a:hover {
	color: var(--ms-color-primary);
}

/* ── Hero ── */
.ms-prod-hero {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
	.ms-prod-hero {
		flex-direction: row;
		align-items: flex-end;
		gap: 1.75rem;
	}
}

.ms-prod-hero__visual {
	position: relative;
	width: 100%;
	margin: 0 auto;
	flex-shrink: 0;
}

@media (min-width: 900px) {
	.ms-prod-hero__visual {
		width: 40%;
		margin: 0;
	}
}

.ms-prod-hero__panel {
	padding: 1.25rem 0 0;
	width: 100%;
	flex: 1;
	min-width: 0;
}

@media (min-width: 900px) {
	.ms-prod-hero__panel {
		width: 60%;
		padding: 0;
	}
}

.ms-prod-hero__frame {
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ms-color-border);
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.ms-prod-gallery__main {
	position: relative;
	cursor: zoom-in;
	isolation: isolate;
}

.ms-prod-hero__frame img {
	display: block;
	max-width: 100%;
	max-height: 220px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.ms-prod-gallery__zoom-lens {
	position: absolute;
	top: 50%;
	left: 50%;
	width: clamp(96px, 20vw, 132px);
	height: clamp(96px, 20vw, 132px);
	border: 2px solid rgba(255, 255, 255, 0.96);
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.16);
	background-repeat: no-repeat;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
	transform: translate(-50%, -50%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
	z-index: 2;
}

.ms-prod-gallery__main.is-zooming .ms-prod-gallery__zoom-lens {
	opacity: 1;
}

.ms-prod-gallery__main.is-zooming img {
	opacity: 0.98;
}

@media (min-width: 900px) {
	.ms-prod-hero__frame {
		flex: 1;
		min-height: 0;
		max-height: none;
		border: none;
		border-radius: 0;
		padding: 0.5rem;
	}

	.ms-prod-hero__frame img {
		max-height: 100%;
		height: auto;
		width: auto;
		max-width: 100%;
		object-fit: contain;
	}
}

@media (hover: none) {
	.ms-prod-gallery__main {
		cursor: default;
	}
}

.ms-prod-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 180px;
	color: var(--ms-color-text-muted);
}

.ms-prod-hero__placeholder svg {
	width: 2.5rem;
	height: 2.5rem;
	opacity: 0.4;
}

.ms-prod-hero__badge {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	background: var(--ms-color-primary);
	color: #fff;
	z-index: 2;
}

.ms-prod-hero__badge--new { background: #16a34a; }
.ms-prod-hero__badge--hot { background: #dc2626; }
.ms-prod-hero__badge--sale { background: #dc2626; left: 0.65rem; right: auto; }

.ms-prod-hero__sold {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 1rem;
	text-align: center;
	background: rgba(15, 23, 42, 0.5);
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.45;
	border-radius: 14px;
	z-index: 3;
}

.ms-prod-hero__sold-note {
	margin: 0.65rem 0 0;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.5;
}

@media (min-width: 900px) {
	.ms-prod-hero__visual > .ms-prod-gallery {
		position: relative;
	}

	.ms-prod-hero__sold {
		inset: auto;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	}
}

.ms-prod-hero__brand {
	display: inline-block;
	margin-bottom: 0.25rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ms-color-primary);
}

.ms-prod-hero__title {
	margin: 0 0 0.15rem;
	font-size: clamp(1.35rem, 3.5vw, 1.75rem);
	font-weight: 800;
	line-height: 1.25;
	color: var(--ms-color-navy);
}

.ms-prod-hero__title-en {
	margin: 0 0 0.35rem;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ms-color-text-muted);
	letter-spacing: 0.01em;
	text-align: start;
}

.ms-prod-hero__storage,
.ms-prod-hero__sku {
	margin: 0 0 0.5rem;
	font-size: 0.82rem;
	color: var(--ms-color-text-muted);
}

.ms-prod-hero__price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 1rem 0 1.15rem;
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	background: #fafafa;
	border: 1px solid var(--ms-color-border);
}

.ms-prod-hero__price-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ms-color-text-muted);
}

/* ── Gallery ── */
.ms-prod-gallery {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	width: 100%;
}

@media (min-width: 900px) {
	.ms-prod-gallery {
		display: flex;
		flex-direction: column;
		height: var(--ms-prod-gallery-h, auto);
		padding: 0.75rem;
		border: 1px solid var(--ms-color-border);
		border-radius: 14px;
		background: #fff;
		box-sizing: border-box;
	}

	.ms-prod-gallery__main {
		flex: 1;
		min-height: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.ms-prod-gallery__thumbs {
		flex-shrink: 0;
	}
}

.ms-prod-gallery__thumbs {
	display: flex;
	gap: 0.45rem;
	overflow-x: auto;
	padding-bottom: 0.1rem;
	scrollbar-width: thin;
}

.ms-prod-gallery__thumb {
	flex: 0 0 3.5rem;
	height: 3.5rem;
	padding: 0.25rem;
	border: 1px solid var(--ms-color-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.ms-prod-gallery__thumb:hover {
	border-color: rgba(234, 88, 12, 0.5);
}

.ms-prod-gallery__thumb.is-active {
	border-color: var(--ms-color-primary);
	box-shadow: 0 0 0 1px var(--ms-color-primary);
}

.ms-prod-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* ── Health dials ── */
.ms-prod-dials {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	align-items: stretch;
}

.ms-prod-dial {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 0.5rem;
	border-radius: 12px;
	background: #fafafa;
	border: 1px solid var(--ms-color-border);
	text-align: center;
}

.ms-prod-dial__title {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ms-color-navy);
}

.ms-prod-dial__pct {
	font-size: 1rem;
	font-weight: 800;
	color: var(--ms-color-navy);
	line-height: 1;
}

/* Cleanliness arc */
.ms-prod-dial__arc {
	position: relative;
	width: 100%;
	max-width: 120px;
}

.ms-prod-dial__arc svg {
	width: 100%;
	height: auto;
	display: block;
}

.ms-prod-dial__arc .ms-prod-dial__pct {
	position: absolute;
	left: 50%;
	bottom: 0.15rem;
	transform: translateX(-50%);
	font-size: 1.05rem;
	color: var(--ms-color-primary);
}

.ms-prod-dial__arc-bg {
	fill: none;
	stroke: #e8ecf1;
	stroke-width: 7;
	stroke-linecap: round;
}

.ms-prod-dial__arc-fill {
	fill: none;
	stroke: var(--ms-color-primary);
	stroke-width: 7;
	stroke-linecap: round;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ms-prod-dial.is-animated .ms-prod-dial__arc-fill {
	stroke-dashoffset: calc(100 - var(--dial-pct, 0));
}

/* Battery gauge */
.ms-prod-battery {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.ms-prod-battery__shell {
	position: relative;
	width: 2.2rem;
	height: 3.75rem;
	border: 2.5px solid var(--ms-color-navy);
	border-radius: 7px;
	overflow: hidden;
	background: #fff;
}

.ms-prod-battery__fill {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 0;
	background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
	transition: height 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ms-prod-dial.is-animated .ms-prod-battery__fill {
	height: var(--battery-h, 0);
}

.ms-prod-dial--battery.is-warn .ms-prod-battery__fill {
	background: linear-gradient(180deg, #fbbf24 0%, #ea580c 100%);
}

.ms-prod-battery__cap {
	width: 0.85rem;
	height: 4px;
	border-radius: 2px 2px 0 0;
	background: var(--ms-color-navy);
}

/* Screen guarantee dial */
.ms-prod-dial--screen {
	gap: 0.35rem;
	justify-content: flex-start;
}

.ms-prod-screen {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 120px;
	min-height: 3.35rem;
	align-items: center;
}

.ms-prod-screen__device {
	position: relative;
	width: 2.35rem;
	padding: 0.28rem 0.22rem 0.32rem;
	border: 2px solid var(--ms-color-navy);
	border-radius: 9px;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.ms-prod-screen__speaker {
	display: block;
	width: 0.7rem;
	height: 0.12rem;
	margin: 0 auto 0.22rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.18);
}

.ms-prod-screen__glass {
	position: relative;
	overflow: hidden;
	min-height: 2.65rem;
	border-radius: 6px;
	background: linear-gradient(160deg, #dbeafe 0%, #bfdbfe 42%, #93c5fd 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.ms-prod-screen__shine {
	position: absolute;
	inset: -20% auto -20% -45%;
	width: 42%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
	transform: translateX(-140%) skewX(-18deg);
	opacity: 0;
}

.ms-prod-dial--screen.is-animated .ms-prod-screen__shine {
	opacity: 1;
	animation: msProdScreenShine 1.8s ease-in-out 0.15s forwards;
}

.ms-prod-screen__check {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transform: scale(0.4);
	opacity: 0;
}

.ms-prod-screen__check svg {
	width: 14px;
	height: 14px;
	filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.25));
}

.ms-prod-dial--screen.is-animated .ms-prod-screen__check {
	animation: msProdScreenCheck 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.ms-prod-dial--screen.is-animated .ms-prod-screen__glass {
	animation: msProdScreenGlow 2.2s ease-in-out 0.2s infinite alternate;
}

.ms-prod-screen__badge {
	margin: 0;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	background: rgba(22, 163, 74, 0.12);
	color: var(--ms-color-accent);
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.2;
}

.ms-prod-screen__note {
	margin: 0;
	max-width: 100%;
	font-size: 0.6rem;
	line-height: 1.35;
	color: var(--ms-color-text-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

@keyframes msProdScreenShine {
	to {
		transform: translateX(320%) skewX(-18deg);
	}
}

@keyframes msProdScreenCheck {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes msProdScreenGlow {
	from {
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 0 0 rgba(59, 130, 246, 0);
	}
	to {
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 18px rgba(59, 130, 246, 0.22);
	}
}

/* ── Price block ── */
.ms-prod-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
}

.ms-prod-price__now {
	font-size: clamp(1.15rem, 3vw, 1.5rem);
	font-weight: 800;
	color: var(--ms-color-primary);
}

.ms-prod-price__was {
	font-size: 0.82rem;
	color: var(--ms-color-text-muted);
	text-decoration: line-through;
}

.ms-prod-price__badge {
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 700;
	background: #dc2626;
	color: #fff;
}

.ms-prod-hero__price .ms-prod-price {
	margin-inline-start: auto;
	justify-content: flex-end;
}

.ms-prod-hero__excerpt {
	margin: 0.85rem 0 0;
	font-size: 0.82rem;
	line-height: 1.6;
	color: var(--ms-color-text-muted);
}

/* ── WooCommerce cart ── */
.ms-prod-cart--wc {
	margin-top: 1rem;
}

.ms-prod-cart--wc .cart {
	display: block;
}

.ms-prod-cart--wc .quantity {
	display: none !important;
}

.ms-prod-cart--wc .single_add_to_cart_button {
	display: block;
	width: 100%;
	padding: 0.85rem 1rem;
	border: none;
	border-radius: 12px;
	background: var(--ms-color-primary);
	color: #fff;
	font-family: var(--ms-font, inherit);
	font-weight: 700;
	font-size: var(--ms-text-sm, 0.9rem);
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.ms-prod-cart--wc .single_add_to_cart_button:hover {
	opacity: 0.92;
}

.ms-prod-cart--wc .single_add_to_cart_button:active {
	transform: scale(0.99);
}

.ms-wc-product .woocommerce-message,
.ms-wc-product .woocommerce-info,
.ms-wc-product .woocommerce-error {
	margin-bottom: 1rem;
	font-size: 0.88rem;
}

/* ── Trust line ── */
.ms-prod-highlights {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem 0.55rem;
	margin-bottom: 1.25rem;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	background: #fafafa;
	border: 1px solid var(--ms-color-border);
	font-size: 0.75rem;
	color: var(--ms-color-text-muted);
}

.ms-prod-highlights span[aria-hidden="true"] {
	opacity: 0.35;
}

/* ── Spec sheet ── */
.ms-prod-sheet {
	margin-bottom: 1.25rem;
	padding: 1.1rem 1rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--ms-color-border);
}

.ms-prod-sheet__head {
	margin-bottom: 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--ms-color-border);
}

.ms-prod-sheet__head h2 {
	margin: 0 0 0.15rem;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--ms-color-navy);
}

.ms-prod-sheet__head p {
	margin: 0;
	font-size: 0.78rem;
	color: var(--ms-color-text-muted);
}

.ms-prod-sheet__table {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.ms-prod-sheet__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 0.65rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--ms-color-border);
	align-items: center;
}

.ms-prod-sheet__row:last-child {
	border-bottom: none;
}

.ms-prod-sheet__row dt {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ms-color-text-muted);
}

.ms-prod-sheet__row dd {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ms-color-navy);
}

.ms-prod-sheet__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 8px;
	background: rgba(234, 88, 12, 0.08);
	color: var(--ms-color-primary);
}

.ms-prod-sheet__icon svg {
	width: 0.95rem;
	height: 0.95rem;
	display: block;
}

/* ── Desc & actions ── */
.ms-prod-desc {
	margin-bottom: 1.25rem;
	padding: 1rem;
	border-radius: 12px;
	background: #fafafa;
	border: 1px solid var(--ms-color-border);
	font-size: 0.85rem;
	line-height: 1.7;
	color: var(--ms-color-text-muted);
}

.ms-prod-actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	max-width: 24rem;
}

@media (min-width: 640px) {
	.ms-prod-sheet__row {
		grid-template-columns: 180px 1fr;
	}

	.ms-prod-sheet__row dd {
		text-align: right;
	}
}

/* ── Product grid & cards ── */
.ms-product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.ms-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.ms-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ms-product-card {
	min-width: 0;
	height: 100%;
}

.ms-product-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: var(--ms-color-surface);
	border: 1px solid var(--ms-color-border);
	border-radius: var(--ms-radius-lg);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(27, 43, 75, 0.06);
	transition: box-shadow var(--ms-transition), transform var(--ms-transition);
}

.ms-product-card__link:hover {
	color: inherit;
	box-shadow: var(--ms-shadow-md);
	transform: translateY(-3px);
}

.ms-product-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: linear-gradient(180deg, #fafbfc 0%, #f1f4f8 100%);
	overflow: hidden;
}

.ms-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	padding: 0;
}

/* Related products — show full device inside frame */
.ms-product-grid .ms-product-card__media img {
	object-fit: contain;
	padding: 0.85rem;
}

.ms-product-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--ms-color-text-muted);
	opacity: 0.45;
}

.ms-product-card__placeholder svg {
	width: 2.5rem;
	height: 2.5rem;
}

.ms-product-card__badge {
	position: absolute;
	top: 0.55rem;
	inset-inline-start: 0.55rem;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	background: var(--ms-color-navy);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.2;
	z-index: 1;
}

.ms-product-card__badge--featured {
	background: var(--ms-color-primary);
}

.ms-product-card__badge--new {
	background: #16a34a;
}

.ms-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.35rem;
	padding: 0.8rem 0.85rem 0.9rem;
}

.ms-product-card__brand {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ms-color-primary);
}

.ms-product-card__title {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.45;
	color: var(--ms-color-navy);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.ms-product-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.55rem;
	font-size: 0.72rem;
	color: var(--ms-color-text-muted);
}

.ms-product-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.45rem;
}

.ms-product-card__price {
	font-size: 0.86rem;
	font-weight: 800;
	color: var(--ms-color-navy);
}

.ms-product-card__cta {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ms-color-primary);
	white-space: nowrap;
}


/* ── Related ── */
.ms-prod-related {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ms-color-border);
}

.ms-prod-related__head {
	margin-bottom: 0.85rem;
}

.ms-prod-related__head h2 {
	margin: 0 0 0.15rem;
	font-size: 1rem;
	font-weight: 800;
	color: var(--ms-color-navy);
}

.ms-prod-related__head p {
	margin: 0;
	font-size: 0.78rem;
	color: var(--ms-color-text-muted);
}

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

@media (min-width: 900px) {
	.ms-product-grid--related {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ms-product-card__badge--sale {
	background: #dc2626;
}

.ms-product-card--sold .ms-product-card__link {
	cursor: default;
}

.ms-product-card--sold .ms-product-card__link:hover {
	transform: none;
	box-shadow: 0 2px 12px rgba(27, 43, 75, 0.06);
}

.ms-product-card--sold .ms-product-card__media img {
	filter: grayscale(0.35);
	opacity: 0.72;
}

.ms-product-card--sold .ms-product-card__price,
.ms-product-card--sold .ms-product-card__title {
	opacity: 0.65;
}

.ms-product-card__sold {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.5rem;
	text-align: center;
	background: rgba(15, 23, 42, 0.52);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0.02em;
}

.ms-product-card--sold .ms-product-card__cta {
	color: #991b1b;
	font-weight: 800;
}

/* ── Single product — testing block ── */
.ms-prod-purchase {
	margin: 0 0 1.15rem;
}

.ms-prod-testing {
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: #fafafa;
	border: 1px solid var(--ms-color-border);
}

.ms-prod-testing__head {
	margin-bottom: 0.75rem;
}

.ms-prod-testing__status {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: #e0f2fe;
	color: #0369a1;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.3;
}

.ms-prod-testing__status svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.ms-prod-testing__hint {
	margin: 0.55rem 0 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--ms-color-text-muted);
}

.ms-prod-testing__timer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--ms-color-border);
}

.ms-prod-testing__timer-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ms-color-text-muted);
}

.ms-prod-testing__countdown {
	font-size: 1.15rem;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.05em;
	color: var(--ms-color-navy);
	direction: ltr;
}

.ms-prod-testing__progress {
	margin-top: 0.65rem;
	height: 3px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}

.ms-prod-testing__progress-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #38bdf8, #0ea5e9);
	transition: width 1s linear;
}

.ms-prod-testing.is-complete .ms-prod-testing__countdown {
	opacity: 0.55;
}

/* ── Countdown widget (shop / carousel) ── */
.ms-countdown {
	text-align: center;
}

.ms-countdown--card,
.ms-countdown--hp {
	margin-top: 0.35rem;
	padding: 0.5rem 0.45rem 0.45rem;
	border-radius: 10px;
	background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
	border: 1px solid rgba(249, 115, 22, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 16px rgba(15, 23, 42, 0.18);
}

.ms-countdown__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0 0 0.45rem;
	font-size: 0.62rem;
	font-weight: 800;
	color: #fdba74;
	letter-spacing: 0.01em;
}

.ms-countdown__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f97316;
	box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
	animation: ms-countdown-dot 1.6s ease-out infinite;
	flex-shrink: 0;
}

@keyframes ms-countdown-dot {
	0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); }
	70% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
	100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.ms-countdown__digits {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0.2rem;
}

.ms-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.12rem;
	min-width: 2.1rem;
}

.ms-countdown__unit strong {
	display: block;
	min-width: 1.85rem;
	padding: 0.22rem 0.3rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(249, 115, 22, 0.35);
	font-size: 0.88rem;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	color: #fff;
	text-shadow: 0 0 14px rgba(249, 115, 22, 0.55);
	line-height: 1.15;
}

.ms-countdown__unit span {
	font-size: 0.5rem;
	font-weight: 700;
	color: rgba(253, 186, 116, 0.8);
}

.ms-countdown__sep {
	font-size: 0.82rem;
	font-weight: 900;
	color: #f97316;
	line-height: 1.65;
	opacity: 0.85;
	animation: ms-countdown-blink 1s step-end infinite;
}

@keyframes ms-countdown-blink {
	50% { opacity: 0.25; }
}

.ms-countdown__progress {
	margin-top: 0.45rem;
	height: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.ms-countdown__progress-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #fb923c, #f97316, #ea580c);
	transition: width 1s linear;
	position: relative;
	overflow: hidden;
}

.ms-countdown__progress-fill::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
	animation: ms-countdown-shimmer 2.2s ease-in-out infinite;
}

@keyframes ms-countdown-shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.ms-countdown.is-complete .ms-countdown__unit strong {
	opacity: 0.55;
}

/* Shop card — testing badge & accent */
.ms-product-card__badge--testing {
	background: linear-gradient(135deg, #fb923c, #ea580c);
	color: #fff;
	z-index: 2;
	box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
}

.ms-product-card--testing .ms-product-card__link {
	border-color: rgba(249, 115, 22, 0.28);
	box-shadow: 0 2px 14px rgba(249, 115, 22, 0.1);
}

.ms-product-card--testing .ms-product-card__cta {
	color: #ea580c;
	font-weight: 800;
}
