:root {
	--wns--product-catalogue--title-line-height: 1.2;
	--wns--product-catalogue--title-min-height: calc(2 * 1.2em);
	--wns--product-catalogue--title-line-clamp: 2;
	--wns--product-catalogue--sale-badge-border: 2px solid var(--wp--preset--color--secondary);
	--wns--product-catalogue--sale-badge-border-radius: 12px;
	--wns--product-catalogue--sale-badge-font-size: 20px;
	--wns--product-catalogue--sale-badge-position-offset: 10px;
	--wns--product-catalogue--sale-badge-content: "%";
	--wns--product-catalogue--sale-badge-content-font-weight: bold;
	--wns--product-catalogue--filters-padding: 20px;
	--wns--product-catalogue--filters-border: 1px solid var(--wp--preset--color--secondary);
	--wns--product-catalogue--filters-border-radius: 12px;
	--wns--product-catalogue--filters-top: 100px;
	--wns--product-catalogue--filters-z-index: 20;
	--wns--product-catalogue--filters-checkbox-gap: 10px;
	--wns--product-catalogue--filters-overlay-padding: 15px;
	--wns--product-catalogue--filters-overlay-font-size: 1.2rem;
	--wns--product-catalogue--filters-overlay-border: 1px solid var(--wp--preset--color--secondary);
	--wns--product-catalogue--filters-overlay-border-radius: 12px;
	--wns--product-catalogue--filters-overlay-svg-transform: translateX(4px);
	--wns--product-catalogue--filters-overlay-svg-size: calc(1.5rem - 1px);
	--wns--product-catalogue--store-notices-margin-top: 60px;
	--wns--product-catalogue--term-description-gap: 30px;
	--wns--product-catalogue--term-description-margin-top: 60px;
	--wns--product-catalogue--mobile--padding: 0 30px;
	--wns--product-catalogue--mobile--margin-top: 0 30px;
	--wns--product-catalogue--mobile--filters-padding: 0;
	--wns--product-catalogue--mobile--filters-border: none;
	--wns--product-catalogue--mobile--filters-border-radius: 0;
	--wns--product-catalogue--mobile--store-notices-margin-top: 30px;
	--wns--product-catalogue--mobile--term-description-gap: 15px;
	--wns--product-catalogue--mobile--term-description-margin-top: 30px;
}

.main-shop-wrapper {
	max-width: var(--wns--page--max-width) !important;
	width: 100%;
	padding: var(--wns--page--padding);
}

.main-shop-catalogue .fragment--product-catalogue>.alignwide {
	max-width: unset !important;
}

.fragment--product-catalogue {
	padding: var(--wns--page--padding);
}

.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product .wp-block-woocommerce-product-image a,
.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product .wp-block-woocommerce-product-image img {
	border-radius: var(--wns-image-radius);
}

.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product {
	display: flex;
	flex-direction: column;
	gap: var(--wns-product-slide-info-spacing);
}

.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product>* {
	margin-bottom: 0 !important;
}

.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product .wp-block-post-title a {
	font-size: var(--wns-product-slide-title-font-size) !important;
	font-family: var(--wns-product-slide-title-font-family) !important;
	font-style: var(--wns-product-slide-title-font-style) !important;
	font-weight: var(--wns-product-slide-title-font-weight) !important;
	color: var(--wns-product-slide-title-color) !important;

	line-height: var(--wns--product-catalogue--title-line-height) !important;
	min-height: var(--wns--product-catalogue--title-min-height) !important;

	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: var(--wns--product-catalogue--title-line-clamp) !important;
	overflow: hidden !important;
	word-break: break-word;
}

.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product .wp-block-post-title a:hover,
.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product .wp-block-post-title a:focus,
.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product .wp-block-post-title a:active {
	color: var(--wns-product-slide-title-color-hover) !important;
	text-decoration: var(--wns-product-slide-title-text-decoration) !important;
}

.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product .wp-block-woocommerce-product-price {
	font-size: var(--wns-product-slide-price-font-size) !important;
	font-family: var(--wns-product-slide-price-font-family) !important;
	font-style: var(--wns-product-slide-price-font-style) !important;
	font-weight: var(--wns-product-slide-price-font-weight) !important;
	color: var(--wns-product-slide-price-color) !important;
}

.fragment--product-catalogue .wp-block-woocommerce-product-template .wc-block-product .wp-block-woocommerce-product-price .wc-block-components-product-price:has(del) ins {
	color: var(--wp--preset--color--secondary) !important;
}

.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-collection-no-results p:first-child {
	font-family: var(--wp--preset--font-family--poltawski-nowy);
	color: var(--wp--preset--color--primary);
}

.wc-block-product-filters {
	padding: var(--wns--product-catalogue--filters-padding);
	border: var(--wns--product-catalogue--filters-border);
	border-radius: var(--wns--product-catalogue--filters-border-radius);
	position: sticky;
	top: var(--wns--product-catalogue--filters-top);
	align-self: flex-start;
	z-index: var(--wns--product-catalogue--filters-z-index);
}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__items {
	display: flex;
	flex-direction: column;
	gap: var(--wns--product-catalogue--filters-checkbox-gap);
}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 7px;
	border-radius: 8px;
	cursor: pointer;
	transition:
		color 160ms ease,
		background-color 160ms ease;
}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__label:hover,
.wc-block-product-filters .wc-block-product-filter-checkbox-list__label:focus-within {
	color: var(--wp--preset--color--secondary);
	background-color: color-mix(in srgb, var(--wp--preset--color--secondary) 7%, transparent);
}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__input-wrapper {
	flex: 0 0 22px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	box-sizing: border-box;
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--secondary) 72%, var(--wp--preset--color--foreground));
	border-radius: 5px;
	background: var(--wp--preset--color--black);
	transition:
		border-color 160ms ease,
		background-color 160ms ease;
}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__input-wrapper:has(.wc-block-product-filter-checkbox-list__input:checked) {
	border-color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--primary);
}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__mark {
	width: 16px;
	height: 16px;
	color: var(--wp--preset--color--foreground);
}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__input:focus-visible + .wc-block-product-filter-checkbox-list__mark {
	outline: 2px solid var(--wp--preset--color--secondary);
	outline-offset: 4px;
	border-radius: 2px;
}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__count {
	color: color-mix(in srgb, var(--wp--preset--color--foreground) 65%, transparent);
}

