/**
 * Món Dưỡng Sinh Ăn Liền — category landing (Figma 04. Sample product group V3).
 */

.nn-mds-hero {
	position: relative;
	min-height: clamp(480px, 52vw, 750px);
	display: flex;
	align-items: center;
	background-color: #f4efe4;
	background-image: var(--nn-mds-hero-image);
	background-repeat: no-repeat;
	background-position: center right;
	background-size: cover;
	overflow: hidden;
}


.nn-mds-hero__inner {
	position: relative;
	z-index: 1;
	padding: 72px 0;
	width: 100%;
}

.nn-mds-hero__title {
	margin: 0 0 20px;
	color: #1f4d44;
	font-family: "Beautique Display", Georgia, serif;
	font-size: clamp(40px, 4.2vw, 64px);
	font-weight: 500;
	line-height: 1.4;
}

.nn-mds-hero__text {
	margin: 0 0 36px;
	max-width: 616px;
	color: #1d5c4b;
	font-family: "Be Vietnam Pro", sans-serif;
	font-size: clamp(18px, 1.4vw, 24px);
	font-weight: 400;
	line-height: 1.5;
}

.nn-mds-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.nn-mds-story-band {
	position: relative;
	height: 655px;
	min-height: 655px;
	background: #fff8e6;
	overflow: visible;
}

.nn-mds-story {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 100%;
	padding: 0;
	box-sizing: border-box;
	background: transparent;
	overflow: visible;
}

.nn-mds-story__visual {
	margin: 0;
}

.nn-mds-story__visual img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.nn-mds-story__visual--left {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 2;
	width: min(711px, 42%);
	max-width: 711px;
	height: 100%;
	margin: 0;
	pointer-events: none;
}

.nn-mds-story__visual--left img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 180px 180px 0;
}

.nn-mds-story__visual--right {
	position: absolute;
	top: 130px;
	right: max(40px, calc((100vw - 1920px) / 2 + 329px));
	z-index: 2;
	width: 593px;
	height: 408px;
	max-width: 593px;
	max-height: 408px;
	overflow: hidden;
	border-radius: 25px;
	margin: 0;
	pointer-events: none;
}

.nn-mds-story__visual--right img {
	width: 593px;
	height: 408px;
	max-width: none;
	object-fit: cover;
	border-radius: 25px;
}

.nn-mds-story__copy {
	position: relative;
	z-index: 1;
	max-width: 614px;
	padding: 24px 0;
	margin-left: min(280px, 18vw);
}

.nn-mds-story__copy p {
	margin: 0;
	color: #1f4d44;
	font-family: "Be Vietnam Pro", sans-serif;
	font-size: clamp(18px, 1.25vw, 22px);
	font-weight: 400;
	line-height: 32px;
}

.nn-mds-products {
    padding: 120px 0 160px;
    background: #dce9dc;
}

.nn-mds-products__title {
	margin: 0 0 48px;
	color: #1d5c4b;
	text-align: center;
	font-family: "Beautique Display", Georgia, serif;
	font-size: clamp(28px, 3vw, 45px);
	font-weight: 700;
	line-height: 1.2;
}

.nn-mds-products__grid.nn-shop-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

@media (max-width: 1550px) {
	.nn-mds-story-band {
		display: grid;
		grid-template-columns: minmax(160px, 0.85fr) minmax(280px, 1.2fr) minmax(200px, 0.95fr);
		align-items: center;
		gap: 24px 28px;
		height: auto;
		min-height: 0;
		padding: 48px 24px 56px;
		overflow: hidden;
	}

	.nn-mds-story {
		display: block;
		grid-column: 2;
		grid-row: 1;
		width: 100%;
		min-width: 0;
		height: auto;
		min-height: 0;
	}

	.nn-mds-story__copy {
		max-width: none;
		margin-left: 0;
		padding: 0;
		text-align: center;
	}

	.nn-mds-story__visual--left,
	.nn-mds-story__visual--right {
		position: relative;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		height: auto;
		margin: 0;
		pointer-events: auto;
	}

	.nn-mds-story__visual--left {
		grid-column: 1;
		grid-row: 1;
		height: min(420px, 46vw);
		overflow: hidden;
	}

	.nn-mds-story__visual--right {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		width: min(100%, 460px);
		max-height: none;
		overflow: hidden;
		border-radius: 20px;
		aspect-ratio: 593 / 408;
	}

	.nn-mds-story__visual--left img,
	.nn-mds-story__visual--right img {
		width: 100%;
		max-width: 100%;
		height: 100%;
		max-height: none;
		object-fit: cover;
	}

	.nn-mds-story__visual--left img {
		object-position: left center;
		border-radius: 0 140px 140px 0;
	}

	.nn-mds-story__visual--right img {
		object-position: center;
		border-radius: 20px;
	}

	.nn-mds-products__grid.nn-shop-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(16px, 1.8vw, 24px);
	}

	.nn-mds-products .nn-shop-card {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		height: auto;
		min-height: 0;
	}

	.nn-mds-products .nn-shop-card__body {
		max-width: min(100%, 340px);
	}

	.nn-mds-products.nn-shop-group--meal .nn-shop-name a,
	.nn-mds-products.nn-shop-group--meal .nn-shop-name__btn {
		font-size: clamp(18px, 1.7vw, 26px);
		line-height: 1.25;
	}

	.nn-mds-products .nn-shop-price,
	.nn-mds-products .nn-shop-price__now {
		min-width: 0;
		font-size: clamp(20px, 1.9vw, 28px);
	}

	.nn-mds-products .nn-shop-card__foot {
		align-items: center;
		gap: 8px;
	}

	.nn-mds-products .nn-shop-more {
		width: 116px;
		min-width: 116px;
		height: 42px;
		min-height: 42px;
		line-height: 42px;
	}
}

