/* ==========================================
   CHECKOUT
========================================== */

.checkout-page {
  margin-top: 91px;
  background: #fafafa;
  min-height: 100vh;
}

.checkout-wrapper {
  display: grid;
  grid-template-columns: 1.45fr 420px;
  gap: 108px;
  padding: 72px 0 120px;
}

.checkout-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 72px;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #8f8f8f;
}

.checkout-steps .active {
  color: #1A1C1C;
}

.checkout-title,
.summary-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 42px;
}

.checkout-section {
  margin-bottom: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  margin-bottom: 14px;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 56px;

  border: 0;
  border-bottom: 1px solid #d6d6d6;
  background: transparent;

  font-size: 16px;
  padding: 0;
  outline: none;
}

.checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.checkout-checkbox label {
  font-size: 16px;
  color: #555;
}

.checkout-actions {
  border-top: 1px solid #e6e6e6;

  padding-top: 48px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.return-cart {
  color: #1A1C1C;
  text-decoration: none;
}

.continue-btn {
  width: 245px;
  height: 58px;

  border: 0;
  background: #1A1C1C;
  color: white;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
}

.checkout-summary {
  padding-top: 8px;
}

.summary-products {
  border-bottom: 1px solid #ececec;
  padding-bottom: 32px;
}

.product-thumb {
  width: 92px;
  height: 92px;
}

.product-thumb.bag {
  background: #dcdcdc;
}

.product-info {
  flex: 1;
}

.product-info h4 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.product-info p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #666;
}

.discount-row {
  display: flex;
  gap: 14px;
}

.discount-row-wrapper{
  padding: 36px 0;
}

.discount-row input {
  flex: 1;

  border: 0;
  border-bottom: 1px solid #d8d8d8;
  background: transparent;

  height: 48px;
}

.discount-row button {
  width: 110px;
  border: 1px solid #1A1C1C;
  background: transparent;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}

.summary-totals {
  border-top: 1px solid #ececec;
  padding-top: 36px;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
}

.summary-line {
  margin-bottom: 22px;
  font-size: 16px;
}

.summary-line .muted {
  color: #9b9b9b;
}

.summary-total {
  border-top: 1px solid #ececec;
  margin-top: 34px;
  padding-top: 38px;
  align-items: center;
}

.summary-total small {
  font-size: 12px;
  letter-spacing: .16em;
  margin-right: 12px;
  font-weight: 600;
}

.summary-total strong {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 58px;
}

.final_amount{
    display: flex;
    align-items: center;
}

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

  .checkout-summary {
    order: -1;
  }

  .checkout-actions {
    flex-direction: column;
    gap: 24px;
  }
}



/* ==========================================
   CHECKOUT BILLING
   Extends checkout.css â€” billing-specific overrides & additions
========================================== */

/* ---- Billing page uses a simplified header ---- */
.billing-header {
  border-bottom: 1px solid #e8e8e8;
  padding: 22px 0;
}

.billing-header .luxe-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.billing-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #444844;
  text-transform: uppercase;
}

.billing-secure svg {
  width: 14px;
  height: 14px;
  stroke: #444844;
}

/* ---- Page ---- */
.checkout-page {
  margin-top: 0;          /* billing page has its own header */
  background: #fafafa;
  min-height: 100vh;
}

/* ---- Two-col layout (shared with checkout.css but redeclared for safety) ---- */
.checkout-wrapper {
  display: grid;
  grid-template-columns: 1.45fr 420px;
  gap: 108px;
  padding: 72px 0 120px;
}

/* ---- Breadcrumb / steps ---- */
.checkout-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 56px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: #8f8f8f;
  text-transform: uppercase;
}

.checkout-steps .active {
  color: #1A1C1C;
}

/* ---- Review info block (email / phone / address) ---- */
.review-block {
  margin-bottom: 56px;
}

.review-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 0px;
  border-bottom: 1px solid #f0f0f0;
}

.review-row:last-child {
  border-bottom: 0;
}

.review-label {
  font-size: 16px;
  color: #7F7F7F;
  min-width: 130px;
  padding-top: 2px;
}

.review-value {
  font-size: 16px;
  color: #1A1C1C;
  text-align: right;
  line-height: 1.6;
}

/* ---- Section titles ---- */
.checkout-title,
.summary-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 36px;
}


/* ---- Shipping options ---- */


.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0px;
  border-bottom: 1px solid #b4b3b3;
  cursor: pointer;
  transition: background .15s;
}

/* .shipping-option:last-child {
  border-bottom: 0;
} */

.shipping-option:hover {
  background: #fafafa;
}

.shipping-option-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Custom radio */
.shipping-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c4c4c4;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color .15s;
}

.shipping-option input[type="radio"]:checked {
  border-color: #1A1C1C;
}

.shipping-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1A1C1C;
}

