/* ==========================================================================
   Belec 2026 — Catalog (category / search / brand / sort / pagination / sidebar)
   Mostly targets stock PrestaShop classes so it restyles every listing page
   without per-template edits. Loaded via belec.css (after Bootstrap).
   ========================================================================== */

/* ---- Catalog 2-col layout (Bootstrap col-sm-3 left + col-sm-9 center) ---- */
.columns-container #left_column.column {
  padding: 0 24px 0 0;
}
#left_column .block,
#left_column .blocklayered {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bel-rule);
  background: none;
  border-radius: 0;
}
#left_column .block:last-child { border-bottom: 0; }
#left_column .block .title_block,
#left_column .block h4,
#left_column .layered_subtitle_heading {
  font-family: var(--bel-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bel-ink);
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
#left_column .block a { color: var(--bel-ink-2); font-size: 13px; }
#left_column .block a:hover { color: var(--bel-gold-lo); }

/* de-emphasise the noisy promo/payment/tag blocks on catalog */
#left_column #paymentlogo_block_left,
#left_column .blockpaymentlogo { opacity: .8; }

/* ---- Breadcrumb ---------------------------------------------------------- */
.breadcrumb.bel-crumb {
  background: none;
  border: 0;
  padding: 18px 0 6px;
  margin: 0;
  font-family: var(--bel-font-mono);
  font-size: 11px;
  color: var(--bel-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.bel-crumb a { color: var(--bel-muted); display: inline-flex; align-items: center; }
.bel-crumb a:hover { color: var(--bel-ink); }
.bel-crumb .home { color: var(--bel-ink); }
.bel-crumb .navigation-pipe { color: var(--bel-muted-2); opacity: .6; margin: 0 2px; }
.bel-crumb .navigation_page { color: var(--bel-ink); }

/* ---- Page head (category / search / brand) ------------------------------ */
.page-heading,
.bel-page-head__title {
  font-family: var(--bel-font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--bel-ink);
  margin: 8px 0 4px;
  padding: 0;
  border: 0;
  text-transform: none;
}
.bel-page-head { margin-bottom: 18px; }
.heading-counter,
.bel-page-head__count,
.category-product-count {
  font-family: var(--bel-font-mono);
  font-size: 12px;
  color: var(--bel-muted);
  font-weight: 400;
}
.page-heading .lighter { color: var(--bel-gold-lo); font-weight: 800; }

/* ---- Category intro panel (v2) — RTE description from the BO editor ------- */
.belv2-catalog .bel-cat-desc {
  background: var(--bel-sheet);
  border: 1px solid var(--bel-rule);
  border-radius: var(--bel-r-lg);
  padding: 24px 28px;
  margin: 4px 0 28px;
  max-width: none;
  color: var(--bel-ink-3);
  font-size: 15px;
  line-height: 1.65;
}

/* RTE typography */
.belv2-catalog .bel-cat-desc h2,
.belv2-catalog .bel-cat-desc h3 {
  font-family: var(--bel-font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--bel-ink);
  line-height: 1.15;
  margin: 18px 0 10px;
}
.belv2-catalog .bel-cat-desc h2 { font-size: 24px; }
.belv2-catalog .bel-cat-desc h3 { font-size: 19px; }
.belv2-catalog .bel-cat-desc > :first-child,
.belv2-catalog .bel-cat-desc h2:first-child,
.belv2-catalog .bel-cat-desc h3:first-child { margin-top: 0; }
.belv2-catalog .bel-cat-desc p { margin: 0 0 12px; }
.belv2-catalog .bel-cat-desc p:last-child { margin-bottom: 0; }
.belv2-catalog .bel-cat-desc ul,
.belv2-catalog .bel-cat-desc ol { margin: 0 0 12px; padding-left: 20px; }
.belv2-catalog .bel-cat-desc ul { list-style: disc; }
.belv2-catalog .bel-cat-desc ol { list-style: decimal; }
.belv2-catalog .bel-cat-desc li { margin: 4px 0; }
.belv2-catalog .bel-cat-desc a { color: var(--bel-gold-lo); font-weight: 600; }
.belv2-catalog .bel-cat-desc a:hover { text-decoration: underline; }

/* Responsive imagery (RTE banners carry an inline width attribute) */
.belv2-catalog .bel-cat-desc img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bel-r-md);
  display: block;
  margin: 12px 0;
}

