/* Electro Meuble Premium 5.1.3 — catalogue and bounded server-side search. */
body:has(.em-listing) { background: var(--em-cream, #f6f2ea); }
.em-listing { min-width: 0; }
.em-listing .em-page__head { padding: 0; margin: 0 0 22px; }
.em-listing .em-page__head h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; color: #0b4055; margin: 0; }
.em-listing .em-page__head p:not(.em-catalog-eyebrow) { color: #536b75; font-size: 15px; margin: 10px 0 0; line-height: 1.6; }
.em-catalog-eyebrow { font: 700 11px/1.6 var(--sans, sans-serif); letter-spacing: .13em; text-transform: uppercase; color: #007f9e; margin: 0 0 8px; }
.em-filter-column { align-self: start; background: #fffdf9; border: 1px solid #e6ded2; border-radius: 22px; padding: 22px; min-width: 0; }
.em-filter-column.em-column-empty { display: none; }
.em-filter-column #search_filters { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; }
.em-filter-column #search_filters .facet { margin: 0; padding: 18px 0; border-top: 1px solid #e8e4dc; }
.em-shell__grid:has(> .em-filter-column.em-column-empty) { grid-template-columns: minmax(0, 1fr); }
.em-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 22px; }
.em-filter-heading h2 { margin: 0; font: 700 16px/1.4 var(--sans, sans-serif); color: #0b4055; }
.em-filter-heading button { display: none; }
.em-filter-column .h6 { margin: 0 0 16px; }
.em-filter-column input[type='search'], .em-filter-column input[type='number'] { display: block; width: 100%; min-width: 0; border: 1px solid #d4d8d6; border-radius: 11px; background: #fff; color: #0b4055; min-height: 44px; padding: 11px 12px; font: 400 14px/1.4 var(--sans, sans-serif); box-shadow: none; }
.em-filter-column input:focus-visible, .em-filter-column a:focus-visible, .em-filter-column summary:focus-visible, .em-sort select:focus-visible, .em-filter-toggle:focus-visible { outline: 3px solid #0097bf; outline-offset: 3px; }
.em-refine-keyword { margin-bottom: 22px; }
.em-refine-keyword > label { display: block; color: #0b4055; font-weight: 650; font-size: 13px; margin-bottom: 9px; }
.em-filter-column .facet, .em-filter-section { margin: 0; border: 0; border-top: 1px solid #e8e4dc; padding: 18px 0; }
.em-filter-column .facet > summary, .em-filter-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font: 650 14px/1.5 var(--sans, sans-serif); color: #0b4055; list-style: none; }
.em-filter-column .facet > summary::-webkit-details-marker { display: none; }
.em-filter-column .facet > summary::after { content: '+'; font-size: 19px; font-weight: 400; color: #52737f; }
.em-filter-column .facet[open] > summary::after { content: '−'; }
.em-filter-options { display: grid; gap: 4px; padding-top: 12px; max-height: 270px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.em-filter-option { display: flex; align-items: flex-start; gap: 9px; min-height: 40px; margin: 0; padding: 8px 2px; color: #294f60; font: 400 13px/1.6 var(--sans, sans-serif); cursor: pointer; }
.em-filter-option input[type='checkbox'] { flex: 0 0 17px; appearance: auto; accent-color: #0b4055; width: 17px; height: 17px; min-height: 17px; padding: 0; margin: 2px 0 0; border-radius: 4px; }
.em-filter-option > span { flex: 1; min-width: 0; }
.em-filter-option small, .em-facet-link small { margin-left: auto; color: #607980; font-size: 11px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.em-filter-option:has(input:disabled) { opacity: .55; cursor: default; }
.em-filter-option.is-selected > span { color: #0b4055; font-weight: 650; }
.em-filter-budget { min-width: 0; border: 0; border-top: 1px solid #e8e4dc; margin: 0; padding: 18px 0; }
.em-filter-budget legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; color: #0b4055; font: 650 14px/1.5 var(--sans, sans-serif); }
.em-price-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; clear: both; }
.em-price-inputs label { display: block; min-width: 0; color: #536b75; font-size: 11px; }
.em-price-inputs input { margin-top: 6px; }
.em-price-inputs > span { padding-bottom: 13px; color: #78888e; }
.em-filter-stock { border-top: 1px solid #e8e4dc; padding-top: 18px; margin: 0 0 18px; }
.em-filter-actions { display: grid; gap: 8px; position: sticky; bottom: -22px; z-index: 1; margin: 0 -22px -4px; padding: 14px 22px 10px; border-top: 1px solid #e8e4dc; background: #fffdf9; }
.em-filter-actions .em-btn { width: 100%; min-height: 46px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px; background: #0b4055; color: #fff; border: 1px solid #0b4055; font-size: 13px; transition: background .2s ease, transform .2s ease; }
.em-filter-actions .em-btn:hover { background: #145870; transform: translateY(-1px); }
.em-filter-reset { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; color: #0b4055; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.em-filter-reset:hover { color: #007d9c; }
.em-listbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0; margin: 0 0 22px; border: 0; background: transparent; flex-wrap: wrap; }
.em-listbar__count { margin: 0; color: #536b75; font-size: 13px; }
.em-listbar__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.em-sort { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 0; }
.em-sort > label { font: 400 12px/1.4 var(--sans, sans-serif); margin: 0; color: #536b75; }
.em-sort > select { color: #0b4055; background: #fffdf9; border: 1px solid #e0d8cc; border-radius: 24px; min-height: 44px; padding: 10px 34px 10px 16px; font: 500 13px/1.4 var(--sans, sans-serif); max-width: 230px; width: auto; }
.em-sort-nojs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.em-filter-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #cbd6d9; border-radius: 24px; background: #fffdf9; color: #0b4055; padding: 10px 16px; font: 600 13px/1.4 var(--sans, sans-serif); }
#search_filter_toggler { display: none; }
#search_filter_toggler[hidden] { display: none !important; }
.em-filter-chips, .em-active-filters .active_filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; margin: 0 0 22px; background: transparent; border: 0; }
.em-filter-chips[hidden], .em-active-filters .active_filters.hide { display: none; }
.em-filter-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #c4d6d9; background: #eaf2f2; color: #0b4055; border-radius: 22px; font-size: 12px; padding: 7px 11px; line-height: 1.5; transition: background .18s ease; }
.em-filter-chip:hover { background: #d9e9eb; }
.em-filter-chip > span:last-child { font-size: 17px; line-height: 1; }
.em-filter-column .facet ul { list-style: none; padding: 10px 0 0; margin: 0; display: grid; gap: 5px; }
.em-facet-link { display: flex; align-items: center; gap: 9px; color: #294f60; padding: 7px 0; font-size: 13px; line-height: 1.5; }
.em-facet-check { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 17px; width: 17px; height: 17px; border: 1px solid #9fb0b7; border-radius: 4px; font-size: 12px; }
.em-facet-link.is-selected .em-facet-check { background: #0b4055; border-color: #0b4055; color: #fff; }
.em-filter-column .facet-label { display: flex; align-items: center; gap: 8px; color: #294f60; font-size: 13px; padding: 6px 0; }
.em-filter-column .facet-label a { color: inherit; }
.em-filter-column .facet .title { cursor: pointer; }
.em-filter-column .facet .facet-title { font: 650 14px/1.5 var(--sans, sans-serif); color: #0b4055; margin: 0; }
.em-filter-column .facet .magnitude { font-size: 11px; color: #607980; }
.em-filter-column .ui-slider { margin: 16px 8px 10px; }
.em-filter-backdrop { display: none; }
.em-listing .em-panel { padding: clamp(24px, 5vw, 48px); border: 1px solid #e6ded2; border-radius: 22px; background: #fffdf9; }
.em-listing .em-panel h2 { font-size: 22px; line-height: 1.35; margin: 0 0 12px; }
.em-listing .em-panel p { color: #536b75; line-height: 1.65; }
.em-listing .products { column-gap: 20px; row-gap: 26px; }
.em-listing .em-product-card { border-radius: 18px; border: 1px solid #e6ded2; overflow: hidden; background: #fffdf9; box-shadow: none; transition: transform .22s ease, box-shadow .22s ease; }
.em-listing .em-product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #0b405510; }
.em-listing .em-product-card .product-description { padding: 16px; }
.em-listing .em-product-card .product-title a { color: #0b4055; }
.em-listing .em-product-card .price { color: #0b4055; font-size: 18px; }
@media (min-width: 900px) {
  body:not(#product) .em-shell__grid:has(> .em-filter-column:not(.em-column-empty)) { grid-template-columns: 264px minmax(0, 1fr); gap: 28px; }
  .em-filter-column { position: sticky; top: calc(var(--em-header-height, 110px) + 22px); max-height: calc(100vh - var(--em-header-height, 110px) - 44px); overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 899px) {
  .em-shell__grid { grid-template-columns: minmax(0, 1fr); }
  #left-column.em-filter-column:not(.em-column-empty) { display: block; position: static; width: 100%; max-width: none; height: auto; max-height: none; margin: 0 0 24px; transform: none; visibility: visible; opacity: 1; overflow: visible; }
  .em-search-enhanced #left-column.em-filter-column:not(.em-column-empty) { position: fixed; top: 0; bottom: 0; left: 0; width: min(355px, calc(100vw - 24px)); height: 100vh; max-height: 100dvh; z-index: 1301; background: #fffdf9; border-radius: 0 22px 22px 0; border: 0; padding: 22px; margin: 0; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-102%); visibility: hidden; opacity: 1; transition: transform .28s ease, visibility .28s ease; box-shadow: 12px 0 45px #0b40551f; }
  .em-search-enhanced #left-column.em-filter-column.is-open { transform: translateX(0); visibility: visible; transition-property: transform; }
  .em-search-enhanced .em-filter-heading button { display: inline-flex; align-items: center; justify-content: center; color: #0b4055; background: #f3f0e8; border: 0; border-radius: 50%; width: 42px; height: 42px; font-size: 26px; padding: 0; cursor: pointer; }
  .em-search-enhanced #search_filter_toggler { display: inline-flex; }
  .em-search-enhanced .em-filter-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #092f45a3; z-index: 1300; backdrop-filter: blur(3px); }
  body.em-filters-open { overflow: hidden; }
  .em-listing .em-page__head { margin-bottom: 18px; }
  .em-listbar { gap: 12px; margin-bottom: 18px; }
  .em-listbar__count { flex-basis: 100%; }
  .em-listbar__actions { margin-left: 0; width: 100%; justify-content: space-between; }
  .em-sort > label { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
  .em-sort select { max-width: min(230px, 55vw); }
  .em-listing .products { gap: 12px; }
  .em-listing .em-product-card .product-description { padding: 12px; }
  .em-listing .em-product-card .price { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .em-filter-column, .em-filter-actions .em-btn, .em-filter-chip, .em-listing .em-product-card { transition: none !important; }
  .em-filter-actions .em-btn:hover, .em-listing .em-product-card:hover { transform: none; }
}

/* Electro Meuble 5.3.3 — normalisation des filtres Classic / ps_facetedsearch. */
.em-filter-column #search_filters_wrapper,
.em-filter-column #search_filters {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.em-filter-column #search_filters ul,
.em-filter-column #search_filters ol,
.em-filter-column #search_filters_wrapper ul,
.em-filter-column #search_filters_wrapper ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.em-filter-column #search_filters li,
.em-filter-column #search_filters_wrapper li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.em-filter-column #search_filters .facet > ul,
.em-filter-column #search_filters .category-top-menu,
.em-filter-column #search_filters .category-sub-menu {
  display: grid;
  gap: 3px;
  padding-top: 10px;
}
.em-filter-column #search_filters .category-sub-menu .category-sub-menu {
  padding-top: 3px;
  padding-left: 16px;
}
.em-filter-column #search_filters .category-sub-menu a,
.em-filter-column #search_filters .category-top-menu a,
.em-filter-column #search_filters .facet-label a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  color: #294f60;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.em-filter-column #search_filters .category-sub-menu a:hover,
.em-filter-column #search_filters .category-top-menu a:hover,
.em-filter-column #search_filters .facet-label a:hover {
  color: #007f9e;
  text-decoration: none;
}
.em-filter-column #search_filters .collapse-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  color: #52737f;
}
.em-filter-column #search_filters .collapse-icons .material-icons,
.em-filter-column #search_filters .ok .material-icons {
  display: inline-block !important;
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden;
  color: currentColor;
}
.em-filter-column #search_filters .collapse-icons .material-icons::before,
.em-filter-column #search_filters .ok .material-icons::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--em-filter-icon) center / contain no-repeat;
  mask: var(--em-filter-icon) center / contain no-repeat;
}
.em-filter-column #search_filters .collapse-icons .add {
  --em-filter-icon: url("../img/icons/add.svg");
}
.em-filter-column #search_filters .collapse-icons .remove {
  --em-filter-icon: url("../img/icons/remove.svg");
  display: none !important;
}
.em-filter-column #search_filters [aria-expanded='true'] .collapse-icons .add {
  display: none !important;
}
.em-filter-column #search_filters [aria-expanded='true'] .collapse-icons .remove {
  display: inline-block !important;
}

/* Classic's category tree can be rendered by displayLeftColumn outside
 * #search_filters. Keep its toggles aligned and let catalog-fixes.js replace
 * the Material Icons font without making both states visible. */
.em-filter-column .block-categories ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.em-filter-column .block-categories .category-sub-menu {
  display: grid;
  gap: 3px;
  padding-top: 8px;
}
.em-filter-column .block-categories .category-sub-menu .category-sub-menu {
  padding-top: 3px;
  padding-left: 16px;
}
.em-filter-column .block-categories .category-sub-menu > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  column-gap: 6px;
  align-items: center;
  min-width: 0;
}
.em-filter-column .block-categories .category-sub-menu > li > a {
  grid-column: 1;
  min-width: 0;
  max-width: 100%;
  float: none;
  color: #294f60;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.em-filter-column .block-categories .category-sub-menu > li > .collapse-icons,
.em-filter-column .block-categories .category-sub-menu > li > .arrows {
  grid-column: 2;
  grid-row: 1;
  position: static;
  float: none;
  align-self: center;
}
.em-filter-column .block-categories .category-sub-menu > li > .collapse {
  grid-column: 1 / -1;
  min-width: 0;
}
.em-filter-column .block-categories .collapse-icons,
.em-filter-column .block-categories .arrows {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  color: #52737f;
  cursor: pointer;
}
.em-filter-column .block-categories .collapse-icons .material-icons,
.em-filter-column .block-categories .arrows .material-icons {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
}
.em-filter-column .block-categories .collapse-icons .remove,
.em-filter-column .block-categories .arrows .arrow-down {
  display: none !important;
}
.em-filter-column .collapse-icons[aria-expanded='true'] .add,
.em-filter-column .arrows[aria-expanded='true'] .arrow-right,
.em-filter-column [aria-expanded='true'] > .collapse-icons .add,
.em-filter-column [aria-expanded='true'] > .arrows .arrow-right {
  display: none !important;
}
.em-filter-column .collapse-icons[aria-expanded='true'] .remove,
.em-filter-column .arrows[aria-expanded='true'] .arrow-down,
.em-filter-column [aria-expanded='true'] > .collapse-icons .remove,
.em-filter-column [aria-expanded='true'] > .arrows .arrow-down {
  display: inline-block !important;
}
.em-filter-column #search_filters .ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 82px;
  min-height: 44px;
  margin: 12px 0 0;
  padding: 10px 16px;
  border: 1px solid #0b4055;
  border-radius: 10px;
  background: #0b4055;
  color: #fff;
  font: 650 13px/1.2 var(--sans, sans-serif);
  text-transform: none;
  box-shadow: none;
}
.em-filter-column #search_filters .ok .material-icons {
  --em-filter-icon: url("../img/icons/check.svg");
}
.em-filter-column #search_filters .ok:hover,
.em-filter-column #search_filters .ok:focus-visible {
  background: #145870;
  border-color: #145870;
}
@media (max-width: 899px) {
  .em-filter-column #search_filters_wrapper,
  .em-filter-column #search_filters {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
}
