/* ── Virtual Try-On Plugin Styles ─────────────────────────── */

.vto-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 16px;
    box-sizing: border-box;
}

.vto-heading {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #1a1a2e;
}

/* Grid */
.vto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 720px) {
    .vto-grid { grid-template-columns: 1fr; }
}

/* Input column */
.vto-inputs { display: flex; flex-direction: column; gap: 16px; }

.vto-field { display: flex; flex-direction: column; gap: 6px; }

.vto-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}
.vto-field label small { font-weight: 400; color: #888; }
.vto-req { color: #e74c3c; }

.vto-field input[type="url"],
.vto-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: border-color .2s;
    box-sizing: border-box;
    background: #fafafa;
}
.vto-field input[type="url"]:focus,
.vto-field textarea:focus {
    border-color: #6c63ff;
    outline: none;
    background: #fff;
}
.vto-field textarea { resize: vertical; min-height: 72px; }

/* Tiny image preview */
.vto-preview {
    display: none;
    margin-top: 4px;
}
.vto-preview img {
    max-height: 80px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Button */
.vto-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #6c63ff, #a855f7);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    width: 100%;
    margin-top: 4px;
}
.vto-btn:hover  { opacity: .9; transform: translateY(-1px); }
.vto-btn:active { transform: translateY(0); }
.vto-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Error */
.vto-error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Result column */
.vto-result-wrap { display: flex; flex-direction: column; gap: 12px; }

.vto-result {
    border: 2px dashed #d0d0d0;
    border-radius: 16px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
    transition: border-color .3s;
}
.vto-result.has-image {
    border-style: solid;
    border-color: #6c63ff;
    background: #fff;
}
.vto-result img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.vto-placeholder {
    text-align: center;
    color: #aaa;
    padding: 24px;
}
.vto-placeholder span { font-size: 3rem; display: block; margin-bottom: 8px; }
.vto-placeholder p { font-size: 0.95rem; }

/* Loader */
.vto-loader {
    text-align: center;
    padding: 16px;
    color: #6c63ff;
}
.vto-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #ede9fe;
    border-top-color: #6c63ff;
    border-radius: 50%;
    animation: vto-spin 0.85s linear infinite;
    margin: 0 auto 12px;
}
@keyframes vto-spin { to { transform: rotate(360deg); } }

/* Meta info */
.vto-meta {
    font-size: 0.78rem;
    color: #999;
    text-align: right;
    line-height: 1.6;
}

/* Download button */
.vto-download {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background .2s;
}
.vto-download:hover { background: #16a34a; color: #fff; }
