/* Tags styles */ 

.tag-block{
    padding: 0.6rem 2rem;
    font-size: 2.5rem !important;
    background: #E41B13!important;
    display: inline-block;
    color: #fff!important;
    font-size: 1rem !important;
    /* position: relative; */
    position: absolute;
    top: 1.5rem;
    z-index: 2;
    left: 0px;
}
.tag-block p{
    position: relative;
}
.tag-block p::before {
    display: block;
    content: "";
    position: absolute;
    right: -3.4rem;
    top: -0.6rem;
    border-top: 2.4em solid #E41B13;
    border-right: 1.5em solid transparent;
    /* background: url(/assets/red-label-triangle.svg) no-repeat; */
    z-index: 1;
    height: 34px;
    width: 27px;
    left: inherit;
}

.tag-abverkauf{
    padding: 0.6rem 2rem;
    font-size: 2.5rem !important;
    background: #808080!important;
    display: inline-block;
    color: #fff!important;
    font-size: 1rem !important;
    /* position: relative; */
    position: absolute;
    top: 1.5rem;
    z-index: 2;
    left: 0px;
}
.tag-abverkauf p{
    position: relative;
}
.tag-abverkauf p::before {
    display: block;
    content: "";
    position: absolute;
    right: -3.5rem;
    top: -0.6rem;
    border-top: 2.4em solid #808080;
    border-right: 1.5em solid transparent;
    /* background: url(/assets/red-label-triangle.svg) no-repeat; */
    z-index: 1;
    height: 34px;
    width: 27px;
    left: inherit;
}

/* Title section styles */

#product-category-list #product-search{
    position: relative;
}

.tag-block p::before {
    display: block;
    content: "";
    position: absolute;
    right: -3.5rem;
    top: -0.6rem;
    border-top: 2.4em solid #E41B13;
    border-right: 1.5em solid transparent;
    background: url(/assets/red-label-triangle.svg) no-repeat;
    z-index: 1;
    height: 36px;
    width: 27px;
    left: inherit;
  }

#product-category-list .title-block-section {
    text-transform: uppercase;
    color: #fff;
    font-size: 8.75rem;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #e2e2e2;
    font-weight: bold;
    position: absolute;
    right: 0rem;
    top: -8rem;
    box-sizing: border-box;
    z-index: -1;
}

@media screen and (max-width: 1400px) {
    #product-category-list-content {
        padding-right: var(--wp--style--root--padding-right)!important;
        padding-left: var(--wp--style--root--padding-left)!important;
    }
}

@media screen and (max-width: 1280px) {
    #product-category-list .title-block-section {
        font-size: 5.75rem;
        top: -5.3rem;
    }
}
@media screen and (max-width: 980px) {
    #product-category-list .title-block-section{
        font-size: 5.75rem;
        top: -5.2rem;
    }
    #product-search{
        margin-top: 6rem;
    }
}
@media screen and (max-width: 600px) {
    #product-category-list .title-block-section{
        font-size: 5rem;
        top: 12.2rem;
    }
}
@media screen and (max-width: 500px) {
    #product-category-list .title-block-section{
        font-size: 3.5rem;
        top: -3.2rem;
    }
    #product-search{
        margin-top: 4rem;
    }
}

/*Red line on subheaders*/

.product-category-list-content .red-line-subtitle img {
    margin-bottom: 0.3rem;
}

/*TO DO Search inputs and selector*/

@media screen and (max-width: 1320px) {
    .product-category-list-search{
        padding: 0px var(--wp--style--root--padding-left) 0px var(--wp--style--root--padding-right);
    }
}

#product-category-list-search .card-item{
    position: relative;
    width: 312px !important;
}
#product-category-list-search .card-item > .wp-block-group{
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    width: 100%;
}
  

.product-category-list-search input{
    box-shadow: #CCC 0px 0px 0px 1px;
    border-radius: 4px;
    width: calc(100% - 90px);
    margin-right: 16px;
    line-height: 32px;
    position: relative;
    top: -3px;
    background: #fff;
}

.product-category-list-search button{
    border-radius: 4px;
}

.product-category-list-search svg{
    fill: white;
    transform: rotate(270deg);
}

.product-category-list-search input:focus, .product-category-list-search textarea:focus{
    background:white!important;
}

/*Category block style*/

.card-items-container .card-item, .card-items-container .questions-box{
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

@media screen and (max-width: 992px) {
    .product-category-list-search:last-child>div{
        flex-wrap: wrap;
    }
    .product-category-list-search:last-child>div>div{
        flex-basis: 48%!important;
        /* padding-top: var(--wp--preset--spacing--2-rem)!important;
        padding-right: var(--wp--preset--spacing--3-rem)!important;
        padding-bottom: var(--wp--preset--spacing--2-rem)!important;
        padding-left: var(--wp--preset--spacing--3-rem)!important;
        min-height: 80px!important; */
    }
}

@media screen and (max-width: 769px) {
    .product-category-list-search:last-child>div>div{
        flex-basis: 48%!important;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }
    .product-category-list-search:last-child>div>div:last-child{
        flex-direction: column;
    }
    .product-category-list-search:last-child>div>div:last-child *{
        width: 100%;
        text-align: left;
    }
}

.product-category-list-search:last-child>div>div img{
    margin: 0 auto;
    display: block;
}


.product-category-list-search:last-child>div>div .wp-block-button:last-child .wp-block-button__link{
    margin-top: 4px;
}

.questions-box{
    background-image: url("../../assets/images/logo-protektor-grey-cutted.png");
    background-position: 90% bottom;
    background-repeat: no-repeat;
    background-size: 150px;
}

/*The second flex is to create a 2 column magic element. If it works, dont touch it*/

.product-category-list-search>div:last-child>div{
    flex: 1 0 23%;
}
.product-category-list-search>div:last-child>div:last-child{
    flex-basis: 48%;
}
.product-category-list-search>div:last-child>div:last-child .wp-block-buttons{
    margin-top: 7rem!important;
}

/*Last element responsive floats*/

.product-category-list .wp-block-button{
    flex-basis: 100%;
}

.product-category-list .wp-block-button .wp-block-button__link{
    justify-content: left;
}
@media screen and (max-width: 769px) {
    .product-category-list  .wp-block-buttons{
        margin-top:0px!important;
    }
}

/* Responsive behaviour */

@media screen and (max-width: 1380px) {
    #product-category-list-search .card-items-container {
        align-content: start;
        justify-content: start;
        align-items: start;
        max-width: 984px;
    }
    .product-category-list-search > div:last-child > div:last-child {
        flex-basis: 65%;
    }
    #product-category-list-search .card-item{
        flex: 1 0 31%;
    }
}

@media screen and (max-width: 1030px) {
    #product-category-list-search .card-items-container {
        max-width: 650px;
    }
}

@media screen and (max-width: 700px) {
    #product-category-list-search .card-items-container {
        max-width: 312px;
    }
    #product-category-list-search .card-item > .wp-block-group{
        padding-top: 0px !important;
    }
    .questions-box{
        background: transparent;
    }
}