/* ==========================================================
   Fermeture temporaire boutique — à supprimer avec inc/fermeture_boutique.php
   Chargé uniquement pendant la fermeture (ou pour les utilisateurs de test).
   Variables du thème : --main-green, --almost-black, --radius, --transition.
   ========================================================== */

/* Bandeau haut de page */
.crt-fermeture-bandeau {
  position: relative;
  z-index: 100000;
  padding: 10px 20px;
  /* background: var(--main-green); */
  background: var(--accent);
  
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.crt-fermeture-bandeau p {
  margin: 0;
  padding: 0;
  color: inherit;
}

.crt-fermeture-bandeau strong {
  margin-right: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Repli : barre fixe en bas si wp_body_open n'est pas appelé */
.crt-fermeture-bandeau--bas {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

body:has(.crt-fermeture-bandeau--bas) {
  padding-bottom: 64px;
}

body:has(.crt-fermeture-bandeau--bas) .module_wode_whatsapp {
  bottom: 99px;
}

/* Boucle boutique : à la place de quantité + bouton */
.crt-ferme-boucle {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e4e4e4;
  color: var(--main-green);
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

/* Fiche produit : à la place du formulaire d'ajout */
.crt-ferme-produit {
  margin: 20px 0;
  padding: 16px 20px;
  border: 1px solid rgba(66, 86, 71, 0.25);
  border-radius: var(--radius);
  background: rgba(66, 86, 71, 0.07);
  color: var(--almost-black);
  font-size: 15px;
  line-height: 1.5;
}

.crt-ferme-produit strong {
  display: block;
  margin-bottom: 4px;
  color: var(--main-green);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Carousel [featured] : la mention reprend le style .fp-oos du carousel */
.crt-ferme-carousel {
  font-style: normal;
  color: var(--main-green);
}

/* Filet de sécurité si un gabarit change de structure (le blocage reste côté serveur) */
body.crt-boutique-fermee .fp-atc-wrap,
body.crt-boutique-fermee form.crt-loop-add {
  display: none !important;
}

@media (max-width: 767px) {
  .crt-fermeture-bandeau {
    padding: 8px 14px;
    font-size: 13px;
  }

  .crt-fermeture-bandeau strong {
    display: block;
    margin: 0 0 2px;
  }

  body:has(.crt-fermeture-bandeau--bas) {
    padding-bottom: 90px;
  }

  body:has(.crt-fermeture-bandeau--bas) .module_wode_whatsapp {
    bottom: 125px;
  }
}