/* ===== CART PAGE STYLES ===== */
.cart-main {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  min-height: 100vh;
  padding: 40px 0 80px;
}

/* Cart Header */
.cart-header {
  text-align: center;
  margin-bottom: 40px;
}

.cart-title {
  font-size: 42px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.cart-title i {
  color: #667eea;
}

.cart-subtitle {
  font-size: 18px;
  color: #6c757d;
  margin: 0;
}

/* Empty Cart */
.empty-cart {
  background: white;
  border-radius: 25px;
  padding: 80px 40px;
  text-align: center;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
  display: none;
}

.empty-cart-icon {
  font-size: 120px;
  color: #e9ecef;
  margin-bottom: 30px;
}

.empty-cart h3 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.empty-cart p {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 30px;
}

.btn-shopping {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-shopping:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
  color: white;
}
/* Cart Items Card */
.cart-items-card {
  background: white;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
}

.cart-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.cart-items-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.btn-clear-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  color: #dc3545;
  border: 2px solid #dc3545;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-cart:hover {
  background: #dc3545;
  color: white;
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.cart-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.cart-item-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
  transform: scale(1.1);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.item-quantity {
  display: flex;
  align-items: center;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

.btn-qty {
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  color: #667eea;
}

.btn-qty:hover {
  background: #667eea;
  color: white;
}

.qty-value {
  width: 60px;
  height: 40px;
  border: none;
  border-left: 2px solid #e9ecef;
  border-right: 2px solid #e9ecef;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  background: white;
}

.btn-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid #dc3545;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #dc3545;
  font-size: 18px;
}

.btn-remove:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

/* Cart Summary */
.cart-summary-card {
  background: white;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
}

.summary-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.summary-details {
  margin-bottom: 25px;
}

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

.summary-row span:first-child {
  color: #6c757d;
}

.summary-value {
  font-weight: 700;
  color: #1a1a1a;
}

.summary-divider {
  height: 2px;
  background: #e9ecef;
  margin: 20px 0;
}

.summary-total {
  font-size: 20px;
  margin-bottom: 0;
}

.summary-total .summary-value {
  font-size: 28px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Coupon Section */
.coupon-section {
  margin-bottom: 20px;
}

.coupon-input-group {
  display: flex;
  gap: 10px;
}

.coupon-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.coupon-input:focus {
  outline: none;
  border-color: #667eea;
}

.btn-apply-coupon {
  padding: 12px 24px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-apply-coupon:hover {
  background: #667eea;
  color: white;
}

/* Responsive */
@media (max-width: 991px) {
  .cart-summary-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 767px) {
  .cart-title {
    font-size: 32px;
  }

  .cart-subtitle {
    font-size: 16px;
  }

  .cart-items-card,
  .cart-summary-card {
    padding: 20px;
  }

  .cart-item {
    flex-direction: column;
    gap: 15px;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

  .cart-item-actions {
    justify-content: space-between;
  }

  .empty-cart {
    padding: 60px 20px;
  }

  .empty-cart-icon {
    font-size: 80px;
  }

  .cart-notification {
    right: -100%;
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 480px) {
  .cart-items-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .btn-clear-cart {
    width: 100%;
    justify-content: center;
  }

  .coupon-input-group {
    flex-direction: column;
  }

  .btn-apply-coupon {
    width: 100%;
  }
}