/* Neutralize arbitrary RTE inline styles (e.g. a dark <span style="background-color:#4a4a4a;
   color:#fff"> banner) so the intro stays on-brand. Inline styles win over normal rules, so
   !important is required; scope kept tight to the description panel. */
.belv2-catalog .bel-cat-desc h1 span[style],
.belv2-catalog .bel-cat-desc h2 span[style],
.belv2-catalog .bel-cat-desc h3 span[style],
.belv2-catalog .bel-cat-desc p span[style] {
  background-color: transparent !important;
  color: inherit !important;
  padding: 0 !important;
}

/* Expand toggle */
.belv2-catalog .bel-cat-desc .unvisible { display: none; }
.belv2-catalog .bel-cat-desc .lnk_more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--bel-font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bel-ink);
  border-bottom: 1px solid var(--bel-ink);
  padding-bottom: 2px;
}
.belv2-catalog .bel-cat-desc .lnk_more:hover { color: var(--bel-gold-lo); border-color: var(--bel-gold-lo); }

/* Non-catalog fallback (search/manufacturer product lists reuse .bel-cat-desc) */
.bel-cat-desc {
  color: var(--bel-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 20px;
}
.bel-cat-desc .unvisible { display: none; }
.bel-cat-desc .lnk_more { color: var(--bel-gold-lo); font-weight: 600; }

/* ---- Subcategories ------------------------------------------------------- */
.bel-subcats { margin: 8px 0 24px; }
.bel-subcats .subcategory-heading { margin-bottom: 12px; }
.bel-subcats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.bel-subcats__grid > li { margin: 0; }
.bel-subcat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--bel-rule);
  border-radius: var(--bel-r-md);
  background: var(--bel-card);
  transition: border-color var(--bel-fast) var(--bel-ease), transform var(--bel-fast) var(--bel-ease);
}
.bel-subcat:hover { border-color: var(--bel-gold); transform: translateY(-1px); }
.bel-subcat__media { width: 40px; height: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--bel-sheet); border-radius: var(--bel-r-sm); overflow: hidden; }
.bel-subcat__media img { width: 100%; height: 100%; object-fit: contain; }
.bel-subcat__name { font-size: 13px; font-weight: 600; color: var(--bel-ink); }

