
.product-page {
  background: #f5f9fd;
  color: #0d1d2f;
}

.product-page .topbar {
  background: rgba(6, 20, 38, .94);
}

.product-breadcrumb {
  padding-top: 32px;
  color: #6e8296;
  font-size: .86rem;
}

.product-breadcrumb a {
  color: #168edc;
  font-weight: 700;
}

.product-breadcrumb span {
  margin: 0 7px;
}

.product-detail {
  padding: 28px 0 56px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  gap: 42px;
  align-items: center;
}

.product-detail-image {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: white;
  border: 1px solid #dce8f3;
  box-shadow: 0 24px 65px rgba(24, 57, 91, .10);
}

.product-detail-image > img:first-child {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.product-detail-brand {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(7px);
  box-shadow: 0 8px 24px rgba(19, 47, 75, .10);
}

.product-detail-brand img {
  display: block;
  height: 22px;
  width: auto;
}

.product-detail-copy .eyebrow {
  margin-bottom: 12px;
}

.product-detail-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.055em;
  color: #07182f;
}

.product-detail-copy > p {
  max-width: 680px;
  margin-top: 18px;
  color: #667b8f;
  font-size: 1.02rem;
}

.product-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.product-point {
  padding: 14px;
  border-radius: 16px;
  background: white;
  border: 1px solid #dfeaf4;
}

.product-point strong {
  display: block;
  font-size: .86rem;
}

.product-point small {
  color: #708397;
  display: block;
  margin-top: 4px;
}

.product-order-section {
  padding: 72px 0 90px;
  background: #edf5fb;
}

.product-order-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.product-order-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.product-order-heading p {
  color: #667a8e;
  margin-top: 12px;
}

.product-order-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: start;
}

.product-order-form {
  padding: 30px;
}

.measure-alert {
  margin: 22px 0;
  border: 1px solid #ffd67a;
  border-radius: 18px;
  overflow: hidden;
  background: #fffaf0;
}

.measure-alert-head {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px;
}

.measure-alert-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff0c7;
  font-weight: 900;
  font-size: 1.1rem;
}

.measure-alert h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.measure-alert p {
  color: #725c2d;
  font-size: .89rem;
  line-height: 1.55;
}

.file-check-result {
  margin: 0 18px 17px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.45;
  background: rgba(255,255,255,.72);
  color: #665326;
}

.file-check-result.ok {
  border: 1px solid #b9e5c9;
  background: #f3fff7;
  color: #277445;
}

.file-check-result.warning {
  border: 1px solid #ffd58a;
  background: #fffaf0;
  color: #815f20;
}

.measure-confirm {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 16px 18px;
  border-top: 1px solid #f1ddb0;
  background: rgba(255,255,255,.55);
}

.measure-confirm input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
}

.measure-confirm label {
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.5;
  color: #5c4a23;
}

.product-help-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #071b32;
  color: white;
}

.product-help-box strong {
  display: block;
  margin-bottom: 7px;
}

.product-help-box p {
  color: #bfd1e2;
  font-size: .86rem;
  line-height: 1.55;
}

.product-help-box a {
  color: #72d9ff;
  font-weight: 800;
}

.size-live {
  margin-top: 8px;
  color: #168edc;
  font-size: .82rem;
  font-weight: 800;
}

.product-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: #168edc;
  font-weight: 800;
  font-size: .9rem;
}

.product-page .summary-card {
  top: 100px;
}

.product-page footer {
  margin-top: 0;
}

@media (max-width: 980px) {
  .product-detail-grid,
  .product-order-grid {
    grid-template-columns: 1fr;
  }

  .product-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-page .summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .product-breadcrumb {
    padding-top: 20px;
  }

  .product-detail {
    padding: 18px 0 42px;
  }

  .product-detail-grid {
    gap: 26px;
  }

  .product-detail-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .product-points {
    grid-template-columns: 1fr;
  }

  .product-order-section {
    padding: 58px 0 70px;
  }

  .product-order-form {
    padding: 20px;
  }

  .product-detail-brand {
    right: 12px;
    bottom: 12px;
  }

  .product-detail-brand img {
    height: 18px;
  }
}


/* Trava de confirmação da arte */
#submitOrderBtn.is-locked,
#submitOrderBtn:disabled {
  background: #9fb5c8;
  color: #edf4f9;
  cursor: not-allowed;
  box-shadow: none;
  opacity: .82;
  transform: none;
}

#submitOrderBtn.is-locked:hover,
#submitOrderBtn:disabled:hover {
  filter: none;
  transform: none;
}

