@import url(../../components/products/nl-pdp-breadcrumbs.css);
@import url(../../components/common/nl-shop-product.css);

@keyframes wave-lines {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

@media screen and (min-width: 0px) {
  #catalogue {
    padding-bottom: var(--section-padding);
  }

  #catalogue .container-top {
    display: flex;
    justify-content: space-between;
    padding: var(--margin-s) var(--page-padding);
    border-bottom: 1px var(--color-pearl) solid;
    position: sticky;
    position: -webkit-sticky;
    left: 0;
    top: var(--nav-height);
    z-index: 2;
    background-color: #fff;
    transition: var(--default-transition);

  }

  #catalogue .container-top .open-filter {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  #catalogue .container-top .open-filter img {
    width: 14px;
  }

  #catalogue .container-top .filter-sortby {
    display: none;
  }

  #catalogue .wrapper-left {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    transition: var(--default-transition);
    z-index: 5;
    opacity: 0;
    visibility: hidden;
  }

  #catalogue .wrapper-left.active {
    opacity: 1;
    visibility: visible;
  }

  #catalogue .wrapper-left .popup-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 0;
  }

  #filter-box {
    position: relative;
    width: 320px;
    height: 100%;
    background-color: #fff;
    transform: translateX(100%);
    transition: var(--default-transition);
  }

  #catalogue .wrapper-left.active #filter-box {
    transform: translateX(0%);
  }

  form#filter-box label {
    font-size: var(--font-body-sml);
    line-height: 22px;
  }

  #filter-box .filter-top {
    display: flex;
    justify-content: space-between;
    padding: var(--margin-s) 20px;
    border-bottom: 4px var(--color-pearl) solid;
  }

  #filter-box .item .btn-reset,
  #filter-box .filter-top .btn-reset {
    width: fit-content;
    padding: 0 16px;
    line-height: 30px;
    border-radius: 5px;
    background-color: var(--color-pearl);
    border-color: var(--color-pearl);
    opacity: 0;
    visibility: hidden;
    transition: var(--default-transition)
  }

  #filter-box.show-reset .filter-top .btn-reset {
    opacity: 1;
    visibility: visible
  }

  #filter-box .item .btn-reset {
    display: none;
  }

  #filter-box .filter-top .close-filter {
    position: relative;
    width: 30px;
    height: 30px;
    background-color: var(--color-pearl);
    cursor: pointer;
    border-radius: 50%;
  }

  #filter-box .filter-top .close-filter div {
    position: absolute;
    width: 20px;
    height: 1px;
    background: var(--color-peppercorn);
    left: 0;
    right: 0;
    top: 49%;
    margin: 0 auto
  }

  #filter-box .filter-top .close-filter div:first-child {
    transform: rotate(45deg)
  }

  #filter-box .filter-top .close-filter div:last-child {
    transform: rotate(-45deg)
  }

  #filter-box .filter-bottom {
    padding: 8px 20px;
    box-shadow: 0 -4px 20px -14px rgb(0 0 0 / 30%);
  }

  #filter-box .filter-lists {
    height: calc(100% - 120px);
    overflow-y: auto;
  }

  #filter-box .item {
    position: relative;
    display: grid;
    gap: 16px;
    padding: var(--margin-m) 24px;
    border-top: 4px var(--color-pearl) solid;
  }

  #filter-box .title {
    position: relative;
    font-size: var(--font-body-reg);
    line-height: var(--font-body-reg-line-height);
    font-weight: 700;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #filter-box .title .arrow {
    width: 14px;
    height: 2px;
    margin: 0 1px;
    background-color: var(--color-peppercorn);
  }

  #filter-box .title .arrow::after {
    content: '';
    display: block;
    width: 14px;
    height: 1px;
    background-color: var(--color-peppercorn);
    transform: rotate(90deg) translate(1px, 0);
    transition: all .2s;
  }

  #filter-box .entry.active .title .arrow::after {
    transform: rotate(0) translate(0, 0);
  }

  #filter-box .subtitle {
    margin-bottom: 8px;
    font-size: var(--font-body-sml);
    line-height: var(--font-body-sml-line-height);
    font-weight: 700;
    color: var(--color-marble);
  }

  #filter-box .first-ul {
    display: grid;
    gap: 4px;
  }

  #filter-box .type .first-ul {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: var(--default-transition);
  }

  #filter-box .type .entry.active .first-ul {
    animation-name: nl-footer-fade-down;
    animation-fill-mode: forwards;
    animation-duration: .35s;
    margin-bottom: var(--margin-s);
  }

  .wrapper-right .nl-shop-product ul.skeleton {
    display: none;
  }

  .wrapper-right .nl-shop-product ul.skeleton .product-img {
    aspect-ratio: 1/1;
    border-radius: var(--border-radius);
    background: linear-gradient(to right, rgba(248, 248, 248, 1) 8%, rgba(230, 230, 230, 0.7) 18%, rgba(248, 248, 248, 1) 33%);
    background-size: 932px 100px;
    animation: wave-lines 2s infinite ease-out;
  }

  .wrapper-right .nl-shop-product ul.skeleton .product-title {
    height: 18px;
    width: 100%;
    margin-top: var(--margin-xs);
    border-radius: 2px;
    background: linear-gradient(to right, rgba(248, 248, 248, 1) 8%, rgba(230, 230, 230, 0.7) 18%, rgba(248, 248, 248, 1) 33%);
    background-size: 932px 100px;
    animation: wave-lines 2s infinite ease-out;
  }

  .container.loading .wrapper-right .nl-shop-product ul.all-products {
    display: none;
  }
  .container.loading .wrapper-right .nl-shop-product ul.skeleton {
    display: grid;
  }
}

