.medon-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
}

.medon-product-card {
    min-width: 0;
    width: 100%;
    margin: 0;
}

.medon-product-card-link {
    display: block;
    text-decoration: none;
}

.medon-product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f2f2;
}

.medon-product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.medon-product-card-title {
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: inherit;
    text-align: center;
    color: inherit;
}

.medon-product-card-code {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: inherit;
    text-align: center;
    color: inherit;
}

@media (max-width: 1024px) {
    .medon-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .medon-product-grid {
        grid-template-columns: 1fr;
    }
}



.medon-product-card-link:hover .medon-product-card-title,
.medon-product-card-link:hover .medon-product-card-code,
.medon-product-card-link:focus .medon-product-card-title,
.medon-product-card-link:focus .medon-product-card-code {
    color: #008f8b;
}

/* Subcategory grouping: only the right-hand product catalog. */
.medon-product-subcategory {
    padding-top: 8px;
    margin-top: 32px;
    width: 100%;
}
.medon-product-subcategory-title {
    margin: 0 0 24px;
    padding: 0 0 8px;
    border-bottom: 1px solid #c9c9c9;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    color: #3f3f3f;
}
