/* Cart Page Styles */

.cart-page {
  padding: 40px 20px;
  min-height: 60vh;
  background: #f8f9fa;
}

.cart-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cart-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-title i {
  color: #667eea;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}

/* Cart Items Section */
.cart-items-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  border-bottom: 2px solid #e5e7eb;
}

.cart-table td {
  padding: 20px 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.cart-table tbody tr:hover {
  background: #f9fafb;
}

/* Product Cell */
.product-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-cell img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}

.product-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 6px 0;
}

.product-info p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* Price */
.price-cell {
  font-weight: 600;
  color: #1f2937;
}

/* Quantity */
.quantity-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.qty-input {
  width: 50px;
  height: 32px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

/* Total */
.total-cell {
  font-weight: 700;
  color: #667eea;
  font-size: 16px;
}

/* Remove Button */
.remove-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background: #fecaca;
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart i {
  font-size: 64px;
  color: #d1d5db;
  margin-bottom: 20px;
}

.empty-cart h3 {
  font-size: 20px;
  color: #374151;
  margin: 0 0 8px 0;
}

.empty-cart p {
  color: #6b7280;
  margin: 0 0 24px 0;
}

.btn-continue-shopping {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-continue-shopping:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Cart Summary */
.cart-summary {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 15px;
  color: #4b5563;
}

.summary-row.total {
  border-top: 2px solid #e5e7eb;
  margin-top: 12px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.summary-row.total span:last-child {
  color: #667eea;
}

.cart-note {
  margin-top: 20px;
}

.cart-note label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.cart-note textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.cart-note textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cart-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-checkout {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-clear {
  width: 100%;
  padding: 12px 24px;
  background: white;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Responsive */
@media (max-width: 992px) {
  .cart-content {
    grid-template-columns: 1fr;
  }
  
  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) {
    display: none;
  }
  
  .product-cell img {
    width: 60px;
    height: 75px;
  }
  
  .cart-title {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .cart-page {
    padding: 20px 15px;
  }
  
  .cart-items-section {
    padding: 16px;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 12px 8px;
  }
  
  .product-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}