@media screen and (min-width: 768px) {
  #filter-box .filter-bottom .btn {
    width: 100%;
  }
}

@media screen and (min-width: 1200px) {
  #catalogue .container-top .filter-sortby {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: var(--font-body-sml);
    line-height: var(--font-body-sml-line-height);
  }

  #catalogue .container-top .filter-sortby select {
    padding: 0 20px 0 0;
    border: none;
    background-position: right 0 center;
    background-size: 12px;
    box-sizing: border-box;
    font-size: var(--font-body-sml);
    line-height: var(--font-body-sml-line-height);
  }

  #catalogue .container-top .filter-sortby select:focus {
    box-shadow: none
  }

  #catalogue .container-main {
    display: grid;
    gap: 52px;
    grid-template-columns: 230px 1fr;
  }

  #catalogue .wrapper-left.active,
  #catalogue .wrapper-left {
    position: initial;
    z-index: 0;
    opacity: 1;
    visibility: visible;
  }

  #catalogue .wrapper-left .popup-overlay {
    display: none;
  }

  #filter-box {
    width: 100%;
    height: auto;
    transform: translateX(0%);
  }

  #filter-box.active {
    display: block;
  }

  #filter-box .filter-lists {
    height: calc(100vh - 105px);
    position: sticky;
    position: -webkit-sticky;
    top: calc(var(--nav-height) + 46px);
    transition: var(--default-transition);
  }

  #filter-box .filter-lists::-webkit-scrollbar {
    width: 4px;
  }

  #filter-box .filter-lists::-webkit-scrollbar-track {
    background: var(--color-pearl);
  }

  #filter-box .filter-lists::-webkit-scrollbar-thumb,
  #filter-box .filter-lists::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray);
  }

  #filter-box .filter-top {
    display: none;
  }

  #catalogue .container-top .open-filter,
  #filter-box .item.sortby,
  #filter-box .filter-bottom {
    display: none;
  }

  #filter-box .item {
    padding: var(--margin-xxm) 0;
    border-top: 1px var(--color-marble) solid;
  }

  #filter-box .item:nth-child(1) {
    padding-top: var(--margin-m);
    border-top: none;
  }

  #filter-box .item .btn-reset {
    position: absolute;
    top: 8px;
    right: 4px;
    display: block;
  }

  #filter-box.show-reset .item .btn-reset {
    opacity: 1;
    visibility: visible;
  }

  #catalogue .nl-shop-product ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .wrapper-left .skeleton {
    display: none;
    width: 100%;
  }

  .wrapper-left .skeleton .item {
    display: grid;
    gap: 16px;
    padding: var(--margin-xxm) 0;
    border-top: 1px var(--color-marble) solid;
  }

  .wrapper-left .skeleton .item.type {
    gap: 0;
  }

  .wrapper-left .skeleton .item:nth-child(1) {
    padding-top: var(--margin-m);
    border-top: none;
  }

  .wrapper-left .skeleton .entry {
    display: grid;
    gap: 4px;
  }

  .wrapper-left .skeleton .entry:not(:first-child) {
    margin-top: var(--grid-s);
  }

  .wrapper-left .skeleton .title {
    height: 28px;
    width: 60%;
    margin-bottom: 8px;
    border-radius: 2px;
    background: linear-gradient(to right, rgba(248, 248, 248, 1) 8%, rgba(230, 230, 230, 0.7) 18%, rgba(248, 248, 248, 1) 33%);
    background-size: 932px 100px;
    animation: wave-lines 2s infinite ease-out;
  }

  .wrapper-left .skeleton .subtitle {
    margin-bottom: 4px;
    height: 22px;
    width: 40%;
    border-radius: 2px;
    background: linear-gradient(to right, rgba(248, 248, 248, 1) 8%, rgba(230, 230, 230, 0.7) 18%, rgba(248, 248, 248, 1) 33%);
    background-size: 932px 100px;
    animation: wave-lines 2s infinite ease-out;
  }

  .wrapper-left .skeleton .line {
    height: 22px;
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(to right, rgba(248, 248, 248, 1) 8%, rgba(230, 230, 230, 0.7) 18%, rgba(248, 248, 248, 1) 33%);
    background-size: 932px 100px;
    animation: wave-lines 2s infinite ease-out;
  }

  .wrapper-right .nl-shop-product ul.skeleton li:last-child {
    display: none;
  }


  .container.loading .wrapper-left #filter-box {
    display: none;
  }

  .container.loading .wrapper-left .skeleton {
    display: block;
  }
}

@media screen and (min-width: 1440px) {}