/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
}

/* Empty Cart Styles */
.empty-cart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 20px;
}

.empty-cart-image {
  max-width: 300px;
  margin-bottom: 30px;
}

.empty-cart-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.empty-cart-message {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
}

.empty-cart-button {
  background-color: #198754;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.empty-cart-button:hover {
  background-color: #198754;
  transform: translateY(-2px);
}

/* Shopping Cart Styles */
.cart-page {
  padding: 40px 0;
}

.shopping-cart {
  background-color: #f6f6f6;
  padding: 50px 0;
}

.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.cart-header {
  text-align: center;
  margin-bottom: 40px;
}

.cart-header h2 {
  color: #198754;
  font-size: 28px;
}

.cart-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 992px) {
  .cart-content {
    flex-direction: row;
  }
}

.cart-items-container {
  flex: 2;
}

.cart-summary {
  flex: 1;
}

/* Cart Items Styles */
.cart-items {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.cart-product {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.cart-product:last-child {
  border-bottom: none;
}

.product-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .product-row {
    flex-direction: row;
  }
}

.product-image-container {
  flex: 1;
  max-width: 200px;
  margin: 0 auto;
}

.product-image {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.product-details {
  flex: 3;
}

.product-info-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .product-info-row {
    flex-direction: row;
    align-items: center;
  }
}

.product-info {
  flex: 2;
}

.product-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-title a {
  color: #333;
  text-decoration: none;
}

.product-title a:hover {
  color: #198754;
}

.product-meta {
  font-size: 14px;
  color: #666;
}

.product-meta span {
  font-weight: 600;
  color: #333;
}

.product-quantity {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quantity-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 80px;
  text-align: center;
}

.remove-button {
  background-color: #ff4444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.remove-button:hover {
  background-color: #cc0000;
}

.product-price {
  flex: 1;
  text-align: right;
  font-weight: bold;
  font-size: 18px;
  color: #198754;
}

/* Summary Styles */
.cart-summary {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: fit-content;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
  color: #198754;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.summary-item.total {
  border-top: 1px solid #eee;
  margin-top: 10px;
  padding-top: 15px;
  font-weight: bold;
  font-size: 18px;
}

.summary-label {
  color: #666;
}

.summary-value {
  font-weight: 600;
  color: #333;
}

.checkout-button {
  background-color: #198754;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

.checkout-button:hover {
  background-color: #157347;
  transform: translateY(-2px);
  color: white;
}