/* ---- Toolbar (sort + per-page + view + pagination) ---------------------- */
.content_sortPagiBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 20px;
  padding: 12px 0;
  border-top: 1px solid var(--bel-rule);
  border-bottom: 1px solid var(--bel-rule);
}
.content_sortPagiBar.bel-cat-toolbar--bottom { border-top: 1px solid var(--bel-rule); border-bottom: 0; }
.sortPagiBar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-pagination-content,
.bottom-pagination-content { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* sort + per-page selects */
.productsSortForm, .nbrItemPage { display: flex; align-items: center; gap: 8px; margin: 0; }
.selectProductSort,
.nbrItemPage select,
#nb_item {
  font-family: var(--bel-font-body);
  font-size: 13px;
  padding: 8px 28px 8px 12px;
  border: 1px solid var(--bel-rule);
  border-radius: var(--bel-r-sm);
  background: var(--bel-card);
  color: var(--bel-ink);
  height: auto;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6A62' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}
.productsSortForm label, .nbrItemPage label, .product-sort label { font-family: var(--bel-font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--bel-muted); margin: 0; }

/* grid/list view toggle */
.display { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.display .display-title { font-family: var(--bel-font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--bel-muted); margin-right: 4px; }
.display li a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0;                     /* hide the text label, keep icon */
  width: 34px; height: 34px;
  justify-content: center;
  border: 1px solid var(--bel-rule);
  border-radius: var(--bel-r-sm);
  color: var(--bel-muted);
}
.display li a i { font-size: 14px; }
.display li.selected a, .display li a:hover { background: var(--bel-ink); color: var(--bel-paper); border-color: var(--bel-ink); }

/* ---- Pagination ---------------------------------------------------------- */
.pagination { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pagination > li { margin: 0; }
.pagination > li > a,
.pagination > li > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid var(--bel-rule);
  border-radius: var(--bel-r-sm);
  background: var(--bel-card);
  color: var(--bel-ink-2);
  font-size: 13px;
  font-family: var(--bel-font-mono);
}
.pagination > li.active > span,
.pagination > li.active > a,
.pagination > li > a:hover { background: var(--bel-ink); color: var(--bel-paper); border-color: var(--bel-ink); }
.pagination > li.disabled > span { opacity: .4; }
.pagination > li.truncate { border: 0; background: none; }
.product-count { font-family: var(--bel-font-mono); font-size: 12px; color: var(--bel-muted); }

/* ---- List view (grid/list toggle) --------------------------------------- */
.product_list.list.bel-grid-products { grid-template-columns: 1fr; }
.product_list.list .bel-product-card { flex-direction: row; align-items: stretch; }
.product_list.list .bel-product-card__media { width: 200px; flex: 0 0 200px; aspect-ratio: auto; }
.product_list.list .bel-product-card__body { flex: 1; }
.product_list.list .bel-product-card__actions { align-self: center; width: auto; padding: var(--bel-card-pad); }
@media (max-width: 600px) {
  .product_list.list .bel-product-card { flex-direction: column; }
  .product_list.list .bel-product-card__media { width: auto; flex: none; aspect-ratio: 1/1; }
}

/* ---- blockcategories tree (sidebar) ------------------------------------- */
#categories_block_left .tree { margin: 0; padding: 0; list-style: none; }
#categories_block_left .tree li { padding: 0; margin: 0; }
#categories_block_left .tree li a { display: block; padding: 7px 0; font-size: 13px; color: var(--bel-ink-2); border-bottom: 1px solid var(--bel-rule-2); }
#categories_block_left .tree li a:hover,
#categories_block_left .tree li a.selected { color: var(--bel-gold-lo); font-weight: 600; }
#categories_block_left .tree ul { margin: 0 0 0 12px; padding: 0; list-style: none; }
#categories_block_left .tree .grower { float: right; cursor: pointer; color: var(--bel-muted); }

/* ---- blocklayered (faceted filter) — CSS-only restyle ------------------- */
#layered_block_left { padding: 0; }
#layered_block_left .layered_subtitle_heading { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
#layered_block_left .layered_filter { padding: 16px 0; border-bottom: 1px solid var(--bel-rule-2); margin: 0; }
#layered_block_left .layered_filter_ul { margin: 0; padding: 0; list-style: none; }
#layered_block_left .layered_filter_ul li { padding: 4px 0; display: flex; align-items: center; gap: 8px; font-size: 13px; }
#layered_block_left .layered_filter_ul li label { margin: 0; font-weight: 400; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--bel-ink-2); }
#layered_block_left input.checkbox, #layered_block_left input.radio { accent-color: var(--bel-gold); width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }
#layered_block_left .nomargin .count { color: var(--bel-muted); font-family: var(--bel-font-mono); font-size: 11px; }
#layered_block_left .hide-action { font-family: var(--bel-font-mono); font-size: 11px; color: var(--bel-gold-lo); cursor: pointer; display: inline-block; margin-top: 6px; }
#layered_block_left .color-option { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--bel-rule); cursor: pointer; }
#layered_block_left .color-option.on { box-shadow: 0 0 0 2px var(--bel-ink); }
/* jQuery-UI slider */
#layered_block_left .layered_slider.ui-slider { height: 4px; background: var(--bel-rule); border: 0; border-radius: 999px; margin: 14px 6px; }
#layered_block_left .ui-slider .ui-slider-range { background: var(--bel-gold); }
#layered_block_left .ui-slider .ui-slider-handle { width: 16px; height: 16px; border-radius: 50%; background: var(--bel-ink); border: 2px solid var(--bel-paper); top: -7px; box-shadow: var(--bel-shadow-sm); cursor: grab; }
#layered_block_left .layered_input_range { width: 70px; padding: 6px 8px; border: 1px solid var(--bel-rule); border-radius: var(--bel-r-xs); font-size: 12px; }
#layered_price_range, #layered_weight_range { font-family: var(--bel-font-mono); font-size: 12px; color: var(--bel-ink); }
/* enabled filters → chips */
#enabled_filters { margin: 0 0 14px; padding: 0; }
#enabled_filters .layered_subtitle { display: block; font-family: var(--bel-font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--bel-muted); margin-bottom: 8px; }
#enabled_filters ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
#enabled_filters li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--bel-rule); border-radius: 999px; font-size: 12px; background: var(--bel-card); }
#enabled_filters li a { color: var(--bel-muted); display: inline-flex; }
#enabled_filters li a:hover { color: var(--bel-stock-out); }
#layered_ajax_loader { text-align: center; padding: 20px; }

/* ---- Brand / supplier index grid ---------------------------------------- */
#manufacturers_list, #suppliers_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
#manufacturers_list > li, #suppliers_list > li { width: auto; margin: 0; padding: 0; float: none; }
#manufacturers_list .mansup-container, #suppliers_list .mansup-container {
  height: 100%;
  border: 1px solid var(--bel-rule);
  border-radius: var(--bel-r-md);
  background: var(--bel-card);
  padding: 18px;
  transition: border-color var(--bel-fast) var(--bel-ease), transform var(--bel-fast) var(--bel-ease);
}
#manufacturers_list .mansup-container:hover, #suppliers_list .mansup-container:hover { border-color: var(--bel-gold); transform: translateY(-2px); }
.mansup-container .row { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.mansup-container .left-side, .mansup-container .middle-side, .mansup-container .right-side { width: auto; float: none; padding: 0; }
.mansup-container .logo img { max-height: 56px; width: auto; }
.mansup-container .middle-side h3 { font-size: 16px; margin: 0; }
.mansup-container .description { font-size: 13px; color: var(--bel-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mansup-container .product-counter { font-family: var(--bel-font-mono); font-size: 11px; color: var(--bel-muted); }
.mansup-container .right-side .btn { width: 100%; }

/* ---- Mobile filter drawer (Filtres button → v2 slide-in) ----------------
   catalog.js adds `.bel-filter-drawer` to the filter sidebar (#belv2-filter on the
   v2 route, #left_column on legacy search/brand pages) and injects a "Filtres"
   toggle + a drawer head (✕) + foot ("Voir les résultats"). On mobile the sidebar
   becomes a left slide-in drawer over the shared .bel-drawer-backdrop; desktop keeps
   the normal sidebar. */
.bel-filter-toggle { display: none; }
.bel-filter-drawer__head, .bel-filter-drawer__foot { display: none; }
.bel-filter-drawer__head { align-items: center; justify-content: space-between; padding: 14px 0 12px; margin-bottom: 6px; border-bottom: 1px solid var(--bel-rule); position: sticky; top: 0; background: var(--bel-paper); z-index: 2; }
.bel-filter-drawer__title { font-family: var(--bel-font-display); font-size: 20px; font-weight: 800; color: var(--bel-ink); }
.bel-filter-drawer__foot { position: sticky; bottom: 0; padding: 12px 0 4px; margin-top: 10px; border-top: 1px solid var(--bel-rule); background: var(--bel-paper); }

@media (max-width: 980px) {
  /* "Filtres" toggle — mobile only, full-width above the products */
  .bel-filter-toggle { display: inline-flex !important; align-items: center; gap: 8px; justify-content: center; width: 100%; margin: 0 0 16px; }
  /* the filter sidebar becomes an off-canvas left drawer */
  .bel-filter-drawer {
    position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 88% !important; max-width: 360px !important; height: auto !important; margin: 0 !important;
    background: var(--bel-paper); z-index: 1090;
    transform: translateX(-100%); transition: transform .25s var(--bel-ease);
    overflow-y: auto; box-shadow: var(--bel-shadow-lg);
    border: 0; border-right: 1px solid var(--bel-rule);
    padding: 0 20px 20px !important;
  }
  .bel-filter-drawer.is-open { transform: translateX(0); }
  .bel-filter-drawer .bel-filter-drawer__head,
  .bel-filter-drawer .bel-filter-drawer__foot { display: flex; }
  /* v2: drawer head already says "Filtres" — drop the toolbar eyebrow to avoid duplication */
  .belv2-filter.bel-filter-drawer .belv2-filter__toolbar .bel-eyebrow { display: none; }
  /* legacy: products column full-width while the left column is a drawer + keep blocks expanded */
  body:not(.belv2-catalog) #columns #center_column.center_column { width: 100%; }
  #left_column.bel-filter-drawer .block_content,
  #left_column.bel-filter-drawer .tree,
  #left_column.bel-filter-drawer .layered_filter,
  #left_column.bel-filter-drawer #enabled_filters,
  #left_column.bel-filter-drawer .block ul { display: block !important; height: auto !important; max-height: none !important; overflow: visible !important; }
  .content_sortPagiBar { gap: 8px; }
  .top-pagination-content, .bottom-pagination-content { width: 100%; justify-content: center; }
}

/* ==========================================================================
   v2 MIGRATION — the REAL category route adopts the category-v2 look.
   Scoped under `.belv2-catalog` — a body class added ONLY on the migrated category
   route by the theme-guarded CategoryController override (NOT on search or manufacturer
   pages, which keep the original Phase-B look above). The v2 card styles (.belv2-prod-card*)
   come from home-v2.css (site-wide); the shared page-head/crumb comes from components.css.
   ========================================================================== */

/* ---- v2 page head — base/crumb live in components.css (shared). Catalog deltas
   only: fluid title size + count margin + actions group. -- */
.belv2-catalog .belv2-page-head__title { font-family: var(--bel-font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1; color: var(--bel-ink); text-transform: none; }
.belv2-catalog .belv2-page-head__title .cat-name { font-weight: 800; }
.belv2-catalog .belv2-page-head__count { font-family: var(--bel-font-mono); font-size: 12px; color: var(--bel-muted); margin-top: 10px; }
.belv2-catalog .belv2-page-head__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- Toolbar polish → v2 segmented view toggle -------------------------- */
.belv2-catalog .display { gap: 0; border: 1px solid var(--bel-rule); border-radius: var(--bel-r-sm); overflow: hidden; }
.belv2-catalog .display .display-title { display: none; }
.belv2-catalog .display li a { border: 0; border-radius: 0; width: 36px; height: 34px; }
.belv2-catalog .display li + li a { border-left: 1px solid var(--bel-rule); }
.belv2-catalog .display li.selected a, .belv2-catalog .display li a:hover { background: var(--bel-ink); color: var(--bel-paper); border-color: var(--bel-ink); }

/* ---- v2 list view: the #grid/#list toggle turns v2 cards into horizontal rows that
   mirror the mock's .belv2-prod-list__row (media | brand+title+sku | price/stock | add).
   The card DOM is flat, so the foot (price+stock) and the add button are pinned to the
   right edge and the body reserves room for them. -------------------------------------- */
.belv2-catalog #product_list.list .belv2-prod-card { position: relative; flex-direction: row; align-items: stretch; }
.belv2-catalog #product_list.list .belv2-prod-card__media { flex: 0 0 140px; width: 140px; aspect-ratio: 1; border-bottom: 0; border-right: 1px solid var(--bel-rule); }
.belv2-catalog #product_list.list .belv2-prod-card__body { flex: 1; justify-content: center; padding-right: 210px; }
.belv2-catalog #product_list.list .belv2-prod-card__foot { position: absolute; top: 50%; right: 68px; transform: translateY(-50%); margin: 0; padding: 0; flex-direction: column; align-items: flex-end; text-align: right; }
.belv2-catalog #product_list.list .belv2-prod-card__foot > div { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.belv2-catalog #product_list.list .belv2-prod-card__add { top: 50%; right: 16px; bottom: auto; opacity: 1; transform: translateY(-50%); }


/* ==========================================================================
   v2 catalog 2-col layout + filter sidebar + chips + sort toolbar.
   Ported from v2-pages.css (preview) → here scoped under `.belv2-catalog` so the
   real category renders the mock's catalog shell. (The product grid stays the real
   #product_list; Catégorie/Marque rows are nav links; État/Prix = catalog-v2real.js.)
   ========================================================================== */
/* Match the mock's catalog width: free #columns from the Bootstrap container cap, then re-constrain
   the catalog to the site shell width (= header/footer width). Same mechanism home + the mock use. */
body.belv2-catalog #columns.container { max-width: none; width: 100%; padding: 0; }
body.belv2-catalog #center_column { width: 100%; padding: 0; float: none; }
body.belv2-catalog .columns-container { padding: 0; min-height: 50dvh; }
body.belv2-catalog #columns > .row { margin: 0; }   /* drop Bootstrap's -15px row gutters (else overflow) */
body.belv2-catalog .belv2-cat { width: 100%; max-width: var(--bel-shell-max); margin: 0 auto; padding: 0 var(--bel-gutter); }

.belv2-catalog .belv2-catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: flex-start; }
.belv2-catalog .belv2-filter { position: sticky; top: 20px; align-self: start; }
.belv2-catalog .belv2-filter__toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.belv2-catalog .belv2-filter__reset { font-family: var(--bel-font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--bel-muted); background: none; border: 0; cursor: pointer; }
.belv2-catalog .belv2-filter__reset:hover { color: var(--bel-ink); }
.belv2-catalog .belv2-filter__group { padding: 18px 0; border-bottom: 1px solid var(--bel-rule); }
.belv2-catalog .belv2-filter__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; margin-bottom: 12px; cursor: pointer; color: var(--bel-ink); }
.belv2-catalog .belv2-filter__head svg { transition: transform .15s var(--bel-ease); }
.belv2-catalog .belv2-filter__group.collapsed .belv2-filter__head svg { transform: rotate(-90deg); }
.belv2-catalog .belv2-filter__group.collapsed .belv2-filter__body { display: none; }
.belv2-catalog .belv2-filter__opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 13px; color: var(--bel-ink-2); text-decoration: none; }
.belv2-catalog .belv2-filter__opt:hover { color: var(--bel-ink); }
.belv2-catalog .belv2-filter__opt--link.active { color: var(--bel-ink); font-weight: 600; }
.belv2-catalog .belv2-filter__check { width: 16px; height: 16px; border: 1.5px solid var(--bel-rule); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .12s var(--bel-ease); color: transparent; }
.belv2-catalog .belv2-filter__opt.active .belv2-filter__check { background: var(--bel-ink); border-color: var(--bel-ink); color: var(--bel-paper); }
.belv2-catalog .belv2-filter__opt.active { color: var(--bel-ink); font-weight: 500; }
.belv2-catalog .belv2-filter__opt-count { margin-left: auto; font-family: var(--bel-font-mono); font-size: 11px; color: var(--bel-muted); }
.belv2-catalog .belv2-filter__range { width: 100%; accent-color: var(--bel-gold); }
.belv2-catalog .belv2-filter__range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--bel-muted); font-family: var(--bel-font-mono); margin-top: 6px; }

