/* Start custom CSS for page-settings *//* =========================================================
   CATEGORIE CASH EXPERT
   - titres masqués
   - sous-catégories compactes
   - barre de tri modernisée
   - rendu produit flat / clean
   - image centrée
   - titre gras sur 2 lignes
   - prix vert
   - badge "Nouveau" blanc sur fond noir
   - suppression des éléments inutiles
   - wishlist coeur en haut à droite
========================================================= */

/* =========================
   MASQUER LES TITRES
========================= */
body#category h1,
body#category .h1,
body#category .page-title,
body#category #js-product-list-header h1,
body#category #js-product-list-header .h1,
body#category .block-category h1,
body#category .block-category .h1,
body#category .subcategories h2,
body#category #subcategories h2,
body#category .subcategories-title,
body#category .subcategory-heading,
body#category .block-category + .subcategories h2,
body#category .block-category + #subcategories h2{
  display:none !important;
}

/* =========================
   SOUS-CATEGORIES
========================= */
body#category .subcategories,
body#category #subcategories,
body#category .block-category + .subcategories{
  margin:10px auto 18px !important;
  padding:0 !important;
}

body#category .subcategories ul,
body#category #subcategories ul{
  list-style:none !important;
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  gap:8px !important;
  margin:0 !important;
  padding:0 !important;
}

body#category .subcategories li,
body#category #subcategories li{
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
  min-width:auto !important;
  flex:0 0 auto !important;
}

body#category .subcategories li .subcategory-image,
body#category #subcategories li .subcategory-image,
body#category .subcategories li .cat_desc,
body#category #subcategories li .cat_desc,
body#category .subcategories li img,
body#category #subcategories li img{
  display:none !important;
}

body#category .subcategories li a,
body#category #subcategories li a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:38px !important;
  padding:0 14px !important;
  border-radius:12px !important;
  background:#ffffff !important;
  border:1px solid #d8e0ea !important;
  box-shadow:0 2px 8px rgba(17,24,39,.04) !important;
  color:#111827 !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1 !important;
  text-align:center !important;
  text-decoration:none !important;
  letter-spacing:.01em !important;
  white-space:nowrap !important;
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease !important;
}

body#category .subcategories li a:hover,
body#category .subcategories li a:focus,
body#category #subcategories li a:hover,
body#category #subcategories li a:focus,
body#category .subcategories li.current a,
body#category .subcategories li.current-categorie a,
body#category #subcategories li.current a,
body#category #subcategories li.current-categorie a{
  background:#0aa132 !important;
  border-color:#0aa132 !important;
  color:#ffffff !important;
}

body#category .subcategories li a:hover,
body#category .subcategories li a:focus,
body#category #subcategories li a:hover,
body#category #subcategories li a:focus{
  transform:translateY(-1px) !important;
  box-shadow:0 6px 14px rgba(10,161,50,.16) !important;
}

/* =========================
   BARRE DE TRI / OUTILS
========================= */
body#category #js-product-list-top,
body#category .products-selection{
  background:#ffffff !important;
  border:1px solid #dde5ee !important;
  border-radius:16px !important;
  box-shadow:0 4px 14px rgba(17,24,39,.04) !important;
  padding:10px 14px !important;
  margin:18px 0 !important;
}

body#category #js-product-list-top .row,
body#category .products-selection .row{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
}

body#category .products-selection .display,
body#category #js-product-list-top .display{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 !important;
}

body#category .products-selection .display li,
body#category #js-product-list-top .display li{
  margin:0 !important;
}

body#category .products-selection .display a,
body#category #js-product-list-top .display a{
  width:38px !important;
  height:38px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid #d8e0ea !important;
  border-radius:10px !important;
  background:#ffffff !important;
  color:#111827 !important;
  transition:all .2s ease !important;
}

body#category .products-selection .display a:hover,
body#category #js-product-list-top .display a:hover,
body#category .products-selection .display .selected a,
body#category #js-product-list-top .display .selected a{
  background:#0aa132 !important;
  border-color:#0aa132 !important;
  color:#ffffff !important;
}

body#category .products-sort-order,
body#category .sort-by-row,
body#category .products-selection .sort-by-row,
body#category #js-product-list-top .products-sort-order,
body#category .products-selection > .row > div:last-child,
body#category #js-product-list-top > .row > div:last-child{
  margin-left:auto !important;
}

body#category .products-selection .sort-by,
body#category #js-product-list-top .sort-by{
  color:#5b6472 !important;
  font-size:14px !important;
  font-weight:700 !important;
  margin-right:10px !important;
  white-space:nowrap !important;
}

