body {
  margin-top: 0px !important;
}

.no-scroll {
  overflow: hidden;
}

#products {
  max-width: 1680px;
  margin: 0 auto;
}

#products #filters {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 50px;
}

#products #filters ul {
  list-style: none;
  padding: 0px;
}

#products #filters > ul > li {
  display: inline-block;
  margin-right: 20px;
  cursor: pointer;
}

#products #filters > ul > li.hidden {
  display: none;
}

#products #filters > ul > li:last-child {
  margin: 0px;
}

#products #filters > ul > li label {
  font-weight: normal;
  font-size: 12px;
  line-height: 170%;
  text-align: center;
  letter-spacing: 0.05em;
}

#products #filters > ul > li img {
  width: 11px;
}

#products #filters > ul > li .children {
  display: none;
}
#products #filters > ul > li .children ul {
  margin: 11px;
  margin-right: 30px;
  padding: 0px;
  text-align: start;
}
#products #filters > ul > li .children ul > li {
  display: flex;
  width: 100%;
  align-items: center;
  font-weight: normal;
  margin-bottom: 4px;
}

#products #filters > ul > li .children ul > li label {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.05em;
}
#products #filters ul li .children {
  position: absolute;
  z-index: 10;
  background-color: #fff;
}

#products #filters > ul > li:hover .children {
  display: block;
  background-color: #fff;
  border: 1px solid;
}

#products #filters > ul > li .children li .checkbox {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("./../../assets/icons/rectangle.svg");
  background-size: 100%;
  margin-right: 5px;
  cursor: pointer;
}
#products #filters > ul > li .children li .checkbox.checked {
  background-image: url("./../../assets/icons/rectangle-cheked.svg");
}

#products #list {
  display: none;
  padding: 0px 46px;
  flex-wrap: wrap;
  padding-top: 80px;
}
#products #list.show {
  display: flex;
}
#products #list .product {
  flex: 0 0 calc(25% - 10px);
  padding: 0px 10px;
  text-decoration: none;
}
#products #list .product .images {
  position: relative;
  max-height: 580px;
  cursor: pointer;
}
#products #list .product .images .primary {
  width: 100%;
}
#products #list .product .images .secondary {
  width: 100%;
  display: none;
}

#products #list .product .images .favorite {
  position: absolute;
  top: 10px;
  right: 10px;
}
#products #list .product .images .favorite img {
  width: 100%;
}
#products #list .product .images .favorite .check {
  display: none;
  cursor: pointer;
}
#products #list .product .images .favorite .uncheck {
  cursor: pointer;
}

#products #list .product .images .favorite.isChecked .check {
  display: inline;
}
#products #list .product .images .favorite.isChecked .uncheck {
  display: none;
}

#products #list .product .details {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px auto 50px auto;
  cursor: pointer;
  color: #000;
}

#products #list .product .details h5 {
  font-weight: 600;
  font-size: 12px;
  line-height: 170%;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0px;
}

#products #list .product .details label {
  font-size: 12px;
  line-height: 170%;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

#products #list .product .details span {
  font-size: 12px;
  line-height: 170%;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
}

#products #paginator {
  text-align: center;
  margin-bottom: 75px;
  display: none;
  align-items: center;
  justify-content: center;
}
#products #paginator.show {
  display: flex;
}

#products #paginator img {
  cursor: pointer;
}
#products #paginator span {
  font-size: 15px;
  line-height: 22px;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 0px 40px;
}

#products .recienLlegado {
  position: absolute;
  left: 1px;
  top: -11px;
  z-index: 5;
}
#products .recienLlegado label {
  letter-spacing: 3px;
  color: #000;
  font-weight: 400;
  opacity: 0.7;
}

/**
  FILTER PANEL START
**/

.active-filters {
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 20px;
  margin-top: 120px;
  justify-content: flex-end;
  margin-right: 30px;
  padding: 0px 46px;
}
.active-filters__title {
  font-size: 12px;
  letter-spacing: 0.05em;
  margin: 0px;
  margin-bottom: 10px;
  flex: auto;
  display: none;
  width: calc(100% - 120px);
}

.active-filters__title.show {
  display: flex;
}

.active-filters .tags {
  display: flex;
  padding: 0px 12px;
  flex-wrap: wrap;
}

.active-filters .tag__item {
  color: #999999;
  margin-right: 15px;
  margin-bottom: 5px;
  position: relative;
  padding: 0 20px 0 5px;
  display: inline-block;
  margin: 0 15px 10px 0;
  line-height: 23px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.active-filters .tag__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(237, 237, 237, 0.5);
  border-radius: 3px;
  z-index: -1;
  bottom: -3px;
  top: -3px;
  left: -5px;
  right: -3px;
  transition: background 0.5s;
}

.active-filters .tag__item:hover:before {
  border-color: #323333;
}
.active-filters .tag__item:hover {
  color: #323333;
}
.active-filters .tag__item::after {
  content: "×";
  position: absolute;
  top: 0;
  right: 5px;
  color: #999999;
}

.active-filters .show-filters {
  width: 120px;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #ededed;
  padding: 0 10px;
  text-transform: none;
  margin-left: 10px;
  cursor: pointer;
  text-align: center;
  border-radius: 3px;
  transition: background-color 0.5s;
  letter-spacing: 0.125em;
  font-weight: 300;
}

.active-filters .show-filters img {
  width: 12px;
  height: 12px;
}

