This code provides the structure and styling for a retro-themed "Order Summary" card, commonly found in shopping cart interfaces. It uses HTML for the content layout and CSS to create a clean, organized, and slightly nostalgic aesthetic through the use of specific fonts like "Press Start 2P" and "VT323."
The HTML document organizes the order details into a "card" container. It utilizes a row and column structure—mimicking a table layout—to align product images, descriptions, and prices horizontally. It separates the page into three primary sections: two product rows, a discount coupon entry field, and a final price breakdown (subtotal, VAT, and total).
The CSS handles the visual presentation. It uses a :root block to define a color palette and shadow settings for consistency. A significant portion of the code is dedicated to Media Queries (@media). These rules detect the user's screen size and automatically adjust elements like image sizes, button positioning, and column widths to ensure the page remains readable on mobile devices, tablets, and desktops.
To use this code, you should follow these steps:
Note: This code serves as a visual template. The "APPLY" button and the calculated totals are currently static elements; to make them functional, you would need to integrate JavaScript to handle the click events and dynamic math.
Color: White, Size: M, Qty: 1
Color: Red, Size: M, Qty: 1
Subtotal
VAT
Delivery
£ 71.90
£ 14.18
£ 00.00