body#category .products-selection .select-title,
body#category #js-product-list-top .select-title,
body#category .products-selection .dropdown-toggle,
body#category #js-product-list-top .dropdown-toggle,
body#category .products-selection select,
body#category #js-product-list-top select{
  min-height:42px !important;
  border-radius:12px !important;
  border:1px solid #d8e0ea !important;
  background:#f8fafc !important;
  color:#111827 !important;
  font-size:14px !important;
  font-weight:700 !important;
  box-shadow:none !important;
}

body#category .products-selection .dropdown-toggle,
body#category #js-product-list-top .dropdown-toggle{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:0 14px !important;
  min-width:220px !important;
}

body#category .products-selection .dropdown-menu,
body#category #js-product-list-top .dropdown-menu{
  border:1px solid #dde5ee !important;
  border-radius:12px !important;
  box-shadow:0 10px 24px rgba(17,24,39,.08) !important;
  overflow:hidden !important;
}

body#category .products-selection .dropdown-menu a,
body#category #js-product-list-top .dropdown-menu a{
  font-size:14px !important;
  font-weight:600 !important;
  color:#111827 !important;
  padding:10px 14px !important;
}

body#category .products-selection .dropdown-menu a:hover,
body#category #js-product-list-top .dropdown-menu a:hover{
  background:#f0fdf4 !important;
  color:#0aa132 !important;
}

/* =========================
   PRODUITS : STRUCTURE GENERALE
========================= */
body#category .products{
  display:flex !important;
  flex-wrap:wrap !important;
}

body#category .products .product-miniature,
body#category #js-product-list .products .product-miniature,
body#category #js-product-list .products .js-product-miniature,
body#category #js-product-list .products article.product-miniature{
  position:relative !important;
  margin-bottom:20px !important;
  padding:0 8px !important;
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  text-align:center !important;
}

/* =========================
   KILL TOTAL DES CADRES NATIFS
========================= */
body#category #js-product-list .products .thumbnail-container,
body#category #js-product-list .products .product-miniature .thumbnail-container,
body#category #js-product-list .products .product-miniature .product-miniature-container,
body#category #js-product-list .products .product-thumbnail,
body#category #js-product-list .products .product-thumbnail a,
body#category #js-product-list .products .product-thumbnail picture,
body#category #js-product-list .products .product-thumbnail .product-image,
body#category #js-product-list .products .product-thumbnail .img_block,
body#category #js-product-list .products .product-thumbnail .image,
body#category #js-product-list .products .product-thumbnail .product-cover,
body#category #js-product-list .products .product-thumbnail .product-cover-image,
body#category #js-product-list .products .thumbnail-top,
body#category #js-product-list .products .product-miniature .thumbnail-top,
body#category #js-product-list .products .product-description,
body#category #js-product-list .products .product-meta,
body#category #js-product-list .products .product-container,
body#category #js-product-list .products .product-description-short,
body#category .products [class*="thumb"],
body#category .products [class*="image"],
body#category .products [class*="cover"]{
  background:transparent !important;
  border:none !important;
  outline:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

body#category #js-product-list .products .thumbnail-container::before,
body#category #js-product-list .products .thumbnail-container::after,
body#category #js-product-list .products .product-thumbnail::before,
body#category #js-product-list .products .product-thumbnail::after,
body#category #js-product-list .products .product-thumbnail a::before,
body#category #js-product-list .products .product-thumbnail a::after,
body#category #js-product-list .products .product-thumbnail picture::before,
body#category #js-product-list .products .product-thumbnail picture::after,
body#category #js-product-list .products .product-thumbnail .product-image::before,
body#category #js-product-list .products .product-thumbnail .product-image::after,
body#category #js-product-list .products .thumbnail-top::before,
body#category #js-product-list .products .thumbnail-top::after,
body#category #js-product-list .products .product-description::before,
body#category #js-product-list .products .product-description::after,
body#category #js-product-list .products .product-meta::before,
body#category #js-product-list .products .product-meta::after,
body#category #js-product-list .products article.product-miniature::before,
body#category #js-product-list .products article.product-miniature::after,
body#category #js-product-list .products .product-miniature::before,
body#category #js-product-list .products .product-miniature::after{
  content:none !important;
  display:none !important;
  background:none !important;
  border:none !important;
  box-shadow:none !important;
}

/* =========================
   IMAGE
========================= */
body#category #js-product-list .products .product-thumbnail{
  height:220px !important;
  min-height:220px !important;
  margin:0 0 14px !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  overflow:hidden !important;
}

body#category #js-product-list .products .product-thumbnail a,
body#category #js-product-list .products .product-thumbnail picture,
body#category #js-product-list .products .product-thumbnail .product-image{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
}

body#category #js-product-list .products .product-thumbnail img{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:188px !important;
  margin:0 auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
}

