body{font-family: Arial, sans-serif; margin:20px;}
header{display:flex; justify-content:space-between; align-items:center;}
nav a{margin-left:10px;}
.products{display:flex; gap:16px; flex-wrap:wrap;}
.card{border:1px solid #ddd; padding:10px; width:220px; border-radius:6px;}
.card img{width:100%; height:140px; object-fit:cover; background:#eee;}
.price{font-weight:bold;}
.actions a{margin-right:8px;}
.product-detail{display:flex; gap:20px; margin-top:20px;}
.product-detail img{width:280px; height:200px; object-fit:cover;}
table.cart{width:100%; border-collapse:collapse;}
table.cart th, table.cart td{border:1px solid #ccc; padding:8px; text-align:left;}
.grand{font-size:1.1em; font-weight:bold;}
.checkout{display:inline-block; margin-left:10px; padding:6px 10px; background:#28a745; color:#fff; text-decoration:none; border-radius:4px;}
.error{color:red;}
/* style.css */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

header {
  background: #1e1e2f;
  padding: 20px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
nav {
  margin-top: 15px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 5px;
  transition: 0.3s;
}

nav a:hover {
  background: #ff9800;
  color: #000;
}
.container {
    width: 400px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
    justify-content: center;
}

h2 {
     color: #444;
    margin-bottom: 20px;
}

input {
    padding: 12px;
    margin: 10px 0;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s;
}
input:focus {
    border-color: #6a5acd;
    outline: none;
    box-shadow: 0 0 5px rgba(106, 90, 205, 0.5);
}

/* Button */
button {
    padding: 12px;
    width: 100%;
    background: #6a5acd;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #5745c5;
    transform: scale(1.02);
}

/* Error message */
.error {
    color: #e63946;
    background: #ffe5e5;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}