/**
 * Fiets vooruit — WooCommerce product category / shop archive loop
 * Scoped to body.ast-woo-shop-archive (enqueued only on Woo archives).
 * Brand accent: #008AFD
 */

/* -------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive {
	--fv-arch-blue: #008afd;
	--fv-arch-blue-hover: #0070cc;
	--fv-arch-blue-soft: rgba(0, 138, 253, 0.12);
	--fv-arch-blue-focus: rgba(0, 138, 253, 0.28);
	--fv-arch-text: #0f172a;
	--fv-arch-muted: #5c6670;
	--fv-arch-border: #e2e8f0;
	--fv-arch-border-strong: #cbd5e1;
	--fv-arch-bg: #ffffff;
	--fv-arch-bg-page: #ffffff;
	--fv-arch-bg-soft: #eef3f8;
	--fv-arch-radius: 16px;
	--fv-arch-radius-sm: 10px;
	--fv-arch-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	--fv-arch-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.1);
	--fv-arch-space-sm: 0.5rem;
	--fv-arch-space: 1rem;
	--fv-arch-space-md: 1.25rem;
	--fv-arch-space-lg: 1.75rem;
	--fv-arch-space-xl: 2.5rem;
	--fv-arch-transition: 180ms ease;
	--fv-arch-focus-ring: 0 0 0 3px var(--fv-arch-blue-focus);
	/*
	 * Equal-height card rows — fixed image box + reserved text bands.
	 * Selectors MUST be body.ast-woo-shop-archive ul.products (NOT
	 * body .woocommerce ul.products): Astra wraps the loop in
	 * .ast-woocommerce-container with NO nested .woocommerce element.
	 */
	--fv-arch-cat-size: 0.74rem;
	--fv-arch-cat-lh: 1.3;
	--fv-arch-cat-min-h: calc(var(--fv-arch-cat-size) * var(--fv-arch-cat-lh));
	--fv-arch-title-size: 1.0625rem;
	--fv-arch-title-lh: 1.35;
	/* 2 lines: 1.0625rem × 1.35 × 2 = 2.86875rem */
	--fv-arch-title-min-h: calc(var(--fv-arch-title-size) * var(--fv-arch-title-lh) * 2);
	--fv-arch-star-size: 0.95rem;
	--fv-arch-star-min-h: var(--fv-arch-star-size); /* 1em of star font */
	--fv-arch-price-size: 1.1rem;
	--fv-arch-price-lh: 1.35;
	--fv-arch-price-min-h: calc(var(--fv-arch-price-size) * var(--fv-arch-price-lh));
	--fv-arch-summary-gap: 0.4rem;
}

/* Match hub / other pages — plain white page background */
body.ast-woo-shop-archive .site-content,
body.ast-woo-shop-archive #content.site-content,
body.tax-product_cat .site-content,
body.post-type-archive-product .site-content {
	background: #ffffff;
}

body.ast-woo-shop-archive .ast-woocommerce-container {
	color: var(--fv-arch-text);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Match site shell (--fv-site-width / header) */
body.ast-woo-shop-archive #content > .ast-container,
body.ast-woo-shop-archive .site-content > .ast-container {
	width: 100%;
	max-width: var(--fv-site-width, 1200px);
	box-sizing: border-box;
	/* Same tight start as hub pages (merken / aanbod) — not Astra’s 4em gap */
	padding-top: 1.25rem;
}

body.ast-woo-shop-archive #primary,
body.ast-woo-shop-archive #primary.content-area,
body.ast-woo-shop-archive.ast-plain-container #primary,
body.ast-woo-shop-archive.ast-separate-container #primary,
body.ast-woo-shop-archive .ast-container > #primary,
body.ast-woo-shop-archive #content #primary,
body.ast-woo-shop-archive .site-content #primary {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	/* Kill Astra default #primary { margin: 4em 0 } — left a 60px void under the nav */
	margin-top: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-top: 0 !important;
}