.measure-confirm {
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.measure-confirm:has(input:not(:checked)) {
  background: #fffaf0;
}

.measure-confirm:has(input:checked) {
  background: #f2fff6;
  border-top-color: #b8e5c7;
  box-shadow: inset 0 0 0 1px rgba(42, 154, 83, .08);
}

.measure-confirm:has(input:checked) label {
  color: #24673b;
}


/* Tabela de valores / preview de preço */
.price-preview { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 18px; margin:4px 0 18px; border:1px solid #d9e5ef; border-radius:14px; background:#f7fafc; transition:.2s ease; }
.price-preview > div { display:flex; flex-direction:column; gap:4px; }
.price-preview span { font-size:.72rem; font-weight:900; letter-spacing:.08em; color:#587086; }
.price-preview strong { font-size:1.18rem; color:#0b2946; }
.price-preview small { max-width:280px; color:#6e8192; line-height:1.35; text-align:right; }
.price-preview.has-price { border-color:#f0cf1d; background:#fffbea; box-shadow:inset 4px 0 0 #ffd817; }
.price-preview.has-price strong { font-size:1.45rem; color:#07182d; }
.price-preview.is-consult { border-color:#bfd0df; background:#f2f7fb; }
@media (max-width:640px) { .price-preview { align-items:flex-start; flex-direction:column; } .price-preview small { max-width:none; text-align:left; } }


/* Pagamento PIX / Cartão */
.payment-panel {
  margin: 18px 0 16px;
  border: 1px solid #dce7f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(18, 49, 80, .08);
}

.payment-panel-head {
  padding: 17px 18px;
  background: #07182f;
  color: #ffffff;
}

.payment-panel-head > span {
  display: block;
  margin-bottom: 4px;
  color: #ffd817;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.payment-panel-head > strong {
  display: block;
  font-size: 1.03rem;
}

.payment-panel-head > small {
  display: block;
  margin-top: 5px;
  color: #c8d6e3;
  line-height: 1.35;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.payment-method-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid #dce7f0;
  border-radius: 12px;
  cursor: pointer;
  transition: .2s ease;
}

.payment-method-card:has(input:checked) {
  border-color: #ffd817;
  background: #fffbea;
  box-shadow: inset 0 0 0 1px rgba(255, 216, 23, .22);
}

.payment-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-card > span:last-child {
  min-width: 0;
}

.payment-method-card strong {
  display: block;
  color: #0b2946;
  font-size: .9rem;
}

.payment-method-card small {
  display: block;
  margin-top: 2px;
  color: #6a7d8f;
  font-size: .72rem;
  line-height: 1.25;
}

.payment-method-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
}

.payment-method-icon.pix {
  background: #e7fff7;
  color: #0b8b6f;
  font-size: .72rem;
}

.payment-method-icon.card {
  background: #eef4fb;
  color: #173b63;
  font-size: 1.1rem;
}

.pix-payment-box {
  border-top: 1px solid #e3ebf2;
  padding: 16px;
  background: #f8fbfd;
}

.pix-payment-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 15px;
}

.pix-payment-title span {
  display: block;
  color: #5f7488;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.pix-payment-title strong {
  display: block;
  margin-top: 4px;
  color: #07182f;
  font-size: 1.6rem;
}

.pix-payment-title > small {
  color: #607589;
  text-align: right;
  font-size: .74rem;
}

.pix-payment-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}

.pix-qr-wrap {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dce7f0;
  border-radius: 13px;
  background: white;
}

.pix-qr-code {
  width: 220px;
  min-height: 220px;
  display: grid;
  place-items: center;
  background: white;
}

.pix-qr-code img,
.pix-qr-code canvas {
  max-width: 100%;
  height: auto !important;
}

.pix-qr-wrap small {
  color: #667c90;
  text-align: center;
  font-size: .7rem;
}

.pix-qr-error {
  padding: 18px;
  color: #8a5b00;
  font-size: .8rem;
  text-align: center;
}

.pix-copy-area label {
  display: block;
  margin-bottom: 6px;
  color: #0b2946;
  font-weight: 800;
  font-size: .8rem;
}

.pix-copy-area textarea {
  width: 100%;
  resize: none;
  padding: 10px;
  border: 1px solid #ccd9e5;
  border-radius: 10px;
  background: white;
  color: #304b65;
  font-size: .69rem;
  line-height: 1.35;
  word-break: break-all;
}

.btn-copy-pix {
  width: 100%;
  margin-top: 8px;
  background: #ffd817;
  color: #07182f;
  border: 0;
}

.pix-key-info {
  margin-top: 11px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #eef5fa;
}

.pix-key-info span {
  display: block;
  color: #728598;
  font-size: .68rem;
  font-weight: 800;
}

.pix-key-info strong {
  display: block;
  margin-top: 3px;
  color: #153755;
  font-size: .72rem;
  word-break: break-all;
}

.receipt-upload-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed #c6d6e4;
  border-radius: 12px;
  background: #ffffff;
}

.receipt-upload-box label {
  display: block;
  margin-bottom: 8px;
  color: #0b2946;
}

.receipt-upload-box input {
  width: 100%;
}

.receipt-upload-box small {
  display: block;
  margin: 7px 0 11px;
  color: #6d8194;
}

#whatsappBtn.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .payment-methods,
  .pix-payment-grid {
    grid-template-columns: 1fr;
  }

  .pix-payment-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .pix-payment-title > small {
    text-align: left;
  }

  .pix-qr-wrap {
    width: 100%;
  }
}
