.psch {
  --psch-accent: #1683d8;
  --psch-accent-dark: #0e669f;
  --psch-ink: #171b1f;
  --psch-muted: #727b84;
  --psch-line: #e1e7ec;
  --psch-soft: #f5f8fa;
  color: var(--psch-ink);
  margin: 0 0 42px;
}

.psch *,
.psch *::before,
.psch *::after { box-sizing: border-box; }

.psch-head {
  align-items: flex-end;
  border-bottom: 1px solid var(--psch-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  min-height: 72px;
  padding: 5px 0 16px;
}

.psch-eyebrow { color: var(--psch-accent-dark); display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; margin-bottom: 5px; text-transform: uppercase; }
.psch h1 { font-size: clamp(27px, 2.5vw, 36px); font-weight: 650; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.psch-section-count { background: var(--psch-soft); border-radius: 999px; color: var(--psch-muted); flex: 0 0 auto; font-size: 12px; padding: 7px 11px; }

.psch-layout { align-items: start; display: grid; gap: 32px; grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); }

.psch-tree {
  background: #fff;
  border: 1px solid var(--psch-line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 45, 63, .055);
  max-height: calc(100vh - 28px);
  overflow: auto;
  position: sticky;
  scrollbar-color: #c4d0d9 transparent;
  scrollbar-width: thin;
  top: 14px;
}

.psch-tree-head { align-items: center; background: linear-gradient(135deg, #fbfdfe, #f4f8fb); border-bottom: 1px solid var(--psch-line); display: flex; gap: 9px; min-height: 52px; padding: 0 15px; }
.psch-tree-head svg { fill: none; height: 17px; stroke: var(--psch-accent); stroke-linecap: round; stroke-width: 1.8; width: 17px; }
.psch-tree-head strong { font-size: 15px; }
.psch-tree ul { list-style: none; margin: 0; padding: 6px; }
.psch-tree li { margin: 0; }
.psch-tree a { align-items: center; border-radius: 9px; color: #30363b; display: flex; gap: 10px; justify-content: space-between; min-height: 38px; padding: 7px 8px 7px calc(10px + var(--psch-depth) * 15px); position: relative; text-decoration: none; transition: background .16s ease, color .16s ease; }
.psch-tree a:hover,
.psch-tree a:focus { background: var(--psch-soft); color: var(--psch-accent-dark); outline: 0; text-decoration: none; }
.psch-tree a > span { font-size: 13px; line-height: 1.3; min-width: 0; }
.psch-tree a > small { align-items: center; background: #eef3f6; border-radius: 999px; color: #7a858e; display: inline-flex; flex: 0 0 auto; font-size: 10px; height: 23px; justify-content: center; min-width: 23px; padding: 0 6px; }
.psch-tree li.is-branch > a > span { font-weight: 650; }
.psch-tree li.is-current > a { background: #eaf5fd; color: #086da9; font-weight: 700; }
.psch-tree li.is-current > a::before { background: var(--psch-accent); border-radius: 0 3px 3px 0; bottom: 8px; content: ""; left: -6px; position: absolute; top: 8px; width: 3px; }
.psch-tree li.is-current > a > small { background: #d7edfb; color: #0875b7; }

.psch-main { min-width: 0; }
.psch-main-head { align-items: center; display: flex; justify-content: space-between; margin: 0 0 12px; min-height: 28px; }
.psch-main h2 { font-size: 18px; font-weight: 650; margin: 0; }
.psch-grid { display: grid; gap: 22px 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.psch-card { color: var(--psch-ink); display: flex; flex-direction: column; min-width: 0; position: relative; text-decoration: none; }
.psch-card:hover,
.psch-card:focus { color: var(--psch-ink); outline: 0; text-decoration: none; }
.psch-card-image { align-items: center; aspect-ratio: 4 / 3; background: #fff; border: 1px solid #e5eaee; border-radius: 13px; display: flex; justify-content: center; overflow: hidden; padding: 8px; position: relative; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.psch-card-image > img { height: 100%; max-height: 100%; max-width: 100%; object-fit: contain; width: 100%; }
.psch-card-image > .category_status-sticker,
.psch-card-image > .category-sticker,
.psch-card-image > .product-sticker { left: 8px !important; right: auto !important; top: 8px !important; z-index: 3; }
.psch-card-image > .category_status-sticker .text,
.psch-card-image > .category-sticker .text,
.psch-card-image > .product-sticker .text { border-radius: 6px !important; box-shadow: 0 2px 7px rgba(17, 29, 39, .12); }
.psch-card-stickers {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 0;
  padding: 5px 4px 0;
}
.psch-card-stickers .product-sticker,
.psch-card-stickers .category-sticker,
.psch-card-stickers .category_status-sticker,
.psch-card-stickers .product-status,
.psch-card-stickers .category-status,
.psch-card-stickers .category_status-status {
  bottom: auto !important;
  display: inline-flex !important;
  left: auto !important;
  margin: 0 !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
}
.psch-card-stickers .text { border-radius: 0 !important; display: inline-flex; font-size: 9px; line-height: 1.1; min-height: 20px; padding: 4px 7px; }
.psch-card-stickers img { border: 0 !important; height: auto; max-height: 20px; max-width: 100%; width: auto; }
.psch-card:hover .psch-card-image,
.psch-card:focus .psch-card-image { border-color: #acd3ea; box-shadow: 0 13px 26px rgba(24, 93, 132, .1); transform: translateY(-2px); }
.psch-card-copy { display: flex; flex-direction: column; min-width: 0; padding: 10px 27px 0 4px; }
.psch-card-copy strong { display: -webkit-box; font-size: 14px; font-weight: 650; line-height: 1.32; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.psch-card-copy > span { color: var(--psch-muted); font-size: 11px; margin-top: 4px; }
.psch-card-arrow { bottom: 5px; fill: none; height: 17px; position: absolute; right: 4px; stroke: #9aa5ad; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transition: color .18s ease, transform .18s ease; width: 17px; }
.psch-card:hover .psch-card-arrow,
.psch-card:focus .psch-card-arrow { stroke: var(--psch-accent); transform: translateX(2px); }

.psch-description { border-top: 1px solid var(--psch-line); color: #555f67; font-size: 14px; line-height: 1.7; margin-top: 34px; padding-top: 22px; }
.psch-description > :first-child { margin-top: 0; }
.psch-description > :last-child { margin-bottom: 0; }

@media (max-width: 1199px) {
  .psch-layout { gap: 24px; grid-template-columns: 260px minmax(0, 1fr); }
  .psch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .psch { margin-bottom: 28px; }
  /* The global mobile navigation already exposes the category tree. Hiding
     this duplicate keeps the hub compact without changing its desktop layout. */
  .psch-tree { display: none !important; }
  .psch-head { align-items: flex-start; margin-bottom: 14px; min-height: 0; padding: 3px 0 12px; }
  .psch h1 { font-size: 25px; }
  .psch-section-count { margin-top: 19px; }
  .psch-layout { display: block; }
  .psch-tree { max-height: 238px; position: static; }
  .psch-tree-head { min-height: 46px; }
  .psch-main { margin-top: 20px; }
  .psch-main h2 { font-size: 17px; }
  .psch-grid { gap: 18px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psch-card-image { border-radius: 11px; padding: 6px; }
  .psch-card-copy { padding: 8px 21px 0 2px; }
  .psch-card-copy strong { font-size: 13px; }
  .psch-card-arrow { right: 1px; }
  .psch-description { font-size: 13px; margin-top: 27px; padding-top: 18px; }
}

@media (max-width: 359px) {
  .psch-section-count { display: none; }
  .psch-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .psch-card-image,
  .psch-card-arrow { transition: none; }
}