body.ast-woo-shop-archive #primary .site-main,
body.ast-woo-shop-archive .site-main {
	margin-top: 0;
	padding-top: 0;
}

@media (min-width: 922px) {
	body.ast-woo-shop-archive #content > .ast-container,
	body.ast-woo-shop-archive .site-content > .ast-container {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

/* -------------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive .woocommerce-breadcrumb {
	margin: 0 0 0.55rem;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--fv-arch-muted);
	letter-spacing: 0.01em;
}

body.ast-woo-shop-archive .woocommerce-breadcrumb a {
	color: var(--fv-arch-blue);
	text-decoration: none;
	font-weight: 500;
	transition: color var(--fv-arch-transition);
}

body.ast-woo-shop-archive .woocommerce-breadcrumb a:hover,
body.ast-woo-shop-archive .woocommerce-breadcrumb a:focus {
	color: var(--fv-arch-blue-hover);
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Archive header / title / description
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive .woocommerce-products-header {
	margin: 0 0 0.85rem;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--fv-arch-border);
}

body.ast-woo-shop-archive .woocommerce-products-header__title.page-title,
body.ast-woo-shop-archive .woocommerce-products-header .page-title,
body.ast-woo-shop-archive h1.woocommerce-products-header__title {
	margin: 0;
	color: var(--fv-arch-text);
	font-size: clamp(1.65rem, 1.35rem + 1.2vw, 2.15rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

body.ast-woo-shop-archive .woocommerce-products-header .term-description,
body.ast-woo-shop-archive .term-description,
body.ast-woo-shop-archive .woocommerce-products-header p {
	margin: 0.65rem 0 0;
	max-width: 42rem;
	color: var(--fv-arch-muted);
	font-size: 0.975rem;
	line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Result count toolbar (ordering removed — see catalog-filters.php)
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive .woocommerce-ordering {
	display: none !important;
}

body.ast-woo-shop-archive .woocommerce-result-count {
	float: none;
	display: block;
	width: auto;
	max-width: 100%;
	margin: 0 0 var(--fv-arch-space);
	padding: 0.15rem 0 0;
	color: var(--fv-arch-muted);
	font-size: 0.9rem;
	line-height: 1.4;
}

body.ast-woo-shop-archive ul.products {
	clear: both;
}

/* -------------------------------------------------------------------------
   Product grid — equal-height rows via CSS grid + flex column cards
   Scope: body.ast-woo-shop-archive (file only enqueued on Woo archives).
   Do NOT require a nested .woocommerce ancestor — Astra does not output one.
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 1.35rem;
	margin: 0 0 var(--fv-arch-space-xl);
	padding: 0;
	width: 100%;
	max-width: 100%;
	list-style: none;
	box-sizing: border-box;
}

/*
 * Woo clearfix pseudo-elements become grid/flex items and push the first
 * product column right on row 1. Hide them (same pattern as related products).
 */
body.ast-woo-shop-archive ul.products::before,
body.ast-woo-shop-archive ul.products::after {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Override Astra float / percentage widths — grid columns own the sizing */
body.ast-woo-shop-archive ul.products li.product {
	float: none !important;
	clear: none !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	height: 100% !important;
	margin: 0 !important;
	padding: 0;
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	background: var(--fv-arch-bg);
	border: 1px solid var(--fv-arch-border);
	border-radius: var(--fv-arch-radius);
	box-shadow: var(--fv-arch-shadow);
	overflow: hidden;
	text-align: center;
	box-sizing: border-box;
	transition:
		transform var(--fv-arch-transition),
		box-shadow var(--fv-arch-transition),
		border-color var(--fv-arch-transition);
}

body.ast-woo-shop-archive ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: var(--fv-arch-shadow-hover);
	border-color: #c5d8eb;
}

@media (min-width: 769px) {
	body.ast-woo-shop-archive ul.products.columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.4rem;
	}

	body.ast-woo-shop-archive ul.products.columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.4rem;
	}

	body.ast-woo-shop-archive ul.products.columns-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 1.25rem;
	}

	body.ast-woo-shop-archive ul.products.columns-6 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 1.15rem;
	}
}

