/*
 * Homepage "Compre por Categorias" row ([amless_category_circles], see
 * HomepageCategoryCircles.php). Scrolling, progress bar and arrows come from
 * the shared swipe row (swipe-row.css / swipe-row.js); this file only sizes
 * and styles the circles. About 2.5 circles are visible on a 390px phone,
 * so the 3rd is cut at the screen edge and invites a swipe.
 */
.amless-category-swipe-wrap {
	--amless-circle: 124px;
	--amless-gap: 20px;
	--amless-arrow-top: calc(var(--amless-circle) / 2 + 4px);
}

@media (min-width: 768px) {
	.amless-category-swipe-wrap {
		--amless-circle: 140px;
		--amless-gap: 32px;
	}
}

@media (min-width: 1200px) {
	.amless-category-swipe-wrap {
		--amless-circle: 152px;
	}
}

.amless-category-swipe {
	gap: var(--amless-gap);
	padding-top: 4px;
	padding-bottom: 8px;
}

.amless-category-swipe__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	flex: 0 0 var(--amless-circle);
	text-decoration: none;
	color: inherit;
}

.amless-category-swipe__circle {
	display: block;
	width: var(--amless-circle);
	height: var(--amless-circle);
	border-radius: 50%;
	overflow: hidden;
	background: var(--mbf-palette-color-gray-50, #f1f1f1);
	border: 1px solid var(--mbf-color-border, #d9d7dd);
}

.amless-category-swipe__circle img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.3s ease;
}

.amless-category-swipe__item:hover .amless-category-swipe__circle img,
.amless-category-swipe__item:focus-visible .amless-category-swipe__circle img {
	transform: scale(1.06);
}

.amless-category-swipe__label {
	max-width: 100%;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

@media (min-width: 768px) {
	.amless-category-swipe__label {
		font-size: 15px;
	}
}
