/* popular categories section */

.card-title {
    display: inline-block;
    /*color: white;    
	background: #E44242f1;*/
    font-weight: 600;    
    color: #333;
	background: #fffffff1;
    font-size: 13px;
    padding: 10px 25px;
	text-align: center;
	border-radius: 250px;
}

@media only screen and (min-width: 420px) {
    .card-title {
        bottom: 14%;
        font-size: 14px;
        padding: 10px 25px;
    }
}

@media only screen and (min-width: 769px) {
    .card-title {
        bottom: 14%;
        font-size: 16px;
        padding: 10px 25px;
    }
}

@media only screen and (min-width: 1024px) {
    .card-title {
        bottom: 15%;
        font-size: 18px;
        padding: 10px 20px;
    }
}

.card-title:hover {
    background: rgba(20, 183, 233, 1.0);
}

.card-label {
  position: relative;
  display: inline-block;
  padding: 4px 12px 5px 12px;
  text-shadow: 0.5px 1px 0 rgba(0, 0, 0, 0.16);
  color: white;
  margin-left: 4px;
  border-radius: 4px;
}

@media only screen and (min-width: 769px) {
  .card-label {
      padding: 6px 14px 7px 14px;
      margin-left: 6px;
  }
}

@media only screen and (min-width: 1024px) {
  .card-label {
      padding: 6px 14px 7px 14px;
      margin-left: 7px;
  }
}


.card-label:after {
    content: '';
    position: absolute;    
    width: 0;
    height: 0;
    border-style: solid;
    bottom: -2px;
    border-width: 0 3px 2px 0;
}

@media only screen and (min-width: 769px) {
    .card-label:after {
        bottom: -3px;
        border-width: 0 4px 3px 0;
    }
}

@media only screen and (min-width: 1024px) {
    .card-label:after {
        bottom: -4px;
        border-width: 0 4px 4px 0;
    }
}

