/* Cart Modal Styles */
#cartModal {
  display: none; 
  position: fixed; 
  z-index: 999999999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.8);
}

#cartModal .modal-content {
  background-color: #fefefe;
  margin: 5% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Increased width */
  max-width: 800px; /* Increased max width */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgb(255, 255, 255,0.8);
  position: relative; /* Ensure the close icon is correctly positioned */
}

#cartModal .modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

#cartModal .modal-content .cart-item {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

#cartModal .modal-content .cart-item h3 {
  margin: 0;
  flex: 1;
}

#cartModal .modal-content .cart-item p {
  margin: 5px 0;
  background-color: rgba(0,0,0,0.8);
  padding: 10px;
  box-shadow: 0 5px 15px rgb(255, 255, 255,0.8);
  border-radius: 10px;
  flex: 3;
}

#cartModal .modal-content .cart-item img {
  max-width: 100px;
  height: auto;
  margin-right: 30px;
  margin-left: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgb(255, 255, 255,0.8);
}

#cartModal .modal-content .cart-item button {
  background-color: purple;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 60px;
  flex: 1;
}

#cartModal .modal-content .cart-item button:hover {
  background-color: #ff0000;
}

#cartModal .modal-content button {
  background-color: purple;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 10px 2px;
  border-radius: 5px;
  cursor: pointer;
}

#cartModal .modal-content button:hover {
  background-color: #570057;
}

.close-cart {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 30px;
  font-weight: bold;
}

.close-cart:hover,
.close-cart:focus {
  color: lime;
  text-decoration: none;
  cursor: pointer;
}

/* Cart Icon Styles */
#cart-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#cart-count {
  background: purple;
  border-radius: 50%;
  color: white;
  padding: 5px;
  font-size: 12px;
  margin-left: 5px;
  border: 2px solid white;;
}
