offers
Page: Product Pages (Optimized for Conversions)


Snippet Code
<!-- Font Awesome CDN for WhatsApp icon -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
<style>
.offers-section {
max-width: 600px;
margin: 2rem auto;
font-family: 'Arial', sans-serif;
padding: 1rem;
}
.offers-title {
background-color: #cf91d1;
color: #fff;
font-size: 18px;
font-weight: bold;
text-align: center;
padding: 0.8rem 1rem;
border-radius: 30px;
margin-bottom: 1rem;
}
.offer-box {
background-color: #cf91d1;
color: #fff;
border-radius: 50px;
/* padding: 1rem 1.5rem; */
padding: 3px 15px 10px 15px;
margin-bottom: 1rem;
position: relative;
justify-items: center;
}
.offer-box p {
margin: 0 0 0.5rem;
font-size: 16px;
font-weight: bold;
}
.code-container {
display: flex;
align-items: center;
gap: 5px;
}
.copy-code {
background-color: #fff;
color: #cf91d1;
padding: 3px 15px;
border-radius: 6px;
font-weight: bold;
font-size: 14px;
border: none;
cursor: pointer;
}
.copy-code:hover {
background-color: #f8f8f8;
color: black;
}
@media (max-width: 500px) {
.offer-box {
font-size: 15px;
padding: 1rem;
}
.offers-title {
font-size: 16px;
}
.copy-code {
font-size: 13px;
}
}
</style>
<div class="offers-section">
<div class="offers-title">Special Offers</div>
<div class="offer-box">
<p>Buy 2 and get 100 rupees off</p>
<div class="code-container">
<span>Use Code</span>
<button class="copy-code" onclick="copyCode('BUY2')">BUY 2</button>
</div>
</div>
<div class="offer-box">
<p>Buy 4 and get 200 rupees off</p>
<div class="code-container">
<span>Use Code</span>
<button class="copy-code" onclick="copyCode('BUY4')">BUY 4</button>
</div>
</div>
<div class="offer-box">
<p>Buy 6 and get 300 rupees off</p>
<div class="code-container">
<span>Use Code</span>
<button class="copy-code" onclick="copyCode('BUY6')">BUY 6</button>
</div>
</div>
</div>
<script>
function copyCode(code) {
navigator.clipboard.writeText(code).then(() => {
alert(`Code "${code}" copied to clipboard!`);
});
}
</script>