.cat-list {
  display: grid;
  gap: 2px;
  margin-left: -8px;
  padding: 0 4px 4px 0;
  max-height: 1370px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 255, 44, .42) rgba(255, 255, 255, .04);
}

.cat-list::-webkit-scrollbar {
  width: 7px;
}

.cat-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .04);
}

.cat-list::-webkit-scrollbar-thumb {
  background: rgba(196, 255, 44, .42);
  border-radius: 8px;
}

.cat-title {
  margin-left: -6px;
}

.oc-category-toggle {
  width: calc(100% + 2px);
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
}

.oc-category-toggle-icon {
  display: none;
}

.oc-category-search {
  width: calc(100% + 2px);
  height: 34px;
  margin: 0 0 8px -6px;
  padding: 0 10px;
  border: 1px solid rgba(196, 255, 44, .26);
  border-radius: 3px;
  background: #12171b;
  color: var(--text);
  font: 11px var(--mono, monospace);
  outline: none;
}

.oc-category-search::placeholder {
  color: #687581;
}

.oc-category-search:focus {
  border-color: rgba(196, 255, 44, .7);
  box-shadow: 0 0 0 3px rgba(196, 255, 44, .06);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.crumb a {
  color: #9ba8b4;
  text-decoration: none;
  transition: color .18s ease;
}

.crumb a:hover,
.crumb a:focus-visible {
  color: var(--lime);
}

.crumb strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oc-crumb-separator {
  color: #56616b;
  flex: none;
}

body.oc-catalog-pending #productGrid,
body.oc-catalog-pending #catList,
body.oc-product-pending main,
body.oc-product-pending .crumb {
  visibility: hidden;
}

.oc-product-unavailable {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: 70px 24px;
}

.oc-product-unavailable-card {
  width: min(620px, 100%);
  padding: 52px 42px;
  border: 1px solid rgba(196, 255, 44, .28);
  background: linear-gradient(135deg, rgba(196, 255, 44, .06), transparent 45%), #111519;
  text-align: center;
}

.oc-product-unavailable-code {
  color: var(--lime);
  font: 700 48px var(--mono, monospace);
}

.oc-product-unavailable-card h1 {
  margin: 14px 0 10px;
  font-size: 25px;
}

.oc-product-unavailable-card p {
  margin: 0 auto 26px;
  max-width: 470px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.oc-product-back {
  display: inline-block;
  padding: 12px 24px;
  background: var(--lime);
  color: #0a0e0c;
  font-weight: 800;
}

.cat-item,
.sub-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}

.cat-item {
  min-height: 34px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 3px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.25;
}

.cat-item:hover,
.sub-item:hover {
  color: var(--text);
  border-color: rgba(196, 255, 44, .25);
  background: rgba(196, 255, 44, .045);
}

.cat-item.active,
.sub-item.active {
  color: var(--text);
  border-color: rgba(196, 255, 44, .5);
  background: linear-gradient(90deg, rgba(196, 255, 44, .14), rgba(196, 255, 44, .025));
  box-shadow: inset 3px 0 0 var(--lime);
}

.oc-cat-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 255, 44, .2);
  color: var(--lime);
  font-size: 10px;
}

.oc-cat-count,
.sub-item small {
  color: #708090;
  font: 10px var(--mono, monospace);
}

.sub-list {
  display: grid;
  gap: 2px;
  padding: 0 0 3px 22px;
  border-left: 1px solid rgba(196, 255, 44, .16);
  margin-left: 11px;
}

.sub-list.open {
  max-height: none;
  overflow: visible;
}

.sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 10.5px;
  line-height: 1.25;
}

.oc-hot-section {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(196, 255, 44, .06), transparent 34%),
    #101418;
}

.oc-hot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.oc-hot-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .02em;
}

.oc-hot-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

#ocRefreshHot {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(196, 255, 44, .4);
  background: rgba(196, 255, 44, .06);
  color: var(--lime);
  font-size: 20px;
  cursor: pointer;
}

#ocRefreshHot:hover {
  background: var(--lime);
  color: #071006;
}

.oc-hot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-height: 150px;
}

.oc-hot-grid.loading {
  opacity: .45;
}

.oc-hot-card .card-media {
  height: 118px;
}

.oc-hot-card .card-body {
  padding: 12px;
}

.oc-hot-card h3 {
  min-height: 38px;
  font-size: 13px;
}

.oc-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 11px 0 8px;
  color: var(--muted);
  font: 11px var(--mono, monospace);
}

.oc-product-meta b {
  color: var(--lime);
  font-weight: 700;
}

.oc-catalog-empty-front {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.oc-detail-sold {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--lime);
}

