
/* ==================================================
   MAISON CRETET - NOEL 2026
   Categorie Noel : ID 43
   Neige + prix + boutons + badges
   Couleur principale : #8B1E2D
   ================================================== */


/* ==================================================
   1. NEIGE QUI TOMBE
   ================================================== */

body#category.category-id-43::before,
body#category.category-id-43::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background-repeat: repeat;
}

/* Flocons principaux */

body#category.category-id-43::before {
  background-image:
    radial-gradient(4px 4px at 30px 40px, #FFFFFF 98%, transparent),
    radial-gradient(5px 5px at 110px 130px, #FFFFFF 98%, transparent),
    radial-gradient(4px 4px at 190px 70px, #FFFFFF 98%, transparent),
    radial-gradient(5px 5px at 260px 180px, #FFFFFF 98%, transparent),
    radial-gradient(4px 4px at 150px 230px, #FFFFFF 98%, transparent);

  background-size: 300px 280px;
  animation: neige-noel-1 14s linear infinite;
  opacity: 0.9;
}

/* Flocons secondaires */

body#category.category-id-43::after {
  background-image:
    radial-gradient(3px 3px at 55px 90px, #FFFFFF 98%, transparent),
    radial-gradient(4px 4px at 150px 30px, #FFFFFF 98%, transparent),
    radial-gradient(3px 3px at 230px 160px, #FFFFFF 98%, transparent),
    radial-gradient(4px 4px at 100px 240px, #FFFFFF 98%, transparent);

  background-size: 270px 300px;
  animation: neige-noel-2 20s linear infinite;
  opacity: 0.75;
}

/* Animations */

@keyframes neige-noel-1 {
  from { background-position: 0 0; }
  to   { background-position: 0 840px; }
}

@keyframes neige-noel-2 {
  from { background-position: 0 0; }
  to   { background-position: 0 900px; }
}


/* ==================================================
   2. PRIX EN BORDEAUX
   ================================================== */

body#category.category-id-43 .product-miniature .price,
body#category.category-id-43 .product-miniature .product-price,
body#category.category-id-43 .product-miniature .current-price {
  color: #8B1E2D !important;
  font-weight: 700 !important;
}

/* Conserver les anciens prix barres distincts */

body#category.category-id-43 .product-miniature .regular-price {
  color: #777777 !important;
}


/* ==================================================
   3. BOUTONS AJOUTER AU PANIER
   ================================================== */

body#category.category-id-43 .product-miniature .add-to-cart,
body#category.category-id-43 .product-miniature .btn-primary {
  background-color: #8B1E2D !important;
  border-color: #8B1E2D !important;
  color: #FFFFFF !important;
}

/* Textes et icones */

body#category.category-id-43 .product-miniature .add-to-cart *,
body#category.category-id-43 .product-miniature .btn-primary * {
  color: #FFFFFF !important;
}


/* ==================================================
   4. BOUTONS DECOUVRIR LE PRODUIT
   ================================================== */

body#category.category-id-43 .product-miniature .view-product,
body#category.category-id-43 .product-miniature .btn-product,
body#category.category-id-43 .product-miniature a.btn-primary {
  background-color: #8B1E2D !important;
  border-color: #8B1E2D !important;
  color: #FFFFFF !important;
}

/* Texte dans les boutons */

body#category.category-id-43 .product-miniature .view-product *,
body#category.category-id-43 .product-miniature .btn-product * {
  color: #FFFFFF !important;
}


/* ==================================================
   5. BADGES PROMOTIONS
   Uniquement les produits de la categorie Noel
   Exclure les produits du Mega Menu
   ================================================== */

body#category.category-id-43 #products .product-miniature .discount-percentage,
body#category.category-id-43 #products .product-miniature .discount-amount,
body#category.category-id-43 #products .product-miniature .product-flag.discount,
body#category.category-id-43 #products .product-miniature .product-flag.on-sale,
body#category.category-id-43 #products .product-miniature .product-flags .discount {
  background-color: #8B1E2D !important;
  border-color: #8B1E2D !important;
  color: #FFFFFF !important;
}

