/* 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 #ffffff24,
    0 0 14px #00000030, 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;
  background: var(--ds-accent, #ffcd22);
  box-shadow: 0 0 8px color-mix(in srgb, var(--ds-accent, #ffcd22) 60%, transparent);
  animation: category-selection-marker-in .38s ease-out both;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-item {
  transition: color .2s ease, background-color .2s ease;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-item.active {
  border-radius: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ds-accent, #ffcd22) 14%, transparent), transparent) !important;
}
.category-container[data-v-64370f3f] .secondary-category-item.active .secondary-feature-name {
  animation: category-selection-label-in .3s ease-out both;
}
@keyframes category-selection-marker-in {
  from { opacity: .3; transform: translateY(-50%) scaleY(.35); }
  to { opacity: 1; transform: translateY(-50%) scaleY(1); }
}
@keyframes category-selection-label-in {
  from { opacity: .6; transform: translateX(-3px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 360px) {
  html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-item {
    padding-left: 2px;
    padding-right: 2px;
  }
}

/* Cards follow their own content height; a missing introduction leaves no blank row. */
html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-area {
  align-items: start;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item {
  align-self: start;
  height: auto;
  min-height: 0;
  background: #fff !important;
  box-shadow: 0 5px 18px #1f29371f, 0 1px 5px #1f29370f !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item .goods-info {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  background: #fff !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item .goods-name {
  min-height: 0;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item .goods-description {
  min-height: 0;
  max-height: 34px;
  -webkit-line-clamp: 2;
}

/* The category page always uses icon-and-name tiles, independent of the home style. */
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0;
  margin-bottom: 24px;
  padding: 14px 8px 12px !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-category-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: max-content !important;
  min-width: 100%;
  padding: 2px 0 !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-category-item {
  position: relative;
  display: flex;
  flex: 0 0 72px !important;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 72px !important;
  min-width: 72px !important;
  margin: 0 4px 0 0 !important;
  padding: 2px 0 !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-category-item::after,
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-category-item.active::after {
  content: none !important;
  display: none !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-icon-wrap {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 54px !important;
  height: 54px !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid transparent !important;
  border-radius: 14px !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-category-item.active .primary-icon-wrap {
  border-color: #f5cf28 !important;
  box-shadow: 0 0 0 1px #f5cf2840 !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-icon {
  width: 100% !important;
  height: 100% !important;
  border-radius: 11px !important;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-name {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 72px;
  padding: 0;
  overflow: hidden;
  clip: auto;
  clip-path: none !important;
  color: var(--ds-text, #20242b) !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 20px !important;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-category-item.active .primary-name {
  font-weight: 750;
}
@media (prefers-reduced-motion: reduce) {
  html[data-ds-theme] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-icon-wrap { transition: none; }
}

/* 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;
  margin-top: 0;
}
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 (min-width: 361px) and (max-width: 420px) {
  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;
    font-size: 13px;
  }
  html[data-ds-theme] .category-container[data-v-64370f3f] .goods-list-item .goods-price {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-item { transition: none; }
  html[data-ds-theme] .category-container[data-v-64370f3f] .secondary-category-item.active::before,
  .category-container[data-v-64370f3f] .secondary-category-item.active .secondary-feature-name { animation: none; }
  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; }
}


/* Catalogue rhythm: compact controls, a readable side rail, and quiet white cards. */
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] {
  --category-selection: var(--ds-accent, #ffda2e);
  --category-selection-ink: var(--ds-on-accent, #202124);
}
html:is([data-ds-theme="classic-gold"], [data-ds-theme="white-yellow"], [data-ds-theme="black-yellow"])[data-ds-categorypage="current"] .category-container[data-v-64370f3f] {
  --category-selection: #ffdb32;
  --category-selection-ink: #302809;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .online-container {
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 0;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-browse-header {
  margin-bottom: 8px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-browse-header::before {
  content: none;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle {
  flex-basis: 46px;
  width: 100%;
  height: 46px;
  margin: 0 0 14px;
  padding: 5px;
  gap: 6px;
  border-radius: 14px;
  background: var(--ds-surface, #fff) !important;
  box-shadow: 0 2px 7px #17203305;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .view-toggle-slider {
  border-radius: 10px;
  box-shadow: inset 0 1px 0 #ffffff29, 0 3px 8px #00000026;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .toggle-btn {
  height: 34px;
  font-size: 14px;
  line-height: 34px;
  letter-spacing: .5px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-browse-header > .view-toggle .toggle-btn.active {
  text-shadow: none;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section {
  margin-bottom: 8px;
  padding: 12px 5px 10px !important;
  border-radius: 16px;
  background: var(--ds-surface, #fff) !important;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-browse-header .primary-category-section .primary-category-item {
  margin-right: 5px !important;
  padding: 2px 0 !important;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-browse-header .primary-category-item.active .primary-icon-wrap {
  border-color: var(--category-selection) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--category-selection) 18%, transparent) !important;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-main {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: stretch;
  column-gap: 10px;
  width: 100%;
  margin: 0;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .secondary-category-sidebar {
  position: static;
  align-self: stretch;
  width: 72px;
  height: auto;
  max-height: none;
  gap: 0;
  min-height: calc(100dvh - 230px);
  padding: 9px 0 24px;
  overflow: visible;
  border: 0;
  border-radius: 12px;
  background: var(--ds-surface, #fff) !important;
  box-shadow: 0 2px 10px #17203305 !important;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .secondary-category-item {
  min-height: 48px;
  padding: 13px 7px;
  border-radius: 0;
  background: transparent !important;
  color: var(--ds-muted, #767a82) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .secondary-category-item.active {
  border-radius: 0;
  background: transparent !important;
  color: var(--ds-text, #20242b) !important;
  font-weight: 750;
  box-shadow: none !important;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .secondary-category-item.active::before {
  left: 0;
  width: 3px;
  height: 16px;
  border-radius: 0 2px 2px 0;
  background: var(--category-selection);
  box-shadow: none;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-sort-toolbar {
  height: 30px;
  margin-bottom: 10px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-sort-bar {
  min-width: 78px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--community-line, #17203314);
  border-radius: 9px;
  background: var(--ds-surface, #fff) !important;
  font-size: 11px;
  line-height: 28px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-area {
  gap: 13px 10px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item {
  border: 1px solid #17203309;
  border-radius: 13px;
  box-shadow: 0 4px 14px #1720330d, 0 1px 3px #17203308 !important;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-info {
  gap: 5px;
  padding: 9px 8px 10px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-name {
  font-size: 13px;
  font-weight: 650;
  line-height: 19px;
  max-height: 38px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-description {
  max-height: 32px;
  color: #858993 !important;
  font-size: 10px;
  line-height: 16px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-card-footer {
  gap: 5px;
  padding-top: 3px;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-price {
  font-size: clamp(15px, 4.1vw, 18px);
  font-weight: 750;
  letter-spacing: -.4px;
  color: #e66c23 !important;
}
html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-card-footer .goods-order-btn {
  flex-basis: 50px !important;
  width: 50px !important;
  height: 28px !important;
  background: var(--category-selection) !important;
  color: var(--category-selection-ink) !important;
  font-size: 12px;
  letter-spacing: .5px;
  box-shadow: none;
}
html[data-ds-dark="true"][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item {
  box-shadow: 0 4px 15px #00000024 !important;
}
html[data-ds-dark="true"][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .secondary-category-item.active {
  outline: none !important;
}
@media (max-width: 360px) {
  html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .online-container { padding-left: 10px; padding-right: 10px; }
  html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .category-main { grid-template-columns: 62px minmax(0, 1fr); width: 100%; margin-left: 0; column-gap: 8px; }
  html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .secondary-category-sidebar { width: 62px; }
  html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .secondary-category-item { padding-left: 6px; padding-right: 6px; font-size: 11px; }
  html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-area { gap: 11px 8px; }
  html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-info { padding-left: 7px; padding-right: 7px; }
  html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-card-footer .goods-order-btn { flex-basis: 40px !important; width: 40px !important; height: 26px !important; font-size: 11px; }
  html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-card-footer { gap: 3px; }
  html[data-ds-theme][data-ds-categorypage="current"] .category-container[data-v-64370f3f] .goods-list-item .goods-price { font-size: 14px; }
}

/* Match the home page canvas without changing category panels or product cards. */
html[data-ds-theme] .category-container[data-v-64370f3f] {
  background: linear-gradient(180deg, var(--ds-glow), var(--ds-soft) 250px, var(--ds-bg) 470px) !important;
}
html[data-ds-theme="classic-gold"] .category-container[data-v-64370f3f] {
  background: #f6f8fb url("/h5/static/images/header_background.png") center top / 100% auto no-repeat !important;
}
