/*bootstrap modal */
.modal-open .dropdown-menu {
    z-index: 2050;
}

.modal-open .dropdown.open {

}

.modal-open .popover {
    z-index: 2060;
}

.modal-open .tooltip {
    z-index: 2080;
}

.modal-backdrop {
    background-color: #000000;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1040;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop,.modal-backdrop.fade.in {
    opacity: 0.8;
}

.j2store-modal .modal {
    display: none;
    background-clip: padding-box;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 6px 6px 6px 6px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    margin:auto;
    overflow: auto;
    position: fixed;
    width: 90%;
    height:80%;
    z-index: 1050;
}

.j2store-modal .model.fade {
    top: -25%;
    transition: opacity 0.3s linear 0s, top 0.3s ease-out 0s;
}

.j2store-modal .model.hide {
    display: none !important;
}

.j2store-modal .model.in {
    top: 50%;
}

.j2store-modal .modal-header {
    border-bottom: 1px solid #EEEEEE;
    padding: 9px 15px;
}

.j2store-modal .modal-header .close {
    margin-top: 2px;
}

.j2store-modal .modal-header h3 {
    line-height: 30px;
    margin: 0;
}

.j2store-modal .modal-body {
    max-height: 80%;
    overflow-y: auto;
    padding: 15px;
    text-align: left;
}

.j2store-modal .modal-form {
    margin-bottom: 0;
}

.j2store-modal .modal-footer {
    /*    background-color: #F5F5F5;
    border-radius: 0 0 6px 6px;
    border-top: 1px solid #DDDDDD;
    box-shadow: 0 1px 0 #FFFFFF inset;
    margin-bottom: 0;
    padding: 14px 15px 15px;
    text-align: right; */

}

.j2store-modal .modal-footer:before,.j2store-modal .modal-footer:after {
    content: "";
    display: table;
    line-height: 0;
}

.j2store-modal .modal-footer:after {
    clear: both;
}

.j2store-modal .modal-footer .btn+.btn {
    margin-bottom: 0;
    margin-left: 5px;
}

.j2store-modal .modal-footer .btn-group .btn+.btn {
    margin-left: -1px;
}

/* common css */
.j2store-img-responsive {
    max-width: 100%;
    height: auto;
}

.j2store-left {
    float: left;
}

.j2store-right {
    float: right;
}

.j2store-remove {
    color: #ff0000;
}

.j2store .options .required {
    color: #FF0000;
    font-weight: bold;
}

.j2store_field_required {
    float: left;
    color: #ff0000;
    margin-right: 2px;
}

/* error & highlighs */
.j2error,div.j2error em.error,div.j2storeerror em.error,.payment_info input.error,.j2store label.error
    {
    color: #ff0000;
    font-style: italic;
}

div.j2error em.success,div.j2storeerror em.success,.j2store label.success
    {
    color: #17B500;
    font-style: italic;
}

.j2store input.error {
    border: 1px solid red;
}

.j2store input.valid {
    border: 1px solid #17B500;
}

/* cart and checkout */
.cart-thumb-image img {
    width: 80px;
    float: left;
    margin-right: 10px;
}

table.j2store-cart-table td.cart-line-subtotal,table.cart-footer td {
    text-align: right;
}

.j2store-cart-buttons {
    display: block;
    width: 100%;
}

.j2store-cart-table .remove-icon {
    margin-bottom: 9px;
}

.j2store-cart-buttons .buttons-left {
    display: block;
    float: left;
}

.j2store-cart-buttons .buttons-right {
    display: block;
    float: right;
}

.j2store-cart-shipping {
    display: block;
    clear: both;
    margin-top: 20px;
}

.cart-estimator-discount-block {
    display: block;
    width: 100%;
    clear: both;
    margin-top: 10px;
}

.j2store .have-account {
    display: block;
    width: 100%;
}

.j2store .j2store-checkout-login-form {
    padding: 15px 5px;
    border: 1px solid #ccc;
}

