/*
--------------------------------------
keyframes
--------------------------------------
*/

@keyframes bounceZoomIn {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.12); }
	70%  { transform: scale(1.08); }
	100% { transform: scale(1.1); }
}

@keyframes bounceZoomOut {
	0%   { transform: scale(1.1); }
	50%  { transform: scale(1.05); }
	100% { transform: scale(1); }
}

/*
--------------------------------------
items
--------------------------------------
*/

.categories__container {
	display: grid;
	grid-template-columns: 1fr;
	background: var(--e-global-color-primary);
}

/*
--------------------------------------
item
--------------------------------------
*/

.category-card {
	position: relative;
	overflow: hidden;
}

/*link*/

.category__link {
	display: block;
	text-decoration: none;
	overflow: hidden;
}

/*img*/

.category-card__img-container {
	position: relative;
	overflow: hidden;
}

.category-card__img {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	z-index: 1;
	transform: scale(1);
	transition: transform 0.6s cubic-bezier(0.25, 1.25, 0.5, 1);
}

.category__link:hover .category-card__img {
	animation: bounceZoomIn 0.6s ease-out forwards;
}

.category__link:not(:hover) .category-card__img {
	animation: bounceZoomOut 0.4s ease-in forwards;
}

/*overlay*/

.category-card__img-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.90) 100%);
}

/*content*/

.category-card__content {
	position: absolute;
	z-index: 3;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #fff;
	transition: transform 0.4s ease;
	transform: translateY(0);
	padding: 1rem;
}

.category__link:hover .category-card__content {
	transform: translateY(-50px);
}

/*title*/

.category-card__content .category-card__title {
	font-family: var(--e-global-typography-primary-font-family);
	font-size: calc(22px + (24 - 22) * ((100vw - 320px) / (1920 - 320)));
	font-weight: 500;
	color: #fff;
	line-height: 120%;
}

/*btn*/

.category-card__content .btn-primary {
	border-radius: 50px;
	height: auto;
	padding: 0;
}

.category-card__content .btn-primary:focus,
.category-card__content .btn-primary:hover {
	background-color: transparent;
	border: 1px solid #fff;
}

.category-card__content .btn-primary svg {
	width: calc(38px + (58 - 38) * ((100vw - 320px) / (1920 - 320)));
	height: calc(38px + (58 - 38) * ((100vw - 320px) / (1920 - 320)));
}