.wisal-outfit-page { max-width: 900px; margin: 0 auto; padding: 12px 16px 40px; }

.wisal-outfit-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; margin-bottom: 12px;
}
.wisal-outfit-back, .wisal-outfit-share-btn {
    background: none; border: none; font-size: 20px; color: #1e1e2e; cursor: pointer;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.wisal-outfit-topbar-title { font-weight: 700; font-size: 16px; }

.wisal-outfit-banner {
    display: flex; gap: 12px; align-items: flex-start;
    background: #eef0fd; color: #4338ca; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 16px; font-size: 13px;
}
.wisal-outfit-banner i { font-size: 20px; margin-top: 2px; }
.wisal-outfit-banner .small { font-weight: 400; opacity: .85; margin-top: 2px; }

.wisal-outfit-main { display: flex; gap: 16px; margin-bottom: 20px; }
.wisal-outfit-cover {
    position: relative; flex: 1; border-radius: 14px; overflow: hidden;
    min-height: 320px;
    max-height: 480px;
    background: #eee;
}
.wisal-outfit-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wisal-outfit-heart {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
    border-radius: 50%; background: rgba(255,255,255,.9); border: none;
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px;
}
.wisal-outfit-heart.active { color: #ef4444; }
.wisal-outfit-count-badge {
    position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.6); color: #fff;
    font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px;
}

.wisal-outfit-items { flex: 1; }
.wisal-outfit-items-title { font-weight: 700; margin-bottom: 10px; }
.wisal-outfit-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid #eef1f5; text-decoration: none; color: inherit;
}
.wisal-outfit-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #f1f5f9; }
.wisal-outfit-item-info { flex: 1; min-width: 0; }
.wisal-outfit-item-name { font-weight: 600; font-size: 14px; }
.wisal-outfit-item-price { color: #64748b; font-size: 13px; margin-top: 2px; }
.wisal-outfit-item i { color: #94a3b8; }

.wisal-outfit-price-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; background: #fff; border: 1px solid #eef1f5; border-radius: 14px; margin-bottom: 16px;
    flex-wrap: wrap; gap: 12px;
}
.wisal-outfit-price-label { font-size: 12px; color: #64748b; }
.wisal-outfit-price-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.wisal-outfit-price-final { font-size: 22px; font-weight: 700; }
.wisal-outfit-price-original { text-decoration: line-through; color: #94a3b8; font-size: 14px; }
.wisal-outfit-discount-badge { background: #fee2e2; color: #dc2626; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }

.wisal-outfit-cta-block { text-align: right; }
.wisal-outfit-add-btn {
    background: #4f46e5; color: #fff; border: none; border-radius: 10px;
    padding: 12px 20px; font-weight: 600; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
}
.wisal-outfit-shipping { font-size: 12px; color: #64748b; margin-top: 6px; display: flex; align-items: center; gap: 4px; justify-content: flex-end; }

.wisal-outfit-details { margin-bottom: 20px; }
.wisal-outfit-details h6 { font-weight: 700; margin-bottom: 8px; }
.wisal-outfit-details p { color: #475569; font-size: 14px; line-height: 1.6; }
.wisal-outfit-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wisal-outfit-tag { background: #eef0fd; color: #e60012; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }

.wisal-outfit-related-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wisal-outfit-related-header h6 { font-weight: 700; margin: 0; }
.wisal-outfit-related-header a { font-size: 13px; color: #e60012; text-decoration: none; }
.wisal-outfit-related-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.wisal-outfit-related-card {
    position: relative; flex: 0 0 auto; width: 150px; height: 190px;
    border-radius: 12px; overflow: hidden; text-decoration: none; background: #000;
}
.wisal-outfit-related-card img { width: 100%; height: 100%; object-fit: cover; }
.wisal-outfit-related-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent); color: #fff;
}
.wisal-outfit-related-name { font-weight: 700; font-size: 13px; }
.wisal-outfit-related-count { font-size: 11px; opacity: .85; }

@media (max-width: 640px) {
    .wisal-outfit-main { flex-direction: column; }
    @media (max-width: 640px) {
    .wisal-outfit-main { flex-direction: column; }
    .wisal-outfit-cover { min-height: 260px; max-height: 380px; }
}
}
.wisal-outfit-fav-link {
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    background: #eef0fd;
    color: #e60012;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background .15s ease;
}
.wisal-outfit-fav-link i {
    font-size: 16px;
}
.wisal-outfit-fav-link:hover {
    background: #e0e3fc;
    color: #ca384b;
}
.wisal-outfit-gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    width: 100%; height: 100%; scrollbar-width: none;
}
.wisal-outfit-gallery::-webkit-scrollbar { display: none; }
.wisal-outfit-gallery-slide {
    flex: 0 0 100%; scroll-snap-align: start; height: 100%;
}
.wisal-outfit-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wisal-outfit-gallery-counter {
    position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.55); color: #fff;
    font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.wisal-outfit-related-price {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(34, 197, 94, .55);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}
/* ===== Layout général : sidebar + contenu ===== */
.wisal-outfit-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.wisal-outfit-content {
    flex: 1;
    min-width: 0;
}

/* ===== Overlay (mobile uniquement) ===== */
.wisal-outfit-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 1600;
}

/* ===== Panneau de filtres ===== */
.wisal-outfit-filter-panel {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.wisal-outfit-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eef1f5;
}
.wisal-outfit-filter-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #1e1e2e;
    cursor: pointer;
}

.wisal-outfit-filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.wisal-outfit-filter-group {
    margin-bottom: 20px;
}
.wisal-outfit-filter-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    color: #1e1e2e;
}
.wisal-outfit-filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}
.wisal-outfit-filter-chip input {
    margin: 0;
}

.wisal-outfit-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eef1f5;
}

