/* =========================================================================
 * Thème Fabre - Fil d'Ariane en bandeau + listes de produits (catégories, promotions, meilleures ventes,
 * nouveautés, recherche, marques, fournisseurs : même gabarit que la catégorie sur le site d'origine)
 * Valeurs mesurées sur produitfermedesfabres.com à 1440px.
 * ========================================================================= */

/* ----- Fil d'Ariane en bandeau (toutes les pages sauf l'accueil) ----- */
.fabre-breadcrumb {
  position: relative;
  margin: 0 0 49.5px; /* image 1920x390 réduite = 292,5px : on garde 360px au total comme le site d'origine */
  text-align: center;
}

/* Image par défaut : décalée de 18px comme sur le site d'origine (masqué par le header fixe) */
.fabre-breadcrumb__image {
  padding-top: 18px;
}

.fabre-breadcrumb--cover .fabre-breadcrumb__image {
  padding-top: 0;
}

/* Image de catégorie : format category_default du site d'origine (1920 x 270, image entière sur fond blanc) */
.fabre-breadcrumb--cover .fabre-breadcrumb__image img {
  aspect-ratio: 1920 / 270;
  object-fit: contain;
  background: #fff;
}

.fabre-breadcrumb__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Voile noir à 60 % sur tout le bandeau (site d'origine) */
.fabre-breadcrumb::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(0, 0, 0, 0.6);
}

.fabre-breadcrumb__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
}

.fabre-breadcrumb__title {
  margin: 0 0 8px;
  font-size: 48px;
  font-weight: 700;
  line-height: 52.8px;
  color: #fff;
}

.fabre-breadcrumb .breadcrumb {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 25px;
  color: var(--fabre-text-light);
  background: none;
  list-style: none;
}

.fabre-breadcrumb .breadcrumb-item {
  display: inline-block;
  padding: 0;
}

/* Le gabarit d'origine laisse un espace de plus après les éléments sur les pages catégorie */
#category .fabre-breadcrumb .breadcrumb-item {
  margin-right: 5px;
}

.fabre-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: none;
}

.fabre-breadcrumb .breadcrumb-item:not(:last-child)::after {
  content: "/";
  margin: 5px;
  color: #fff;
}

.fabre-breadcrumb .breadcrumb-item a,
.fabre-breadcrumb .breadcrumb-item span {
  color: #fff;
  text-decoration: none;
}

.fabre-breadcrumb .breadcrumb-item a:hover span {
  color: var(--fabre-green-light);
}

/* ----- Colonnes des pages intérieures (container 1200px du site d'origine) ----- */
body:not(#index) .columns-container {
  max-width: 1200px;
  padding: 0 15px;
}

body:not(#index) .columns-container > .row {
  --bs-gutter-x: 30px;
}

body:not(#index) #center-column.page {
  padding-bottom: 0;
}

/* Page catégorie : fond bois fixe */
body#category {
  background: url('../img/texture-background-full.jpg') round fixed;
  background-size: contain;
}

/* Colonne de gauche : carte blanche arrondie (la colonne elle-même, gouttières comprises) */
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #left-column {
  align-self: flex-start;
  background: #fff;
  border-radius: 25px;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #left-column .left-block {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #left-column .left-block__title {
  margin: 0;
  padding: 20px 15px;
  font-size: 24px;
  font-weight: 700;
  line-height: 26.4px;
  color: var(--fabre-dark);
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #left-column .left-block__title a {
  color: #000;
  text-decoration: none;
}

/* Arbre des catégories (ps_categorytree) */
.category-tree .accordion {
  padding: 15px;
}