@media (min-width: 769px) and (max-width: 1100px) {
	/* Mid desktop: 3-up so cards stay substantial before true 4-col */
	body.ast-woo-shop-archive ul.products.columns-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.35rem;
	}
}

@media (min-width: 1101px) {
	body.ast-woo-shop-archive ul.products.columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

/* With filter sidebar: keep 3 product columns so cards stay readable */
@media (min-width: 922px) {
	body.ast-woo-shop-archive .fv-catalog-layout ul.products,
	body.ast-woo-shop-archive .fv-catalog-layout ul.products.columns-3,
	body.ast-woo-shop-archive .fv-catalog-layout ul.products.columns-4,
	body.ast-woo-shop-archive .fv-catalog-layout ul.products.columns-5,
	body.ast-woo-shop-archive .fv-catalog-layout ul.products.columns-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (max-width: 544px) {
	body.ast-woo-shop-archive ul.products {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.95rem;
	}

	body.ast-woo-shop-archive ul.products li.product {
		width: 100% !important;
		max-width: 100%;
	}
}

/* -------------------------------------------------------------------------
   Product card — image: identical landscape box on every card (incl. placeholders)
   4:3 so landscape bike photos fill more of the box under object-fit: contain
   (1:1 left large letterboxing / tiny bikes). Equal height preserved per row.
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .ast-woo-product-animation {
	position: relative !important;
	display: block !important;
	flex: 0 0 auto !important;
	align-self: stretch;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: 4 / 3 !important;
	padding: 0 !important;
	margin: 0 !important;
	background-color: #fff;
	background-image: none;
	border-bottom: 1px solid var(--fv-arch-border);
	overflow: hidden !important;
	box-sizing: border-box !important;
}

/* Image link only — not .ast-on-card-button / .added_to_cart (those overlay the photo) */
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap .woocommerce-loop-product__link,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .ast-woo-product-animation .woocommerce-loop-product__link,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .ast-woo-product-animation a.woocommerce-LoopProduct-link {
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: #fff;
	text-decoration: none;
	box-sizing: border-box !important;
}

/*
 * Defeat Woo/Astra: `.woocommerce ul.products li.product a img { height: auto }`
 * Higher specificity + !important so placeholders and landscape thumbs fill the box.
 */
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap img,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap a img,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .ast-woo-product-animation img,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .ast-woo-product-animation a img,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) img.woocommerce-placeholder,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) img.attachment-woocommerce_thumbnail,
body.ast-woo-shop-archive ul.products li.product:not(.product-category) .astra-shop-thumbnail-wrap .woocommerce-placeholder {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain !important;
	object-position: center center !important;
	background-color: #fff;
	box-sizing: border-box !important;
	transition: transform 220ms ease;
}

body.ast-woo-shop-archive ul.products li.product:hover .astra-shop-thumbnail-wrap img,
body.ast-woo-shop-archive ul.products li.product:hover .ast-woo-product-animation img {
	transform: scale(1.03);
}

/* Sale badge */
body.ast-woo-shop-archive ul.products li.product .onsale,
body.ast-woo-shop-archive span.onsale {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	right: auto;
	z-index: 2;
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background-color: var(--fv-arch-blue);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(0, 138, 253, 0.35);
}

/* Out of stock overlay (Astra) */
body.ast-woo-shop-archive ul.products li.product .ast-shop-product-out-of-stock {
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	padding: 0.45rem 0.5rem;
	border-radius: var(--fv-arch-radius-sm);
	background: rgba(15, 23, 42, 0.82);
	color: #fff;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------------
   Product card — summary (fixed flex slots → category/title/stars/price align)
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 1 1 auto;
	gap: var(--fv-arch-summary-gap);
	padding: 1.1rem 1.15rem 1.3rem;
	text-align: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
}