/* "Voir plus" — cap long Marque/Catégorie lists so the sidebar stays compact like the mock */
.belv2-catalog .belv2-filter__more { display: none; }
.belv2-catalog .belv2-filter__more.show { display: block; }
.belv2-catalog .belv2-filter__more-btn { margin-top: 8px; padding: 0; font-family: var(--bel-font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--bel-gold-lo); background: none; border: 0; cursor: pointer; }
.belv2-catalog .belv2-filter__more-btn:hover { color: var(--bel-ink); }

/* keep price/stock from clipping on the narrower real cards */
.belv2-catalog .belv2-prod-card__foot { flex-wrap: wrap; }
.belv2-catalog .belv2-prod-card__foot > div { min-width: 0; }

/* empty state (no products on the page, or filters match nothing) */
.belv2-catalog .belv2-empty { padding: 60px 20px; text-align: center; color: var(--bel-muted); }
.belv2-catalog .belv2-empty h3 { font-family: var(--bel-font-display); font-size: 24px; color: var(--bel-ink); margin: 0 0 6px; }

/* ---- Brands index (v2) — ported from v2-pages.css, scoped to the migrated route -------------- */
.belv2-catalog .belv2-brands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.belv2-catalog .belv2-brand-tile { position: relative; overflow: hidden; min-height: 160px; padding: 24px 20px; background: var(--bel-card); border: 1px solid var(--bel-rule); border-radius: var(--bel-r-md); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; text-decoration: none; color: inherit; transition: border-color .15s var(--bel-ease), transform .15s var(--bel-ease), box-shadow .15s var(--bel-ease); }
.belv2-catalog a.belv2-brand-tile:hover { border-color: var(--bel-ink); transform: translateY(-2px); box-shadow: var(--bel-shadow-md); }
.belv2-catalog .belv2-brand-tile--empty { opacity: .55; }
.belv2-catalog .belv2-brand-tile__name { font-family: var(--bel-font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--bel-ink); line-height: 1.1; }
.belv2-catalog .belv2-brand-tile__count { font-family: var(--bel-font-mono); font-size: 11px; color: var(--bel-muted); }
.belv2-catalog .belv2-brand-tile__badges { display: flex; gap: 4px; margin-top: 6px; }
.belv2-catalog .belv2-brand-tile__corner { position: absolute; top: -8px; right: -8px; width: 40px; height: 40px; background: var(--bel-gold); transform: rotate(45deg); opacity: 0; transition: opacity .15s var(--bel-ease); }
.belv2-catalog a.belv2-brand-tile:hover .belv2-brand-tile__corner { opacity: 1; }
@media (max-width: 980px) { .belv2-catalog .belv2-brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .belv2-catalog .belv2-brands-grid { grid-template-columns: repeat(2, 1fr); } }

