/* TPC26 Vue 3D — couleurs du thème Tuning-PC (rouge #c02020, bleu #0066ff) */
.tpc3d-btn {
  display: inline-flex; align-items: center; gap: .5em; margin: 12px 0 4px; padding: .7em 1.2em;
  background: #fff; color: #0f172a; border: 2px solid #0066ff; border-radius: 8px;
  font: 600 15px/1.2 Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s, color .15s;
}
.tpc3d-btn:hover, .tpc3d-btn:focus-visible { background: #0066ff; color: #fff; }
.tpc3d-ico { display: inline-flex; }

.woocommerce-product-gallery { position: relative; }
.tpc3d-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 9; display: inline-flex; align-items: center; gap: .35em;
  padding: .45em .75em; background: rgba(15, 23, 42, .85); color: #fff; border: 0; border-radius: 999px;
  font: 700 13px/1 Inter, system-ui, sans-serif; letter-spacing: .04em; cursor: pointer;
}
.tpc3d-badge:hover, .tpc3d-badge:focus-visible { background: #c02020; }

.tpc3d-lock { overflow: hidden; }
.tpc3d-dialog {
  width: min(1100px, 96vw); height: min(820px, 92vh); max-width: none; max-height: none; padding: 0;
  border: 0; border-radius: 14px; background: #f7f8fc; color: #0f172a; overflow: hidden;
  display: none; flex-direction: column;
}
.tpc3d-dialog[open] { display: flex; }
.tpc3d-dialog::backdrop { background: rgba(15, 23, 42, .72); }
.tpc3d-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 18px;
  background: #fff; border-bottom: 1px solid #e2e8f0; font: 600 15px/1.3 Inter, system-ui, sans-serif;
}
.tpc3d-close {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 8px; background: transparent; color: #0f172a;
  font-size: 28px; line-height: 1; cursor: pointer;
}
.tpc3d-close:hover, .tpc3d-close:focus-visible { background: #f1f5f9; color: #c02020; }
.tpc3d-stage { position: relative; flex: 1; min-height: 0; background: radial-gradient(circle at 50% 40%, #fff 0, #eef1f7 70%); }
.tpc3d-stage model-viewer { width: 100%; height: 100%; display: block; --poster-color: transparent; }
.tpc3d-load {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; font: 500 15px Inter, system-ui, sans-serif; color: #64748b; pointer-events: none;
}
.tpc3d-bar { width: 180px; height: 4px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.tpc3d-bar i { display: block; width: 0; height: 100%; background: #0066ff; transition: width .2s; }
.tpc3d-stage.is-ready .tpc3d-load { display: none; }
.tpc3d-ar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: .7em 1.1em; border: 0;
  border-radius: 999px; background: #c02020; color: #fff; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer;
}
.tpc3d-note { margin: 0; padding: 8px 18px 10px; font: 12px/1.45 Inter, system-ui, sans-serif; color: #64748b; background: #fff; border-top: 1px solid #e2e8f0; }

@media (max-width: 640px) {
  .tpc3d-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .tpc3d-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tpc3d-bar i, .tpc3d-btn { transition: none; }
}
