/* =========================================================
   TRUENTO SHOP-OVERVIEW – PRODUKTBEREICH
   ========================================================= */

.truento-shop-products.container {
	--products-red:
		var(--truento-rot);

	--products-red-dark:
		var(--truento-rot-dunkel);

	--products-dark:
		var(--truento-anthrazit-dunkel);

	--products-text:
		var(--truento-text-mittel);

	--products-muted:
		var(--truento-text-muted);

	--products-border:
		var(--truento-linie-produkt);

	width: 100%;
	max-width: var(--truento-content-width);

	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;

	padding:
		72px 15px 96px;

	box-sizing: border-box;
}


/* =========================================================
   PRODUKTZEILEN
   ========================================================= */

.truento-shop-products__rows {
	display: flex;
	flex-direction: column;
	gap: 80px;
	width: 100%;
}


/* =========================================================
   PRODUKTGRID
   ========================================================= */

.truento-shop-products__grid {
	--products-column-gap: 24px;

	display: grid;
	column-gap: var(--products-column-gap);
	width: 100%;
	margin: 0 auto;
}

.truento-shop-products__grid--columns-1 {
	grid-template-columns: minmax(0, 1fr);
	max-width:
		calc(
			(
				100%
				- (3 * var(--products-column-gap))
			)
			/ 4
		);
}

.truento-shop-products__grid--columns-2 {
	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	max-width:
		calc(
			(
				100%
				- (3 * var(--products-column-gap))
			)
			/ 2
			+ var(--products-column-gap)
		);
}

.truento-shop-products__grid--columns-3 {
	grid-template-columns:
		repeat(3, minmax(0, 1fr));

	max-width:
		calc(
			(
				100%
				- (3 * var(--products-column-gap))
			)
			* .75
			+ (2 * var(--products-column-gap))
		);
}

.truento-shop-products__grid--columns-4 {
	grid-template-columns:
		repeat(4, minmax(0, 1fr));

	max-width: 100%;
}

.truento-shop-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0;
}

.truento-shop-products__grid
.truento-shop-product-card:not(:first-child)::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left:
		calc(
			var(--products-column-gap)
			/ -2
		);

	width: 1px;
	content: "";
	pointer-events: none;
	background: var(--products-border);
}


/* =========================================================
   OBERE AUSFÜHRUNGSBEZEICHNUNG
   ========================================================= */

.truento-shop-product-card__top {
	display: flex;
	flex-direction: column;
	align-items: center;

	min-height: 52px;
	margin: 0 0 24px;

	text-align: center;
}

.truento-shop-product-card__eyebrow {
	margin: 0 0 11px;

	color:
		var(--products-muted);

	font-size: 12px;
	font-weight: 700;
	letter-spacing: .13em;
	line-height: 1.4;
	text-transform: uppercase;
}


.truento-shop-product-card__accent {
	display: block;

	width: 38px;
	height: 2px;
	margin-top: 2px;

	background: var(--products-red);
}


/* =========================================================
   PRODUKTBILD
   ========================================================= */

.truento-shop-product-card__image-wrap {
	position: relative;

	min-height: 360px;
	margin: 0 0 18px;

	overflow: hidden;

	background: var(
		--truento-produktbild-hintergrund
	);
}

.truento-shop-product-card__image-link {
	position: relative;
	z-index: 1;

	display: flex;
	align-items: center;
	justify-content: center;

	min-height: 360px;
	text-decoration: none;
}


.truento-shop-product-card__image {
	display: block;

	width: 100%;
	height: 360px;

	object-fit: contain;
	object-position: center;
}


/* =========================================================
   DIREKT IN DEN WARENKORB
   ========================================================= */

.truento-shop-product-card__cart {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 20;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;

	border: 0;
	border-radius: 50%;

	color: var(--truento-weiss);
	background: var(--truento-rot);
	box-shadow: 0 7px 18px rgba(36, 40, 45, .18);

	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);

	transition:
		opacity .2s ease,
		visibility .2s ease,
		transform .2s ease,
		filter .2s ease;

	cursor: pointer;
	pointer-events: auto;
}

.truento-shop-product-card__cart-icon {
	display: block;
	width: 20px;
	height: 20px;

	object-fit: contain;
	filter: brightness(0) invert(1);
	pointer-events: none;
}

.truento-shop-product-card__image-wrap:hover
.truento-shop-product-card__cart,
.truento-shop-product-card__cart:focus-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.truento-shop-product-card__cart:hover,
.truento-shop-product-card__cart:focus-visible,
.truento-shop-product-card__cart.is-added {
	color: var(--truento-weiss);
	background: var(--truento-rot);
	filter: brightness(.9);
	outline: 0;
}

.truento-shop-product-card__cart.is-loading {
	pointer-events: none;
	opacity: .65;
}

.truento-shop-product-card__cart.has-error {
	background: var(--products-red-dark);
}

.truento-shop-product-card__cart:disabled {
	display: none;
}

.truento-shop-product-card__colors {
	order: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
	justify-content: center;

	min-height: 20px;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	background: transparent;
}

.truento-shop-product-card__colors.is-empty {
	visibility: hidden;
}

.truento-shop-product-card__color {
	position: relative;

	display: block;

	width: 14px !important;
	min-width: 14px !important;
	max-width: 14px;
	height: 14px !important;
	min-height: 14px !important;
	max-height: 14px;
	flex: 0 0 14px;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1;
	vertical-align: top;

	border: 1px solid var(--truento-linie-anthrazit-12);
	border-radius: 0;

	background:
		linear-gradient(
			135deg,
			var(
				--truento-card-color-primary,
				var(--truento-farbplatzhalter)
			) 0 50%,
			var(
				--truento-card-color-secondary,
				var(
					--truento-card-color-primary,
					var(--truento-farbplatzhalter)
				)
			) 50% 100%
		);
	background-clip: padding-box;

	box-shadow: none;
	cursor: pointer;
}

