.main-category {
  background: var(--color-white);
}

.c-page {
  --c-breadcrumb-h: 6.375rem;
  padding-top: calc(var(--header-h) + 2.75rem);
  padding-bottom: 6.25rem;
}

.c-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  font-family: "MiSans VF", "PingFang SC", sans-serif;
  font-size: var(--font-16);
  line-height: var(--font-22);
}
.c-breadcrumb__link {
  color: var(--color-text-link);
  transition: color var(--duration-fast) var(--easing);
}
.c-breadcrumb__link:hover {
  color: var(--color-primary);
}
.c-breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: rgb(175, 181, 185);
}
.c-breadcrumb__sep svg {
  display: block;
  width: 0.4375rem;
  height: auto;
}
.c-breadcrumb__current {
  color: var(--color-text);
  font-weight: 500;
}

.c-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 23.3125rem) minmax(0, 1fr);
  gap: 3.5625rem;
  align-items: start;
}

.c-sidebar {
  align-self: start;
}
.c-sidebar__list {
  margin: 0;
  padding: 0;
  padding-right: 0.25rem;
  list-style: none;
}
.c-sidebar__item.is-active .c-sidebar__trigger {
  color: var(--color-primary);
}
.c-sidebar__item.is-active .c-sidebar__subs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.c-sidebar__item:not(.is-active) .c-sidebar__trigger {
  border-bottom: 1px solid rgba(46, 53, 58, 0.1);
}
.c-sidebar__item:first-child:not(.is-active) .c-sidebar__trigger, .c-sidebar__item.is-active + .c-sidebar__item .c-sidebar__trigger {
  border-top: 1px solid rgba(46, 53, 58, 0.1);
}
.c-sidebar__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: "MiSans VF", "PingFang SC", sans-serif;
  font-size: var(--font-20);
  font-weight: 400;
  line-height: var(--font-28);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast) var(--easing);
}
.c-sidebar__trigger > span:first-child {
  flex: 1;
  min-width: 0;
}
.c-sidebar__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  overflow: visible;
  color: rgb(175, 181, 185);
  transform: rotate(90deg);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.c-sidebar__chevron svg {
  display: block;
  width: 0.5rem;
  height: auto;
  overflow: visible;
}
.c-sidebar__item.is-active .c-sidebar__chevron {
  transform: rotate(-90deg);
  color: var(--color-primary);
}
.c-sidebar__item.is-leaf .c-sidebar__trigger {
  cursor: pointer;
}
.c-sidebar__subs {
  display: none;
  margin: 0;
  padding: 2.5rem;
  padding-top: 0;
  list-style: none;
}
.c-sidebar__sub {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: "MiSans VF", "PingFang SC", sans-serif;
  font-size: var(--font-18);
  font-weight: 400;
  line-height: var(--font-24);
  cursor: pointer;
  transition: color var(--duration-fast) var(--easing);
}
.c-sidebar__sub.is-active, .c-sidebar__sub:hover {
  color: var(--color-primary);
}

.c-main {
  min-width: 0;
}

.c-panel[hidden] {
  display: none;
}

.c-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.c-grid[hidden] {
  display: none;
}

.s-product-card[hidden] {
  display: none;
}

@keyframes c-card-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.s-product-card.is-entering {
  animation: c-card-enter 0.35s ease both;
  animation-delay: var(--enter-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .s-product-card.is-entering {
    animation: none;
  }
}

.c-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26.25rem;
  border-radius: 1.25rem;
  background: rgba(175, 181, 185, 0.08);
}
.c-empty[hidden] {
  display: none;
}
.c-empty__text {
  margin: 0;
  color: var(--color-text-muted);
  font-family: "MiSans VF", "PingFang SC", sans-serif;
  font-size: var(--font-18);
  line-height: var(--font-26);
}