.belv2-catalog .belv2-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.belv2-catalog .belv2-chips:empty { display: none; }
.belv2-catalog .belv2-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border: 1px solid var(--bel-rule); border-radius: 999px; font-size: 12px; background: var(--bel-card); color: var(--bel-ink); }
.belv2-catalog .belv2-chip__x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bel-sheet); color: var(--bel-muted); border: 0; cursor: pointer; }
.belv2-catalog .belv2-chip__x:hover { background: var(--bel-ink); color: var(--bel-paper); }

.belv2-catalog .belv2-cat-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; }
.belv2-catalog .belv2-cat-toolbar__left { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--bel-muted); }
.belv2-catalog .belv2-cat-toolbar__sort { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--bel-rule); border-radius: 8px; background: var(--bel-card); font-size: 13px; color: var(--bel-ink); }
.belv2-catalog .belv2-cat-toolbar__sort select { -webkit-appearance: none; -moz-appearance: none; appearance: none; height: auto; line-height: 1.2; padding: 0; margin: 0; min-width: 0; box-shadow: none; background-image: none; border: 0; background: transparent; font: inherit; color: inherit; outline: none; cursor: pointer; }
.belv2-catalog .belv2-cat-toolbar__sort select::-ms-expand { display: none; }

/* bottom bar: per-page + pagination */
.belv2-catalog .belv2-cat-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--bel-rule); }
/* per-page selector (.belv2-cat-foot__nb) — match the v2 pagination buttons beside it:
   mono font, 38px height, same border/radius. Keeps the custom arrow from the base rule. */
