/* ===============================
   CHECKOUT PAGE FIXED + STRONG CSS
================================= */

.checkout-page {
  padding: 40px 0;
  background: #f7f7f7;
}

/* GRID */
.checkout-page .checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 20px;
}

@media (max-width: 992px) {
  .checkout-page .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* CARDS */
.checkout-page .checkout-card {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
}

/* TITLES */
.checkout-page .checkout-title {
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 900;
  color: #111;
}

/* FORM */
.checkout-page .form-grid {
  display: grid;
  gap: 12px;
}

.checkout-page .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 576px) {
  .checkout-page .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* INPUTS */
.checkout-page .input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, #dcdcdc); /* ✅ fallback */
  background: #fcfcfc;
  outline: none;
  font-size: 14px;
  transition: 0.2s;
}

.checkout-page .input:focus {
  border-color: #c49a3a;
  box-shadow: 0 0 0 4px rgba(196, 154, 58, 0.18);
  background: #fff;
}

/* LABEL */
.checkout-page .label {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.85;
  margin-bottom: 6px;
}

/* PAYMENT CARDS */
.checkout-page .payment-cards {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.checkout-page .payment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: 0.2s;
  background: #fff;
}

.checkout-page .payment-card:hover {
  border-color: #c49a3a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.checkout-page .payment-card input {
  transform: scale(1.2);
}

.checkout-page .payment-card img {
  width: 42px;
  height: 28px;
  object-fit: contain;
}

/* ORDER ITEMS */
.checkout-page .order-summary-items {
  display: grid;
  gap: 12px;
  margin: 15px 0;
}

.checkout-page .order-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkout-page .order-item img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eee;
  background: #fff;
}

.checkout-page .order-item h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.checkout-page .order-item .muted {
  font-size: 12px;
}

/* TOTALS */
.checkout-page .order-totals {
  border-top: 1px dashed #ddd;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.checkout-page .order-totals .row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.checkout-page .order-totals .row.total {
  font-size: 18px;
  font-weight: 1000;
  color: #111;
}

/* COUPON */
.checkout-page .coupon-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.checkout-page .coupon-row input {
  flex: 1;
}

/*
 * Progress bar displayed on the checkout page to visually indicate the order steps.
 * It appears below the breadcrumbs and highlights the current step.
 */
.checkout-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.checkout-progress .step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Connector line between steps */
.checkout-progress .step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -50%;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background: #ddd;
  z-index: -1;
}

/* Highlight completed/active connectors */
.checkout-progress .step.active:not(:last-child)::after {
  background: #c49a3a;
}

.checkout-progress .step .step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ddd;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.checkout-progress .step.active .step-number {
  background: #c49a3a;
  color: #fff;
}

.checkout-progress .step .step-label {
  font-weight: 800;
  font-size: 13px;
  color: #777;
  user-select: none;
}

.checkout-progress .step.active .step-label {
  color: #c49a3a;
}

@media (max-width: 576px) {
  .checkout-progress {
    flex-direction: column;
    align-items: flex-start;
  }
  .checkout-progress .step {
    margin-bottom: 6px;
  }
  .checkout-progress .step:not(:last-child)::after {
    display: none;
  }
}

/* BUTTON FIX */
.checkout-page button.btn--primary,
.checkout-page .btn--primary {
  border-radius: 14px !important;
  font-weight: 900;
}