/* Category — locked 1-line slot (even when empty / short) */
body.ast-woo-shop-archive ul.products li.product .ast-woo-product-category {
	display: block !important;
	flex: 0 0 var(--fv-arch-cat-min-h) !important;
	width: 100%;
	height: var(--fv-arch-cat-min-h) !important;
	min-height: var(--fv-arch-cat-min-h) !important;
	max-height: var(--fv-arch-cat-min-h) !important;
	margin: 0 !important;
	opacity: 1 !important;
	color: var(--fv-arch-blue);
	font-size: var(--fv-arch-cat-size) !important;
	font-weight: 600;
	letter-spacing: 0.045em;
	line-height: var(--fv-arch-cat-lh) !important;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Title link — wraps the 2-line title slot */
body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap > .ast-loop-product__link,
body.ast-woo-shop-archive ul.products li.product .ast-loop-product__link {
	display: block !important;
	flex: 0 0 var(--fv-arch-title-min-h) !important;
	width: 100%;
	height: var(--fv-arch-title-min-h) !important;
	min-height: var(--fv-arch-title-min-h) !important;
	max-height: var(--fv-arch-title-min-h) !important;
	overflow: hidden;
	text-decoration: none;
	text-align: center;
	color: inherit;
}

/*
 * Title element itself — locked 2-line slot (not only the link).
 * Beats Woo/Astra padding/margin on .woocommerce-loop-product__title.
 */
body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-product__title,
body.ast-woo-shop-archive ul.products li.product h2.woocommerce-loop-product__title,
body.ast-woo-shop-archive ul.products li.product .ast-loop-product__link .woocommerce-loop-product__title {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	height: var(--fv-arch-title-min-h) !important;
	min-height: var(--fv-arch-title-min-h) !important;
	max-height: var(--fv-arch-title-min-h) !important;
	color: var(--fv-arch-text);
	font-size: var(--fv-arch-title-size) !important;
	font-weight: 650;
	letter-spacing: -0.015em;
	line-height: var(--fv-arch-title-lh) !important;
	text-align: center;
	transition: color var(--fv-arch-transition);
}

body.ast-woo-shop-archive ul.products li.product:hover .woocommerce-loop-product__title {
	color: var(--fv-arch-blue);
}

/*
 * Star ratings — fixed-height centered band; margin-top:auto pins rating+price
 * to the bottom after the fixed category/title slots (equal baselines).
 * Keep Woo overlay intact (relative + overflow + height:1em + font-family:star).
 */
body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap > .star-rating,
body.ast-woo-shop-archive ul.products li.product .star-rating {
	display: block !important;
	float: none !important;
	position: relative !important;
	overflow: hidden !important;
	flex: 0 0 var(--fv-arch-star-min-h) !important;
	height: 1em !important;
	width: 5.4em !important;
	max-width: 5.4em !important;
	margin-top: auto !important; /* pin rating+price below fixed title slot */
	margin-right: auto !important;
	margin-bottom: 0 !important;
	margin-left: auto !important;
	align-self: center !important;
	font-family: star !important;
	font-size: var(--fv-arch-star-size) !important;
	line-height: 1 !important;
	letter-spacing: 0;
	text-align: left;
	color: #d3ced2;
	backface-visibility: hidden;
}

body.ast-woo-shop-archive ul.products li.product .star-rating::before {
	color: #d3ced2;
}

body.ast-woo-shop-archive ul.products li.product .star-rating span::before {
	color: #008AFD;
}

body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap > .price,
body.ast-woo-shop-archive ul.products li.product .price {
	display: block !important;
	flex: 0 0 auto;
	width: 100%;
	min-height: var(--fv-arch-price-min-h) !important;
	margin: 0 !important;
	color: var(--fv-arch-text);
	font-size: var(--fv-arch-price-size) !important;
	font-weight: 700;
	line-height: var(--fv-arch-price-lh) !important;
	text-align: center;
}

/* No star-rating in loop structure → still pin price to bottom */
body.ast-woo-shop-archive ul.products li.product .ast-loop-product__link + .price {
	margin-top: auto !important;
}

body.ast-woo-shop-archive ul.products li.product .price .woocommerce-Price-amount,
body.ast-woo-shop-archive ul.products li.product .price .amount {
	color: var(--fv-arch-text);
}

body.ast-woo-shop-archive ul.products li.product .price del {
	display: inline;
	margin-right: 0.35rem;
	opacity: 0.55;
	font-weight: 500;
	font-size: 0.875em;
}

body.ast-woo-shop-archive ul.products li.product .price ins {
	background: none;
	text-decoration: none;
	color: var(--fv-arch-blue);
	font-weight: 700;
}

body.ast-woo-shop-archive ul.products li.product .price .woocommerce-price-suffix,
body.ast-woo-shop-archive ul.products li.product .price small {
	display: inline-block;
	margin-left: 0.2rem;
	color: var(--fv-arch-muted);
	font-size: 0.72em;
	font-weight: 500;
}

body.ast-woo-shop-archive ul.products li.product .ast-woo-shop-product-description {
	margin: 0.25rem 0 0;
	width: 100%;
	color: var(--fv-arch-muted);
	font-size: 0.85rem;
	line-height: 1.45;
	text-align: center;
}

body.ast-woo-shop-archive ul.products li.product .ast-woo-shop-product-description p {
	margin: 0;
}

/* Add to cart / loop buttons — blue pill with cart icon, under the price */
body.ast-woo-shop-archive ul.products li.product .button,
body.ast-woo-shop-archive ul.products li.product a.button,
body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	align-self: stretch;
	width: 100%;
	margin-top: 0.65rem;
	margin-bottom: 0;
	min-height: 2.5rem;
	padding: 0.55rem 1rem;
	border: 1px solid var(--fv-arch-blue);
	border-radius: var(--fv-arch-radius-sm);
	background-color: var(--fv-arch-blue);
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	transition:
		background-color var(--fv-arch-transition),
		border-color var(--fv-arch-transition),
		box-shadow var(--fv-arch-transition);
}

