/**
 * Block Category Component
 * Grid layout with Swiper slider for mobile
 */

/* === Section === */
.gigant-promo-section {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* === Container === */
.block-category-container {
	width: 100%;
	max-width: 1680px;
	margin-left: auto;
	margin-right: auto;
}

/* === Wrapper base === */
.block-category-wrapper {
	width: 100%;
}

/* === Item Base Styles === */
.block-category-item {
	position: relative;
	background-color: #1a1a1a;
	overflow: hidden;
	min-height: 200px;
}

.block-category-item.large {
	min-height: 400px;
}

.block-category-item .img-box {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
}

.block-category-item .img-box .img {
	position: relative;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-position: 50%;
	background-size: cover;
	transform: scale(1);
	transition: transform .15s cubic-bezier(.08, .52, .52, 1);
}

.block-category-item .img-box .img:before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8));
	opacity: .5;
	transition: opacity .15s ease-out;
}

/* === Text Block === */
.block-category-item .text-block {
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
}

.block-category-item .text-block .btn,
.block-category-item .text-block .link {
	position: relative;
	z-index: 3;
}

/* === Text Wrapper === */
.block-category-item .text-wrapper {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	color: #fff;
	box-sizing: border-box;
	overflow: hidden;
}

.block-category-item .text-wrapper .link {
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border-bottom: 1.5px solid #fff;
	display: inline-block;
	transition: color .15s ease-out, opacity .15s ease-out, transform .15s ease-out;
}

.block-category-item .text-wrapper .btn {
	border-radius: 30px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	cursor: pointer;
	background-color: var(--primary-color);
	transition: background-color .15s ease-out, transform .15s ease-out 0s;
	flex-shrink: 0;
}

