body {
  margin: 0;
  padding: 0;
  background-color: forestgreen;
}

header {
  background-color: white;
  padding: 10px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
/*-----navbar section-----*/
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(57, 61, 57);
  width: 100%;
}

.navbar a {
  flex: 1 1 auto;
  padding: 12px;
  color: white;
  text-decoration: none;
  font-size: 17px;
  text-align: center;
}

/* Add a background color on mouse-over */
.navbar a:hover {
  background-color: #000;
}

/* Style the current/active link */
.navbar a.active {
  background-color: #04AA6D;
}

/* Add responsiveness - on screens less than 500px, make the navigation links appear on top of each other, instead of next to each other */
@media screen and (max-width: 500px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar a {
    width: 100%;
    text-align: left;
  }
}

/*-----end navbar section-----*/

.shopping-cart {
    width: 50%;
    background-color: #fff;
    box-sizing: border-box;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;      /*preferred max height */
    overflow-y: auto;       /*Enable vertical scrolling */
    position: relative;
    top: 35%;
    right: 25%;
    left: 25%;
}

/*--------rows-------*/
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.cart-item {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.remove-item-btn {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #d9534f;
    color: white;
    cursor: pointer;
}

.remove-item-btn:hover {
    background-color: #c9302c;
}

.shopping-cart ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}