/* 
  keep your custom CSS modificatins here,
  make sure to backup this file before upgrading the theme */

/* AJOUT MANUEL POUR CORRIGER L'OPACITÉ DU MASQUE PRODUIT */
.products .product-miniature .product-thumbnail:before {
    background: rgba(0, 0, 0, 0.2) !important;
}
/* FIN DE L'AJOUT MANUEL */

/* Correctif : empêche le voile modal fantôme de bloquer les clics, quelle que soit la fréquence à laquelle il réapparaît */
.modal-backdrop {
    pointer-events: none !important;
}

/* ===== Palette noir/gris à la place du rouge du thème ===== */

/* Liens texte globaux */
a {
    color: #000000;
}
a:focus, a:hover {
    color: #333333;
}

/* Boutons secondaires (ex: "Continuer mes achats") */
.btn-secondary,
.btn-outline-primary,
.cart-grid-body a.label,
a.back-to-shop {
    color: #000000 !important;
    border-color: #000000 !important;
    background-color: transparent !important;
}
.btn-secondary:hover,
.btn-outline-primary:hover,
.cart-grid-body a.label:hover,
a.back-to-shop:hover {
    color: #ffffff !important;
    background-color: #333333 !important;
    border-color: #333333 !important;
}

/* Fond du menu déroulant (sous-menu) */
@media (min-width: 768px) {
    .top-menu[data-depth="0"] > li > .sub-menu {
        background: #000000 !important;
    }
}

/* Voile au survol des vignettes secondaires (galerie photo d'une fiche produit) */
.product-images .thumb-container:before {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Texte du menu déroulant en blanc (fond déjà noir) */
@media (min-width: 768px) {
    .top-menu[data-depth="0"] > li > .sub-menu a {
        color: #ffffff !important;
    }
}

/* Boutons principaux (Ajouter au panier, Commander...) : gris au survol au lieu de rouge */
.btn-primary {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #666666 !important;
    border-color: #666666 !important;
    color: #ffffff !important;
}

/* Bouton "Continuer mes achats" : reste blanc, jamais de fond noir au survol */
.cart-grid-body a.label {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: transparent !important;
}
.cart-grid-body a.label:hover {
    color: #666666 !important;
    background-color: #ffffff !important;
    border-color: transparent !important;
}

/* Couleur du petit triangle au-dessus du menu déroulant */
@media (min-width: 768px) {
    .top-menu[data-depth="0"] > li > a.with-ul:before {
        border-bottom-color: #000000 !important;
    }
}

/* Correctif : neutralise le voile de chargement natif s'il reste coincé (invisible + non cliquable) */
#layer-waiting-modal {
    pointer-events: none !important;
}

/* Remplacement du cadre noir par du blanc, sans toucher aux dimensions/marges du thème */
body {
    background: #ffffff !important;
}