.shipping-option-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shipping-option-name {
  font-size: 16px;
  color: #1A1C1C;
}

.shipping-option-days {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #7F7F7F;
  text-transform: uppercase;
}

.shipping-option-price {
  font-size: 16px;
  color: #1A1C1C;
}

/* ---- Payment Method section ---- */


.payment-option {
  border-bottom: 1px solid #C4C7C3;
  cursor: pointer;
}

.payment-option:last-child {
  border-bottom: 0;
}

.payment-option-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0px;
  transition: background .15s;
}

.payment-option-header:hover {
  background: #fafafa;
}

/* reuse same custom radio style */
.payment-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c4c4c4;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color .15s;
}

.payment-option input[type="radio"]:checked {
  border-color: #1A1C1C;
}

.payment-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1A1C1C;
}

.payment-option-label {
  font-size: 14px;
  color: #1A1C1C;
}

/* PayPal / Afterpay logos */
.payment-logo {
  height: 22px;
  width: auto;
}

/* Card form inside credit card option */
.card-fields {
  padding: 15px 24px 28px 35px;
  display: none;
}

.card-fields.visible {
  display: block;
}

.form-group {
  position: relative;
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #1A1C1C;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 34px;
  border: 0;
  border-bottom: 1px solid #d6d6d6;
  background: transparent;
  font-size: 15px;
  padding: 0;
  outline: none;
  font-family: var(--font-body);
  color: #1A1C1C;
}

.form-group input::placeholder {
  color: #bbb;
  font-size: 14px;
}

.card-row {
  /* display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px; */
}

/* ---- Actions footer ---- */
.checkout-actions {
  border-top: 1px solid #e6e6e6;
  padding-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.return-cart {
  color: #1A1C1C;
  text-decoration: none;
  font-size: 16px;
}

.continue-btn {
  width: 245px;
  height: 58px;
  border: 0;
  /* background: #1A1C1C; */
  color: white;
  /* font-size: 12px; */
  /* font-weight: 600; */
  letter-spacing: .16em;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font-body);
  text-transform: uppercase;
}

.continue-btn:hover {
  background: #333;
}

/* ---- Order Summary sidebar (shared styles, re-declared for self-containment) ---- */
.checkout-summary {
  padding-top: 8px;
}

.summary-products {
  border-bottom: 1px solid #ececec;
  padding-bottom: 32px;
  margin-bottom: 0;
}

.summary-product {
  display: flex;
  align-items: center;
  gap: 20px;
  /* margin-bottom: 28px; */
  position: relative;
}
.summary-product .product-thumb img{
  height: 80px;
}
.product-thumb {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  position: relative;
}

.product-thumb.bag {
  background: #dcdcdc;
}

/* quantity badge */
.qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #8f8f8f;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info {
  flex: 1;
}

.product-info h4 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 6px;
  font-weight: 400;
}

.product-info p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: #444844;
  text-transform: uppercase;
}

.discount-row {
  display: flex;
  gap: 14px;
}

.discount-row input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid #d8d8d8;
  background: transparent;
  height: 48px;
  outline: none;
  font-size: 14px;
  font-family: var(--font-body);
}

.discount-row input::placeholder {
  color: #7F7F7F;
}

.discount-row button {
  width: 110px;
  height: 48px;
  border: 1px solid #1A1C1C;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .2s, color .2s;
}

.discount-row button:hover {
  background: #1A1C1C;
  color: #fff;
}

.summary-totals {
  border-top: 1px solid #ececec;
  padding-top: 36px;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
}

.summary-line {
  margin-bottom: 22px;
  font-size: 16px;
}

.summary-line .muted {
  color: #9b9b9b;
}

.summary-total {
  border-top: 1px solid #ececec;
  margin-top: 34px;
  padding-top: 38px;
  align-items: center;
}


.summary-total strong {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 58px;
}

.final_amount {
  display: flex;
  align-items: center;
  color: #444844;
}

/* ---- Billing footer ---- */
.billing-footer {
  border-top: 1px solid #e8e8e8;
  padding: 28px 0;
}

.billing-footer .luxe-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.billing-footer-copy {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: #444844;
  text-transform: uppercase;
}

.billing-footer-links {
  display: flex;
  gap: 32px;
}

.billing-footer-links a {
  font-size: 16px;
  color: #444844;
  text-decoration: none;
  transition: color .15s;
}

.billing-footer-links a:hover {
  color: #1A1C1C;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {

  .billing-header .luxe-container{text-align: center;justify-content: center;}

  .checkout-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .checkout-summary {
    order: -1;
  }

  .checkout-actions {
    flex-direction: column;
    gap: 24px;
  }

  .continue-btn {
    width: 100%;
  }
}

@media(max-width:768px){
    .billing-footer .luxe-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .billing-footer-links{gap:25px;}
}