.truento-shop-product-card__color::after {
	content: "";
	position: absolute;
	z-index: 3;
	right: 19.1%;
	bottom: -5px;
	left: 19.1%;
	height: 2px;
	box-sizing: border-box;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	pointer-events: none;
	transition: none;
}

.truento-shop-product-card__color,
.truento-shop-product-card__color:hover,
.truento-shop-product-card__color:focus-visible {
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.truento-shop-product-card__color:focus-visible {
	outline: 2px solid var(--truento-linie-anthrazit-22);
	outline-offset: 5px;
}

.truento-shop-product-card__color:focus-visible::after,
.truento-shop-product-card__color.is-selected::after {
	background: var(--truento-rot);
}


/* =========================================================
   TITEL UND PREIS
   ========================================================= */

.truento-shop-product-card__content {
	order: 3;
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}


.truento-shop-product-card__title {
	margin: 0 0 7px;

	color: var(--truento-anthrazit-dunkel);

	font-family:
		var(--truento-font-heading);

	font-size: 16px;
	font-weight: 600;
	line-height: 1.16;
	text-transform: none;
	letter-spacing: .01em;
	text-align: center;
}

.truento-shop-product-card__title a {
	display: inline-block;

	color: inherit;
	text-decoration: none;
}

.truento-shop-product-card__housing {
	margin: 0 0 14px;
	color: var(--products-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.35;
	text-align: center;
}

.truento-shop-product-card__price {
	margin: 0 0 18px;
	color: var(--truento-anthrazit-dunkel);
  	font-family:
		var(--truento-font-card-price);
	font-size: 13px;
	font-weight: 600;
  	letter-spacing: 0;
	line-height: 1.4;

	text-align: center;
}

.truento-shop-product-card--has-housing-label
.truento-shop-product-card__price {
	margin-bottom: 7px;
}


.truento-shop-product-card__price del {
	color:
		var(--products-muted);
}


.truento-shop-product-card__price ins {
	color:
		var(--products-red);

	text-decoration: none;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.truento-shop-products
.woocommerce-pagination {
	margin: 58px 0 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1000px) {

	.truento-shop-products.container {
		width: 100%;
		max-width: var(--truento-content-width);
		padding:
			62px 15px 78px;
	}


	.truento-shop-products__rows {
		gap: 58px;
	}


	.truento-shop-products__grid {
		--products-column-gap: 24px;

		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		row-gap: 58px;
		max-width: 100%;
	}


	.truento-shop-products__grid--columns-1 {
		grid-template-columns:
			minmax(0, 1fr);

		max-width:
			calc(
				(
					100%
					- var(--products-column-gap)
				)
				/ 2
			);
	}


	.truento-shop-products__grid--columns-3
	.truento-shop-product-card:last-child {
		grid-column: 1 / -1;
		justify-self: center;
		width:
			calc(
				(
					100%
					- var(--products-column-gap)
				)
				/ 2
			);
	}


	.truento-shop-products__grid
	.truento-shop-product-card::before {
		display: none;
	}


	.truento-shop-products__grid
	.truento-shop-product-card:nth-child(even)::before {
		position: absolute;
		top: 0;
		bottom: 0;
		left:
			calc(
				var(--products-column-gap)
				/ -2
			);

		display: block;
		width: 1px;
		content: "";
		background: var(--products-border);
	}


	.truento-shop-products__grid--columns-3
	.truento-shop-product-card:last-child::before {
		display: none;
	}


	.truento-shop-product-card__image-link {
		min-height: 390px;
	}

	.truento-shop-product-card__image-wrap {
		min-height: 390px;
	}


	.truento-shop-product-card__image {
		height: 390px;
	}
}


/* =========================================================
   MOBIL
   ========================================================= */

@media screen and (max-width: 650px) {

	.truento-shop-products.container {
		width: 100%;
		max-width: none;
		padding:
			48px 15px 62px;
	}


	.truento-shop-products__rows {
		gap: 48px;
	}


	.truento-shop-products__grid,
	.truento-shop-products__grid--columns-1,
	.truento-shop-products__grid--columns-2,
	.truento-shop-products__grid--columns-3,
	.truento-shop-products__grid--columns-4 {
		grid-template-columns: 1fr;
		gap: 48px;
		width: 100%;
		max-width: none;
	}


	.truento-shop-products__grid--columns-3
	.truento-shop-product-card:last-child {
		grid-column: auto;
		justify-self: stretch;
		width: auto;
	}


	.truento-shop-product-card {
		padding: 0;
	}


	.truento-shop-products__grid
	.truento-shop-product-card::before,
	.truento-shop-products__grid
	.truento-shop-product-card:nth-child(even)::before {
		display: none;
	}


	.truento-shop-product-card
	+ .truento-shop-product-card {
		padding-top: 48px;
		border-top:
			1px solid var(--products-border);
	}


	.truento-shop-product-card__image-link {
		min-height: 330px;
	}

	.truento-shop-product-card__image-wrap {
		min-height: 330px;
	}


	.truento-shop-product-card__image {
		height: 330px;
	}
}


@media (hover: none), (pointer: coarse) {

	.truento-shop-product-card__cart {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}