/* Import Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Main container */
.cart-wrapper {
  max-width: 90%;
  margin: 0 auto;
}

/* Cart Header */
.cart-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.cart-header .text-muted {
  font-size: 1.1rem;
  color: #64748b;
}

/* Cart Card - Modern Design */
.cart-card {
  background: #ffffff;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  overflow: hidden;
}

.cart-card:hover {
  box-shadow: 0 8px 30px rgba(0, 99, 209, 0.08);
  border-color: #dbeafe;
  transform: translateY(-2px);
}

.cart-card-content {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

/* Cart Info Section */
.cart-info {
  flex: 2;
  min-width: 280px;
}

.cart-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Meta Information */
.cart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.variant-pill {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: #4f46e5;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c7d2fe;
}

.credit-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fcd34d;
}

.credit-badge i {
  font-size: 0.7rem;
  color: #fbbf24;
}

/* Features List */
.cart-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-features span {
  font-size: 0.9rem;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
}

.cart-features span i {
  color: #3b82f6;
  font-size: 0.85rem;
}

/* Right Section - Price & Remove */
.cart-right {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.price-wrapper {
  text-align: right;
}

.cart-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.original-price {
  font-size: 1rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-top: 4px;
}

/* Remove Button */
.remove-btn {
  color: #ef4444;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.remove-btn i {
  font-size: 0.85rem;
}

.remove-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Shopping Tips */
.cart-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  padding: 16px 24px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 0.9rem;
}

.tip-item i {
  color: #3b82f6;
  font-size: 1rem;
}

/* Summary Card */
.summary-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  position: sticky;
  top: 20px;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.summary-header h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.item-count {
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
}

/* Summary Items */
.summary-details {
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.summary-details::-webkit-scrollbar {
  width: 4px;
}

.summary-details::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.summary-details::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.95rem;
  color: #334155;
  border-bottom: 1px dashed #e2e8f0;
}

.summary-item:last-child {
  border-bottom: none;
}

.item-name {
  flex: 1;
  padding-right: 15px;
}

.item-price {
  font-weight: 600;
  color: #0f172a;
}

/* Summary Rows */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 1rem;
}

.summary-row.subtotal {
  border-bottom: 1px solid #e2e8f0;
}

.summary-row.discount {
  color: #059669;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 2px solid #f1f5f9;
  border-bottom: 2px solid #f1f5f9;
}

.summary-total span {
  font-weight: 600;
  color: #1e293b;
  display: block;
}

.summary-total small {
  font-size: 0.8rem;
  font-weight: normal;
  margin-top: 4px;
}

.total-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn-checkout {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  border: none;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-checkout:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  color: white;
}

.btn-checkout i {
  font-size: 1rem;
}

.continue-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #64748b;
  font-weight: 500;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-bottom: 24px;
}

.continue-btn:hover {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.payment-icon {
  height: 24px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.payment-icon:hover {
  opacity: 1;
}

/* Help Card */
.help-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e2e8f0;
}

.help-card i {
  color: #3b82f6;
  font-size: 1.5rem;
}

.help-content h6 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.help-content p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.help-content a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.help-content a:hover {
  text-decoration: underline;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #f1f5f9;
  max-width: 500px;
  margin: 40px auto;
}

.empty-cart-icon {
  width: 100px;
  height: 100px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.empty-cart-icon i {
  font-size: 40px;
  color: #94a3b8;
}

.empty-cart h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.empty-cart p {
  color: #64748b;
  margin-bottom: 24px;
}

.btn-browse {
  background: #3b82f6;
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-browse:hover {
  background: #2563eb;
  transform: translateY(-2px);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-card-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cart-right {
    align-items: flex-start;
    width: 100%;
  }
  
  .price-wrapper {
    text-align: left;
  }
  
  .cart-tips {
    flex-direction: column;
    gap: 12px;
  }
  
  .summary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .total-amount {
    font-size: 1.5rem;
  }
}

/* Animation for card removal */
.cart-card {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}