Hi, nice solution. If you want to have the same space between sections in the card you can use flex: 1 in each container. Also you can use grid (I prefer it for this cases):
.card{
display: grid;
grid-template-columns: repeat(2,1fr);
}
Just verify in the card are two main sections
<div class="card">
<div> </div>
<div> </div>
</card>
You can change the column size in grid, for example 3 columns:
grid-template-columns: 1fr 2fr 1fr;
In case of media queries:
A common config:
@media(min-width: 480px){
/* From a cell phone to a bigger screen*/
}
@media(min-width: 768px){
/*From a tablet to a larger screen*/
}
@media(min-width: 1140px){
/* From a laptop to a larger screen */
}
@media(min-width: 1400px){
/* more...*/
}
You always focus in mobile view and use a break point(media querie) to change the distribution, example:
.product_card{
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr 1fr;
}
@media screen and (min-width: 480px){
.product_card{
grid-template-columns: 1fr 1fr;
}
}