@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
	--color-card: #1e5631;
	--color-text-primary: #ffffff;
	--color-text-secondary: rgba(255, 255, 255, 1.0);
	--color-text-tertiary: rgba(255, 255, 255, 0.7);
	--color-border: rgba(255, 255, 255, 0.1);
	--primary-blue: #5d8bf4;
	--primary-red: #ff6b6b;
	--primary-cyan: #48dbfb;
	--primary-green: #1dd1a1;

	--glow-size: 50vh;
	--glow-blur: 60px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Inter", -apple-system, system-ui, sans-serif;
	background-color: var(--color-background);
	color: var(--color-text-primary);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

button,
a {
	font-family: inherit;
}

.magnetic-glow-demo {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

.control-btn {
	padding: 0.75rem 1.25rem;
	color: var(--color-text-primary);
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
}

.control-btn:hover {
	background: rgba(255, 255, 255, 0.05);
}

.control-btn.active {
	background: rgba(255, 255, 255, 0.1);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
}

.glow-card {
	position: relative;
	background-color: var(--color-card);
	overflow: hidden;
	cursor: pointer;
	height: 100%;
	transition: transform 0.3s ease;
}

.glow-card:hover {
	transform: translateY(-8px);
}

.card-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.card-img {
	width: 100%;
	height: 270px; /* increased from 200px to 270px */
	overflow: hidden;
	position: relative;
}

.card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.glow-card:hover .card-img img {
	transform: scale(1.05);
}

.card-body {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.card-title {
	font-size: 3rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	letter-spacing: -0.01em;
	text-align: center;
}

.card-tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 1.5rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
	background: rgba(255, 255, 255, 0.08);
	text-align: center;
	align-self: center;
}

.star-outline {
	opacity: 0.3;
}

.rating-count {
	font-size: 0.875rem;
	color: var(--color-text-tertiary);
	margin-left: 0.25rem;
}

.card-price {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	margin-top: auto;
	text-align: center;
}

.price-original {
	font-size: 2rem;
	color: var(--color-text-tertiary);
	margin-right: 0.5rem;
}

.card-text {
	color: var(--color-text-secondary);
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	text-align: center;
}

.card-actions {
	margin-top: auto;
}

.card-btn {
	display: block;
	width: 100%;
	padding: 0.875rem 1.25rem;
	font-size: 2rem;
	font-weight: 500;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	text-decoration: none;
}


.card-btn.primary {
	background-color: #a1cc0e; 
	color: #1e5631;
	box-shadow: 0 2px 8px 0 rgba(168,255,120,0.15);
	transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.card-btn.primary:hover {
	background-color: #1ebb8c5d; /* slightly deeper green */
	color: #a1cc0e;
	box-shadow: 0 0 16px 2px #a1cc0e, 0 2px 8px 0 rgba(168,255,120,0.25);
	filter: brightness(1.05);
}

.card-btn.primary:active {
	background-color: #1dd1a1; /* deeper green */
	color: #a1cc0e;
	box-shadow: 0 0 8px 1px #1dd1a1;
	transform: scale(0.97);
}

.card-btn.primary:hover {
	background-color: #1a1a1a;
}

.glow-effect {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
}

.outline-glow .glow-card {
	box-shadow: 0 0 0 1px var(--color-border);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.outline-glow .glow-card:hover {
	box-shadow: 0 0 0 2px var(--glow-color, rgba(93, 139, 244, 0.5)),
		0 0 30px 2px var(--glow-color, rgba(93, 139, 244, 0.25));
}

.outline-glow .glow-effect {
	display: none;
}

@keyframes pulse {
	0% {
		opacity: 0.3;
		transform: scale(0.9);
	}
	50% {
		opacity: 0.8;
		transform: scale(1.1);
	}
	100% {
		opacity: 0.3;
		transform: scale(0.9);
	}
}

.glow-card {
	--glow-color: #a1cc0e;
}

@media (max-width: 768px) {
	.magnetic-glow-demo {
		padding: 1rem;
	}

	.card-grid {
		grid-template-columns: 1fr;
	}

	.card-img {
		height: 180px;
	}
}

/* Progress Bar Styles */
.progress-bar-container {
	margin: 16px 0 8px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.progress-bar-bg {
	flex: 1;
	background: #e0e7ef;
	border-radius: 8px;
	height: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(93, 139, 244, 0.10);
}
.progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #a1cc0e 0%, #a1cc0e 100%);
	border-radius: 8px 0 0 8px;
	transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.progress-bar-label {
	font-size: 0.95em;
	color: #a1cc0e;
	font-weight: 600;
	min-width: 36px;
	text-align: right;
}

.glow-card .card-body .card-title {
  color: #fff;
}

.glow-card .card-body .card-price {
  color: #fff;
}