.cart-popup {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-popup.active {
  right: 0;
}

.cart-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #003315;
  color: #daf9e7;
}

.cart-popup-title {
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  background: none;
  border: none;
  color: #daf9e7;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #003315;
}

.cart-item-price {
  color: #22c55e;
  font-weight: bold;
  margin-bottom: 10px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  color: #003315;
}

.quantity-btn:hover {
  background-color: #e5e5e5;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ff4d4d;
  cursor: pointer;
  margin-left: auto;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-footer {
  padding: 20px;
  background-color: #f5f5f5;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: bold;
  color: #003315;
}

.cart-total-amount {
  color: #22c55e;
  font-size: 1.2rem;
}

.cart-buttons {
  display: flex;
  gap: 10px;
}

.cart-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.continue-shopping {
  background-color: #f5f5f5;
  color: #003315;
  border: 1px solid #003315;
}

.continue-shopping:hover {
  background-color: #e5e5e5;
}

.checkout-btn {
  background-color: #003315;
  color: #daf9e7;
}

.checkout-btn:hover {
  background-color: #004d20;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.cart-empty svg {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.cart-empty p {
  margin-bottom: 20px;
}

.start-shopping-btn {
  display: inline-block;
  background-color: #003315;
  color: #daf9e7;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive styles */
@media (max-width: 480px) {
  .cart-popup {
    width: 100%;
    right: -100%;
  }
}