﻿.template-product-categories-php #primary .container {
    max-width: 1400px;
}
.template-product-categories-php .entry-content {
    max-width: 1100px;
    margin: 0 auto 1.5em;
}

.mobile-toggle {
    display: none;
}

.filter-sort-wrapper {
    margin-bottom: 2em;
}
/*.hide-filters .filter-sort-wrapper {
    display: none;
}*/
.hide-filters .filter-sort-wrapper .flexed {
    justify-content: flex-end;
}
#sort span,
.active-filter {
    display: inline-block;
}
.product-filters {
    flex-basis: 280px;
}
.products-list {
    flex-basis: calc(100% - 300px);
}
.hide-filters .products-list {
  flex-basis: 100%;
}
.products-list .loading {
    padding: 30px;
    margin: 40px auto;
    text-align: center;
}

.active-filter:not(:last-of-type){
    margin-right: 15px;
}
.active-filter a {
    font-size: 1rem;
    background: #C9E6DC;
    padding: 0.3em 2.75em 0.3em 1.5em;
    display: block;
    border-radius: 18px;
    color: #000;
    position: relative;
}
.active-filter a > i.fas {
    position: absolute;
    top: 50%;
    right: 0.75em;
    transform: translateY(-45%);
}
.active-filter a:hover,
.active-filter a:focus {
    background: var(--green);
    color: #FFF;
}
#sort span:not(:last-of-type) {
    margin-right: 8px;
}
#sort select {
    padding: 2px 10px;
}

.product-filter {
    margin-bottom: 1em;
}
.product-filter-title a {
    position: relative;
    display: block;
    padding: 15px 65px 15px 20px;
    border-radius: 10px 0px;
    color: #FFF;
    background: #008558;
    background: -moz-linear-gradient(left,  #008558 0%, #00432c 100%);
    background: -webkit-linear-gradient(left,  #008558 0%,#00432c 100%);
    background: linear-gradient(to right,  #008558 0%,#00432c 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#008558', endColorstr='#00432c',GradientType=1 );
    transition: all ease 0.3s;
}
.product-filter-title > a:after {
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.product-filter:not(.active) .product-filter-title > a:after {
    content: '\f0d7';
}
.product-filter.active .product-filter-title > a:after {
    content: '\f0d8';
}
.product-filter-title a:hover,
.product-filter-title a:focus {
    text-decoration: underline;
    color: #FFF;
}
.product-filter-options {
    padding: 10px;
    font-size: 1rem;
}
.product-filter-options input[type="text"],
.product-filter-options select {
    width: 100%;
}
.product-filter-options input[type="checkbox"] {
    margin-right: 5px;
}

.products-list .flexed {
    justify-content: flex-start;
}
.product {
    flex-basis: 23%;
    margin: 0 1% 1.5em;
    font-size: 0.9375rem;
}
.product a {
    color: #000;
    background: #FFF;
    display: block;
    height: 100%;
    padding-bottom: 60px;
    position: relative;
}
.page-section .product a:not(.button) {
    text-decoration: none;
}
.product a:hover,
.product a:focus {
}
.product a > span {
    display: block;
}
.product a .product-image {
    line-height: 0;
    margin-bottom: 10px;
    padding-top: 100%;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: all ease 0.5s;
}
.product a:hover,
.product a:focus {
    transform: translateY(-3px);
    box-shadow: 0px 3px 6px rgb(0 0 0 / 16%);
}
.product a:hover .product-image,
.product a:focus .product-image {
    background-size: 115%;
}
.product a .product-title {
    text-align: center;
    font-size: 1rem;
    font-family: lato, sans-serif;
    font-weight: 700;
    padding: 5px;
}
.product a .product-learn-more {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.product a .product-learn-more .lm-icon {
    position: absolute;
    right: 0;
    top: 0;
    background: var(--green);
    color: #FFF;
    height: 100%;
    padding: 20px 10px 0 30px;
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    z-index: 10;
}
.product a .detail-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 5px;
}
.product a .detail-row > span:first-of-type {
    flex-basis: 85px;
    font-weight: bold;
}
.product a .detail-row > span:nth-of-type(2) {
    flex-basis: calc(100% - 100px);
}
.product a .product-learn-more .lm-text {
    width: 0;
    display: block;
    text-align: center;
    color: #FFF;
    padding: 12px 0;
    text-decoration: underline;
    transition: width ease 0.3s;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 20;
}
@media (hover: hover) {
    .product a:hover .product-learn-more .lm-text,
    .product a:focus .product-learn-more .lm-text {
        width: 100%;
    }
}

@media screen and (max-width: 1260px){
    .product {
        flex-basis: 31%;
    }
}
@media screen and (max-width: 1100px){
    .product-filters {
        flex-basis: 225px;
    }
    .products-list {
        flex-basis: calc(100% - 250px);
    }
}
@media screen and (max-width: 1024px){
    .product {
        flex-basis: 47%;
    }
}
@media screen and (max-width: 960px){
    .filter-sort-wrapper > .flexed,
    .product-sub-categories > .flexed {
        display: block
    }
    #active-filters {
        margin-bottom: 1em;
    }
    .mobile-toggle {
        display: block;
        margin-bottom: 1em;
        text-align: center;
    }
    .products-list {
        margin-top: 1.5em;
    }
}
@media screen and (max-width: 600px){
    .products-list > .flexed {
        display: block;
    }
    .product {
        max-width: 500px;
        margin: 0 auto 2em;
    }
}