

.community_shop_home{
    display: flex;
    width: 98%;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    padding-bottom: 10%; /* Augmenté de 2% à 5% pour laisser plus d'espace en bas */
    padding-left: 2%;
    padding-right: 2%;
    box-sizing: border-box; /* Assure que padding est inclus dans la largeur */
    overflow: visible; /* Permet aux cartes d'être entièrement visibles */
    height: auto; /* Hauteur automatique pour s'adapter au contenu */
}

.community_shop_product{
    position: relative;
}

.community_shop_product:hover{
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}







/* Grille des produits - Responsive */
.community_shop_grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3%; /* Réduit de 4% à 3% pour éviter le débordement */
    row-gap: 4%; /* Réduit de 6% à 4% pour éviter le débordement vertical */
    padding-bottom: 4%; /* Augmenté de 2% à 4% pour plus d'espace en bas */
    padding-top: 2%; /* Réduit le padding top */
    align-items: start; /* Aligne les cartes en haut pour une meilleure présentation */
    box-sizing: border-box; /* Assure que padding et margin sont inclus dans la largeur */
    overflow: visible; /* Permet aux cartes d'être entièrement visibles */
}

/* Classe utilitaire pour ajouter facilement de nouveaux produits */
/* Les styles de base pour .community_shop_product sont déjà définis plus haut */

/* Ancienne classe pour compatibilité - maintenant inutilisée */
.community_shop_section_tendances{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2%;
    flex-wrap: wrap;
    padding-bottom: 4%;
    padding-top: 4%;
}

.community_shop_product_price{
    position: absolute;
    top: -1px;
    right: -1px;
    border-radius: 0 29px 0px 29px;
    width: 140px;
    height: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
    line-height: 1;
    margin: 0;
    z-index: 1;
}

.community_shop_tendances_product_1{
    width: 100%; /* Prend toute la largeur de la cellule de grille */
    max-width: 100%; /* Empêche le débordement */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 2px ;
    height: 250px;
    position: relative; /* pour pouvoir positionner l'image en absolu */
    box-sizing: border-box; /* Assure que border est inclus dans la largeur */
    overflow: hidden; /* Empêche le contenu de déborder */
}

.community_shop_tendances_product_2{
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border: 2px ;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);

    height: 250px;

    position: relative; /* pour positionner l'image en absolu sans impacter le texte */
}

.community_shop_tendances_product_text{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    padding-left: 10%;
}
.community_shop_tendances_product_text_small{
    display: none;
}
.community_shop_tendances_product2_text{
    display: none;
}

.community_shop_tendances_product_image{
    position: absolute;
    right: -10%;
    z-index: 2; /* au premier plan */
    pointer-events: none; /* ne pas gêner les interactions du texte/bouton */
}

.shop_tendances_product1{
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.shop_tendances_product2{
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.community_shop_tendances_product_image img{
    height: 320px;
    width: 320px;
    object-fit: contain;
    margin-left: auto;
}
.community_shop_tendances_product_image video{
    height: 360px;
    width: 360px;
    object-fit: cover;
    margin: 0;
}

.community_shop_tendances_product2_image{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0;
}

.community_shop_boutton{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    min-width: 200px;
    max-height: 50px;

    margin-top: 20px !important;
}
.community_shop_tendances_product_text_2{
    margin-top: -70px;
}

/* Styles pour les produits possédés */
.community_shop_product.owned {
    opacity: 0.6;
}

.community_shop_product.owned .community_shop_boutton {
    cursor: default;
    pointer-events: none;
}

.community_shop_product.owned .community_shop_boutton:hover {
    transform: none;
}

/* Responsive pour la grille */
@media (max-width: 1300px){
    .community_shop_grid{
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        column-gap: 0; /* Pas d'espacement entre colonnes sur mobile */
        row-gap: 30px; /* Réduit de 40px à 30px pour éviter le débordement */
        padding-bottom: 40px; /* Augmenté de 20px à 40px pour plus d'espace en bas */
        padding-top: 20px; /* Réduit de 50px à 20px */
    }
    
    /* Ancienne section pour compatibilité */
    .community_shop_section_tendances{
        flex-direction: column;
        gap: 100px;
        padding-bottom: 50px;
        padding-top: 50px;
    }
    .community_shop_tendances_product_text_small{
        display: flex;
    }
    .community_shop_tendances_product_2{
        width: 96%;
        max-width: 96%;
    }
    .community_shop_tendances_product_1{
        width: 96%;
        max-width: 96%;
    }
}

@media (max-width: 1080px){
    .community_shop_grid{
        column-gap: 0; /* Pas d'espacement entre colonnes */
        row-gap: 25px; /* Réduit de 35px à 25px */
    }
    
    .community_shop_tendances_product_1{
        width: 98%;
    }
    .community_shop_tendances_product_2{
        width: 100%;
    }
}


@media (max-width: 880px){
    .community_shop_grid{
        column-gap: 0; /* Pas d'espacement entre colonnes */
        row-gap: 20px; /* Réduit de 30px à 20px */
    }
    
    .community_shop_tendances_product_image video,
    .community_shop_tendances_product_image img,
    .community_shop_tendances_product_image{
        height: 320px;
        width: 320px;
        margin-right: -10px;
    }
}
@media (max-width: 770px){
    .community_shop_home{
        margin-top: 0;
    }
    }
    @media (max-width: 500px){
    .community_shop_grid{
        column-gap: 0; /* Pas d'espacement entre colonnes */
        row-gap: 15px; /* Réduit de 25px à 15px */
        padding-top: 10px; /* Réduit de 20px à 10px */
        padding-bottom: 30px; /* Ajouté pour plus d'espace en bas sur mobile */
    }
    
    .community_shop_tendances_product_image video,
    .community_shop_tendances_product_image img,
    .community_shop_tendances_product_image{
        height: 220px;
        width: 220px;
        margin-right: -10px;
    }
    
    .community_shop_section_tendances{
        gap: 50px;
        padding-top: 20px;
    }
    
    .community_shop_boutton{
        justify-content: left;
    }

    .community_shop_tendances_product_text{
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .community_shop_product{
        height: 190px;
    }
}


.community_shop_section_rare_container{
    width: 100%;
    display: none;
    flex-direction: column;
    margin-top: 10%;

}

.community_shop_section_rare{

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 2%;
}

.community_shop_rare_product{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.community_shop_rare_product img{
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 30px;

}