.j2store-order-action-icons a {
    font-size: 16px;
    padding: 10px 10px;
}

.j2store .checkout-heading {
    background: none repeat scroll 0 0 #F8F8F8;
    border: 1px solid #DBDEE1;
    color: #555555;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 8px;
}

.j2store .checkout-heading a {
    float: right;
    font-weight: normal;
    margin-top: 1px;
    text-decoration: none;
    cursor: pointer;
}

.j2store .checkout-content {
    display: none;
    overflow-x:hidden;
    overflow-y:auto;
    padding: 0 0 15px;
}

.j2store .checkout-content .buttons {
    clear: both;
}

.j2store.checkout tr,.j2store.checkout td {
    padding-right: 10px;
}

.j2store.checkout label {
    margin: 0px;
}

.j2store #billing-existing select[size],.j2store #shipping-existing select[size]
    {
    height: auto;
}

#onCheckoutShipping_wrapper label {
    display: inline;
}

#j2store-checkout-content .shipping-make-same>label {
    display: inline;
}

#j2store-checkout-content #checkbox_tos>label {
    display: inline;
}

.j2store-product-info label {
    display: inline;
}

#j2store-cart-shipping input[type="radio"] {
    float: left;
    margin-right: 5px;
}

#j2store-cart-shipping label {
    display: block !important;
}

.j2store .cart-total td {
    text-align: right;
}

/** product common **/
.j2store-addtocart-form {
    margin-top: 10px;
}

ul.additional-image-list {
    margin: 10px;
}

.additional-image-list li {
    list-style-type: none;
    display: inline;
}

.blog .j2store-mainimage img {
    width: 98%;
}

.blog .additional-image-list img {
    width: 120px;
}

.blog .j2store-mainimage .zoom,.item-page .j2store-mainimage .zoom {
    display: inline-block;
}

.blog .j2store-mainimage .nozoom,.item-page .j2store-mainimage .nozoom {
    display: block;
    padding-bottom: 5px;
}


.item-page .j2store-product-images {
    display: inline;
    width: 50%;
}

.item-page .j2store-mainimage img {
    width: 400px;
}

.additional-image-list img, .j2store-product-additional-images img {
    width: 80px !important;
    height: 80px !important; /* Force le carré */
    object-fit: contain !important; /* Garde les proportions sans déformer */
    background: #ffffff !important; /* Fond neutre pour les bords */
    border: 1px solid #eee !important;
    padding: 2px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border-radius: 4px;
}

.lg-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.additional-image-list img:hover, .j2store-product-additional-images img:hover {
    border-color: #2c3e50 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    opacity: 0.8 !important;
}

.item-page .j2store-product {
    display: inline;
}

.item-page .sale-price {
    font-size: 16px;
    font-weight: bold;
    line-weight: 25px;
}

.product-qty input[type="text"],.product-qty input[type="number"] {
    display: inline;
    height: 100%;
    padding: 5px !important;
    width: 40px !important;
    text-align: center;
    margin: 0px;
}

.product-qty,.j2store-add-to-cart {
    display: inline;
}

.j2store-add-to-cart {
    margin-left: 5px;
    display: inline;
}

.j2store-addtocart-form .options label {
    display: inline;
}

.j2store-product-list select {
    width: auto;
}

.j2store-product-filters {
    display: block;
    margin-bottom: 20px;
}

h4.product-filter-heading {
    display: inline;
}

#j2store-product-loading {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: url('../images/loading.gif') no-repeat center center;
}

/* some basic styles to product layout pages */
.price-sku-brand-container {
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    margin: 0 0 25px;
    padding: 15px 0 0;
}

.base-price,.sale-price {
    line-height: 26px;
}

.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price-container .strike {
    text-decoration: line-through;
    color: #ff0000;
    font-size: 0.8em;
}

.product-price-container .sale-price {
    font-size: 1.4em;
    font-weight: bold;
}

