/* Homepage-only horizontal shelves. Preserve the original cards and section styles. */
#books>.wrap,#things>.wrap{width:min(100% - 152px,1440px)}
.carousel-shell{position:relative}.books-shell{max-width:950px}
.carousel-rail{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x mandatory}
.carousel-rail::-webkit-scrollbar{display:none}
.book-grid.favorites-preview.carousel-rail{display:flex;gap:clamp(10px,1.8vw,28px);max-width:none}
.favorites-preview>.book-tile,.favorites-preview>.collection-end{flex:0 0 calc((100% - 3 * clamp(10px,1.8vw,28px))/4);scroll-snap-align:start}
.things-home .things-grid.carousel-rail{display:flex;gap:1px}
.things-grid.carousel-rail>.thing-card,.things-grid.carousel-rail>.collection-end{flex:0 0 calc((100% - 3px)/4);scroll-snap-align:start}
.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid currentColor;background:transparent;color:inherit;cursor:pointer;z-index:1;transition:background .18s,color .18s}
.carousel-arrow.prev{left:-60px}.carousel-arrow.next{right:-60px}
.carousel-arrow svg{width:20px;height:20px;display:block;overflow:visible;pointer-events:none}
.carousel-arrow:hover:not(:disabled){background:var(--ink);color:var(--paper)}
.things-home .carousel-arrow:hover:not(:disabled){background:var(--paper);color:var(--ink)}
.carousel-arrow:disabled{opacity:.3;cursor:default}
.collection-end{background:#f7f5ee;color:#0a0818;padding:20px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid #aaa9b1;min-height:285px}
.collection-end small{font:10px/1.5 var(--mono)}
.collection-end strong{font:clamp(23px,2.6vw,40px)/1.05 var(--display);letter-spacing:-.045em}
.collection-end>span{display:flex;align-items:flex-end;gap:8px;justify-content:space-between;font-size:12px;line-height:1.5}.collection-end b{font:38px/1 var(--sans)}
.things-home .collection-end{border:0}.carousel-rail:focus-visible{outline:3px solid #ff7443;outline-offset:4px}
@media(max-width:700px){#books>.wrap,#things>.wrap{width:calc(100% - 112px)}.favorites-preview>.book-tile,.favorites-preview>.collection-end,.things-grid.carousel-rail>.thing-card,.things-grid.carousel-rail>.collection-end{flex-basis:85%}.carousel-arrow{width:36px;height:44px}.carousel-arrow.prev{left:-44px}.carousel-arrow.next{right:-44px}.carousel-arrow svg{width:18px;height:18px}.collection-end{min-height:290px}.collection-end strong{font-size:30px}.books-bottom .btn,.things-home-bottom .btn{font-size:10px;letter-spacing:.03em;padding:14px 12px;gap:10px}}
@media(prefers-reduced-motion:reduce){.carousel-arrow{transition:none}}
