.woodcha-home-categories {
	--woodcha-category-padding-inline: 24px;
	background: var(--woodcha-section-background);
	/* Preserve the compact hero entry; use the shared rhythm after Gifts. */
	padding-block: 12px calc(var(--woodcha-section-gap) / 2);
}

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

.woodcha-category-card {
	background: var(--card-bg);
	border-radius: var(--woodcha-radius-md);
	display: grid;
	grid-template-rows: auto 210px;
	overflow: hidden;
	position: relative;
	text-decoration: none;
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.woodcha-category-card:hover,
.woodcha-category-card:focus-visible {
	box-shadow: 0 10px 24px -18px rgb(36 33 29 / 35%);
	transform: translateY(-4px);
}

.woodcha-category-card--pantry {
	--card-bg: var(--woodcha-category-grains);
}

.woodcha-category-card--fruit {
	--card-bg: var(--woodcha-category-fruit);
}

.woodcha-category-card--sweets {
	--card-bg: var(--woodcha-category-sweets);
}

.woodcha-category-card__visual {
	display: block;
	min-width: 0;
	overflow: hidden;
	position: relative;
}

.woodcha-category-card__visual::after {
	background: linear-gradient(to bottom, var(--card-bg), transparent);
	content: "";
	height: 28px;
	inset: 0 0 auto;
	pointer-events: none;
	position: absolute;
}

.woodcha-category-card__visual img {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
	width: 100%;
	transition: transform 300ms ease;
}

.woodcha-category-card:hover .woodcha-category-card__visual img,
.woodcha-category-card:focus-visible .woodcha-category-card__visual img {
	transform: scale(1.035);
}

.woodcha-category-card__content {
	display: flex;
	flex-direction: column;
	padding: 22px var(--woodcha-category-padding-inline) 12px;
}

.woodcha-category-card__content strong {
	display: block;
	font-size: clamp(21px, 1.8vw, 26px);
	font-weight: 570;
	letter-spacing: -0.04em;
	line-height: 1.15;
}

.woodcha-category-card__content > span {
	font-size: 14px;
	margin-top: 8px;
	opacity: 0.72;
}

.woodcha-home-categories__gifts {
	--gifts-card-height: clamp(240px, 20vw, 264px);
	--gifts-bag-height: calc(var(--gifts-card-height) + 40px);
	align-items: center;
	background: radial-gradient(ellipse 180px 140px at 84% 65%, rgb(99 38 52 / 10%), transparent), rgb(99 38 52 / 9%);
	border-radius: var(--woodcha-radius-md);
	color: var(--woodcha-ume);
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 34%);
	isolation: isolate;
	margin-top: 88px;
	min-height: var(--gifts-card-height);
	overflow: visible;
	padding: 28px var(--woodcha-category-padding-inline);
	position: relative;
}

.woodcha-home-categories__gifts-visual {
	bottom: 6px;
	height: var(--gifts-bag-height);
	pointer-events: none;
	position: absolute;
	right: 6%;
	width: calc(var(--gifts-bag-height) * 0.587408313);
}

.woodcha-home-categories__gifts-visual img {
	display: block;
	filter: drop-shadow(0 10px 12px rgb(74 45 30 / 13%));
	height: 100%;
	max-width: none;
	object-fit: contain;
	transform: rotate(5deg);
	transform-origin: center bottom;
	width: 100%;
}

.woodcha-home-categories__gifts-copy {
	display: grid;
	gap: 7px;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.woodcha-home-categories__gifts-copy h3 {
	font-size: clamp(26px, 2.4vw, 32px);
	font-weight: 570;
	letter-spacing: -0.035em;
	line-height: 1.2;
	margin: 0;
}

.woodcha-home-categories__gifts-copy p {
	color: rgb(36 33 29 / 72%);
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
}

.woodcha-home-categories__gifts-link {
	align-items: center;
	background: var(--woodcha-ume);
	border: 1px solid var(--woodcha-ume);
	border-radius: var(--woodcha-radius-pill);
	color: var(--woodcha-surface);
	display: inline-flex;
	font-size: 14px;
	font-weight: 650;
	justify-content: center;
	justify-self: start;
	margin-top: 11px;
	max-width: 100%;
	min-height: 52px;
	padding: 12px 24px;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.woodcha-home-categories__gifts-link:hover,
.woodcha-home-categories__gifts-link:focus-visible {
	background: var(--woodcha-ink);
	border-color: var(--woodcha-ink);
	color: var(--woodcha-surface);
}

.woodcha-home-categories__gifts-link:focus-visible {
	outline-color: var(--woodcha-ume);
}

@media (max-width: 1020px) and (min-width: 761px) {
	.woodcha-home-categories {
		--woodcha-category-padding-inline: 18px;
	}
}

@media (max-width: 760px) {
	.woodcha-home-categories {
		--woodcha-category-padding-inline: 20px;
	}

	.woodcha-home-categories__grid {
		grid-template-columns: 1fr;
	}

	.woodcha-category-card {
		align-items: stretch;
		grid-template-columns: minmax(0, 1fr) 32%;
		grid-template-rows: auto;
		min-height: 132px;
	}

	.woodcha-category-card__content {
		justify-content: center;
		padding: 20px var(--woodcha-category-padding-inline);
	}

	.woodcha-category-card__visual {
		min-height: 132px;
	}

	.woodcha-category-card__visual img {
		inset: 0;
		object-position: center;
		position: absolute;
	}

	.woodcha-category-card__visual::after {
		background: linear-gradient(to right, var(--card-bg), transparent);
		height: 100%;
		inset: 0 auto 0 0;
		width: 16px;
	}

	.woodcha-home-categories__gifts-copy p {
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.woodcha-home-categories__gifts {
		--gifts-bag-height: 240px;
		--gifts-bag-overlap: 76px;
		background: radial-gradient(ellipse 140px 120px at 50% 76px, rgb(99 38 52 / 10%), transparent), rgb(99 38 52 / 9%);
		gap: 20px;
		grid-template-columns: minmax(0, 1fr);
		margin-top: calc(var(--gifts-bag-overlap) + 32px);
		min-height: 0;
		padding-block: 0 24px;
	}

	.woodcha-home-categories__gifts-visual {
		bottom: auto;
		grid-row: 1;
		height: calc(var(--gifts-bag-height) - var(--gifts-bag-overlap));
		position: relative;
		right: auto;
		width: 100%;
	}

	.woodcha-home-categories__gifts-visual img {
		bottom: 0;
		height: var(--gifts-bag-height);
		left: 50%;
		position: absolute;
		transform: translateX(-50%) rotate(5deg);
		width: auto;
	}

	.woodcha-home-categories__gifts-link {
		justify-self: stretch;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woodcha-category-card,
	.woodcha-category-card__visual img,
	.woodcha-home-categories__gifts-link {
		transition: none;
	}

	.woodcha-category-card:hover,
	.woodcha-category-card:focus-visible,
	.woodcha-category-card:hover .woodcha-category-card__visual img,
	.woodcha-category-card:focus-visible .woodcha-category-card__visual img {
		transform: none;
	}
}
