+
```html
@@ -285,186 +284,192 @@ Create a new `public/product-details.html` file to display a single product.
font-family: Arial, sans-serif;
}
- body {
- background-color: #f9fafb;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- }
-
- header {
- background-color: white;
- padding: 1rem 2rem;
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1px solid #e5e7eb;
- }
-
- .store-title {
- font-weight: bold;
- font-size: 1.25rem;
- text-decoration: none;
- color: black;
- }
-
- .cart-button {
- padding: 0.5rem 1rem;
- cursor: pointer;
- background: none;
- border: none;
- }
-
- .product-container {
- max-width: 800px;
- margin: 2rem auto;
- background-color: white;
- border-radius: 0.5rem;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
- padding: 2rem;
- }
-
- .product-title {
- font-size: 1.875rem;
- font-weight: bold;
- margin-bottom: 0.5rem;
- }
-
- .product-description {
- color: #4b5563;
- margin-bottom: 1.5rem;
- }
-
- .product-price {
- font-size: 1.875rem;
- font-weight: bold;
- margin-bottom: 0.5rem;
- }
+ body {
+ background-color: #f9fafb;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ }
- .product-stock {
- font-size: 0.875rem;
- color: #4b5563;
- text-align: right;
- }
+ header {
+ background-color: white;
+ padding: 1rem 2rem;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1px solid #e5e7eb;
+ }
- .add-to-cart-btn {
- display: block;
- width: 100%;
- padding: 0.75rem;
- background-color: #2563eb;
- color: white;
- border: none;
- border-radius: 0.375rem;
- cursor: pointer;
- text-align: center;
- font-size: 1rem;
- margin-top: 1.5rem;
- }
+ .store-title {
+ font-weight: bold;
+ font-size: 1.25rem;
+ text-decoration: none;
+ color: black;
+ }
- .add-to-cart-btn:hover {
- background-color: #1d4ed8;
- }
+ .cart-button {
+ padding: 0.5rem 1rem;
+ cursor: pointer;
+ background: none;
+ border: none;
+ }
- .price-stock-container {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 1rem;
- }
+ .product-container {
+ max-width: 800px;
+ margin: 2rem auto;
+ background-color: white;
+ border-radius: 0.5rem;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
+ padding: 2rem;
+ }
- footer {
- background-color: white;
- padding: 1rem 2rem;
- text-align: center;
- border-top: 1px solid #e5e7eb;
- color: #4b5563;
- font-size: 0.875rem;
- margin-top: auto;
- }
+ .product-title {
+ font-size: 1.875rem;
+ font-weight: bold;
+ margin-bottom: 0.5rem;
+ }
- /* Back button */
- .back-button {
- display: inline-block;
- margin-bottom: 1.5rem;
- color: #2563eb;
- text-decoration: none;
- font-size: 0.875rem;
- }
+ .product-description {
+ color: #4b5563;
+ margin-bottom: 1.5rem;
+ }
- .back-button:hover {
- text-decoration: underline;
- }
+ .product-price {
+ font-size: 1.875rem;
+ font-weight: bold;
+ margin-bottom: 0.5rem;
+ }
- /* Notification */
- .notification {
- position: fixed;
- top: 1rem;
- right: 1rem;
- background-color: #10b981;
- color: white;
- padding: 0.75rem 1rem;
- border-radius: 0.375rem;
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
- transform: translateX(150%);
- transition: transform 0.3s ease;
- }
+ .product-stock {
+ font-size: 0.875rem;
+ color: #4b5563;
+ text-align: right;
+ }
- .notification.show {
- transform: translateX(0);
- }
-
-
-
-
+ .add-to-cart-btn {
+ display: block;
+ width: 100%;
+ padding: 0.75rem;
+ background-color: #2563eb;
+ color: white;
+ border: none;
+ border-radius: 0.375rem;
+ cursor: pointer;
+ text-align: center;
+ font-size: 1rem;
+ margin-top: 1.5rem;
+ }
-
- ← Back to products
- Product Name
- Product description goes here.
+ .add-to-cart-btn:hover {
+ background-color: #1d4ed8;
+ }
-
+ .price-stock-container {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 1rem;
+ }
-
-
+ footer {
+ background-color: white;
+ padding: 1rem 2rem;
+ text-align: center;
+ border-top: 1px solid #e5e7eb;
+ color: #4b5563;
+ font-size: 0.875rem;
+ margin-top: auto;
+ }
- Added to cart!
+ /* Back button */
+ .back-button {
+ display: inline-block;
+ margin-bottom: 1.5rem;
+ color: #2563eb;
+ text-decoration: none;
+ font-size: 0.875rem;
+ }
-
+ .back-button:hover {
+ text-decoration: underline;
+ }
-
-
+ /* Notification */
+ .notification {
+ position: fixed;
+ top: 1rem;
+ right: 1rem;
+ background-color: #10b981;
+ color: white;
+ padding: 0.75rem 1rem;
+ border-radius: 0.375rem;
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
+ transform: translateX(150%);
+ transition: transform 0.3s ease;
+ }
+ .notification.show {
+ transform: translateX(0);
+ }
+
+
+
+
+
+
+ ← Back to products
+ Product Name
+
+ Product description goes here.
+
+
+
+
+
+
+
+ Added to cart!
+
+
+
+
+