/* Modern Cart Styles */
.cart-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.cart-area-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

.cart-table-container {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 1.5rem 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  border-bottom: 2px solid #dee2e6;
}

.cart-table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

.cart-item:hover {
  background: rgba(243, 156, 18, 0.02);
}

.product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.product-name a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.product-name a:hover {
  color: var(--primary-color);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 2px solid #e9ecef;
  width: fit-content;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition-base);
}

.quantity-btn:hover {
  transform: scale(1.1);
}

.quantity-selector input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
}

.remove-item-btn {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.remove-item-btn:hover {
  background: rgba(231, 76, 60, 0.1);
  transform: scale(1.1);
}

/* Cart Summary */
.cart-summary-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f3f4;
}

.total-row {
  border-bottom: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  border-top: 2px solid var(--primary-color);
  margin-top: 1rem;
}

.coupon-area {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: var(--radius-md);
}

.coupon-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.coupon-input-group input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.continue-shopping-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.continue-shopping-link:hover {
  color: var(--primary-color);
}

/* Empty Cart */
.cart-empty-message {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cart-empty-message i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cart-empty-message p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cart-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cart-table-container {
    overflow-x: auto;
  }
  
  .cart-table {
    min-width: 600px;
  }
}
