/* ITOI mobile category page, based on the 23.5625rem design viewport. */
html,
body.itoi-category-body {
  height: 100%;
  background: #f4f4f4;
}

body.itoi-category-body,
body.itoi-category-body * {
  box-sizing: border-box;
  letter-spacing: 0;
}

body.itoi-category-body {
  overflow: hidden;
  color: #111;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

body.itoi-category-body > .itoi-category-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: 2.75rem;
  background: #fff;
}

body.itoi-category-body > .itoi-category-header .index-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: #fff;
}

.itoi-category-header h1 {
  margin: 0;
  color: #080808;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 2.75rem;
  text-align: center;
}

.itoi-category-page {
  position: fixed !important;
  top: 2.75rem !important;
  right: 0;
  bottom: 3.65rem !important;
  left: 0;
  display: flex;
  width: 100%;
  height: auto !important;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  background: #f4f4f4;
}

.itoi-category-page > .itoi-category-sidebar {
  float: none;
  flex: 0 0 6.05rem;
  width: 6.05rem;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.itoi-category-page > .itoi-category-sidebar::-webkit-scrollbar,
.itoi-category-page .category-nav-content::-webkit-scrollbar,
.itoi-category-page .shopex-control-content::-webkit-scrollbar {
  display: none;
}

.itoi-category-page .shopex-segmented-control {
  display: block;
  width: 100%;
  min-height: 100%;
  border: 0;
  background: #fff;
}

.itoi-category-page .shopex-segmented-control.shopex-segmented-control-inverted.shopex-segmented-control-vertical .shopex-control-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.5rem 0.6rem 0.5rem 0.9rem;
  overflow: visible;
  color: #1d1d1d;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.2rem;
  white-space: normal;
  text-align: left;
  border: 0;
  background: #fff;
}

.itoi-category-page .shopex-segmented-control.shopex-segmented-control-inverted.shopex-segmented-control-vertical .shopex-control-item.shopex-active {
  color: #111;
  font-weight: 600;
  border: 0;
  background: #f4f4f4;
}

.itoi-category-page .shopex-control-item.shopex-active::before {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.1rem;
  height: 1.25rem;
  border-radius: 0.05rem 0 0 0.05rem;
  background: #ff7139;
  transform: translateY(-50%);
  content: "";
}

.itoi-category-page > .category-nav-content {
  float: none;
  flex: 0 0 calc(100% - 6.05rem);
  width: calc(100% - 6.05rem);
  min-width: 0;
  height: 100%;
  padding: 1.75rem 0.5rem 2rem 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f4f4f4;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.itoi-category-page .shopex-control-content {
  display: none;
  width: 100%;
  min-height: 100%;
  overflow: visible;
}

.itoi-category-page .shopex-control-content.shopex-active {
  display: block;
}

.itoi-category-page .category-nav-group {
  margin: 0;
  padding: 0 0 2.05rem;
}

.itoi-category-page .category-nav-group:last-child {
  padding-bottom: 0.5rem;
}

.itoi-category-page .category-nav-group::after {
  display: none;
}

.itoi-category-page .category-nav-header {
  min-height: 1.25rem;
  padding: 0 0 1rem;
  color: #111;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.itoi-category-page .category-nav-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  padding: 0;
  column-gap: 0;
  row-gap: 1.7rem;
}

.itoi-category-page .category-nav-item {
  display: flex;
  float: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.48rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: #898989;
  font-size: 0.82rem;
  line-height: 1.05rem;
  white-space: normal;
  text-align: center;
  border: 0;
  background: transparent;
}

.itoi-category-page .category-nav-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.itoi-category-page .category-nav-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.16rem;
  object-fit: contain;
}

.itoi-category-page .category-nav-thumb .category-nav-image--placeholder {
  padding: 0.8rem;
  opacity: 0.45;
}

.itoi-category-page .category-nav-label {
  display: -webkit-box;
  width: 100%;
  min-height: 1.05rem;
  max-height: 2.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.itoi-category-body .navigation {
  z-index: 30;
  height: 3.65rem;
  background: #fff;
}

.itoi-category-body .navigation .nav-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 3.65rem;
  padding: 0.32rem 0 0.24rem;
  border-top: 0.0625rem solid #eeeeef;
  background: #fff;
}

.itoi-category-body .navigation .nav-group li {
  flex: 1 1 25%;
  min-width: 0;
  color: #34373c;
  line-height: 1;
  text-align: center;
}

.itoi-category-body .navigation .nav-group li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-height: 3rem;
  color: inherit;
}

.itoi-category-body .navigation .nav-group li.active,
.itoi-category-body .navigation .nav-group li.active a {
  color: #ff7139;
}

.itoi-category-body .navigation .bbc-icon {
  display: block;
  height: 1.55rem;
  font-size: 1.48rem;
  line-height: 1.55rem;
}

.itoi-category-body .navigation span {
  display: block;
  overflow: hidden;
  font-size: 0.66rem;
  line-height: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (min-width: 48rem) {
  body.itoi-category-body > .itoi-category-header,
  .itoi-category-page,
  .itoi-category-body .navigation {
    right: auto;
    left: 50%;
    width: 23.5625rem;
    transform: translateX(-50%);
  }
}
