/* ==================================================
   R4A PRODUCT CATEGORY GRID
   File: assets/css/product-category-grid.css
   Purpose:
   - WooCommerce listing width, toolbar, product grid and pagination.
================================================== */

/* ==================================================
   6. CONTENT WIDTH + TOOLBAR
================================================== */

body.woocommerce-shop .site-main > .ct-container,
body.post-type-archive-product .site-main > .ct-container,
body.tax-product_cat .site-main > .ct-container,
body.tax-product_tag .site-main > .ct-container,
body.r4a-product-category-archive:not(.home):not(.single-product) .site-main > .ct-container,
body.r4a-product-tag-archive:not(.home):not(.single-product) .site-main > .ct-container,
body.r4a-product-listing-page:not(.home):not(.single-product) .site-main > .ct-container,
body.r4a-selected-product-page:not(.home):not(.single-product) .site-main > .ct-container,
body.r4a-brand-archive:not(.home):not(.single-product) .site-main > .ct-container,
body.page-slug-alle-produkte .site-main > .ct-container,
body.page-slug-bestseller .site-main > .ct-container,
body.page-slug-neue-produkte .site-main > .ct-container,
body.r4a-alle-produkte-page .site-main > .ct-container,
body.r4a-bestseller-page .site-main > .ct-container,
body.r4a-neue-produkte-page .site-main > .ct-container,
body.woocommerce-shop .site-main .woocommerce,
body.post-type-archive-product .site-main .woocommerce,
body.tax-product_cat .site-main .woocommerce,
body.tax-product_tag .site-main .woocommerce,
body.r4a-product-category-archive:not(.home):not(.single-product) .site-main .woocommerce,
body.r4a-product-tag-archive:not(.home):not(.single-product) .site-main .woocommerce,
body.r4a-product-listing-page:not(.home):not(.single-product) .site-main .woocommerce,
body.r4a-selected-product-page:not(.home):not(.single-product) .site-main .woocommerce,
body.r4a-brand-archive:not(.home):not(.single-product) .site-main .woocommerce,
body.page-slug-alle-produkte .site-main .woocommerce,
body.page-slug-bestseller .site-main .woocommerce,
body.page-slug-neue-produkte .site-main .woocommerce,
body.r4a-alle-produkte-page .site-main .woocommerce,
body.r4a-bestseller-page .site-main .woocommerce,
body.r4a-neue-produkte-page .site-main .woocommerce {
	width: 100% !important;
	max-width: var(--r4a-listing-max-width) !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 12px !important;
	padding-left: 12px !important;
	background: transparent !important;
	color: var(--r4a-white) !important;
}