/* =========================
   BADGE NOUVEAU
========================= */
body#category .product-flags{
  position:absolute !important;
  top:16px !important;
  left:16px !important;
  z-index:20 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

body#category .product-flags li,
body#category .product-flags .product-flag{
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

body#category .product-flag.new,
body#category .product-flags .new,
body#category .product-flags li.new,
body#category .product-flags li.product-flag.new{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#111111 !important;
  color:#ffffff !important;
  border:none !important;
  border-radius:8px !important;
  padding:7px 12px !important;
  font-size:11px !important;
  font-weight:800 !important;
  line-height:1 !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  box-shadow:none !important;
}

body#category .product-flag.new a,
body#category .product-flags .new a,
body#category .product-flags li.new a,
body#category .product-flags li.product-flag.new a{
  color:#ffffff !important;
}

body#category .product-flags .product-flag:not(.new),
body#category .product-flags li:not(.new){
  display:none !important;
}

/* =========================
   TITRE
========================= */
body#category .products .product-title,
body#category .products h3.product-title,
body#category .products .h3.product-title{
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  overflow:hidden !important;
  min-height:54px !important;
  max-height:54px !important;
  margin:0 0 10px !important;
  padding:0 !important;
  color:#111111 !important;
  font-size:14px !important;
  font-weight:900 !important;
  line-height:1.35 !important;
  text-align:center !important;
  text-transform:none !important;
  letter-spacing:0 !important;
}

body#category .products .product-title a,
body#category .products h3.product-title a,
body#category .products .h3.product-title a{
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  overflow:hidden !important;
  color:inherit !important;
  text-decoration:none !important;
  font-weight:900 !important;
  line-height:1.35 !important;
  text-align:center !important;
  white-space:normal !important;
}

/* =========================
   PRIX
========================= */
body#category .product-price-and-shipping{
  display:block !important;
  text-align:center !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

body#category .product-price-and-shipping .price,
body#category .product-price-and-shipping .current-price,
body#category .product-price-and-shipping [itemprop="price"]{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:#18a34a !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.2 !important;
  text-align:center !important;
}

body#category .regular-price,
body#category .discount-percentage,
body#category .product-discount,
body#category .product-price-and-shipping .sr-only,
body#category .product-price-and-shipping .price-label,
body#category .price-from,
body#category .from,
body#category .products .product-price-and-shipping .before-price,
body#category .products .product-price-and-shipping .starting-at,
body#category .products .product-price-and-shipping .starting-price{
  display:none !important;
}

body#category .product-price-and-shipping::before,
body#category .product-price-and-shipping::after,
body#category .product-price-and-shipping .price::before,
body#category .product-price-and-shipping .price::after{
  content:none !important;
  display:none !important;
}

/* =========================
   SUPPRIMER PANIER / QUICK VIEW / RESIDUS
========================= */
body#category .products .highlighted-informations,
body#category .products .product-miniature .highlighted-informations,
body#category .products .thumbnail-container .highlighted-informations,
body#category .products .product-thumbnail .highlighted-informations,
body#category .products .ajax_add_to_cart_button,
body#category .products .add-to-cart,
body#category .products .quick-view,
body#category .products .functional-buttons,
body#category .products .button-container,
body#category .products .product-add-to-cart,
body#category .products .cart-button,
body#category .products .lnk_view,
body#category .products .lnk_view_btn,
body#category .products .view_button,
body#category .products .product-actions,
body#category .products .variant-links,
body#category .products .comments_note,
body#category .products .wishlist,
body#category .products .compare,
body#category .products .product-list-reviews,
body#category .products .availability,
body#category .products .hook-reviews,
body#category .products .product-description .short-desc,
body#category .products .product-description .product-reference,
body#category .products .pack,
body#category .products .color-list-container{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

body#category .products .fa-shopping-cart,
body#category .products .icon-cart,
body#category .products .material-icons.shopping-cart,
body#category .products i[class*="cart"],
body#category .products span[class*="cart"]{
  display:none !important;
}

/* =========================
   WISHLIST
========================= */
body#category .product-miniature .wishlist-button-add,
body#category .product-miniature .btn-product-wishlist{
  position:absolute !important;
  top:10px !important;
  right:10px !important;
  width:34px !important;
  height:34px !important;
  border-radius:50% !important;
  background:#ffffff !important;
  box-shadow:0 4px 10px rgba(0,0,0,.08) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  z-index:30 !important;
  border:none !important;
}

body#category .product-miniature .wishlist-button-add i,
body#category .product-miniature .btn-product-wishlist i{
  font-size:16px !important;
  color:#111 !important;
}

body#category .product-miniature .wishlist-button-add:hover,
body#category .product-miniature .btn-product-wishlist:hover{
  background:#0aa132 !important;
}

