.ufwc-grid {
	--ufwc-columns: 4;
	--ufwc-row-gap: 30px;
	--ufwc-col-gap: 30px;
	--ufwc-img-ratio: 1/1;
	display: grid;
	grid-template-columns: repeat(var(--ufwc-columns), 1fr);
	gap: var(--ufwc-row-gap) var(--ufwc-col-gap);
}

.ufwc-empty {
	padding: 40px;
	text-align: center;
	color: #888;
}

.ufwc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #1a1a1a;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ufwc-lift-on .ufwc-card:hover {
	transform: translateY(-6px);
}

.ufwc-card__media {
	position: relative;
	aspect-ratio: var(--ufwc-img-ratio);
	overflow: hidden;
	background-color: #ffffff;
}

.ufwc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: brightness(100%);
	transition: transform 0.4s ease, filter 0.3s ease;
}

.ufwc-zoom-on .ufwc-card:hover .ufwc-card__media img {
	transform: scale(1.06);
}

.ufwc-card:hover .ufwc-card__media img {
	filter: brightness(70%);
}

.ufwc-badge {
	position: absolute;
	top: 12px;
	left: 0;
	z-index: 2;
	padding: 4px 20px 4px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 0;
	background-color: #f4c60a;
	color: #1a1a1a;
	line-height: 1.6;
	clip-path: polygon( 0 0, 100% 0, calc( 100% - 14px ) 100%, 0 100% );
}

.ufwc-hover-icons {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.ufwc-card:hover .ufwc-hover-icons {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ufwc-icon-btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: #f4c60a;
	background-image: none;
	box-shadow: none;
	color: #1a1a1a;
	fill: #1a1a1a;
	border: 0;
	margin: 0;
	padding: 0;
	overflow: visible;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
	font-size: 0;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ufwc-icon-btn .ufwc-icon,
.ufwc-btn .ufwc-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.ufwc-icon-btn:hover {
	transform: scale(1.08);
}

.ufwc-icon-btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

.ufwc-card__body {
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.ufwc-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.ufwc-card__title a {
	text-decoration: none;
	color: #ffffff;
	transition: color 0.2s ease;
}

.ufwc-card__desc {
	font-size: 13px;
	line-height: 1.5;
	color: #a8a8a8;
}

.ufwc-card__footer {
	margin-top: auto;
	padding-top: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.ufwc-card__price {
	font-size: 16px;
	font-weight: 700;
	color: #f4c60a;
}

.ufwc-card__price del {
	opacity: 0.5;
	font-weight: 400;
	margin-right: 6px;
}

.ufwc-card__price ins {
	text-decoration: none;
}

.ufwc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 4px;
	background-color: #f4c60a;
	color: #1a1a1a;
	fill: #1a1a1a;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ufwc-btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

.ufwc-btn--call .ufwc-btn__phone {
	margin-left: 6px;
	padding-left: 8px;
	border-left: 1px solid rgba(26, 26, 26, 0.35);
	font-variant-numeric: tabular-nums;
}

.ufwc-card__footer .added_to_cart {
	font-size: 11px;
	color: inherit;
	text-decoration: underline;
}

/* Fallback lightbox, used only when WooCommerce's bundled PhotoSwipe assets aren't available on the page. */
.ufwc-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.9);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ufwc-lightbox-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.ufwc-lightbox-overlay img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ufwc-lightbox-close,
.ufwc-lightbox-prev,
.ufwc-lightbox-next {
	position: absolute;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ufwc-lightbox-close:hover,
.ufwc-lightbox-prev:hover,
.ufwc-lightbox-next:hover {
	background-color: rgba(255, 255, 255, 0.25);
}

.ufwc-lightbox-close {
	top: 20px;
	right: 20px;
}

.ufwc-lightbox-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.ufwc-lightbox-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.ufwc-lightbox-caption {
	position: absolute;
	bottom: 24px;
	left: 24px;
	right: 24px;
	text-align: center;
	color: #fff;
	font-size: 14px;
}
