#cats{display:block;width:100%;margin-bottom:24px}
.category-preview{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-bottom:18px;border-bottom:1px solid var(--border,#ddd);margin-bottom:18px}
.category-preview strong{margin-right:auto}.category-preview a{padding:8px 12px;border-radius:6px;color:inherit;border:1px solid var(--border,#ccc);text-decoration:none}
.category-preview a[aria-current=page]{background:var(--primary,#e22);color:white}
.category-groups{display:flex;flex-direction:column;gap:14px}.category-group{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.category-group-title{width:90px;font-size:13px;color:var(--text-muted,#666);flex-shrink:0}
#cats .chip{margin:0;min-height:46px}#cats a:focus-visible{outline:3px solid var(--primary,#e22);outline-offset:3px}
.category-detail{margin-top:18px;padding:16px;background:var(--surface-2,#faf5e8);border-radius:10px;border:1px solid var(--border,#ddd)}
.category-detail strong{font-size:14px;display:block;margin-bottom:12px}
#cats .subcats{display:flex;gap:8px;width:auto;max-width:100%;margin:0;padding:0;background:none;border:0;box-shadow:none;flex-wrap:wrap}
#cats .subcat{flex:0 1 auto;min-width:90px;padding:10px 22px;border:1px solid var(--border,#ddd);border-radius:6px}
html[data-category-layout=b] #shop-products .panel-body{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px}
html[data-category-layout=b] #cats{grid-row:1/3}html[data-category-layout=b] .category-preview strong{width:100%}
html[data-category-layout=b] .category-group{align-items:stretch;flex-direction:column}html[data-category-layout=b] .category-group-title{width:auto;margin-top:8px}
html[data-category-layout=b] #cats .chip{justify-content:flex-start}html[data-category-layout=b] #cats .subcat{min-width:0;flex:1;padding:10px}
html[data-category-layout=c] .category-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
html[data-category-layout=c] .category-group{align-content:start;align-items:stretch;padding:16px;border:1px solid var(--border,#ddd);border-radius:12px;background:var(--surface,#fff)}
html[data-category-layout=c] .category-group:first-child{grid-column:1/-1;padding:0;border:0;background:none}
html[data-category-layout=c] .category-group-title{width:100%;font-weight:700;margin-bottom:4px}
html[data-category-layout=c] .category-group:first-child .category-group-title{display:none}
html[data-category-layout=c] .category-group .chip{width:100%;justify-content:flex-start}
html[data-category-layout=c] .category-group:first-child .chip{width:auto}
@media(max-width:640px){html[data-category-layout=b] #shop-products .panel-body{display:block}.category-group-title{width:100%}html[data-category-layout=b] .category-group{flex-direction:row}html[data-category-layout=b] .category-group-title{width:100%}html[data-category-layout=c] .category-groups{grid-template-columns:1fr}.category-preview{gap:6px}.category-preview strong{width:100%}.category-preview a{font-size:12px;padding:8px}.category-detail{padding:12px}}
html[data-category-layout] .shop-home #shop-products > .panel-body{display:block}
html[data-category-layout] .shop-home #shop-products .cats{display:block;position:static;width:100%;border:0;padding:0;max-height:none}
html[data-category-layout] .shop-home #shop-products .cats .chip{width:auto}
@media(min-width:641px){html[data-category-layout=b] .shop-home #shop-products > .panel-body{display:grid;grid-template-columns:230px minmax(0,1fr)}html[data-category-layout=b] .shop-home #shop-products .cats .chip{width:100%}}
html[data-category-layout] .shop-home #shop-products .subcats{flex-direction:row;width:auto}
html[data-category-layout] .shop-home #shop-products .subcat{width:auto;flex:0 1 auto}
html[data-category-layout=c] .shop-home #shop-products .category-group:not(:first-child) .chip{width:100%}
html[data-category-layout=d] .category-axis{display:flex;flex-direction:row;flex-wrap:nowrap;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding:6px 0 12px;position:relative}
html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{flex:1 0 142px;min-width:142px;min-height:96px;display:flex;flex-direction:column;justify-content:center;gap:7px;border-radius:0;text-align:center;scroll-snap-align:center;padding:12px 10px}
html[data-category-layout=d] .category-axis .chip small{font-size:12px;opacity:.75;font-weight:400}
html[data-category-layout=d] .category-axis .chip.is-primary{clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px)}
html[data-category-layout=d] .shop-home #shop-products .category-detail{margin-top:8px}
html[data-category-layout=d] .shop-home #shop-products .subcat{flex:1;min-width:80px;text-align:center}
@media(max-width:640px){html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{flex-basis:120px;min-width:120px;min-height:88px}}
html[data-category-layout=d] .category-axis{scroll-snap-type:none;scrollbar-width:none;padding:24px 0;perspective:900px;cursor:grab;touch-action:pan-x;user-select:none;background:linear-gradient(90deg,transparent calc(50% - 1px),var(--primary,#e22) 50%,transparent calc(50% + 1px))}
html[data-category-layout=d] .category-axis::-webkit-scrollbar{display:none}
html[data-category-layout=d] .category-axis:active{cursor:grabbing}
html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{flex:0 0 clamp(140px,19vw,220px);min-width:0;min-height:116px;will-change:transform;scroll-snap-align:none;clip-path:none;transition:background-color .15s,color .15s}
html[data-category-layout=d] .category-axis .chip.is-center{background:var(--primary,#e22);color:white;border-color:var(--primary,#e22);box-shadow:0 8px 16px #0002}
@media(prefers-reduced-motion:reduce){html[data-category-layout=d] .category-axis .chip{transition:none}}
html[data-category-layout=d] .category-axis{padding:38px 0 44px;gap:22px;background:none;perspective:1100px}
html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{border-radius:24px;min-height:146px;border:1px solid #ddd4c9;background:var(--surface,#fffdf7);box-shadow:0 5px 14px #0001;font-size:16px;font-weight:650;gap:13px;transition:transform 100ms linear,opacity 100ms linear,background-color 220ms,box-shadow 220ms;transform-origin:center center;animation:none}
html[data-category-layout=d] .shop-home #shop-products .category-axis .chip.is-center{background:var(--surface,#fffdf7);color:var(--text,#252b36);border:2px solid var(--primary,#e22);box-shadow:0 12px 26px #0002}
html[data-category-layout=d] .shop-home #shop-products .category-axis .chip .chip-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
html[data-category-layout=d] .shop-home #shop-products .category-axis .chip .chip-img{width:48px;height:48px;border-radius:15px}
html[data-category-layout=d] .category-axis .chip small{font-size:12px;font-weight:400;color:var(--text-muted,#757575)}
@media(max-width:640px){html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{flex-basis:170px;min-height:146px}}
@media(prefers-reduced-motion:reduce){html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{transition:none}}
html[data-category-layout=d] .category-axis{padding:22px 0 25px;gap:12px}
html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{flex-basis:clamp(116px,13vw,150px);min-height:96px;padding:10px 8px;border-radius:18px;font-size:14px;gap:7px}
html[data-category-layout=d] .shop-home #shop-products .category-axis .chip .chip-icon,html[data-category-layout=d] .shop-home #shop-products .category-axis .chip .chip-img{width:34px;height:34px;border-radius:11px}
html[data-category-layout=d] .category-axis .chip small{font-size:11px}
@media(max-width:640px){html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{flex-basis:120px;min-height:92px;font-size:13px}}
html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{height:96px;box-sizing:border-box}
@media(max-width:640px){html[data-category-layout=d] .shop-home #shop-products .category-axis .chip{height:92px;min-height:92px;gap:5px;padding:8px}}