@media (min-width: 1000px) {
	body.woocommerce-shop .woo-listing-top,
	body.post-type-archive-product .woo-listing-top,
	body.tax-product_cat .woo-listing-top,
	body.tax-product_tag .woo-listing-top,
	body.r4a-product-category-archive:not(.home):not(.single-product) .woo-listing-top,
	body.r4a-product-tag-archive:not(.home):not(.single-product) .woo-listing-top,
	body.r4a-product-listing-page:not(.home):not(.single-product) .woo-listing-top,
	body.r4a-selected-product-page:not(.home):not(.single-product) .woo-listing-top,
	body.r4a-brand-archive:not(.home):not(.single-product) .woo-listing-top,
	body.page-slug-alle-produkte .woo-listing-top,
	body.page-slug-bestseller .woo-listing-top,
	body.page-slug-neue-produkte .woo-listing-top {
		position: relative !important;
		z-index: 40 !important;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) var(--r4a-toolbar-column-width) !important;
		align-items: center !important;
		column-gap: 24px !important;
		width: min(var(--r4a-listing-max-width), calc(100vw - var(--r4a-listing-side-gap))) !important;
		max-width: var(--r4a-listing-max-width) !important;
		min-height: 48px !important;
		margin: 0 auto 18px !important;
		padding: 24px 0 0 !important;
		overflow: visible !important;
		background: transparent !important;
		clear: both !important;
	}

	body.woocommerce-shop .woo-listing-top .woocommerce-result-count,
	body.post-type-archive-product .woo-listing-top .woocommerce-result-count,
	body.tax-product_cat .woo-listing-top .woocommerce-result-count,
	body.tax-product_tag .woo-listing-top .woocommerce-result-count,
	body.r4a-product-category-archive:not(.home):not(.single-product) .woo-listing-top .woocommerce-result-count,
	body.r4a-product-tag-archive:not(.home):not(.single-product) .woo-listing-top .woocommerce-result-count,
	body.r4a-product-listing-page:not(.home):not(.single-product) .woo-listing-top .woocommerce-result-count,
	body.r4a-selected-product-page:not(.home):not(.single-product) .woo-listing-top .woocommerce-result-count,
	body.r4a-brand-archive:not(.home):not(.single-product) .woo-listing-top .woocommerce-result-count,
	body.page-slug-alle-produkte .woo-listing-top .woocommerce-result-count,
	body.page-slug-bestseller .woo-listing-top .woocommerce-result-count,
	body.page-slug-neue-produkte .woo-listing-top .woocommerce-result-count,
	body.woocommerce-shop .woocommerce-result-count,
	body.post-type-archive-product .woocommerce-result-count,
	body.tax-product_cat .woocommerce-result-count,
	body.tax-product_tag .woocommerce-result-count {
		float: none !important;
		position: static !important;
		display: flex !important;
		align-items: center !important;
		min-height: 48px !important;
		margin: 0 !important;
		padding: 0 !important;
		color: var(--r4a-white) !important;
		font-size: 14px !important;
		font-weight: 900 !important;
		line-height: 1.35 !important;
		letter-spacing: 0.04em !important;
		text-align: left !important;
		text-transform: uppercase !important;
		opacity: 1 !important;
		text-shadow: none !important;
	}

	body.woocommerce-shop .woo-listing-top .woocommerce-ordering,
	body.post-type-archive-product .woo-listing-top .woocommerce-ordering,
	body.tax-product_cat .woo-listing-top .woocommerce-ordering,
	body.tax-product_tag .woo-listing-top .woocommerce-ordering,
	body.r4a-product-category-archive:not(.home):not(.single-product) .woo-listing-top .woocommerce-ordering,
	body.r4a-product-tag-archive:not(.home):not(.single-product) .woo-listing-top .woocommerce-ordering,
	body.r4a-product-listing-page:not(.home):not(.single-product) .woo-listing-top .woocommerce-ordering,
	body.r4a-selected-product-page:not(.home):not(.single-product) .woo-listing-top .woocommerce-ordering,
	body.r4a-brand-archive:not(.home):not(.single-product) .woo-listing-top .woocommerce-ordering,
	body.page-slug-alle-produkte .woo-listing-top .woocommerce-ordering,
	body.page-slug-bestseller .woo-listing-top .woocommerce-ordering,
	body.page-slug-neue-produkte .woo-listing-top .woocommerce-ordering {
		float: none !important;
		position: static !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		width: var(--r4a-toolbar-column-width) !important;
		max-width: var(--r4a-toolbar-column-width) !important;
		height: 48px !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: right !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}