.block-category-item .text-wrapper .btn .text {
	color: var(--button-text-color, #000);
	font-weight: 700;
	transition: color .15s ease-out;
}

.block-category-item .text-wrapper .text-box {
	max-width: 410px;
	transition: transform .15s ease-out;
}

.block-category-item .text-wrapper .text-box .title {
	font-weight: 700;
}

.block-category-item.large .text-wrapper {
	overflow: hidden;
}

/* === Mobile Styles (< 749px) === */
@media only screen and (max-width: 748px) {
	.block-category-container {
		width: calc(100% - 30px);
		overflow: visible;
	}

	.block-category-item {
		width: 264px;
		height: 211px !important;
		min-height: 211px !important;
	}

	/* Large banner same size as small on mobile */
	.block-category-item.large {
		width: 264px;
		height: 211px !important;
		min-height: 211px !important;
	}

	.block-category-item .text-wrapper {
		padding: 15px;
	}

	.block-category-item .text-wrapper .link {
		padding-bottom: 4px;
		font-size: 11px;
	}

	.block-category-item .text-wrapper .btn {
		width: 78px;
		height: 27px;
	}

	.block-category-item .text-wrapper .btn .text {
		font-size: 12px;
	}

	.block-category-item .text-wrapper .text-box {
		margin-bottom: 12px;
	}

	.block-category-item .text-wrapper .text-box .title {
		font-size: 20px;
		margin-bottom: 12px;
		margin-top: 10px;
	}

	.block-category-item .text-wrapper .text-box .descr {
		font-size: 11px;
		box-sizing: border-box;
		padding-right: 20px;
	}

	.block-category-item .text-block .hide-link {
		position: absolute;
		top: -15px;
		right: -15px;
		bottom: -15px;
		left: -15px;
	}

	.block-category-item.large .hide-link {
		position: absolute;
		top: -15px;
		right: -15px;
		bottom: -15px;
		left: -15px;
	}

	/* Large banner text styles same as small on mobile */
	.block-category-item.large .text-wrapper {
		padding: 15px;
	}

	.block-category-item.large .text-wrapper .link {
		padding-bottom: 4px;
		font-size: 11px;
		letter-spacing: 1.5px;
		border-bottom-width: 1.5px;
	}

	.block-category-item.large .text-wrapper .text-box {
		margin-bottom: 12px;
	}

	.block-category-item.large .text-wrapper .text-box .title {
		font-size: 20px;
		margin-bottom: 12px;
		margin-top: 10px;
	}

	.block-category-item.large .text-wrapper .text-box .descr {
		font-size: 11px;
	}

	.block-category-item.large .text-wrapper .btn {
		width: 78px;
		height: 27px;
	}

	.block-category-item.large .text-wrapper .btn .text {
		font-size: 12px;
	}
}

/* === Tablet Styles (749px - 1249px) === */
@media only screen and (min-width: 749px) and (max-width: 1249px) {
	.block-category-container {
		box-sizing: border-box;
		padding: 0 20px;
	}

	.block-category-wrapper {
		grid-row-gap: 10px;
		grid-column-gap: 10px;
		grid-auto-rows: 18vw;
	}

	.block-category-item .text-wrapper .link {
		padding-bottom: 4px;
		font-size: 11px;
	}

	.block-category-item .text-wrapper .btn {
		width: 70px;
		height: 22px;
		min-height: 22px;
	}

	.block-category-item .text-wrapper .btn .text {
		font-size: 12px;
	}

	.block-category-item .text-wrapper .text-box {
		margin-bottom: 15px;
	}

	.block-category-item .text-wrapper .text-box .title {
		margin-top: 15px;
		font-size: 17px;
	}

	.block-category-item .descr {
		display: none;
	}

	.block-category-item.large .text-wrapper {
		padding: 35px 30px;
	}
}

/* === Desktop Styles (>= 749px) - Grid Layout === */
@media only screen and (min-width: 749px) {
	.block-category-wrapper {
		width: 100%;
		display: grid;
		box-sizing: border-box;
		grid-template-columns: repeat(4, 1fr);
	}
}

/* === Desktop Styles (>= 1250px) === */
@media only screen and (min-width: 1250px) {
	.only-m {
		display: none !important;
	}

	.block-category-wrapper {
		grid-auto-rows: 16vw;
		padding: 30px;
		grid-row-gap: 15px;
		grid-column-gap: 15px;
	}

	/* Grid Columns */
	.block-category-wrapper .col-2 {
		grid-column-start: 2;
		grid-column-end: 4;
		grid-row-start: 1;
		grid-row-end: 3;
	}

	.block-category-wrapper .col-1-1 {
		grid-column-start: 1;
		grid-column-end: 2;
		grid-row-start: 1;
		grid-row-end: 2;
	}

	.block-category-wrapper .col-1-2 {
		grid-column-start: 1;
		grid-column-end: 2;
		grid-row-start: 2;
		grid-row-end: 2;
	}

	.block-category-wrapper .col-2-1 {
		grid-column-start: 4;
		grid-column-end: 5;
		grid-row-start: 1;
		grid-row-end: 2;
	}

	.block-category-wrapper .col-2-2 {
		grid-column-start: 4;
		grid-column-end: 5;
		grid-row-start: 2;
		grid-row-end: 3;
	}

	/* Hover Effects */
	.block-category-item:hover .link {
		opacity: 1 !important;
	}

	.block-category-item:hover .btn,
	.block-category-item:hover .link,
	.block-category-item:hover .text-box {
		transform: translateY(0) !important;
	}

	.block-category-item:hover .btn {
		transition: background-color .15s ease-out, transform .15s ease-out .1s;
	}

	.block-category-item:hover .img-box .img {
		transform: scale(1.1);
	}

	.block-category-item:hover .img-box .img:before {
		opacity: 1;
	}

	/* Text Wrapper Desktop */
	.block-category-item .text-block .hide-link {
		position: absolute;
		top: -25px;
		right: -20px;
		bottom: -25px;
		left: -20px;
	}

	.block-category-item .text-wrapper {
		padding: 25px 20px;
	}

	.block-category-item .text-wrapper .link {
		padding-bottom: 8px;
		opacity: 0;
		font-size: 14px;
		transform: translateY(-120px);
	}

	.block-category-item .text-wrapper .link:before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -1px;
		display: block;
		height: 1.5px;
		background-color: var(--primary-color);
		max-width: 0;
		transition: max-width .15s ease-out;
	}

	.block-category-item .text-wrapper .link:hover {
		color: var(--primary-color);
	}

	.block-category-item .text-wrapper .link:hover:before {
		max-width: 100%;
	}

	.block-category-item .text-wrapper .btn {
		width: 92px;
		height: 32px;
		transform: translateY(57px);
	}

	.block-category-item .text-wrapper .btn:hover {
		background-color: #242323;
	}

	.block-category-item .text-wrapper .btn:hover .text {
		color: #fff;
	}

	.block-category-item .text-wrapper .btn .text {
		font-size: 14px;
	}

	.block-category-item .text-wrapper .text-box {
		margin-bottom: 15px;
		transform: translateY(35px);
	}

	.block-category-item .text-wrapper .text-box .title {
		margin-top: 10px;
		margin-bottom: 10px;
		font-size: 20px;
	}

	.block-category-item .text-wrapper .text-box .descr {
		font-size: 14px;
	}

	/* Large Item Desktop */
	.block-category-item.large .text-wrapper {
		padding: 50px 70px;
	}

	.block-category-item.large .text-wrapper .text-box {
		margin-bottom: 40px;
		transform: translateY(110px);
	}

	.block-category-item.large .text-wrapper .link {
		font-size: 24px;
		transform: translateY(-330px);
		border-bottom: 3px solid #fff;
		padding-bottom: 8px;
		letter-spacing: 3.5px;
	}

	.block-category-item.large .text-wrapper .link:before {
		height: 3px;
		bottom: -3px;
	}

	.block-category-item.large .text-wrapper .title {
		margin-top: 20px;
		font-size: 38px;
	}

	.block-category-item.large .text-wrapper .descr {
		font-size: 18px;
	}

	.block-category-item.large .text-wrapper .btn {
		width: 145px;
		height: 60px;
		transform: translateY(110px);
	}

	.block-category-item.large .text-wrapper .btn .text {
		font-size: 21px;
	}

	.block-category-item.large .hide-link {
		position: absolute;
		top: -50px;
		right: -70px;
		bottom: -50px;
		left: -70px;
	}
}

