/* Vitrina Core — 3D fitting room. Author: LaboratorioWP.com */

/* Trigger in the product form */
.vt-fr-trigger { flex: 1 1 100%; width: 100%; margin: 4px 0 6px; }
.vt-fr-launch { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--vt-btn-h, 48px); border: 1.5px dashed var(--vt-c-heading, #1D2333); border-radius: var(--vt-btn-radius, 10px); background: var(--vt-c-surface, #F3F5F9); color: var(--vt-c-heading, #1D2333); font-weight: 700; box-shadow: none !important; }
.vt-fr-launch:hover { border-style: solid; background: var(--vt-c-heading, #1D2333); color: var(--vt-c-bg, #FFFFFF); }
.vt-fr-trigger.has-design .vt-fr-launch { display: none; }
.vt-fr-required { margin: 8px 0 0; font-size: 13px; color: var(--vt-c-muted, #6B7385); }
.vt-fr-summary { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--vt-c-border, #E7EAF0); border-radius: calc(var(--vt-radius, 10px) + 2px); background: var(--vt-c-surface, #F3F5F9); }
.vt-fr-summary[hidden] { display: none; }
.vt-fr-summary__imgs { display: flex; gap: 6px; }
.vt-fr-summary__imgs img { width: 64px; height: 70px; object-fit: cover; border-radius: 8px; background: #FFFFFF; }
.vt-fr-summary__text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--vt-c-text, #4E5668); }
.vt-fr-summary__text b { color: var(--vt-c-heading, #1D2333); font-size: 14px; }
.vt-fr-summary__links { display: flex; gap: 14px; margin-top: 4px; }
.vt-fr-summary__links button { min-height: 0; padding: 0; border: 0; background: none; color: var(--vt-c-heading, #1D2333); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; box-shadow: none !important; }
.vt-fr-thumb { object-fit: cover; background: var(--vt-c-surface, #F3F5F9); }

/* Modal */
html.vt-fr-open, html.vt-fr-open body { overflow: hidden; }
.vt-fr { position: fixed; inset: 0; z-index: 100000; --fr-panel: var(--vt-c-bg, #FFFFFF); --fr-line: var(--vt-c-border, #E7EAF0); --fr-chip: var(--vt-c-surface, #F3F5F9); --fr-ink: var(--vt-c-heading, #1D2333); --fr-muted: var(--vt-c-muted, #6B7385); --stage1: #F6F4F0; --stage2: #D8D3CB; color: var(--fr-ink); }
.vt-fr[hidden] { display: none; }
.vt-fr__backdrop { position: absolute; inset: 0; background: rgba(15, 17, 20, .55); opacity: 0; transition: opacity .25s; }
.vt-fr.is-open .vt-fr__backdrop { opacity: 1; }
.vt-fr__dialog { position: absolute; inset: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; overflow: hidden; border-radius: 22px; background: var(--fr-panel); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); transform: translateY(14px); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.vt-fr.is-open .vt-fr__dialog { transform: none; opacity: 1; }

/* Stage */
.vt-fr__stage { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, var(--stage1), var(--stage2)); }
.vt-fr__canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; touch-action: none; }
.vt-fr__canvas.is-grab { cursor: crosshair; }
.vt-fr__brand { position: absolute; left: 16px; top: 14px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.vt-fr__brand b { font-size: 15px; font-weight: 800; }
.vt-fr__status { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 6px 11px; border: 1px solid var(--fr-line); border-radius: 999px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); font-size: 12px; font-weight: 600; }
.vt-fr__status i { width: 7px; height: 7px; border-radius: 50%; background: #2FB36B; box-shadow: 0 0 0 3px rgba(47, 179, 107, .25); }
.vt-fr__status i.is-busy { background: #FF5A1F; box-shadow: 0 0 0 3px rgba(255, 90, 31, .25); animation: vt-fr-pulse 1s infinite; }
@keyframes vt-fr-pulse { 50% { opacity: .4; } }
.vt-fr__hint { position: absolute; right: 16px; top: 16px; margin: 0; font-size: 12px; color: var(--fr-muted); pointer-events: none; }
.vt-fr__toolbar { position: absolute; left: 50%; bottom: 16px; display: flex; gap: 4px; padding: 5px; border: 1px solid var(--fr-line); border-radius: 16px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(20, 18, 15, .12); transform: translateX(-50%); }
.vt-fr__toolbar button { display: flex; align-items: center; gap: 7px; min-height: 0; padding: 9px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--fr-ink); font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: none !important; }
.vt-fr__toolbar button:hover { background: var(--fr-chip); color: var(--fr-ink); }
.vt-fr__toolbar button[aria-pressed="true"] { background: var(--fr-ink); color: #FFFFFF; }
.vt-fr__dropzone { position: absolute; inset: 12px; display: none; align-items: center; justify-content: center; border: 2px dashed #FF5A1F; border-radius: 20px; background: rgba(255, 90, 31, .1); font-size: 18px; font-weight: 800; pointer-events: none; }
.vt-fr.is-dragging .vt-fr__dropzone { display: flex; }
.vt-fr__loader { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(120% 90% at 50% 30%, var(--stage1), var(--stage2)); color: var(--fr-muted); font-size: 13px; font-weight: 600; transition: opacity .4s; }
.vt-fr.is-ready .vt-fr__loader { opacity: 0; pointer-events: none; }
.vt-fr__spinner { width: 34px; height: 34px; border: 3px solid var(--fr-line); border-top-color: #FF5A1F; border-radius: 50%; animation: vt-fr-spin .9s linear infinite; }
@keyframes vt-fr-spin { to { transform: rotate(360deg); } }

/* Panel */
.vt-fr__panel { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--fr-line); background: var(--fr-panel); }
.vt-fr__head { display: flex; gap: 12px; align-items: flex-start; padding: 22px 22px 6px; }
.vt-fr__head h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.02em; }
.vt-fr__head p { margin: 0; font-size: 13px; color: var(--fr-muted); line-height: 1.45; }
.vt-fr__close { flex: 0 0 38px; width: 38px; height: 38px; min-height: 0; padding: 0; border: 1px solid var(--fr-line); border-radius: 50%; background: var(--fr-panel); color: var(--fr-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none !important; }
.vt-fr__close:hover { background: var(--fr-chip); color: var(--fr-ink); }
.vt-fr__section { margin: 0 22px; padding: 16px 0 6px; border-top: 1px solid var(--fr-line); }
.vt-fr__head + .vt-fr__section { border-top: 0; }
.vt-fr__panel { overflow-y: auto; }
.vt-fr__section h3 { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--fr-muted); }
.vt-fr__upload { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1.5px dashed var(--fr-line); border-radius: 16px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.vt-fr__upload:hover, .vt-fr.is-dragging .vt-fr__upload { border-color: #FF5A1F; background: rgba(255, 90, 31, .05); }
.vt-fr__upload input { display: none; }
.vt-fr__upload b { display: block; font-size: 14px; }
.vt-fr__upload small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--fr-muted); }
.vt-fr__thumb { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--fr-line); border-radius: 12px; background: repeating-conic-gradient(var(--fr-chip) 0 25%, var(--fr-panel) 0 50%) 50% / 12px 12px; }
.vt-fr__thumb img { max-width: 100%; max-height: 100%; }
.vt-fr__thumb:not(.has-img) img { display: none; }
.vt-fr__msg { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; }
.vt-fr__msg[hidden] { display: none; }
.vt-fr__msg.is-warn { background: #FFF4DB; color: #8A5A00; }
.vt-fr__msg.is-error { background: #FDE8E6; color: #A1291B; }
.vt-fr__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.vt-fr__label { font-size: 13px; font-weight: 700; }
.vt-fr__block { margin: 12px 0; }
.vt-fr__block .vt-fr__label { display: block; margin-bottom: 8px; }
.vt-fr__seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--fr-line); border-radius: 11px; background: var(--fr-chip); }
.vt-fr__seg button { min-height: 0; padding: 7px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--fr-ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: none !important; }
.vt-fr__seg button:hover { background: rgba(255, 255, 255, .6); color: var(--fr-ink); }
.vt-fr__seg button[aria-pressed="true"] { background: var(--fr-panel); box-shadow: 0 1px 3px rgba(0, 0, 0, .15) !important; }
.vt-fr__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.vt-fr__chip { min-height: 0; padding: 6px 11px; border: 1px solid var(--fr-line); border-radius: 999px; background: var(--fr-chip); color: var(--fr-ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: none !important; }
.vt-fr__chip:hover { border-color: var(--fr-ink); background: var(--fr-chip); color: var(--fr-ink); }
.vt-fr__slider { margin: 14px 0; }
.vt-fr__slider-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; }
.vt-fr__slider-top output { color: var(--fr-muted); font-variant-numeric: tabular-nums; }
.vt-fr__slider input[type="range"] { width: 100%; height: 22px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--fr-ink); box-shadow: none; }
.vt-fr__link { min-height: 0; margin: 4px 0 8px; padding: 0; border: 0; background: none; color: var(--fr-muted); font: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; box-shadow: none !important; }
.vt-fr__link:hover { background: none; color: var(--fr-ink); }
.vt-fr__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-fr__sw { position: relative; width: 32px; height: 32px; min-height: 0; padding: 0; border: 1px solid rgba(0, 0, 0, .18); border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: none !important; }
.vt-fr__sw[data-heather] { background: radial-gradient(circle at 30% 30%, #C4C4C6, var(--c) 60%, #8D8D90); }
.vt-fr__sw[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--fr-ink); border-radius: 50%; }
.vt-fr__cname { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--fr-muted); }
.vt-fr__fabric { margin: 4px 0 8px; font-size: 12.5px; color: var(--fr-muted); }
.vt-fr__toggle { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; font-size: 13px; font-weight: 700; cursor: pointer; }
.vt-fr__toggle small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--fr-muted); }
.vt-fr__toggle input { position: absolute; opacity: 0; pointer-events: none; }
.vt-fr__toggle i { position: relative; flex: 0 0 40px; height: 24px; border-radius: 999px; background: var(--fr-line); transition: background-color .2s; }
.vt-fr__toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.vt-fr__toggle input:checked + i { background: var(--fr-ink); }
.vt-fr__toggle input:checked + i::after { transform: translateX(16px); }
.vt-fr__toggle input:focus-visible + i { outline: 2px solid var(--fr-ink); outline-offset: 2px; }
.vt-fr__foot { position: sticky; bottom: 0; margin-top: auto; padding: 14px 22px 18px; border-top: 1px solid var(--fr-line); background: var(--fr-panel); }
.vt-fr__total { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 13px; }
.vt-fr__total b { text-align: right; }
.vt-fr__actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.vt-fr__actions .vt-btn:disabled { opacity: .6; }

@media (max-width: 900px) {
	.vt-fr__dialog { inset: 0; display: flex; flex-direction: column; border-radius: 0; overflow-y: auto; }
	.vt-fr__stage { flex: 0 0 auto; height: 56vh; height: 56svh; position: sticky; top: 0; z-index: 2; }
	.vt-fr__panel { border-left: 0; overflow: visible; }
	.vt-fr__toolbar span, .vt-fr__hint { display: none; }
	.vt-fr__toolbar button { padding: 10px 12px; }
	.vt-fr__head { padding: 16px 16px 4px; }
	.vt-fr__section { margin: 0 16px; }
	.vt-fr__foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
}
