/* Shop by Top Brands — আগের Popular Categories কার্ডের মতো দেখতে */
.cl-brands {
	position: relative;
	padding: 4px 0;
}
.cl-brands-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 7 * 10px) / 8);
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.cl-brands-track::-webkit-scrollbar { display: none; }

.cl-brand {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 8px 14px;
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 12px;
	color: #333 !important;
	text-decoration: none;
	transition: box-shadow .15s, transform .15s;
}
.cl-brand:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.cl-brand-img {
	width: 100%;
	height: 76px;
	display: grid;
	place-items: center;
}
.cl-brand-img img {
	max-width: 100%;
	max-height: 76px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.cl-brand-mono {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--c) 12%, #fff);
	border: 2px solid var(--c);
	color: var(--c);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .5px;
}
.cl-brand-name {
	font-size: 14px;
	line-height: 1.25;
	text-align: center;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cl-brands-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #333;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
	display: none;
	place-items: center;
	cursor: pointer;
}
.cl-brands-arrow:hover { color: #2596be; background: #fff; }
.cl-brands-arrow svg { width: 18px; height: 18px; }
.cl-brands-prev { left: -20px; }
.cl-brands-next { right: -20px; }
.cl-brands.cl-can-prev .cl-brands-prev,
.cl-brands.cl-can-next .cl-brands-next { display: grid; }

@media (max-width: 1024px) {
	.cl-brands-track { grid-auto-columns: calc((100% - 4 * 10px) / 5); }
}
@media (max-width: 768px) {
	/* মোবাইলে সাড়ে ৩টা ব্র্যান্ড (পাশে আরও আছে বোঝা যায়), নাম ছাড়া শুধু লোগো */
	.cl-brands-track { grid-auto-columns: calc((100% - 3 * 8px) / 3.5); gap: 8px; }
	.cl-brand { padding: 10px 6px; border-radius: 10px; justify-content: center; }
	.cl-brand-img { height: 58px; }
	.cl-brand-img img { max-height: 58px; }
	.cl-brand-mono { width: 52px; height: 52px; font-size: 18px; }
	.cl-brand-name { display: none; }
	/* মোবাইলে আঙুল দিয়ে সরানো যায়, তীর ৪ নম্বর লোগো ঢেকে দেয় তাই লুকানো */
	.cl-brands-arrow { display: none !important; }
}
