/* ===============================
   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;
  }
}
.checkout-progress{
      display:flex;
      align-items:center;
      gap:0;
      margin: 14px auto 26px;
      padding: 14px 14px;
      border-radius: 16px;
      background: #fff;
      box-shadow: 0 8px 24px rgba(16,24,40,.06);
      position: relative;
    }
    .checkout-progress .step{
      flex:1;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:10px;
      position:relative;
      text-align:center;
      padding: 10px 6px;
      min-width: 0;
    }
    .checkout-progress .step:not(:first-child)::before{
      content:"";
      position:absolute;
      left:-50%;
      top:50%;
      width:100%;
      height:3px;
      transform: translateY(-50%);
      background: rgba(17,17,17,.12);
      z-index:0;
    }
    .checkout-progress .step.active:not(:first-child)::before{
      background: rgba(184,134,11,.55);
    }
    .checkout-progress .step-number{
      width: 34px;
      height: 34px;
      border-radius: 999px;
      display:grid;
      place-items:center;
      font-weight: 800;
      background: #e5e7eb;
      color:#111;
      z-index:1;
      border: 2px solid rgba(0,0,0,.08);
      flex: 0 0 auto;
    }
    .checkout-progress .step.active .step-number{
      background: #b8860b;
      color:#fff;
      border-color: rgba(184,134,11,.35);
      box-shadow: 0 8px 20px rgba(184,134,11,.25);
    }
    .checkout-progress .step-label{
      font-weight: 800;
      color:#111;
      white-space: nowrap;
      overflow:hidden;
      text-overflow: ellipsis;
      z-index:1;
    }
    .checkout-progress .step:not(.active) .step-label{
      opacity:.65;
    }

    /* Make checkout form responsive if checkout.css is weak */
    .checkout-grid{
      display:grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 22px;
      align-items:start;
    }
    @media (max-width: 980px){
      .checkout-grid{ grid-template-columns: 1fr; }
      .checkout-progress{ padding: 12px; }
      .checkout-progress .step-label{ font-size: 12px; }
    }
    .form-row-2{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
    @media (max-width: 620px){
      .form-row-2{ grid-template-columns: 1fr; }
      .checkout-progress .step{ justify-content:flex-start; }
      .checkout-progress .step:not(:first-child)::before{ left:-52%; }
    }

    /* Payment cards spacing */
    .payment-cards{
      display:flex;
      flex-direction:column;
      gap: 12px;
      margin-top: 10px;
    }
    .payment-card{
      display:flex;
      align-items:center;
      gap: 12px;
      padding: 14px 14px;
      border: 1px solid rgba(0,0,0,.10);
      border-radius: 14px;
      background:#fff;
      cursor:pointer;
      transition: .15s ease;
    }
    .payment-card:hover{
      transform: translateY(-1px);
      box-shadow: 0 10px 22px rgba(16,24,40,.06);
    }
    .payment-card input{ transform: scale(1.05); }
    .payment-card img{
      width: 38px;
      height: 26px;
      object-fit: contain;
      flex: 0 0 auto;
    }

/* 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;
}
