/* Provador virtual: botão na página do produto e a tela da câmera. */
.tryon-btn { display: flex; align-items: center; gap: 14px; width: 100%; margin: 4px 0 18px; padding: 12px 16px 12px 12px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; transition: background-color .2s, transform .16s var(--ease); }
.tryon-btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .tryon-btn:hover { background: var(--blush); } }
.tryon-btn .tryon-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--plum); color: #F4B9C8; }
.tryon-btn .tryon-ic svg { width: 24px; height: 24px; }
.tryon-btn strong { display: block; font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.tryon-btn small { display: block; color: var(--muted); font-size: .88rem; }
.tryon-btn .tryon-go { margin-left: auto; width: 18px; height: 18px; }

.tryon { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(20, 12, 22, .6); opacity: 0; transition: opacity .25s var(--ease); }
.tryon.is-on { opacity: 1; }
.tryon-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); width: min(1080px, 100%); height: min(680px, 100%); background: #fff; border-radius: 20px; overflow: hidden; transform: translateY(14px) scale(.98); transition: transform .35s var(--ease); }
.tryon.is-on .tryon-card { transform: none; }
.tryon-stage { position: relative; display: grid; place-items: center; min-height: 0; background: var(--plum); color: #fff; overflow: hidden; }
.tryon-canvas { width: 100%; height: 100%; object-fit: cover; }
.tryon-canvas.is-mirror { transform: scaleX(-1); }
.tryon-intro { display: grid; justify-items: center; gap: 14px; max-width: 420px; padding: 32px 24px; text-align: center; }
.tryon-intro[hidden] { display: none; }
.tryon-kick { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #F4B9C8; }
.tryon-intro h2 { font-family: var(--head); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.02; text-wrap: balance; }
.tryon-intro p { color: rgba(255, 255, 255, .82); }
.tryon-start { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.tryon-start .btn-dark { background: #fff; color: var(--ink); border-color: #fff; }
.tryon-upload { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); min-height: 48px; font-size: 1rem; letter-spacing: .02em; text-transform: none; }
@media (hover: hover) and (pointer: fine) { .tryon-upload:hover { background: rgba(255, 255, 255, .1); color: #fff; } }
.tryon-private { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.tryon-private svg { flex: none; width: 16px; height: 16px; }
.tryon-status { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 8px 14px; border-radius: 10px; background: rgba(20, 12, 22, .7); font-size: .92rem; white-space: nowrap; }
.tryon-x { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(20, 12, 22, .55); color: #fff; cursor: pointer; }
.tryon-x svg { width: 22px; height: 22px; }
.tryon-compare { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 10px 18px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 600; font-size: .92rem; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .16s var(--ease); }
.tryon-compare.is-on { transform: translateX(-50%) scale(.96); background: #fff; }
.tryon-compare[hidden] { display: none; }

.tryon-panel { display: flex; flex-direction: column; gap: 14px; padding: 72px 28px 28px; overflow-y: auto; }
.tryon-name { font-family: var(--head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.tryon-shade { color: var(--muted); }
.tryon-shade strong { color: var(--ink); }
.tryon-shades { display: flex; flex-wrap: wrap; gap: 12px; }
.tryon-item { display: grid; gap: 10px; }
.tryon-item:last-of-type { margin-bottom: auto; }
.tryon-item-name { font-weight: 600; margin-top: 6px; }
.tryon-shades button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); outline: 2px solid transparent; outline-offset: 3px; cursor: pointer; transition: outline-color .2s, transform .16s var(--ease); }
.tryon-shades button:active { transform: scale(.94); }
.tryon-shades button[aria-checked="true"] { outline-color: var(--ink); }

/* celular: tela cheia, câmera em cima e tons embaixo */
@media (max-width: 760px) {
  .tryon { padding: 0; }
  .tryon-card { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .tryon-panel { gap: 10px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
  .tryon-name { font-size: 1.1rem; }
  .tryon-shades { flex-wrap: nowrap; overflow-x: auto; padding: 4px; margin: 0 -4px; scrollbar-width: none; }
  .tryon-shades button { flex: none; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .tryon-card { transform: none; transition: none; }
}
