/* Hypernova Homepage Manager — scoped product sections */

.hn-hm-section {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 32px auto;
	padding: 0 12px;
	direction: rtl;
}

.hn-hm-section .hn-hm-title {
	margin: 0 0 14px;
	color: #0A1A3D;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
}

.hn-hm-section .hn-hm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.hn-hm-section .hn-hm-card {
	min-width: 0;
	display: block;
	overflow: hidden;
	background: #FFFFFF;
	border: 1px solid rgba(10, 26, 61, 0.08);
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(10, 26, 61, 0.05);
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.hn-hm-section .hn-hm-card:hover {
	transform: translateY(-2px);
	border-color: rgba(160, 49, 97, 0.20);
	box-shadow: 0 7px 20px rgba(10, 26, 61, 0.09);
	text-decoration: none;
}

.hn-hm-section .hn-hm-card:focus-visible {
	outline: 2px solid #A03161;
	outline-offset: 2px;
}

.hn-hm-section .hn-hm-card-img {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #F6F1E6;
	line-height: 0;
}

.hn-hm-section .hn-hm-card-img img,
.hn-hm-section .hn-hm-card .hn-hm-img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.hn-hm-section .hn-hm-card-body {
	padding: 9px 9px 11px;
}

.hn-hm-section .hn-hm-card-name {
	min-width: 0;
	margin: 0 0 5px;
	color: #0A1A3D;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.hn-hm-section .hn-hm-card-price {
	min-width: 0;
	color: #A03161;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.65;
}

.hn-hm-section .hn-hm-card-price del {
	margin-inline-end: 4px;
	color: #777777;
	font-size: 0.88em;
	font-weight: 400;
	opacity: 0.85;
}

.hn-hm-section .hn-hm-card-price ins {
	background: transparent;
	color: #A03161;
	text-decoration: none;
}

.hn-hm-section .hn-hm-card-price .woocommerce-Price-currencySymbol {
	font-size: 0.88em;
	font-weight: 500;
}

@media (min-width: 700px) {
	.hn-hm-section {
		margin: 38px auto;
		padding: 0 16px;
	}

	.hn-hm-section .hn-hm-title {
		margin-bottom: 17px;
		font-size: 20px;
	}

	.hn-hm-section .hn-hm-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}

	.hn-hm-section .hn-hm-card-body {
		padding: 11px 12px 14px;
	}

	.hn-hm-section .hn-hm-card-name,
	.hn-hm-section .hn-hm-card-price {
		font-size: 14px;
	}
}

@media (min-width: 1024px) {
	.hn-hm-section .hn-hm-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}

	.hn-hm-section .hn-hm-title {
		font-size: 22px;
	}
}
