/**
 * Lookbook Collections – Grille masonry + popup "LE LOOK" (panneau droit)
 */

 .lbc-grid-wrapper {
    --lbc-tile-gap: 8px;
}

/* Grille par blocs de 10 : 3 sections (ligne 1, ligne 2, ligne 3) */
.lbc-grid {
    display: flex;
    flex-direction: column;
    gap: var(--lbc-tile-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}

.lbc-grid-block {
    display: flex;
    flex-direction: column;
    gap: var(--lbc-tile-gap);
}

/* Sentinel pour infinite scroll (déclenche le chargement au scroll) */
.lbc-load-more-sentinel {
    height: 1px;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

/* 1ère ligne : 3 colonnes égales */
.lbc-row-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lbc-tile-gap);
}

/* 2ème ligne : 2 colonnes (large + étroit) */
.lbc-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lbc-tile-gap);
}

/* 3ème ligne : gauche 1 image (même hauteur que droite), droite plus large avec 4 images en 2×2 */
.lbc-row-3 {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: var(--lbc-tile-gap);
    min-height: 280px;
}

.lbc-row-3-left {
    display: flex;
    min-height: 0;
}

.lbc-row-3-left .lbc-tile {
    flex: 1;
    min-height: 100%;
}

.lbc-row-3-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--lbc-tile-gap);
    min-height: 0;
}

.lbc-row-3-right .lbc-tile {
    min-height: 0;
    max-height: 27vw;
}

/* Tuile commune */
.lbc-tile {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 33vw;
    cursor: pointer;
    overflow: hidden;
    background: #eee;
    transition: opacity 0.2s ease;
}

.lbc-tile:hover {
    opacity: 0.92;
}

.lbc-tile-image {
    flex: 1;
    overflow: hidden;
    line-height: 0;
    width: 100%;
    min-height: 100px;
}

.lbc-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Popup "LE LOOK" – panneau droit, fond beige, grille 2 colonnes scrollable */
.lbc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lbc-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.lbc-modal-box {
    width: 100%;
    max-width: 33.333vw;
    min-width: 320px;
    height: 100vh;
    background: #f5f0e8;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lbc-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #3d2c29;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 2;
    padding: 0;
}

.lbc-modal-close:hover {
    opacity: 0.7;
}

.lbc-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    padding-top: 2.5rem;
}

.lbc-popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lbc-popup-title {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #3d2c29;
    text-transform: uppercase;
}

/* Grille 2 colonnes scrollable : produit principal + accessoires en un seul bloc */
.lbc-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lbc-popup-item {
    margin: 0;
}

.lbc-popup-item-link {
    display: block;
    text-decoration: none;
    color: #3d2c29;
}

.lbc-popup-item-image {
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: #ebe6df;
}

.lbc-popup-item-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.lbc-popup-item-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.lbc-popup-item-price {
    display: block;
    font-size: 0.875rem;
    color: #5c4a47;
}

.lbc-popup-empty {
    margin: 0;
    color: #5c4a47;
    font-size: 0.9rem;
}
