/* Scoped styling so other WooCommerce product/category grids are unaffected. */
.hprc-related-categories { clear: both; margin: 40px 0 30px; width: 100%; }
.hprc-related-categories .hprc-heading { margin: 0 0 20px; }
.hprc-related-categories .hprc-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hprc-related-categories .hprc-grid::before,
.hprc-related-categories .hprc-grid::after { content: none !important; }
.hprc-related-categories .hprc-card { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; min-width: 0; list-style: none !important; }
.hprc-related-categories .hprc-link { display: block; height: 100%; text-decoration: none; color: inherit; }
.hprc-related-categories .hprc-image-wrap { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: #f6f6f6; border-radius: 6px; }
.hprc-related-categories .hprc-image { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.hprc-related-categories .hprc-name { display: block; margin-top: 12px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.hprc-related-categories .hprc-count { display: block; margin-top: 3px; opacity: .7; font-size: .9rem; }
.hprc-related-categories .hprc-link:hover .hprc-name,
.hprc-related-categories .hprc-link:focus-visible .hprc-name { text-decoration: underline; }
@media screen and (max-width: 991px) {
    .hprc-related-categories .hprc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media screen and (max-width: 767px) {
    .hprc-related-categories .hprc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
