/* PRODUCTS */

.products {
    padding: 20px 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product {
    width: 32.5%;
    margin-bottom: 50px;
}

.product a {
    color: black;
    text-decoration: none;
}

.product img {
    width: 100%;
}

.product-title {
    display: flex;
    justify-content: space-between;
}

.product-title p {
    font-size: 20px;
    margin: 0;
}

.product-title a {
    font-size: 20px;
    margin: 0;
    color: #0013C1;
}

.b {
    font-weight: 500;
}

@media screen and (max-width : 580px) {
    .products {
        padding: 10px;
    }
    .product {
        width: 49%;
        margin-bottom: 20px;
    }
    .product p, .product a {
        font-size: 16px;
    }
    .product-title {
        /* margin-bottom: 20px; */
    }
}

/* MODAL */

.modal {
    display: none;
    position: fixed;

    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    z-index: 1000;
    
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fefefe;
    display: flex;
    align-items: center;

    padding: 40px 40px 40px 30px;
    gap: 20px;

    max-width: 700px;
}

.modal-content img {
    width: 250px;
}

.right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media screen and (max-width : 630px) {
    .modal-content {
        flex-direction: column;
    }
    .modal-content img {
        width: 200px;
    }
}

@media screen and (max-width : 770px) {
    .modal-content {
        margin: 10px;
    }
}

@media screen and (max-width : 400px) {
    .modal-content {
        padding: 20px 10px;
    }
    .button-container {
        display: flex;
        justify-content: space-evenly;
    }
}

.modal-content h3 {
    font-size: 23px;

    margin: 0;
}

.modal-content p {
    font-size: 20px;
    
    margin: 0;
}

.close {
    background-color: black;
    padding: 10px;
    color: white;

    border: none;
    font-size: 17px;
    cursor: pointer;
}

.mineur {
    background-color: white;
    padding: 10px;
    color: black;

    border: solid 1px;
    font-size: 17px;
    cursor: pointer;
}

.disable {
    opacity: 1;
}

.outofstock {
    color: #e2401c;
    margin-left: 8px !important;
}

.disable a {
}

/* badge "Nouveau" */
.product {
    position: relative; /* nécessaire pour position absolute du badge */
}

/* style du badge */
.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #cc001f;      /* rouge orangé, adapte si tu veux */
    border-radius: 4px;
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.15); */
    z-index: 5;
    /* text-transform: uppercase; */
    letter-spacing: .4px;
}

/* si tu veux que le badge soit plus discret sur mobile */
@media screen and (max-width: 580px) {
    .badge-new {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 12px;
    }
}
