/* popular categories section */

.card-title {
    display: inline-block;
    color: white;    
    font-weight: 600;
    text-transform: uppercase;
    background: #E44242f1;
    font-size: 13px;
    padding: 7px 7px 7px 6px;
}

@media only screen and (min-width: 420px) {
    .card-title {
        bottom: 14%;
        font-size: 14px;
        padding: 8px 12px 7px 11px;
    }
}

@media only screen and (min-width: 769px) {
    .card-title {
        bottom: 14%;
        font-size: 16px;
        padding: 8px 12px 7px 11px;
    }
}

@media only screen and (min-width: 1024px) {
    .card-title {
        bottom: 15%;
        font-size: 18px;
        padding: 10px 13px 9px 11px;
    }
}

.card-title:hover {
    background: rgba(20, 183, 233, 1.0);
}

.card-label {
  position: relative;
  display: inline-block;
  padding: 3px 8px 3px 8px;
  text-shadow: 0.5px 1px 0 rgba(0, 0, 0, 0.16);
  color: white;
  margin-left: 4px;
}

@media only screen and (min-width: 769px) {
  .card-label {
      padding: 4px 8px 4px 8px;
      margin-left: 6px;
  }
}

@media only screen and (min-width: 1024px) {
  .card-label {
      padding: 4px 9px 4px 9px;
      margin-left: 7px;
  }
}


.card-label:after {
    content: '';
    position: absolute;
    right: 0;
    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;
    overflow: hidden;
    /*display: inline-flex;*/
    justify-content: center;
    align-items: center;
}

.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);
}

.pop-cat-card__image:hover {
    transform: scale(1.1);
}

.pop-cat-card__labels {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 10%;
    pointer-events: none;
}


.pop-cat-card--background-7 {
    /*background: #EFEFED;*/
    border: 10px solid #FCFCFC;
}

.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%;
    }
}

@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%;
}

.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, .5);
    -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;
}

.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%;
    }
}

.popular-categories__item.var2 .pop-cat-card--background-7 {
border-radius: 6%;
background: #EFEFEF;
}

.popular-categories__item--kvadrat.var2 .pop-cat-card--background-7 {
border-radius: 3%;
}



.popular-categories__item.var2 a:hover .pop-cat-card__image {
    transform: scale(1);
    background: #568bbc;
}

.popular-categories__item.var2.purple a:hover .pop-cat-card__image {
    transform: scale(1);
    background: #E7CFE0;
}

.popular-categories__item.var2.yellow a:hover .pop-cat-card__image {
    transform: scale(1);
    background: #F1E67D;
}

.popular-categories__item.var2.blue a:hover .pop-cat-card__image {
    transform: scale(1);
    background: #C5D7E5;
}


.popular-categories__item.var2.orange a:hover .pop-cat-card__image {
    transform: scale(1);
    background: #F1BF8C;
}

.popular-categories__item.var2.green a:hover .pop-cat-card__image {
    transform: scale(1);
    background: #EAF4C4;
}


.popular-categories__item.var2 a:hover::before {
    opacity: 0 !important;
}	