/* Icon + label dead-center in the summary ATC pill */
body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap .button.add_to_cart_button,
body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap a.button.add_to_cart_button {
	justify-content: center !important;
	text-align: center !important;
}

/* Cart icon (mask = follows text color) before the add-to-cart label */
body.ast-woo-shop-archive ul.products li.product .button.add_to_cart_button::before,
body.ast-woo-shop-archive ul.products li.product a.button.add_to_cart_button::before {
	content: '';
	flex-shrink: 0;
	width: 1.1em;
	height: 1.1em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Loading spinner state from Woo ajax add-to-cart keeps its own icon */
body.ast-woo-shop-archive ul.products li.product .button.add_to_cart_button.loading::before {
	-webkit-mask: none;
	mask: none;
	background-color: transparent;
	width: 0;
}

body.ast-woo-shop-archive ul.products li.product .button:hover,
body.ast-woo-shop-archive ul.products li.product .button:focus,
body.ast-woo-shop-archive ul.products li.product a.button:hover,
body.ast-woo-shop-archive ul.products li.product a.button:focus {
	background-color: var(--fv-arch-blue-hover);
	border-color: var(--fv-arch-blue-hover);
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(0, 138, 253, 0.3);
}

body.ast-woo-shop-archive ul.products li.product .button.added {
	margin-bottom: 0;
}

/* Summary-row “Bekijk winkelwagen” only (thumbnail overlay is in product-card-hover.css) */
body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap .added_to_cart {
	background-color: transparent;
	color: var(--fv-arch-blue) !important;
	border-color: var(--fv-arch-border-strong);
	box-shadow: none;
}

body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap .added_to_cart:hover,
body.ast-woo-shop-archive ul.products li.product .astra-shop-summary-wrap .added_to_cart:focus {
	background-color: var(--fv-arch-blue-soft);
	border-color: var(--fv-arch-blue);
	color: var(--fv-arch-blue-hover) !important;
	box-shadow: none;
}

/* -------------------------------------------------------------------------
   Subcategory tiles (display=both)
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive ul.products li.product.product-category {
	position: relative;
}

body.ast-woo-shop-archive ul.products li.product.product-category > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 11rem;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
}

body.ast-woo-shop-archive ul.products li.product.product-category > a img {
	flex: 1 1 auto;
	width: 100%;
	min-height: 9rem;
	max-height: 12rem;
	margin: 0;
	padding: 0.75rem;
	object-fit: contain;
	background: linear-gradient(180deg, #f8fafc 0%, var(--fv-arch-bg-soft) 100%);
}

body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-category__title {
	position: static;
	left: auto;
	right: auto;
	bottom: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0.9rem 1rem 1.05rem;
	background: var(--fv-arch-bg);
	border-top: 1px solid var(--fv-arch-border);
	color: var(--fv-arch-text);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
	transition: color var(--fv-arch-transition);
}

body.ast-woo-shop-archive ul.products li.product.product-category:hover .woocommerce-loop-category__title,
body.ast-woo-shop-archive ul.products li.product.product-category > a:hover .woocommerce-loop-category__title {
	background: var(--fv-arch-bg);
	color: var(--fv-arch-blue);
}

body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-category__title .count,
body.ast-woo-shop-archive ul.products li.product .woocommerce-loop-category__title mark.count {
	display: inline-block;
	margin: 0;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: var(--fv-arch-blue-soft);
	color: var(--fv-arch-blue);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	opacity: 1;
	text-transform: none;
}

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive nav.woocommerce-pagination {
	margin: 0 0 1rem;
	text-align: center;
	clear: both;
}

body.ast-woo-shop-archive nav.woocommerce-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

body.ast-woo-shop-archive nav.woocommerce-pagination ul li {
	margin: 0;
	border: 0;
	overflow: visible;
}

body.ast-woo-shop-archive nav.woocommerce-pagination ul li a,
body.ast-woo-shop-archive nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	margin: 0;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--fv-arch-border-strong);
	border-radius: var(--fv-arch-radius-sm);
	background: var(--fv-arch-bg);
	color: var(--fv-arch-text);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color var(--fv-arch-transition),
		border-color var(--fv-arch-transition),
		color var(--fv-arch-transition),
		box-shadow var(--fv-arch-transition);
}

body.ast-woo-shop-archive nav.woocommerce-pagination ul li a:hover,
body.ast-woo-shop-archive nav.woocommerce-pagination ul li a:focus {
	background: var(--fv-arch-blue-soft);
	border-color: var(--fv-arch-blue);
	color: var(--fv-arch-blue);
	box-shadow: var(--fv-arch-focus-ring);
}

body.ast-woo-shop-archive nav.woocommerce-pagination ul li span.current {
	background: var(--fv-arch-blue);
	border-color: var(--fv-arch-blue);
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 138, 253, 0.28);
}

/* -------------------------------------------------------------------------
   Notices on archives
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive .woocommerce-info,
body.ast-woo-shop-archive .woocommerce-message,
body.ast-woo-shop-archive .woocommerce-error {
	border-top-color: var(--fv-arch-blue);
	border-radius: var(--fv-arch-radius-sm);
}

body.ast-woo-shop-archive .woocommerce-info::before {
	color: var(--fv-arch-blue);
}

/* -------------------------------------------------------------------------
   No products found
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive .woocommerce-info.woocommerce-no-products-found,
body.ast-woo-shop-archive .woocommerce-no-products-found {
	margin: var(--fv-arch-space-lg) 0;
	padding: var(--fv-arch-space-md) var(--fv-arch-space-lg);
	background: var(--fv-arch-bg);
	border: 1px solid var(--fv-arch-border);
	border-radius: var(--fv-arch-radius);
	box-shadow: var(--fv-arch-shadow);
}

/* -------------------------------------------------------------------------
   Populaire fietsen — category chip banner (below products / pagination)
   Same look as the blog page “Populaire fietsen” block.
   ------------------------------------------------------------------------- */
body.ast-woo-shop-archive .fv-popular-cats {
	margin: 0.65rem 0 0;
	padding: 1.1rem 1.15rem 1.15rem;
	background: #fff;
	border: 1px solid var(--fv-arch-border);
	border-radius: var(--fv-arch-radius);
	box-shadow: var(--fv-arch-shadow);
	box-sizing: border-box;
}

/* Less empty air under the banner before the site footer */
body.ast-woo-shop-archive #content > .ast-container,
body.ast-woo-shop-archive .site-content > .ast-container,
body.ast-woo-shop-archive #primary,
body.ast-woo-shop-archive .ast-woocommerce-container {
	padding-bottom: 0.75rem;
	margin-bottom: 0;
}

body.ast-woo-shop-archive #content.site-content,
body.ast-woo-shop-archive .site-content {
	padding-bottom: 0;
	margin-bottom: 0;
}

body.ast-woo-shop-archive .fv-popular-cats__title {
	margin: 0 0 0.75rem;
	color: var(--fv-arch-text);
	font-size: 1.15rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.25;
	text-transform: uppercase;
}

body.ast-woo-shop-archive .fv-popular-cats__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ast-woo-shop-archive .fv-popular-cats__chip {
	display: inline-block;
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--fv-arch-border);
	border-radius: 10px;
	background: #f8fafc;
	color: var(--fv-arch-text);
	font-size: 0.8125rem;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
	transition:
		border-color var(--fv-arch-transition),
		color var(--fv-arch-transition),
		background-color var(--fv-arch-transition);
}

