/* ==========================================================================
   MASTORE Editorial Catalog: Price, Rating & Promocode Styling
   Designed for high-density mobile 2-column grids & desktop layout
   ========================================================================== */

.mc-price {
	display: block;
	width: 100%;
	margin-top: 6px;
	margin-bottom: 2px;
	line-height: 1.25;
}

.mc-price .screen-reader-text,
.mc-price .wc-offscreen {
	display: none !important;
}

/* --------------------------------------------------------------------------
   META TOP: Brand name + Micro Rating Badge
   -------------------------------------------------------------------------- */
.mc-meta-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 5px;
	min-width: 0;
}

.mc-meta-top .mc-brand {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Micro Rating: Sleek pill with high-contrast star & pure number */
.mc-rating {
	display: inline-flex;
	align-items: center;
	gap: 3.5px;
	font-size: 11px;
	line-height: 1;
	color: #0f172a;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 2.5px 6.5px;
	border-radius: 9999px;
	white-space: nowrap;
	flex-shrink: 0;
	user-select: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.mc-rating-star {
	color: #f59e0b;
	flex-shrink: 0;
	display: block;
	filter: drop-shadow(0 0.5px 1px rgba(245, 158, 11, 0.25));
}

.mc-rating-val {
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
}

.mc-rating-count {
	display: none !important;
}

/* --------------------------------------------------------------------------
   PRICE CONTAINER & PROMO TIERS
   -------------------------------------------------------------------------- */
.mc-price-line {
	display: flex;
	flex-direction: column;
	gap: 3px;
	width: 100%;
	min-width: 0;
}

/* Primary Promo Price Row */
.mc-price-promo {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 6px;
	row-gap: 3px;
	line-height: 1.15;
}

.mc-promo-price {
	text-decoration: none;
	color: #09090b;
	font-size: 15.5px;
	font-weight: 850;
	letter-spacing: -0.035em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mc-promo-price .woocommerce-Price-currencySymbol {
	font-size: 0.9em;
	font-weight: 700;
	margin-left: 1px;
}

/* Compact Editorial Promo Badge: "ПРОМОКОД -5%" */
.mc-promo-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 5.5px;
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
	border-radius: 4px;
	font-size: 10px;
	line-height: 1;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: 0 1px 2px rgba(4, 120, 87, 0.05);
}

.mc-promo-tag {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #047857;
	margin-right: 4px;
}

.mc-promo-pct {
	font-size: 9.5px;
	font-weight: 850;
	color: #065f46;
	letter-spacing: -0.01em;
	padding-left: 4px;
	border-left: 1px solid rgba(4, 120, 87, 0.25);
}

/* Secondary (Original Price) Row */
.mc-price-regular {
	display: flex;
	align-items: baseline;
	gap: 4px;
	line-height: 1.1;
	min-width: 0;
}

.mc-reg-label {
	color: #94a3b8;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.mc-reg-price {
	color: #94a3b8;
	font-size: 11.5px;
	font-weight: 500;
	text-decoration: line-through;
	text-decoration-color: #cbd5e1;
	text-decoration-thickness: 1.2px;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mc-reg-price .woocommerce-Price-amount {
	color: inherit;
	text-decoration: inherit;
}

/* Fallback WooCommerce del / ins */
.mc-price del {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 500;
	text-decoration: line-through;
}

.mc-price ins {
	text-decoration: none;
	color: #0f172a;
	font-size: 15px;
	font-weight: 800;
}

/* --------------------------------------------------------------------------
   RESPONSIVE (Desktop & Mobile)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.mc-price-line {
		gap: 4px;
	}
	.mc-promo-price {
		font-size: 17px;
	}
	.mc-promo-badge {
		font-size: 10.5px;
		padding: 2.5px 6.5px;
	}
	.mc-promo-tag {
		font-size: 9.5px;
	}
	.mc-promo-pct {
		font-size: 10px;
	}
	.mc-reg-label {
		font-size: 11px;
	}
	.mc-reg-price {
		font-size: 12px;
	}
	.mc-rating {
		font-size: 11.5px;
		padding: 3px 7px;
	}
}

/* Extra-tight Mobile (two columns, e.g. iPhone SE / Mini & narrow viewports) */
@media (max-width: 480px) {
	.mc-meta-top {
		margin-bottom: 3px;
	}
	.mc-promo-price {
		font-size: 14.5px;
	}
	.mc-promo-badge {
		font-size: 9px;
		padding: 2px 4.5px;
	}
	.mc-promo-tag {
		font-size: 8px;
		margin-right: 3px;
	}
	.mc-promo-pct {
		font-size: 8.5px;
		padding-left: 3px;
	}
	.mc-reg-label {
		font-size: 10px;
	}
	.mc-reg-price {
		font-size: 10.5px;
	}
	.mc-rating {
		font-size: 10px;
		padding: 2px 5px;
		gap: 2.5px;
	}
	.mc-rating-star {
		width: 10px;
		height: 10px;
	}
}
