/* پرو مجازی — امتحان روی مدل */
.tryon-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border: none; cursor: pointer; font-family: inherit;
  padding: 13px 20px; border-radius: 999px; font-weight: 800; font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.tryon-fab .tryon-count { background: var(--gold); color: #1a1508; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
@media (max-width: 900px) { .tryon-fab { bottom: 78px; } }

.tryon-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.tryon-backdrop.open { display: flex; }
.tryon-modal {
  background: var(--surface); border-radius: 22px; width: 100%; max-width: 760px; max-height: 94vh;
  overflow: auto; display: flex; flex-direction: column;
}
.tryon-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); font-weight: 800; }
.tryon-head button { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--ink-dim); }
.tryon-body { display: flex; gap: 22px; padding: 18px 22px 22px; }
.tryon-stage { flex: 0 0 auto; position: relative; background: var(--surface-2); border-radius: 18px; height: min(74vh, 560px); aspect-ratio: 1 / 2; overflow: hidden; }
.tryon-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tryon-layer { position: absolute; display: flex; justify-content: center; pointer-events: none; }
.tryon-layer img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.tryon-layer.top { z-index: 4; align-items: flex-start; }
.tryon-layer.pants { z-index: 2; align-items: flex-start; }
.tryon-layer.shoes { z-index: 3; align-items: flex-end; }
.tryon-layer.shoes img.flip { transform: scaleX(-1); }
.tryon-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tryon-hint { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.tryon-slot { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); }
.tryon-slot-label { font-size: 11px; color: var(--muted); width: 48px; flex-shrink: 0; }
.tryon-slot-name { flex: 1; font-size: 13px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tryon-slot-name a { color: inherit; }
.tryon-slot-empty { color: var(--muted); font-weight: 500; }
.tryon-slot button { background: none; border: none; color: #B91C1C; cursor: pointer; font-size: 12px; font-family: inherit; }
.tryon-clear { align-self: flex-start; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-family: inherit; font-size: 12.5px; color: var(--ink-dim); }
.tryon-add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 13px 16px; border-radius: var(--radius); border: 1px dashed var(--ink-dim); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13.5px; font-family: inherit; cursor: pointer; }
.tryon-add-btn:hover { background: var(--surface-2); }
@media (max-width: 640px) {
  .tryon-body { flex-direction: column; align-items: center; }
  .tryon-stage { flex: none; height: min(62vh, 480px); }
  .tryon-side { width: 100%; }
}
