/**
 * Homepage product grid sections — shared layout (featured, new, on sale).
 */

.home-product-section__header {
	padding-block-end: 0;
	text-align: start;
}

.home-product-section__heading-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
}

.home-product-section__heading {
	flex: 1 1 auto;
	min-width: 0;
	text-align: start;
}

.home-product-section .home-page-section__title {
	margin: 0 0 0.75rem;
	text-align: start;
}

.home-product-section .home-page-section__desc {
	text-align: start;
}

.home-product-section__grid {
	width: 100%;
	max-width: var(--onoff-container, 1200px);
	margin-inline: auto;
	padding: 0 var(--onoff-gutter) 2.5rem;
	box-sizing: border-box;
}

.home-product-section__grid ul.products {
	justify-content: center;
	grid-template-columns: repeat(auto-fit, var(--onoff-card-width, 255px));
}

.home-product-section__show-all {
	box-sizing: border-box;
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	align-self: center;
	gap: 0.35em;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: #262415;
	font-family: var(--onoff-font-family, 'Cairo', sans-serif);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	text-align: start;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.home-product-section__show-all::after {
	content: '\2190';
	font-size: 0.875em;
	line-height: 1;
}

.home-product-section__show-all:hover,
.home-product-section__show-all:focus-visible {
	color: #7c6f5f;
	outline: none;
	text-decoration: none;
}

/* Mobile — compact section header + 4 products (2×2 grid) */
@media (max-width: 899px) {
	body.home .home-product-section.home-page-section {
		padding-block-start: 12px;
	}

	body.home .home-product-section .home-page-section__inner {
		padding-block-start: 0.625rem;
	}

	body.home .home-product-section__grid ul.products > li:nth-child(n + 5) {
		display: none !important;
	}

	.home-product-section__heading-row {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: space-between;
		gap: 0.5rem;
	}

	.home-product-section__heading {
		flex: 1 1 auto;
		min-width: 0;
	}

	.home-product-section .home-page-section__title {
		margin-block-end: 0.6rem;
		font-size: 28.8px;
		line-height: 32px;
	}

	.home-product-section .home-page-section__desc {
		font-size: 14.4px;
		line-height: 22.4px;
	}

	.home-product-section__show-all {
		align-self: flex-start;
		flex-shrink: 0;
		font-size: 0.65rem;
		line-height: 1.4;
		white-space: nowrap;
	}
}