/* Assets/css/checkout.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #111;
}

:root {
  --primary: #b5834d;
  --primary-dark: #96653a;
  --primary-light: #f7f1eb;
  --black: #050505;
}

.checkout-page {
  min-height: 100vh;
  padding: 30px 15px;
}

.checkout-card {
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ededed;
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
  overflow: hidden;
}

.checkout-header {
  height: 70px;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: #fff;
}

.checkout-header img {
  width: 145px;
}

.safe-text {
  font-size: 12px;
  font-weight: 700;
}

.progress {
  display: flex;
  justify-content: space-between;
  padding: 28px 60px;
  border-bottom: 1px solid #eee;
}

.step {
  font-size: 13px;
  color: #999;
  font-weight: 700;
}
.step.active {
  color: var(--primary);
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding: 28px 34px 34px;
}

.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

.checkout-step h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.checkout-step p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.checkout-form input {
  width: 100%;
  height: 52px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 16px;
  margin-bottom: 14px;
  font-size: 14px;
}

.checkout-form label {
  display: block;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}

.checkout-form h3 {
  margin: 18px 0 12px;
}

.checkout-form button,
.back-store {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .4px;
  box-shadow: 0 8px 20px rgba(181,131,77,.25);
  transition: .2s;
}

.checkout-form button:hover,
.back-store:hover {
  background: var(--primary-dark);
}
.payment-box {
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 22px;
  display: grid;
  gap: 12px;
  background: #fff;
}

.order-summary {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.order-summary h3 {
  margin-bottom: 20px;
}

.summary-product {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.product-img {
  width: 64px;
  height: 80px;
  background: #eee;
  border-radius: 8px;
}

.summary-product p {
  font-size: 13px;
  color: #666;
  margin: 6px 0;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
}

.summary-total {
  font-size: 18px;
  font-weight: 800;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.safe-box {
  margin-top: 24px;
  padding: 14px;
  background: #fafafa;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
}

.pix-step,
.confirm-step {
  text-align: center;
}

.order-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 16px;
}

.qr-placeholder {
  width: 220px;
  height: 220px;
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.timer {
  font-size: 32px;
  color: var(--primary);
  font-weight: 900;
  margin: 20px 0;
}

.check {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 44px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-store {
  background: #000;
  max-width: 360px;
  margin: 24px auto 0;
}

.row-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  .checkout-page {
    padding: 0;
  }

  .checkout-card {
    border-radius: 0;
    border: none;
  }

  .checkout-header {
    padding: 0 18px;
  }

  .checkout-header img {
    width: 115px;
  }

  .progress {
    padding: 22px 14px;
    gap: 8px;
    overflow-x: auto;
  }

  .step {
    min-width: max-content;
    font-size: 12px;
  }

  .checkout-content {
    display: block;
    padding: 24px 18px;
  }

  .order-summary {
    display: none;
  }

  .checkout-step h2 {
    font-size: 22px;
  }
}


.checkout-progress {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 22px;
  position: relative;
}

.checkout-progress::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 70px;
  right: 70px;
  height: 2px;
  background: #e5e5e5;
}

.progress-item {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #999;
  font-size: 12px;
  font-weight: 700;
}

.progress-item span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.progress-item.active {
  color: var(--primary);
}

.progress-item.active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.progress-item small {
  font-size: 12px;
}

@media (max-width: 768px) {
  .checkout-progress {
    padding: 22px 28px;
  }

  .checkout-progress::before {
    left: 55px;
    right: 55px;
    top: 38px;
  }

  .progress-item small {
    font-size: 11px;
  }

  .progress-item span {
    width: 26px;
    height: 26px;
  }
}


@media (max-width: 768px) {
  .row-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.shipping-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.shipping-card {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #ddd !important;
  border-radius: 10px;
  margin-bottom: 0 !important;
}

.shipping-card.active {
  border-color: #111 !important;
}

.shipping-card strong {
  display: block;
  margin-bottom: 6px;
}

.shipping-card span {
  font-size: 13px;
  color: #555;
}

.shipping-card b {
  color: #20b15a;
  font-size: 16px;
}

.mobile-order-summary {
  display: none;
}

@media (max-width: 768px) {
  .mobile-order-summary {
    display: block;
    background: #fff;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e5e5;
  }

  .mobile-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
  }

  .mobile-summary-header strong {
    font-size: 17px;
  }

  .mobile-summary-product {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
  }

  .mobile-summary-product img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: #eee;
  }

  .mobile-summary-product strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
  }

  .mobile-summary-product p {
    font-size: 12px;
    color: #666;
    margin: 3px 0;
  }

  .mobile-summary-product span {
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-summary-lines {
    padding-top: 12px;
    display: grid;
    gap: 9px;
    font-size: 14px;
  }

  .mobile-summary-lines div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-summary-final {
    padding-top: 9px;
    border-top: 1px solid #eee;
    font-size: 16px;
    font-weight: 800;
  }
}

.checkout-step h2 {
  font-size: 32px;
  font-weight: 700;
  color: #111;
}

.order-summary {
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.checkout-form input {
  border: 1px solid #dcdcdc;
  transition: .2s;
}

.checkout-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(181,131,77,.12);
}