/* ============================================================
   KIDSORY CATEGORY CARDS V2
   Safe standalone homepage addon
   ============================================================ */

.ks-category-grid-v2 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ks-category-card-v2 {
	position: relative;
	min-height: 230px;
	padding: 28px;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	border-radius: 30px;
	text-decoration: none;
	box-shadow: 0 8px 28px rgba(24, 60, 48, .06);
	transition: transform .25s ease, box-shadow .25s ease;
}

.ks-category-card-v2:hover {
	transform: translateY(-7px) rotate(-.4deg);
	box-shadow: 0 20px 42px rgba(24, 60, 48, .13);
}

.ks-category-content-v2 {
	position: relative;
	z-index: 3;
	width: 62%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ks-category-mini-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 30px;
	padding: 0 12px;
	margin-bottom: 20px;
	border-radius: 999px;
	background: rgba(255,255,255,.78);
	color: #17382f;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .11em;
	backdrop-filter: blur(5px);
}

.ks-category-card-v2 h3 {
	margin: 0 0 9px;
	color: #17382f;
	font-size: 23px;
	line-height: 1.05;
	font-weight: 900;
}

.ks-category-card-v2 p {
	margin: 0;
	max-width: 230px;
	color: rgba(23,56,47,.72);
	font-size: 13px;
	line-height: 1.5;
}

.ks-category-shop-link {
	margin-top: auto;
	padding-top: 18px;
	color: #17382f;
	font-size: 12px;
	font-weight: 900;
}

.ks-category-shop-link span {
	display: inline-block;
	margin-left: 5px;
	transition: transform .2s ease;
}

.ks-category-card-v2:hover .ks-category-shop-link span {
	transform: translateX(5px);
}

.ks-category-visual-v2 {
	position: absolute;
	z-index: 2;
	right: 11px;
	bottom: 9px;
	width: 39%;
	height: 78%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ks-category-icon-v2 {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 105px;
	height: 105px;
	border-radius: 32px;
	background: rgba(255,255,255,.84);
	font-size: 55px;
	line-height: 1;
	box-shadow: 0 14px 30px rgba(41,67,57,.11);
	transform: rotate(6deg);
	transition: transform .25s ease;
}

.ks-category-card-v2:hover .ks-category-icon-v2 {
	transform: rotate(-4deg) scale(1.08);
}

.ks-category-dot {
	position: absolute;
	display: block;
	border-radius: 50%;
}

.ks-category-dot-one {
	width: 90px;
	height: 90px;
	right: -20px;
	bottom: -15px;
	background: rgba(255,255,255,.30);
}

.ks-category-dot-two {
	width: 38px;
	height: 38px;
	left: 0;
	top: 10px;
	background: rgba(255,255,255,.42);
}

/* Slightly richer category accents while preserving the current palette. */
.ks-category-card-v2:nth-child(1) .ks-category-icon-v2 { background: #fff1f4; }
.ks-category-card-v2:nth-child(2) .ks-category-icon-v2 { background: #eef9ff; }
.ks-category-card-v2:nth-child(3) .ks-category-icon-v2 { background: #f4faed; }
.ks-category-card-v2:nth-child(4) .ks-category-icon-v2 { background: #fff9e6; }
.ks-category-card-v2:nth-child(5) .ks-category-icon-v2 { background: #f7f0ff; }
.ks-category-card-v2:nth-child(6) .ks-category-icon-v2 { background: #ecfbf7; }

@media (max-width: 900px) {
	.ks-category-grid-v2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 580px) {
	.ks-category-grid-v2 {
		grid-template-columns: 1fr;
	}

	.ks-category-card-v2 {
		min-height: 205px;
	}

	.ks-category-card-v2 h3 {
		font-size: 21px;
	}

	.ks-category-icon-v2 {
		width: 88px;
		height: 88px;
		font-size: 46px;
	}
}
