/* Masquer le nombre de résultats et le tri WooCommerce */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  display: none !important;
}
.woocommerce ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0 0 0;
}
.woocommerce ul.products li.product {
  width: 68%; /* 2 produits par ligne */
  max-width: 350px;
  margin: 0 1em 2em 1em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 900px) {
  .woocommerce ul.products li.product {
    width: 40%;
    max-width: 180px;
  }
}
@media (max-width: 700px) {
  .woocommerce ul.products {
    justify-content: flex-start;
  }
  .woocommerce ul.products li.product {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: none;
    margin: 0 0 2em 0;
  }
}

/* Espace entre header et fiche produit WooCommerce */
.single-product .site-main,
.single-product .woocommerce,
.single-product .product {
  margin-top: 150px !important;
}

/* Réduction taille image fiche produit WooCommerce à 50% */
.woocommerce-page .woocommerce-product-gallery__image img,
.woocommerce-page .woocommerce-product-gallery img,
.woocommerce-page .product .wp-post-image {
  max-width: 50% !important;
  height: auto;
  width: 50% !important;
  display: block;
  margin: 0 auto;
}

/* Enlever soulignement sur tous les titres */
h1, h2, h3, h4, h5, h6 {
  text-decoration: none !important;
}

/* Ajoutez vos styles WooCommerce personnalisés ici */

/* Marge en haut pour la page boutique (shop) */
.archive.woocommerce .site-main,
.post-type-archive-product .site-main,
.woocommerce-shop .site-main {
    margin-top: 100px;
}

/* Marge en haut pour la page Mon compte WooCommerce */
.woocommerce-account main#main {
    margin-top: 200px !important;
}


.woocommerce-cart {
    margin-top: 100px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (max-width: 980px) {
    .woocommerce-cart {
        margin-top: 100px; /* On garde la marge même sur mobile */
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    .woocommerce-checkout {
        margin-top: 100px;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        margin-left: auto;
        margin-right: auto;
    }
}

.woocommerce-checkout {
    margin-top: 100px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Footer full width */
footer.site-footer, footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    right: 0;
    left: 0;
}



/* Bouton Ajouter au panier WooCommerce : bleu cohérent avec le thème */
.woocommerce ul.products li.product a.button,
.woocommerce a.button.add_to_cart_button,
.woocommerce button.button.add_to_cart_button {
  background: #00b7ce;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 700;
  padding: 12px 28px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce button.button.add_to_cart_button:hover {
  background: #0089a8;
}

