
.ecosystem-section {
	
	--eco-primary: var(--gmg-main-secondary, #00f0ff);
	--eco-primary-glow: color-mix(in srgb, var(--eco-primary) 35%, transparent);
	--eco-success: var(--gmg-main-success, #10b981);
	--eco-header-text: var(--gmg-main-text, #f8fafc);

	
	--eco-card-bg: var(--gmg-main-bg, #0c0f1c);
	--eco-glass-border: var(--gmg-main-border, rgba(255, 255, 255, 0.08));
	--eco-card-text: var(--gmg-main-text, #f8fafc);
	--eco-card-muted: var(--gmg-main-text, #f8fafc);
	--eco-on-primary: var(--gmg-main-bg, #0c0f1c);
	--eco-font-chakra: 'YekanBakh', 'Orbitron', monospace, sans-serif;
	--eco-font-vazir: 'YekanBakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	margin-block-start: 32px;
	font-family: var(--eco-font-vazir);
	direction: rtl;
}


.ecosystem-section .section-badge-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-block-end: 22px;
}

.ecosystem-section .section-badge-title i,
.ecosystem-section .section-badge-title svg {
	width: 22px;
	height: 22px;
	font-size: 1.35rem;
	color: var(--eco-primary);
	filter: drop-shadow(0 0 8px var(--eco-primary-glow));
}

.ecosystem-section .section-badge-title h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: var(--eco-header-text);
}


.ecosystem-section .cards-3d-showcase-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}


.ecosystem-section .eco-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	background: var(--eco-card-bg);
	border: 1px solid var(--eco-glass-border);
	border-radius: 24px;
	backdrop-filter: blur(28px);
	-webkit-backdrop-filter: blur(28px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	color: var(--eco-card-text);
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}
html[data-gmg-theme="light"] .ecosystem-section .eco-product-card {
	background: var(--eco-card-bg);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
rgba(228, 228, 228, 0.5)rgba(187, 187, 187, 0.5)
}

.ecosystem-section .eco-product-card:hover,
.ecosystem-section .eco-product-card:focus-within {
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow:
		0 24px 50px rgba(0, 0, 0, 0.65),
		0 0 25px color-mix(in srgb, var(--eco-primary) 15%, transparent);
}

.ecosystem-section .glass-shine {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	pointer-events: none;
}


.ecosystem-section .card-glow-aurora {
	position: absolute;
	inset-block-start: -25px;
	inset-inline-start: -25px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	filter: blur(65px);
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.ecosystem-section .eco-product-card:hover .card-glow-aurora,
.ecosystem-section .eco-product-card:focus-within .card-glow-aurora {
	opacity: 0.75;
}

.ecosystem-section .aurora-cyan { background: #00f0ff; }
.ecosystem-section .aurora-purple { background: #d946ef; }
.ecosystem-section .aurora-amber { background: #f59e0b; }
.ecosystem-section .aurora-green { background: #10b981; }


.ecosystem-section .eco-badge {
	position: absolute;
	inset-block-start: 18px;
	inset-inline-end: 18px;
	z-index: 2;
	padding: 3px 9px;
	background: var(--gmg-main-bg, #0c0f1c);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	font-family: var(--eco-font-chakra);
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 1px;
	color: var(--eco-card-muted);
}


.ecosystem-section .eco-img-box {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 175px;
	margin: 10px 0 16px;
	transform: translateZ(40px);
	text-decoration: none;
}

.ecosystem-section .eco-img-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.75));
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-section .eco-product-card:hover .eco-img-box img,
.ecosystem-section .eco-product-card:focus-within .eco-img-box img {
	transform: scale(1.1) translateY(-6px);
}


.ecosystem-section .eco-info {
	margin-block-start: auto;
}

.ecosystem-section .eco-info h4 {
	margin: 0 0 6px;
	font-family: var(--eco-font-chakra), var(--eco-font-vazir);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.4;
}

.ecosystem-section .eco-info h4 a {
	color: var(--eco-card-text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ecosystem-section .eco-info h4 a:hover,
.ecosystem-section .eco-info h4 a:focus-visible {
	color: var(--eco-primary);
}

.ecosystem-section .eco-info p {
	min-height: 38px;
	margin: 0 0 16px;
	font-size: 0.78rem;
	line-height: 1.6;
	color: var(--eco-card-muted);
}


.ecosystem-section .eco-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block-start: 14px;
	border-block-start: 1px solid rgba(255, 255, 255, 0.08);
}

.ecosystem-section .eco-bottom .price {
	font-family: var(--eco-font-chakra), var(--eco-font-vazir);
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--eco-card-text);
}

.ecosystem-section .eco-bottom .price small,
.ecosystem-section .eco-bottom .price .woocommerce-Price-currencySymbol {
	margin-inline-start: 3px;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--eco-card-muted);
}


.ecosystem-section .eco-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--eco-glass-border);
	border-radius: 12px;
	color: var(--eco-card-text);
	cursor: pointer;
	outline: none;
	transition:
		background-color 0.3s ease,
		border-color 0.3s ease,
		color 0.3s ease,
		box-shadow 0.3s ease,
		transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-section .eco-btn:hover,
.ecosystem-section .eco-btn:focus-visible {
	background: var(--eco-primary);
	border-color: var(--eco-primary);
	color: var(--eco-on-primary);
	box-shadow: 0 0 18px var(--eco-primary-glow);
	transform: scale(1.08);
}

.ecosystem-section .eco-btn:focus-visible {
	outline: 2px solid var(--eco-primary);
	outline-offset: 3px;
}

.ecosystem-section .eco-btn.loading {
	pointer-events: none;
}

.ecosystem-section .eco-btn.loading i {
	animation: gmgEcoSpin 0.7s infinite linear;
}

.ecosystem-section .eco-btn.added {
	background: var(--eco-success);
	border-color: var(--eco-success);
	color: #fff;
}

@keyframes gmgEcoSpin {
	to { transform: rotate(360deg); }
}


@media (max-width: 1024px) {
	.ecosystem-section .cards-3d-showcase-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.ecosystem-section .cards-3d-showcase-row {
		grid-template-columns: 1fr;
	}
}


.ecosystem-section .woocommerce a.added_to_cart {
	display: none;
}


@media (prefers-reduced-motion: reduce) {
	.ecosystem-section .eco-btn.loading i {
		animation: none;
	}

	.ecosystem-section .eco-product-card,
	.ecosystem-section .card-glow-aurora,
	.ecosystem-section .eco-info h4 a,
	.ecosystem-section .eco-img-box img,
	.ecosystem-section .eco-btn {
		transition: none;
	}

	.ecosystem-section .eco-btn:hover,
	.ecosystem-section .eco-btn:focus-visible,
	.ecosystem-section .eco-product-card:hover .eco-img-box img,
	.ecosystem-section .eco-product-card:focus-within .eco-img-box img {
		transform: none;
	}
}
