/* ================= CHECKOUT MAIN ================= */
.checkout-main {
  padding: 40px;
  min-height: 60vh;
}

.checkout-container {
  max-width: 1260px;
  margin: auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ================= ITENS ================= */
.checkout-itens {
  flex: 1;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
}

.checkout-header {
  padding: 20px 24px;
  border-bottom: 1px solid #1e293b;
}

.checkout-header h2 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
}

.checkout-header h2 i {
  color: #ff4a00;
}

#lista-carrinho {
  list-style: none;
}

#lista-carrinho li {
  padding: 16px 24px;
  border-bottom: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

#lista-carrinho li:last-child {
  border-bottom: none;
}

/* ================= RESUMO ================= */
.checkout-resumo {
  width: 400px;
  flex-shrink: 0;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 100px;
}

.checkout-resumo h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1e293b;
}

.checkout-resumo h3 i {
  color: #ff4a00;
}

.resumo-linha {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #94a3b8;
  border-bottom: 1px solid #0f172a;
}

.resumo-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.resumo-total span:last-child {
  color: #ff4a00;
  font-size: 19px;
}

/* ================= ENDEREÇO ================= */
.checkout-endereco {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
}

.checkout-endereco strong {
  color: #e2e8f0;
  display: block;
  margin-bottom: 4px;
}

.checkout-endereco-resumo p {
  margin: 0 0 6px;
}

.checkout-endereco-rotulo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 60, 0, 0.12);
  border: 1px solid rgba(255, 60, 0, 0.24);
  color: #ffb199;
  font-size: 11px;
  font-weight: 700;
}

.checkout-endereco-troca {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #1e293b;
}

.checkout-endereco-label {
  display: block;
  margin-bottom: 10px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.checkout-endereco-opcoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-endereco-opcao {
  width: 100%;
  border: 1px solid #334155;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: #cbd5e1;
  cursor: pointer;
  transition: 0.2s;
}

.checkout-endereco-opcao strong {
  margin-bottom: 4px;
}

.checkout-endereco-opcao span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.checkout-endereco-opcao:hover,
.checkout-endereco-opcao.ativo {
  border-color: #ff4a00;
  background: rgba(255, 60, 0, 0.08);
}

.checkout-endereco-aviso,
.checkout-frete-info {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.checkout-endereco-aviso {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}

.checkout-frete-info {
  background: rgba(255, 60, 0, 0.08);
  border: 1px solid rgba(255, 60, 0, 0.22);
  color: #ffb199;
}

.checkout-endereco-links {
  margin-top: 12px;
}

.checkout-endereco-links a {
  color: #ff7a4f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.checkout-endereco-links a:hover {
  text-decoration: underline;
}

/* ================= BOTÕES ================= */
.btn-confirmar {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff4a00, #d94300);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.3s;
}

.btn-confirmar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 60, 0, 0.35);
}

.btn-voltar-checkout {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
  margin-top: 10px;
}

.btn-voltar-checkout:hover {
  border-color: #ff4a00;
  color: #ff4a00;
}

@media (max-width: 1024px) {
  .checkout-resumo {
    width: 340px;
  }
}

@media (max-width: 900px) {
  .checkout-container {
    flex-direction: column;
  }
  .checkout-resumo {
    width: 100%;
    position: static;
  }
  .checkout-main {
    padding: 20px;
  }
}

/* ================= STATUS PAGAMENTO ================= */
.payment-status {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.payment-status.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.payment-status.pending {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid #eab308;
  color: #eab308;
}

.payment-status.failure {
  background: rgba(255, 60, 0, 0.15);
  border: 1px solid #ff4a00;
  color: #ff4a00;
}

.payment-status i {
  font-size: 18px;
}

.btn-confirmar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ================= CUPOM ================= */
.checkout-cupom {
  margin: 16px 0;
  padding: 14px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
}

.checkout-cupom label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  display: block;
  margin-bottom: 8px;
}

.checkout-cupom label i {
  color: #ff4a00;
}

.checkout-cupom-row {
  display: flex;
  gap: 8px;
}

.checkout-cupom-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.checkout-cupom-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 12px;
}

.checkout-cupom-chip strong {
  letter-spacing: 0.6px;
}

.checkout-cupom-remover {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #334155;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.checkout-cupom-remover:hover {
  background: #ef4444;
  color: #fff;
}

.checkout-cupom input {
  flex: 1;
  padding: 9px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 13px;
  text-transform: uppercase;
  outline: none;
  color: #e2e8f0;
}

.checkout-cupom input::placeholder {
  color: #64748b;
}

.checkout-cupom input:focus {
  border-color: #ff4a00;
}

.checkout-cupom .btn-aplicar-cupom {
  padding: 9px 16px;
  background: #ff4a00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.checkout-cupom .btn-aplicar-cupom:hover {
  background: #d94300;
}

#cupomMsg {
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
  color: #94a3b8;
}

/* ================= ENTREGA / RETIRADA ================= */
.checkout-entrega {
  margin: 16px 0;
}

.checkout-entrega > p {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.checkout-entrega > p i {
  color: #ff4a00;
}

.checkout-entrega-opcoes {
  display: flex;
  gap: 10px;
}

.entrega-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #334155;
  border-radius: 10px;
  background: #0f172a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: 0.2s;
}

