/* Editorial discovery: the same square-cover rhythm as the bestseller shelf. */
.category-discovery{font-family:Ubuntu,Arial,sans-serif;padding:62px 0 44px;background:#fff;color:#101010;scroll-margin-top:76px;overflow:hidden}
.category-discovery-heading{max-width:1050px;margin:0 auto 30px;padding:0 24px;text-align:center}
.category-discovery .category-discovery-heading h2{margin:0;font-family:Ubuntu,Arial,sans-serif;font-size:clamp(32px,3.2vw,48px);font-weight:700;line-height:1.12;letter-spacing:-.025em;scroll-margin-top:95px}
.category-discovery-heading p{margin:16px 0 0;font-size:19px;line-height:1.5;color:#555}
.category-carousel{position:relative;max-width:1920px;margin:0 auto}
.category-viewport{overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:6px;scrollbar-width:none;padding:15px 6px 10px;-webkit-overflow-scrolling:touch;outline-offset:-3px}
.category-viewport::-webkit-scrollbar{display:none}
.category-viewport:focus-visible{outline:2px solid #101010}
.category-track{display:flex;gap:20px;width:max-content;min-width:100%;list-style:none;padding:0;margin:0}
.category-tile{flex:0 0 222px;width:222px;min-width:0;list-style:none;scroll-snap-align:start}
.category-tile a{display:block;text-decoration:none;color:#101010}
.category-art{display:block;aspect-ratio:1;overflow:hidden;border-radius:19px;background:#eee9de;box-shadow:0 2px 5px #00000019,0 1px 2px #00000010;transition:transform .22s ease,box-shadow .22s ease}
.category-art img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.category-name{display:block;margin-top:10px;font:700 15px/1.35 Ubuntu,Arial,sans-serif}
.category-line{display:block;margin-top:5px;font:400 14px/1.4 Ubuntu,Arial,sans-serif;color:#626262}
.category-tile a:focus-visible{outline:3px solid #101010;outline-offset:5px;border-radius:19px}
.category-discovery button{font:inherit;cursor:pointer}
.category-arrow{position:absolute;z-index:2;top:calc(15px + 111px);transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid #ddd;border-radius:50%;background:#fff;color:#101010;box-shadow:0 2px 8px #0002;transition:background .2s}
.category-arrow:hover{background:#ffcb06}
.category-arrow .icon{width:22px;height:22px}
.category-prev{left:10px}.category-prev .icon{transform:rotate(180deg)}.category-next{right:10px}
.category-discovery [hidden]{display:none!important}
.category-dots{display:flex;justify-content:center;align-items:center;gap:2px;margin:8px auto 14px;min-height:26px}
.category-dots button{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;background:transparent;border-radius:50%}
.category-dots button:after{content:"";width:10px;height:10px;border-radius:50%;background:#cfcfcf;transition:background .2s,transform .2s}
.category-dots button[aria-current="true"]:after{background:#292929;transform:scale(1.03)}
.category-discovery .category-all{display:table;margin:0 auto;padding:16px 28px;border-radius:999px;background:#ffcb06;color:#101010;font:700 16px/1.3 Ubuntu,Arial,sans-serif;text-decoration:none;text-align:center;transition:background .2s,transform .2s}
.category-all:hover{background:#efbf00}
.category-discovery :is(button,.category-all):focus-visible{outline:3px solid #101010;outline-offset:4px}
.category-viewport.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.category-viewport.is-dragging a{cursor:grabbing}
@media (hover:hover){.category-tile a:hover .category-art{transform:translateY(-4px);box-shadow:0 8px 20px #00000020}.category-tile a:hover .category-name{text-decoration:underline;text-underline-offset:4px}}
@media(min-width:1600px){.category-track{gap:22px}.category-tile{flex-basis:230px;width:230px}.category-arrow{top:130px}}
@media(max-width:575px){.category-discovery{padding:42px 0 34px}.category-discovery-heading{padding:0 20px;margin-bottom:22px}.category-discovery-heading p{font-size:16px;margin-top:12px}.category-viewport{padding-left:20px;padding-right:20px;scroll-padding-inline:20px}.category-track{gap:17px}.category-tile{flex-basis:180px;width:180px}.category-art{border-radius:15px}.category-name{font-size:14px}.category-arrow{top:105px}.category-discovery .category-all{font-size:15px;padding:14px 24px}}
/* Category interiors use the shared header and the same restrained shelf design. */
.category-page{background:#fff;color:#101010}
.category-page-inner{max-width:1280px;padding:0 32px 72px;margin:0 auto;font-family:Ubuntu,Arial,sans-serif}
.category-page-inner .breadcrumbs{flex-wrap:wrap;line-height:1.5}
.category-page-heading{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:72px;align-items:center;padding:28px 0 48px;border-bottom:1px solid #e8e8e8}
.category-kicker{display:block;font-size:12px;font-weight:700;letter-spacing:.13em;margin-bottom:16px;color:#666}
.category-page .category-page-heading h1{font:700 clamp(32px,3.5vw,49px)/1.09 Ubuntu,Arial,sans-serif;letter-spacing:-.035em;margin:0;max-width:720px}
.category-page-heading>div>p{max-width:720px;font-size:18px;line-height:1.6;color:#555;margin:20px 0 0}
.category-page-art{overflow:hidden;border-radius:18px;box-shadow:0 5px 20px #0002;aspect-ratio:1}
.category-page-art img{display:block;width:100%;height:100%}
.category-jump-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}
.category-jump-links a{display:inline-flex;align-items:center;gap:8px;border:1px solid #dedede;border-radius:999px;padding:10px 14px;font-size:13px;line-height:1.35;text-decoration:none;color:#101010}
.category-jump-links a:hover{border-color:#ffcb06;background:#fff8dc}
.category-jump-links .icon{width:14px;height:14px;flex:none}
.category-shelf{padding-top:38px;scroll-margin-top:95px}
.category-page .category-shelf h2{font:700 clamp(24px,2.3vw,30px)/1.2 Ubuntu,Arial,sans-serif;letter-spacing:-.02em;margin:0 0 10px}
.category-shelf header>p{color:#666;font-size:16px;line-height:1.55;margin:0 0 26px}
.category-book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:26px;list-style:none;padding:0;margin:0}
.category-book{min-width:0;max-width:240px;padding-bottom:12px}
.category-book-cover{display:block;aspect-ratio:1;overflow:hidden;border-radius:14px;background:#f4f3ef;box-shadow:0 2px 6px #0002}
.category-book-cover img{display:block;width:100%;height:100%;object-fit:contain}
.category-page .category-book h3{font:700 16px/1.35 Ubuntu,Arial,sans-serif;letter-spacing:0;margin:12px 0 4px}
.category-book h3 a{color:#101010;text-decoration:none}
.category-book h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.category-book p{margin:0;line-height:1.5}
.category-book-author{font-size:14px;color:#555}
.category-book .category-book-meta{display:flex;align-items:flex-start;gap:6px;margin:8px 0 0;color:#6a6a6a;font-size:12px}
.category-book-meta .icon{width:14px;height:14px;flex:none;margin-top:2px}
.category-book-link{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:9px 0;color:#101010;font-size:13px;font-weight:700;text-decoration:none}
.category-book-link .icon{width:16px;height:16px;flex:none}
.category-book-link:hover{text-decoration:underline;text-underline-offset:4px}
.category-reading-guide{margin-top:44px;padding:28px 32px;background:#f7f6f2;border-radius:16px}
.category-page .category-reading-guide h2{font:700 24px/1.3 Ubuntu,Arial,sans-serif;margin:0 0 14px;letter-spacing:-.02em}
.category-reading-guide p{max-width:950px;font-size:16px;line-height:1.7;color:#555;margin:0 0 12px}
.category-reading-guide>a{display:inline-flex;align-items:center;gap:9px;margin-top:4px;color:#101010;font-size:14px;font-weight:700;text-decoration:none}
.category-reading-guide .icon{width:16px;height:16px}
.category-related{margin-top:48px}
.category-related>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.category-page .category-related h2{font:700 28px/1.2 Ubuntu,Arial,sans-serif;letter-spacing:-.02em;margin:0}
.category-related>div>a{display:inline-flex;gap:8px;align-items:center;font-size:14px;color:#101010;text-decoration:none}
.category-related>div .icon{width:17px;height:17px}
.category-related ul{display:grid;grid-template-columns:repeat(3,minmax(0,230px));gap:24px;list-style:none;padding:0;margin:0}
.category-related .category-tile,.category-index-grid .category-tile{width:auto;max-width:none}
.category-index-heading{text-align:center;padding:28px 0 40px}
.category-page .category-index-heading h1{font:700 clamp(36px,4vw,56px)/1.08 Ubuntu,Arial,sans-serif;letter-spacing:-.035em;margin:0 0 18px}
.category-index-heading p{font-size:18px;color:#555;line-height:1.5;margin:0}
.category-index-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:32px 24px;list-style:none;padding:0;margin:0}
.category-page a:focus-visible{outline:3px solid #101010;outline-offset:4px;border-radius:4px}
@media(max-width:900px){.category-page-heading{grid-template-columns:minmax(0,1fr) 190px;gap:32px}.category-index-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-book-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}}
@media(max-width:575px){.category-page-inner{padding:0 20px 44px}.category-page-heading{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:22px;padding:16px 0 30px}.category-page-art{width:112px;border-radius:12px}.category-kicker{font-size:10px;margin-bottom:12px}.category-page-heading>div>p{font-size:16px;margin-top:16px}.category-jump-links{gap:8px;margin-top:20px}.category-jump-links a{font-size:12px;padding:9px 11px}.category-shelf{padding-top:30px}.category-shelf header>p{font-size:15px;margin-bottom:20px}.category-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.category-book-cover{border-radius:11px}.category-page .category-book h3{font-size:15px}.category-book-author{font-size:12px}.category-book-link{font-size:12px;gap:4px}.category-reading-guide{padding:23px 20px;margin-top:32px}.category-page .category-reading-guide h2{font-size:22px}.category-reading-guide p{font-size:15px}.category-related{margin-top:36px}.category-related ul{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.category-related .category-tile:last-child{display:none}.category-page .category-related h2{font-size:26px}.category-index-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}.category-line{font-size:12px}.category-index-heading{padding:20px 0 30px}.category-index-heading p{font-size:16px}}
@media(prefers-reduced-motion:reduce){.category-discovery *,.category-page *{scroll-behavior:auto!important}.category-art,.category-all,.category-arrow,.category-dots button:after{transition:none!important}.category-tile a:hover .category-art{transform:none}}

.category-selection-links{display:flex;flex-wrap:wrap;gap:16px 28px;margin:36px 0;font-size:14px}.category-selection-links a{color:inherit;text-underline-offset:4px;text-decoration-color:#cba000}
