/* ======================================================
   1) FICHE PRODUIT TYPE CEDEO
====================================================== */

body.single-product .woocommerce div.product {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 48px !important;
}

/* Galerie gauche */
body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce-product-gallery {
  width: 48% !important;
  max-width: 48% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Image principale */
body.single-product .woocommerce div.product div.images img,
body.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 560px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  background: #fff !important;
  border-radius: 12px !important;
}

/* Miniatures */
body.single-product .woocommerce div.product div.images .flex-control-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 18px !important;
  padding: 0 !important;
}

body.single-product .woocommerce div.product div.images .flex-control-thumbs li {
  width: 84px !important;
  list-style: none !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

body.single-product .woocommerce div.product div.images .flex-control-thumbs img {
  width: 100% !important;
  height: 72px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Colonne droite */
body.single-product .woocommerce div.product div.summary {
  width: 48% !important;
  max-width: 48% !important;
  float: none !important;
  margin: 0 !important;
  padding: 24px !important;
  display: block !important;
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

/* SKU */
body.single-product .woocommerce div.product .sku_wrapper {
  display: block !important;
  margin-bottom: 12px !important;
  font-size: 14px !important;
  color: #666 !important;
}

/* Titre */
body.single-product .woocommerce div.product .product_title {
  font-size: 34px !important;
  line-height: 1.12 !important;
  margin: 0 0 18px !important;
  color: #243a76 !important;
}

/* Prix fiche produit */
body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product span.price {
  display: block !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin: 0 0 20px !important;
  color: #111 !important;
}

/* Description courte */
body.single-product .woocommerce-product-details__short-description {
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: #4f5665 !important;
  margin-bottom: 20px !important;
}

/* Formulaire panier */
body.single-product .woocommerce div.product form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

/* Quantité */
body.single-product .woocommerce div.product form.cart .quantity {
  margin: 0 !important;
}

body.single-product .woocommerce div.product form.cart .qty {
  min-height: 48px !important;
  width: 70px !important;
  text-align: center !important;
  font-size: 16px !important;
  border-radius: 8px !important;
  border: 1px solid #d9d9d9 !important;
}

/* Bouton panier fiche produit */
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
  min-height: 50px !important;
  padding: 0 26px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  background: #e4b63f !important;
  color: #1a1a1a !important;
  border: none !important;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: #d4a62f !important;
  color: #1a1a1a !important;
}

/* Onglets et produits liés */
body.single-product .woocommerce-tabs,
body.single-product .related.products {
  width: 100% !important;
  margin-top: 60px !important;
}

/* Masquer le titre parasite du thème */
body.single-product .entry-title,
body.single-product .page-title,
body.single-product .elementor-heading-title:first-of-type {
  display: none !important;
}

/* Responsive fiche produit */
@media (max-width: 980px) {
  body.single-product .woocommerce div.product div.images,
  body.single-product .woocommerce-product-gallery,
  body.single-product .woocommerce div.product div.summary {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-product .woocommerce div.product .product_title {
    font-size: 28px !important;
  }

  body.single-product .woocommerce div.product p.price,
  body.single-product .woocommerce div.product span.price {
    font-size: 28px !important;
  }
}

/* ======================================================
   2) FIX IMAGES / LAZYLOAD
====================================================== */

.woocommerce img,
.woocommerce-page img {
  filter: none !important;
  transform: none !important;
  image-rendering: auto !important;
}

[class*="lazy"] img,
img[class*="lazy"],
img[loading="lazy"] {
  filter: none !important;
  opacity: 1 !important;
}

/* ======================================================
   3) GRILLE UNIFIÉE
   accueil + boutique + catégories + recherche + liés
====================================================== */

/* Largeur propre des pages boutique/catégories/recherche */
.tax-product_cat .woocommerce,
.post-type-archive-product .woocommerce,
.search .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow: visible !important;
}

/* Grille produits */
.woocommerce ul.products,
.tax-product_cat .woocommerce ul.products,
.post-type-archive-product .woocommerce ul.products,
.search .woocommerce ul.products,
.related.products ul.products,
.upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Carte produit */
.woocommerce ul.products li.product,
.related.products ul.products li.product,
.upsells.products ul.products li.product {
  background: #f8f8f8;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 20px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  width: 100% !important;
  margin: 0 !important;
  min-width: 0 !important;
  float: none !important;
}

.woocommerce ul.products li.product:hover,
.related.products ul.products li.product:hover,
.upsells.products ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* Zone image */
.woocommerce ul.products li.product a:first-child,
.related.products ul.products li.product a:first-child,
.upsells.products ul.products li.product a:first-child {
  display: block;
  min-height: 250px;
}

/* Images */
.woocommerce ul.products li.product img,
.related.products ul.products li.product img,
.upsells.products ul.products li.product img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto 15px !important;
  padding: 10px !important;
  background: #fff !important;
  border-radius: 12px !important;
}

/* Titres */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.product .woocommerce-loop-product__title,
.upsells.products ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: #243a76 !important;
  min-height: 110px !important;
  margin: 0 0 12px !important;
  overflow-wrap: anywhere;
}

