/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

.cms-home .page-main {
	max-width: 100%;
	padding: 0;
}

.cms-home .home-content {
	padding-left: 20px;
	padding-right: 20px;
}

/*
	Cms content - home page - categories content
-------------------------------------- */
.home-categories-content {
	background: #e0e1e5;
	margin-top: 72px;
	padding-bottom: 40px;
	position: relative;
	border-radius: 20px;
}

.home-categories-content .inner-content {
	align-items: center;
	display: flex;
	justify-content: center;
	padding-top: 26px;
}

.home-categories-title,
.home-brands-title {
	background-color: #e0e1e5;
	font-family: 'Montserrat Bold';
	font-size: 22px;
	margin: 0;
	left: 50%;
	padding: 11px 20px 0 20px;
	position: absolute;
	transform: translateX(-50%);
	text-transform: uppercase;
	top: -35px;
}

.home-categories-title:before,
.home-categories-title::after {
	content: '';
	display: block;
	height: 0;
	position: absolute;
	top: 0;
	width: 0;
}

.home-categories-title:before {
	border-right: 10px solid #e0e1e5;
	border-top: 35px solid transparent;
	left: -10px;
}

.home-categories-title::after {
	border-bottom: 35px solid transparent;
	border-left: 10px solid #e0e1e5;
	right: -10px;
}

.home-categories-content .home-categories-title span {
	color: #164bb6;
}

