/* Shop shared tokens + buttons */
:root, .wpcursor-component[class*="wpcursor-shop-"] {
	--cns-lime: #c8f000;
	--cns-green: #1f3a2a;
	--cns-green-deep: #0f1c14;
	--cns-ink: #111;
	--cns-font: "Poppins", system-ui, sans-serif;
}
.wpcursor-component[class*="wpcursor-shop-"],
.wpcursor-component[class*="wpcursor-shop-"] p,
.wpcursor-component[class*="wpcursor-shop-"] li,
.wpcursor-component[class*="wpcursor-shop-"] h1,
.wpcursor-component[class*="wpcursor-shop-"] h2,
.wpcursor-component[class*="wpcursor-shop-"] h3,
.wpcursor-component[class*="wpcursor-shop-"] a,
.wpcursor-component[class*="wpcursor-shop-"] button,
.wpcursor-component[class*="wpcursor-shop-"] span,
.wpcursor-component[class*="wpcursor-shop-"] input,
.wpcursor-component[class*="wpcursor-shop-"] select {
	font-family: "Poppins", system-ui, sans-serif !important;
	box-sizing: border-box;
}
#produits { scroll-margin-top: 6.5rem; }
.cns-shop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.95rem 1.35rem;
	border-radius: 999px;
	background: var(--cns-lime);
	color: #111 !important;
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cns-shop-btn:hover {
	transform: translateY(-2px);
	background: #d6ff2e;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
	color: #111 !important;
}

.cns-shop-btn__arrow {
	display: inline-flex;
}

.cns-shop-btn--ghost {
	background: transparent;
	color: #fff !important;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	box-shadow: none;
}

.cns-shop-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #fff;
	color: #fff !important;
	box-shadow: none;
}

.cns-shop-feed {
	background: #f3f5f1;
	color: var(--cns-ink);
	padding: clamp(2.4rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 7vw, 5.5rem);
}

.cns-shop-feed__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.cns-shop-feed__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.35rem;
}

.cns-shop-feed__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.45rem, 2.6vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: #111;
}

.cns-shop-feed__lead {
	margin: 0;
	max-width: 38rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #5b6158;
}

.cns-shop-feed__meta {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-shrink: 0;
}

.cns-shop-feed__count {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 500;
	color: #6a7066;
	white-space: nowrap;
}

.cns-shop-feed__views {
	display: inline-flex;
	border: 1px solid #e2e5de;
	border-radius: 0.55rem;
	overflow: hidden;
	background: #fff;
}

.cns-shop-feed__view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	border: 0;
	background: transparent;
	color: #8a9086;
	cursor: pointer;
}

.cns-shop-feed__view.is-active {
	background: #eef3e6;
	color: var(--cns-green);
}