.category-tree__list {
  display: block;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-tree__item {
  min-height: 38.5px;
  padding: 10px 0;
  background: transparent;
  border: 0;
}

.category-tree__item-header {
  position: relative;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.category-tree__item-link {
  padding-right: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 17.5px;
  color: var(--fabre-text);
  text-decoration: none;
}

.category-tree__item-link:hover {
  color: var(--fabre-green);
}

.category-tree .accordion-button {
  position: absolute;
  top: -6px;
  right: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--fabre-dark);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
}

.category-tree .accordion-button::after {
  content: "\e145";
  width: auto;
  height: auto;
  margin: 0 auto;
  font-family: "Material Icons";
  font-size: 18px;
  line-height: 28px;
  background-image: none;
  transform: none;
}

.category-tree .accordion-button:not(.collapsed)::after {
  content: "\e15b";
}

.category-tree .accordion-body {
  padding: 10px 0 0 15px;
}

.category-tree .category-tree__list[data-depth="1"] .category-tree__item {
  padding: 5px 0;
}

.category-tree .category-tree__list[data-depth="1"] .category-tree__item-link {
  font-size: 14px;
}

/* Filtres (ps_facetedsearch) : blocs toujours ouverts, comme sur le site d'origine */
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #search_filters_wrapper .accordion-item {
  padding: 15px;
  background: transparent;
  border: 0;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #search_filters_wrapper .accordion-button {
  margin: 0 0 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 16.5px;
  color: var(--fabre-dark);
  background: none;
  box-shadow: none;
  pointer-events: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #search_filters_wrapper .accordion-button::after {
  display: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #search_filters_wrapper .accordion-collapse {
  display: block !important;
  height: auto !important;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #search_filters_wrapper ul.accordion-body {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #search_filters_wrapper ul.accordion-body > li {
  margin: 10px 0;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__form-check {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 20.5px;
  margin: 0;
  padding: 0;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__form-check .form-check-input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 0 8px 0 0;
  border: 2px solid var(--fabre-dark);
  border-radius: 0;
  box-shadow: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__form-check .form-check-input:checked {
  background-color: var(--fabre-dark);
  border-color: var(--fabre-dark);
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__form-label,
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__link {
  flex: 1;
  font-size: 14px;
  line-height: 17.5px;
  color: #414141;
  text-decoration: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__magnitude {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 10px;
  color: var(--fabre-orange);
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__slider-container {
  display: flex;
  flex-direction: column;
  margin: 10px 0 16px;
  padding: 0;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__slider-values {
  order: -1;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 17.5px;
  color: var(--fabre-text);
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__slider.noUi-target {
  height: 6px;
  margin: 0 6px;
  background: #555;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__slider .noUi-connect {
  background: #555;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__slider .noUi-handle {
  top: -6px;
  right: -4px;
  width: 8px;
  height: 17px;
  background: #fff;
  border: 1px solid #555;
  border-radius: 3px;
  box-shadow: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__slider .noUi-handle::before,
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .search-filters__slider .noUi-handle::after {
  display: none;
}

/* ----- Barre nombre de produits + tri ----- */
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #products {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #js-product-list-top {
  margin: 0 0 20px;
  padding: 8px 20px;
  background: #f9f9f9;
  border-radius: 25px;
  box-shadow: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop {
  container-type: inline-size; /* largeur du tri en proportion de la barre, comme la grille d'origine */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__filter,
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__showing {
  display: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__filter-button {
  width: 100%;
  height: 36px;
  padding: 0 15px;
  font-size: 14px;
  line-height: 28px;
  color: #fff;
  text-transform: uppercase;
  background: #282d35;
  border: 1px solid transparent;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__filter-button:hover {
  background: var(--fabre-orange);
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__showing {
  flex: 0 0 100%;
  margin: 0;
  font-size: 14px;
  line-height: 17.5px;
  color: var(--fabre-dark);
  text-align: center;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__count,
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__count span {
  font-size: 14px;
  line-height: 36px;
  color: var(--fabre-text-light);
}

/* Tri : moitié droite de la barre (col-lg-6), libellé 1/3 + liste 2/3, gouttières de 15px */
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort {
  display: flex;
  flex: 0 0 calc((100cqw + 30px) / 2);
  align-items: center;
  gap: 0;
  margin-right: -15px;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort-label {
  flex: 0 0 33.333333%;
  padding: 0 15px;
  font-size: 14px;
  color: var(--fabre-text-light);
  text-align: right;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort-dropdown {
  flex: 0 0 66.666667%;
  padding: 0 15px;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort-dropdown-button {
  position: relative;
  width: 100%;
  height: 36px;
  padding: 0 20px 0 10px;
  font-size: 14px;
  line-height: 36px;
  color: var(--fabre-text-light);
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 25px;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort-dropdown-button::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  content: "\e5c5";
  font-family: "Material Icons";
  font-size: 20px;
  line-height: 36px;
  border: 0;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort-dropdown .dropdown-menu {
  width: calc(100% - 30px);
  font-size: 14px;
}

/* ----- Grille de produits : 3 colonnes ----- */
/* Vignette des listes : 5px sous le prix (bloc produits leo_koreni) */
#js-product-list .fabre-product__prices {
  margin-bottom: 5px;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #js-product-list .products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 30px;
  margin: 0;
  padding: 3%;
  border-radius: 5px;
}

/* ----- Pagination ----- */
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__pagination {
  margin: 0 0 30px;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 25px; /* 10px + colonnes internes de 15px du site d'origine */
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination__number {
  font-size: 15px;
  color: #fff;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 0;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination .page-item {
  padding-left: 5px;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 14px;
  line-height: 30px;
  color: #000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 25px;
  box-shadow: none;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination .page-item.active .page-link {
  color: var(--fabre-orange);
  border-color: var(--fabre-orange);
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination .page-item.disabled .page-link {
  color: #fff;
  background: transparent;
  border-color: transparent;
}

:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination .page-link .material-icons {
  font-size: 20px;
}

/* « Précédent / Suivant » : icône seule (texte conservé pour les lecteurs d'écran ;
   pas de display:none, les utilitaires hummingbird sont dans un @layer et gagnent les !important) */
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination .page-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Bouton « précédent » masqué sur la 1re page (absent du site d'origine) */
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination .page-link.previous.disabled,
:is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination .page-link.next.disabled {
  display: none;
}

/* ----- Autres listes (promotions, meilleures ventes, nouveautés, recherche, marque, fournisseur) -----
   Sur le site d'origine : fond blanc, titre visible, grille sur fond vert texturé, barres grises. */
:is(#prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #js-product-list-header .page-title-section,
:is(#prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #center-column > .page-header .page-title-section {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
  color: var(--fabre-dark);
  text-transform: uppercase;
}

:is(#prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #js-product-list-top {
  border-radius: 0;
}

:is(#prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #js-product-list .products {
  margin-bottom: 30px;
  background: var(--fabre-green) url('../img/texture2.png');
}

:is(#prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination__container {
  background: #f9f9f9;
  border-radius: 4px;
}

:is(#prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination__number {
  font-size: 14px;
  color: #999;
}

:is(#prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .pagination .page-item.disabled .page-link {
  color: #999;
}

/* =========================================================================
 * Pages catégorie : tablettes et mobiles (grille Bootstrap 4 du site d'origine)
 *   >= 1200 : container 1200 ; 992-1199 : container 970 ; < 992 : pleine largeur
 *   colonne gauche 25 % (>= 992) / 33 % (768-991) / masquée (< 768, bouton « Filtres »)
 *   produits : 3 colonnes (>= 992) / 2 colonnes
 * ========================================================================= */
@media (min-width: 992px) and (max-width: 1199px) {
  body:not(#index) .columns-container {
    max-width: 970px;
  }
}

@media (max-width: 991px) {
  body:not(#index) .columns-container {
    max-width: none;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #js-product-list .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Barre : compteur et libellé masqués, tri sur 75 % à droite, rappel de pagination dessous */
  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #js-product-list-top {
    padding: 8px 5px;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__count,
  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort-label {
    display: none;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__sort {
    flex: 0 0 75%;
    margin: 0 0 0 25%;
    padding: 0;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort-dropdown {
    flex-basis: 100%;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort-dropdown-button {
    font-size: 12px;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__showing {
    display: block;
    padding: 10px 15px 0;
  }
}

@media (max-width: 767px) {
  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #left-column {
    background: transparent;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) #left-column .category-tree {
    display: none;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__sort {
    flex-basis: 66.666667%;
    margin-left: 0;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__filter-button {
    line-height: 1;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .products__sort-dropdown-button {
    font-size: 14px;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__filter {
    display: block;
    flex: 0 0 33.333333%;
    padding: 0 15px;
  }

  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__showing {
    padding-top: 16px;
  }
}

@media (max-width: 480px) {
  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__sort,
  :is(#category, #prices-drop, #best-sales, #new-products, #search, #manufacturer, #supplier) .fabre-listtop__filter {
    flex-basis: 100%;
    margin-top: 10px;
  }

  #category .fabre-breadcrumb__image {
    padding-top: 0;
  }
}

/* Fil d'Ariane sur mobile : sans image ni voile, texte blanc sur le fond (site d'origine, < 768px) */
@media (max-width: 767px) {
  .fabre-breadcrumb {
    margin-bottom: 30px;
  }

  .fabre-breadcrumb::before,
  .fabre-breadcrumb__image,
  .fabre-breadcrumb__title {
    display: none;
  }

  .fabre-breadcrumb__content {
    position: static;
    padding: 22px 31px;
  }
}

/* =========================================================================
 * Encart « rien trouvé » (liste vide, page 404) : templates/errors/not-found.tpl
 * ========================================================================= */
.fabre-notfound {
  max-width: 570px;
  margin: 0 auto 30px;
  padding: 35px;
  font-size: 13px;
  color: #878787;
  text-align: left;
  background: #fff;
  box-shadow: 2px 2px 11px rgba(0, 0, 0, 0.1);
}

.fabre-notfound__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 19.8px;
  color: var(--fabre-dark);
}

.fabre-notfound__text {
  margin: 0 0 17px;
  line-height: 17.5px;
}

.fabre-search-inline {
  position: relative;
}

.fabre-search-inline__input {
  display: block;
  width: 100%;
  height: 45.5px;
  padding: 12px 50px 12px 12px;
  font-size: 13px;
  font-weight: 300;
  color: #414141;
  background: #fff;
  border: 2px solid #333b48;
  border-radius: 2px;
  outline: 0;
}

.fabre-search-inline__submit {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 39px;
  height: 39px;
  padding: 0;
  font-size: 19px;
  line-height: 39px;
  color: #fff;
  background: #333b48;
  border: 0;
  border-radius: 2px;
}

.fabre-search-inline__submit .ti {
  line-height: inherit;
}

/* Page 404 : titre à gauche comme le site d'origine, descendu sous le logo qui déborde du header
   (sur le site d'origine le logo en masque le début) */
#pagenotfound #wrapper > .container {
  padding-top: 90px;
}

/* Liste vide : pas de barre de tri */
#js-product-list-top:empty {
  display: none;
}

.fabre-notfound__page-title {
  margin: 0 0 47px;
  font-size: 28px;
  font-weight: 700;
  line-height: 30.8px;
  color: var(--fabre-dark);
}

/* =========================================================================
 * Page « Marques » (catalog/_partials/miniatures/brand.tpl) : une ligne par marque, comme le site d'origine
 * ========================================================================= */
#manufacturer .brand__list {
  display: block;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

#manufacturer .fabre-brand {
  display: flex;
  align-items: center;
  min-height: 98px;
  margin: 0 -15px;
  padding: 0;
  text-align: left;
  border: 0;
  border-radius: 0;
}

#manufacturer .fabre-brand > div {
  padding: 0 15px;
}

.fabre-brand__image {
  flex: 0 0 25%;
}

.fabre-brand__img {
  display: block;
  width: 98px;
  height: 98px;
  object-fit: contain;
}

/* Le gabarit d'origine aligne nom et paragraphes de présentation côte à côte */
.fabre-brand__infos {
  display: flex;
  flex: 0 0 33.333%;
  align-items: center;
  gap: 0 5px;
  font-size: 14px;
  line-height: 17.5px;
  color: #666;
}

.fabre-brand__infos p {
  margin: 0;
}

.fabre-brand__name,
.fabre-brand__count {
  color: #000;
  text-decoration: none;
}

.fabre-brand__name:hover,
.fabre-brand__count:hover {
  color: var(--fabre-green);
}

.fabre-brand__products {
  display: flex;
  flex: 0 0 41.667%;
  align-items: center;
  justify-content: space-between;
}

.fabre-brand__btn {
  display: inline-block;
  flex: 0 0 200px;
  padding: 15px 10px 13px;
  font-family: var(--fabre-font-btn);
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background: #282d35;
  border: 1px solid transparent;
  transition: background-color 0.2s;
}

.fabre-brand__btn:hover {
  color: #fff;
  background: var(--fabre-green);
}

/* Titre « Marques » : grand titre du site d'origine (et non le titre majuscule des listes) */
#manufacturer .page-title-section {
  color: var(--fabre-dark);
  font-size: 28px;
  font-weight: 700;
  line-height: 30.8px;
  text-transform: none;
}

@media (max-width: 991px) {
  #manufacturer .fabre-brand {
    flex-wrap: wrap;
    padding: 15px 0;
  }

  .fabre-brand__image,
  .fabre-brand__infos,
  .fabre-brand__products {
    flex-basis: 100%;
  }

  .fabre-brand__products {
    margin-top: 10px;
  }
}
