
-20%
Still life of vegetables
Category: Vegetables
$200
$160
In stock: 25 pcs
This is a detailed description of the product. It includes all the important details customers would want to know.
Delivery and Payment
Delivery within 2-5 business days. Free shipping on orders over $100. Multiple payment methods accepted: Credit Card, PayPal, etc.
Customer Reviews
John Doe: Great product! Highly recommend.
Jane Smith: Good value for money.
HTML, CSS code of the adaptive product page
<div class="product-page"> <div class="product-details"> <div class="product-image"> <img src="product-image.jpg" alt="Product Image"> <div class="discount-badge">-20%</div> </div> <div class="product-info"> <h1 class="product-name">Product Name</h1> <p class="product-category">Category: Electronics</p> <div class="product-prices"> <span class="old-price">$200</span> <span class="new-price">$160</span> </div> <p class="availability">In stock: 25 pcs</p> <p class="description"> This is a detailed description of the product. It includes all the important details customers would want to know. </p> <div class="quantity"> <label for="quantity">Quantity:</label> <input type="number" id="quantity" name="quantity" min="1" max="25" value="1"> </div> <button class="buy-button">Buy Now</button> </div> </div> <div class="delivery-payment"> <h2>Delivery and Payment</h2> <p>Delivery within 2-5 business days. Free shipping on orders over $100. Multiple payment methods accepted: Credit Card, PayPal, etc.</p> </div> <div class="reviews"> <h2>Customer Reviews</h2> <div class="review"> <p><strong>John Doe:</strong> Great product! Highly recommend. <span class="rating">★★★★☆</span></p> </div> <div class="review"> <p><strong>Jane Smith:</strong> Good value for money. <span class="rating">★★★★☆</span></p> </div> </div> </div> <style> .product-page { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; } .product-details { display: flex; flex-wrap: wrap; padding: 20px; border-bottom: 1px solid #ddd; } .product-image { flex: 1 1 300px; position: relative; margin-right: 20px; } .product-image img { width: 100%; border-radius: 8px; } .discount-badge { position: absolute; top: 10px; left: 10px; background-color: #ff5050; color: #fff; padding: 5px 10px; font-size: 14px; border-radius: 4px; } .product-info { flex: 2 1 300px; } .product-name { font-size: 24px; margin-bottom: 10px; color: #333; } .product-category, .availability, .description { margin-bottom: 10px; color: #555; } .product-prices { margin-bottom: 10px; } .old-price { text-decoration: line-through; color: #888; margin-right: 10px; } .new-price { color: #e63946; font-size: 20px; font-weight: bold; } .availability { margin: 10px 0; font-size: 16px; color: #28a745; font-weight: bold; } .quantity { margin-bottom: 10px; } .quantity label { margin-right: 10px; font-size: 16px; } .quantity input { width: 60px; padding: 5px; font-size: 16px; text-align: center; } .buy-button { display: block; width: 100%; background-color: #28a745; color: #fff; border: none; border-radius: 4px; padding: 10px 0; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } .buy-button:hover { background-color: #218838; } .delivery-payment, .reviews { padding: 20px; } .delivery-payment h2, .reviews h2 { margin-bottom: 10px; color: #333; } .rating { color: #ffc107; margin: 10px 0; } .review { margin-bottom: 10px; padding: 10px; background-color: #f7f7f7; border-radius: 4px; } </style>