body {
    font-family: 'Montserrat', sans-serif;
}

/* Cartes grisées si stock à 0 */
.grise {
    opacity: 0.5;
    filter: grayscale(1);
}

.boutique-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.boutique-content h1 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-left: 50px;
    font-size: 2rem;
    color: #333;
}

.boutique-content p {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.cartes-produits {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: center;
}

.carte-produit {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 10);
    padding: 1rem;
    width: 220px;
    text-align: center;
}

.marque-produit {
    text-align: right;
    color: #222;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 2;
}


.carte-produit img {
    width: 120px;
    /* largeur fixe */
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.bottom-card {
    display: flex;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.carte-produit .prix {
    width: 80%;
    font-weight: bold;
    color: black;
    font-size: 1.2rem;
    text-align: left;
}

.fa-shopping-cart {
    width: 40px;
    font-size: 1rem;
    background-color: #ffaa00;
    color: #333;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    transition: background 0.2s, color 0.2s;
    outline: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: inline-block;
    margin: 0 auto;
}

.fa-shopping-cart:active,
.fa-shopping-cart:focus {
    background-color: #ffd700;
    color: #222;
}




.modal-produit {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}


.modal-content {
    background: #fff;
    border-radius: 16px;
    height: 700px;
    padding: 32px;
    min-width: 600px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}


.close-modal {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2em;
    cursor: pointer;
}

.modal-flex {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.modal-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    max-width: 300px;
    position: relative;
}

.modal-right {
    margin-top: 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 300px;
    justify-content: flex-start;
    margin-left: 100px;
}

.modal-right h2 {
    margin-top: 0;
    font-size: 1.6em;
    color: #333;
    margin-bottom: 30px;
}

.modal-right p {
    font-size: 1em;
    margin: 8px 0;
    text-align: left;
    margin-top: 40px;
    color: black;
}

.modal-right span {
    margin-top: 150px;
    font-size: 1em;
    padding-bottom: 20px;
    text-align: left;
}


.modal-left img {
    width: 90% !important;
    max-width: 250px !important;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px !important;
    margin-top: 200px !important;
    margin-left: 40px !important;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-prix-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 8px 12px;
    border-radius: 8px;
}

.modal-prix-text {
    color: black;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0;
}

.modal-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
    margin-top: 50px;
    padding: 20px;
}

.modal-prix {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.modal-commander-btn {
    background: #ffaa00;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-commander-btn:hover {
    background: #ffb300;
}

.modal-description-item {
    border-bottom: 2px solid #f0c040;
    padding-bottom: 15px;
    margin-bottom: 15px;
    padding-top: 12px;
}

.modal-description-item:last-child {
    border-bottom: none;
}

/* Pastilles de couleurs */
.couleurs-disponibles {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    padding: 0 10px;
}

.pastille-couleur {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: inline-block;
}

.pastille-couleur:hover {
    transform: scale(1.1);
    border-color: #585757;
}

/* Couleurs spécifiques */
.pastille-couleur[data-couleur="noir"] {
    background-color: #000000;
}

.pastille-couleur[data-couleur="blanc"] {
    background-color: #ffffff;
    border-color: #ccc;
}

.pastille-couleur[data-couleur="rouge"] {
    background-color: #dc3545;
}

.pastille-couleur[data-couleur="bleu"] {
    background-color: #007bff;
}

.pastille-couleur[data-couleur="bleu-clair"] {
    background-color: #92c9ff;
}

.pastille-couleur[data-couleur="bleu-fonce"] {
    background-color: #004085;
}

.pastille-couleur[data-couleur="vert-pomme"] {
    background-color: #b8ffde;
}

.pastille-couleur[data-couleur="vert-fonce"] {
    background-color: #155724;
}

.pastille-couleur[data-couleur="rose-fuchsia"] {
    background-color: #ffc8e2;
}

.pastille-couleur[data-couleur="violet"] {
    background-color: #6f42c1;
}

.pastille-couleur[data-couleur="orange"] {
    background-color: #fd7e14;
}

.pastille-couleur[data-couleur="jaune"] {
    background-color: #ffc107;
}

.pastille-couleur[data-couleur="gris"] {
    background-color: #6c757d;
}

/* Masquer la marque et le stock dans le modal */
#modal-marque,
#modal-stock {
    display: none;
}