@media (min-width: 1440px) {
  .c-page {
    --c-sticky-top: calc(var(--header-h) + 44Px);
  }
  .site-header.is-scrolled ~ .main-category .c-page {
    --c-sticky-top: var(--header-h);
  }
  .c-sidebar {
    position: sticky;
    top: var(--c-sticky-top);
    max-height: calc(100svh - var(--c-sticky-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: top var(--duration-normal) var(--easing);
    scrollbar-width: thin;
  }
}
@media (max-width: 1439px) {
  .c-page {
    --c-breadcrumb-h: 84Px;
    --c-sticky-top: var(--header-h);
    padding-top: var(--header-h);
    padding-bottom: 72Px;
  }
  .c-breadcrumb {
    padding-top: 24Px;
    padding-bottom: 24Px;
    gap: 10Px;
    font-size: 15Px;
    line-height: 21Px;
  }
  .c-layout {
    grid-template-columns: minmax(200Px, 260Px) minmax(0, 1fr);
    gap: 24Px;
  }
  .c-sidebar {
    /* position: sticky; */
    top: var(--header-h);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .c-sidebar__item.is-active .c-sidebar__subs {
    gap: 28Px;
  }
  .c-sidebar__trigger {
    padding: 28Px 0;
    font-size: 18Px;
    line-height: 26Px;
  }
  .c-sidebar__subs {
    padding: 16Px;
    padding-top: 0;
  }
  .c-sidebar__subs li + li {
    margin-top: 0;
  }
  .c-sidebar__sub {
    font-size: 17Px;
    line-height: 24Px;
  }
  .c-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24Px;
  }
  .c-empty {
    min-height: 320Px;
    border-radius: 16Px;
  }
  .c-empty__text {
    font-size: 17Px;
    line-height: 24Px;
  }
}
@media (max-width: 576px) {
  .c-page {
    --c-breadcrumb-h: 68Px;
    padding-top: var(--header-h);
    padding-bottom: 48Px;
  }
  .c-breadcrumb {
    display: none;
  }
  .c-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .c-sidebar {
    max-height: unset;
    overflow: auto;
  }
  .c-sidebar__list {
    background-color: var(--color-white);
  }
  .c-sidebar__item:not(.is-active) {
    display: none;
  }
  .c-sidebar__item.is-active .c-sidebar__trigger {
    padding: 16Px 0;
    font-size: 16Px;
    line-height: 22Px;
    pointer-events: none;
    color: var(--color-text);
  }
  .c-sidebar__item.is-active .c-sidebar__subs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding: 0;
    border-bottom: 1Px solid rgb(223, 224, 226);
  }
  .c-sidebar__item.is-active .c-sidebar__subs::-webkit-scrollbar {
    display: none;
  }
  .c-sidebar__item.is-active .c-sidebar__subs li {
    position: relative;
    flex-shrink: 0;
  }
  .c-sidebar__trigger {
    gap: 8Px;
    padding: 16Px 0;
    font-size: 16Px;
    line-height: 22Px;
  }
  .c-sidebar__chevron {
    display: none;
  }
  .c-sidebar__subs {
    padding: 0;
  }
  .c-sidebar__subs li + li {
    margin-top: 0;
  }
  .c-sidebar__sub {
    padding: 8Px 12Px;
    font-size: 13Px;
    line-height: 20Px;
    text-align: center;
    white-space: nowrap;
  }
  .c-sidebar__sub.is-active {
    color: var(--color-primary);
    font-weight: 500;
  }
  .c-sidebar__sub.is-active::after {
    content: "";
    position: absolute;
    left: 12Px;
    right: 12Px;
    bottom: 0Px;
    height: 2Px;
    background: var(--color-primary);
  }
  .c-main {
    padding-top: 16Px;
  }
  .c-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16Px;
  }
  .s-product-card__link {
    padding: 16Px;
    gap: 12Px;
    border-radius: 12Px;
  }
  .s-product-card__foot {
    padding-top: 12Px;
    gap: 8Px;
  }
  .s-product-card__name {
    font-size: 14Px;
    line-height: 20Px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .s-product-card__arrow {
    width: 32Px;
    height: 32Px;
  }
  .s-product-card__arrow img {
    width: 10Px;
  }
  .c-empty {
    min-height: 200Px;
    border-radius: 12Px;
  }
  .c-empty__text {
    font-size: 14Px;
    line-height: 20Px;
  }
}