.entrega-btn i {
  font-size: 20px;
  color: #64748b;
}

.entrega-btn .entrega-nome {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.entrega-btn .entrega-sub {
  font-size: 10px;
  color: #64748b;
}

.entrega-btn:hover {
  border-color: #475569;
  background: #1e293b;
}

.entrega-btn.entrega-ativo {
  border-color: #ff4a00;
  background: rgba(255, 60, 0, 0.1);
}

.entrega-btn.entrega-ativo i {
  color: #ff4a00;
}

/* ================= MÉTODO PAGAMENTO ================= */
.checkout-metodo {
  margin: 16px 0;
}

.checkout-metodo > p {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.checkout-metodo > p i {
  color: #ff4a00;
}

.checkout-metodo-opcoes {
  display: flex;
  gap: 10px;
}

.metodo-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #334155;
  border-radius: 10px;
  background: #0f172a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: 0.2s;
}

.metodo-btn i {
  font-size: 20px;
  color: #64748b;
}

.metodo-btn .metodo-nome {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.metodo-btn .metodo-sub {
  font-size: 10px;
  color: #64748b;
}

.metodo-btn:hover {
  border-color: #475569;
  background: #1e293b;
}

.metodo-btn.metodo-mp.metodo-ativo {
  border-color: #ff4a00;
  background: rgba(255, 60, 0, 0.1);
}

.metodo-btn.metodo-mp.metodo-ativo i {
  color: #ff4a00;
}

.metodo-btn.metodo-pix.metodo-ativo {
  border-color: #32bcad;
  background: rgba(50, 188, 173, 0.1);
}

.metodo-btn.metodo-pix.metodo-ativo i {
  color: #32bcad;
}

.btn-confirmar.btn-pix {
  background: linear-gradient(135deg, #32bcad, #1ea99c);
}

@media (max-width: 600px) {
  .checkout-main {
    padding: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .checkout-etapa {
    padding: 16px;
  }
  .etapa-title {
    font-size: 15px;
  }
  .checkout-resumo-item {
    font-size: 13px;
  }
  .btn-confirmar {
    font-size: 14px;
    padding: 12px;
  }
  .metodos-pagamento {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .checkout-main {
    padding: 8px;
  }
  .form-group label {
    font-size: 12px;
  }
  .form-group input,
  .form-group select {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* ================= UPGRADE VISUAL 2026 ================= */
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.page-hero-content h1 {
  font-family: "Rajdhani", "Manrope", sans-serif;
  letter-spacing: 0.02em;
}

.checkout-flow {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 40px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.flow-step {
  border: 1px solid #2a3e57;
  background: linear-gradient(160deg, #101927, #0c131f);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #3c5571;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a8bfd9;
  font-size: 12px;
  font-weight: 800;
}

.flow-step strong {
  color: #bcd0e8;
  font-size: 13px;
}

.flow-step.is-done {
  border-color: rgba(39, 201, 136, 0.5);
  background: linear-gradient(
    150deg,
    rgba(39, 201, 136, 0.18),
    rgba(39, 201, 136, 0.07)
  );
}

.flow-step.is-done span {
  border-color: #2dcf90;
  color: #b8f1d8;
}

.flow-step.active {
  border-color: rgba(255, 115, 69, 0.66);
  background: linear-gradient(
    150deg,
    rgba(255, 90, 31, 0.2),
    rgba(255, 90, 31, 0.1)
  );
}

.flow-step.active span {
  border-color: #ff8c5f;
  color: #ffd5c4;
}

.checkout-main {
  padding-top: 28px;
  background:
    radial-gradient(
      circle at 10% -8%,
      rgba(255, 90, 31, 0.14),
      transparent 28%
    ),
    radial-gradient(circle at 94% 8%, rgba(56, 189, 248, 0.09), transparent 24%);
}

.checkout-container {
  gap: 20px;
}

.checkout-itens,
.checkout-resumo {
  border-color: rgba(48, 70, 96, 0.6);
  box-shadow: 0 22px 46px rgba(1, 8, 16, 0.28);
}

#lista-carrinho li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

#lista-carrinho li span:last-child {
  font-weight: 700;
  color: #f6fbff;
  text-align: right;
}

.checkout-resumo {
  background: linear-gradient(
    165deg,
    rgba(14, 22, 34, 0.96),
    rgba(11, 18, 28, 0.96)
  );
  backdrop-filter: blur(8px);
}

.resumo-total span:last-child {
  color: #ff926a;
}

.checkout-seguro {
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 79, 107, 0.66);
  background: rgba(9, 17, 28, 0.74);
  display: grid;
  gap: 8px;
}

.checkout-seguro p {
  color: #9eb2cb;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkout-seguro i {
  color: #ff8b61;
}

@media (max-width: 900px) {
  .checkout-flow {
    padding: 14px 20px 0;
  }

  .checkout-main {
    padding-top: 18px;
  }
}

@media (max-width: 680px) {
  .checkout-flow {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  #lista-carrinho li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #lista-carrinho li span:last-child {
    text-align: left;
  }

  .checkout-metodo-opcoes {
    flex-direction: column;
  }

  .checkout-entrega-opcoes {
    flex-direction: column;
  }
}
