/* ============================================================
   Loja Core · pdp-finance.css — variante "máquina pesada" + financiamento
   Escopo .pdp-mo (buy box da PDP) e .pdp-sbb-root (sticky bar).
   Carrega só quando o produto financia ou é máquina pesada (inc/enqueue.php).
   ============================================================ */

/* ---- Disponibilidade (máquina: sem FOMO teatral) ---------------------- */
.pdp-mo .pdp-buy__avail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lc-ink-2);
}
.pdp-mo .pdp-buy__avail-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lc-success);
  box-shadow: 0 0 0 3px var(--lc-success-50);
}

/* ---- Card de financiamento ------------------------------------------- */
.pdp-mo .pdp-buy__fin {
  background: var(--lc-primary-soft);
  color: var(--lc-on-dark);
  border-radius: var(--lc-r);
  padding: 14px 18px 16px;
  margin: 0 0 14px;
  scroll-margin-top: 96px;
}
.pdp-mo .pdp-buy__fin-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.pdp-mo .pdp-buy__fin-kicker {
  font-family: var(--lc-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pdp-mo .pdp-buy__fin-lines { font-size: 11.5px; opacity: .85; letter-spacing: .03em; }
.pdp-mo .pdp-buy__fin-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.pdp-mo .pdp-buy__fin-from { display: block; font-size: 12px; opacity: .85; }
.pdp-mo .pdp-buy__fin-monthly {
  display: block;
  font-family: var(--lc-font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.pdp-mo .pdp-buy__fin-monthly small { font-size: 14px; font-weight: 500; }
.pdp-mo .pdp-buy__fin-terms { display: block; font-size: 11.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.pdp-mo .pdp-buy__fin-cta {
  background: var(--lc-card);
  color: var(--lc-primary);
  border: 0;
  border-radius: var(--lc-r-sm);
  font-family: var(--lc-font-display);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background var(--lc-t) var(--lc-ease);
}
.pdp-mo .pdp-buy__fin-cta:hover { background: var(--lc-primary-50); }

/* ---- Frete de máquina pesada / selos ---------------------------------- */
.pdp-mo .pdp-buy__ship-pill--note {
  background: var(--lc-primary-50);
  color: var(--lc-primary);
}
.pdp-mo .pdp-buy__trust-icon svg { width: 20px; height: 20px; color: var(--lc-primary-soft); }
.pdp-mo .pdp-buy__trust--5 .pdp-buy__trust-item:last-child { grid-column: 1 / -1; }
.pdp-mo .pdp-buy__whatsapp .ic svg { width: 18px; height: 18px; vertical-align: -3px; }
.pdp-mo .pdp-buy__ship-title .ic svg { width: 16px; height: 16px; vertical-align: -3px; }

/* ---- Sticky bar: botão SIMULAR ---------------------------------------- */
.pdp-sbb-root .pdp-sbb__sim {
  border: 1.5px solid var(--lc-primary);
  border-radius: 7px;
  background: var(--lc-card);
  color: var(--lc-primary);
  font-family: var(--lc-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  height: 44px;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
}
.pdp-sbb-root .pdp-sbb__sim:hover { background: var(--lc-primary-50); }
.pdp-sbb-root .pdp-sbb__sim--mobile { height: 44px; padding: 0 10px; font-size: 12px; }

/* ---- Modal do simulador ----------------------------------------------- */
.pdp-mo .pdp-sim {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.pdp-mo .pdp-sim[hidden] { display: none; }
.pdp-mo .pdp-sim__scrim { position: absolute; inset: 0; background: rgba(12, 36, 84, .55); }
.pdp-mo .pdp-sim__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--lc-card);
  border-radius: var(--lc-r-lg);
  padding: 22px 24px 24px;
  box-shadow: var(--lc-shadow-lg);
  font-variant-numeric: tabular-nums;
}
.pdp-mo .pdp-sim__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pdp-mo .pdp-sim__head h2 {
  font-family: var(--lc-font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--lc-ink);
  text-transform: none;
}
.pdp-mo .pdp-sim__close { border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--lc-ink-3); padding: 4px 8px; cursor: pointer; }
.pdp-mo .pdp-sim__product { font-size: 13px; color: var(--lc-ink-2); margin: 0 0 16px; }
.pdp-mo .pdp-sim__product b { color: var(--lc-ink); }
.pdp-mo .pdp-sim__field { margin-bottom: 14px; }
.pdp-mo .pdp-sim__field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--lc-ink-2);
  margin-bottom: 7px;
}
.pdp-mo .pdp-sim__field output { font-weight: 700; color: var(--lc-ink); text-transform: none; letter-spacing: 0; }
.pdp-mo .pdp-sim__field input[type="range"] { width: 100%; accent-color: var(--lc-primary-soft); }
.pdp-mo .pdp-sim__field select {
  width: 100%;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-r-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--lc-font-body);
  background: var(--lc-card);
  color: var(--lc-ink);
}
.pdp-mo .pdp-sim__result { border: 1px solid var(--lc-line); border-radius: var(--lc-r); padding: 4px 14px; margin: 16px 0 12px; }
.pdp-mo .pdp-sim__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--lc-ink-2);
  border-bottom: 1px dashed var(--lc-line);
}
.pdp-mo .pdp-sim__row:last-child { border-bottom: 0; }
.pdp-mo .pdp-sim__row--main { font-size: 14px; }
.pdp-mo .pdp-sim__row--main b { font-family: var(--lc-font-display); font-size: 20px; font-weight: 700; color: var(--lc-primary); }
.pdp-mo .pdp-sim__disclaimer { font-size: 11.5px; color: var(--lc-ink-3); line-height: 1.5; margin: 0 0 14px; }
.pdp-mo .pdp-sim__ok {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: var(--lc-primary);
  color: var(--lc-on-dark);
  font-family: var(--lc-font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 16px;
  cursor: pointer;
}
.pdp-mo .pdp-sim__ok:hover { background: var(--lc-primary-deep); }

@media (max-width: 720px) {
  .pdp-mo .pdp-buy__fin-main { align-items: flex-start; }
  .pdp-mo .pdp-buy__fin-cta { width: 100%; }
}
@media (max-width: 480px) {
  .pdp-sbb-root .pdp-sbb__sim--mobile { font-size: 11px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-mo .pdp-buy__fin-cta { transition: none; }
}
