/* Homepage promotion, category best, MD recommendation, and benefit sections. */
.home-special-section {
	padding: 0 0 35px;
}

.home-special-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.home-special-card {
	position: relative;
	display: flex;
	min-height: 260px;
	padding: 27px 28px;
	overflow: hidden;
	border-radius: 12px;
	color: #fff;
	background: var(--card-color);
}

.home-special-copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.home-special-copy h2 {
	margin: 0 0 20px;
	font-size: 25px;
	line-height: 1.3;
}

.home-special-copy p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.home-special-copy span {
	margin-top: auto;
	font-size: 15px;
	font-weight: 700;
}

.home-special-card img {
	position: absolute;
	right: -5%;
	bottom: -10%;
	width: 58%;
	height: 80%;
	object-fit: contain;
	object-position: right bottom;
}

.home-best-section,
.home-md-section {
	padding-top: 55px;
	padding-bottom: 55px;
}

.home-section-tabs {
	display: flex;
	gap: 26px;
	margin-bottom: 28px;
	overflow-x: auto;
	border-bottom: 1px solid var(--line);
}

.home-section-tabs button {
	flex: none;
	padding: 0 2px 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	background: transparent;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.home-section-tabs a {
	flex: none;
	padding: 0 2px 14px;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

.home-section-tabs button[aria-selected="true"],
.home-section-tabs a.is-active {
	border-color: var(--ink);
	color: var(--ink);
}

.home-best-panel .product-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.home-ranked-card .product-image {
	position: relative;
}

.home-rank-badge {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 34px;
	height: 40px;
	color: #fff;
	background: var(--green);
	font-size: 17px;
	font-weight: 700;
}

.home-md-panel .product-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px 18px;
}

.home-benefits {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 15px;
	margin-bottom: 80px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.home-benefit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-height: 165px;
	padding: 25px 10px 18px;
	text-align: center;
}

.home-benefit + .home-benefit {
	border-left: 1px solid var(--line);
}

.home-benefit img {
	width: 50px;
	height: 50px;
	object-fit: contain;
}

.home-benefit strong {
	font-size: 16px;
}

.home-benefit span {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
}

a.home-benefit:hover {
	color: var(--green);
}

.home-promotion-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
}

.home-promotion-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.home-promotion-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1.8;
	overflow: hidden;
	background: var(--cream);
}

.home-promotion-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-promotion-status,
.home-promotion-count {
	position: absolute;
	bottom: 12px;
	padding: 6px 10px;
	color: #fff;
	background: rgb(0 0 0 / 60%);
	font-size: 13px;
}

.home-promotion-status {
	left: 12px;
}

.home-promotion-count {
	right: 12px;
}

.home-promotion-card strong {
	font-size: 20px;
}

.home-promotion-date {
	color: var(--muted);
	font-size: 14px;
}

.home-promotion-hero {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.home-promotion-content {
	margin-top: 35px;
	line-height: 1.6;
}

.home-promotion-content img {
	max-width: 100%;
	height: auto;
}

.home-promotion-content-mobile {
	display: none;
}

.home-promotion-content table {
	max-width: 100%;
	border-collapse: collapse;
}

.home-promotion-content th,
.home-promotion-content td {
	padding: 0.5rem;
	border: 1px solid #d9e1dd;
}

.home-promotion-products-heading {
	margin: 50px 0 25px;
	font-size: 25px;
}

.home-promotion-products-heading small {
	color: var(--muted);
	font-size: 15px;
}

@media (max-width: 900px) {
	.home-special-card {
		min-height: 205px;
		padding: 20px;
	}

	.home-special-copy h2 {
		font-size: 20px;
	}

	.home-special-copy p {
		font-size: 13px;
	}

	.home-best-panel .product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-md-panel .product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.home-promotion-content-pc {
		display: none;
	}

	.home-promotion-content-mobile {
		display: block;
	}
	.home-special-section {
		padding-bottom: 10px;
	}

	.home-special-grid {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.home-special-grid::-webkit-scrollbar {
		display: none;
	}

	.home-special-card {
		flex: 0 0 80%;
		min-height: 190px;
		padding: 17px 20px;
		scroll-snap-align: start;
	}

	.home-special-card img {
		right: -3%;
		width: 50%;
	}

	.home-special-copy h2 {
		margin-bottom: 12px;
		font-size: 18px;
	}

	.home-special-copy p {
		font-size: 12px;
	}

	.home-best-section,
	.home-md-section {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.home-section-tabs {
		gap: 22px;
	}

	.home-section-tabs button {
		font-size: 14px;
	}

	.home-section-tabs a {
		font-size: 14px;
	}

	.home-best-panel .product-grid,
	.home-md-panel .product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.home-rank-badge {
		width: 29px;
		height: 35px;
		font-size: 15px;
	}

	.home-benefits {
		display: flex;
		margin-bottom: 50px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.home-benefits::-webkit-scrollbar {
		display: none;
	}

	.home-benefit {
		flex: 0 0 42%;
		min-height: 150px;
		scroll-snap-align: start;
	}

	.home-benefit strong {
		font-size: 14px;
	}

	.home-benefit span {
		font-size: 12px;
	}

	.home-promotion-grid {
		grid-template-columns: 1fr;
		gap: 27px;
	}

	.home-promotion-card strong {
		font-size: 17px;
	}
}