body.ast-woo-shop-archive .fv-popular-cats__chip:hover,
body.ast-woo-shop-archive .fv-popular-cats__chip:focus-visible {
	border-color: var(--fv-arch-blue);
	color: var(--fv-arch-blue);
	background: var(--fv-arch-blue-soft);
	outline: none;
}

body.ast-woo-shop-archive .fv-popular-cats__chip.is-current {
	border-color: var(--fv-arch-blue);
	background: var(--fv-arch-blue);
	color: #fff;
}

body.ast-woo-shop-archive .fv-popular-cats__chip.is-current:hover,
body.ast-woo-shop-archive .fv-popular-cats__chip.is-current:focus-visible {
	background: var(--fv-arch-blue-hover);
	border-color: var(--fv-arch-blue-hover);
	color: #fff;
}

/* Pull footer closer under the popular-cats banner */
body.ast-woo-shop-archive .site-footer.fietsvooruit-footer .fietsvooruit-footer__main,
body.tax-product_cat .site-footer.fietsvooruit-footer .fietsvooruit-footer__main {
	padding-top: 1.75rem;
}

@media (min-width: 768px) {
	body.ast-woo-shop-archive nav.woocommerce-pagination {
		margin-bottom: 1.15rem;
	}

	body.ast-woo-shop-archive .fv-popular-cats {
		margin-top: 0.75rem;
		padding: 1.2rem 1.35rem 1.25rem;
	}

	body.ast-woo-shop-archive #content > .ast-container,
	body.ast-woo-shop-archive .site-content > .ast-container,
	body.ast-woo-shop-archive #primary,
	body.ast-woo-shop-archive .ast-woocommerce-container {
		padding-bottom: 1rem;
	}

	body.ast-woo-shop-archive .site-footer.fietsvooruit-footer .fietsvooruit-footer__main,
	body.tax-product_cat .site-footer.fietsvooruit-footer .fietsvooruit-footer__main {
		padding-top: 2rem;
	}
}