.active-filters .show-filters::after {
  content: "Filtrar";
}

.box-filter {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000001c;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 20px;
  overflow-y: auto;
  opacity: 0;
  height: 0;
}
.box-filter.show {
  opacity: 1;
  height: 100%;
}

.box-filter.show .left-filter {
  left: 0;
}

.left-filter {
  position: absolute;
  top: 0;
  left: -400px;
  width: 400px;
  height: 100%;
  background-color: #fff;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 4px 0px 10px 0px #ccc;
  padding: 0px 20px;
  overflow-y: auto;
  transition: all 0.25s;
}
.left-filter .actions-filter {
  margin-bottom: 30px;
  padding-top: 100px;
  width: 100%;
  text-align: right;
}

.left-filter .actions-filter button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #000000;
  margin: 0 auto;
  padding: 10px 16px;
  line-height: 22px;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.left-filter .filter {
  width: 100%;
}

.left-filter .filter .filter-title h3,
.left-filter .sub-filter .sub-filter-title h3 {
  position: relative;
  padding-left: 20px;
  cursor: pointer;
}
.left-filter .filter .filter-title h3::before,
.left-filter .sub-filter .sub-filter-title h3::before {
  content: " ";
  background-image: url("./../../assets/icons/arrow-new.svg");
  background-repeat: no-repeat;
  position: absolute;
  width: 16px;
  height: 20px;
  top: 0%;
  left: 0%;
  z-index: -1;
  rotate: 0deg;
  transition: rotate 0.5s;
  background-position: center;
}
.left-filter .filter .filter-title.active h3::before {
  rotate: 90deg;
}

.left-filter .filter .filter-title img {
  rotate: -90deg;
  transition: rotate 0.5s;
}
.left-filter .filter .filter-title.active img {
  rotate: 0deg;
}

.left-filter .filter .filter-content ul {
  padding: 0px;
  list-style: none;
}

.left-filter .filter .filter-content .first-level {
  padding-left: 16px;
}

.left-filter .filter-title h3 {
  display: inline-block;
  margin: 5px 0px;
  letter-spacing: 0.075em;
}

.left-filter .sub-filter {
  width: 100%;
  padding-left: 16px;
}

.left-filter .sub-filter .sub-filter-title img {
  rotate: -90deg;
  transition: rotate 0.5s;
}
.left-filter .sub-filter .sub-filter-title.active img {
  rotate: 0deg;
}

.left-filter .sub-filter .sub-filter-content {
  padding-left: 16px;
}

.left-filter .sub-filter .sub-filter-content,
.left-filter .filter .filter-content {
  transition: opacity 1s ease-out;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.left-filter .sub-filter .sub-filter-content.active,
.left-filter .filter .filter-content.active {
  opacity: 1;
  height: auto;
}

.left-filter .sub-filter .sub-filter-content ul {
  padding: 0px;
  list-style: none;
}

.left-filter .sub-filter-title h3 {
  display: inline-block;
  margin: 5px 0px;
  letter-spacing: 0.075em;
}

.left-filter .sub-filter .sub-filter-content ul li {
  cursor: pointer;
}
.left-filter .sub-filter .sub-filter-content ul li label {
  cursor: pointer;
}

.left-filter .sub-filter .sub-filter-content ul li:hover {
  text-decoration: underline;
}

.left-filter .sub-filter .sub-filter-content ul li .checkbox.checked {
  background-image: url("./../../assets/icons/rectangle-cheked.svg");
}

/**
  FILTER PANEL END
**/

@media (min-width: 724px) and (max-width: 1024px) {
  #products #list .product {
    flex: 0 0 calc(50% - 5px);
  }
}

@media (min-width: 320px) and (max-width: 724px) {
  #products #filters ul {
    margin: 0px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  #products #list {
    padding: 0px 10px;
  }
  #products #filters > ul > li {
    margin: 0px 10px;
  }
  #products #filters > ul > li:last-child {
    margin: 0px 10px;
  }
  #products #list .product {
    flex: 0 0 calc(50%);
  }

  #products #filters ul li .children {
    right: 0;
    left: 0;
  }

  #products #filters .ui-datepicker-inline.ui-datepicker {
    margin: 0 auto;
  }

  #products #list .product .details h5 {
    font-weight: 300;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: start;
  }
  #products #list .product .details label {
    font-weight: 500;
  }
  #products #list .product .details span {
    font-size: 10px;
  }
  #products #list .product .details {
    margin: 5px auto 40px auto;
    align-items: flex-start;
  }

  #products .recienLlegado {
    z-index: 2;
  }
  #products .recienLlegado label {
    font-size: 10px;
  }

  .left-filter {
    width: 80%;
  }
  .active-filters {
    margin: 120px 20px 20px 20px;
    flex-wrap: wrap;
    flex-direction: column-reverse;
    padding: 0px;
  }

  .active-filters .show-filters {
    width: 100px;
    margin: 0px 0px 10px 0px;
  }

  .active-filters__title {
    width: 100%;
  }
}
#empty {
  text-align: center;
  display: none;
  margin-bottom: 200px;
  margin-top: 100px;
}
#empty.show {
  display: block;
}

#loader {
  display: none;
  margin-bottom: 200px;
  margin-top: 100px;
}
#loader.show {
  display: block;
}
#loader .loader {
  border: 7px solid #f3f3f3;
  border-top: 7px solid #323333;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
