Implementazione carrello

This commit is contained in:
2026-04-01 13:38:49 +02:00
parent a953769a1b
commit f9bff1f235
5 changed files with 204 additions and 2 deletions
+68
View File
@@ -140,4 +140,72 @@ form button:hover {
width: 100%;
height: 100%;
object-fit: contain; /* o "cover" */
}
/* Pagina carrello */
.cart-container {
max-width: 900px;
margin: 20px auto;
padding: 20px;
}
.cart-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.cart-table th, .cart-table td {
border: 1px solid #ddd;
padding: 12px;
text-align: left;
}
.cart-table th {
background-color: #f2f2f2;
font-weight: bold;
}
.cart-table button {
padding: 5px 10px;
background-color: #dc3545;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.cart-table button:hover {
background-color: #c82333;
}
.cart-summary {
margin-top: 20px;
text-align: right;
font-size: 18px;
font-weight: bold;
}
.empty-cart {
text-align: center;
padding: 40px;
font-size: 18px;
color: #666;
}
.clear-cart-btn {
padding: 10px 20px;
background-color: #dc3545;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 20px;
}
.clear-cart-btn:hover {
background-color: #c82333;
}
.checkout-btn {
padding: 10px 20px;
background-color: #28a745;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
margin-left: 10px;
}
.checkout-btn:hover {
background-color: #218838;
}