/* Compat structure PS 1.7 (markup classic) + styles LMD/Warehouse */

/* Empêche le chevauchement header / contenu */
#header {
  position: relative;
  z-index: 5003;
  clear: both;
}
#wrapper {
  clear: both;
  position: relative;
  z-index: 1;
}
/* Le padding vertical est géré par #columns (Warehouse) */
#wrapper > .container {
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}
#content-wrapper,
#main,
#content.page-home {
  position: relative;
  z-index: 1;
}

#header .header-nav,
#header .header-top {
  width: 100%;
}

.hidden-sm-down {
  display: block !important;
}
@media (max-width: 767px) {
  .hidden-sm-down {
    display: none !important;
  }
  .hidden-md-up {
    display: block !important;
  }
}
@media (min-width: 768px) {
  .hidden-md-up {
    display: none !important;
  }
}

/* ------------------------------------------------------------------
   Header desktop : alignement + ordre prod
   logo | contact | recherche | rappel | mon compte | panier
   ------------------------------------------------------------------ */
@media (min-width: 768px) {
  #desktop-header > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }
  #desktop-header > .row:before,
  #desktop-header > .row:after {
    display: none !important;
  }
  #desktop-header > .row > #header_logo {
    order: 1;
    float: none;
    flex: 0 0 auto;
  }
  #desktop-header > .row > .contactinfos {
    order: 2;
    float: none;
    flex: 0 1 auto;
  }
  #desktop-header > .row > .contactinfos .contact {
    padding-top: 0;
    padding-bottom: 0;
  }
  #desktop-header > .row > #search_block_top_content {
    order: 3;
    float: none;
    flex: 1 1 auto;
    max-width: 300px;
    height: auto !important;
  }
  #desktop-header > .row > #search_block_top_content .iqitsearch-inner {
    position: static !important;
    top: auto !important;
    margin-top: 0 !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
  }
  #desktop-header #search_block_top {
    padding-top: 0 !important;
  }
  #desktop-header > .row > .gomakoilFreeCall {
    order: 4;
    float: none !important;
    flex: 0 0 auto;
    margin: 0 12px 0 20px !important;
  }
  #desktop-header > .row > .header_user_info {
    order: 5;
    float: none !important;
    flex: 0 0 auto;
    margin-top: 0 !important;
    width: auto !important;
    max-width: 85px;
  }
  #desktop-header > .row > #shopping_cart_container {
    order: 6;
    float: none !important;
    flex: 0 0 auto;
    margin: 0 0 0 10px !important;
    width: auto !important;
    max-width: 85px;
  }
  #header #desktop-header .shopping_cart {
    padding-top: 0 !important;
  }
}

/* Alt-cart : icône orange + libellé sous l’icône */
.alt-cart #shopping_cart_container .shopping_cart {
  padding-top: 0 !important;
  float: none;
}
.alt-cart #shopping_cart_container .shopping_cart > a:first-child {
  float: none;
  text-align: center;
  line-height: 12px;
}
.alt-cart #shopping_cart_container .shopping_cart > a:first-child span.cart_name {
  font-size: 0 !important;
  padding: 0 !important;
  float: none !important;
  line-height: 0 !important;
  background: none !important;
  max-height: 45px;
  overflow: hidden;
  margin-bottom: 7px;
  display: block !important;
}
.alt-cart #shopping_cart_container .shopping_cart > a:first-child span.cart_name:before {
  content: "\f07a";
  font-family: "FontAwesome";
  background: none !important;
  font-size: 40px !important;
  float: none !important;
  display: block !important;
  padding: 0 !important;
  line-height: 42px !important;
  text-align: center;
  color: #FC610A !important;
}
.alt-cart #shopping_cart_container .more_info {
  background: none !important;
  display: block !important;
  padding: 0 !important;
  color: #333;
}
.alt-cart .header_user_info {
  text-align: center;
  line-height: 12px;
}
.alt-cart .header_user_info > a:first-child:before {
  font-size: 46px;
  content: "\f007";
  color: #FC610A;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 43px;
  display: block;
  text-align: center;
  margin-bottom: 8px;
  -webkit-font-smoothing: antialiased;
}
.alt-cart .header_user_info i {
  display: none !important;
}

