/* Scoped to illustrated category tiles; product cards remain unchanged. */
.wd-cats.hw-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.wd-cats.hw-category-grid>.hw-category-card{width:auto;max-width:none;min-width:0;margin:0;padding:12px;position:relative;background:#fff;border-radius:16px}
.hw-category-card .wd-cat-inner{height:100%;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}
.hw-category-card .wd-cat-thumb{width:160px;max-width:100%;margin:0 auto 8px;flex-shrink:0}
.hw-category-card .wd-cat-image{display:block;line-height:0}
.hw-category-card .wd-cat-image img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:12px;transform:none}
.hw-category-card .wd-cat-content{position:static;width:100%;padding:0;background:transparent;transform:none;opacity:1}
.hw-category-card .wd-cat-content .wd-entities-title{font-size:16px;line-height:1.35;margin:0 0 5px;overflow-wrap:anywhere;color:#243c29}
.hw-category-card .wd-cat-count{font-size:12px;line-height:1.4;color:#687466}
.hw-category-card .category-link{position:absolute;inset:0;z-index:2;border-radius:16px}
.hw-category-card:focus-within{outline:2px solid #668047;outline-offset:3px}
@media(max-width:600px){
 .wd-cats.hw-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .wd-cats.hw-category-grid>.hw-category-card{padding:10px 8px;border-radius:13px}
 .hw-category-card .wd-cat-thumb{width:120px;margin-bottom:7px}
 .hw-category-card .wd-cat-content .wd-entities-title{font-size:14px;line-height:1.35}
 .hw-category-card .wd-cat-count{font-size:11px}
}
