/* Cart Modal Styles */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.cart-content {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cart-content h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 24px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

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

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-details h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.cart-item-details p {
  margin: 0;
  color: #666;
}

.cart-item button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cart-item button:hover {
  background-color: #c82333;
}

.cart-total {
  border-top: 2px solid #eee;
  padding-top: 15px;
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.checkout-btn:hover {
  background-color: #45a049;
}

.close-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.close-btn:hover {
  background-color: #5a6268;
}

/* Empty Cart State */
.empty-cart {
  text-align: center;
  padding: 30px 0;
  color: #666;
}

.empty-cart p {
  margin: 0 0 20px 0;
  font-size: 16px;
}

/* Responsive Modal Styles */
@media screen and (max-width: 768px) {
  .cart-content {
    width: 95%;
    padding: 15px;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item-image {
    margin: 0 0 10px 0;
  }

  .cart-item button {
    margin-top: 10px;
  }
}