/* ============ ESTAÇÃO DO HEXA - Checkout PIX ============ */

.hexa-cart-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  color: #121212;
}

.hexa-cart-wrap h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -1px;
}

.hexa-cart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.hexa-cart-top a {
  color: #121212;
  text-decoration: underline;
  font-size: 14px;
}

.hexa-cart-headers {
  display: grid;
  grid-template-columns: 1fr 200px 150px;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
  text-transform: uppercase;
  font-size: 12px;
  color: #6b6b6b;
  letter-spacing: 0.5px;
}

.hexa-cart-items { margin-bottom: 24px; }

.hexa-cart-item {
  display: grid;
  grid-template-columns: 1fr 200px 150px;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e5;
  align-items: center;
}

.hexa-cart-prod {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hexa-cart-prod img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.hexa-cart-prod-info { flex: 1; min-width: 0; }

.hexa-cart-prod-vendor {
  font-size: 11px;
  text-transform: uppercase;
  color: #6b6b6b;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.hexa-cart-prod-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hexa-cart-prod-price {
  font-size: 13px;
  color: #121212;
}

.hexa-cart-prod-price s {
  color: #999;
  margin-left: 8px;
}

.hexa-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #121212;
  height: 40px;
}

.hexa-qty button {
  width: 36px;
  height: 38px;
  background: #fff;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
}

.hexa-qty button:hover { background: #f5f5f5; }

.hexa-qty input {
  width: 50px;
  text-align: center;
  border: 0;
  height: 38px;
  font-size: 14px;
  font-weight: 600;
  -moz-appearance: textfield;
}

.hexa-qty input::-webkit-outer-spin-button,
.hexa-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hexa-remove {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
  color: #6b6b6b;
}

.hexa-remove:hover { color: #121212; }

.hexa-cart-totals {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  margin-top: 32px;
}

.hexa-cart-totals-left {}

.hexa-cart-totals-right { text-align: right; }

.hexa-total-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.hexa-total-line.discount { color: #00875a; }

.hexa-total-line.grand {
  border-top: 1px solid #e5e5e5;
  margin-top: 12px;
  padding-top: 16px;
  font-size: 20px;
  font-weight: 700;
}

.hexa-total-line.grand .val { color: #00a86b; }

.hexa-checkout-btn {
  display: block;
  width: 100%;
  background: #000;
  color: #fff;
  border: 0;
  padding: 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 24px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: inherit;
}

.hexa-checkout-btn:hover { background: #222; }
.hexa-checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hexa-cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.hexa-cart-empty h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.hexa-cart-empty a {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 16px 32px;
  text-decoration: none;
  margin-top: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ============ MODAL DE CHECKOUT ============ */

.hexa-pix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow-y: auto;
  z-index: 99999;
}

.hexa-pix-overlay.open { display: flex; }

.hexa-pix-modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  padding: 32px;
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  color: #121212;
}

.hexa-pix-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.hexa-pix-modal h2 {
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 700;
}

.hexa-pix-modal .subtitle {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 24px;
}

.hexa-pix-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hexa-pix-form .row.three { grid-template-columns: 1fr 80px 60px; }

.hexa-pix-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hexa-pix-form label.full { grid-column: span 2; }

.hexa-pix-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c5c5c5;
  font-size: 14px;
  font-family: inherit;
  margin-top: 4px;
  box-sizing: border-box;
  color: #121212;
  background: #fff;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.hexa-pix-form input:focus {
  outline: none;
  border-color: #121212;
}

.hexa-pix-submit {
  width: 100%;
  background: #00a86b;
  color: #fff;
  border: 0;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 8px;
  font-family: inherit;
}

.hexa-pix-submit:hover { background: #00935b; }
.hexa-pix-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.hexa-pix-result { text-align: center; }

.hexa-pix-result h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.hexa-pix-result img.qr {
  width: 260px;
  height: 260px;
  margin: 0 auto 20px;
  display: block;
  border: 1px solid #e5e5e5;
}

.hexa-pix-result .copy-block {
  background: #f5f5f5;
  padding: 12px;
  font-size: 11px;
  word-break: break-all;
  border-radius: 4px;
  margin-bottom: 12px;
  font-family: monospace;
  text-align: left;
}

.hexa-pix-result button.copy-btn {
  width: 100%;
  background: #121212;
  color: #fff;
  border: 0;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: inherit;
}

.hexa-pix-result .total-line {
  font-size: 14px;
  margin-bottom: 16px;
  color: #6b6b6b;
}

.hexa-pix-result .total-line strong {
  color: #121212;
  font-size: 18px;
  display: block;
  margin-top: 4px;
}

.hexa-pix-status {
  margin-top: 16px;
  padding: 12px;
  background: #fffde7;
  border-left: 3px solid #f5b800;
  font-size: 13px;
  text-align: left;
}

.hexa-pix-status.paid {
  background: #e8f5e9;
  border-left-color: #00a86b;
  color: #00712f;
  font-weight: 600;
}

.hexa-pix-error {
  background: #ffe8e8;
  color: #c62828;
  padding: 12px;
  font-size: 13px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .hexa-cart-wrap h1 { font-size: 32px; }
  .hexa-cart-headers,
  .hexa-cart-item { grid-template-columns: 1fr; }
  .hexa-cart-headers { display: none; }
  .hexa-cart-totals { grid-template-columns: 1fr; }
  .hexa-pix-modal { padding: 20px; }
  .hexa-pix-form .row { grid-template-columns: 1fr; }
  .hexa-pix-form .row.three { grid-template-columns: 1fr 1fr 1fr; }
  .hexa-pix-form label.full { grid-column: span 1; }
}
