/* ProductList Component Styles */
.product-list {
  margin: 20px 0;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-info h3 {
  margin: 0 0 8px 0;
}

.price {
  font-size: 1.2em;
  font-weight: bold;
  color: #2e7d32;
  margin: 4px 0;
}

.description {
  color: #666;
  margin: 4px 0;
}

.category {
  color: #888;
  font-size: 0.9em;
  margin: 4px 0;
}

.actions {
  display: flex;
  gap: 8px;
}

.product-list button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #1976d2;
  color: white;
}

.product-list button.favorited {
  background: #d32f2f;
}

/* CartDisplay Component Styles */
.cart-display {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.empty-message {
  text-align: center;
  color: #888;
  font-style: italic;
}

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

.item-info h4 {
  margin: 0 0 4px 0;
}

.cart-display .price {
  color: #666;
  margin: 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity {
  min-width: 20px;
  text-align: center;
}

.cart-summary {
  border-top: 1px solid #ddd;
  padding-top: 16px;
  margin-top: 16px;
}

.total-price {
  font-size: 1.2em;
  font-weight: bold;
  color: #2e7d32;
}

.cart-display button {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #1976d2;
  color: white;
}

.cart-display button.remove {
  background: #d32f2f;
}

.cart-display button.clear-btn {
  background: #f57c00;
  padding: 8px 16px;
}

/* App Component Styles */
.shopping-app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.cart-badge {
  background: #1976d2;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
}

main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}