.belv2-catalog .belv2-cat-foot .nbrItemPage { margin: 0; display: flex; align-items: center; gap: 10px; }
.belv2-catalog .belv2-cat-foot .nbrItemPage .selector1 { display: flex; align-items: center; gap: 10px; }
.belv2-catalog .belv2-cat-foot .nbrItemPage label,
.belv2-catalog .belv2-cat-foot .nbrItemPage .selector1 > span { font-family: var(--bel-font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--bel-muted); margin: 0; }
.belv2-catalog .belv2-cat-foot .nbrItemPage select,
.belv2-catalog .belv2-cat-foot #nb_item {
  display: inline-block; width: auto; height: 38px; margin: 0;
  padding: 0 36px 0 14px; vertical-align: middle;
  font-family: var(--bel-font-body); font-size: 13px; line-height: 1;
  color: var(--bel-ink); background-color: var(--bel-card);
  border: 1px solid var(--bel-rule); border-radius: 8px;
  box-shadow: none; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6A62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
  transition: border-color .12s var(--bel-ease);
}
.belv2-catalog .belv2-cat-foot .nbrItemPage select:hover,
.belv2-catalog .belv2-cat-foot #nb_item:hover { border-color: var(--bel-ink); }
.belv2-catalog .belv2-cat-foot .nbrItemPage select:focus,
.belv2-catalog .belv2-cat-foot #nb_item:focus { border-color: var(--bel-ink); box-shadow: none; outline: 0; }
.belv2-catalog .belv2-cat-foot .nbrItemPage select::-ms-expand { display: none; }

