/* Custom Product Swatches — namespaced with the .cps- prefix to avoid
   collisions with theme / other-plugin CSS. Most spacing, color and
   typography values are set inline by Elementor's own 'selectors' system;
   this file only supplies structural layout and interaction states. */

.cps-widget {
	width: 100%;
}

.cps-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	row-gap: 32px;
}

.cps-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #F3F3F1;
	border-radius: 4px;
	padding: 24px 20px;
	transition-property: transform, box-shadow;
	transition-duration: 250ms;
	transition-timing-function: ease;
	height: 100%;
	box-sizing: border-box;
}

.cps-card.cps-hover-lift:hover {
	transform: translateY(-4px);
}

.cps-card.cps-hover-shadow:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Wishlist */
.cps-wishlist {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	background: none;
	border: 0;
	padding: 4px;
	margin: 0;
	cursor: pointer;
	line-height: 0;
	color: #1a1a1a;
	transition: color 150ms ease;
}
.cps-wishlist.cps-pos-left { left: 16px; right: auto; }
.cps-wishlist svg,
.cps-wishlist i {
	display: block;
	font-size: 18px;
	width: 18px;
	height: 18px;
}
.cps-wishlist .cps-wishlist-on { display: none; }
.cps-wishlist.cps-is-active .cps-wishlist-off { display: none; }
.cps-wishlist.cps-is-active .cps-wishlist-on { display: block; }

/* Image */
.cps-image-wrap {
	display: block;
	position: relative;
	width: 100%;
	height: 320px;
	margin-bottom: 20px;
	overflow: hidden;
}
.cps-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition-property: opacity, transform;
	transition-duration: 250ms;
	transition-timing-function: ease;
}
.cps-card.cps-hover-zoom:hover .cps-image {
	transform: scale(1.04);
}

/* Swatches */
.cps-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	margin-bottom: 14px;
}

.cps-swatch {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background-size: cover;
	background-position: center;
	padding: 0;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 150ms ease, transform 150ms ease;
	flex: 0 0 auto;
}
.cps-swatch:hover {
	transform: scale(1.12);
}
.cps-swatch.cps-is-active {
	border-color: #1a1a1a;
	outline: 1px solid #1a1a1a;
	outline-offset: 2px;
}
.cps-swatch--both {
	box-shadow: inset 0 0 0 3px #fff;
}

.cps-swatch-more {
	font-size: 11px;
	color: #6b6b6b;
	margin-left: 2px;
	flex: 0 0 auto;
}

.cps-swatch-message {
	text-align: center;
	font-size: 11px;
	color: #c0392b;
	margin-top: -8px;
	margin-bottom: 10px;
}
.cps-swatch-message[hidden] {
	display: none;
}

/* Price */
.cps-price {
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 4px 0;
}
.cps-price del {
	color: #999;
	font-weight: 400;
	margin-right: 6px;
	opacity: 0.7;
}
.cps-price ins {
	text-decoration: none;
}

/* Title */
.cps-title-link {
	text-decoration: none;
}
.cps-title {
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #1a1a1a;
}

/* Add to cart */
.cps-add-to-cart {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 44px;
	margin-top: 16px;
	padding: 0 18px;
	background-color: #fff;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
	border-radius: 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 150ms ease, color 150ms ease;
}
.cps-add-to-cart:hover {
	background-color: #1a1a1a;
	color: #fff;
}
.cps-atc-text {
	flex: 1;
	text-align: center;
}
.cps-atc-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}
.cps-atc-icon svg,
.cps-atc-icon i {
	width: 14px;
	height: 14px;
	font-size: 14px;
}
@media (max-width: 1024px) {
	.cps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.cps-grid { grid-template-columns: repeat(2, 1fr); }
}
