* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* background: linear-gradient(to right, #ffecd2, #fcb69f); */
  background-image: url(/imgback.avif);
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #ff6f61;
}

h2{
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

form input, form select, form button {
  flex: 1 1 100%;
  padding: 12px;
  border: 2px solid #ff6f61;
  border-radius: 8px;
  transition: all 0.3s ease;
}

form input:focus, form select:focus {
  outline: none;
  border-color: #ff3d2e;
}

form button {
  background: #ff6f61;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

form button:hover {
  background: #ff3d2e;
}

.product-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff9f5;
  border: 1px solid #ff6f61;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.product-card h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
  color: #333;
}

.product-card p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #555;
}


.qty-btn {
  background: #ff6f61;
  color: white;
  border: none;
  margin: 5px 5px 10px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.qty-btn:hover {
  background: #ff3d2e;
}

.cart-btn {
  background: #2196f3;
  color: white;
  border: none;
  margin: 5px 5px 10px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.cart-btn:hover {
  background: #1976d2;
}

#cartList {
  margin-top: 40px;
}


.cart-btn {
  background: linear-gradient(135deg, #4caf50, #81c784);
  color: white;
  border: none;
  margin: 5px 5px 10px;
  padding: 8px 14px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
  transition: all 0.3s ease;
}

.cart-btn:hover {
  background: linear-gradient(135deg, #388e3c, #66bb6a);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.6);
  transform: translateY(-2px);
}

.delete-btn {
  background: linear-gradient(135deg, #f44336, #e57373);
  color: white;
  border: none;
  margin: 5px 5px 10px;
  padding: 8px 14px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(244, 67, 54, 0.4);
  transition: all 0.3s ease;
}

.delete-btn:hover {
  background: linear-gradient(135deg, #d32f2f, #ef5350);
  box-shadow: 0 6px 15px rgba(244, 67, 54, 0.6);
  transform: translateY(-2px);
}