.home-categories-content .inner-content {
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.cms-home .inner-content {
	flex-direction: row !important;
	margin: 0 auto;
	max-width: 1380px;
}

.home-categories,
.home-categories > div {
	display: flex;
	flex-wrap: wrap;
}

.home-categories .home-categories-wrap {
	background: #fff;
	border-radius: 20px;
	display: block !important;
	flex: 1 0 calc(33.33% - 28px);
	margin-left: 14px;
	margin-top: 10px;
}

.home-categories .home-categories-wrap h2 {
	border-radius: 20px 20px 0 0;
}

.home-categories .home-categories-wrap:nth-child(3n + 1) {
	margin-left: 0;
}

.home-categories .home-categories-wrap h2 {
	background: #0a4d7e;
	color: #fff;
	font-family: 'Montserrat SemiBold';
	font-size: 18px;
	margin: 0 0 10px;
	padding: 10px 0;
	text-align: center;
	text-transform: uppercase;
}

.home-categories .home-categories-wrap h2 + a,
.home-categories .home-categories-wrap figure {
	display: inline-block;
	vertical-align: top;
	width: 48%;
	margin-bottom: 10px;
}

.home-categories .home-categories-list {
	display: inline-block;
	padding-left: 15px;
	padding-top: 20px;
	width: 48%;
	text-align: left;
	padding-bottom: 15px;
}

.home-categories .home-categories-list h3 {
	font-family: 'Montserrat';
	font-size: 14px;
	font-weight: normal;
	margin: 7px 0;
}

.home-categories .home-categories-list h3 a,
.home-brand-wrap h3 a {
	color: #000;
	transition: all .3s ease-in-out;
}

.home-categories .home-categories-list h3 a:hover,
.home-brand-wrap h3 a:hover {
	color: #e02e1f;
}

.home-categories-list .see-all,
.home-brand-wrap .see-all {
	background: #e02e1f;
	border-radius: 15px;
	color: #fff;
	display: inline-block;
	font-family: 'Montserrat Bold';
	margin-top: 20px;
	padding: 5px 15px;
	text-decoration: none;
	text-transform: uppercase;
	transition: all .3s ease-in-out;
}

.home-categories-list .see-all:hover,
.home-brand-wrap .see-all:hover {
	background: #0a4d7e;
}

/*
	Cms content - home page - brands content
-------------------------------------- */

.home-brands-content .inner-content {
	align-items: center;
	display: flex;
	justify-content: center;
	margin-bottom: 27px;
}

.home-brands-content {
	display: block !important;
	position: relative;
	margin-top: 72px;
}

.home-brands-title {
	background-color: #fff;
	border-top: 2px solid #e0e1e5;
	padding: 11px 20px 6px 30px;
	top: -41px;
}

.home-brands-title:before,
.home-brands-title::after {
	background-color: inherit;
	border-right: 2px solid #e0e1e5;
	content: '';
	height: 41px;
	position: absolute;
	top: -2px;
	transform: skewX(-15deg);
	-webkit-transform: skewX(-15deg);
	-moz-transform: skewX(-15deg);
	-ms-transform: skewX(-15deg);
	width: 10px;
	z-index: 0;
}

.home-brands-title:before {
	border-bottom: 2px solid #e0e1e5;
	left: -6px;
}

.home-brands-title::after {
	border-top: 2px solid #e0e1e5;
	right: -6px;
}

.home-brands {
	align-items: flex-start;
	border: 2px solid #e0e0e0;
	border-radius: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.home-brands > div {
	flex-wrap: wrap;
	justify-content: center;
}

.home-brand-wrap {
	flex: 1 0 25%;
	margin-top: 20px;
	text-align: center;
	width: auto !important;
}

.home-brand-wrap .brand-img,
.home-brand-wrap .brand-img > a {
	align-items: center;
	display: flex;
	height: 100px;
	justify-content: center;
	margin: 0 auto;
	width: 240px;
}

.home-brand-wrap .brand-img img {
	width: auto;
}

.home-brand-wrap h2 {
	color: #B66007;
	font-family: 'Montserrat SemiBold';
	font-size: 18px;
	margin-top: 10px;
	margin-bottom: 15px;
	text-transform: uppercase;
}

.home-brand-wrap h3 {
	font-family: 'Montserrat';
	font-size: 14px;
	font-weight: normal;
	margin: 8px 0;
}

.home-brand-wrap .see-all {
	background: #000;
	transition: all .3s ease-in-out;
}

.home-brands .svi-brendovi {
	width: auto !important;
}

.home-brands .svi-brendovi a {
	background: #e02e1f;
	display: inline-block;
	color: #fff;
	border-radius: 20px;
	font-family: 'Montserrat Bold';
	margin-top: 50px;
	margin-bottom: 25px;
	padding: 10px 20px;
	text-transform: uppercase;
	transition: all .3s ease-in-out;
}

.home-brands .svi-brendovi a:hover {
	background: #000;
	text-decoration: none;
}

/*
	Cms content - home page - promotions content
-------------------------------------- */
.home-promotions {
	display: flex;
	margin-bottom: 20px !important;
}

.home-promotions .home-promotions-text-block {
	background-image: -webkit-image-set(url('../images/promotions/promo_3.webp') 1x,url('../images/promotions/promo_32k.webp') 2x);
	border-radius: 20px;
	font-family: 'Montserrat';
	font-size: 14px;
	height: 100%;
	line-height: 23px;
	max-height: 428px;
	max-width: calc(904px - 0px);
	margin: 0 auto!important;
	padding: 28px 28px;
}

.home-promotions .home-promotions-text-block div:first-child {
	margin-bottom: 33px;
}

.home-promotions .home-promotions-text-block address strong {
	font-family: 'Montserrat Bold';
	font-size: 16px;
}

.home-promotions-images-block {
	flex: 1 0 67.5%;
	margin-bottom: 15px;
}

.home-promotions-images-block-second {
	margin-left: 7px;
}

.home-promotions-images-block-second,
.home-promotions-images-block-first {
	max-width: calc(50% - 7.5px);
	position: relative;
	width: auto !important;
}

.home-promotions-images-block-second img,
.home-promotions-images-block-first img {
	height: 100%;
	border-radius: 20px;
}

.home-promotions-images-block-first .promotion-block-content {
	align-items: center;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.home-promotions-images-block-second .promotion-block-content {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: flex-start;
	left: 0;
	padding-left: 40px;
	padding-top: 40px;
	position: absolute;
	right: 0;
	top: 0;
}

.home-promotions-images-block-second .promotion-block-content h2 {
	color: #fff;
	font-family: 'Montserrat Bold';
	font-size: 33px;
	font-weight: 600;
	margin: 0;
	text-transform: uppercase;
}


.home-promotions-images-block-second .promotion-block-content a,
.home-promotions-images-block-first .promotion-block-content a {
	background: #000;
	border-radius: 20px;
	color: #fff;
	display: inline-block;
	font-family: 'Montserrat Bold';
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 25px;
	padding: 10px 20px;
	text-transform: uppercase;
	transition: all .3s ease-in-out;
	text-decoration: none;
}

.home-promotions-images-block-second .promotion-block-content a:hover,
.home-promotions-images-block-first .promotion-block-content a:hover {
	background: #164bb6;
}

.home-promotions-images-block-first h2 {
	color: #fff;
	text-transform: uppercase;
}

.home-promotions-images-block-first .promotion-block-content a::after,
.home-promotions-images-block-second .promotion-block-content a::after {
	content: '';
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.home-promotions-images-block-first .promotion-block-content p,
.home-promotions-images-block-second .promotion-block-content p {
	color: #000;
	font-family: 'Montserrat Medium';
}

.home-promotions-images-block-second .promotion-block-content p {
	font-size: 18px;
	margin: 5px 0;
}

.home-promotions-images-block-first .promotion-block-content h2 {
	background-color: transparent;
	font-family: 'Montserrat Bold';
	font-size: 33px;
	margin: 0 0 10px;
}
 
/*
	Media query 1440px
-------------------------------------- */

@media only screen and (max-width: 1440px) {
	.inner-content {
		display: flex;
		flex-direction: column !important;
	}

	/* Cms content - home page - categories content */
	.home-categories-content {
		background: #e0e1e5;
		margin-top: 50px;
		padding-bottom: 30px;
		position: relative;
	}

	/* Cms content - home page - promotions content */
	.home-promotions .home-promotions-text-block {
		text-align: center;
		margin-top: 0;
	}
	
	.cms-home .inner-content {
		flex-direction: column !important;
	}
	
	.home-promotions-images-block > div {
		display: flex;
		justify-content: center;
	}

	.home-promotions-images-block-second {
		margin-left: 15px;
	}

	.home-promotions-images-block-second img, 
	.home-promotions-images-block-first img {
		height: auto;
	}

	.home-promotions .home-promotions-text-block div:first-child {
		margin-bottom: 15px;
	}
}

/*
	Media query 1240px
-------------------------------------- */

@media only screen and (max-width: 1240px) {
	/* Cms content - home page - categories content */
	.home-categories .home-categories-wrap {
		flex: 1 0 calc(50% - 28px);
	}

	.home-categories .home-categories-wrap:nth-child(3n + 1) {
		margin-left: 14px;
	}

	.home-categories .home-categories-wrap:nth-child(2n + 1) {
		margin-left: 0;
	}

	/* Cms content - home page - brands content */
	.home-brand-wrap {
		flex: 1 0 33%;
	}

	.home-brands .svi-brendovi {
		text-align: center;
		width: 100% !important;
	}
}

/*
	Media query max 1024px
-------------------------------------- */

@media only screen and (max-width: 1024px) {
	/* Cms content - home page - categories content */
	.home-categories .home-categories-wrap:nth-child(2n + 1) {
		margin-left: 0;
	}
}

/*
	Media query ... - 767px
-------------------------------------- */

@media only screen and (max-width: 767px) {
	/* Cms content - home page - categories content */
	.home-categories-title span,
	.home-brands-title span {
		display: none;
	}

	.home-categories .home-categories-wrap:nth-child(3n + 1) {
		margin-left: 0;
	}

	.home-categories .home-categories-wrap {
		flex: 1 0 calc(100% - 0px);
		margin-left: 0;
	}

	/* Cms content - home page - promotions content */
	.home-promotions .home-promotions-text-block {
		padding: 30px 15px;
	}

	.home-promotions-images-block-first .promotion-block-content h2 {
		font-size: 28px;
	}

	.home-categories .home-categories-list h3 a,
	.home-brand-wrap h3 a {
		font-size: 15px;
		padding: 10px 0;
		display: block;
	}

	.home-categories .home-categories-list h3,
	.home-brand-wrap h3 {
		margin: 0;
	}
}

/*
	Media query 660px
-------------------------------------- */

@media only screen and (max-width: 660px) {
	/* Cms content - home page - categories content */
	.home-brands-title:before,
	.home-brands-title::after,
	.home-categories-title:before,
	.home-categories-title::after {
		display: none;
	}

	/* Cms content - home page - brands content */
	.home-brands-title {
		border: none;
		padding: 11px 20px 6px 20px;
	}
}

/*
	Media query 560px
-------------------------------------- */

@media only screen and (max-width: 560px) {
	.cms-home .home-content {
		padding-left: 10px;
		padding-right: 10px;
	}

	/* Cms content - home page - categories content */
	.home-categories-content {
		margin-top: 20px;
	}	

	.home-categories-content .inner-content {
		padding-top: 5px;
	}

	.home-categories-content .home-categories-title,
	.home-brands-content .home-brands-title {
		position: relative;
		text-align: center;
		top: 0;
	}

	.home-categories .home-categories-wrap {
		margin-top: 15px;
	}

	/* Cms content - home page - promotions content */
	.home-promotions .home-promotions-text-block {
		max-width: 100%;
		margin-top: 10px !important;
	}

	.home-promotions-images-block-second,
	.home-promotions-images-block-first,
	.home-promotions-images-block > div,
	.home-promotions-images-block-second img,
	.home-promotions-images-block-first img {
		width: 100%;
	}

	.home-promotions-images-block {
		margin-bottom: 0;
	}

	.home-promotions-images-block > div {
		align-items: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.home-promotions-images-block-second,
	.home-promotions-images-block-first {
		max-width: initial;
		width: 100% !important;
	}

	.home-promotions-images-block-second {
		margin-left: 0;
		margin-top: 10px;
	}
	
	.home-brands > div {
		padding-top: 15px;
	}

	.home-brands > div div {
		margin-bottom: 10px;
	}

	.home-brands-content {
		margin-top: 15px;
	}
}

/*
	Media query 460px
-------------------------------------- */

@media only screen and (max-width: 460px) {
	/* Cms content - home page - categories content */
	.home-categories-list .see-all,
	.home-brand-wrap .see-all {
		font-size: 12px;
		padding: 5px 10px;
		text-align: center;
	}

	/* Cms content - home page - promotions content */
	.home-promotions .home-promotions-text-block {
		max-height: none;
	}
	
	.home-categories-list .see-all {
		margin-bottom: 15px;
	}

	.home-brands > div div:not(:last-of-type) {
		margin: 15px;
	}

	.home-brand-wrap .brand-img, 
	.home-brand-wrap .brand-img > a {
		height: auto;
	}

	.home-brands .svi-brendovi a {
		margin: 0;
	}
}
