/* Scoped Products overview cards — no global layout changes. */
.maks-products-overview {
    padding-block: .5rem 2rem;
}
.maks-products-overview > h1 {
    margin: 0 0 1.5rem;
    color: #17365d;
    font: 700 clamp(1.7rem, 3vw, 2.25rem)/1.2 Arial, Helvetica, sans-serif;
}
.maks-products-overview .maks-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.maks-products-overview .maks-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    color: #17365d;
    background: #fff;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgb(23 54 93 / 5%);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.maks-products-overview .maks-category-card:hover {
    color: #17365d;
    border-color: #2874b8;
    box-shadow: 0 5px 16px rgb(23 54 93 / 12%);
}
.maks-products-overview .maks-category-card:focus-visible {
    outline: 3px solid #2874b8;
    outline-offset: 4px;
}
.maks-products-overview .maks-category-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    padding: 1.5rem;
    background: #fff;
    box-sizing: border-box;
}
.maks-products-overview .maks-category-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 190px;
    object-fit: contain;
}
.maks-products-overview .maks-category-card__media svg {
    width: 65%;
    height: 65%;
    max-height: 140px;
    color: #2874b8;
}
.maks-products-overview .maks-category-card h2 {
    margin: 0;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #edf0f5;
    font: 600 1.1rem/1.4 Arial, Helvetica, sans-serif;
    overflow-wrap: anywhere;
}
.maks-products-overview .maks-category-card:hover h2 {
    text-decoration: underline;
    text-underline-offset: .2em;
}
@media (max-width: 991.98px) {
    .maks-products-overview .maks-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .maks-products-overview .maks-category-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .maks-products-overview .maks-category-card {
        transition: none;
    }
}
