.filters-product {
position: relative;
}
@media (min-width: 768px) {
.filters-product {
margin-bottom: 4rem;
}
}
.filters-product .wrapper {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4rem;
}
.filters-product .open-filters {
font-family: "Inter Bold";
text-transform: uppercase;
letter-spacing: 1px;
border: 1px solid;
padding: 6px 20px;
display: inline-block;
font-size: 1.6rem;
transition: all 0.4s ease;
cursor: pointer;
}
@media (max-width: 767px) {
.filters-product .open-filters {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 2;
border: 0;
background-color: var(--data-bg-color, #000);
color: #fff;
text-align: center;
padding: 8px 0 calc(8px + env(safe-area-inset-bottom) / 2);
}
}
@media (min-width: 768px) {
.filters-product .open-filters:hover {
background-color: #000;
color: #fff;
border-color: #000;
}
}
.filters-product .actived {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 1rem 0;
transition: all 0.2s ease;
}
@media (max-width: 991px) {
.filters-product .actived {
width: 100%;
}
}
@media (max-width: 767px) {
.filters-product .actived {
margin-bottom: 4rem;
}
}
.filters-product .actived:not(.show) {
opacity: 0;
visibility: hidden;
height: 0;
}
@media (max-width: 991px) {
.filters-product .actived:not(.show) {
display: none;
}
}
@media (max-width: 767px) {
.filters-product .actived:not(.show) {
margin-bottom: 0;
}
}
.filters-product .actived .label {
margin-right: 4rem;
}
.filters-product .actived ul {
display: flex;
list-style: none;
padding: 0;
margin: 0;
gap: 0rem 4rem;
flex-wrap: wrap;
}
.filters-product .actived ul.ajax-loading {
opacity: 0.2;
pointer-events: none;
}
.filters-product .actived ul.ajax-loading::after {
content: none;
}
.filters-product .actived ul li {
display: flex;
align-items: center;
cursor: pointer;
}
.filters-product .actived ul li:hover {
text-decoration: underline;
}
.filters-product .actived ul li .name {
text-transform: uppercase;
}
.filters-product .actived ul li img {
height: 16px;
display: block;
margin-left: 1rem;
}
.filters-product .filters-hover {
background: #fff;
margin-top: 20px;
padding: 20px;
border: 1px solid;
position: absolute;
width: 100%;
z-index: 3;
box-shadow: 0 0 15px 0px rgba(0, 0, 0, 0.15);
transition: all 0.4s ease;
}
.filters-product .filters-hover:not(.show) {
opacity: 0;
visibility: hidden;
transform: translateY(-20px);
}
@media (max-width: 767px) {
.filters-product .filters-hover {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: 0;
border: 0;
display: flex;
overflow-x: hidden;
width: 100%;
padding: 0rem;
z-index: 5;
}
.filters-product .filters-hover:not(.show) {
opacity: 0;
visibility: hidden;
transform: scale(1.1);
}
}
.filters-product .filters-hover .close {
width: 16px;
height: 16px;
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}
@media (max-width: 767px) {
.filters-product .filters-hover .close {
top: unset;
bottom: 20px;
right: 20px;
width: 40px;
height: 40px;
background-color: #fff;
border-radius: 50%;
filter: invert(1);
padding: 10px;
}
}
.filters-product .filters-hover ul {
padding: 0;
margin: 0;
list-style: none;
-moz-column-count: 3;
column-count: 3;
-moz-column-gap: 20px;
column-gap: 20px;
}
@media (max-width: 991px) {
.filters-product .filters-hover ul {
-moz-column-count: 2;
column-count: 2;
}
}
@media (max-width: 767px) {
.filters-product .filters-hover ul {
margin: auto;
max-height: 100%;
overflow-y: auto;
text-align: center;
width: 100%;
padding: 2rem;
-moz-column-count: unset;
column-count: unset;
}
}
.filters-product .filters-hover ul li a {
text-decoration: none;
display: block;
text-transform: uppercase;
line-height: 4rem;
}
@media (max-width: 767px) {
.filters-product .filters-hover ul li a {
font-size: 1.8rem;
line-height: 4rem;
}
}
.filters-product .filters-hover ul li a::before {
content: "";
display: inline-block;
width: 20px;
height: 20px;
border: 1px solid #000;
vertical-align: middle;
position: relative;
top: -3px;
margin-right: 1rem;
transition: all 0.2s ease;
}
@media (max-width: 767px) {
.filters-product .filters-hover ul li a::before {
content: none;
}
}
.filters-product .filters-hover ul li a.active::before {
background-color: #000;
}
@media (max-width: 767px) {
.filters-product .filters-hover ul li a.active {
font-family: "Inter Bold";
}
}
.ajax-loading {
position: relative;
}
.ajax-loading::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
pointer-events: none;
opacity: 0.8;
background-color: #fff;
animation: opacity-animation 1.5s infinite;
}
.ajax-loading a {
pointer-events: none;
}
@keyframes opacity-animation {
0% {
opacity: 0.8;
}
50% {
opacity: 0.9;
}
100% {
opacity: 0.8;
}
}
@media (max-width: 767px) {
html.filter-product-open {
overflow: hidden;
}
}