:root {
  --primary-default: rgb(8, 221, 126);
  --primary-dark: rgb(5, 156, 88);
  --primary-lighter: rgb(7, 232, 131);
  --gray-100: #f3f4f6;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --font-primary: "Outfit", sans-serif;
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--gray-100);
  min-height: 100vh;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .container {
    grid-template-columns: 2fr 1fr;
    padding: 3rem 1rem;
  }
}

.w-full {
  width: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

/* Form Styles */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-section {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.form-section h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  min-height: 50px;
  padding: 0.5rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  transition: all 0.2s;
}

.form-group input:hover {
  border-color: var(--gray-600);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gray-600);
  box-shadow: 0 0 0 1px var(--gray-600);
}

/* Payment Section */
.payment-options {
  display: flex;
  gap: 0.75rem;
}

.payment-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  background: white;
  cursor: pointer;
}

.submit-section {
  margin-top: 1.5rem;
}

.submit-button {
  width: 100%;
  background: var(--primary-default);
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 1rem;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background: var(--primary-dark);
}

@media (min-width: 768px) {
  .submit-button {
    grid-column: 2;
  }
}

/* Cart Summary */
.cart-summary {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-header h2 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--gray-600);
}

.cart-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #0762d1;
  color: white;
  border-radius: 50%;
  font-weight: 700;
}

.cart-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}

.item-details {
  display: flex;
  gap: 0.5rem;
}

.item-image {
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.3rem;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
}

.item-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: var(--font-regular);
  color: var(--gray-400);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

.cart-total strong {
  font-weight: var(--font-bold);
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.security-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  background: white;
  border: none;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.4s;
}

.security-button:hover {
  box-shadow: 0 0 7px rgba(46, 133, 236, 0.3);
}

.security-icon {
  width: 1.375rem;
  height: 1.375rem;
  margin-right: 0.25rem;
  fill: #41c286;
}

/* Estilos da tela do PIX */
.pix-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  text-align: center;
}

.pix-container h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: #333;
}

.qr-code-container {
  margin: 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.pix-copy-text {
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  color: #666;
}

.pix-code-container {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pix-code-container input {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  background: #f5f5f5;
}

.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #0066ff;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: background 0.2s;
}

.copy-button:hover {
  background: #0052cc;
}

.copy-button svg {
  fill: currentColor;
}

.payment-details {
  margin: 2rem 0;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 0.5rem;
}

.payment-details h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: 1rem;
}

.total-value {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  color: #333;
}

.total-value strong {
  font-weight: var(--font-bold);
  color: var(--primary-default);
}

.payment-instructions {
  text-align: left;
  margin-top: 2rem;
}

.payment-instructions h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: 1.5rem;
}

.instruction-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.step-icon {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  background: #00b341;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: white;
}

.instruction-step p {
  font-size: var(--text-base);
  font-weight: var(--font-regular);
}

/* Reset tipográfico */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-semibold);
  line-height: 1.2;
}

/* Estilos simplificados e centralizados */
.payment-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.payment-method {
  margin-bottom: 1.5rem;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: center; /* Centraliza os itens */
  gap: 0.5rem; /* Reduzido o espaço entre ícone e texto */
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: #f9fafb;
}

.payment-icon {
  width: 24px;
  height: 24px;
}

.payment-label {
  font-size: var(--text-base);
  color: var(--gray-600);
}

/* Botão mantém o mesmo estilo */
.submit-button {
  width: 100%;
  background: var(--primary-default);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.875rem;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background: var(--primary-dark);
}

/* Ajustes no carrinho */
.cart-summary {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Rodapé com formas de pagamento */
.payment-footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  margin-top: 2rem;
}

.payment-footer h4 {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.payment-methods-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 2rem;
  font-size: var(--text-xs);
  color: var(--gray-600);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.secure-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--primary-default);
}
