/* Catalog layout. Cards share the homepage component and palette. */
.catalog-page{--catalog-accent:#7556a8;--catalog-muted:#74798a;--catalog-line:#e8e7ef}
.catalog-page .site-shell{background:#fafafd}
.catalog-page .container{width:calc(100% - 64px)}
.catalog-page .header{border-bottom:1px solid var(--catalog-line);background:#ffffffa6}
.catalog-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:32px;padding-top:28px;padding-bottom:48px;align-items:start}
.catalog-content{min-width:0}
.catalog-sidebar{background:#fff;border:1px solid var(--catalog-line);border-radius:20px;padding:18px 10px 12px;position:sticky;top:20px}
.filter-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px 19px;font-size:12px;font-weight:750;color:#414052}
.filter-heading>span:last-child{font-size:22px;color:#9986b8;line-height:1}
.catalog-sidebar details{margin:0 0 14px;border-top:1px solid #efedf4;padding-top:5px}
.catalog-sidebar summary{display:flex;align-items:center;justify-content:space-between;padding:13px 9px;list-style:none;font-size:12px;font-weight:750;cursor:pointer;color:#454453}
.catalog-sidebar summary::-webkit-details-marker{display:none}
.catalog-sidebar summary:after{content:'';width:6px;height:6px;border-right:1.5px solid #9691a4;border-bottom:1.5px solid #9691a4;transform:rotate(45deg);margin-right:4px}
.catalog-sidebar details[open]>summary:after{transform:rotate(225deg)}
.category-option{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:10px;font-size:12px;text-align:left;color:#666576;transition:background .18s,color .18s}
.category-option .category-icon{width:29px;height:29px;display:grid;place-items:center;background:#f5f3f8;border-radius:9px;font-size:19px;flex-shrink:0}
.category-option small{margin-left:auto;font-size:10px;color:#94909f;font-variant-numeric:tabular-nums}
.category-option:hover{background:#f6f3fa}
.category-option.selected{background:#eee8f8;color:#694799;font-weight:700}
.category-option.selected .category-icon{background:#fff9}
.category-option.selected small{color:#8469a9}
.age-option{display:flex;align-items:center;gap:9px;padding:7px 10px;font-size:12px;cursor:pointer;color:#686777;border-radius:9px}
.age-option:hover,.age-option:has(input:checked){background:#f6f3fa}
.age-option img{width:26px;height:26px;object-fit:contain;background:#f5f1f9;border-radius:50%}
.age-option small{font-size:10px;color:#9993a4;margin-left:2px}
.age-option input{width:15px;height:15px;margin-left:auto;accent-color:var(--catalog-accent);flex-shrink:0}
.reset-filters{font-size:11px;color:#877996;width:100%;padding:9px;border:1px dashed #e5dfed;border-radius:9px}
.reset-filters:hover{background:#f8f5fc;color:#694799}
.breadcrumbs{display:flex;gap:10px;align-items:center;color:#aaa4b5;font-size:11px;margin:0 0 18px}
.breadcrumbs a{color:#81758f}
.catalog-intro{position:relative;display:flex;align-items:center;min-height:218px;padding:26px 30px;margin-bottom:22px;background:linear-gradient(115deg,#f0ebfa 0%,#f2effa 50%,#eaf3fa 100%);border:1px solid #ece6f5;border-radius:22px;overflow:hidden}
.catalog-intro>div{position:relative;z-index:1;flex:1;min-width:0}
.catalog-eyebrow{font-size:9px;font-weight:750;letter-spacing:1.7px;color:#8b73a9}
.catalog-intro h1{font-size:clamp(27px,2.5vw,37px);line-height:1.15;letter-spacing:-1.15px;font-weight:800;color:#363046;margin:10px 0 12px;text-wrap:balance}
.catalog-intro p{font-size:13px;line-height:1.75;color:#81748f;margin:0}
.catalog-intro>img{width:30%;height:170px;object-fit:cover;object-position:center;border-radius:28px;mix-blend-mode:multiply;transform:rotate(-5deg);margin:0 -8px 0 12px}
.catalog-benefits{display:flex;gap:15px;flex-wrap:wrap;margin-top:17px;font-size:10px;font-weight:650;color:#8b779f}
.catalog-benefits span{display:flex;align-items:center;gap:6px}
.catalog-benefits span:before{content:'✓';font-size:11px;color:#8b739f}
.catalog-search{display:flex;align-items:center;gap:12px;height:52px;padding:4px 5px 4px 17px;background:#fff;border:1px solid #e3dfeb;border-radius:14px;margin-bottom:24px;box-shadow:0 3px 10px #43305b03;transition:border-color .18s,box-shadow .18s}
.catalog-search>span{display:flex;color:#a190b5}
.catalog-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.catalog-search input{min-width:0;flex:1;background:transparent;border:0;outline:none;font:inherit;font-size:12px;color:#484354}
.catalog-search input::placeholder{color:#a19ba9}
.catalog-search:focus-within{border-color:#ac95ca;box-shadow:0 0 0 3px #a98bc315}
.catalog-search button{height:40px;padding:0 22px;border-radius:10px;background:#795aa9;color:#fff;font-size:12px;font-weight:700}
.catalog-search button:hover{background:#674692}
.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px}
.catalog-sorts{display:flex;padding:4px;gap:3px;background:#eeedf4;border-radius:11px}
.catalog-sorts button{font-size:11px;color:#8b8199;padding:9px 12px;border-radius:8px;white-space:nowrap;transition:background .18s,color .18s}
.catalog-sorts button.selected{color:#715296;background:#fff;box-shadow:0 2px 5px #5038630c;font-weight:700}
.catalog-sorts button:hover{color:#654386}
#result-count{font-size:11px;color:#99909f;font-variant-numeric:tabular-nums;white-space:nowrap}
#active-filters:empty{display:none}
#active-filters{display:flex;flex-wrap:wrap;gap:7px;margin:-3px 0 19px}
#active-filters button{background:#efe9f6;color:#775c93;border:1px solid #e8dfef;font-size:11px;border-radius:999px;padding:6px 11px}
.catalog-page .catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:20px 16px}
.catalog-grid .coloring-card{display:flex;flex-direction:column;min-width:0;height:100%;border:1px solid #e7e3ed;border-radius:15px;background:#fff;box-shadow:0 2px 5px #45335803;transition:transform .2s,box-shadow .2s,border-color .2s}
.catalog-grid .coloring-card:hover{transform:translateY(-3px);border-color:#cfc0e0;box-shadow:0 9px 22px #563c7910}
.catalog-grid .card-picture{width:100%;aspect-ratio:1/1;padding:8px 7px 0;border-bottom:0;background:#fff}
.catalog-grid .card-body{display:flex;flex:1;flex-direction:column;padding:12px;min-width:0}
.catalog-grid .card-body h3{font-size:14px;line-height:1.4;min-height:2.8em;margin:0 0 8px;white-space:normal;overflow-wrap:break-word}
.catalog-grid .card-open{background:#eae6fc;color:#6550a6;border:0;border-radius:999px;box-shadow:none;font-size:12px;line-height:1.4;min-height:36px;margin-top:8px;font-weight:700}
.catalog-grid .card-open:hover{background:#dfd8f7;color:#57418f}
.catalog-grid .card-favorite{color:#8363ae}
.catalog-grid .rating-stars-fill{color:#cf951f}
.catalog-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--catalog-line);padding-top:24px;margin-top:28px}
.catalog-bottom nav{display:flex;gap:6px}
.catalog-bottom nav button{width:36px;height:36px;background:#fff;border:1px solid #e7e1ed;border-radius:10px;color:#8b7d9b;font-size:12px}
.catalog-bottom nav button[aria-current=page]{background:#7b5bac;border-color:#7b5bac;color:#fff;box-shadow:0 3px 7px #70549e22}
.catalog-bottom nav button:disabled{opacity:.35;cursor:default}
.catalog-bottom label{font-size:11px;color:#92879e}
.catalog-bottom select{margin-left:7px;padding:8px;border:1px solid #e5deec;border-radius:9px;background:#fff;color:#756882}
.catalog-empty{text-align:center;padding:65px 15px;background:#f5f1fa;border-radius:18px;border:1px dashed #ded2eb}
.catalog-empty>span{font-size:42px;color:#b19dc9}
.catalog-empty h2{font-size:22px;color:#625073;margin:12px 0}
.catalog-empty p{font-size:13px;color:#93849e;margin-bottom:20px}
.catalog-page footer{border-top:1px solid var(--catalog-line);background:#fff9}
.catalog-page button:focus-visible,.catalog-page a:focus-visible,.catalog-page select:focus-visible{outline:3px solid #ac93c8;outline-offset:3px}
.suggestions>a{background:#fff;color:#62697a;box-shadow:inset 0 0 0 1px #e9eaf0;font-size:12px;padding:4px 9px;border-radius:20px;line-height:1.5}
@media(max-width:1100px){.catalog-layout{grid-template-columns:185px minmax(0,1fr);gap:22px}.catalog-page .desktop-nav{gap:0}.catalog-page .desktop-nav a{padding:8px}.catalog-page .brand{font-size:29px}.catalog-intro{padding:23px;min-height:210px}.catalog-intro>img{width:27%;height:145px}.catalog-intro h1{font-size:29px}.catalog-toolbar{flex-wrap:wrap;gap:12px}.catalog-sidebar{padding:15px 7px 10px}.filter-heading{font-size:11px}.category-option{gap:7px;font-size:11px;padding:8px}.age-option{padding:7px 8px;font-size:11px}}
@media(max-width:760px){.catalog-page .site-shell{width:100%;border-radius:0}.catalog-page .container{width:calc(100% - 32px)}.catalog-layout{display:flex;flex-direction:column;gap:18px;padding-top:18px}.catalog-sidebar{position:static;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border-radius:15px}.filter-heading{display:none}.catalog-sidebar details{margin:0;border:0;background:#f8f6fb;border-radius:9px;padding:0;align-self:start}.catalog-sidebar summary{padding:10px}.catalog-sidebar .reset-filters{grid-column:1/-1;width:auto;justify-self:end;border:0;padding:3px 6px;font-size:10px}.catalog-content{width:100%}.breadcrumbs{margin-bottom:13px}.catalog-intro{min-height:185px;padding:21px;margin-bottom:17px;border-radius:18px}.catalog-intro h1{font-size:29px}.catalog-intro>img{width:25%;height:120px;margin-left:0}.catalog-intro p{font-size:12px}.catalog-eyebrow{font-size:8px;letter-spacing:1.2px}.catalog-benefits{font-size:9px;gap:12px;margin-top:13px}.catalog-search{margin-bottom:18px;height:49px;padding-left:12px;gap:9px}.catalog-search button{height:37px;padding:0 15px}.catalog-search input{font-size:11px}.catalog-sorts button{font-size:10px;padding:9px 11px}.catalog-toolbar{margin-bottom:17px}.catalog-page .header-inner{height:74px}.catalog-page .brand{font-size:27px}.catalog-page .pencil-logo{width:34px;height:46px}.catalog-bottom{flex-wrap:wrap}.catalog-page .catalog-grid{gap:14px}}
@media(max-width:480px){.catalog-intro>img{display:none}.catalog-intro{min-height:185px}.catalog-page .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-grid .card-body{padding:10px}.catalog-grid .card-body h3{font-size:12px}.catalog-grid .card-open{font-size:10px}.catalog-grid .rating-value,.catalog-grid .rating-votes{font-size:10px}.catalog-grid .card-favorite{width:36px;height:36px;padding:8px;top:5px;right:5px}.catalog-grid .card-favorite svg{width:20px;height:20px}}
@media(prefers-reduced-motion:reduce){.catalog-page *{scroll-behavior:auto!important;transition:none!important}}
@media print{.catalog-layout,.catalog-page .header,.catalog-page footer{display:none!important}}
/* Keep navigation available while browsing long result lists. */
@media(min-width:761px){.catalog-page .site-shell{overflow:clip}.catalog-sidebar{max-height:calc(100vh - 40px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ded4e9 transparent}}
.catalog-intro p{color:#746681}.catalog-eyebrow{color:#7e649e}.catalog-benefits{color:#7a648f}
#result-count{color:#7e7489}.catalog-sorts button{color:#776b87}.catalog-search input::placeholder{color:#81778d}
@media(max-width:760px){.catalog-page .site-shell{overflow:hidden}}

/* Compact line icons for desktop navigation. */
@media screen and (min-width:761px) and (max-width:1023px){
.catalog-page .desktop-nav{gap:4px}
.catalog-page .desktop-nav a{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:9px 10px}
.catalog-page .desktop-nav a::before{content:"";width:17px;height:17px;flex:0 0 17px;background:currentColor;opacity:.85;mask:var(--nav-icon) center/contain no-repeat;-webkit-mask:var(--nav-icon) center/contain no-repeat}
.catalog-page .desktop-nav a:nth-child(1){--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207M5%209v11h5v-6h4v6h5V9%22%2F%3E%3C%2Fsvg%3E")}
.catalog-page .desktop-nav a:nth-child(2){--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%222%22%2F%3E%3C%2Fsvg%3E")}
.catalog-page .desktop-nav a:nth-child(3){--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%2020v-2a6%206%200%200%201%2012%200v2H3Zm14-6a4%204%200%200%201%204%204v2h-3%22%2F%3E%3C%2Fsvg%3E")}
.catalog-page .desktop-nav a:nth-child(4){--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205v16M12%205C9%203%205%203%202%204v15c4-1%207-1%2010%202%203-3%206-3%2010-2V4c-3-1-7-1-10%201Z%22%2F%3E%3C%2Fsvg%3E")}
.catalog-page .desktop-nav a:nth-child(5){--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%2214%22%20height%3D%2214%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M17%204H6a3%203%200%200%200-3%203v10M11%2012h6m-6%204h4%22%2F%3E%3C%2Fsvg%3E")}
}

@media screen and (min-width:761px) and (max-width:1023px){
 .catalog-page .header-inner{height:auto;min-height:112px;display:flex;flex-wrap:wrap;gap:8px 14px;padding-top:12px;padding-bottom:12px}
 .catalog-page .brand{margin-right:auto}
 .catalog-page .desktop-nav{order:10;flex:0 0 100%;justify-content:center;gap:10px;margin:0}
 .catalog-page .desktop-nav a{font-size:13px;padding:9px 12px;border-radius:12px;gap:7px}
 .catalog-page .desktop-nav .active{background:#eee8f8;color:#694799}
}

.catalog-toolbar{justify-content:flex-end;margin-bottom:16px}
/* Allow category and age copy to wrap without squeezing the illustration. */
.catalog-intro h1{overflow-wrap:break-word}.catalog-intro p{max-width:620px}.catalog-intro>img{flex-shrink:0;object-fit:contain;transform:none}.breadcrumbs{flex-wrap:wrap;line-height:1.5}.breadcrumbs>span:last-child{min-width:0}
@media(min-width:761px){.catalog-intro{min-height:230px}.catalog-intro>img{width:26%}}

.age-all-icon{width:26px;height:26px;display:grid;place-items:center;flex-shrink:0;background:#f0eaf8;color:#8363ae;border-radius:50%;font-size:16px}.age-all{font-weight:650}
/* Clear page hierarchy: introduction, then filters and results on one baseline. */
.catalog-page{--catalog-muted:#626879;--catalog-line:#e1e4ed;color:#303548}
.catalog-page .site-shell{background:#f8f9fc}
.catalog-layout{grid-template-columns:224px minmax(0,1fr);gap:24px;padding-top:24px;padding-bottom:40px}
.catalog-content{display:contents}
.catalog-layout>.catalog-sidebar{grid-column:1;grid-row:3 / 7;position:static;max-height:none;overflow:visible;align-self:start}
.catalog-layout .breadcrumbs{grid-column:1/-1;grid-row:1;margin:0;font-size:12px;color:#737b8e;gap:10px}
.breadcrumbs a{color:#626b80}.breadcrumbs>span:last-child{max-width:100%}
.catalog-intro{grid-column:1/-1;grid-row:2;margin:0;min-height:180px;padding:24px 32px;gap:32px;background:#f0edf8;border:1px solid #e5e0ef;border-radius:18px}
.catalog-eyebrow{display:none}
.catalog-intro h1{font-size:clamp(27px,2.6vw,36px);line-height:1.25;letter-spacing:-.8px;color:#303548;margin:0 0 12px;max-width:850px}
.catalog-intro p{font-size:14px;line-height:1.75;color:#616579;max-width:760px}
.catalog-intro>img{width:170px;height:145px;margin:0;object-fit:contain;border-radius:16px}
.catalog-search{grid-column:2;grid-row:3;margin:0;height:52px;border-color:#dce0e9;border-radius:12px;box-shadow:none;padding-left:16px}
.catalog-search input{font-size:14px;color:#303548}.catalog-search input::placeholder{color:#747c8f}
.catalog-search button{font-size:13px;border-radius:8px;padding:0 22px;background:#7254a5}
#active-filters{grid-column:2;grid-row:4;margin:-8px 0;gap:8px}
#active-filters:empty{display:none}
#active-filters button{font-size:12px;min-height:32px;background:#eee8f7;border-color:#ded4eb;color:#684b8b;padding:6px 12px}
.catalog-page .catalog-grid{grid-column:2;grid-row:5;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:20px}
.catalog-empty{grid-column:2;grid-row:5;padding:50px 24px}
.catalog-bottom{grid-column:2;grid-row:6;margin:0;padding-top:20px;border-color:#dfe3ed}
.catalog-bottom label{font-size:12px;color:#656e81}.catalog-bottom nav button{width:40px;height:40px;font-size:13px}
.catalog-sidebar{padding:18px 12px 12px;border-color:#dfe3ec;border-radius:14px;box-shadow:0 2px 5px #30354803}
.filter-heading{padding:0 10px 16px;font-size:14px;color:#363e52;line-height:1.5}
.filter-heading>span:last-child{display:none}
.catalog-sidebar details{padding-top:4px;margin-bottom:12px;border-color:#eaecf2}
.catalog-sidebar summary{font-size:14px;color:#353d50;padding:12px 10px;min-height:44px}
.age-option{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;gap:8px;min-height:38px;padding:6px 10px;font-size:13px;border-radius:8px;color:#515b70;line-height:1.4}
.age-option img,.age-all-icon{width:24px;height:24px}.age-option input{margin:0;width:17px;height:17px}.age-option small{font-size:11px;color:#768095;white-space:nowrap}
.age-option:has(input:checked){background:#eee8f8;color:#634a8a}.age-option:hover{background:#f3eff9}
.category-option{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:8px;min-height:40px;padding:7px 10px;font-size:13px;line-height:1.4;border-radius:8px;color:#515b70}
.category-option .category-icon{width:26px;height:26px;border-radius:7px;font-size:18px;background:transparent}
.category-option small{font-size:11px;color:#768095;font-weight:400}.category-option.selected{background:#eee8f8;color:#634a8a}
.reset-filters{min-height:38px;border:1px solid #e2e5ee;background:#fafbfe;color:#6b6380;font-size:12px;border-radius:8px}
.catalog-grid .coloring-card{border:1px solid #dee3ed;border-radius:14px;box-shadow:none;overflow:hidden}
.catalog-grid .coloring-card:hover{border-color:#b8a7d0;box-shadow:0 6px 18px #3035480a;transform:translateY(-2px)}
.catalog-grid .card-picture{padding:10px 10px 0}.catalog-grid .card-body{padding:14px}
.catalog-grid .card-body h3{font-size:14px;line-height:1.5;min-height:3em;margin-bottom:10px;color:#343b4e;font-weight:700}
.catalog-grid .card-chips{gap:5px;margin-bottom:12px}.catalog-grid .card-chips>span{font-size:11px;padding:3px 7px;line-height:1.35}
.catalog-grid .category-chip{background:#f0ebf8;color:#6d568e}.catalog-grid .age-chip{background:#f1f4f8;color:#647084;border:1px solid #e6eaf0}
.catalog-grid .card-rating{min-height:24px}.catalog-grid .rating-value{font-size:12px;color:#566077}.catalog-grid .rating-votes{font-size:10px}
.catalog-grid .card-open{min-height:40px;margin-top:10px;font-size:12px;line-height:1.4;background:#ece6fa;color:#665095}
.catalog-grid .card-favorite{width:38px;height:38px;padding:9px;top:8px;right:8px}.catalog-grid .card-favorite svg{width:21px;height:21px}
@media(min-width:1500px){.catalog-page .catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){.catalog-layout{grid-template-columns:210px minmax(0,1fr);gap:20px}.catalog-page .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.catalog-grid .card-body{padding:12px}.catalog-intro p{font-size:13px}.category-option,.age-option{font-size:12px}}
@media(min-width:761px) and (max-width:900px){.catalog-page .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .catalog-page .container{width:calc(100% - 32px)}
 .catalog-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding-top:18px}
 .catalog-layout .breadcrumbs{grid-column:1;grid-row:1;font-size:11px}
 .catalog-intro{grid-column:1;grid-row:2;min-height:0;padding:22px;gap:14px;border-radius:14px}
 .catalog-intro h1{font-size:26px;letter-spacing:-.5px}.catalog-intro p{font-size:13px;line-height:1.65}
 .catalog-intro>img{width:100px;height:110px}
 .catalog-layout>.catalog-sidebar{grid-column:1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px;background:#fff;border-radius:12px}
 .filter-heading{display:none}.catalog-sidebar details{border:0;margin:0;padding:0;border-radius:8px;background:#f5f3fa}
 .catalog-sidebar summary{font-size:13px;padding:12px;min-height:44px}
 .catalog-sidebar .reset-filters{grid-column:1/-1;justify-self:stretch;min-height:34px;padding:6px;border:0;background:transparent;font-size:12px}
 .age-option,.category-option{font-size:12px;gap:6px;padding:7px 8px}.age-option small{display:none}.category-option small{font-size:10px}
 .catalog-search{grid-column:1;grid-row:4;height:50px}.catalog-search input{font-size:12px}.catalog-search button{font-size:12px;padding:0 16px}
 #active-filters{grid-column:1;grid-row:5;margin:0}
 .catalog-page .catalog-grid{grid-column:1;grid-row:6;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .catalog-empty{grid-column:1;grid-row:6}.catalog-bottom{grid-column:1;grid-row:7;padding-top:18px}
}
@media(max-width:480px){.catalog-intro>img{display:none}.catalog-intro{padding:20px}.catalog-page .catalog-grid{gap:12px}.catalog-grid .card-body{padding:10px}.catalog-grid .card-body h3{font-size:12px}.catalog-grid .card-open{font-size:11px}.catalog-grid .card-picture{padding:8px 6px 0}.catalog-grid .rating-stars{font-size:14px}.catalog-grid .rating-value{font-size:11px}}
.catalog-layout:has(#active-filters:empty) .catalog-grid,.catalog-layout:has(#active-filters:empty) .catalog-empty{grid-row:4}
.catalog-layout:has(#active-filters:empty) .catalog-bottom{grid-row:5}
.catalog-layout:has(#active-filters:empty)>.catalog-sidebar{grid-row:3/6}
@media(max-width:760px){.catalog-layout:has(#active-filters:empty) .catalog-grid,.catalog-layout:has(#active-filters:empty) .catalog-empty{grid-row:5}.catalog-layout:has(#active-filters:empty) .catalog-bottom{grid-row:6}.catalog-layout:has(#active-filters:empty)>.catalog-sidebar{grid-row:3}}
@media(max-width:760px){.catalog-sidebar details[open]{grid-column:1/-1}.catalog-sidebar details[open] .age-option,.catalog-sidebar details[open] .category-option{font-size:13px;padding:8px 12px}.catalog-sidebar details[open] .age-option small{display:inline}}

/* Center pagination beneath the results grid. */
.catalog-page .catalog-bottom{justify-content:center}

/* Keep the result column independent of the height of the filter sidebar. */
.catalog-layout>.catalog-content{display:flex;flex-direction:column;gap:24px;grid-column:2;grid-row:3;align-self:start;min-width:0}
.catalog-layout>.catalog-sidebar,.catalog-layout:has(#active-filters:empty)>.catalog-sidebar{grid-column:1;grid-row:3}
.catalog-content>#active-filters{margin:0}
.catalog-content>.catalog-search,.catalog-content>.catalog-grid,.catalog-content>.catalog-empty,.catalog-content>.catalog-bottom{flex-shrink:0}
@media(max-width:760px){.catalog-layout>.catalog-content{grid-column:1;grid-row:4;gap:18px}.catalog-layout>.catalog-sidebar,.catalog-layout:has(#active-filters:empty)>.catalog-sidebar{grid-column:1;grid-row:3}}

.catalog-page .mobile-nav a.active{background:#eee8f8;color:#694799;border-radius:10px;font-weight:700}

/* Compact grouped category navigation. */
#category-filters .category-option{grid-template-columns:minmax(0,1fr) auto;font-size:14px;min-height:44px;text-decoration:none;gap:8px}
.catalog-sidebar #category-filters .category-group{margin:4px 0;padding:0;border:0;border-radius:8px;background:transparent}
.catalog-sidebar #category-filters .category-group>summary{font-size:14px;line-height:1.4;gap:12px;padding:12px 10px;border-radius:8px}
.catalog-sidebar #category-filters .category-group>summary:after{flex:0 0 6px}
.category-group>summary:hover{background:#f3eff9}
.category-group:has(.selected)>summary{color:#634a8a;background:#f3eff9}
.category-children{margin:2px 0 10px 10px;padding-left:6px;border-left:2px solid #e5dcef}
#category-filters a:focus-visible,.category-group>summary:focus-visible{outline:2px solid #7556a8;outline-offset:2px}
/* One type scale and spacing rhythm throughout the filter panel. */
@media(min-width:761px){.catalog-page .catalog-layout{grid-template-columns:260px minmax(0,1fr)}}
.catalog-page .catalog-sidebar{font-family:inherit;padding:16px 12px 12px;background:#fff;border:1px solid #e5dfed;border-radius:18px;box-shadow:0 4px 20px #51426606}
.catalog-sidebar .filter-heading{display:flex;padding:2px 12px 16px;font-size:16px;font-weight:750;line-height:1.5;color:#363347}
.catalog-sidebar>details{margin:0 0 12px;padding:8px 0 0;border-top:1px solid #eeebf3;background:transparent}
.catalog-sidebar>details>summary{padding:10px 12px;font:inherit;font-size:14px;line-height:1.5;font-weight:700;color:#494156}
.catalog-sidebar summary:after{width:6px;height:6px;flex:0 0 6px;border-color:#9687aa;margin-right:3px}
.catalog-sidebar .age-option,.catalog-sidebar details[open] .age-option,.catalog-sidebar #category-filters .category-option{font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;min-height:44px;padding:9px 12px;border-radius:10px;color:#595365}
.catalog-sidebar .age-option{grid-template-columns:26px minmax(0,1fr) 17px;gap:8px}
.catalog-sidebar .age-option img,.catalog-sidebar .age-all-icon{width:26px;height:26px;background:#f5f1fa}
.catalog-sidebar .age-option small,.catalog-sidebar #category-filters .category-option small{display:inline;font-family:inherit;font-size:12px;line-height:1.5;font-weight:400;color:#82798e;font-variant-numeric:tabular-nums}
.catalog-sidebar .age-option:has(input:checked),.catalog-sidebar #category-filters .category-option.selected{background:#eee7f8;color:#694994;font-weight:600}
.catalog-sidebar .age-option:hover,.catalog-sidebar #category-filters .category-option:hover{background:#f5f1fa}
.catalog-sidebar #category-filters>.category-option{margin-bottom:6px}
.catalog-sidebar #category-filters .category-group{margin:3px 0;border-radius:10px}
.catalog-sidebar #category-filters .category-group>summary{font-family:inherit;font-size:14px;line-height:1.5;font-weight:600;color:#51475f;padding:11px 12px;min-height:44px;gap:10px;border-radius:10px}
.catalog-sidebar #category-filters .category-group>summary{padding:4px 10px 4px 4px}
.category-parent{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:42px;padding:4px 6px;color:inherit;text-decoration:none;border-radius:8px}
.category-parent:hover{text-decoration:none;color:#694994}
.category-parent.selected{color:#694994;font-weight:700}
.category-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:var(--category-icon-bg);color:#7456a8}
.category-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.category-parent:focus-visible{outline:2px solid #7556a8;outline-offset:1px}
.catalog-sidebar #category-filters .category-group[open]{background:#faf8fd}
.catalog-sidebar #category-filters .category-group:has(.selected)>summary{color:#694994;background:transparent}
.catalog-sidebar .category-children{margin:0 8px 8px 21px;padding:2px 0 4px 17px;border-left:1px solid #ded3eb}
.catalog-sidebar #category-filters .category-children .category-option{padding:9px 8px}
.catalog-sidebar .reset-filters{font-family:inherit;font-size:14px;font-weight:500;line-height:1.5;min-height:42px;margin-top:4px;padding:9px 12px;background:#faf8fd;border:1px solid #e7dfef;border-radius:10px;color:#756382}
.catalog-sidebar summary:focus-visible,.catalog-sidebar .age-option:has(input:focus-visible),.catalog-sidebar .reset-filters:focus-visible{outline:2px solid #9979bd;outline-offset:2px}
@media(max-width:760px){.catalog-sidebar .filter-heading{grid-column:1/-1;padding-bottom:6px}.catalog-sidebar>details{border-top:0;padding:0;margin:0}.catalog-sidebar>details>summary{background:#f5f1fa;border-radius:10px}.catalog-sidebar .reset-filters{grid-column:1/-1}}
/* Let the sidebar follow its content rather than stretching to the results. */
@media(min-width:761px){
 .catalog-layout:has(.coloring-card:nth-child(25))>.catalog-content{align-self:stretch;padding-bottom:0;position:relative}
 .catalog-layout:has(.coloring-card:nth-child(25))>.catalog-sidebar{align-self:start}
 .catalog-layout:has(.coloring-card:nth-child(25)) .reset-filters{margin-top:auto}
 .catalog-layout:has(.coloring-card:nth-child(25)) .catalog-grid{flex:1;align-content:stretch;grid-auto-rows:1fr}
 .catalog-layout:has(.coloring-card:nth-child(25)) .catalog-bottom{position:absolute;top:100%;left:0;right:0;margin-top:24px}
 .catalog-layout:has(.coloring-card:nth-child(25)){padding-bottom:124px}
}
.catalog-sidebar #category-filters .category-option.category-all{grid-template-columns:26px minmax(0,1fr)}