.discount-percentage {
    color: #81c02e;
}

.j2store-thumbnail-image,
.j2store-mainimage {
    position: relative;
    display: block;
}

.j2store-discount-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: #ffe6e6;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1em;
    padding: 1px 8px;
    border-radius: 8px;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.j2store-produitinfo-badge {
    position: absolute;
    top: -9px;
    right: -4px;
    background-color: #ef3434;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.8em;
    padding: 1px 8px;
    border-radius: 20px;
    line-height: 1.4;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.j2store-produitinfo-badge-rouge  { background-color: #ef3434d6; color: #ffffff; }
.j2store-produitinfo-badge-bleu   { background-color: #2980b9; color: #ffffff; }
.j2store-produitinfo-badge-noir   { background-color: #2c3e50; color: #ffffff; }
.j2store-produitinfo-badge-vert   { background-color: #22c55eb8; color: #ffffff; }
.j2store-produitinfo-badge-orange { background-color: #e67e22; color: #ffffff; }
.j2store-produitinfo-badge-violet { background-color: #8e44ad; color: #ffffff; }

.j2store-product-images {
    position: relative;
    padding: 0px;
}
.j2store-category-badge {
    position: absolute;
    top: -9px;
    left: -4px;
    background-color: rgba(255, 255, 255, 0.88);
    color: #475569;
    font-size: 0.75em;
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 20px;
    line-height: 1.4;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Bandeau rupture de stock — liste produits */
.j2store-oos-banner {
    position: absolute;
    bottom: 33%;
    left: 0;
    right: 0;
    background: #1c1c1c8c;
    color: #fff;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    padding: 5px 0;
    pointer-events: none;
    z-index: 10;
    font-family: 'Abel', sans-serif;
    letter-spacing: 0.3px;
}
.j2store-product-images.j2store-oos img {
    /*filter: grayscale(60%);*/
    filter: brightness(0.8);
}

.j2store-product-subtitle {
    font-size: 0.85em;
    color: #64748b;
    line-height: 1.5rem;
    margin: 0;
}

.product-stock-container .instock {
    color: #85AD74;
    font-size: 16px;
    margin-top: 5px;
}

.j2store-product-main-image {
    margin-bottom: 10px;
}

/* image zoom */
.j2store-single-product .zoomImg:hover {
    cursor: crosshair;
}

.j2store-single-product .zoom {
    display: block;
    position: relative;
}

.j2store-single-product .zoom img::selection {
    background-color: transparent;
}

/* currency module css */
.j2store .currency_symbol {
    margin-right: 2px;
}

#j2store_currency a {
    border: 1px solid #ccc;
    display: inline-block;
    margin-bottom: 2px;
    margin-right: 2px;
    padding: 2px 4px;
    text-decoration: none;
    cursor: pointer;
}

/* price slider */
#j2store-slider-range .ui-widget {
    background-color: #000000;
    opacity: 2px;
    width: 150px;
}

#j2store-slider-range .ui-slider-range {
    background-color: #a46497;
    border: 0 none;
    border-radius: 1em;
    display: block;
    font-size: 0.7em;
    position: absolute;
    z-index: 1;
}

#j2store-slider-range .ui-slider-horizontal .ui-slider-range {
    height: 100%;
    top: 0;
}

#j2store-slider-range.ui-slider {
    border-radius: 0px;
    background: #DEC3D9;
    border: none;
    height: 5px;
    width: 150px;
}

#j2store-slider-range.ui-slider .ui-slider-range {
    height: 5px;
    top: -1px;
    transition: all 0.2s ease-out;
}

#j2store-slider-range  .ui-slider-handle {
    background: #a46497;
    border-radius: 1em;
    *cursor: ew-resize;
    height: 1em;
    outline: 0 none;
    position: absolute;
    top: -0.3em;
    width: 1em;
    z-index: 2;
    border: none;
}

/* my profile */
.j2store-myprofile-address-list li {
    list-style-type: none;
}

.table-responsive {
    overflow-x: auto;
}

.product-compare {
    padding: 5px 2px;
}

.options input[type="radio"],
.options input[type="checkbox"],
.options select {
    display: inline-block;
}

.options .wait {
display: inline-block;
position:relative;
line-height: 1px;
}

.cart-footer th,
.emailtemplate-table-footer th,
.cart-footer td,
.emailtemplate-table-footer td
{
    text-align: right !important;
}

/*css perso*/
/**Place le champ coupon à droite dans le panier*/
.coupon{
    text-align: right;
}

input[name="coupon"] {
  display: inline-block;
}

/* =====================================================
   Mise en page cartes produits — liste J2Store
   ===================================================== */

/* Fond gris clair derrière la grille */
.j2store-product-list.bs3 {
    background-color: #f8fafc;
    padding: 8px 0;
}

/* Flexbox pour aligner les cartes sur la même hauteur + réduction des gouttières */
.j2store-products-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -6px;
    margin-right: -6px;
}

