$small: 600px; $medium: 960px; .product-card { display: flex; flex-direction: column; height: 95%; margin: 10%; box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),0px 1px 1px 0px rgba(0, 0, 0, 0.14),0px 1px 3px 0px rgba(0, 0, 0, 0.12); transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); } .card-content { height: 100%; display: flex; flex-direction: column; } .card-img-container { .card-img { max-width: 100%; height: auto; } } .card-details-container { height: max-content; padding-top: 15%; } .card-info { display: flex; flex-direction: column; justify-content: center; align-items: center; flex-grow: 1; padding-top: 5%; .name { font-size: 2.5vh; font-weight: lighter; } .description { padding-top: 3vh; } .price{ padding-top: 5vh; font-size: 2vh; color: #0F1111; font-weight: 500; } } .card-buttons { display: flex; flex-direction: column; justify-content: center; align-items: center; padding-bottom: 5%; button { margin: 2%; width: 50%; @media screen and (max-width: $medium) { width: 65%; } @media screen and (max-width: $small) { width: 80%; } } }