/* === PAGE PRODUIT WOOCOMMERCE - GALERIE PLUS PROPRE === */

/* Bloc global galerie */
.single-product .woocommerce-product-gallery {
    max-width: 560px !important;
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08) !important;
    padding: 24px 24px 18px 24px !important;
}

/* Supprime la loupe si elle gêne */
.single-product .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Image principale : grande mais sans l'étirer n'importe comment */
.single-product .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}

.single-product .woocommerce-product-gallery__image {
    text-align: center !important;
    margin: 0 auto !important;
}

.single-product .woocommerce-product-gallery__image img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 520px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Séparateur orange entre grande image et miniatures */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin: 22px 0 0 0 !important;
    padding: 18px 0 0 0 !important;
    border-top: 4px solid #FE5000 !important;
    list-style: none !important;
}

/* Chaque miniature */
.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 82px !important;
    height: 82px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Image miniature */
.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    width: 82px !important;
    height: 82px !important;
    object-fit: contain !important;
    background: #fff !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 10px !important;
    padding: 6px !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
}

/* Miniature active / survol */
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover {
    border: 2px solid #FE5000 !important;
    box-shadow: 0 4px 12px rgba(254,80,0,0.25) !important;
}

/* Mobile */
@media screen and (max-width: 768px) {
    .single-product .woocommerce-product-gallery {
        max-width: 100% !important;
        padding: 18px !important;
    }

    .single-product .woocommerce-product-gallery__image img {
        max-height: 380px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs {
        gap: 10px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs li,
    .single-product .woocommerce-product-gallery .flex-control-thumbs img {
        width: 64px !important;
        height: 64px !important;
    }
}
/* === AGRANDIR LES IMAGES DANS LES CARTES PRODUITS / CATALOGUE === */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #fff !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}

/* Zone image de la carte */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    width: 100% !important;
    max-width: 260px !important;
    height: 260px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 25px !important;
}

/* Centrage du contenu des cartes */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    min-height: 55px !important;
    padding: 18px 18px 5px 18px !important;
}

/* Points / prix */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    padding: 0 18px 18px 18px !important;
}

/* Bouton ajouter sélection */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    margin: 0 18px 18px auto !important;
    display: block !important;
    width: fit-content !important;
}
.page-layout {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}
.page-layout .container { flex: 1; min-width: 0; }
.site-sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; }
.site-sidebar .widget {
  background: #fff; border-radius: 10px; border-left: 4px solid #e35d25;
  padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.site-sidebar .widget h3 { margin-top: 0; margin-bottom: 10px; color: #1a1a1a; font-size: 16px; }
.site-sidebar .widget a { color: #e35d25; font-weight: 600; text-decoration: none; }
.site-sidebar .widget a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .page-layout { flex-direction: column; }
  .site-sidebar { width: 100%; }
}
.site-sidebar {
  margin-top: 210px;
}

