/* Karnataka Bangle Store - Category Grid
   Matched to the original design tokens. */

.kbs-cat-section {
	width: 100%;
	box-sizing: border-box;
	background: hsl(40 33% 97%);
	padding: 0 0 48px;
}
@media (min-width: 768px) {
	.kbs-cat-section { padding: 64px 0; }
}

.kbs-cat-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* Header block */
.kbs-cat-head {
	text-align: center;
	margin-bottom: 32px;
}
@media (min-width: 768px) {
	.kbs-cat-head { margin-bottom: 48px; }
}
.kbs-cat-badge {
	display: inline-block;
	background: hsl(345 65% 35%);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 9999px;
	margin-bottom: 16px;
}
.kbs-cat-heading {
	font-family: Georgia, "Playfair Display", "Times New Roman", serif;
	font-size: 30px;
	font-weight: 700;
	color: hsl(20 25% 15%);
	margin: 0 0 16px;
	line-height: 1.2;
}
@media (min-width: 640px) {
	.kbs-cat-heading { font-size: 36px; }
}
.kbs-cat-subheading {
	font-size: 16px;
	color: hsl(20 15% 45%);
	margin: 0;
}

/* Grid: 2 cols mobile, 3 tablet, 6 desktop. Extras wrap & center. */
.kbs-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	justify-content: center;
}
@media (min-width: 640px) { .kbs-cat-grid { gap: 16px; } }
@media (min-width: 768px) { .kbs-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .kbs-cat-grid { grid-template-columns: repeat(6, 1fr); } }

/* Card */
.kbs-cat-card {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: hsl(40 40% 98%);
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
	text-decoration: none;
	transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.kbs-cat-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Soft pastel overlay, one per card, cycling 6 tints at low opacity */
.kbs-cat-overlay {
	position: absolute;
	inset: 0;
	opacity: 0.10;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.kbs-cat-card:hover .kbs-cat-overlay { opacity: 0.20; }
.kbs-cat-card:nth-child(6n+1) .kbs-cat-overlay { background: linear-gradient(to bottom right, #3b82f6, #22d3ee); }
.kbs-cat-card:nth-child(6n+2) .kbs-cat-overlay { background: linear-gradient(to bottom right, #ec4899, #fb7185); }
.kbs-cat-card:nth-child(6n+3) .kbs-cat-overlay { background: linear-gradient(to bottom right, #f97316, #fbbf24); }
.kbs-cat-card:nth-child(6n+4) .kbs-cat-overlay { background: linear-gradient(to bottom right, #ef4444, #f472b6); }
.kbs-cat-card:nth-child(6n+5) .kbs-cat-overlay { background: linear-gradient(to bottom right, #4b5563, #9ca3af); }
.kbs-cat-card:nth-child(6n+6) .kbs-cat-overlay { background: linear-gradient(to bottom right, #a855f7, #f472b6); }

/* Card content */
.kbs-cat-content {
	position: relative;
	padding: 24px;
	text-align: center;
}
.kbs-cat-thumb {
	width: 80px;
	height: 80px;
	margin: 0 auto 12px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid #fff;
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
	background: linear-gradient(to bottom right, hsl(40 33% 97%), hsl(40 45% 90%));
	display: flex;
	align-items: center;
	justify-content: center;
}
.kbs-cat-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.1);
}
.kbs-cat-name {
	font-size: 16px;
	font-weight: 600;
	color: hsl(20 25% 15%);
	margin: 0 0 4px;
	line-height: 1.3;
}
.kbs-cat-link {
	display: block;
	font-size: 12px;
	color: hsl(20 15% 45%);
	margin: 0;
}