/* ---- v2 pagination: scoped (higher specificity than bootstrap/global) so the real
   category renders clean mono segmented buttons in the mock's design language. The mock
   pages have no pagination of their own, so this reuses their tokens/aesthetic. -------- */
.belv2-catalog .belv2-cat-foot .pagination.clearfix { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; }
.belv2-catalog .belv2-cat-foot .showall { display: none; }   /* per-page select already covers this */
.belv2-catalog .belv2-cat-foot .product-count { margin: 0; }
.belv2-catalog ul.pagination { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-family: var(--bel-font-mono); }
.belv2-catalog ul.pagination > li { margin: 0; float: none; }
.belv2-catalog ul.pagination > li > a,
.belv2-catalog ul.pagination > li > span {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 38px; height: 38px; padding: 0 12px; margin: 0;
  border: 1px solid var(--bel-rule); border-radius: var(--bel-r-sm);
  background: var(--bel-card); color: var(--bel-ink-2);
  font-size: 13px; font-family: inherit; line-height: 1; text-decoration: none;
  transition: background .12s var(--bel-ease), color .12s var(--bel-ease), border-color .12s var(--bel-ease);
}
.belv2-catalog ul.pagination > li > a:hover { background: var(--bel-sheet); color: var(--bel-ink); border-color: var(--bel-ink-3); text-decoration: none; }
.belv2-catalog ul.pagination > li.active > a,
.belv2-catalog ul.pagination > li.active > span { background: var(--bel-ink); color: var(--bel-paper); border-color: var(--bel-ink); }
.belv2-catalog ul.pagination > li.disabled > span { opacity: .4; }
.belv2-catalog ul.pagination > li.truncate > span { border: 0; background: none; min-width: auto; padding: 0 4px; color: var(--bel-muted); }
.belv2-catalog ul.pagination > li.pagination_previous > a,
.belv2-catalog ul.pagination > li.pagination_previous > span,
.belv2-catalog ul.pagination > li.pagination_next > a,
.belv2-catalog ul.pagination > li.pagination_next > span { padding: 0 14px; }
.belv2-catalog ul.pagination > li b { font-weight: 500; }

