/* Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Flyout Panel */
.cart-flyout {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1002;
}
.cart-flyout.active {
  right: 0;
}

/* Header, Body, Footer */
.cart-flyout-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.cart-flyout-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f5f5f5;
}
.cart-item-details h4 {
  margin: 0 0 5px 0;
  font-size: 0.95rem;
}
.cart-item-details p {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
}

.cart-flyout-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.checkout-btn {
  display: block;
  width: 100%;
  background: #222;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.cart-empty {
  text-align: center;
  color: #888;
  margin-top: 40px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  color: #222;
}

.cart-item-price {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-bottom: 8px;
}

/* Plus/Minus Mengenregler */
.cart-quantity-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.cart-quantity-controls button {
  background: #f5f5f5;
  border: none;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
}

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

.cart-quantity-controls span {
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Rechter Bereich & Löschen Button */
.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.remove-item-btn {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s ease;
}

.remove-item-btn:hover {
  color: #e11d48; /* Rot beim Drüberfahren */
}