/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Base Body Styling === */
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #f8f9fc, #e9efff);
  color: #333;
  min-height: 100vh;
  padding-top: 70px;
}

/* === Navigation (same as menu page) === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0dfd55;;
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
}

nav a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #ffe484;
}

/* === Cart Container === */
#cont {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 40px auto;
  padding: 0 20px 40px;
  max-width: 1200px;
}

/* === Cart Card === */
.card {
  width: 18rem;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 15px;
  text-align: center;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 8px;
}

.card-body h5:nth-child(2) {
  color: #222;
  font-size: 1rem;
}

/* === Delete Button === */
button {
  display: inline-block;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  margin: 15px auto;
  display: block;
  transition: background 0.25s ease, transform 0.2s ease;
}

button:hover {
  background: #a71d2a;
  transform: scale(1.05);
}

/* === Empty Basket Message === */
.empty {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #555;
  margin-top: 50px;
}

/* === Responsive === */
@media (max-width: 768px) {
  #cont {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }
}