/* Chaque colonne Bootstrap prend toute la hauteur — gouttières réduites */
.j2store-products-row > [class*="col-"],
.crosssell-product-row > [class*="col-"],
.upsell-product-row > [class*="col-"] {
    display: flex;
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px;
}

/* Carte produit — padding uniforme sur tous les bords */
.j2store-single-product.multiple {
    display: flex;
    flex-direction: column;
    /*width: 100%;*/
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 15px 10px 10px 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.j2store-single-product.multiple:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

/* Image — annule le padding hérité de css_du_blog.css, coins arrondis */
.j2store-single-product.multiple .j2store-thumbnail-image {
    padding: 0;
}

.j2store-single-product.multiple .j2store-thumbnail-image img {
    width: 100%;
    /*height: 220px;*/
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Formulaire "ajouter au panier" collé en bas */
.j2store-single-product.multiple .j2store-addtocart-form {
    margin-top: auto;
    padding-top: 6px;
}

/* =====================================================
   Responsive smartphones (≤ 767 px)
   ===================================================== */
@media (max-width: 767px) {
    .j2store-products-row {
        margin-left: -4px;
        margin-right: -4px;
    }

    .j2store-products-row > [class*="col-"],
    .crosssell-product-row > [class*="col-"],
    .upsell-product-row > [class*="col-"] {
        width: 100%;
        padding-left: 4px;
        padding-right: 4px;
        margin-bottom: 8px;
    }

    .j2store-single-product.multiple {
        padding: 13px 6px 6px 6px;
        margin: 6px;
    }

    .j2store-single-product.multiple .j2store-thumbnail-image img {
        /*height: 180px;*/
    }

    /* Forcer l'affichage des vignettes additionnelles sur smartphone */
    .j2store-product-additional-images {
        display: block !important;
    }
}

/* =====================================================
   CSS J2Store migré depuis css_du_blog.css
   ===================================================== */

/* --- Formulaire de login J2Store (page commande) --- */
#j2storeOrderLoginForm {
  display: inline-grid;
}
.login-espace-client .span5 {
  text-align: center;
}
#j2storeOrderLoginForm label {
  text-align: left;
}
#j2storeOrderLoginForm input {
  width: 300px;
}
#j2storeOrderLoginForm input[type="checkbox"] {
  width: 15px;
  float: right;
}

/* --- Cadres login et création de compte --- */
.Cadre_login_commande {
    display: grid;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    max-width: 420px;
    padding: 15px;
    margin: auto;
}
.Cadre_creation_commande {
    border: 1px solid #eeeeee;
    border-radius: 4px;
    padding: 5px;
    margin: 5px auto 5px auto;
    max-width: 900px;
}
.Cadre_creation_commande .inputbox {
  width: 100%;
}
.Cadre_creation_commande input#email.inputbox {
  width: 100%;
}
.Cadre_creation_commande input[type="radio"] {
  margin: 0px 10px 0 10px;
  display: inline;
}

