.catalog-section__item-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 16px;
}

.catalog-section__btn {
	/* Ширина по содержимому на всех экранах, кроме мобильных */
	white-space: nowrap;
	width: fit-content;
	padding: 12px 24px;
	background-color: var(--primarygreen);
	color: var(--gray-scalewhite);
	text-decoration: none;
	border-radius: 4px;
	font-family: var(--button-font-family);
	font-weight: var(--button-font-weight);
	font-size: var(--button-font-size);
	line-height: var(--button-line-height);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.catalog-section__btn:hover {
	background-color: #038a57;
	color: var(--gray-scalewhite) !important;
}

.catalog-section-order__btn {
	background-color: var(--gray-scaleblack) !important;
}

.catalog-section-order__btn:hover {
	background-color: var(--gray-scalegray-2) !important;
}

.catalog-section__item-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--gray-scaleblack);
	min-width: 60px;
	text-align: right;
}

/* Мобильные: ≤360px */
@media (max-width: 360px) {
	.catalog-section__item-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.catalog-section__item-price {
		order: 1;
		text-align: center;
		width: 100%;
		min-width: auto;
	}

	.catalog-section__btn {
		order: 2;
		width: 100% !important; /* ← добавлен !important для приоритета */
		text-align: center;
	}
}

/* Планшеты: 361px – 1024px */
@media (min-width: 361px) and (max-width: 1024px) {
	.catalog-section__btn {
		width: 30% !important;
		padding: 10px 20px;
		font-size: 14px;
		text-align: center;
	}
}

/* Контейнер изображения */
.catalog-section__item-image-wrapper {
	position: relative;
	display: block;
	width: 100%;
}

/* Изображение */
.catalog-section__item-image-wrapper img {
	width: 100%;
	height: auto;
	display: block;
}

/* Бейджи — поверх изображения */
.catalog-section__badges {
	position: absolute;
	top: 12px;
	left: 0px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 2;
}

.catalog-section__badge {
	align-self: flex-start;
	padding: 4px 8px 2px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	background: var(--statesuccsess);
	white-space: nowrap;
	text-transform: uppercase;
	line-height: 1.2;
	clip-path: polygon(
			0% 0%,
			calc(100% - 6px) 0%,
			100% 50%,
			calc(100% - 6px) 100%,
			0% 100%
	);
}

/* Опционально: разные цвета */
/*
.catalog-section__badge[data-type="hit"] { background: #e74c3c; }
.catalog-section__badge[data-type="new"] { background: #3498db; }
*/