/* ===== DESKTOP : sidebar statique à gauche, toujours ouverte ===== */
@media (min-width: 992px) {
    .wisal-outfit-filter-overlay {
        display: none;
    }
    .wisal-outfit-filter-panel {
        position: static;
        width: 260px;
        flex-shrink: 0;
        border: 1px solid #eef1f5;
        border-radius: 14px;
        transform: none;
        box-shadow: none;
    }
}

/* ===== MOBILE : modal coulissant depuis la droite, s'arrête au milieu ===== */
@media (max-width: 991.98px) {
    .wisal-outfit-filter-panel {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 50vw;
        box-shadow: -8px 0 24px rgba(0,0,0,.15);
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1601;
    }
    .wisal-outfit-filter-panel.show {
        transform: translateX(0);
    }
    .wisal-outfit-filter-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .wisal-outfit-filter-panel {
        width: 70vw;
    }
}
/* ===== Modal de partage (repris de WisalFeed) ===== */
.wisal-share-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
}
.wisal-share-modal.wisal-modal-visible {
    display: block;
}

.wisal-share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .2s ease;
}
.wisal-share-modal.wisal-modal-visible .wisal-share-modal-overlay {
    opacity: 1;
}

.wisal-share-modal-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,.15);
    padding: 8px 22px 32px;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .22s ease;
}
.wisal-share-modal.wisal-modal-visible .wisal-share-modal-sheet {
    transform: translateY(0);
}

.wisal-share-modal-handle {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
    margin: 8px auto 16px;
}

.wisal-share-modal-header h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 22px;
    color: #1e1e2e;
}

.wisal-share-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 10px;
}

.wisal-share-option {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
    padding: 4px;
}

.wisal-share-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1e1e2e;
}
.wisal-share-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .wisal-share-modal-sheet {
        left: 50%;
        right: auto;
        transform: translate(-50%, 100%);
        width: 90%;
        max-width: 440px;
        border-radius: 20px;
        bottom: 30px;
    }
    .wisal-share-modal.wisal-modal-visible .wisal-share-modal-sheet {
        transform: translate(-50%, 0);
    }
}
.wisal-outfit-item-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.wisal-outfit-item-price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 12px;
}
.wisal-outfit-trust-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 8px;
}
.wisal-outfit-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}
.wisal-outfit-trust-item i {
    font-size: 16px;
    color: #4f46e5;
}