/**
 * Shared "extras" band + Recently Viewed — Deepak Sales.
 *
 * Mobile-first. Depends on tokens.css + base.css. Used by both the shop/
 * category archive (Featured Products, Recently Viewed, Related Categories
 * — see shop-archive.css for the category-specific `__cat-*` styles) and
 * the single product page (Recently Viewed only) so the shared markup in
 * template-parts/woocommerce/recently-viewed.php only needs one set of rules.
 */

.ds-shop-extras {
	padding-block: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
	border-top: 1px solid var(--ds-line);
}

.ds-shop-extras__title {
	margin-bottom: var(--ds-space-lg);
	font-family: var(--ds-font-display);
	font-size: var(--ds-fs-h2);
	font-weight: var(--ds-fw-section);
	color: var(--ds-heading);
}

.ds-shop-extras__recent-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--ds-space-md);
}

.ds-shop-extras__recent-link {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ds-shop-extras__recent-img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: var(--ds-radius-md);
	object-fit: cover;
	background-color: var(--ds-paper-2);
}

.ds-shop-extras__recent-name {
	font-size: var(--ds-fs-small);
	color: var(--ds-body);
}

@media (min-width: 40em) {
	.ds-shop-extras__recent-list {
		grid-template-columns: repeat(4, 1fr);
	}
}
