/* Checkout / Cart Page - eBay-style layout */

.checkout-section {
  background-color: #f5f5f7;
  padding: 40px 0;
}

.checkout-section .checkout-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-section .checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.checkout-section .checkout-header h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 700;
  color: #2C1810;
}

.checkout-section .continue-shopping {
  font-size: 14px;
  color: #0074d9;
  text-decoration: none;
}

.checkout-section .checkout-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: flex-start;
}

.checkout-section .checkout-left {
  background: transparent;
}

.checkout-section .cart-items-container {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 0;
}

/* Cart item row - eBay style */
.checkout-section .cart-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 2.5fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.checkout-section .cart-item:last-child {
  border-bottom: none;
}

.checkout-section .cart-item-image img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fafafa;
}

.checkout-section .cart-item-details h4 {
  font-size: 15px;
  margin: 0 0 4px;
  color: #111;
  font-weight: 600;
}

.checkout-section .cart-item-category {
  font-size: 12px;
  color: #777;
  margin: 0 0 6px;
}

.checkout-section .cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #2C1810;
}

.checkout-section .cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-section .cart-item-quantity input[type="number"] {
  width: 48px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px;
  font-size: 13px;
}

.checkout-section .qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: #333;
}

.checkout-section .qty-btn:hover {
  background: #f3f3f3;
}

.checkout-section .cart-item-total span {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.checkout-section .cart-item-remove {
  border: none;
  background: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
}

.checkout-section .cart-item-remove i {
  font-size: 14px;
}

.checkout-section .cart-item-remove:hover {
  color: #d9534f;
}

/* Empty / error states */
.checkout-section .empty-cart,
.checkout-section .cart-error {
  text-align: center;
  padding: 40px 20px;
  color: #555;
}

.checkout-section .empty-cart i,
.checkout-section .cart-error i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #ccc;
}

.checkout-section .loading-cart {
  padding: 30px 20px;
  text-align: center;
  color: #555;
}

/* Right side - order summary card */
.checkout-section .checkout-right .checkout-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.checkout-section .checkout-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  color: #2C1810;
}

.checkout-section .order-summary {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  margin-bottom: 16px;
}

.checkout-section .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}

.checkout-section .summary-row.total {
  font-weight: 700;
  font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .checkout-section .checkout-content {
    grid-template-columns: 1fr;
  }

  .checkout-section .cart-item {
    grid-template-columns: 70px minmax(0, 2fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "img details"
      "img qty"
      "img total";
  }

  .checkout-section .cart-item-image {
    grid-area: img;
  }

  .checkout-section .cart-item-details {
    grid-area: details;
  }

  .checkout-section .cart-item-quantity {
    grid-area: qty;
  }

  .checkout-section .cart-item-total {
    grid-area: total;
  }
}


