/* Shelf layout and navigation only; every card rule comes from catalog/product-loop. */
.woodcha-home-products-v2__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 12px;
}

.woodcha-home-products-v2__shop-link {
	align-items: center;
	color: var(--woodcha-ume);
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	min-height: 44px;
	padding-block: 8px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.woodcha-home-products-v2__shop-link:hover {
	color: var(--woodcha-ink);
}

.woodcha-home-products-v2__shop-link:focus-visible {
	outline: 2px solid var(--woodcha-ume);
	outline-offset: 4px;
}

.woodcha-home-products-v2__track {
	--woodcha-shelf-gutter: calc((100vw - var(--woodcha-shell)) / 2);
	--woodcha-shelf-card-width: 23%;
	margin-inline: calc(-1 * var(--woodcha-shelf-gutter));
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 2px var(--woodcha-shelf-gutter) 16px;
	scrollbar-color: rgba(36, 33, 29, 0.22) transparent;
	scrollbar-width: thin;
	scroll-padding-inline: var(--woodcha-shelf-gutter);
	scroll-snap-type: x mandatory;
}

.woodcha-home-products-v2__track::-webkit-scrollbar {
	height: 4px;
}

.woodcha-home-products-v2__track::-webkit-scrollbar-thumb {
	background: rgba(36, 33, 29, 0.22);
	border-radius: var(--woodcha-radius-pill);
}

.woodcha-home-products-v2.woocommerce .woodcha-home-products-v2__track ul.products {
	column-gap: 16px;
	grid-auto-columns: var(--woodcha-shelf-card-width);
	grid-auto-flow: column;
	grid-template-columns: none;
	row-gap: 0;
}

.woodcha-home-products-v2.woocommerce .woodcha-home-products-v2__track ul.products li.product {
	margin-bottom: 0;
	scroll-snap-align: start;
}

@supports (grid-template-rows: subgrid) {
	.woodcha-home-products-v2.woocommerce .woodcha-home-products-v2__track ul.products {
		/* Shared photo, category/rating, title and price/action rows. */
		grid-template-rows: auto auto auto auto;
	}
}

@media (max-width: 980px) {
	.woodcha-home-products-v2__track {
		--woodcha-shelf-card-width: 43%;
	}
}

@media (max-width: 560px) {
	.woodcha-home-products-v2__track {
		--woodcha-shelf-card-width: min(70vw, 300px);
	}
}