@media (max-width: 980px) {
  /* below the sidebar breakpoint the products span full width; the filter is moved
     off-canvas into the mobile drawer (see the .bel-filter-drawer rules below). */
  .belv2-catalog .belv2-catalog-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .belv2-catalog .belv2-page-head__row { align-items: flex-start; }
  .belv2-catalog .belv2-page-head__actions { width: 100%; }
  .belv2-catalog .belv2-page-head__actions .bel-btn { width: 100%; }
}
@media (max-width: 600px) {
  .belv2-catalog #product_list.list .belv2-prod-card { flex-direction: column; }
  .belv2-catalog #product_list.list .belv2-prod-card__media { width: auto; flex: none; border-right: 0; border-bottom: 1px solid var(--bel-rule); }
  .belv2-catalog #product_list.list .belv2-prod-card__body { padding-right: var(--bel-card-pad); }
  .belv2-catalog #product_list.list .belv2-prod-card__foot { position: static; transform: none; flex-direction: row; align-items: flex-end; text-align: left; padding-top: 10px; }
  .belv2-catalog #product_list.list .belv2-prod-card__foot > div { flex-direction: row; align-items: flex-end; }
  .belv2-catalog #product_list.list .belv2-prod-card__add { top: auto; bottom: var(--bel-card-pad); transform: translateY(0); }
}
