/* ==========================================================================
html body Cartes produits « installateurs » (template miniatures/product.tpl)
   ========================================================================== */

.products .js-product.product { display: flex; }
html body .product-miniature.msc-card { width: 100%; display: flex; }
html body .product-miniature.msc-card .thumbnail-container.msc-card__inner {
  width: 100%; height: auto; margin-bottom: 1.5rem;
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; box-sizing: border-box;
  background: #fff; border: 1px solid #E1E5EB; border-radius: 12px; box-shadow: none;
  transition: box-shadow .2s, border-color .2s;
}
html body .product-miniature.msc-card .thumbnail-container.msc-card__inner:hover { border-color: #C9D0DA; box-shadow: 0 6px 18px rgba(20, 33, 61, .08); }
html body .msc-card__head { display: flex; flex-direction: column; gap: 4px; text-align: left; }
html body .msc-card__ref {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 18px; font-weight: 700;
  color: #14213D !important; letter-spacing: -.01em; line-height: 1.25; word-break: break-word; text-decoration: none;
}
html body .msc-card__ref:hover { color: #0A6E99 !important; }
html body .product-miniature.msc-card .msc-card__name { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; text-transform: none; }
html body .product-miniature.msc-card .msc-card__name a { color: #5B6576; text-align: left; }
html body .msc-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
html body .msc-chip { font-size: 12px; font-weight: 700; color: #14213D; background: #E8EEF6; border-radius: 6px; padding: 3px 8px; }
html body .product-miniature.msc-card .msc-card__media { background: #FAFBFC; border-radius: 8px; }
html body .product-miniature.msc-card .msc-card__media img { max-height: 170px; width: auto; margin: 0 auto; object-fit: contain; }
html body .msc-card__desc { font-size: 13.5px; line-height: 1.5; color: #2D3748; text-align: left; flex: 1; }
html body .msc-card__desc p { position: relative; margin: 0 0 2px; padding-left: 14px; }
html body .msc-card__desc p::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #8A94A6; }
html body .msc-card__desc p:empty { display: none; }
html body .msc-card__desc p:nth-of-type(n+7) { display: none; }
html body .product-miniature.msc-card .msc-card__price { border-top: 1px dashed #D5DBE3; padding-top: 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
html body .msc-card__price-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5B6576; }
html body .product-miniature.msc-card .msc-card__price-value { font-size: 26px; font-weight: 800; color: #14213D; letter-spacing: -.02em; }
html body .msc-card__avail { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #93370D; text-align: left; }
html body .msc-card__avail-dot { width: 8px; height: 8px; border-radius: 50%; background: #DC6803; flex: none; }
html body .msc-card__avail--available { color: #0E6245; }
html body .msc-card__avail--available .msc-card__avail-dot { background: #12B76A; }
html body .msc-card__buy { display: flex; gap: 8px; margin: 0; }
html body .msc-card__qty { width: 64px; height: 44px; box-sizing: border-box; text-align: center; font-size: 15px; font-weight: 700; border: 1px solid #C9D0DA; border-radius: 8px; color: #14213D; }
html body .msc-card__add, html body .msc-card__see {
  flex: 1; height: 44px; border: 0; border-radius: 8px; background: #0A6E99; color: #fff !important;
  font-size: 15px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none;
}
html body .msc-card__add:hover, html body .msc-card__see:hover { background: #08506F; }
/* ajustements après contrôle visuel */
html body .msc-card__head { padding-right: 34px; }
html body .msc-card__ref { font-size: 16px; }
html body .msc-card__see { flex: none; }
html body .msc-card__desc { position: relative; max-height: 13.5em; overflow: hidden; }
html body .msc-card__desc h1, html body .msc-card__desc h2, html body .msc-card__desc h3, html body .msc-card__desc h4, html body .msc-card__desc h5, html body .msc-card__desc h6 { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0 0 4px; }
html body .msc-card__desc table, html body .msc-card__desc img { display: none; }
/* alignement des cartes d'une même ligne + texte homogène */
html body .product-miniature.msc-card .thumbnail-container.msc-card__inner { flex: 1 1 auto; }
html body .msc-card__desc, html body .msc-card__desc * { font-size: 13.5px !important; line-height: 1.5 !important; font-family: inherit !important; }
html body .msc-card__desc strong, html body .msc-card__desc b { font-weight: 700; }
html body .msc-card__desc { flex: 0 1 auto; }
html body .msc-card__desc + *, html body .msc-card__media + :not(.msc-card__desc) { margin-top: auto; }

/* Pages de liste plus larges : cartes moins étroites */
@media (min-width: 1200px) {
  html body#category #wrapper > .container,
  html body#search #wrapper > .container,
  html body#manufacturer #wrapper > .container,
  html body#supplier #wrapper > .container,
  html body#prices-drop #wrapper > .container,
  html body#new-products #wrapper > .container,
  html body#best-sales #wrapper > .container { width: min(1440px, 96vw); max-width: none; }
  html body#category #left-column, html body#search #left-column, html body#manufacturer #left-column,
  html body#supplier #left-column, html body#prices-drop #left-column, html body#new-products #left-column,
  html body#best-sales #left-column { width: 260px; max-width: 260px; flex: 0 0 260px; }
  html body#category #content-wrapper.left-column, html body#search #content-wrapper.left-column, html body#manufacturer #content-wrapper.left-column,
  html body#supplier #content-wrapper.left-column, html body#prices-drop #content-wrapper.left-column, html body#new-products #content-wrapper.left-column,
  html body#best-sales #content-wrapper.left-column { width: calc(100% - 260px); max-width: calc(100% - 260px); flex: 0 0 calc(100% - 260px); }
}
html body .product-miniature.msc-card .msc-card__media img { max-height: 150px; }
html body .msc-card__add .material-icons { font-size: 20px; margin-right: 6px; }

/* Quantité avec boutons - / + */
html body .msc-qty { display: flex; align-items: stretch; border: 1px solid #C9D0DA; border-radius: 8px; overflow: hidden; background: #fff; flex: none; }
html body .msc-qty .msc-card__qty { width: 46px; border: 0; border-radius: 0; -moz-appearance: textfield; appearance: textfield; padding: 0; }
html body .msc-qty .msc-card__qty::-webkit-outer-spin-button, html body .msc-qty .msc-card__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body .msc-qty__btn { width: 38px; height: 44px; border: 0; background: #F3F5F8; color: #14213D; font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; }
html body .msc-qty__btn:hover { background: #E1E5EB; }
html body .msc-qty__btn:focus-visible { outline: 2px solid #0A6E99; outline-offset: -2px; }

/* Sous-catégories compactes : pastilles vignette + nom */
html body #subcategories.card { padding: 14px 16px; margin-bottom: 16px; border: 1px solid #E1E5EB; border-radius: 12px; box-shadow: none; }
html body #subcategories .subcategory-heading { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5B6576; margin: 0 0 10px; }
html body #subcategories ul.subcategories-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
html body #subcategories ul.subcategories-list li { float: none; width: auto; min-height: 0; margin: 0; padding: 4px 14px 4px 4px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #D5DBE3; border-radius: 999px; text-align: left; transition: border-color .15s, background .15s; }
html body #subcategories ul.subcategories-list li:hover { border-color: #0A6E99; background: #F2F8FB; }
html body #subcategories .subcategory-image { padding: 0; margin: 0; flex: none; }
html body #subcategories .subcategory-image a.img { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #F3F5F8; overflow: hidden; }
html body #subcategories .subcategory-image a.img:empty::before { content: ''; width: 14px; height: 14px; border-radius: 3px; background: #C9D0DA; }
html body #subcategories .subcategory-image img { width: 34px; height: 34px; max-width: none; object-fit: contain; }
html body #subcategories li h5 { margin: 0; line-height: 1.2; }
html body #subcategories li a.subcategory-name { font-size: 14px; font-weight: 700; color: #14213D; text-transform: none; text-decoration: none; }
html body #subcategories li a.subcategory-name:hover { color: #0A6E99; }
html body #subcategories .cat_desc { display: none; }
html body #subcategories ul.subcategories-list li { min-width: 0; max-width: none; }
html body #subcategories .subcategory-image { height: 40px; }
/* sous-catégories : tuiles à angles légèrement arrondis (plus de pilules) */
html body #subcategories ul.subcategories-list li { border-radius: 8px; padding: 6px 14px 6px 6px; }
html body #subcategories .subcategory-image a.img { border-radius: 6px; background: #F3F5F8; }

/* Colonne de gauche : arbre de catégories + filtres (recherche à facettes) */
html body #left-column .block-categories,
html body #left-column #search_filters { background: #fff; border: 1px solid #E1E5EB; border-radius: 12px; box-shadow: none; padding: 18px 18px 8px; margin-bottom: 16px; }
html body #search_filters > .h6, html body #search_filters > p.text-uppercase { font-size: 16px; font-weight: 800; color: #14213D; text-transform: none; margin: 0 0 12px; }
html body #search_filters .clear-all-wrapper .btn, html body #_desktop_search_filters_clear_all .btn { font-size: 13px; font-weight: 700; color: #0A6E99; background: transparent; border: 0; padding: 0 0 10px; text-transform: none; box-shadow: none; }
html body #search_filters .facet { padding: 12px 0; border-top: 1px solid #EDF0F4; }
html body #search_filters .facet .facet-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5B6576; margin: 0 0 8px; }
html body #search_filters .facet ul { margin: 0; padding: 0; }
html body #search_filters .facet li { padding: 0; margin: 0 0 2px; }
html body #search_filters .facet .facet-label { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 5px 4px; border-radius: 6px; cursor: pointer; }
html body #search_filters .facet .facet-label:hover { background: #F3F5F8; }
html body #search_filters .facet .facet-label a, html body #search_filters .facet .facet-label .search-link { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 500; color: #14213D; text-decoration: none; }
html body #search_filters .facet .facet-label .magnitude { font-size: 12px; font-weight: 700; color: #5B6576; background: #F0F2F5; border-radius: 6px; padding: 1px 7px; }
html body #search_filters .facet .facet-label.active .search-link { font-weight: 700; color: #0A6E99; }
html body #search_filters .facet .custom-checkbox { position: relative; flex: none; top: 0; }
html body #search_filters .facet .custom-checkbox input[type=checkbox] + span { width: 18px; height: 18px; margin: 0; border: 1.5px solid #9AA4B2; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; }
html body #search_filters .facet .custom-checkbox input[type=checkbox]:checked + span { background: #0A6E99; border-color: #0A6E99; }
html body #search_filters .facet .custom-checkbox input[type=checkbox] + span .checkbox-checked { color: #fff; font-size: 16px; margin: 0; }
html body #js-active-search-filters.active_filters { background: #fff; border: 1px solid #E1E5EB; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
html body #js-active-search-filters .active-filter-title { font-size: 13px; font-weight: 800; color: #14213D; }
html body #js-active-search-filters .filter-block { background: #E8EEF6; color: #14213D; border-radius: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; margin: 2px 4px 2px 0; box-shadow: none; }
html body #left-column .block-categories .category-top-menu a, html body #left-column .block-categories .h6 { color: #14213D; }
html body #search_filters .facet .facet-title { white-space: normal; overflow: visible; }
html body #search_filters .facet .facet-label .search-link { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
html body #search_filters .facet .facet-label .magnitude { flex: none; }
html body #search_filters .facet .custom-checkbox input[type=checkbox] { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; z-index: 1; }
