/**
* 2007-2026 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2026 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
.nouveaux-produits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* si l’écran devient petit, ils passent à la ligne */
    margin-bottom: 20px;
}

.nouveaux-produits .product-item {
    flex: 0 0 23%; /* 4 produits sur une ligne avec un petit espace */
    box-sizing: border-box;
    text-align: center;
}

.nouveaux-produits .product-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.nouveaux-produits .see-all {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.product-item {
    position: relative;
}

.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 10;
}
/*j*/
.nouveaux-produits {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* 1 ligne si possible, sinon wrap */
}

.product-item {
    flex: 1 1 calc(25% - 20px); /* 4 produits sur une ligne */
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
    position: relative;
}

.product-image {
    position: relative;
}

.badge-new {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #d9c2a3;
    color: black;
    padding: 2px 6px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 3px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 13px;
    color: #555;
}

.product-features li {
    line-height: 1.4;
}

.product-price {
    font-weight: bold;
    margin: 5px 0;
	justify-content: center;
}

.see-all {
    margin-top: 20px;
    text-align: right;
    margin-right: 20px;
}

/* Responsive : tablettes et mobiles */
@media (max-width: 991px) {
    .nouveaux-produits .product-item {
        flex: 1 1 calc(50% - 15px); /* 2 produits par ligne */
        max-width: calc(50% - 15px);
    }
	    /* Cacher les produits après les 2 premiers */
    .nouveaux-produits .product-item:nth-child(n+3) {
        display: none;
    }
}




.nouveaux-produits-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap; 
    align-items: flex-start;
	justify-content: center;
}

/* Bloc gauche 1/3 */
.left-block {
    flex: 0 0 40%;
}

/* Bloc droite 2/3 */
.right-block {
    flex: 0 0 50%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* permet bouton en dessous */
}

/* Les produits sur une seule ligne */
.right-block .product-item {
    flex: 1 1 0; /* distribué également */
    max-width: calc(25% - 15px); /* 4 produits sur une ligne */
}

/* Bouton "Voir nos produits" en dessous */
.right-block .see-all {
    width: 100%;
    margin-top: 20px;
    
}

@media (max-width: 768px) {
    /* Afficher seulement les 2 premiers produits */
    .right-block .product-item:nth-child(n+3) {
        display: none;
    }

    /* Produits côte à côte */
    .right-block {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .right-block .product-item {
        flex: 1 1 48%;
        max-width: 48%;
    }

    /* Bloc image passe en dessous */
    .left-block {
        order: 2; /* image en bas */
        margin-top: 20px;
    }

    .nouveaux-produits-wrapper {
        flex-direction: column;
    }

    /* Ajuster l'image et bulles */
    .left-block .image-container img {
        width: 100%;
        height: auto;
    }
}

