.product-modal {
    display: none; /* Cacher par défaut */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

h1 {
    margin-top: 2px; /* Réduire la marge supérieure */
    margin-bottom: 2px; /* Réduire la marge inférieure */
}

.product-modal.show {
    opacity: 1;
    display: flex; /* Afficher le modal lorsqu'il a la classe 'show' */
}

/* Contenu du modal */
.product-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    height: auto;
    max-height: 80%;
    overflow-y: auto; /* Activer le défilement si le contenu dépasse */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 3px;
    position: relative;
}

/* Style de la croix pour fermer le modal */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-modal:hover {
    color: red;
}



.product-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}

.product-image {
    position: relative;
    width: 85%;
    height: auto;
    margin: 0 auto;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
	border-radius: 5px;
	background-color: rgba(242, 171, 171, 0.7);
	color: #ffffff;
    padding: 5px;
    cursor: pointer;
    z-index: 100;
}

.left-arrow {
    left: -20px; /* Placer la flèche en dehors de l'image */
}

.right-arrow {
    right: -20px; /* Placer la flèche en dehors de l'image */
}

.arrow:hover {
    background-color: rgba(191, 46, 46, 0.7);
}

.product-image img {
    width: 85%;
    height: auto;
    object-fit: cover;
}

.promo-badge2 {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 5px;
    background-color: red;
    color: white;
    padding: 5px;
    font-size: 36px;
    font-weight: bold;
    opacity: 0.7;
}

.titre-prod {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    font-size: 20px;
}

.order-prod {
    width: 90%;
    margin: 2px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    box-sizing: border-box;
}

.order-prod .div1 {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.order-prod .div1 p {
    margin: 2px 0;
}

.order-prod .div2 {
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.order-prod .div2 input[type="number"] {
    width: 50px;
    height: 38px;
    border-radius: 5px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #ddd;
    font-size: 16px;
    appearance: textfield;
}

.order-prod .div2 input[type="image"] {
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
}



.dispo-prod {
    width: 90%;
    margin: 2px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    gap: 10px;
}

.fav-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background-color: transparent;
}

/* Badge non-favori */
.nofav-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background-color: transparent;
}

.fav-badge img, .nofav-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-buttons {
    margin-top: 5px;
	margin-bottom:5px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.dispo-button {
    background-color: #f2abab;
    color: white;
    padding: 5px 5px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dispo-button:hover, .fav-button:hover {
    background-color: #bf2e2e;
    transform: translateY(-2px);
}

.copy-link-button {
    background-color: #f2abab;
    color: white;
    padding: 5px 5px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.copy-link-button:hover, .fav-button:hover {
    background-color: #bf2e2e;
    transform: translateY(-2px);
}

.facebook-share-button{
    background-color: #f2abab;
    color: white;
    padding: 5px 5px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.facebook-share-button:hover, .fav-button:hover {
    background-color: #bf2e2e;
    transform: translateY(-2px);
}

.share-links ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}

.share-links ul li {
    flex-grow: 1;
    text-align: center;
}

.share-links ul li a {
    text-decoration: none;
    color: #991918;
    padding: 10px;
    display: block;
}

.share-links ul li a:hover {
    text-decoration: underline;
}


@media (min-width: 768px) {
    .product-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .product-card {
        max-width: 600px;
        margin: 0 auto;
    }
}