.cdf-pgw-woocommerce {
	width: 100%;
}

.cdf-pgw-grid.products {
	display: grid;
	grid-template-columns: repeat(var(--cdf-pgw-columns, 4), minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdf-pgw-grid.products::before,
.cdf-pgw-grid.products::after,
.woocommerce .cdf-pgw-grid.products::before,
.woocommerce .cdf-pgw-grid.products::after,
.woocommerce-page .cdf-pgw-grid.products::before,
.woocommerce-page .cdf-pgw-grid.products::after {
	content: none;
	display: none;
}

.cdf-pgw-grid.products .product.cdf-pgw-product,
.woocommerce .cdf-pgw-grid.products[class*="columns-"] .product.cdf-pgw-product,
.woocommerce-page .cdf-pgw-grid.products[class*="columns-"] .product.cdf-pgw-product {
	float: none;
	width: auto;
	clear: none;
	min-width: 0;
	margin: 0;
	padding: 20px;
	text-align: center;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.26);
}

.woocommerce .cdf-pgw-grid.products[class*="columns-"] .product.cdf-pgw-product:nth-child(2n),
.woocommerce-page .cdf-pgw-grid.products[class*="columns-"] .product.cdf-pgw-product:nth-child(2n) {
	float: none;
	clear: none !important;
}

.cdf-pgw-product .onsale {
	z-index: 3;
}

.cdf-pgw-gallery {
	position: relative;
	width: 100%;
	margin: 0 0 16px;
	overflow: hidden;
	border-radius: 20px;
	background: #f4f1ec;
}

.cdf-pgw-gallery__viewport {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: inherit;
	color: inherit;
	text-decoration: none;
	touch-action: pan-y;
}

.cdf-pgw-gallery__track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 220ms ease;
	will-change: transform;
}

.cdf-pgw-gallery__slide {
	display: block;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.cdf-pgw-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
}

.cdf-pgw-gallery .cdf-pgw-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	box-sizing: border-box;
	padding: 0;
	border: 0;
	border-radius: 999px;
	color: rgba(191, 56, 29, 0.42);
	background: transparent;
	box-shadow: none;
	font: 700 26px/1 Arial, sans-serif;
	cursor: pointer;
	opacity: 0.34;
	transform: translateY(-50%);
	transition: background 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.cdf-pgw-gallery .cdf-pgw-gallery__nav:hover,
.cdf-pgw-gallery .cdf-pgw-gallery__nav:focus-visible {
	color: #bf381d;
	background: rgba(255, 255, 255, 0.62);
	opacity: 0.82;
	transform: translateY(-50%) scale(1.04);
}

.cdf-pgw-gallery__nav--prev {
	left: 10px;
}

.cdf-pgw-gallery__nav--next {
	right: 10px;
}

.cdf-pgw-gallery.cdf-pgw-gallery--no-desktop-arrows .cdf-pgw-gallery__nav {
	display: none;
}

.cdf-pgw-gallery__dots {
	position: absolute;
	left: 50%;
	bottom: 10px;
	z-index: 2;
	display: inline-flex;
	gap: 5px;
	transform: translateX(-50%);
}

.cdf-pgw-gallery__dot {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.cdf-pgw-gallery__dot.is-active {
	background: #c0392b;
}

.cdf-pgw-product__details {
	display: block;
	color: inherit;
	text-decoration: none;
}

.cdf-pgw-product .woocommerce-loop-product__title {
	margin-top: 0;
}

.cdf-pgw-product .price {
	display: block;
	margin: 8px 0 14px;
}

.cdf-pgw-product .woocommerce-loop-product__buttons {
	margin-top: auto;
}

.cdf-pgw-product .button {
	border-radius: 20px;
}

@media (max-width: 1024px) {
	.cdf-pgw-grid.products {
		grid-template-columns: repeat(var(--cdf-pgw-columns-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.cdf-pgw-grid.products {
		grid-template-columns: repeat(var(--cdf-pgw-columns-mobile, 1), minmax(0, 1fr));
		gap: 20px;
	}

	.cdf-pgw-grid.products .product.cdf-pgw-product {
		padding: 20px;
	}

	.cdf-pgw-gallery .cdf-pgw-gallery__nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cdf-pgw-gallery__track,
	.cdf-pgw-gallery .cdf-pgw-gallery__nav {
		transition: none;
	}
}
