/* Overlay plein écran */
.vtshop-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Lorsque la popup est ouverte */
.vtshop-modal-overlay.vtshop-open {
    display: flex;
}

/* Fenêtre principale */
.vtshop-modal-window {
    background: #ffffff;
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    padding: 24px 24px 20px;
    box-sizing: border-box;
}

/* Bouton fermer (croix) */
.vtshop-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #333333;
}

/* Header de la popup */
.vtshop-modal-header {
    margin-bottom: 14px;
}

.vtshop-modal-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #111111;
}

.vtshop-modal-sub {
    margin: 0;
    font-size: 13px;
    color: #666666;
}

/* Corps de la popup */
.vtshop-modal-body {
    margin-top: 6px;
}

/* Zone upload */
.vtshop-upload-zone {
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    margin-bottom: 14px;
}

.vtshop-upload-zone p {
    margin: 0;
    font-size: 14px;
    color: #444444;
}

.vtshop-upload-zone:hover {
    border-color: #d4af37;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15);
}

/* Loader */
.vtshop-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 12px;
}

.vtshop-loading.hidden {
    display: none;
}

.vtshop-loader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-top-color: #d4af37;
    animation: vtshop-spin 0.9s linear infinite;
    margin-bottom: 8px;
}

.vtshop-loading-text {
    font-size: 13px;
    color: #444444;
    text-align: center;
}

/* Image résultat */
.vtshop-result-image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    margin: 10px 0 12px;
}

.vtshop-result-image.hidden {
    display: none;
}

/* Actions sous le résultat */
.vtshop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.vtshop-actions.hidden {
    display: none;
}

.vtshop-action-btn {
    flex: 1 1 auto;
    border-radius: 999px;
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #111111;
    color: #ffffff;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.vtshop-action-btn:nth-child(2) {
    background: #d4af37;
    color: #111111;
}

.vtshop-action-btn:nth-child(3) {
    background: #25d366;
    color: #ffffff;
}

.vtshop-action-btn:hover {
    transform: translateY(-1px);
}

/* Texte confidentialité */
.vtshop-privacy-note {
    font-size: 11px;
    color: #777777;
    margin: 6px 2px 0;
    line-height: 1.4;
}

/* Bouton Virtual Try On sur la page produit */
.vtshop-btn-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
}

.vtshop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
    letter-spacing: 0.03em;
}

/* Style noir luxe */
.vtshop-btn-black {
    background: #111111;
    color: #ffffff;
}

.vtshop-btn-black:hover {
    background: #000000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

/* Style or accent */
.vtshop-btn-gold {
    background: #ffffff;
    color: #111111;
    border-color: #d4af37;
}

.vtshop-btn-gold:hover {
    background: #d4af37;
    color: #111111;
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

/* Classe utilitaire hidden (si utilisée ailleurs) */
.hidden {
    display: none !important;
}

/* Animation loader */
@keyframes vtshop-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive mobile */
@media (max-width: 600px) {
    .vtshop-modal-window {
        max-width: 100%;
        padding: 18px 16px 16px;
        border-radius: 16px;
    }

    .vtshop-modal-title {
        font-size: 18px;
    }

    .vtshop-modal-sub {
        font-size: 12px;
    }

    .vtshop-upload-zone {
        padding: 16px;
    }

    .vtshop-result-image {
        max-height: 360px;
    }

    .vtshop-actions {
        flex-direction: column;
    }

    .vtshop-action-btn {
        width: 100%;
    }
}

.vtshop-btn-with-ai {
    gap: 8px;
}

.vtshop-btn-icon-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #d4af37;
    color: #111111;
}

.vtshop-btn-text {
    display: inline-block;
}

.vtshop-modal-packshot {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.vtshop-packshot-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 6px;
}

.vtshop-packshot-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}
/* Two-column layout */
.vtshop-two-columns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    margin-top: 20px;
}

/* Petit packshot à gauche */
.vtshop-col-left {
    width: 180px;
    text-align: center;
}

.vtshop-packshot-img {
    width: 100%;
    max-width: 180px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* Résultat à droite */
.vtshop-col-right {
    flex: 1;
    text-align: center;
}

.vtshop-result-image {
    max-width: 360px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #ccc;
}

/* Responsive (mobile) */
@media (max-width: 700px) {
    .vtshop-two-columns {
        flex-direction: column;
        align-items: center;
    }

    .vtshop-col-left {
        width: 140px;
    }

    .vtshop-result-image {
        max-width: 280px;
    }
}
/* ---- TITRE ---- */
.vtshop-section-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    color: #111;
    font-family: 'Playfair Display', serif;
}

.vtshop-title-divider {
    width: 80px;
    height: 3px;
    margin: 10px auto 20px;
    background: linear-gradient(90deg, #d4af37, #b8942e);
    border-radius: 2px;
}

/* ---- CADRE DORÉ ---- */
.vtshop-gold-frame {
    border: 3px solid #d4af37;
    border-radius: 10px;
    padding: 4px;
    background: #fff;
}

/* ---- COLONNES ---- */
.vtshop-two-columns {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.vtshop-col-left {
    width: 180px;
    text-align: center;
}
.vtshop-col-right {
    flex: 1;
    text-align: center;
}

/* ---- PACKSHOT ---- */
.vtshop-packshot-img {
    width: 100%;
    max-width: 170px;
}

/* ---- BEFORE/AFTER SLIDER ---- */
.vtshop-before-after {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 auto 15px;
}

.vtshop-before-img,
.vtshop-after-img {
    width: 100%;
    display: block;
    position: absolute;
    top: 0; left: 0;
}

.vtshop-after-img {
    clip-path: inset(0 0 0 50%); /* moitié visible */
}

/* Handle */
.vtshop-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #d4af37;
    cursor: ew-resize;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}
