/* Popular category grid inspired by the supplied storefront reference. */
.tka-popular-categories {
	position: relative;
	background: #fff !important;
	padding: 64px 0 72px;
	overflow: hidden;
}

.tka-popular-categories::before,
.tka-popular-categories::after {
	content: "✦";
	position: absolute;
	color: #f2bd00;
	font-size: 18px;
	pointer-events: none;
}

.tka-popular-categories::before {
	top: 25%;
	left: 2.5%;
}

.tka-popular-categories::after {
	right: 3%;
	bottom: 24%;
	color: #ef8a00;
	font-size: 12px;
}

.tka-popular-categories-head {
	margin-bottom: 34px;
	text-align: center;
}

.tka-popular-categories-head h2 {
	margin: 0;
	color: #293d63;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(25px, 2.3vw, 34px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.8px;
}

.tka-popular-categories-head h2 span {
	position: relative;
	color: #ef7900;
}

.tka-popular-categories-head h2 span::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5px;
	height: 3px;
	border-radius: 999px;
	background: #ff9b22;
}

.tka-popular-categories .tka-carousel {
	overflow: visible;
}

.tka-popular-categories .tka-carousel-track {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-auto-flow: row;
	grid-auto-columns: auto;
	gap: 30px 16px;
	overflow: visible;
	scroll-snap-type: none;
}

.tka-popular-categories .tka-category-card {
	min-width: 0;
	min-height: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	scroll-snap-align: none;
}

.tka-popular-categories .tka-category-card:hover {
	transform: translateY(-4px);
}

.tka-popular-categories .tka-category-card > .tka-category-photo {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 11px;
	aspect-ratio: 1.55 / 1;
	border-radius: 50% 50% 10px 10px / 74% 74% 10px 10px;
	background-color: #f5a36b !important;
	background-image: url('../images/category-product-photography.png') !important;
	background-repeat: no-repeat !important;
	background-size: 580% auto !important;
	box-shadow: none;
	transition: transform .22s ease, filter .22s ease;
}

.tka-popular-categories .tka-category-card:hover > .tka-category-photo {
	transform: translateY(-3px) scale(1.02);
	filter: saturate(1.05);
	box-shadow: none;
}

.tka-popular-categories .tka-category-card > .tka-category-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.tka-popular-categories .tka-category-card h3 {
	margin: 0;
	color: #304260;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	overflow-wrap: anywhere;
}

.tka-popular-categories .tka-category-card small {
	display: none;
}

@media (max-width: 1100px) {
	.tka-popular-categories .tka-carousel-track {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tka-popular-categories {
		padding: 48px 0 54px;
	}

	.tka-popular-categories-head {
		margin-bottom: 28px;
	}

	.tka-popular-categories-head h2 {
		font-size: 26px;
	}

	.tka-popular-categories .tka-carousel-track {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.tka-popular-categories .tka-category-card {
		width: min(100%, 420px);
		margin-inline: auto;
	}

	.tka-popular-categories .tka-category-card > .tka-category-photo {
		aspect-ratio: 1.75 / 1;
		margin-bottom: 12px;
	}

	.tka-popular-categories .tka-category-card h3 {
		font-size: 15px;
	}
}
