/* Blog categories page: reuses the .categories card/.categories-body/.categories-list
   layout from the product categories page, but uses entirely separate class names for
   the card head (blog-category-head/blog-category-link) instead of reusing
   .categories-head/.categories-main-link - those are designed to sit over a banner
   image (absolute-positioned white text, dark gradient overlay) which blog categories
   don't have. Using distinct names avoids any CSS specificity/load-order fight with
   the compiled theme stylesheet. */
/* Show root categories as a 3-up grid instead of the product category page's
   one-full-width-row-per-category layout. The base .category-layout-page/.categories
   rules load AFTER this file (main-ltr.css comes later in the page <head>), so with
   equal selector specificity they'd otherwise win - !important is used deliberately
   here, scoped to this page only, to force the grid layout regardless of load order. */
.category-layout-page {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem !important;
}

@media (max-width: 991.98px) {
    .category-layout-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .category-layout-page {
        grid-template-columns: 1fr;
    }
}

.category-layout-page .categories {
    flex-flow: column !important;
    margin: 0 !important;
}

.blog-category-head {
    background-color: #f5f5f5;
    border-radius: 12px;
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.blog-category-link {
    color: var(--brand-color);
    font-size: 1.25rem;
    font-weight: bold;
}

.blog-category-link:hover {
    color: var(--brand-color);
    text-decoration: underline;
}

.categories-count {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: 1rem;
    background-color: var(--brand-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: normal;
    vertical-align: middle;
}

.categories-list-link .categories-count,
.categories-list-bullet-link .categories-count {
    background-color: transparent;
    color: #999;
    padding: 0;
}