.breadcrumb {
  top: 0 !important;
}

/* Alias IDs Classic (#left-column) → CSS Warehouse (#left_column) */
#left-column {
  /* les règles Warehouse ciblent #left_column */
}
#left-column,
#left_column {
  float: left;
}

/* Filtres above : visible hors ancien markup si besoin */
#center-layered-nav {
  padding: 5px 0;
  background: #f8f8f8;
  clear: both;
  margin-bottom: 15px;
}
#columns #center-layered-nav .container,
#center-layered-nav .container {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Listing : masquer facettes Classic (on utilise blocklayered_mod) */
#search_filters_wrapper,
#search_filters,
.facets-title {
  display: none !important;
}

/* Grille listing : 4 colonnes dès md (25%), pas 3 via col-sm-4 */
@media (min-width: 992px) {
  ul.product_list.grid > li.ajax_block_product {
    width: 25% !important;
    float: none !important;
    clear: none !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  ul.product_list.grid > li.ajax_block_product {
    width: 33.33333% !important;
    float: none !important;
  }
}

/* Cards : même hauteur par ligne + image centrée + badge promo */
ul.product_list.grid {
  display: flex;
  flex-wrap: wrap;
}
ul.product_list.grid > li.ajax_block_product {
  list-style: none;
  display: flex;
  float: none;
  align-items: stretch;
}
ul.product_list.grid > li .product-name-container {
  min-height: 2.6em;
  margin: 8px 0 4px;
}
ul.product_list.grid > li .producth2 {
  min-height: 2.4em;
  margin: 0 0 6px;
}
ul.product_list.grid > li .content_price {
  min-height: 1.6em;
  margin-bottom: 6px;
}
ul.product_list.grid > li .product-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  text-align: center;
}
ul.product_list.grid > li .left-block {
  width: 100%;
}
ul.product_list.grid > li .product-image-container {
  position: relative;
  text-align: center;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
ul.product_list.grid > li .product_img_link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  text-align: center;
}
ul.product_list.grid > li .product_img_link img {
  margin: 0 auto;
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  width: auto;
  object-fit: contain;
}
ul.product_list.grid > li .right-block {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  text-align: center;
}
ul.product_list.grid > li .button-container {
  margin-top: auto;
  padding-top: 10px;
}
ul.product_list.grid > li .button-container .lnk_view {
  display: inline-block;
}
/* Badge -10% Warehouse (sale-label bulle_reduction) */
ul.product_list.grid > li .product-flags {
  display: block !important;
  position: static;
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.product_list.grid > li .sale-label.bulle_reduction {
  display: block !important;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #fc6413 !important;
  border: none !important;
  color: #fff !important;
  line-height: 40px;
  text-align: center;
  font-size: 13px !important;
  font-weight: bold;
  position: absolute;
  right: 10px;
  bottom: 10px;
  top: auto !important;
  left: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2;
  box-shadow: none;
}
ul.product_list .pl-quantity-input-wrapper,
ul.product_list .ajax_add_to_cart_button {
  display: none !important;
}

/* Tri : select natif à droite (pas le bouton dropdown Classic) */
#js-product-list-top.content_sortPagiBar .sortPagiBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
#js-product-list-top #productsSortForm {
  float: right;
  margin: 0 0 10px 0;
}
#js-product-list-top #productsSortForm label {
  float: left;
  padding: 6px 8px 0 0;
  font-weight: normal;
}
#js-product-list-top #productsSortForm select.selectProductSort {
  display: inline-block;
  float: left;
  max-width: 220px;
  height: 34px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  background: #fff;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
}
#js-product-list-top .products-sort-order.dropdown,
#js-product-list-top .select-title {
  display: none !important;
}