/* EN: Fallback when .woo-listing-top wrapper is missing. */
@media (min-width: 1000px) {
	body.woocommerce-shop .woocommerce:not(:has(.woo-listing-top)),
	body.post-type-archive-product .woocommerce:not(:has(.woo-listing-top)),
	body.tax-product_cat .woocommerce:not(:has(.woo-listing-top)),
	body.tax-product_tag .woocommerce:not(:has(.woo-listing-top)) {
		position: relative !important;
		max-width: 1180px !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	body.woocommerce-shop .woocommerce:not(:has(.woo-listing-top)) .woocommerce-result-count,
	body.post-type-archive-product .woocommerce:not(:has(.woo-listing-top)) .woocommerce-result-count,
	body.tax-product_cat .woocommerce:not(:has(.woo-listing-top)) .woocommerce-result-count,
	body.tax-product_tag .woocommerce:not(:has(.woo-listing-top)) .woocommerce-result-count {
		float: none !important;
		position: relative !important;
		display: block !important;
		max-width: calc(100% - 410px) !important;
		min-height: 50px !important;
		margin: 24px 0 34px !important;
		color: var(--r4a-white) !important;
		font-size: 14px !important;
		font-weight: 900 !important;
		line-height: 50px !important;
		text-align: left !important;
		text-transform: uppercase !important;
	}

	body.woocommerce-shop .woocommerce:not(:has(.woo-listing-top)) .woocommerce-ordering,
	body.post-type-archive-product .woocommerce:not(:has(.woo-listing-top)) .woocommerce-ordering,
	body.tax-product_cat .woocommerce:not(:has(.woo-listing-top)) .woocommerce-ordering,
	body.tax-product_tag .woocommerce:not(:has(.woo-listing-top)) .woocommerce-ordering {
		float: none !important;
		position: absolute !important;
		top: 24px !important;
		right: 0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		width: 300px !important;
		height: 50px !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: right !important;
	}
}

body.woocommerce-shop .woocommerce-ordering select,
body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select,
body.r4a-product-category-archive .woocommerce-ordering select,
body.r4a-product-tag-archive .woocommerce-ordering select,
body.r4a-product-listing-page .woocommerce-ordering select,
body.r4a-selected-product-page .woocommerce-ordering select,
body.r4a-brand-archive .woocommerce-ordering select,
body.page-slug-alle-produkte .woocommerce-ordering select,
body.page-slug-bestseller .woocommerce-ordering select,
body.page-slug-neue-produkte .woocommerce-ordering select,
body.woocommerce-shop select.orderby,
body.post-type-archive-product select.orderby,
body.tax-product_cat select.orderby,
body.tax-product_tag select.orderby {
	display: block !important;
	width: var(--r4a-toolbar-select-width) !important;
	min-width: var(--r4a-toolbar-select-width) !important;
	max-width: var(--r4a-toolbar-select-width) !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 42px 0 16px !important;
	border: 1px solid var(--r4a-red) !important;
	border-radius: 6px !important;
	background-color: #080a10 !important;
	color: var(--r4a-white) !important;
	color-scheme: dark !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
	box-shadow:
		0 0 18px rgba(208, 0, 0, 0.18),
		inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
	outline: none !important;
	cursor: pointer !important;
}

body.woocommerce-shop .woocommerce-ordering select option,
body.post-type-archive-product .woocommerce-ordering select option,
body.tax-product_cat .woocommerce-ordering select option,
body.tax-product_tag .woocommerce-ordering select option,
body.r4a-product-category-archive .woocommerce-ordering select option,
body.r4a-product-tag-archive .woocommerce-ordering select option,
body.r4a-product-listing-page .woocommerce-ordering select option,
body.r4a-brand-archive .woocommerce-ordering select option {
	background-color: #080a10 !important;
	color: var(--r4a-white) !important;
	font-size: 14px !important;
	font-weight: 800 !important;
}

@media (max-width: 999px) {
	body.woocommerce-shop .woo-listing-top,
	body.post-type-archive-product .woo-listing-top,
	body.tax-product_cat .woo-listing-top,
	body.tax-product_tag .woo-listing-top,
	body.r4a-product-category-archive .woo-listing-top,
	body.r4a-product-tag-archive .woo-listing-top,
	body.r4a-product-listing-page .woo-listing-top,
	body.r4a-brand-archive .woo-listing-top {
		display: block !important;
		width: calc(100% - 32px) !important;
		max-width: 100% !important;
		margin: 0 auto 18px !important;
		padding: 20px 0 0 !important;
	}

	body.woocommerce-shop .woocommerce-result-count,
	body.post-type-archive-product .woocommerce-result-count,
	body.tax-product_cat .woocommerce-result-count,
	body.tax-product_tag .woocommerce-result-count,
	body.r4a-product-category-archive .woocommerce-result-count,
	body.r4a-product-tag-archive .woocommerce-result-count,
	body.r4a-product-listing-page .woocommerce-result-count,
	body.r4a-brand-archive .woocommerce-result-count,
	body.woocommerce-shop .woocommerce-ordering,
	body.post-type-archive-product .woocommerce-ordering,
	body.tax-product_cat .woocommerce-ordering,
	body.tax-product_tag .woocommerce-ordering,
	body.r4a-product-category-archive .woocommerce-ordering,
	body.r4a-product-tag-archive .woocommerce-ordering,
	body.r4a-product-listing-page .woocommerce-ordering,
	body.r4a-brand-archive .woocommerce-ordering {
		float: none !important;
		position: static !important;
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 14px !important;
		padding: 0 !important;
		text-align: left !important;
	}

	body.woocommerce-shop .woocommerce-ordering select,
	body.post-type-archive-product .woocommerce-ordering select,
	body.tax-product_cat .woocommerce-ordering select,
	body.tax-product_tag .woocommerce-ordering select,
	body.r4a-product-category-archive .woocommerce-ordering select,
	body.r4a-product-tag-archive .woocommerce-ordering select,
	body.r4a-product-listing-page .woocommerce-ordering select,
	body.r4a-brand-archive .woocommerce-ordering select {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}
}

/* ==================================================
   7. PRODUCT GRID
================================================== */

body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
body.r4a-product-category-archive:not(.home):not(.single-product) ul.products,
body.r4a-product-tag-archive:not(.home):not(.single-product) ul.products,
body.r4a-product-listing-page:not(.home):not(.single-product) ul.products,
body.r4a-selected-product-page:not(.home):not(.single-product) ul.products,
body.r4a-brand-archive:not(.home):not(.single-product) ul.products,
body.page-slug-alle-produkte ul.products,
body.page-slug-bestseller ul.products,
body.page-slug-neue-produkte ul.products,
body.r4a-alle-produkte-page ul.products,
body.r4a-bestseller-page ul.products,
body.r4a-neue-produkte-page ul.products,
body.akj-static-product-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 16px !important;
	width: min(var(--r4a-listing-max-width), calc(100vw - var(--r4a-listing-side-gap))) !important;
	max-width: var(--r4a-listing-max-width) !important;
	margin: 0 auto !important;
	padding: 0 !important;
	list-style: none !important;
}

