.category-screen-pro{padding-bottom:0;overflow:hidden;background:#fff}
.category-pro-topbar{height:85px;padding:10px 12px;background:#fff}
.category-pro-topbar>strong{display:block;font-size:16px}
.category-pro-topbar .search{width:100%;height:36px;margin-top:9px;border:0;text-align:left}
.category-major-collapsed{height:86px;display:grid;grid-template-columns:minmax(0,1fr) 47px;border-top:1px solid #f0f1f0;border-bottom:1px solid var(--line);background:#fff}
.category-major-rail{display:flex;gap:3px;min-width:0;padding:7px 4px 5px 8px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none;touch-action:pan-x;cursor:grab}
.category-major-rail::-webkit-scrollbar{display:none}
.category-major-rail:active{cursor:grabbing}
.category-major-item{position:relative;flex:0 0 65px;min-width:0;border:0;background:#fff;color:var(--sub);padding:0 2px;scroll-snap-align:start}
.category-major-item img{width:45px;height:45px;display:block;margin:0 auto 4px;border-radius:6px;object-fit:cover;background:#f2f4f2;pointer-events:none;-webkit-user-drag:none;user-select:none}
.category-major-item span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.category-major-item.active span{display:inline-block;max-width:100%;padding:2px 4px;border-radius:3px;background:var(--green);color:#fff;font-weight:600}
.category-major-expand{height:100%;border:0;border-left:1px solid var(--line);background:#fff;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px}
.category-major-expand svg{width:14px}
.category-major-expanded{height:180px;padding:0 9px 9px;background:#fff;border-top:1px solid #f0f1f0;border-bottom:1px solid var(--line)}
.category-major-expanded>header{height:38px;display:flex;align-items:center;justify-content:space-between}
.category-major-expanded>header strong,.category-major-expanded>header small{display:block}
.category-major-expanded>header strong{font-size:11px}
.category-major-expanded>header small{margin-top:1px;color:var(--sub);font-size:8px}
.category-major-expanded>header button{border:0;background:none;color:var(--green);font-size:9px}
.category-major-expanded>header button svg{width:13px;vertical-align:middle}
.category-major-expanded>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px 2px}
.category-major-expanded .category-major-item{width:100%;height:62px;display:block;flex:none;border-radius:4px;background:#f7f8f7}
.category-major-expanded .category-major-item img{width:36px;height:36px;margin-bottom:2px}
.category-major-expanded .category-major-item>svg{position:absolute;right:3px;top:3px;width:12px;color:var(--green)}
.category-major-expanded .category-major-item.active{outline:1px solid var(--green);background:var(--mint)}
.category-main{height:calc(100% - 233px);display:grid;grid-template-columns:86px minmax(0,1fr);min-height:0;padding-bottom:62px;background:#fff}
.category-screen-pro.major-expanded .category-main{height:calc(100% - 327px)}
.category-sub-menu{min-height:0;overflow-y:auto;background:#eef1ef;scrollbar-width:none}
.category-sub-menu::-webkit-scrollbar{display:none}
.category-sub-menu button{position:relative;width:100%;min-height:52px;padding:8px 7px;border:0;background:none;color:#657069;font-size:10px;line-height:1.35}
.category-sub-menu button.active{background:#fff;color:var(--green);font-weight:700}
.category-sub-menu button.active:before{content:"";position:absolute;left:0;top:14px;width:3px;height:24px;background:var(--green)}
.category-pro-products{min-width:0;min-height:0;padding:9px 9px 0;overflow-y:auto;background:#fff;scrollbar-width:none}
.category-pro-products::-webkit-scrollbar{display:none}
.category-pro-products .category-banner{display:none}
.category-result-head{height:45px;display:flex;align-items:center;justify-content:space-between}
.category-result-head h2{margin:0;font-size:14px}
.category-result-head span{display:flex;align-items:center;color:var(--sub);font-size:9px}
.category-result-head span svg{width:12px}
.category-product-list{border-top:1px solid var(--line)}
.category-product-row{position:relative;min-height:92px;border-bottom:1px solid var(--line)}
.category-product-link{width:100%;min-height:92px;display:grid;grid-template-columns:72px minmax(0,1fr);gap:9px;align-items:center;padding:9px 34px 9px 0;border:0;background:#fff;text-align:left;color:var(--ink)}
.category-product-link img{width:72px;height:72px;border-radius:5px;object-fit:cover}
.category-product-link>span{min-width:0}
.category-product-link strong,.category-product-link small,.category-product-link em{display:block}
.category-product-link strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.category-product-link small{margin:4px 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sub);font-size:8px}
.category-product-link em{font-style:normal}
.category-product-link em b{color:var(--red);font-size:16px}
.category-product-link em i{margin-left:3px;padding:2px 3px;background:var(--goldbg);color:var(--gold);font-size:7px;font-style:normal}
.category-add{position:absolute;right:2px;bottom:14px;width:29px;height:29px;border:0;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center}
.category-add svg{width:17px}

@media(max-width:340px){
  .category-major-item{flex-basis:59px}
  .category-major-expanded>div{grid-template-columns:repeat(4,minmax(0,1fr))}
  .category-major-expanded{height:248px}
  .category-screen-pro.major-expanded .category-main{height:calc(100% - 395px)}
  .category-product-link{grid-template-columns:60px minmax(0,1fr);padding-right:30px}
  .category-product-link img{width:60px;height:60px}
}
