.explore-category__wrapper {
  position: relative;
  padding: var(--sizing-xl) var(--sizing-l);

  @media (width >= 768px) and (width < 1024px) {
    padding: 29px 0 15px var(--spacing-l);
  }

  @media (width >= 1024px) {
    margin: auto;
    padding: 50px 0 50px var(--container-margin);
  }

  .explore-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sizing-m);
    padding-right: var(--spacing-l);

    @media (width >= 768px) and (width < 1024px) {
      margin-bottom: var(--sizing-xl);
    }

    @media (width >= 1024px) {
      margin-bottom: var(--spacing-3xl);
      padding-right: var(--container-margin);
    }

    .explore-category__header-content {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: end;

      @media (width >=1024px) {
        justify-content: flex-start;
        align-items: baseline;
        gap: 16px;
      }

      .explore-category__title {
        color: var(--neutrals-sub-texts-paragraphs);
        font: var(--heading-regular);

        @media (width >= 768px) {
          font-size: var(--fs-xslarge);
          line-height: var(--lh-normal);
        }

        @media (width >= 1024px) {
          font-size: var(--fs-xxlarge);
        }
      }

      .explore-category__view-all {
        color: var(--primary-color);
        font-size: var(--fs-small);
        line-height: var(--lh-medium);
        letter-spacing: 0.14px;
        text-decoration: underline;
        padding: var(--spacing-none);
        word-break: keep-all;
        white-space: nowrap;
      }
    }
  }

  .explore-category__categories-wrapper {
    margin-bottom: var(--sizing-s);
    position: relative;
    overflow: hidden;
    margin-right: var(--spacing-l);

    @media (width >= 768px) and (width < 1024px) {
      margin-bottom: 14px;
    }

    @media (width >= 1024px) {
      margin-bottom: var(--sizing-xl);
      z-index: 2;
      margin-right: 56px;
    }

    .explore-category__categories {
      display: flex;
      overflow-x: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      position: relative;
      gap: var(--sizing-s);

      @media (width >= 768px) and (width < 1024px) {
        gap: 6px;
      }

      @media (width >= 1024px) {
        gap: var(--spacing-xsmall);
      }

      .explore-category__category {
        flex: 0 0 auto;
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--neutrals-sub-texts-paragraphs);
        font-size: var(--fs-xsmall);
        font-weight: var(--fw-700);
        cursor: pointer;
        padding: var(--spacing-xsmall) var(--spacing-none) var(--sizing-s);
        word-break: keep-all;
        white-space: nowrap;
        line-height: 16px;

        @media (width >= 768px) and (width < 1024px) {
          padding: 5px var(--spacing-xsmall) 14px;
          font-size: 11px;
          font-weight: var(--fw-600);
          line-height: 13px;
        }

        @media (width >= 1024px) {
          padding: var(--spacing-xsmall) var(--sizing-l) var(--sizing-xl);
          font-size: var(--fs-xmedium);
          line-height: var(--lh-large);
          font-weight: var(--fw-600);
          min-width: 108px;
        }
      }

      .explore-category__category--active {
        color: var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
        z-index: 1;
        position: relative;
        font-weight: var(--fw-700);

        @media (width >= 768px) and (width < 1024px) {
          font-size: var(--fs-small);
          font-weight: var(--fw-700);
        }
      }
    }
  }

  .explore-category__categories-wrapper::after {
    @media (width >= 768px) {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background-color: var(--neutrals-bars-unselected);
    }
  }

  .explore-category__subcategories-wrapper {
    width: 100%;

    @media (width >= 768px) {
      overflow: hidden;
    }

    .splide__arrows {
      position: absolute;
      top: 50px;
      z-index: 3;
      right: var(--container-margin);
    }

    .splide__track {
      overflow: visible;

      @media (width >= 768px) {
        padding-right: var(--spacing-l) !important;
      }

      @media (width >= 1024px) {
        padding-right: 56px !important;
      }
    }
  }

  .splide__list {
    display: flex;
    flex-direction: row;
    list-style: none;

    @media (width < 768px) {
      flex-wrap: wrap;
      gap: var(--sizing-m) var(--spacing-xsmall);
    }
  }

  .explore-category__card {
    position: relative;
    flex: 0 0 calc(33.3% - 5.3px);
    height: 103px;

    @media (width >= 768px) {
      width: 120px !important;
      height: 120px;
      transition: width 0.3s ease;
      flex: 0 0 auto;
    }

    @media (width >= 1024px) {
      width: 189px !important;
      height: 188px;
    }
  }

  .explore-category__card-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    color: var(--neutrals-sub-texts-paragraphs);

    .explore-category__card-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .explore-category__card-content {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: flex-end;
      color: var(--tertiary-color);
      font: var(--text-medium-regular);
      background: var(--card-bottom-overlay);
      padding: var(--spacing-xsmall) var(--sizing-s);
      justify-content: center;

      @media (width >= 768px) {
        padding: var(--sizing-s);
      }

      @media (width >= 1024px) {
        padding: var(--sizing-m);
      }

      .explore-category__card-label {
        font-size: var(--fs-small);
        font-weight: var(--fw-500);
        line-height: 19.104px;
        letter-spacing: 0.134px;
        text-align: center;

        @media (width >= 768px) {
          font-size: var(--fs-xsmall);
          font-weight: var(--fw-600);
          line-height: var(--lh-normal);
        }

        @media (width >= 1024px) {
          font-size: var(--fs-xmedium);
        }
      }
    }
  }

  .explore-category__explore-btn {
    display: block;
    width: 100%;
    padding: var(--spacing-xsmall) var(--sizing-xl);
    font: var(--text-medium-bold);
    line-height: var(--lh-medium);
    border: 1px solid var(--border-blue-button);
    cursor: pointer;
    text-align: center;
    height: 40px;
    letter-spacing: 0.14px;
    margin-top: var(--sizing-s);

    @media (width >= 768px) {
      display: none;
    }
  }

  .splide {
    visibility: visible !important;
  }
}

