/* Import Unified Color Palette */
@import url('colors.css');
/* Import Unified Header Styles */
@import url('header.css');
/* Import Unified Button Styles */
@import url('buttons.css');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--bgGradient);
  color: #333;
  line-height: 1.6;
  padding: 140px 40px 60px;
}

/* Header is already fixed in header.css */

/* Cart Page */
.container {
  max-width: 1400px;
  margin: 0 auto;
}

.cart-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--greenDark);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-title i {
  font-size: 36px;
}

.cart-count {
  background-color: var(--redNormal);
  color: white;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 16px;
  margin-left: 15px;
}

.cart-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.cart-items {
  flex: 1;
  min-width: 400px;
}

.cart-summary {
  flex: 0 0 380px;
  background: var(--card);
  border-radius: 16px;
  padding: 35px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.summary-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 16px;
}

.summary-total {
  font-size: 26px;
  font-weight: 700;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid #eee;
}

/* Checkout button uses unified button styles from buttons.css */
.checkout-btn {
  width: 100%;
  margin-top: 30px;
  padding: 16px;
  font-size: 18px;
}

.cart-item {
  background: var(--card);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 25px;
}

.item-image {
  width: 140px; 
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.item-image img { width: 100%; height: 100%; object-fit: cover; }

.item-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.item-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--greenDark);
  margin-bottom: 20px;
}

.item-actions {
  display: flex;
  align-items: center;
}

.quantity-controls {
  display: flex;
  align-items: center;
  margin-right: 25px;
  gap: 12px;
}

.quantity-btn {
  width: 45px; 
  height: 45px;
  background: #f1f3f4;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.quantity-btn:hover { 
  background: #e0e0e0;
  transform: scale(1.1);
}

.quantity-input {
  width: 70px; 
  height: 45px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
}

.remove-btn {
  padding: 8px 15px;
  display: flex;
  align-items: center;
}

.notification {
  position: fixed;
  top: 20px; right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
}
.notification.success { background: var(--greenDark); }
.notification.error { background: var(--redNormal); }
.notification.show { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .cart-content { flex-direction: column; }
  .cart-summary { flex: 1; }
  .cart-item { flex-direction: column; text-align: center; }
  .item-image { margin-right: 0; margin-bottom: 15px; }
  .item-actions { justify-content: center; margin-top: 15px; }
}