.card-label--green {
    background-image: linear-gradient(to top, #82c305 0%, #b1e905 100%);
}

.card-label--green:after {
    border-color: transparent #83c405 transparent transparent;
}

.card-label--yellow {
    background-image: linear-gradient(to top, #c39405 0%, #e9c105 100%);
}

.card-label--yellow:after {
    border-color: transparent #c39405 transparent transparent;
}

.card-label--red {
    background-image: linear-gradient(to top, #c32805 0%, #e94505 100%);
}

.card-label--red:after {
    border-color: transparent #c32805 transparent transparent;
}

.card-labels {
    text-align: left;    
    font-size: 11px;
}

@media only screen and (min-width: 420px) {
    .card-labels {
        font-size: 12px;
    }
}

@media only screen and (min-width: 769px) {
    .card-labels {
        font-size: 13px;
    }
}

@media only screen and (min-width: 1024px) {
    .card-labels {
        font-size: 14px;
    }
}

.card-labels__item {
    margin-bottom: 4px;
}

@media only screen and (min-width: 769px) {
    .card-labels__item {
        margin-bottom: 5px;
    }
}

@media only screen and (min-width: 1024px) {
    .card-labels__item {
        margin-bottom: 7px;
    }
}

.card-labels__item:last-child {
    margin-bottom: 0;
}

.card-labels--product {
    font-size: 13px;
}

@media only screen and (min-width: 1024px) {
    .card-labels--product {
        font-size: 13px;
    }
}

.card-labels--product .card-label {
    padding-left: 8px;
    padding-right: 8px;
}

.pop-cat-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: #f9f9f9;*/
	background: transparent;	
    overflow: hidden;
    /*display: inline-flex;*/
    justify-content: center;
    align-items: center;
	border-radius: 20px;
}

.pop-cat-card__image {
    position: relative;
    z-index: 1;
    /*width: 100%;*/
    height: auto;
    display: block;
    transition: all 0.3s ease;

    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0);
	border-radius: 20px;
}

/*.pop-cat-card__image:hover {
    transform: scale(1.1);
}*/

.pop-cat-card__labels {
	z-index: 2; 
    position: absolute;           
    pointer-events: none;	
	margin: 0 auto;	
	bottom: 5%;
	left: 50%;
	transform: translate(-50%, -5%);	
}

/*.popular-categories__item  a {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	overflow: hidden;
}*/

.pop-cat-card--background-7 {    
	border: 10px solid transparent;
}

.popular-categories-wrap {
    max-width: 1024px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.popular-categories {
/ / text-align: justify;
    font-size: 0;
    padding: 0 2.6666667%;
}

@media only screen and (min-width: 600px) {
    .popular-categories {
        padding: 0 1.5625%;
    }
	.pop-cat-card__labels {	
		bottom: 0%;
		left: 0%;
		margin: 0 20px 20px 20px;	
		transform: none;
}	
}

@media only screen and (min-width: 1024px) {
    .popular-categories {
        padding: 0;
    }
	
}

.popular-categories:after {
    content: ' ';
    display: inline-block;
    width: 99%;
    height: 1px;
}

.popular-categories__item {
    display: inline-block;
    position: relative;
    width: 48.6%;
    height: 0;
    padding-bottom: 48%;
    margin: 0.7%;
	border-radius: 20px;
}

.popular-categories__item a {
    text-decoration: none;
}

.popular-categories__item--wide {
    width: 99%;
}

@media only screen and (min-width: 600px) {
    .popular-categories__item {
        width: 23.94%;
        padding-bottom: 23.991935%;
        margin: 0.45% 0.52% 0.45% 0.52%;
    }
}

.popular-categories__item a:before {
    position: absolute;
    content: "";
    opacity: 0;
    background-color: rgba(0, 0, 0, .3);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    -webkit-transition: opacity .8s cubic-bezier(.19, 1, .22, 1);
    transition: opacity .8s cubic-bezier(.19, 1, .22, 1);
    display: block;
    width: 100%;
    height: 100%;
    z-index: 2;
	border-radius: 20px;
}

.popular-categories__item a:hover:before {
    opacity: 1;
}

/*.popular-categories__item a:hover .pop-cat-card__image {
    transform: scale(1.1);
}*/

.popular-categories__item--wide {
}

@media only screen and (min-width: 600px) {
    .popular-categories__item--wide {
        width: 48.9%;
    }
}


.var2 .pop-cat-card__image {
	background: #EFEFEF;
}

.popular-categories__item--kvadrat.var2 .pop-cat-card--background-7 {
border-radius: 20px;
}


.popular-categories__item.var2 a:hover .pop-cat-card__image {
    border-radius: 20px;
    background: #568bbc;
}

.popular-categories__item.var2.purple a:hover .pop-cat-card__image {
    border-radius: 20px;
    background: #E7CFE0;
}

.popular-categories__item.var2.yellow a:hover .pop-cat-card__image {
    border-radius: 20px;
    background: #F1E67D;
}

.popular-categories__item.var2.blue a:hover .pop-cat-card__image {
    border-radius: 20px;
    background: #C5D7E5;
}


.popular-categories__item.var2.orange a:hover .pop-cat-card__image {
    border-radius: 20px;
    background: #F1BF8C;
}

.popular-categories__item.var2.green a:hover .pop-cat-card__image {
    border-radius: 20px;
    background: #EAF4C4;
}


.popular-categories__item.var2 a:hover::before {
	border-radius: 20px;
    opacity: 0 !important;
}	




.popular-categories {
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr
}

.popular-categories__item {
	width: 100%!important;
	padding-bottom: 0!important;
	margin: 0!important;
	height: 100%!important;
	-ms-flex-item-align: top;
	-ms-grid-row-align: top;
	align-self: top
}

.popular-categories-wrap {
	padding-top: 0!important;
	padding-bottom: 0!important;
	position: relative
}

.pop-cat-card__image {
	object-fit: cover;
	width: 100%!important;
	height: 100%!important
}

.popular-categories__item {
	float: left;
	align-self: flex-start
}

.popular-categories__item--wide {
	grid-column: auto/span 1;
	grid-row: auto/span 2;
	-ms-grid-column: auto/span 1;
	-ms-grid-row: auto/span 2
}

.popular-categories__item-wide-long {
	grid-column: auto/span 1;
	grid-row: auto/span 1;
	-ms-grid-column: auto/span 1;
	-ms-grid-row: auto/span 1
}

.popular-categories__item--kvadrat {
	grid-column: auto/span 2;
	grid-row: auto/span 2;
	-ms-grid-column: auto/span 2;
	-ms-grid-row: auto/span 2
}

.popular-categories__item--long {
	grid-column: auto/span 2;
	grid-row: auto/span 1;
	grid-column: auto/span 2;
	grid-row: auto/span 1
}


.pop-cat-card {
	position: relative!important;
	display: block
}

@media screen and (max-width:991px) {
	.popular-categories-wrap {
		padding-top: 0!important;
		padding-bottom: 0!important;
		position: relative!important
	}
	.popular-categories {
		position: static!important
	}
	.popular-categories {
		padding: 0 0!important
	}
}

@media screen and (max-width:575px) {
	.popular-categories {
		grid-template-columns: 1fr 1fr;
		-ms-grid-columns: 1fr 10px 1fr;
		-ms-grid-rows: 1fr 10px 1fr 10px 1fr 10px 1fr
	}
	.popular-categories .popular-categories__item {
		grid-row: auto/span 1!important;
		grid-column: auto/span 1!important;
		-ms-grid-row: auto/span 1!important;
		-ms-grid-column: auto/span 1!important
	}
}

@media screen and (-ms-high-contrast:active),
(-ms-high-contrast:none) {
	.popular-categories-wrap {
		display: none
	}
}