/* Category cards, scoped to the editable content area of the Expression template. */
.ketron-category-title {
    margin: 0 0 12px;
    font: bold 1.6em/1.25 Arial, Helvetica, sans-serif;
    color: #252525;
}
.ketron-category-intro { margin: 0 0 22px; line-height: 1.5; }
.ketron-grid-heading {
    margin: 26px 0 14px;
    font: bold 1.15em/1.3 Arial, Helvetica, sans-serif;
    color: #333;
}
.ketron-model-reference { margin-top: 28px; padding-top: 16px; border-top: 1px solid #ddd; }
.ketron-model-reference summary { cursor: pointer; font-weight: bold; }
.ketron-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    clear: none;
}
.ketron-product-grid > li { margin: 0; padding: 0; min-width: 0; }
.ketron-product-grid a.ketron-product-card,
.ketron-product-grid a.ketron-product-card:visited {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    padding: 16px;
    border: 1px solid #d5d5d5;
    border-top: 4px solid #b61314;
    border-radius: 5px;
    background: #fff;
    color: #2d2e2e;
    text-decoration: none;
}
.ketron-product-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin: 0 0 16px;
    border: 0;
}
.ketron-product-card h2 {
    margin: 0 0 7px;
    font: bold 1.25em/1.25 Arial, Helvetica, sans-serif;
    color: #252525;
}
.ketron-product-card p { margin: 0 0 16px; line-height: 1.4; }
.ketron-product-card .ketron-product-link {
    margin-top: auto;
    padding-top: 4px;
    color: #9c1818;
    font-weight: bold;
}
.ketron-product-grid a.ketron-product-card:hover {
    border-color: #b61314;
    background: #faf7f7;
    text-decoration: none;
}
.ketron-product-card:hover .ketron-product-link { text-decoration: underline; }
.ketron-product-grid a.ketron-product-card:focus-visible {
    outline: 3px solid #174d85;
    outline-offset: 3px;
}
@media (max-width: 420px) {
    .ketron-product-grid { grid-template-columns: 1fr; }
}

/* Keep category content independent of the legacy template's floated sidebar. */
.ketron-category { display: flow-root; }
.ketron-featured-bundle { display: flow-root; }
.ketron-featured-bundle .ketron-featured-offer { clear: none; }
@media (min-width: 1000px) {
    .ketron-featured-bundle .ketron-featured-offer .scan-product-image {
        float: left;
        width: 190px;
        margin: 0 22px 12px 0;
    }
    .ketron-featured-offer .scan-seller { clear: both; padding-top: 8px; }
}