/* === Large Desktop (>= 1400px) === */
@media only screen and (min-width: 1400px) {
	.block-category-wrapper {
		grid-auto-rows: 15vw;
		grid-row-gap: 30px;
		grid-column-gap: 30px;
	}

	.block-category-item .text-block .hide-link {
		position: absolute;
		top: -25px;
		right: -30px;
		bottom: -25px;
		left: -30px;
	}

	.block-category-item .text-wrapper {
		padding: 25px 30px;
	}

	.block-category-item .text-wrapper .text-box {
		margin-bottom: 20px;
	}

	.block-category-item .text-wrapper .text-box .title {
		font-size: 26px;
	}

	.block-category-item .text-wrapper .text-box .descr {
		letter-spacing: -.2px;
		font-size: 16px;
		box-sizing: border-box;
	}

	.block-category-item.large .text-wrapper .title {
		font-size: 38px;
	}
}

/* === Extra Large Desktop (>= 1600px) === */
@media only screen and (min-width: 1600px) {
	.block-category-wrapper {
		grid-auto-rows: 280px;
	}

	.block-category-item .text-wrapper .text-box .descr {
		padding-right: 40px;
	}
}

/* === Hide/Show Mobile Classes === */
@media only screen and (max-width: 1249px) {
	.hide-m {
		display: none !important;
	}
}
