/* -------------------- CONTENEURS PRINCIPAUX -------------------- */

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 7px 17px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
}



.tab-button.active {
    border: 1px solid var(--titre-color);
    color: var(--text-color);
}
.tab-content {
    width: 100%;
    padding: 5px;
    line-height: 45px;
}

.tab-pane {
    display: none;
    /* caché par défaut */
}

.tab-pane.active {
    display: block;
    /* visible seulement quand actif */
}


.dual-pane-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    gap: 10px;
    background: var(--bg-color);
}

#fen {
    max-width: 300px;
}

.main-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    height: calc(100vh - 40px);
    margin-left: 70px;
    padding-top: 1px;
}

.scroll-pane {
    flex: 1;
    overflow-y: auto;
}

.scroll-pane h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* -------------------- UTILISATEURS / ABONNÉS -------------------- */

.abonne-item {
    display: flex;
    align-items: center;
    padding: 0px;
    
}

.abonne-item img:not(.badge-icon) {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: cover;
}
img.badge-icon {
    border-radius: 4px !important;
    width: 15px;
    height: 15px;
    margin-right: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.abonne-item a {
    color: inherit;
    text-decoration: none;
}

.card-container {
    display: grid;
    padding: 2px 0;
}

/* -------------------- PRODUITS -------------------- */

.produits-grid {
    display: grid;
    gap: 4px;
    width: 100%;
    grid-template-columns: repeat(6, 1fr);
}

.product-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--bg-color);
    color: var(--text-color);
    padding: 10px;
    text-align: left;
}

.product-info p {
    font-size: var(--taille-titre-pc);
    line-height: 1.2;
}

.product-title {
    font-size: var(--taille-text-pc);
    margin: 0;
}

.product-size {
    font-size: var(--taille-text-pc);
}

.product-price {
    color: var(--text-color);
    position: absolute;
    background: var(--navrigt-primary-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--taille-text-pc);
    left: 0;
    white-space: nowrap;
    animation: floatPrice 5s linear infinite;
}

/* Animation */
@keyframes floatPrice {
    0% {
        left: 0;
    }

    100% {
        left: 100%;
        transform: translateX(-100%);
    }
}



/* -------------------- RESPONSIVE -------------------- */

 .cards-grid {
     display: grid !important;
     gap: 0 !important;
     width: auto !important;
     grid-template-columns: repeat(6, 1fr);
     /* 5 colonnes de tailles égales */
 }
.product-card {
    border: 1px solid;
    border-radius: 4px;
    width: 150px;
    height: 220px;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}
.post-media-container{
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.post-media-container img  {
    width: 100%;
    height: 80%;
    object-fit: contain;
    border-radius: 10px;
    margin-top: -12px;
}

.product-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: var(--titre-color);
    padding: 6px;
    font-size: var(--taille-text-pc);
}
@media screen and (max-width: 768px) {
.product-details {
        font-size: var(--taille-text-mo);
    }
        .product-card {
                width: 100px !important;
                height: 150px !important;
            }
            .produits-grid {
                display: grid !important;
                grid-template-columns: repeat(3, 1fr);
                /* 5 colonnes de tailles égales */
            }
        img.badge-icon {
            width: 10px;
            height: 10px;
         
        }
.price {
        font-size: var(--taille-text-pc);
    }
    .product-info p {
            font-size: var(--taille-titre-mo);
            line-height: 1.2;
        }
    
        .product-title {
            font-size: var(--taille-text-mo);
            margin: 0;
        }
    
        .product-size {
            font-size: var(--taille-text-mo);
        }
                .product-price {
    
                    font-size: var(--taille-text-mo);
                    
                }
                        .extra-info,
                        .boosted {
                            font-size: var(--taille-text-mo);
                        }
.prev-btn,
.next-btn {
    
    font-size: var(--taille-text-mo);
}
    .dual-pane-container {
        height: auto;
    }

    .scroll-pane {
        height: 50vh !important;
        min-height: 300px;
    }

    .scroll-pane:first-child {
        order: 1;
    }

    .scroll-pane:last-child {
        order: 2;
    }
}

.scroll-pane {
    flex: 1;
    overflow-y: auto;
}

.scroll-pane h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.card-container {
    display: grid;
    padding: 2px 0;
    line-height: 44px;
}

/* existing card styles... */


/* Conteneur principal */
.main-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    height: calc(100vh - 40px);
    margin-left: 70px;
    padding-top: 1px;
}


.post-media:hover,
.custom-video:hover {
    transform: scale(1.1);
    /* Zoom léger au survol */
}





@keyframes floatPrice {
    0% {
        left: 0;
    }

    100% {
        left: 100%;
        transform: translateX(-100%);
    }
}




/* ==================== MÉDIAS - DESKTOP ==================== */

.post-media-containers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.post-medias{
    width: 92px;
    height: 77%;
    border-radius: 25px;
    object-fit: cover;
    max-height: 70vh;
    display: block;
    transform-origin: center;
    pointer-events: none;
}

@supports (-webkit-touch-callout: none) {
    .post-medias {
        scale: 1.01;

        transform-origin: center;
    }
}

@media (max-width: 768px) {
    .cards-grid {
            gap: 0px;
            width: 100%;
            grid-template-columns: repeat(3, 1fr);
        }
    .post-media-containers {
        display: block;
    }

    .mobile-media-container {
        display: block;
    }
        .post-medias {
            width: 80px;
         
        }
}

/* -------------------- RECHERCHE LIVE / ENCHÈRE -------------------- */

.recherche-live-item,
.recherche-enchere-item {
    gap: 10px;
    align-items: center;
}

.recherche-item-body {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.recherche-item-body h5 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}

.recherche-meta {
    margin: 2px 0 0;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
}

.recherche-stat {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color, #111827);
    white-space: nowrap;
}

.recherche-stat-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 52px;
}

.recherche-stat-secondary {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
}

.recherche-live-pill {
    color: #ef4444;
    font-weight: 800;
    font-size: 10px;
}

.recherche-event-pill {
    color: #2563eb;
    font-weight: 800;
    font-size: 10px;
}

.recherche-enchere-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recherche-enchere-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #2563eb;
}

.recherche-live-list .live-liste-avatar-wrap {
    width: 40px;
    height: 40px;
    margin-right: 0;
    flex-shrink: 0;
}

.recherche-live-list .live-liste-card-avatar {
    width: 32px;
    height: 32px;
}

.hashtag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