.explore-category__container {
  display: flex;

  .explore-category__container-category-static {
    position: relative;
    display: none;
    min-width: 263px;
    max-width: 263px;
    height: 120px;
    margin-right: var(--sizing-m);

    @media (width >= 768px) {
      display: flex;
    }

    @media (width >= 1024px) {
      margin-right: var(--sizing-xl);
      min-width: 402px;
      max-width: 402px;
      height: 188px;
    }

    .explore-category__card-content-wrapper {
      .explore-category__card-content {
        justify-content: space-between;

        .explore-category__card-label {
          letter-spacing: 0.6px;
        }

        .explore-category__card-view {
          display: flex;
          text-decoration: underline;
          padding: 0;
          word-break: keep-all;
          white-space: nowrap;
          font-size: 8.936px;
          font-style: normal;
          font-weight: var(--fw-400);
          line-height: 11.489px;

          @media (width >= 1024px) {
            font-size: var(--fs-small);
            line-height: var(--lh-small);
          }
        }
      }
    }
  }
}

.explore-category__card-content-wrapper:hover .explore-category__card-image {
  transform: scale(1.1);
}

.explore-category__wrapper.shimmer {
  @media (width >= 768px) {
    padding-bottom: 50px;
  }

  .explore-category__card {
    display: grid;
  }

  .explore-category__categories-wrapper::after {
    display: none;
  }

  .shimmer-tab {
    height: 40px;
    border: none;
    min-width: 103px;

    @media (width >= 768px) {
      width: 140px;
    }
  }

  .explore-category__subcategories-wrapper {
    padding-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: var(--spacing-2xs);

    @media (width >= 768px) {
      flex-wrap: nowrap;
      gap: var(--sizing-xl);
    }
  }
}