/* --- Barre de recherche produit --- */
.recherche-produit {
  background-color: #f8fafc;
  padding: 2%;
}
#j2store-search-product-btn {
  padding: 8px 12px !important;
}
#mod_j2store_search-325 {
    width: 94% !important;
    margin-left: 1% !important;
    display: inline !important;
}
@media screen and (max-width: 1000px) {
  #mod_j2store_search-325 {
      width: 90% !important;
      display: inline !important;
  }
}
@media screen and (max-width: 600px) {
  #mod_j2store_search-325 {
      width: 80% !important;
      display: inline !important;
  }
}

/* --- Liste des produits --- */
.product-short-description {
    font-size: 0.85em;
    color: #64748b;
    line-height: 1.5rem;
}
.product-title {
    font-size: 1.2em;
    line-height: 20px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 2px;
}
.product-title a {
    color: #2c3e50;
}
.product-title a:hover {
    color: #2c3e50;
    text-decoration: none;
}
.product-price-container .sale-price {
    font-weight: normal !important;
    font-family: 'Abel', sans-serif !important;
}
input[name="search"] {
   width: 100%;
}
.j2store-product-list select {
    margin-top: 5px;
}
#productFilters {
    padding-bottom: 8px;
}
.j2store-product-search-input {
    margin-bottom: 5px;
    width: 100% !important; 
    max-width: 100%;
}
.j2store-add-to-cart-main {
}
#j2store_category {
    line-height: 12px;
}

/* --- Page produit --- */
.system-pagebreak {
    margin-top: 0px;
    margin-bottom: 0px;
}
.j2store-product-content-field-label {
    display: none;
    visibility: hidden;
}
.detail .price-sku-brand-container .product-sku .sku-text,
.detail .price-sku-brand-container .product-sku .sku {
    font-weight: normal !important;
}
.detail .price-sku-brand-container .product-price-container .sale-price {
    padding-top: 0px !important;
}
.product-stock-container .instock {
    font-size: 17px;
}

/* --- Images produit (liste et page) --- */
.j2store-product-main-image,
.j2store-thumbnail-image {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    z-index: 10;
    visibility: visible;
}

/* --- Étiquettes stock et réduction --- */
.outofstock {
    margin-right: 6px;
    margin-top: 6px;
    border-radius: 2px;
    display: inline-block;
    font-family: sans-serif;
    font-weight: bold;
    height: 23px;
    line-height: 20px;
    padding: 0.1em 0.3em 0.1em 0.5em;
    text-transform: uppercase;
    width: max-content;
    background-color: rgb(222, 67, 67);
    font-size: 16px;
    color: rgb(255, 255, 255);
}
.instock {
    margin-right: 6px;
    margin-top: 6px;
    border-radius: 2px;
    font-family: sans-serif;
    font-weight: bold;
    height: 23px;
    line-height: 20px;
    padding: 0.1em 0em 0.1em 0em;
    text-transform: uppercase;
    width: max-content;
    background-color: rgb(222, 67, 67);
    font-size: 16px;
    color: rgb(255, 255, 255) !important;
}
.discount-percentage {
    margin-right: 6px;
    margin-top: 6px;
    border-radius: 2px;
    display: inline-block;
    font-family: sans-serif;
    font-weight: bold;
    height: 23px;
    line-height: 20px;
    padding: 0.1em 0.3em 0.1em 0.5em;
    text-transform: uppercase;
    width: max-content;
    background-color: rgb(102, 220, 136);
    font-size: 16px;
    color: rgb(255, 255, 255) !important;
}
.Product-price-range {
    font-size: 0.75em;
    color: #2c3e50;
    line-height: 0.75em;
    padding-top: 10px;
}