body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product,
body.r4a-product-category-archive:not(.home):not(.single-product) ul.products li.product,
body.r4a-product-tag-archive:not(.home):not(.single-product) ul.products li.product,
body.r4a-product-listing-page:not(.home):not(.single-product) ul.products li.product,
body.r4a-selected-product-page:not(.home):not(.single-product) ul.products li.product,
body.r4a-brand-archive:not(.home):not(.single-product) ul.products li.product,
body.page-slug-alle-produkte ul.products li.product,
body.page-slug-bestseller ul.products li.product,
body.page-slug-neue-produkte ul.products li.product,
body.r4a-alle-produkte-page ul.products li.product,
body.r4a-bestseller-page ul.products li.product,
body.r4a-neue-produkte-page ul.products li.product,
body.akj-static-product-page ul.products li.product {
	width: 100% !important;
	max-width: none !important;
	min-height: 410px !important;
	margin: 0 !important;
	padding: 26px 20px 22px !important;
	border: 1px solid rgba(224, 0, 0, 0.82) !important;
	border-radius: 8px !important;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
		var(--r4a-card-bg) !important;
	color: var(--r4a-white) !important;
	box-shadow: 0 0 24px rgba(224, 0, 0, 0.16) !important;
	text-align: center !important;
	overflow: hidden !important;
	transition:
		transform 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease !important;
}

body.woocommerce-shop ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover,
body.r4a-product-category-archive ul.products li.product:hover,
body.r4a-product-listing-page ul.products li.product:hover,
body.r4a-brand-archive ul.products li.product:hover {
	transform: translateY(-4px) !important;
	border-color: var(--r4a-red-bright) !important;
	box-shadow: 0 0 36px rgba(224, 0, 0, 0.34) !important;
}

