/* Category layout: glowing mode switch and a clear subcategory menu. */
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle {
  position: relative;
  display: flex;
  box-sizing: border-box;
  order: 0;
  flex: 0 0 52px;
  width: calc(100% + 16px);
  height: 52px;
  margin: 0 -8px 16px;
  padding: 5px;
  gap: 6px;
  overflow: visible;
  border: 1px solid var(--community-line, #20242b12);
  border-radius: 15px;
  background: color-mix(in srgb, var(--ds-surface, #fff) 80%, transparent) !important;
  box-shadow: inset 0 1px 0 #ffffff80, 0 3px 12px #16161606;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .view-toggle-slider {
  display: block;
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 16px) / 2);
  height: auto;
  border-radius: 10px;
  background: linear-gradient(160deg, #292929 0%, #101010 55%, #050505 100%);
  box-shadow: inset 0 1px 0 #ffffff38, inset 0 0 0 1px #ffe4a33d,
    0 0 14px #f1cd6a45, 0 4px 10px #00000030;
  pointer-events: none;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle.ranking-selected .view-toggle-slider {
  transform: translateX(calc(100% + 6px));
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .toggle-btn {
  position: relative;
  z-index: 1;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent !important;
  box-shadow: none;
  color: var(--ds-muted, #8590a0);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color .24s ease, text-shadow .24s ease, transform .18s ease;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .toggle-btn.active {
  color: #fff;
  font-weight: 650;
  text-shadow: 0 0 8px #ffffff70;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .toggle-btn:active {
  transform: scale(.96);
}
.category-container[data-v-64370f3f] .view-toggle .toggle-btn.active uni-text {
  animation: category-mode-label-in .36s ease both;
}
@keyframes category-mode-label-in {
  from { opacity: .55; transform: translateY(3px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.category-container[data-v-64370f3f] .view-toggle .toggle-btn::before,
.category-container[data-v-64370f3f] .view-toggle .toggle-btn::after { content: none !important; }
.category-container[data-v-64370f3f] .view-toggle .toggle-btn:focus-visible { outline: 2px solid var(--ds-accent, #ffd400); outline-offset: -2px; }

/* Keep the selection marker left of the label, inside the sidebar's safe inset. */
html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-sidebar {
  padding-left: 8px;
  background: transparent !important;
  box-shadow: none;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-item,
html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-item.active {
  background: transparent !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-item.active::before {
  left: -4px;
  border-radius: 2px;
}
@media (max-width: 360px) {
  html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-item {
    padding-left: 2px;
    padding-right: 2px;
  }
}

/* Text ordering button matching the yellow pill reference. */
html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item .goods-card-footer {
  flex-wrap: wrap;
  gap: 6px;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item .goods-card-footer .goods-order-btn {
  display: flex;
  flex: 0 0 60px !important;
  width: 60px !important;
  height: 30px !important;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff344, #ffe426) !important;
  color: #171717 !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 2px 7px #ffe42635;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item .goods-card-footer .goods-order-btn::before {
  content: none !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item .goods-order-btn > .goods-order-label {
  display: inline;
  color: inherit;
  font: inherit;
  pointer-events: none;
}
@media (max-width: 360px) {
  html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item .goods-card-footer .goods-order-btn {
    flex-basis: 52px !important;
    width: 52px !important;
    height: 28px !important;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .view-toggle-slider { transition: transform .14s ease-out; }
  html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .toggle-btn { transition: color .1s ease; }
  .category-container[data-v-64370f3f] .view-toggle .toggle-btn.active uni-text { animation: none; }
  html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .toggle-btn:active { transform: none; }
}