body#category .product-miniature .wishlist-button-add:hover i,
body#category .product-miniature .btn-product-wishlist:hover i{
  color:#fff !important;
}

/* =========================
   CORRECTION SANS PRODUITS
========================= */
body#category .js-product-list-top:empty,
body#category #js-product-list-top:empty,
body#category .products-selection:empty{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  box-shadow:none !important;
}

body#category #js-product-list:has(.alert-warning) #js-product-list-top,
body#category #js-product-list:has(.products-not-found) #js-product-list-top,
body#category #js-product-list:has(.no-products) #js-product-list-top{
  display:none !important;
}

body#category .alert-warning,
body#category .notification-warning,
body#category .products-not-found,
body#category .no-products{
  margin-top:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

body#category .products:empty,
body#category #js-product-list .products:empty{
  display:none !important;
}

/* =========================
   TABLETTE / MOBILE
========================= */
@media (max-width:991px){
  body#category .subcategories li a,
  body#category #subcategories li a{
    min-height:36px !important;
    padding:0 12px !important;
    font-size:12px !important;
    border-radius:11px !important;
  }

  body#category #js-product-list-top,
  body#category .products-selection{
    padding:10px !important;
    border-radius:14px !important;
  }

  body#category .products-selection .dropdown-toggle,
  body#category #js-product-list-top .dropdown-toggle{
    min-width:180px !important;
  }

  body#category #js-product-list .products .product-thumbnail{
    height:190px !important;
    min-height:190px !important;
    margin-bottom:12px !important;
  }

  body#category #js-product-list .products .product-thumbnail img{
    max-height:158px !important;
  }

  body#category .products .product-title,
  body#category .products h3.product-title,
  body#category .products .h3.product-title{
    min-height:50px !important;
    max-height:50px !important;
    font-size:13px !important;
  }

  body#category .product-price-and-shipping .price,
  body#category .product-price-and-shipping .current-price,
  body#category .product-price-and-shipping [itemprop="price"]{
    font-size:17px !important;
  }
}

@media (max-width:575px){
  body#category .products-selection .sort-by,
  body#category #js-product-list-top .sort-by{
    font-size:13px !important;
  }

  body#category .products-selection .dropdown-toggle,
  body#category #js-product-list-top .dropdown-toggle{
    min-width:150px !important;
  }

  body#category .products .product-miniature{
    padding:0 6px !important;
  }

  body#category #js-product-list .products .product-thumbnail{
    height:160px !important;
    min-height:160px !important;
  }

  body#category #js-product-list .products .product-thumbnail img{
    max-height:132px !important;
  }

  body#category .products .product-title,
  body#category .products h3.product-title,
  body#category .products .h3.product-title{
    min-height:44px !important;
    max-height:44px !important;
    font-size:12px !important;
    line-height:1.35 !important;
    margin-bottom:8px !important;
  }

  body#category .product-price-and-shipping .price,
  body#category .product-price-and-shipping .current-price,
  body#category .product-price-and-shipping [itemprop="price"]{
    font-size:16px !important;
  }

  body#category .product-flags{
    top:12px !important;
    left:12px !important;
  }

  body#category .product-flag.new,
  body#category .product-flags .new,
  body#category .product-flags li.new,
  body#category .product-flags li.product-flag.new{
    padding:6px 10px !important;
    font-size:10px !important;
  }

  body#category .product-miniature .wishlist-button-add,
  body#category .product-miniature .btn-product-wishlist{
    top:8px !important;
    right:8px !important;
    width:30px !important;
    height:30px !important;
  }

  body#category .product-miniature .wishlist-button-add i,
  body#category .product-miniature .btn-product-wishlist i{
    font-size:14px !important;
  }
}
/* =========================================================
   SUPPRESSION DES PILLS DE SOUS-CATEGORIES QUI REVIENNENT
========================================================= */

/* bloc des sous-catégories en haut de la liste */
body#category #subcategories,
body#category .subcategories,
body#category .block-category + .subcategories,
body#category #subcategories ul,
body#category .subcategories ul,
body#category #subcategories li,
body#category .subcategories li{
  display:none !important;
}

/* sécurité : certains thèmes encapsulent ces pills dans d'autres wrappers */
body#category .subcategory-image,
body#category .subcategory-name,
body#category .subcategory-heading,
body#category .subcategory-list,
body#category .subcat,
body#category .sub-category,
body#category .category-sub-menu{
  display:none !important;
}

/* si le thème injecte le bloc juste avant la barre de tri */
body#category #js-product-list-top ~ #subcategories,
body#category #js-product-list-top ~ .subcategories,
body#category #js-product-list-top ~ div#subcategories,
body#category #js-product-list-top ~ div.subcategories{
  display:none !important;
}/* End custom CSS */