.cns-shop-feed__toolbar {
	display: grid;
	grid-template-columns: minmax(12rem, 1.1fr) minmax(0, 1.6fr) auto;
	gap: 0.75rem 1rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.cns-shop-feed__search {
	position: relative;
	display: flex;
	align-items: center;
}

.cns-shop-feed__search-icon {
	position: absolute;
	left: 0.9rem;
	color: #8a9086;
	display: inline-flex;
	pointer-events: none;
}

.cns-shop-feed__search input {
	width: 100%;
	height: 2.7rem;
	padding: 0 1rem 0 2.55rem;
	border: 1px solid #e2e5de;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 0.9rem;
	color: #111;
	outline: none;
}

.cns-shop-feed__search input:focus {
	border-color: #b7c9a4;
	box-shadow: 0 0 0 3px rgba(200, 240, 0, 0.28);
}

.cns-shop-feed__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.cns-shop-chip {
	height: 2.15rem;
	padding: 0 0.95rem;
	border: 1px solid #e2e5de;
	border-radius: 999px;
	background: #fff;
	color: #3d4438;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cns-shop-chip.is-active,
.cns-shop-chip:hover {
	background: var(--cns-lime);
	border-color: var(--cns-lime);
	color: #111;
}

.cns-shop-feed__sort {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	justify-self: end;
	font-size: 0.84rem;
	font-weight: 500;
	color: #5b6158;
	white-space: nowrap;
}

.cns-shop-feed__sort select {
	height: 2.5rem;
	padding: 0 1.8rem 0 0.75rem;
	border: 1px solid #e2e5de;
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	color: #111;
	appearance: none;
	cursor: pointer;
}

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

.cns-shop-feed.is-list .cns-shop-feed__grid {
	grid-template-columns: 1fr;
}

.cns-shop-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(18, 28, 16, 0.06);
	min-width: 0;
}

.cns-shop-feed.is-list .cns-shop-card {
	display: grid;
	grid-template-columns: 13.5rem minmax(0, 1fr);
	align-items: stretch;
}

.cns-shop-card__media {
	position: relative;
	background: #eef2ea;
	aspect-ratio: 1;
	overflow: hidden;
}

.cns-shop-feed.is-list .cns-shop-card__media {
	aspect-ratio: auto;
	min-height: 100%;
}

.cns-shop-card__image {
	display: block;
	width: 100%;
	height: 100%;
}

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

.cns-shop-card__badge {
	position: absolute;
	top: 0.7rem;
	left: 0.7rem;
	z-index: 2;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	font-size: 0.68rem;
	font-weight: 600;
	color: #4a5244;
}

.cns-shop-card__fav {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	color: #6a7066;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cns-shop-card__fav.is-on {
	color: #e23b4a;
}

.cns-shop-card__fav.is-on svg {
	fill: currentColor;
}

.cns-shop-card__hover {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: rgba(8, 16, 10, 0.46);
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.cns-shop-card__media:hover .cns-shop-card__hover,
.cns-shop-card__media:focus-within .cns-shop-card__hover {
	opacity: 1;
	pointer-events: auto;
}

.cns-shop-card__hover-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 8.5rem;
	height: 2.15rem;
	padding: 0 0.9rem;
	border: 0;
	border-radius: 999px;
	background: var(--cns-lime);
	color: #111 !important;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}

.cns-shop-card__hover-btn--ghost {
	background: #fff;
}

.cns-shop-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.95rem 0.95rem 1.05rem;
	flex: 1;
}

.cns-shop-card__title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.cns-shop-card__title a {
	color: #111 !important;
	text-decoration: none !important;
}

.cns-shop-card__title a:hover {
	color: var(--cns-green) !important;
}

.cns-shop-card__excerpt {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.45;
	color: #6a7066;
	min-height: 2.3em;
}

.cns-shop-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.85rem;
	list-style: none;
	margin: 0.15rem 0 0.1rem;
	padding: 0;
	font-size: 0.72rem;
	font-weight: 500;
	color: #6a7066;
}

.cns-shop-card__tags li {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.cns-shop-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	margin: 0.15rem 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 800;
	color: #111;
}

.cns-shop-card__price .woocommerce-Price-amount,
.cns-shop-card__price .amount {
	font-weight: 800;
	color: #111;
}

.cns-shop-card__price del {
	font-size: 0.88rem;
	font-weight: 500;
	color: #9aa193;
}

.cns-shop-card__price del .woocommerce-Price-amount,
.cns-shop-card__price del .amount {
	color: #9aa193;
	font-weight: 500;
}

.cns-shop-card__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	margin-top: auto;
	height: 2.65rem;
	border-radius: 999px;
	background: var(--cns-lime) !important;
	color: #111 !important;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.cns-shop-card__cart:hover,
.cns-shop-card__cart.added {
	background: #d6ff2e !important;
	color: #111 !important;
	transform: translateY(-1px);
}

.cns-shop-card.is-external .cns-shop-card__cart {
	background: #1f3a2a !important;
	color: #c8f000 !important;
}

.cns-shop-card.is-external .cns-shop-card__cart:hover {
	background: #2a4d38 !important;
	color: #c8f000 !important;
}

.cns-shop-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin: 1.75rem 0 0;
}

.cns-shop-pager__pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
}