/* --- Tableau panier et liste des commandes --- */
.j2store-cart-table td.cart-line-quantity {
  text-align: center;
}
.j2store-cart-table td.cart-line-tax {
  text-align: right;
}
.j2store-cart-table td.cart-line-subtotal {
  text-align: right;
}
.j2store-cart-table > thead > tr > th {
  text-align: center;
}
.j2store-table-list-order > thead > tr > th {
  text-align: center;
}
.j2store-table-list-order td.j2store-order-total {
  text-align: right;
}
.j2store-table-list-order td.j2store-order-status {
  text-align: center;
}

/* --- Filtres produits --- */
.j2store-productfilter-label,
.j2store-product-vendor-label,
.j2store-product-brand-label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
}
.j2store-product-filters .control-group {
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}
.productfilters-list,
.category-filters,
.j2store-product-filters {
  margin-bottom: 10px;
  background-color: #ffffff;
  border: 1px solid #e4e9ef;
  border-radius: 4px;
  padding: 10px 12px;
}

/* --- Paiement partiel --- */
.j2store_partial_payment_option_ul li {
  display: flex;
  align-items: center;
}
.j2store_partial_payment_option_ul li input {
  margin: 4px 4px 5px 6px;
}

/* =====================================================
   Améliorations UX liste produits
   ===================================================== */

/* Compteur de résultats */
.j2store-results-count {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    padding: 4px 0;
    border-bottom: 1px solid #e8ecef;
}

/* Étoiles DJ-Reviews — réduire marges dans les cartes */
.j2store-single-product.multiple .djrv_rating {
    margin: 2px 0;
}

/* Prix de vente plus visible dans les cartes */
.j2store-single-product.multiple .product-price-container .sale-price {
    font-size: 1.1em !important;
    font-weight: bold !important;
    color: #2c3e50;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* Bouton "Ajouter au panier" pleine largeur */
.j2store-single-product.multiple .j2store-cart-button {
    width: 100%;
    display: block;
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-family: 'Abel', sans-serif;
    padding: 9px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    margin-top: 6px;
}
.j2store-single-product.multiple .j2store-cart-button:hover,
.j2store-single-product.multiple .j2store-cart-button:focus {
    background-color: #1a252f;
    border-color: #1a252f;
    color: #fff;
}

/* Image pleine largeur (override display:flex hérité) */
.j2store-single-product.multiple .j2store-thumbnail-image {
    overflow: hidden;
    padding: 0 !important;
    display: block;
}
.j2store-single-product.multiple .j2store-thumbnail-image > a {
    display: block;
    width: 100%;
}
/* Card cliquable */
.j2store-single-product.multiple[data-href] {
    cursor: pointer;
}
/* ============================================================
   Sidebar filtres repliable
   ============================================================ */
#j2store-filter-toggle-btn {
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    margin-bottom: 8px;
    display: block;
    transition: background-color 0.2s ease;
}
#j2store-filter-toggle-btn:hover {
    background: #1a252f;
}

/* ============================================================
   Filtres sidebar — badges, actions globales
   ============================================================ */
.j2store-filter-badge {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1;
    padding: 2px 7px;
    margin-left: 4px;
    vertical-align: middle;
    font-weight: bold;
}
.j2store-filter-global-actions {
    padding: 8px 0 4px;
    border-top: 1px solid #e4e9ef;
    margin-top: 6px;
    display: flex;
    gap: 6px;
}
.j2store-filter-global-actions .btn {
    flex: 1;
}


