/* Styles for the cart sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -300px; /* Initially hidden */
  width: 300px;
  height: 100%;
  background-color: #f8f8f8;
  border-left: 1px solid #ccc;
  padding: 20px;
  transition: right 0.3s ease-in-out;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  color: #3f446c;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.close-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.cart-sidebar h2 {
  color: #141b4d;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -2%;
}

.text-light {
  color: #0066ff !important;
}

#cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px dashed #0066ff60;
  border-radius: 5px;
  padding: 10px;
}

.cart-item p {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 500;
  color: #141b4d;
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  margin-top: 10px;
}

.cart-quantity-controls button {
  padding: 2px 4px;
  width: 24px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 18px;
  font-weight: 500;
  color: #141b4d;
  cursor: pointer;
}

.cart-quantity-controls button:hover {
  background-color: #eee;
}

.cart-quantity-controls span {
  font-size: 20px;
  font-weight: 500;
  color: #141b4d;
  min-width: 30px;
  text-align: center;
}

.cart-item span {
  font-size: 18px;
  font-weight: 500;
  color: #cf1010;
}

.checkout-btn {
  padding: 15px 20px;
  background-color: #1db469;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0%;
  width: 100%;
}

.checkout-btn:hover {
  opacity: 0.7;
}
