<section class="sales-page">
<div class="container">
<div class="product-section">
<div class="product-image">
<img src="https://via.placeholder.com/600x400" alt="Product Name">
</div>
<div class="product-info">
<h1>Blueidea Deep Tissue Massager</h1>
<p class="tagline">Relieve muscle stiffness, soreness, and stress effortlessly.</p>
<ul class="benefits">
<li>💪 6 interchangeable massage heads</li>
<li>🔋 3-hour battery life with quick charge</li>
<li>🖥️ LCD touch display with 30-speed levels</li>
<li>🔇 Quiet operation at only 45dB</li>
</ul>
<div class="price-box">
<span class="price">₦29,999</span>
<span class="old-price">₦39,999</span>
<span class="badge">25% OFF</span>
</div>
<form id="orderForm">
<h3>Place Your Order</h3>
<input type="text" name="name" placeholder="Full Name" required>
<input type="tel" name="phone" placeholder="Phone Number" required>
<input type="text" name="address" placeholder="Delivery Address" required>
<textarea name="notes" placeholder="Additional Notes (Optional)"></textarea>
<button type="submit">Order Now</button>
<p class="confirmation" style="display:none;">✅ Thank you! Your order has been submitted.</p>
</form>
</div>
</div>
</div>
</section>
<style>
.sales-page {
font-family: 'Poppins', sans-serif;
background: #fff;
padding: 40px 10px;
}
.container {
max-width: 1100px;
margin: auto;
}
.product-section {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 30px;
}
.product-image img {
width: 100%;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.product-info {
flex: 1;
min-width: 320px;
}
.price-box {
margin: 20px 0;
font-size: 1.5rem;
}
.price { color: #e63946; font-weight: 700; margin-right: 10px; }
.old-price { text-decoration: line-through; color: #999; margin-right: 10px; }
.badge { background: #2a9d8f; color: #fff; padding: 3px 10px; border-radius: 5px; font-size: 0.9rem; }
#orderForm { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
#orderForm input, #orderForm textarea {
width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem;
}
#orderForm button {
background: #e63946; color: #fff; border: none; padding: 12px; border-radius: 6px;
font-size: 1rem; cursor: pointer; transition: 0.3s;
}
#orderForm button:hover { background: #d62828; }
</style>
<script>
document.getElementById('orderForm').addEventListener('submit', async (e) => {
e.preventDefault();
const formData = new FormData(e.target);
await fetch('/modules/customorder/store_order.php', {
method: 'POST',
body: formData
});
e.target.reset();
e.target.querySelector('.confirmation').style.display = 'block';
});
</script>