@media (max-width: 1550px) and (min-width: 761px) {
	.nn-mds-hero {
		display: grid;
		grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1.08fr);
		align-items: stretch;
		min-height: 0;
		background-image: none;
		background-color: #f7f3ea;
	}

	.nn-mds-hero::after {
		content: "";
		min-height: 460px;
		background-image: var(--nn-mds-hero-image);
		background-repeat: no-repeat;
		background-position: right center;
		background-size: cover;
	}

	.nn-mds-hero__inner {
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: auto;
		padding: 48px 32px;
	}

	.nn-mds-hero__title,
	.nn-mds-hero__text,
	.nn-mds-hero__actions {
		max-width: 520px;
	}

	.nn-mds-hero__text {
		margin-bottom: 24px;
	}

	.nn-mds-hero__actions {
		gap: 12px;
	}

	.nn-mds-hero__actions .nn-btn-blob {
		min-width: 0;
		width: auto;
		height: 64px;
		min-height: 64px;
		padding: 0 16px;
		font-size: 16px;
	}
}

@media (max-width: 1100px) {
	.nn-mds-story-band {
		grid-template-columns: 1fr;
		justify-items: center;
		padding: 36px 24px 48px;
	}

	.nn-mds-story,
	.nn-mds-story__visual--right {
		grid-column: 1;
		width: 100%;
		max-width: 640px;
	}

	.nn-mds-story {
		grid-row: 1;
	}

	.nn-mds-story__visual--left {
		display: none;
	}

	.nn-mds-story__visual--right {
		grid-row: 2;
		height: auto;
	}

	.nn-mds-products__grid.nn-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.nn-mds-page .nn-mds-hero {
		margin-top: -120px;
		min-height: 760px;
		align-items: flex-start;
		background-image: var(--nn-mds-hero-image-mobile, var(--nn-mds-hero-image));
		background-position: center top;
		background-size: cover;
	}

	.nn-mds-hero__inner {
		padding: 136px 16px 36px;
	}

	.nn-mds-hero__title {
		max-width: 349px;
		margin-bottom: 12px;
		font-size: 32px;
		line-height: 1.28;
	}

	.nn-mds-hero__text {
		max-width: 330px;
		margin-bottom: 18px;
		font-size: 15px;
		line-height: 1.5;
	}

	.nn-mds-hero__actions {
		flex-wrap: nowrap;
		gap: 12px;
	}

	.nn-mds-hero__actions .nn-btn-blob {
		flex: 0 0 auto;
		width: auto;
		height: 52px;
		min-width: 0;
		min-height: 52px;
		padding: 0 14px 2px;
		font-size: 14px;
	}

	.nn-mds-hero__actions .nn-btn-blob__label {
		width: auto;
		white-space: nowrap;
	}
}

@media (max-width: 720px) {

	.nn-mds-story-band {
		padding: 40px 0 56px;
	}

	.nn-mds-products {
		padding: 48px 0 64px;
	}

	.nn-mds-products__grid.nn-shop-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.nn-mds-story-band {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 0;
		padding: 28px 16px 36px;
		background: #f4f7f1;
	}

	.nn-mds-story {
		order: 1;
		display: block;
		height: auto;
		min-height: 0;
	}

	.nn-mds-story__copy {
		max-width: none;
		margin: 0;
		padding: 0 8px 20px;
		text-align: center;
	}

	.nn-mds-story__copy p {
		font-size: 15px;
		line-height: 1.65;
	}

	.nn-mds-story__visual--left {
		display: none;
	}

	.nn-mds-story__visual--right {
		order: 2;
		position: relative;
		top: auto;
		right: auto;
		left: auto;
		width: 100%;
		max-width: none;
		height: auto;
		max-height: none;
		margin: 0;
		overflow: hidden;
		aspect-ratio: 4 / 3;
		border-radius: 18px;
		pointer-events: auto;
	}

	.nn-mds-story__visual--right img {
		width: 100%;
		height: 100%;
		max-width: 100%;
		max-height: none;
		border-radius: 18px;
		object-fit: cover;
		object-position: center;
	}
}