/* ==================================================
   6. BADGES EXCLUSIVITE WEB ET NOUVEAUTE
   ================================================== */

body#category.category-id-43 .product-miniature .product-flag.online-only,
body#category.category-id-43 .product-miniature .product-flag.new {
  background-color: #8B1E2D !important;
  border-color: #8B1E2D !important;
  color: #FFFFFF !important;
}


/* ==================================================
   7. SURVOL : MEME COULEUR BORDEAUX
   ================================================== */

body#category.category-id-43 .product-miniature .add-to-cart:hover,
body#category.category-id-43 .product-miniature .btn-primary:hover,
body#category.category-id-43 .product-miniature .view-product:hover,
body#category.category-id-43 .product-miniature .btn-product:hover {
  background-color: #8B1E2D !important;
  border-color: #8B1E2D !important;
  color: #FFFFFF !important;
}


/* ==================================================
   8. ADAPTATION MOBILE
   ================================================== */

@media (max-width: 767px) {

  /* Moins de neige sur mobile */
  body#category.category-id-43::before {
    opacity: 0.65;
  }

  body#category.category-id-43::after {
    display: none;
  }

}


/* ==================================================
   9. ACCESSIBILITE
   ================================================== */

@media (prefers-reduced-motion: reduce) {

  body#category.category-id-43::before,
  body#category.category-id-43::after {
    animation: none;
  }

}

/* ==============================================
   NOEL - DECOUVRIR LE PRODUIT UNIQUEMENT
   Sans modifier le bloc parent
   ============================================== */

body#category.category-id-43
.product-miniature
.highlighted-informations > a.thumbnail.product-thumbnail {

  background: transparent !important;
  border: none !important;
  color: #8B1E2D !important;

  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Meme couleur au survol */
body#category.category-id-43
.product-miniature
.highlighted-informations > a.thumbnail.product-thumbnail:hover,
body#category.category-id-43
.product-miniature
.highlighted-informations > a.thumbnail.product-thumbnail:focus {

  background: transparent !important;
  color: #8B1E2D !important;
  text-decoration: none !important;
}

/* ==============================================
   NOEL - FLECHE RETOUR EN HAUT
   ============================================== */

/* Uniquement le fond de la fleche */
body#category.category-id-43 .up a.btn-secondary i.material-icons,
body#category.category-id-43 .up a.btn-secondary:hover i.material-icons,
body#category.category-id-43 .up a.btn-secondary:focus i.material-icons {
  background-color: #8B1E2D !important;
  color: #FFFFFF !important;
}

/* ==============================================
   NOEL - ICONES AFFICHAGE PRODUITS
   ============================================== */

/* Uniquement les icones, pas les boutons */
body#category.category-id-43 .show_product_options .btn i,
body#category.category-id-43 .show_product_options .btn:hover i,
body#category.category-id-43 .show_product_options .btn:focus i,
body#category.category-id-43 .show_product_options .btn.active i {
  color: #8B1E2D !important;
}

/* ==============================================
   MAISON CRETET - PERE NOEL DANS LE MENU
   Uniquement sur la categorie Noel (ID 43)
   Ordinateur uniquement
   ============================================== */

@media (min-width: 992px) {

  /* Conserver l'apparence d'origine du menu */
  body#category.category-id-43
  .mm_menus_ul > li.mm_menus_li > a.ets_mm_url[href$="/noel"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Ajouter le Pere Noel devant NOEL */
  body#category.category-id-43
  .mm_menus_ul > li.mm_menus_li > a.ets_mm_url[href$="/noel"]
  .mm_menu_content_title::before {
    content: "\1F385";
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    font-weight: normal;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    line-height: 1;
  }

}