body.woocommerce-shop ul.products li.product img,
body.post-type-archive-product ul.products li.product img,
body.tax-product_cat ul.products li.product img,
body.tax-product_tag ul.products li.product img,
body.r4a-product-category-archive ul.products li.product img,
body.r4a-product-listing-page ul.products li.product img,
body.r4a-brand-archive ul.products li.product img,
body.page-slug-alle-produkte ul.products li.product img,
body.page-slug-bestseller ul.products li.product img,
body.page-slug-neue-produkte ul.products li.product img {
	display: block !important;
	width: 100% !important;
	height: 190px !important;
	margin: 0 auto 22px !important;
	object-fit: contain !important;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title,
body.r4a-product-category-archive ul.products li.product .woocommerce-loop-product__title,
body.r4a-product-listing-page ul.products li.product .woocommerce-loop-product__title,
body.r4a-brand-archive ul.products li.product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product h2,
body.woocommerce ul.products li.product h3 {
	min-height: 46px !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	color: var(--r4a-white) !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	line-height: 1.35 !important;
	text-align: center !important;
	text-transform: none !important;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title a,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title a,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title a,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title a,
body.r4a-product-category-archive ul.products li.product .woocommerce-loop-product__title a,
body.r4a-product-listing-page ul.products li.product .woocommerce-loop-product__title a,
body.r4a-brand-archive ul.products li.product .woocommerce-loop-product__title a {
	color: var(--r4a-white) !important;
	text-decoration: none !important;
}

body:not(.home):not(.single-product) ul.products li.product .ct-product-categories,
body:not(.home):not(.single-product) ul.products li.product .ct-product-categories *,
body:not(.home):not(.single-product) ul.products li.product .ct-taxonomies,
body:not(.home):not(.single-product) ul.products li.product .ct-taxonomies *,
body:not(.home):not(.single-product) ul.products li.product .posted_in,
body:not(.home):not(.single-product) ul.products li.product .posted_in *,
body:not(.home):not(.single-product) ul.products li.product .product-categories,
body:not(.home):not(.single-product) ul.products li.product .product-categories *,
body:not(.home):not(.single-product) ul.products li.product .akj-loop-category,
body:not(.home):not(.single-product) ul.products li.product .akj-loop-category *,
body:not(.home):not(.single-product) ul.products li.product .akj-loop-subcategory,
body:not(.home):not(.single-product) ul.products li.product .akj-loop-subcategory * {
	min-height: 34px !important;
	margin: 0 0 14px !important;
	color: var(--r4a-white) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	text-align: center !important;
	text-transform: uppercase !important;
	opacity: 1 !important;
	text-shadow: none !important;
}

body:not(.home):not(.single-product) ul.products li.product .price,
body:not(.home):not(.single-product) ul.products li.product .price ins,
body:not(.home):not(.single-product) ul.products li.product .price del,
body:not(.home):not(.single-product) ul.products li.product .woocommerce-Price-amount,
body:not(.home):not(.single-product) ul.products li.product .woocommerce-Price-amount bdi {
	display: inline-flex !important;
	align-items: baseline !important;
	justify-content: flex-start !important;
	flex-wrap: nowrap !important;
	white-space: nowrap !important;
	word-break: keep-all !important;
	overflow-wrap: normal !important;
}

body:not(.home):not(.single-product) ul.products li.product .price,
body:not(.home):not(.single-product) ul.products li.product .amount {
	min-width: max-content !important;
	max-width: max-content !important;
	margin: 0 14px 0 0 !important;
	color: var(--r4a-white) !important;
	font-size: 26px !important;
	font-weight: 900 !important;
	line-height: 1.1 !important;
	vertical-align: middle !important;
	opacity: 1 !important;
}

body:not(.home):not(.single-product) ul.products li.product .woocommerce-Price-currencySymbol {
	display: inline !important;
	margin-left: 4px !important;
	margin-right: 0 !important;
	white-space: nowrap !important;
	line-height: inherit !important;
	vertical-align: baseline !important;
}

body.woocommerce-shop ul.products li.product .button,
body.woocommerce-shop ul.products li.product .add_to_cart_button,
body.post-type-archive-product ul.products li.product .button,
body.post-type-archive-product ul.products li.product .add_to_cart_button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_cat ul.products li.product .add_to_cart_button,
body.tax-product_tag ul.products li.product .button,
body.tax-product_tag ul.products li.product .add_to_cart_button,
body.r4a-product-category-archive ul.products li.product .button,
body.r4a-product-category-archive ul.products li.product .add_to_cart_button,
body.r4a-product-listing-page ul.products li.product .button,
body.r4a-product-listing-page ul.products li.product .add_to_cart_button,
body.r4a-brand-archive ul.products li.product .button,
body.r4a-brand-archive ul.products li.product .add_to_cart_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 132px !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: none !important;
	border-radius: 4px !important;
	background: linear-gradient(180deg, #f00000, #b80000) !important;
	color: var(--r4a-white) !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	line-height: 1.1 !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	box-shadow: 0 8px 20px rgba(224, 0, 0, 0.28) !important;
	white-space: nowrap !important;
}

body.woocommerce-shop ul.products li.product .button:hover,
body.woocommerce-shop ul.products li.product .add_to_cart_button:hover,
body.post-type-archive-product ul.products li.product .button:hover,
body.post-type-archive-product ul.products li.product .add_to_cart_button:hover,
body.tax-product_cat ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product .add_to_cart_button:hover,
body.tax-product_tag ul.products li.product .button:hover,
body.tax-product_tag ul.products li.product .add_to_cart_button:hover {
	background: var(--r4a-white) !important;
	color: #b80000 !important;
}

body.woocommerce-shop ul.products li.product .star-rating,
body.post-type-archive-product ul.products li.product .star-rating,
body.tax-product_cat ul.products li.product .star-rating,
body.tax-product_tag ul.products li.product .star-rating {
	display: block !important;
	margin: 16px auto 0 !important;
	color: var(--r4a-red) !important;
}

@media (max-width: 1400px) {
	body.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products,
	body.r4a-product-category-archive ul.products,
	body.r4a-product-tag-archive ul.products,
	body.r4a-product-listing-page ul.products,
	body.r4a-brand-archive ul.products,
	body.page-slug-alle-produkte ul.products,
	body.page-slug-bestseller ul.products,
	body.page-slug-neue-produkte ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 18px !important;
	}
}

@media (max-width: 1024px) {
	body.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products,
	body.r4a-product-category-archive ul.products,
	body.r4a-product-tag-archive ul.products,
	body.r4a-product-listing-page ul.products,
	body.r4a-brand-archive ul.products,
	body.page-slug-alle-produkte ul.products,
	body.page-slug-bestseller ul.products,
	body.page-slug-neue-produkte ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		width: calc(100% - 32px) !important;
	}
}

