<div class="product-card">
        <img src="https://images.unsplash.com/photo-1525904097878-94fb15835963?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80" alt="">
        <div class="product-name">
            <h1>EARTH</h1>
            <p>Mango Cold Pressed Juice</p>
            <p class="price">Rs. 260.00<span>
            Rs. 300.00</span></p>
        </div>
        <p class="sale-logo">SALE</p>
    </div>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    display: grid;
    place-items: center;
}

.product-card {
    background-color: #ffffff;
    width: 350px;
    position: relative;
    height: 280px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
}

.product-card img {
    height: 180px;
    width: 100%;
}

.product-name {
    padding: 0 10px;
}

.product-name h1 {
    margin: 5px 0;
    font-size: 20px;
}

.product-name p {
    color: #333232;
}

.product-name .price {
    color: #152553;
    margin: 5px 0;
    font-weight: 500;
}

.product-name .price span {
    color: #000000;
    text-decoration: line-through;
    margin: 0 10px;
}

.sale-logo {
    background-color: #152553;
    color: #ffffff;
    height: 20px;
    width: 60px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    position: absolute;
    top: 10px;
    border-radius: 2px;
    right: 10px;
    text-align: center;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.