/**
 * Category Cards Styles - Kloira Homepage
 * Category cards with full background images and pill-style labels
 *
 * @package Kloira
 * @since 1.0.0
 */

/* ==========================================================================
   Section
   ========================================================================== */

.category-cards {
	width: 100%;
	padding: 60px 0;
	background: #FFFFFF;
}

.category-cards__container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
}

/* ==========================================================================
   Track (flex row of cards)
   ========================================================================== */

.category-cards__track {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 24px;
}

/* ==========================================================================
   Individual Card
   ========================================================================== */

.category-cards__card {
	position: relative;
	flex: 0 0 269px;
	width: 269px;
	height: 320px;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	display: block;
}

a.category-cards__card:hover {
	text-decoration: none;
}

a.category-cards__card:hover .category-cards__image {
	transform: scale(1.05);
}

a.category-cards__card:hover .category-cards__label {
	background: var(--color-secondary, #FF5100);
	box-shadow: 0 4px 16px rgba(255, 81, 0, 0.3);
}

a.category-cards__card:hover .category-cards__title {
	color: #FFFFFF;
}

/* ==========================================================================
   Card Image (full background)
   ========================================================================== */

.category-cards__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

/* ==========================================================================
   Card Label (pill button at bottom)
   ========================================================================== */

.category-cards__label {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px 24px;
	background: #FFFFFF;
	border-radius: 50px;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	white-space: nowrap;
}

.category-cards__title {
	font-family: "Roboto Flex", sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 19px;
	text-align: center;
	color: #111111;
	transition: color 0.3s ease;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1440px) {
	.category-cards__track {
		justify-content: center;
	}

	.category-cards__card {
		flex: 1 1 0;
		min-width: 0;
		max-width: 269px;
	}
}

@media (max-width: 991px) {
	.category-cards {
		padding: 40px 0;
	}

	.category-cards__container {
		padding: 0 24px;
		overflow: hidden;
	}

	.category-cards__track {
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: 16px;
	}

	.category-cards__track::-webkit-scrollbar {
		display: none;
	}

	.category-cards__card {
		flex: 0 0 220px;
		width: 220px;
		height: 264px;
		max-width: none;
	}
}

@media (max-width: 767px) {
	.category-cards {
		padding: 32px 0;
	}

	.category-cards__container {
		padding: 0 16px;
	}

	.category-cards__track {
		gap: 12px;
	}

	.category-cards__card {
		flex: 0 0 180px;
		width: 180px;
		height: 216px;
		border-radius: 12px;
	}

	.category-cards__label {
		padding: 8px 16px;
		bottom: 14px;
	}

	.category-cards__title {
		font-size: 14px;
		line-height: 17px;
	}
}

@media (max-width: 480px) {
	.category-cards__card {
		flex: 0 0 150px;
		width: 150px;
		height: 180px;
		border-radius: 10px;
	}

	.category-cards__label {
		padding: 6px 12px;
		bottom: 10px;
	}

	.category-cards__title {
		font-size: 12px;
		line-height: 14px;
	}
}
