/*
 * Trending Products Bento Shelf — homepage [mr_products_carousel]
 * @package log-core
 */

/* ── Bento Grid ── */
.trend-bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-top: 40px;
}

/* ── Feature Card (spans 2×2) ── */
.feature-card {
	grid-column: span 2;
	grid-row: span 2;
	background: #fff;
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform .12s linear, box-shadow .35s var(--ease);
	text-decoration: none;
	color: inherit;
}

.feature-card:hover {
	box-shadow: var(--shadow-lg);
}

.fc-visual {
	flex: 1;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 90px;
	position: relative;
	overflow: hidden;
}

.fc-visual::after,
.prod-visual::after {
	content: '';
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg) translateX(-40%);
	transition: transform .6s var(--ease);
}

.feature-card:hover .fc-visual::after,
.prod-card:hover .prod-visual::after {
	transform: skewX(-20deg) translateX(280%);
}

.fc-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	background: var(--ink-900);
	color: var(--sage-400);
	font-size: 11px;
	font-weight: 800;
	padding: 7px 14px;
	border-radius: var(--r-pill);
	text-transform: uppercase;
	letter-spacing: .05em;
	z-index: 2;
}

.fc-body {
	padding: 26px;
}

.feature-card h3 {
	font-family: var(--display);
	font-size: 25px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--ink-900);
}

.fc-desc {
	font-size: 13.5px;
	color: var(--gray-600);
	line-height: 1.6;
	margin-bottom: 16px;
	max-width: 380px;
}

.fc-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.fc-price {
	font-family: var(--display);
	font-weight: 800;
	font-size: 27px;
	color: var(--plum-700);
}

/* ── Product Cards ── */
.prod-card {
	background: #fff;
	border-radius: var(--r-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .12s linear, box-shadow .35s var(--ease);
	text-decoration: none;
	color: inherit;
	display: block;
}

.prod-card:hover {
	box-shadow: var(--shadow-lg);
}

.prod-visual {
	height: 170px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 46px;
	overflow: hidden;
}

.fc-img,
.prod-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.prod-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: var(--r-pill);
	z-index: 2;
}

.tag-hot {
	background: var(--ink-900);
	color: var(--sage-400);
}

.tag-new {
	background: var(--sage-500);
	color: var(--plum-950);
}

.prod-body {
	padding: 18px;
}

.p-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	min-height: 20px;
	color: var(--ink-900);
}

.p-price {
	font-family: var(--display);
	font-weight: 800;
	font-size: 19px;
	color: var(--plum-700);
}

.select-btn {
	display: block;
	text-align: center;
	margin-top: 12px;
	background: var(--paper);
	color: var(--ink-900);
	font-weight: 700;
	font-size: 12.5px;
	padding: 11px;
	border-radius: var(--r-pill);
	transition: all .25s var(--ease);
	text-decoration: none;
}

.select-btn:hover,
.select-btn.sage:hover {
	background: var(--sage-500);
	color: var(--plum-950);
}

.fc-foot .select-btn {
	margin-top: 0;
	padding: 13px 26px;
}

.trend-viewall {
	text-align: center;
	margin-top: 36px;
}

@media (max-width: 980px) {
	.trend-bento {
		grid-template-columns: repeat(2, 1fr);
	}

	.feature-card {
		grid-column: span 2;
		grid-row: span 1;
	}

	.fc-visual {
		min-height: 160px;
	}
}

@media (max-width: 640px) {
	.trend-bento {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.feature-card {
		grid-column: span 2;
	}
}