.oc-related-sold {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.search input:focus {
  outline: none;
  color: var(--text);
}

.search:focus-within {
  border-color: rgba(196, 255, 44, .55);
  box-shadow: 0 0 0 3px rgba(196, 255, 44, .06);
}

@media (max-width: 1000px) {
  .oc-hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .oc-hot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px !important;
    padding: 12px 14px !important;
  }

  .topbar .logo { min-width: 0; }
  .topbar .logo .mark { width: 27px; height: 27px; flex: none; }
  .topbar .logo span { overflow: hidden; font-size: 17px !important; text-overflow: ellipsis; }
  .topbar .lang-select { max-width: 90px; padding: 8px 6px; }
  .topbar .signin { min-height: 36px; padding: 8px 10px; font-size: 10px; white-space: nowrap; }
  .topbar .search {
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    max-width: none;
    min-height: 42px;
    padding: 9px 12px;
  }

  .hero { padding: 34px 16px 26px !important; }
  .hero h1 { font-size: clamp(29px, 9vw, 38px) !important; }
  .hero p { font-size: 12px !important; line-height: 1.7; }
  .stat-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
    margin-top: 22px !important;
  }
  .stat b { font-size: 16px !important; }
  .stat span { display: block; font-size: 9px; line-height: 1.45; }

  main { padding: 16px 14px 64px !important; }
  body.oc-storefront main > aside {
    margin: 0 0 18px !important;
    padding: 0;
    border: 1px solid var(--line);
    background: #111519;
  }

  .oc-category-toggle {
    min-height: 46px;
    margin: 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text, var(--white));
    cursor: pointer;
  }
  .oc-category-toggle-icon {
    display: block;
    color: var(--lime, var(--volt));
    font-size: 18px;
    transition: transform .2s ease;
  }
  body.oc-storefront main > aside.oc-mobile-categories-open .oc-category-toggle-icon { transform: rotate(180deg); }
  #ocCategoryPanel {
    display: none;
    padding: 0 10px 10px;
    border-top: 1px solid var(--line);
  }
  body.oc-storefront main > aside.oc-mobile-categories-open #ocCategoryPanel { display: block; }
  .oc-category-search {
    width: 100%;
    height: 40px;
    margin: 10px 0 8px;
    font-size: 12px;
  }
  .cat-list {
    max-height: 380px;
    margin-left: 0;
    padding-right: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .cat-item { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 11px; }
  .sub-item { min-height: 32px; font-size: 10.5px; }

  .oc-hot-section { margin-bottom: 18px; padding: 13px; }
  .oc-hot-head { margin-bottom: 11px; }
  .oc-hot-head h2 { font-size: 16px; }
  .oc-hot-head p { max-width: 230px; font-size: 10px; }
  .oc-hot-grid, .grid { grid-template-columns: 1fr !important; gap: 11px; }

  .card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 158px;
  }
  .card .card-media, .oc-hot-card .card-media {
    width: 100%;
    height: 100%;
    min-height: 158px;
  }
  .card .jersey-num { font-size: 42px; }
  .card .badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 7px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .card .card-body, .oc-hot-card .card-body { min-width: 0; padding: 12px; }
  .card .card-body h3, .oc-hot-card h3 {
    display: -webkit-box;
    min-height: 36px;
    margin-bottom: 7px;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .oc-product-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    margin: 7px 0;
    font-size: 9.5px;
  }
  .card .price { font-size: 17px; }
  .card .buy-btn { min-height: 40px; margin-top: 8px; padding: 8px 10px; }

  .toolbar { gap: 10px !important; margin-bottom: 14px; }
  .toolbar h2 { font-size: 12px; line-height: 1.5; }
  .sort {
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: thin;
  }
  .sort button { min-height: 38px; padding: 7px 12px; flex: none; }
  .loadmore-wrap { margin-top: 20px; }
  .loadmore { width: 100%; min-height: 44px; }

  body.oc-product-page header {
    padding: 10px 14px;
  }
  body.oc-product-page .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px !important;
    padding: 0 !important;
  }
  body.oc-product-page .topbar .logo span {
    font-size: 16px !important;
  }
  body.oc-product-page .topbar .lang-select {
    grid-column: 2;
    margin-left: 0;
  }
  body.oc-product-page .crumb {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    font-size: 11px;
    scrollbar-width: none;
  }
  body.oc-product-page .crumb::-webkit-scrollbar { display: none; }
  body.oc-product-page .crumb a,
  body.oc-product-page .crumb strong { flex: none; white-space: nowrap; }
  body.oc-product-page main {
    padding: 18px 14px 58px !important;
  }
  body.oc-product-page .gallery {
    height: 220px;
    min-height: 220px !important;
  }
  body.oc-product-page .gallery .num { font-size: 78px; }
  body.oc-product-page main h1 {
    margin-top: 16px;
    font-size: 20px;
  }
  body.oc-product-page .tags { flex-wrap: wrap; }
  body.oc-product-page .desc { margin-top: 18px; padding-top: 16px; }
  body.oc-product-page .desc p { font-size: 13px; line-height: 1.75; }
  body.oc-product-page .specs { gap: 8px !important; }
  body.oc-product-page .spec { padding: 11px; }
  body.oc-product-page main > aside.panel {
    position: static;
    margin-top: 22px !important;
    padding: 17px;
  }
  body.oc-product-page .panel .price { font-size: 26px; }
  body.oc-product-page .opt { min-height: 42px; padding: 10px 6px; }
  body.oc-product-page .qty button { width: 42px; height: 42px; }
  body.oc-product-page .cta { min-height: 50px; margin-top: 16px; }
  body.oc-product-page .related { margin-top: 38px; }
  body.oc-product-page .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body.oc-product-page .rel-card { padding: 10px; }
  body.oc-product-page .rel-card .thumb { height: 58px; }
}

@media (max-width: 390px) {
  .card { grid-template-columns: 98px minmax(0, 1fr); }
  .card .card-media, .oc-hot-card .card-media { min-height: 164px; }
  .topbar .lang-select { max-width: 76px; }
}
