/*  BASE */
body {
    font-family: Arial, sans-serif;
    color: #111;               /* TEXTE LISIBLE */
    margin: 0;
    background: #f7f7f7;       /* FOND CLAIR */
}


/* GRILLE DES PRODUITS */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* PRODUITS MASQUÉS */
.product-card.hidden {
    display: none; /* Utile pour le filtrage */
}

/* CARTE PRODUIT */
.product-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* BADGES */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #ffffff;
    z-index: 10;
}

/* Couleurs badges */
.green { background: #2ecc71; }
.pink { background: #ff6b81; }
.black { background: #000000; }
.yellow { background: #f1c40f; color: #111; }

/* IMAGE PRODUIT*/
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* TITRE & DESCRIPTION */
.product-card h3 {
    font-size: 16px;
    margin: 12px 0 6px;
    color: #111;
}

.product-card p {
    font-size: 13px;
    color: #555;          /* MEILLEUR CONTRASTE */
    flex-grow: 1;
}

/*PRIX*/
.price {
    font-weight: bold;
    color: #1e6cff;
    margin: 10px 0;
}

/* COULEURS PRODUIT*/
.colors {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ccc;
}

/* Couleurs */
.color.gray   { background: #bbb; }
.color.gold   { background: #d4af37; }
.color.silver { background: #e0e0e0; }
.color.black  { background: #000; }
.color.pink   { background: pink; }

/*  BOUTON AJOUTER AU PANIER */
  
  
.add-to-cart {
    background: #880909;          
    color: #ffffff;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.add-to-cart:hover {
    background: #aa2323;
}

/*   BOUTON DÉTAILS*/
.details-btn {
    background: transparent;
    border: 1px solid #1e6cff;
    color: #1e6cff;
    padding: 8px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.details-btn:hover {
    background: #1e6cff;
    color: #ffffff;
}
