
.pibpack-link{
    color: #980909;
    text-decoration: underline;
}

.product-item.col-5.btn-action:hover{

    background-color: #980909;
    color: #fcfcfc !important;
}

/* Style par défaut de la carte produit */
.product-item {
    border: 1px solid #eee; /* Bordure discrète */
    padding: 15px;
    transition: all 0.3s ease; /* Transition fluide */
    cursor: pointer;
    background-color: #fff;  display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pousse le contenu vers les extrémités */
    min-height: 200px; /* Ajustez selon la taille de vos images */

}
/* Style quand l'item est sélectionné */
.product-item.selected {
    border: 2px solid #000; /* Bordure noire affirmée type trait de gravure */
    background-color: #fcfcfc; /* Un blanc légèrement cassé */
    box-shadow: 5px 5px 0px #000; /* Ombre décalée style "estampe" */
    transform: translateY(-5px); /* Petit soulèvement */
}

/* Effet sur l'image lors de la sélection */
.product-item.selected img {
   filter:grayscale(0%);
}
.product-item  img {
    filter: grayscale(100%);
    max-height: 100px;
    max-width: 100px;
    margin: auto;
}

.product-item:hover {
    border-color: #000;
}

/* Optionnel : ajouter une petite coche ou un sceau en haut à droite */
.product-item.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
}



.pibpack-hidden{
    display: none;
}
.pibpack-wrongprice{
    text-decoration: line-through;
    color:#980909;
}
.pibpack-bigprice{
    font-size: 1.2em;
    font-weight: bold;
}
.product-label{
    font-size: 0.7rem;
    margin-bottom: 0;
}
#pack-summary{
    position: sticky; bottom: 0;
    background: #fff;
    border-top: 2px solid #000;

}
.pib-progress-container {     margin: 0 0 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px; }
.p_labels { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; font-weight: bold; }
.p_bar_bg { position: relative; height: 12px; background: #e0e0e0; border-radius: 6px; overflow: visible; }
#p_bar_fill { height: 100%; background: #27AE60FF; width: 0%; border-radius: 6px; transition: width 0.4s ease; }
.p_milestone { position: absolute; top: -4px; width: 20px; height: 20px; background: #fff; border: 2px solid #000000; border-radius: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; font-size: 10px; }
.p_milestone.reached { background: #27AE60FF; color: #fff;border: 2px solid #27AE60FF; }

.p_milestone.reached:has(~ .reached) .m_label_bottom {
    color: #a31616 !important;
    font-size: 0;
}
.p_milestone.reached:has(~ .reached) .m_label_bottom:before {
    content: "\2713"; /* Code Unicode pour la coche */
    font-size: 1rem;
    margin-right: 5px; /* Pour ne pas coller au texte */
    color: #28a745;
}

a.product-item.btn-action:hover{
    background-color: #980909 !important;
    color:#f9f9f9 !important;
    border-color: #000000 !important;
}


/* Label au-dessous : la récompense */
.m_label_bottom {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: bold;
    color: #27ae60; /* Un vert "succès" */
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.p_milestone.reached .m_label_bottom {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(5px);
}

.m_label_top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: bold;
    color: #970909; /* Un vert "succès" */
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.p_milestone.reached .m_label_top {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(5px);
}




/* Container plus compact */
.product-quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0; /* On colle les éléments pour un aspect "bloc" */
    margin-top: auto;
}

/* Boutons plus petits et sobres */
.product-quantity-selector .qty-btn {
    padding: 2px 8px;
    height: 28px;
    min-width: 28px;
    font-size: 14px;
    line-height: 1;
    border: 1px solid #ccc;
    background: #f8f9fa;
    color: #333;
    border-radius: 0; /* On enlève les arrondis pour un look plus "Atelier" */
    transition: all 0.2s;
}

.product-quantity-selector .qty-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* On arrondit uniquement les extrémités */
.product-quantity-selector .minus { border-radius: 4px 0 0 4px; }
.product-quantity-selector .plus { border-radius: 0 4px 4px 0; }

/* Input plus fin */
.product-qty-input {
    width: 35px !important;
    height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: 1px solid #ccc !important;
    border-bottom: 1px solid #ccc !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 13px;
    background: #fff;
    text-align: center;
    -moz-appearance: textfield; /* Cache les flèches par défaut sur Firefox */
}

/* Cache les flèches sur Chrome/Safari */
.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}