@media (max-width: 640px) {
	body.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products,
	body.r4a-product-category-archive ul.products,
	body.r4a-product-tag-archive ul.products,
	body.r4a-product-listing-page ul.products,
	body.r4a-brand-archive ul.products,
	body.page-slug-alle-produkte ul.products,
	body.page-slug-bestseller ul.products,
	body.page-slug-neue-produkte ul.products {
		grid-template-columns: 1fr !important;
	}

	body.woocommerce-shop ul.products li.product img,
	body.post-type-archive-product ul.products li.product img,
	body.tax-product_cat ul.products li.product img,
	body.tax-product_tag ul.products li.product img,
	body.r4a-product-category-archive ul.products li.product img,
	body.r4a-product-listing-page ul.products li.product img,
	body.r4a-brand-archive ul.products li.product img {
		height: 170px !important;
	}
}

/* ==================================================
   8. PAGINATION
================================================== */

body.woocommerce-shop nav.woocommerce-pagination,
body.post-type-archive-product nav.woocommerce-pagination,
body.tax-product_cat nav.woocommerce-pagination,
body.tax-product_tag nav.woocommerce-pagination,
body.r4a-product-category-archive nav.woocommerce-pagination,
body.r4a-product-listing-page nav.woocommerce-pagination,
body.r4a-brand-archive nav.woocommerce-pagination,
body.page-slug-alle-produkte nav.woocommerce-pagination,
body.page-slug-bestseller nav.woocommerce-pagination,
body.page-slug-neue-produkte nav.woocommerce-pagination,
body.woocommerce-shop nav.ct-pagination,
body.post-type-archive-product nav.ct-pagination,
body.tax-product_cat nav.ct-pagination,
body.tax-product_tag nav.ct-pagination,
body.r4a-product-category-archive nav.ct-pagination,
body.r4a-product-listing-page nav.ct-pagination,
body.r4a-brand-archive nav.ct-pagination,
body.page-slug-alle-produkte nav.ct-pagination,
body.page-slug-bestseller nav.ct-pagination,
body.page-slug-neue-produkte nav.ct-pagination {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	width: 100% !important;
	max-width: 1180px !important;
	min-height: 58px !important;
	margin: 66px auto 64px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	text-align: center !important;
}

body.woocommerce-shop .woocommerce-pagination ul,
body.post-type-archive-product .woocommerce-pagination ul,
body.tax-product_cat .woocommerce-pagination ul,
body.tax-product_tag .woocommerce-pagination ul,
body.r4a-product-category-archive .woocommerce-pagination ul,
body.r4a-product-listing-page .woocommerce-pagination ul,
body.r4a-brand-archive .woocommerce-pagination ul,
body.woocommerce-shop ul.page-numbers,
body.post-type-archive-product ul.page-numbers,
body.tax-product_cat ul.page-numbers,
body.tax-product_tag ul.page-numbers,
body.r4a-product-category-archive ul.page-numbers,
body.r4a-product-listing-page ul.page-numbers,
body.r4a-brand-archive ul.page-numbers {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	list-style: none !important;
}