/* Prix */
.woocommerce ul.products li.product .price,
.related.products ul.products li.product .price,
.upsells.products ul.products li.product .price {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 10px 0 16px !important;
  width: 100% !important;
  line-height: 1.2 !important;
  margin-top: 0 !important;
}

/* Prix normal */
.woocommerce ul.products li.product .price > .woocommerce-Price-amount,
.woocommerce ul.products li.product .price > .woocommerce-Price-amount bdi,
.related.products ul.products li.product .price > .woocommerce-Price-amount,
.related.products ul.products li.product .price > .woocommerce-Price-amount bdi,
.upsells.products ul.products li.product .price > .woocommerce-Price-amount,
.upsells.products ul.products li.product .price > .woocommerce-Price-amount bdi {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #243a76 !important;
}

/* Prix promo à gauche */
.woocommerce ul.products li.product .price ins,
.related.products ul.products li.product .price ins,
.upsells.products ul.products li.product .price ins {
  order: 1;
  display: inline-block;
  text-decoration: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products li.product .price ins .woocommerce-Price-amount,
.woocommerce ul.products li.product .price ins bdi,
.related.products ul.products li.product .price ins .woocommerce-Price-amount,
.related.products ul.products li.product .price ins bdi,
.upsells.products ul.products li.product .price ins .woocommerce-Price-amount,
.upsells.products ul.products li.product .price ins bdi {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #243a76 !important;
  line-height: 1.2 !important;
}

/* Ancien prix à droite */
.woocommerce ul.products li.product .price del,
.related.products ul.products li.product .price del,
.upsells.products ul.products li.product .price del {
  order: 2;
  display: inline-block;
  text-decoration: none;
  position: relative;
  opacity: 1;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product .price del .woocommerce-Price-amount,
.woocommerce ul.products li.product .price del bdi,
.woocommerce ul.products li.product .price del span,
.related.products ul.products li.product .price del .woocommerce-Price-amount,
.related.products ul.products li.product .price del bdi,
.related.products ul.products li.product .price del span,
.upsells.products ul.products li.product .price del .woocommerce-Price-amount,
.upsells.products ul.products li.product .price del bdi,
.upsells.products ul.products li.product .price del span {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #999 !important;
  line-height: 1.2 !important;
}

/* Barré visible */
.woocommerce ul.products li.product .price del::after,
.related.products ul.products li.product .price del::after,
.upsells.products ul.products li.product .price del::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 2px;
  background: #b1b1b1;
  transform: translateY(-50%);
}

/* Bouton panier */
.woocommerce ul.products li.product .button,
.related.products ul.products li.product .button,
.upsells.products ul.products li.product .button {
  display: block !important;
  width: 100% !important;
  background: #e4b63f !important;
  color: #1a1a1a !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  transition: background 0.25s ease, transform 0.25s ease;
  margin-top: auto !important;
}

.woocommerce ul.products li.product .button:hover,
.related.products ul.products li.product .button:hover,
.upsells.products ul.products li.product .button:hover {
  background: #d4a62f !important;
  color: #1a1a1a !important;
  transform: translateY(-1px);
}

/* Badge promo */
.woocommerce span.onsale {
  min-width: 62px;
  min-height: 62px;
  line-height: 62px;
  padding: 0;
  border-radius: 999px;
  background: #9a9800;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  top: 14px;
  right: 14px;
  left: auto;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ======================================================
   4) BARRE TRI TYPE CEDEO
====================================================== */

.tax-product_cat .woocommerce .woocommerce-result-count,
.tax-product_cat .woocommerce .woocommerce-ordering,
.post-type-archive-product .woocommerce .woocommerce-result-count,
.post-type-archive-product .woocommerce .woocommerce-ordering,
.search .woocommerce .woocommerce-result-count,
.search .woocommerce .woocommerce-ordering {
  margin: 0 0 24px 0 !important;
}

.tax-product_cat .woocommerce .woocommerce-result-count,
.post-type-archive-product .woocommerce .woocommerce-result-count,
.search .woocommerce .woocommerce-result-count {
  float: left !important;
  font-size: 15px;
  color: #4f5665;
  line-height: 46px;
}

.tax-product_cat .woocommerce .woocommerce-ordering,
.post-type-archive-product .woocommerce .woocommerce-ordering,
.search .woocommerce .woocommerce-ordering {
  float: right !important;
  margin-bottom: 24px !important;
  position: relative;
}

.tax-product_cat .woocommerce .woocommerce-ordering select,
.post-type-archive-product .woocommerce .woocommerce-ordering select,
.search .woocommerce .woocommerce-ordering select {
  min-width: 260px;
  height: 46px;
  padding: 0 42px 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.tax-product_cat .woocommerce .woocommerce-ordering::after,
.post-type-archive-product .woocommerce .woocommerce-ordering::after,
.search .woocommerce .woocommerce-ordering::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #243a76;
  pointer-events: none;
}

.tax-product_cat .woocommerce .woocommerce-ordering select:hover,
.tax-product_cat .woocommerce .woocommerce-ordering select:focus,
.post-type-archive-product .woocommerce .woocommerce-ordering select:hover,
.post-type-archive-product .woocommerce .woocommerce-ordering select:focus,
.search .woocommerce .woocommerce-ordering select:hover,
.search .woocommerce .woocommerce-ordering select:focus {
  border-color: #243a76;
  outline: none;
}

.tax-product_cat .woocommerce::after,
.post-type-archive-product .woocommerce::after,
.search .woocommerce::after {
  content: "";
  display: block;
  clear: both;
}

/* ======================================================
   5) RESPONSIVE
====================================================== */

@media (max-width: 1024px) {
  .woocommerce ul.products,
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .tax-product_cat .woocommerce .woocommerce-result-count,
  .tax-product_cat .woocommerce .woocommerce-ordering,
  .post-type-archive-product .woocommerce .woocommerce-result-count,
  .post-type-archive-product .woocommerce .woocommerce-ordering,
  .search .woocommerce .woocommerce-result-count,
  .search .woocommerce .woocommerce-ordering {
    float: none !important;
    display: block;
    width: 100%;
  }

  .tax-product_cat .woocommerce .woocommerce-result-count,
  .post-type-archive-product .woocommerce .woocommerce-result-count,
  .search .woocommerce .woocommerce-result-count {
    line-height: 1.4;
    margin-bottom: 12px !important;
  }

  .tax-product_cat .woocommerce .woocommerce-ordering select,
  .post-type-archive-product .woocommerce .woocommerce-ordering select,
  .search .woocommerce .woocommerce-ordering select {
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .woocommerce ul.products,
  .related.products ul.products,
  .upsells.products ul.products {
    grid-template-columns: 1fr !important;
  }

  .woocommerce ul.products li.product img,
  .related.products ul.products li.product img,
  .upsells.products ul.products li.product img {
    height: 200px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .related.products ul.products li.product .woocommerce-loop-product__title,
  .upsells.products ul.products li.product .woocommerce-loop-product__title {
    min-height: auto !important;
  }
}
.sijay-installation-bloc {
    margin-top: 30px;
    padding: 22px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
}

.sijay-installation-alert {
    color: #c62828;
    margin-bottom: 10px;
}

.sijay-installation-bloc h2 {
    font-size: 24px;
    margin-bottom: 18px;
}

.sijay-installation-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sijay-installation-item {
    flex: 1 1 220px;
    min-width: 220px;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
    transition: 0.25s ease;
}

.sijay-installation-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.sijay-installation-item a {
    text-decoration: none;
    color: #111;
}

.sijay-installation-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.sijay-installation-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.sijay-installation-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.sijay-installation-btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .sijay-installation-grid {
        display: block;
    }

    .sijay-installation-item {
        margin-bottom: 12px;
    }
}
.woocommerce-cart .cart_totals td,
.woocommerce-cart .cart_totals th {
    letter-spacing: normal !important;
    word-spacing: normal !important;
}
.woof_container {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    margin-bottom: 20px;
}

.woof_list label {
    color: #243a76;
    font-weight: 500;
}

.woof_submit_search_form {
    background: #e4b63f !important;
    color: #000 !important;
    border-radius: 40px !important;
    border: none !important;
    font-weight: 700;
    padding: 12px 24px !important;
}

.woof_submit_search_form:hover {
    opacity: .9;
}
.irs-from:before,
.irs-to:before,
.irs-single:before{
    content:"";
}

.woof_price3_search_container .price_label{
    display:none !important;
}
.archive .elementor-widget-theme-archive-title .page-title:before{
    display:none !important;
}
@media (max-width: 767px) {

.woocommerce ul.products,
.related.products ul.products,
.upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
}

}
@media (max-width: 767px) {

.woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.woocommerce ul.products li.product .price{
    font-size: 16px !important;
}

.woocommerce ul.products li.product .button{
    font-size: 13px !important;
    padding: 10px !important;
}

}
/* ===== RESPONSIVE FICHE PRODUIT MOBILE ===== */
@media (max-width: 767px) {

  body.single-product .woocommerce div.product {
    display: block !important;
    padding: 0 14px !important;
  }

  body.single-product .woocommerce div.product div.images,
  body.single-product .woocommerce-product-gallery,
  body.single-product .woocommerce div.product div.summary {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-product .woocommerce div.product div.images img,
  body.single-product .woocommerce-product-gallery__image img {
    max-height: 360px !important;
    object-fit: contain !important;
  }

  body.single-product .woocommerce div.product div.summary {
    margin-top: 20px !important;
    padding: 18px !important;
    border-radius: 14px !important;
  }

  body.single-product .woocommerce div.product .product_title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }

  body.single-product .woocommerce div.product p.price,
  body.single-product .woocommerce div.product span.price {
    font-size: 26px !important;
    color: #243a76 !important;
  }

  body.single-product .woocommerce-product-details__short-description {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  body.single-product .woocommerce div.product form.cart {
    display: block !important;
  }

  body.single-product .woocommerce div.product form.cart .quantity {
    margin-bottom: 12px !important;
  }

  body.single-product .woocommerce div.product form.cart .qty {
    width: 100% !important;
    height: 48px !important;
  }

  body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100% !important;
    height: 52px !important;
    font-size: 16px !important;
    background: #e4b63f !important;
    color: #1a1a1a !important;
    border-radius: 12px !important;
  }

  body.single-product .woocommerce div.product div.images .flex-control-thumbs {
    justify-content: center !important;
    gap: 8px !important;
  }

  body.single-product .woocommerce div.product div.images .flex-control-thumbs li {
    width: 68px !important;
  }

  body.single-product .woocommerce div.product div.images .flex-control-thumbs img {
    height: 60px !important;
  }
}
/* ===== CATÉGORIES MOBILE ===== */
@media (max-width: 767px) {

  /* Grille 2 colonnes */
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Cartes */
  .woocommerce ul.products li.product {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  /* Images */
  .woocommerce ul.products li.product img {
    height: 140px !important;
    padding: 5px !important;
  }

  /* Titres */
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    min-height: 55px !important;
    margin-bottom: 8px !important;
  }

  /* Prix */
  .woocommerce ul.products li.product .price {
    font-size: 15px !important;
    margin: 8px 0 !important;
  }

  .woocommerce ul.products li.product .price ins bdi {
    font-size: 16px !important;
  }

  /* Bouton */
  .woocommerce ul.products li.product .button {
    font-size: 13px !important;
    padding: 10px !important;
    border-radius: 8px !important;
  }

  /* Résultats */
  .woocommerce-result-count {
    font-size: 13px !important;
    text-align: center !important;
  }

  /* Tri */
  .woocommerce-ordering select {
    width: 100% !important;
    min-width: 100% !important;
  }

  /* Filtres HUSKY */
  .woof_container {
    padding: 12px !important;
    border-radius: 12px !important;
  }

}
/* ===== FORCE 2 COLONNES MOBILE CATÉGORIES ===== */
@media only screen and (max-width: 767px) {
  body .woocommerce ul.products,
  body .tax-product_cat .woocommerce ul.products,
  body .post-type-archive-product .woocommerce ul.products,
  body .search .woocommerce ul.products,
  body .related.products ul.products,
  body .upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body .woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }
}
/* FORCE 2 COLONNES SUR TÉLÉPHONE + GRAND MOBILE */
@media only screen and (max-width: 1024px) {
  body.tax-product_cat .woocommerce ul.products,
  body.post-type-archive-product .woocommerce ul.products,
  body.archive .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.tax-product_cat .woocommerce ul.products li.product,
  body.post-type-archive-product .woocommerce ul.products li.product,
  body.archive .woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }
}