*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f2f2f4;
  color: #1a1a2e;
  font-size: 15px;
  line-height: 1.5;
}

/* HEADER */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
  padding: 18px 24px;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #15803d;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: right;
  line-height: 1.25;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .header-secure { font-size: 0.62rem; white-space: normal; max-width: 110px; }
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--brand, #1a1a2e);
}
.logo-img { height: 44px; display: block; }

/* BANNER */
.banner {
  background: #f4b400;
  color: #1a1a2e;
  font-weight: 700;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.95rem;
}
.banner-timer strong { font-variant-numeric: tabular-nums; }

/* MAIN LAYOUT */
.main {
  max-width: 1140px;
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
.col-left, .col-right { display: flex; flex-direction: column; gap: 20px; }

/* desktop: carrinho fica na coluna direita, topo */
.cart-wrap  { grid-column: 2; grid-row: 1; }
.col-left   { grid-column: 1; grid-row: 1 / span 2; }
.col-right  { grid-column: 2; grid-row: 2; }

/* mobile: carrinho aparece primeiro, acima da identificação (ordem do DOM) */
@media (max-width: 860px) {
  .main { display: flex; flex-direction: column; gap: 20px; }
}

/* CARD */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* FORM */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) {
  .grid2 { grid-template-columns: 1fr; }
}
.field { margin-bottom: 16px; }
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 16px;
  font-size: 0.85rem;
  color: #555;
}
.checkbox-field input { width: 16px; height: 16px; }
.checkbox-field label { cursor: pointer; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8de;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--brand, #1a1a2e); }
.field input.error { border-color: #e11d48; }
.field-error { display: block; color: #e11d48; font-size: 0.8rem; margin-top: 4px; }

/* PIX OPTION */
.pix-option {
  border: 2px solid #f4901e;
  border-radius: 8px;
  padding: 14px 20px;
  width: fit-content;
  margin-bottom: 16px;
}
.pix-logo { height: 22px; }
.pix-logo-text { color: #2eb8a3; font-weight: 700; font-size: 1.1rem; }

.pix-note {
  background: #f7f7f9;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 20px;
}

.btn-pix {
  display: block;
  margin-left: auto;
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .15s;
}
.btn-pix:hover { background: #16a34a; }
.btn-pix:disabled { opacity: .6; cursor: not-allowed; }

/* PIX SECTION */
.pix-sub { color: #666; margin-bottom: 20px; font-size: 0.9rem; }
.qr-box { display: flex; justify-content: center; margin-bottom: 20px; }
.qr-img { width: 220px; height: 220px; border: 1px solid #e5e5ea; border-radius: 8px; padding: 10px; }
.pix-code-box label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.pix-copy-row { display: flex; gap: 10px; }
.pix-copy-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #d8d8de;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #f7f7f9;
}
.btn-copy {
  background: var(--brand, #1a1a2e);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
}
.copy-confirm { display: block; color: #22c55e; font-size: 0.85rem; margin-top: 8px; font-weight: 600; }
.pix-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  color: #15803d;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid #bbf7d0;
  border-top-color: #15803d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pix-info p { font-size: 0.82rem; color: #777; margin-bottom: 4px; }

/* SUCCESS */
.success-section { text-align: center; padding: 40px 24px; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.success-section h2 { margin-bottom: 10px; }
.success-section p { color: #666; }

/* CART CARD */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.cart-header-right { display: flex; align-items: center; gap: 10px; }
.cart-chevron { color: #999; font-size: 1.1rem; font-weight: 700; line-height: 1; }
.cart-badge {
  background: #f4901e;
  color: #fff;
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.cart-item-img {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; display: flex; flex-direction: column; }
.cart-item-info strong { font-size: 0.9rem; }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  padding: 6px 14px;
  flex-shrink: 0;
}
.qty-stepper span { font-weight: 600; min-width: 10px; text-align: center; }
.qty-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 18px;
}
.qty-minus { color: #ef4444; }
.qty-plus { color: #22c55e; }
.cart-item-status { font-size: 0.78rem; color: #999; }
.cart-item-qty { font-size: 0.85rem; color: #666; }
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  padding: 6px 0;
}
.cart-total {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1a2e;
  border-top: 1px solid #eee;
  margin-top: 6px;
  padding-top: 12px;
}

.secure-pill {
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #15803d;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* REVIEWS */
.reviews-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.reviews-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand, #1a1a2e);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.reviews-header-text { display: flex; flex-direction: column; }
.reviews-stars { color: #f4b400; font-size: 0.85rem; }
.review-item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.review-item-head strong { font-size: 0.85rem; }
.review-stars { color: #f4b400; font-size: 0.8rem; white-space: nowrap; }
.review-text { font-size: 0.85rem; color: #555; line-height: 1.5; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 0.85rem;
}
.footer-pix { height: 20px; margin: 10px 0; }
.footer-copy { margin-top: 10px; }
