/*
 * ===================================
 * CHECKOUT PAGE STYLING
 * ===================================
 */

/* --- Stepper / Alur Proses --- */
.checkout-stepper {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #6c757d; /* Warna abu-abu untuk step yang belum aktif */
  font-weight: 500;
}
.step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.step.active {
  color: #000; /* Warna hitam untuk step aktif */
  font-weight: 700;
}
.step.active .step-number {
  background-color: #000;
  color: #fff;
  border-color: #000;
}
.step-line {
  flex-grow: 1;
  height: 1px;
  background-color: #dee2e6;
  margin: 0 1rem;
  align-self: center;
}

/* --- Section Styling --- */
.checkout-section {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* --- Cart Item Styling --- */
.cart-item-row {
  display: flex;
  padding: 1.5rem 0;
  border-bottom: 1px solid #f1f1f1;
}
.cart-item-row:last-child {
  border-bottom: none;
}
.cart-item-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-right: 1rem;
}
.cart-item-details {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
}
.cart-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.cart-item-meta {
  font-size: 0.9rem;
  color: #6c757d;
}
.cart-item-actions {
  text-align: right;
}
.quantity-input-group {
  display: flex;
  align-items: center;
  width: 100px;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
}
.quantity-input-group .btn {
  border: none;
  border-radius: 0;
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}
.quantity-input-group .form-control {
  border: none;
  box-shadow: none !important;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}
.cart-item-subtotal {
  font-weight: 600;
  margin-top: 0.5rem;
}

/* --- Order Summary (Right Column) --- */
.order-summary-box {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  background-color: #f8f9fa; /* Latar belakang sedikit abu-abu */
  position: sticky; /* Membuat box ini "lengket" */
  top: 2rem; /* Jarak dari atas saat scrolling */
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}
.summary-list li:last-child {
  border-bottom: none;
}
.summary-list .total {
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 1rem;
}
.btn-checkout {
  background-color: #000;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem;
}
.btn-checkout:hover {
  background-color: #343a40;
  color: #fff;
}