.wc-block-product-filters__overlay-dialog {
	background-color: var(--wp--preset--color--black);
}

.wc-block-product-filters__open-overlay {
	font-family: var(--wp--preset--font-family--playfair-display);
	color: var(--wp--preset--color--secondary);
	font-size: var(--wns--product-catalogue--filters-overlay-font-size) !important;
	padding: var(--wns--product-catalogue--filters-overlay-padding);
	flex-direction: row-reverse;
	justify-content: space-between;
	border: var(--wns--product-catalogue--filters-overlay-border);
	border-radius: var(--wns--product-catalogue--filters-overlay-border-radius);
}

.wc-block-product-filters__open-overlay svg {
	transform: var(--wns--product-catalogue--filters-overlay-svg-transform);
	width: var(--wns--product-catalogue--filters-overlay-svg-size);
	height: var(--wns--product-catalogue--filters-overlay-svg-size);
}

.wc-block-product-filters__open-overlay>span {
	padding: 0;
}

.wc-block-product-filters__open-overlay:hover {
	border-color: var(--wp--preset--color--primary);
}

.wc-block-product-filters__open-overlay:hover svg {
	color: var(--wp--preset--color--primary);
}

.wc-block-components-product-sale-badge {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--secondary);
	border: var(--wns--product-catalogue--sale-badge-border);
	border-radius: var(--wns--product-catalogue--sale-badge-border-radius);
	font-size: var(--wns--product-catalogue--sale-badge-font-size);
	right: var(--wns--product-catalogue--sale-badge-position-offset);
	top: var(--wns--product-catalogue--sale-badge-position-offset);
}

.wc-block-components-product-sale-badge:before {
	content: var(--wns--product-catalogue--sale-badge-content);
	display: block;
	font-weight: var(--wns--product-catalogue--sale-badge-content-font-weight);
}

.wc-block-components-product-sale-badge>span {
	display: none;
}

.wp-block-woocommerce-store-notices {
	margin-top: var(--wns--product-catalogue--store-notices-margin-top);
}

.wp-block-term-description {
	margin-top: var(--wns--product-catalogue--term-description-margin-top);
	display: flex;
	flex-direction: column;
	gap: var(--wns--product-catalogue--term-description-gap);
}

.wc-block-product-filter-price-slider__inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.wc-block-product-filter-price-slider__left,
.wc-block-product-filter-price-slider__right {
	min-width: 0;
}

.wc-block-product-filter-price-slider .text input[type="text"] {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0.75rem 1rem !important;
	margin: 0 !important;
	line-height: 1.2 !important;
	box-sizing: border-box;
}

@media (max-width: 1500px) {
	.main-shop-wrapper,
	.fragment--product-catalogue {
		padding: var(--wns--page--mobile--padding);
	}

	.main-shop-catalogue {
		flex-direction: column;
	}

	.fragment--product-catalogue {
		margin-top: var(--wns--page--mobile--margin-top);
	}
}

@media (max-width: 900px) {
	.main-shop-wrapper {
		box-sizing: border-box;
		width: calc(100vw - 80px);
		max-width: calc(100vw - 80px) !important;
		margin-inline: 40px;
		padding-inline: 0;
		overflow-x: clip;
	}

	.main-shop-wrapper *,
	.main-shop-wrapper *::before,
	.main-shop-wrapper *::after {
		box-sizing: border-box;
		min-width: 0;
	}

	.fragment--product-catalogue {
		width: 100%;
		max-width: 100%;
		padding-inline: 0;
	}

	.main-shop-wrapper .wp-block-query-title,
	.main-shop-wrapper .wp-block-term-description,
	.main-shop-wrapper .wp-block-breadcrumbs {
		width: 100%;
		max-width: 100%;
		overflow-wrap: anywhere;
		white-space: normal;
	}

	.wc-block-catalog-sorting,
	.wc-block-catalog-sorting select.orderby {
		min-width: 100%;
	}
	
	.wp-block-woocommerce-store-notices {
		margin-top: var(--wns--product-catalogue--mobile--store-notices-margin-top);
	}

	.wp-block-term-description {
		margin-top: var(--wns--product-catalogue--mobile--term-description-margin-top);
		gap: var(--wns--product-catalogue--mobile--term-description-gap);
	}
}

@media (max-width: 600px) {
	.wc-block-product-filters {
		padding: var(--wns--product-catalogue--mobile--filters-padding);
		border: var(--wns--product-catalogue--mobile--filters-border);
		border-radius: var(--wns--product-catalogue--mobile--filters-border-radius);
	}

	.fragment--product-catalogue .wp-block-woocommerce-product-template {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 32px !important;
	}

	.fragment--product-catalogue .wp-block-woocommerce-product-template > .wc-block-product {
		width: 100% !important;
		max-width: 420px;
		margin-inline: auto;
	}

	.fragment--product-catalogue .wp-block-woocommerce-product-template .wp-block-post-title,
	.fragment--product-catalogue .wp-block-woocommerce-product-template .wp-block-post-title a {
		width: 100%;
		max-width: 100%;
		min-height: 0 !important;
		overflow-wrap: anywhere;
		white-space: normal !important;
	}
}