/* Filtre prix : champs manuels min/max */
.j2store-price-inputs {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 10px;
}
.j2store-price-input-group {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}
.j2store-price-text { text-align: center; font-size: 13px; }
.j2store-price-separator { flex: 0 0 auto; color: #999; font-size: 14px; padding: 0 8px; align-self: center; }
#price-filter-icon-plus  { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding-bottom: 4px; }
#price-filter-icon-plus h4 { margin: 0; flex: 1; }

/* Arbre catégories : indentation CSS */
.j2store-category-list .j2store-cat-level-1 { font-weight: 600; }
.j2store-category-list .j2store-cat-level-2 { padding-left: 14px !important; }
.j2store-category-list .j2store-cat-level-3 { padding-left: 28px !important; }
.j2store-category-list .j2store-cat-level-4 { padding-left: 42px !important; }
.j2store-cat-branch { color: #aaa; font-size: 12px; margin-right: 3px; }

/* Catégorie active dans le filtre sidebar — fond jaune du thème */
.j2store-category-list li.active > a,
.j2store-category-list li.active > a:hover {
    background-color: #fff983 !important;
    color: #222 !important;
    font-weight: 700;
}
.j2store-category-list li.active > a .j2store-cat-branch { color: #555; }
.j2store-category-list li.active > a::after { content: ' ✓'; font-size: 10px; opacity: 0.7; }

/* --- Stabilisation de l'image principale (fiche produit) - Uniquement Desktop/Tablette --- */
@media (min-width: 768px) {
    .j2store-mainimage {
        height: 400px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #fdfdfd !important;
        border: 1px solid #f2f2f2;
        border-radius: 4px;
        margin-bottom: 25px;
        overflow: hidden;
        position: relative;
    }

    .j2store-mainimage img {
        max-height: 100% !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .j2store-mainimage .main-image-fancy {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* --- Optimisation des miniatures (vignettes) pour éviter l'empilement vertical --- */
.additional-image-list {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    gap: 8px;
    -webkit-overflow-scrolling: touch; 
}

/* Style spécifique pour le carrousel de vignettes Swiper */
.j2store-product-additional-images-swiper-wrapper .swiper {
    overflow: hidden !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE/Edge */
}

.j2store-product-additional-images-swiper-wrapper .swiper::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
}

/* On désactive le scroll natif si Swiper est actif sur le wrapper */
.swiper-wrapper.additional-image-list {
    overflow-x: visible !important;
    gap: 0 !important;
    display: flex !important;
    width: auto !important;
}

/* Positionnement des petites flèches du ruban */
.j2store-product-additional-images-swiper-wrapper .swiper-button-next,
.j2store-product-additional-images-swiper-wrapper .swiper-button-prev {
    color: #2c3e50 !important;
    background: rgba(255, 255, 255, 0.7);
    width: 25px !important;
    height: 25px !important;
    border-radius: 50%;
    top: 50%;
    margin-top: -12px;
}
.j2store-product-additional-images-swiper-wrapper .swiper-button-next::after,
.j2store-product-additional-images-swiper-wrapper .swiper-button-prev::after {
    font-size: 12px !important;
    font-weight: bold;
}

.additional-image-list li {
    flex: 0 0 auto !important;
}

.additional-image-list::-webkit-scrollbar {
    height: 4px;
}

.additional-image-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
/*Etiquette "par mois" en dessous du prix des produits subscriptions */
.subscriptionproducts{
    display: flex;
    flex-wrap: wrap;
    line-height: 0.5em;
}
.j2store-subscription_duration_text{
    font-size: 0.75em;
    color: #64748b;
}

/*-----------------------------------------------------*/
/*deplace le filtre de trie à droite de l'écran*/
/*-----------------------------------------------------*/
/*#select, select.form-control, select.inputbox, select.input {*/
#j2store_sortby{
    float: right;
}
/*---------------------------------------------------------------------------*/
/*Css spécial menu Faire un don
/*---------------------------------------------------------------------------*/
/*Place le symbole € à gauche du montant */
.j2store-donation-option{
    display: inline !important;
}
/*Masque le suivi du financement sur la page produit */
.product-sdesc #Suivi_financement {
  display : none;
}
/*---------------------------------------------------------------------------*/
/* Routine stats — cards produit (liste, cross-sells, up-sells)              */
/*---------------------------------------------------------------------------*/
.routine-stats-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85em;
    color: #64748b;
    padding-top: 5px;
}
.routine-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
}
.routine-stat i {
    color: #64748b;
}
