/* User-selected Noutech Duo: 51.2px white icons, 2.2px strokes, vivid panels. */
.category-directory{--duo-blue:#2056e8}
.category-directory .directory-heading{margin-bottom:25px}
.category-directory .directory-heading h1{font-size:25px;line-height:1.3;letter-spacing:-.6px}
.category-directory .categories{grid-template-columns:repeat(7,minmax(0,1fr));gap:20px 10px;align-items:start}
.category-directory .category,.category-directory .category.active{width:100%;max-width:150px;justify-self:center;min-height:0;padding:0;gap:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;border:1px solid #dbe4f2;border-radius:17px;background:#fff;color:#10284b;overflow:hidden;box-shadow:0 4px 0 #edf1f8;transition:border-color .15s,box-shadow .15s}
.category-directory .category-symbol,.category-directory .category.active .category-symbol{position:relative;display:grid;place-items:center;width:100%;height:96px;border-radius:0;background:var(--duo-color,#2159ef)!important;color:#fff!important;isolation:auto;overflow:hidden;flex-shrink:0}
.category-directory .category-symbol::before,.category-directory .category.active::after{content:none!important}
.category-directory .category-symbol svg{display:block;width:51.2px!important;height:51.2px!important;max-width:82%;max-height:88%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.category-directory .category-name{display:flex;align-items:center;justify-content:center;min-height:60px;padding:12px 4px 13px;margin:0;max-width:none;background:#fff;color:#10284b;font-size:13px;line-height:1.4;font-weight:700;white-space:normal;overflow-wrap:anywhere}
.category-directory .category:hover{border-color:#a8bde4;box-shadow:0 4px 0 #dbe6fa}
.category-directory .category.active{border-color:var(--duo-blue);box-shadow:0 4px 0 var(--duo-blue)}
.category-directory .category.active .category-name{color:var(--duo-blue)}
@media(max-width:760px){
 .category-directory .directory-heading{margin-bottom:24px}
 .category-directory .directory-heading h1{font-size:23px}
 .category-directory .categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 9px}
 .category-directory .category,.category-directory .category.active{max-width:none;border-radius:17px;min-height:0;padding:0;gap:0}
 .category-directory .category-symbol,.category-directory .category.active .category-symbol{width:100%;height:90px;border-radius:0}
 .category-directory .category-symbol svg{width:51.2px!important;height:51.2px!important;max-width:86%;max-height:88%}
 .category-directory .category-name{font-size:12px;min-height:55px;padding:10px 3px;line-height:1.4}
}
@media(prefers-reduced-motion:reduce){.category-directory .category{transition:none}}

/* Alpha cutouts sit directly on the card color, without an inner backplate. */
.category-directory .category-symbol,.category-directory .category.active .category-symbol{height:auto;aspect-ratio:203/133}
.category-directory .category-symbol svg{visibility:hidden}
.category-directory .duo-product-art{position:absolute;left:50%;top:50%;width:76%;height:auto;aspect-ratio:310.2857142857143/250;transform:translate(-50%,-50%);display:block;background-image:url('/assets/category-duo-cutouts-v2.webp');background-repeat:no-repeat;pointer-events:none;z-index:1}

/* Compact cards: four columns on phones, with centered, smaller artwork. */
.category-directory .category,.category-directory .category.active{max-width:136px}
.category-directory .category-name{min-height:52px;padding:9px 4px}
.category-directory .categories{gap:16px 10px}
@media(max-width:760px){
 .category-directory .directory-heading{margin-bottom:16px}
 .category-directory .directory-heading h1{font-size:21px}
 .category-directory .categories{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 7px}
 .category-directory .category,.category-directory .category.active{max-width:none;border-radius:13px;box-shadow:0 3px 0 #edf1f8}
 .category-directory .category.active{box-shadow:0 3px 0 var(--duo-blue)}
 .category-directory .category-name{font-size:clamp(11.5px,3.08vw,12px);line-height:1.3;font-weight:600;letter-spacing:-.2px;min-height:44px;padding:5px 3px;overflow-wrap:anywhere;hyphens:auto}
}
@media(max-width:359px){.category-directory .categories{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Compact mobile subcategories, with readable labels and consistent spacing. */
@media(max-width:760px){
 .category-directory .category-subnav{padding:10px;margin-top:12px;border-radius:12px}
 .category-directory .subcategory-heading{margin-bottom:8px;gap:8px}
 .category-directory .subcategory-heading h2{font-size:15px;line-height:1.3}
 .category-directory .subcategory-heading>button{font-size:12px;min-height:32px;padding:5px 6px}
 .category-directory .subcategory-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .category-directory .subcategory-list :is(button,a){font-size:13px;line-height:1.3;font-weight:500;min-height:36px;padding:7px 9px;border-radius:8px;white-space:normal;overflow-wrap:anywhere}
 .category-directory .category-types{margin-top:10px;padding-top:10px}
 .category-directory .category-types h3{font-size:13px;line-height:1.3;margin-bottom:8px}
}
@media(max-width:760px){.category-directory .category-subnav,.category-directory .category-types{scroll-margin-top:12px}}

/* Reuse the catalog navigation slot for returning from results: five items, one row. */
.mobile-nav .categories-return{display:none}
@media(max-width:760px){
 body.catalog-return-visible .mobile-nav .categories-return{display:flex;position:static;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#1d4ed8;font-size:10px;line-height:1.3;font-weight:600;box-shadow:none}
 body.catalog-return-visible .mobile-nav>[data-action="home"]{display:none}
 .mobile-nav .categories-return svg{height:19px;width:19px;transform:none}
 .mobile-nav .categories-return:focus-visible{outline:2px solid #1d4ed8;outline-offset:-2px;border-radius:6px}
 #category-directory{scroll-margin-top:12px}
}


.category-symbol .category-custom-art{display:block;position:relative;object-fit:contain;width:70%;height:70%;margin:auto;max-width:100%;max-height:100%}
