.shop-category-rail{--category-art:64px;--category-art-mobile:52px;--category-gap:10px;min-width:0;max-width:100%;box-sizing:border-box;padding:12px 16px}
.shop-category-rail-title{margin:0;font-size:14px;font-weight:750;line-height:1.4}
.shop-category-rail-heading{display:flex;flex-direction:column;align-items:center;gap:6px;padding:4px;box-sizing:border-box;text-align:center}
.shop-category-heading-art{grid-template-columns:repeat(2,1fr);gap:5px;padding:calc(var(--category-art) * .24);box-sizing:border-box;color:#9a3412}
.shop-category-heading-art span{width:100%;aspect-ratio:1;border-radius:3px;background:currentColor}
.shop-category-heading-art span:last-child{background:#d97706;border-radius:50%}.shop-category-heading-art span:nth-child(2){background:#ea580c;border-radius:50% 50% 3px 3px}.shop-category-heading-art span:nth-child(3){background:#b45309;transform:rotate(-12deg)}
.shop-category-rail-body{display:flex;align-items:center;gap:8px;min-width:0}
.shop-category-rail-list{display:flex;flex:1;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;gap:var(--category-gap);scrollbar-width:thin;padding:2px 2px 6px}
.shop-category-rail-item{flex:1 0 calc(var(--category-art) + 20px);scroll-snap-align:start;min-width:0}
.shop-category-rail-link{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:inherit;text-align:center;border-radius:12px;padding:4px}
.shop-category-rail-link:focus-visible{outline:2px solid #007979;outline-offset:-2px}
.shop-category-rail-art{display:grid;place-items:center;width:var(--category-art);height:var(--category-art);border-radius:50%;overflow:hidden;background:#f5f6f7;font-size:calc(var(--category-art) * .43)}
.shop-category-rail-art img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.shop-category-rail-label{font-size:14px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.shop-category-rail-arrow{flex:0 0 36px;width:36px;height:36px;border:1px solid #d6dce3;border-radius:50%;background:#fff;color:#17252d;font-size:25px;cursor:pointer}
.shop-category-rail-arrow:disabled{opacity:.3;cursor:default}
.shop-category-editor{display:grid;gap:12px}
.shop-category-editor-row{border:1px solid #dce4ef;border-radius:10px;min-width:0;padding:12px;display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.shop-category-editor-row label{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1 1 160px}
.shop-category-editor-row input{box-sizing:border-box;max-width:100%}
.shop-category-editor-row input[type=checkbox]{align-self:flex-start}
@media(max-width:600px){.shop-category-rail{padding:10px 8px}.shop-category-rail-title{font-size:12px}.shop-category-rail-body{gap:4px}.shop-category-rail-list{gap:8px}.shop-category-rail-item{flex-basis:calc(var(--category-art) + 16px)}.shop-category-rail{--category-art:var(--category-art-mobile)}.shop-category-rail-label{font-size:12px}.shop-category-rail-arrow{flex-basis:28px;width:28px;height:44px;border-radius:14px}}

.shop-category-rail[data-category-size=medium]{--category-art:88px;--category-art-mobile:68px;--category-gap:14px}
.shop-category-rail[data-category-size=large]{--category-art:112px;--category-art-mobile:76px;--category-gap:20px}
.shop-category-size-control{display:flex;flex-direction:column;gap:6px;max-width:420px}
@media(max-width:600px){.shop-category-rail[data-category-size]{--category-art:var(--category-art-mobile)}}

/* Decorative heading tile: warm squared badge, distinct from round category images. */
.shop-category-rail-art.shop-category-heading-art{position:relative;border-radius:18px 6px 18px 6px;border:1px solid #f4c78b;background:radial-gradient(circle at 88% 12%,#fff8 0 15%,transparent 16%),linear-gradient(145deg,#fff7ed,#ffedd5 65%,#fed7aa);box-shadow:inset 0 0 0 3px #fff9}
.shop-category-heading-art::after{content:"";position:absolute;right:6px;top:6px;width:5px;height:5px;border-radius:50%;background:#d97706}
.shop-category-rail-heading .shop-category-rail-title{color:#9a3412;font-weight:800;letter-spacing:.15px}