body.woocommerce-shop .woocommerce-pagination ul li,
body.post-type-archive-product .woocommerce-pagination ul li,
body.tax-product_cat .woocommerce-pagination ul li,
body.tax-product_tag .woocommerce-pagination ul li,
body.r4a-product-category-archive .woocommerce-pagination ul li,
body.r4a-product-listing-page .woocommerce-pagination ul li,
body.r4a-brand-archive .woocommerce-pagination ul li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.woocommerce-shop .page-numbers,
body.post-type-archive-product .page-numbers,
body.tax-product_cat .page-numbers,
body.tax-product_tag .page-numbers,
body.r4a-product-category-archive .page-numbers,
body.r4a-product-listing-page .page-numbers,
body.r4a-brand-archive .page-numbers,
body.page-slug-alle-produkte .page-numbers,
body.page-slug-bestseller .page-numbers,
body.page-slug-neue-produkte .page-numbers {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 48px !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1px solid rgba(255, 23, 23, 0.78) !important;
	border-radius: 9px !important;
	background:
		radial-gradient(circle at 50% 0%, rgba(255, 23, 23, 0.16), rgba(255, 23, 23, 0) 58%),
		linear-gradient(180deg, #12141c 0%, #05060a 100%) !important;
	color: var(--r4a-white) !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	text-align: center !important;
	text-decoration: none !important;
	box-shadow:
		0 0 14px rgba(208, 0, 0, 0.24),
		0 8px 20px rgba(0, 0, 0, 0.34),
		inset 0 0 0 1px rgba(255, 255, 255, 0.045) !important;
	opacity: 1 !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72) !important;
}

body.woocommerce-shop .page-numbers.current,
body.post-type-archive-product .page-numbers.current,
body.tax-product_cat .page-numbers.current,
body.tax-product_tag .page-numbers.current,
body.r4a-product-category-archive .page-numbers.current,
body.r4a-product-listing-page .page-numbers.current,
body.r4a-brand-archive .page-numbers.current,
body.page-slug-alle-produkte .page-numbers.current,
body.page-slug-bestseller .page-numbers.current,
body.page-slug-neue-produkte .page-numbers.current {
	border-color: var(--r4a-red-bright) !important;
	background: linear-gradient(180deg, #ff1717 0%, #d00000 58%, #990000 100%) !important;
	color: var(--r4a-white) !important;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.14),
		0 0 28px rgba(255, 0, 0, 0.68),
		0 10px 24px rgba(0, 0, 0, 0.52) !important;
}

body.woocommerce-shop a.page-numbers:hover,
body.post-type-archive-product a.page-numbers:hover,
body.tax-product_cat a.page-numbers:hover,
body.tax-product_tag a.page-numbers:hover,
body.r4a-product-category-archive a.page-numbers:hover,
body.r4a-product-listing-page a.page-numbers:hover,
body.r4a-brand-archive a.page-numbers:hover {
	border-color: var(--r4a-red-bright) !important;
	background: linear-gradient(180deg, #d00000 0%, #900000 100%) !important;
	color: var(--r4a-white) !important;
	box-shadow:
		0 0 24px rgba(255, 0, 0, 0.54),
		0 10px 24px rgba(0, 0, 0, 0.48) !important;
	transform: translateY(-2px) !important;
}

body.woocommerce-shop .page-numbers.dots,
body.post-type-archive-product .page-numbers.dots,
body.tax-product_cat .page-numbers.dots,
body.tax-product_tag .page-numbers.dots,
body.r4a-product-category-archive .page-numbers.dots,
body.r4a-product-listing-page .page-numbers.dots,
body.r4a-brand-archive .page-numbers.dots {
	border-color: rgba(255, 23, 23, 0.01) !important;
	background-color: #030406 !important;
	background-image: none !important;
	color: var(--r4a-white) !important;
	box-shadow: none !important;
}

@media (max-width: 640px) {
	body.woocommerce-shop .page-numbers,
	body.post-type-archive-product .page-numbers,
	body.tax-product_cat .page-numbers,
	body.tax-product_tag .page-numbers,
	body.r4a-product-category-archive .page-numbers,
	body.r4a-product-listing-page .page-numbers,
	body.r4a-brand-archive .page-numbers {
		min-width: 42px !important;
		height: 42px !important;
		min-height: 42px !important;
		padding: 0 12px !important;
		font-size: 13px !important;
	}
}

