/* Product shared tokens */
:root, .wpcursor-component[class*="wpcursor-product-"] {
	--cns-lime: #c8f000;
	--cns-green: #1f3a2a;
	--cns-ink: #111;
	--cns-muted: #5c5c5c;
	--cns-bg: #f5f5f2;
	--cns-font: "Poppins", system-ui, sans-serif;
}
.wpcursor-component[class*="wpcursor-product-"],
.wpcursor-component[class*="wpcursor-product-"] p,
.wpcursor-component[class*="wpcursor-product-"] li,
.wpcursor-component[class*="wpcursor-product-"] h1,
.wpcursor-component[class*="wpcursor-product-"] h2,
.wpcursor-component[class*="wpcursor-product-"] h3,
.wpcursor-component[class*="wpcursor-product-"] a,
.wpcursor-component[class*="wpcursor-product-"] button,
.wpcursor-component[class*="wpcursor-product-"] span {
	font-family: "Poppins", system-ui, sans-serif !important;
	box-sizing: border-box;
}
.cns-prel {
	background: var(--cns-bg);
	padding: 0.5rem 0 3.5rem;
}

.cns-prel__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(1.15rem, 4vw, 2.5rem);
	box-sizing: border-box;
}

.cns-prel__title {
	margin: 0 0 1.1rem;
	color: #171717;
	font-size: clamp(1.3rem, 2.4vw, 1.65rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.cns-prel__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.cns-prel__card {
	display: flex;
	flex-direction: column;
	padding: 0.75rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(17, 17, 17, 0.04);
}

.cns-prel__image {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: #f4f4f0;
	aspect-ratio: 4 / 3;
}

.cns-prel__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cns-prel__name {
	margin: 0.75rem 0 0.35rem;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
}

.cns-prel__name a {
	color: #171717 !important;
	text-decoration: none !important;
}

.cns-prel__price {
	margin: 0 0 0.7rem;
	color: #171717;
	font-size: 0.95rem;
	font-weight: 800;
}

.cns-prel__tag {
	margin: 0 0 0.7rem;
	color: #7a7a74;
	font-size: 0.78rem;
	font-weight: 600;
}

.cns-prel__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border-radius: 999px;
	background: var(--cns-lime);
	color: #111 !important;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none !important;
}

@media (max-width: 980px) {
	.cns-pbar__inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.cns-pbar__buy {
		grid-column: 1 / -1;
		justify-content: space-between;
	}

	.cns-prel__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cns-pbar {
		top: 4.35rem;
	}

	.cns-pbar__title {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.cns-pbar__cart {
		flex: 1 1 auto;
		min-width: 0;
		white-space: normal;
		text-align: center;
	}

	.cns-prel__grid {
		grid-template-columns: 1fr;
	}

	.cns-pdetails__title,
	.cns-prel__title {
		overflow-wrap: anywhere;
	}
}
@media (max-width: 980px) {
	.cns-prel__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cns-prel__grid {
		grid-template-columns: 1fr;
	}
	.cns-pdetails__title,
	.cns-prel__title {
		overflow-wrap: anywhere;
	}
}

.wpcursor-product-related .cns-prel__title,
.wpcursor-product-related h2.cns-prel__title { color: #111 !important; font-weight: 800 !important; }