.cns-shop-pager__btn,
.cns-shop-pager__num {
	min-height: 2.5rem;
	border: 1px solid #d5d9cf;
	border-radius: 999px;
	background: #fff;
	color: var(--cns-green);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cns-shop-pager__btn {
	padding: 0 1.05rem;
}

.cns-shop-pager__num {
	width: 2.5rem;
	padding: 0;
}

.cns-shop-pager__btn:hover:not(:disabled),
.cns-shop-pager__num:hover:not(.is-active) {
	border-color: var(--cns-green);
	background: #f4f7f0;
}

.cns-shop-pager__num.is-active {
	background: var(--cns-green);
	border-color: var(--cns-green);
	color: var(--cns-lime);
}

.cns-shop-pager__btn:disabled {
	opacity: 0.38;
	cursor: default;
}

.cns-shop-feed__empty {
	margin: 1.5rem 0 0;
	text-align: center;
	color: #6a7066;
}

.cns-shop-qv {
	position: relative;
	width: min(52rem, calc(100% - 1.5rem));
	max-width: 52rem;
	border: 0;
	border-radius: 1.1rem;
	padding: 0;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.cns-shop-qv::backdrop {
	background: rgba(8, 16, 10, 0.55);
}

.cns-shop-qv__close {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	z-index: 2;
	width: 2.2rem;
	height: 2.2rem;
	border: 0;
	border-radius: 999px;
	background: #f3f5f1;
	color: #111;
	cursor: pointer;
}

.cns-shop-qv__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 1.25rem;
	padding: 1.35rem;
	align-items: center;
}

.cns-shop-qv__grid img {
	width: 100%;
	border-radius: 0.85rem;
	background: #eef2ea;
}

.cns-shop-qv__badge {
	display: inline-flex;
	margin: 0 0 0.45rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: #eef3e6;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--cns-green);
}

.cns-shop-qv h3 {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	line-height: 1.25;
}

.cns-shop-qv p {
	margin: 0 0 0.85rem;
	color: #5b6158;
	line-height: 1.5;
}

.cns-shop-qv__price {
	font-size: 1.25rem !important;
	font-weight: 800;
	color: #111 !important;
}

.cns-shop-qv__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
}

.cns-shop-qv__actions .cns-shop-card__cart {
	width: auto;
	padding: 0 1.2rem;
}

.cns-shop-qv__actions .cns-shop-btn.cns-shop-btn--ghost.cns-shop-qv__detail {
	background: #fff !important;
	border: 1.5px solid #cfd4c8 !important;
	color: #111 !important;
	box-shadow: none !important;
}

.cns-shop-qv__actions .cns-shop-btn.cns-shop-btn--ghost.cns-shop-qv__detail:hover {
	background: #f3f5f1 !important;
	border-color: #b8c0b0 !important;
	color: #111 !important;
	box-shadow: none !important;
}

@media (max-width: 1100px) {
	.cns-shop-feed__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.cns-shop-feed__head {
		flex-direction: column;
		align-items: flex-start;
	}

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

	.cns-shop-feed__sort {
		justify-self: start;
	}

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

	.cns-shop-card__hover {
		display: none;
	}
}

@media (max-width: 640px) {
	.cns-shop-feed__grid,
	.cns-shop-feed.is-list .cns-shop-feed__grid {
		grid-template-columns: 1fr;
	}

	.cns-shop-feed.is-list .cns-shop-card {
		grid-template-columns: 1fr;
	}
}

/* —— Ressource à la une —— */
@media (max-width: 600px) {
	.cns-shop-btn {
		width: 100%;
	}
}

@media (max-width: 1100px) {
	.cns-shop-feed__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.cns-shop-feed__head {
		flex-direction: column;
		align-items: flex-start;
	}
	.cns-shop-feed__toolbar {
		grid-template-columns: 1fr;
	}
	.cns-shop-feed__sort {
		justify-self: start;
	}
	.cns-shop-qv__grid {
		grid-template-columns: 1fr;
	}
	.cns-shop-card__hover {
		display: none;
	}
}

@media (max-width: 640px) {
	.cns-shop-feed__grid,
	.cns-shop-feed.is-list .cns-shop-feed__grid {
		grid-template-columns: 1fr;
	}
	.cns-shop-feed.is-list .cns-shop-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 980px) {
	.cns-shop-choose__actions .cns-shop-btn {
		width: auto;
		flex: 1 1 14rem;
	}
}

.wpcursor-shop-feed .cns-shop-feed__title,
.wpcursor-shop-feed h2 { color: #111 !important; font-weight: 800 !important; }
.wpcursor-shop-feed .cns-shop-card__title,
.wpcursor-shop-feed .cns-shop-card__title a { color: #111 !important; }
