/* ============================================
   SHOPTABLOUSE - CUSTOM CSS
   Charte graphique harmonisée sur #0098ed
   ============================================ */

/* --- Ancien Header sticky — désactivé, remplacé par .st-sticky-wrapper --- */
/* #header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
@media (max-width: 767px) {
    #header {
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
} */

/* ============================================
   1. BOUTON "AJOUTER AU PANIER" + BOUTONS PRIMAIRES
   Ancien : #24b9d7 → Nouveau : #0098ed
   ============================================ */
.btn-primary,
.btn-primary:hover {
    background-color: #0098ed;
    border-color: #0098ed;
}
.btn-primary:hover {
    background-color: #007cc2;
}
.btn-primary.focus,
.btn-primary:focus {
    background-color: #007cc2;
    border-color: #007cc2;
}
.btn-primary.active,
.btn-primary:active,
.open > .btn-primary.dropdown-toggle {
    background-color: #007cc2;
    border-color: #007cc2;
}
.btn-primary.active.focus,
.btn-primary.active:focus,
.btn-primary.active:hover,
.btn-primary:active.focus,
.btn-primary:active:focus,
.btn-primary:active:hover,
.open > .btn-primary.dropdown-toggle.focus,
.open > .btn-primary.dropdown-toggle:focus,
.open > .btn-primary.dropdown-toggle:hover {
    background-color: #006ba5;
    border-color: #006ba5;
}

/* ============================================
   2. BANDEAU "PROMO !" + BADGE REMISE "-10%"
   Ancien : #f39d72 (orange) → Nouveau : #0098ed
   ============================================ */
.product-flags li.product-flag.discount,
.product-flags li.product-flag.discount-amount,
.product-flags li.product-flag.discount-percentage {
    background-color: #0098ed;
}
.product-flags li.product-flag.on-sale {
    background-color: #0098ed;
}
/* Badge discount dans les prix */
.has-discount .discount {
    background: #0098ed;
}
/* Couleur texte prix en promo */
.has-discount.product-price,
.has-discount p,
.has-discount .page-content.page-cms ul,
.page-content.page-cms .has-discount ul {
    color: #0098ed;
}

/* ============================================
   3. COULEUR ACCENT GÉNÉRALE (liens, survol, etc.)
   Ancien : #24b9d7 → Nouveau : #0098ed
   ============================================ */

/* Liens généraux */
a {
    color: #0098ed;
}
a:focus,
a:hover {
    color: #007cc2;
}

/* Header liens survol */
#header a:hover,
#header .top-menu a[data-depth="0"]:hover {
    color: #0098ed;
}

/* Barre de recherche focus */
.form-control:focus {
    outline: .1875rem solid #0098ed;
}
.input-group.focus {
    outline: .1875rem solid #0098ed;
}
.search-widget form input[type=text]:focus {
    outline: 3px #0098ed solid;
}

/* Radio bouton checked */
.custom-radio input[type=radio]:checked + span {
    background-color: #0098ed;
}

/* Pagination active */
.pagination .current a {
    color: #0098ed;
}
.page-item.active .page-link,
.page-item.active .page-link:focus,
.page-item.active .page-link:hover {
    background-color: #0098ed;
    border-color: #0098ed;
}
.page-link {
    color: #0098ed;
}
.page-link:focus,
.page-link:hover {
    color: #007cc2;
}

/* Onglets produit */
.tabs .nav-tabs .nav-link.active {
    color: #0098ed;
}
.tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link:hover {
    border-bottom-color: #0098ed;
}

/* Prix produit */
.product-price {
    color: #0098ed;
}

/* Dropdown survol */
.dropdown:hover .expand-more,
.dropdown-item:focus,
.dropdown-item:hover {
    color: #0098ed;
}
.dropdown-item.active,
.dropdown-item.active:focus,
.dropdown-item.active:hover {
    background-color: #0098ed;
}

/* Quick view survol */
.product-miniature .highlighted-informations .quick-view:hover {
    color: #0098ed;
}

/* Sous-catégories survol */
#subcategories ul li:hover .subcategory-image a {
    border-color: #0098ed;
}

/* Facettes survol */
.facet-dropdown.open > .select-title {
    border-color: #0098ed;
}
.brands-sort .select-list:hover,
.products-sort-order .select-list:hover,
.suppliers-sort .select-list:hover,
.facet-dropdown .select-list:hover {
    background: #0098ed;
}

/* Catégories sidebar */
#subcategories ul li .subcategory-name:hover,
.block-categories .arrows .arrow-down:hover,
.block-categories .arrows .arrow-right:hover,
.block-categories .collapse-icons .add:hover,
.block-categories .collapse-icons .remove:hover {
    color: #0098ed;
}

/* Cart preview active */
#header .header-nav .cart-preview.active {
    background: #24A0DC;
}
#header .header-nav .blockcart a:hover {
    color: #24A0DC;
}

/* Product flag par défaut */
.product-flags li.product-flag {
    background: #0098ed;
}

/* Bloc reassurance newsletter etc. */
.block_newsletter form input[type=text]:focus + button .search,
.btn-unstyle:focus .expand-more,
.search-widget form button[type=submit] .search:hover,
.block_newsletter form button[type=submit] .search:hover,
.footer-container li a:hover,
.account-list a:hover {
    color: #0098ed;
}

/* Promo code border */
.block-promo .promo-input + button {
    border-color: #0098ed;
}

/* Checkout step number */
body#checkout section.checkout-step.-reachable.-current .step-number {
    background-color: #0098ed;
}

/* Address item selected */
body#checkout section.checkout-step .address-item.selected {
    border-color: #0098ed;
}

/* Carousel control */
.carousel .carousel-control .icon-next:hover i,
.carousel .carousel-control .icon-prev:hover i {
    color: #0098ed;
}

/* Social hover */
.block-social ul li:hover {
    background-color: #0098ed;
}

/* Product images thumb selected */
.product-images > li.thumb-container .thumb.selected,
.product-images > li.thumb-container .thumb:hover,
#product-modal .modal-content .modal-body .product-images img:hover {
    border-color: #0098ed;
}

/* Product customization focus */
.product-customization .product-message:focus {
    outline: .1875rem solid #0098ed;
}

/* Blockcart modal product name */
#blockcart-modal .product-name {
    color: #0098ed;
}

/* Checkout link hover */
body#checkout a:hover {
    color: #007cc2;
}

/* Newsletter focus */
.block_newsletter form input[type=email]:focus {
    border-color: #0098ed;
}
.block_newsletter form input[type=text]:focus {
    outline: 3px #0098ed solid;
}

/* Btn link */
.btn-link {
    color: #0098ed;
}
.btn-link:focus,
.btn-link:hover {
    color: #007cc2;
}

/* Btn outline primary */
.btn-outline-primary {
    color: #0098ed;
    border-color: #0098ed;
}
.btn-outline-primary:hover,
.btn-outline-primary.focus,
.btn-outline-primary:focus,
.btn-outline-primary.active,
.btn-outline-primary:active {
    background-color: #0098ed;
    border-color: #0098ed;
}

/* Group filestyle */
.group-span-filestyle .btn-default,
.bootstrap-touchspin .group-span-filestyle .btn-touchspin,
.group-span-filestyle .bootstrap-touchspin .btn-touchspin {
    background: #0098ed;
}

/* List group active */
.list-group-item.active,
.list-group-item.active:focus,
.list-group-item.active:hover {
    background-color: #0098ed;
    border-color: #0098ed;
}

/* --- Masquer sous-catégories --- */
#subcategories {
    display: none;
}
.block-categories.hidden-sm-down,
#subcategories,
.subcategory-heading,
section#main .subcategories-list,
#js-product-list-header + #subcategories,
.block-category + #subcategories {
    display: none !important;
}


/* ==========================================================================
   REFONTE SHOPTABLOUSE — Mai 2026
   Header + Page produit
   ========================================================================== */

/* --- VARIABLES DE MARQUE --- */
:root {
  --st-dark: #062A4D;
  --st-dark-2: #0a3d6b;
  --st-blue: #24A0DC;
  --st-blue-light: #f0f7fc;
  --st-blue-pale: #f5f8fb;
  --st-blue-border: #e0ecf5;
  --st-blue-text: #5a8ab5;
  --st-blue-sep: #c8ddf0;
  --st-blue-header-border: #e8f0f8;
  --st-green: #5DCAA5;
  --st-red: #E8443A;
  --st-red-dark: #d43a31;
}

html { scroll-padding-top: 90px; }
@media (max-width: 768px) { html { scroll-padding-top: 50px; } }

/* --- 1. TOP BAR --- */
.st-topbar {
  background: linear-gradient(90deg, var(--st-dark) 0%, var(--st-dark-2) 100%);
  padding: 3px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 26px;
  line-height: 1;
}
.st-topbar__left, .st-topbar__right { display: flex; align-items: center; gap: 10px; }
.st-topbar__brand { color: var(--st-blue); font-size: 11px; font-weight: 600; }
.st-topbar__sep { color: rgba(255,255,255,0.2); font-size: 11px; }
.st-topbar__since { color: rgba(255,255,255,0.55); font-size: 10px; }
.st-topbar__target { color: var(--st-green); font-size: 10px; font-weight: 500; }
.st-topbar__email { color: #fff !important; font-size: 10px; text-decoration: none; display: flex; align-items: center; gap: 3px; }
.st-topbar__email:hover { color: #fff !important; opacity: 0.8; }
.st-topbar__email svg { width: 12px; height: 12px; fill: #fff; }
.st-topbar__payments { display: flex; gap: 3px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.12); }
.st-topbar__payment-badge { background: rgba(255,255,255,0.9); border-radius: 2px; padding: 0 4px; font-size: 8px; font-weight: 600; line-height: 16px; }
.st-topbar__payment-badge--visa { color: #1a1f71; }
.st-topbar__payment-badge--mc { color: #eb001b; }
.st-topbar__payment-badge--pp { color: #253b80; }
.st-topbar__social { display: flex; gap: 6px; }
.st-topbar__social a { color: var(--st-blue); text-decoration: none; }
.st-topbar__social svg { width: 14px; height: 14px; fill: var(--st-blue); }

@media (max-width: 768px) {
  .st-topbar { padding: 2px 12px; height: 22px; }
  .st-topbar__since, .st-topbar__email, .st-topbar__social, .st-topbar__brand, .st-topbar__sep { display: none; }
  .st-topbar__payments { border-left: none; padding-left: 0; }
}

/* --- 2. BOUTON DEVIS --- */
.st-devis-btn { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg, var(--st-red), var(--st-red-dark)); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; text-decoration: none; border: none; cursor: pointer; white-space: nowrap; transition: opacity 0.2s; height: 36px; box-sizing: border-box; }
.st-devis-btn:hover { opacity: 0.9; color: #fff; text-decoration: none; }
.st-devis-btn svg { width: 16px; height: 16px; fill: currentColor; }
.st-devis-bar-mobile { display: none; padding: 8px 15px; align-items: center; justify-content: center; background: transparent; }
.st-devis-bar-mobile a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: var(--st-blue); padding: 10px 28px; border-radius: 8px; box-shadow: 0 2px 8px rgba(36,160,220,0.3); }

@media (max-width: 768px) {
  .st-devis-btn--header { display: none; }
  .st-devis-bar-mobile { display: flex; justify-content: center; background: transparent; }
}

/* --- 3. MENU (niveau 0 uniquement, sous-menus protégés) --- */

/* Centrer le menu top-level */
#top-menu[data-depth="0"] {
  justify-content: center;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

/* Liens de niveau 0 — gros, uppercase, gras */
#top-menu[data-depth="0"] > li > a[data-depth="0"] {
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--st-dark) !important;
  padding: 8px 18px !important;
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
#top-menu[data-depth="0"] > li > a[data-depth="0"]:hover {
  color: var(--st-blue) !important;
  border-bottom-color: var(--st-blue);
}
#top-menu[data-depth="0"] > li.current > a[data-depth="0"] {
  color: var(--st-blue) !important;
  border-bottom-color: var(--st-blue);
}

/* Séparateurs : border-left sur le lien (fiable en flex, remplace ::before) */
#header #top-menu[data-depth="0"] > li + li > a[data-depth="0"] {
  border-left: 1px solid var(--st-blue-sep) !important;
}
/* Supprimer tout ::before du thème ou des anciennes versions */
#header #top-menu[data-depth="0"] > li::before,
#header #top-menu[data-depth="0"] > li::after {
  content: none !important;
  display: none !important;
}

/* Conteneur menu bordures */
#_desktop_top_menu {
  border-top: 1px solid var(--st-blue-header-border);
  border-bottom: 1px solid var(--st-blue-header-border);
  margin: 0 !important;
  padding: 0 !important;
}

/* Réduire l'espace entre header-nav et menu */
.header-top .container { padding-top: 0 !important; padding-bottom: 0 !important; }
.header-top .row { margin-top: 0 !important; margin-bottom: 0 !important; }

/* === BARRES GRISES : tuer la bordure Bootstrap .popover === */
#header .popover.sub-menu,
#header #top-menu .popover,
#header .sub-menu,
.top-menu .popover.sub-menu {
  border: none !important;
}
/* Sous-menus cachés par défaut */
#header #top-menu[data-depth="0"] > li > .sub-menu {
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0;
  transition: opacity 0.15s;
}
/* Sous-menus visibles au survol */
#header #top-menu[data-depth="0"] > li:hover > .sub-menu {
  max-height: 600px !important;
  overflow: visible !important;
  padding: 8px 0 !important;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  background: #fff;
  border-radius: 0 0 6px 6px;
  z-index: 1000;
  border: none !important;
}
/* Collapsed = pas de taille, pas de border, overflow caché */
#header .popover.sub-menu.collapse:not(.show) {
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Items du menu : aucune bordure du thème */
#top-menu li,
#top-menu > li,
.top-menu li,
.top-menu > li,
#_desktop_top_menu li,
#_desktop_top_menu a {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-right: none !important;
}
#top-menu[data-depth="0"] > li {
  border: none !important;
  background: none !important;
}
/* Tuer les pseudo-elements du thème sur les li */
#_desktop_top_menu .top-menu > li::after {
  display: none !important;
}

/* header-nav propre */
#header .header-nav {
  max-height: none !important;
  border-bottom: none !important;
  overflow: visible !important;
}

/* --- Sous-menus : style propre au survol --- */
#top-menu .sub-menu {
  z-index: 1000;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0 0 6px 6px;
  border: none !important;
}
#top-menu .sub-menu .top-menu {
  display: block !important;
}
#top-menu .sub-menu .top-menu > li + li::before {
  content: none !important;
}
#top-menu .sub-menu .top-menu > li > a {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--st-dark) !important;
  padding: 8px 16px !important;
  border-bottom: none !important;
  display: block !important;
  transition: background 0.15s, color 0.15s;
}
#top-menu .sub-menu .top-menu > li > a:hover {
  background: var(--st-blue-light) !important;
  color: var(--st-blue) !important;
}

/* === TITRES DE COLONNES SOUS-MENUS === */
/* depth-1 = titres non cliquables (gras, uppercase, border-bottom bleu) */
.sub-menu .top-menu[data-depth="1"] > li > a[data-depth="1"] {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--st-dark) !important;
  padding: 10px 16px 6px !important;
  border-bottom: 2px solid var(--st-blue) !important;
  margin-bottom: 2px !important;
  pointer-events: none !important;
  cursor: default !important;
}
/* depth-2 = liens normaux cliquables */
.sub-menu .top-menu[data-depth="2"] > li > a[data-depth="2"] {
  font-size: 13px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--st-dark) !important;
  padding: 6px 16px 6px 20px !important;
  pointer-events: auto !important;
}
.sub-menu .top-menu[data-depth="2"] > li > a[data-depth="2"]:hover {
  background: var(--st-blue-light) !important;
  color: var(--st-blue) !important;
}

/* --- 3b. LAYOUT HEADER v6 — ALIGNEMENT FINAL --- */

/* Le conteneur hidden-sm-down doit être flex pour que right-nav prenne toute la largeur */
.header-nav .hidden-sm-down {
  display: flex !important;
  flex-wrap: nowrap;
}

/* Masquer Contactez-nous (displayNav1) */
.header-nav .col-md-5 { display: none !important; }

/* right-nav = TOUTE la largeur, flex horizontal */
.header-nav .right-nav,
.header-nav .col-md-7.right-nav {
  display: flex !important;
  align-items: center;
  gap: 15px;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding: 10px 0;
}

/* Logo déplacé par JS — premier élément */
.st-logo-moved {
  flex-shrink: 0;
  max-width: 160px;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  order: 1;
}
.st-logo-moved img,
.st-logo-moved h1 img {
  max-height: 50px;
  width: auto;
}
.st-logo-moved h1 { margin: 0; }

/* Bouton devis — après le logo */
.right-nav .st-devis-btn--header {
  flex-shrink: 0;
  order: 2;
}

/* Search déplacé par JS — prend l'espace central */
.st-search-moved {
  flex: 1 1 auto !important;
  min-width: 150px !important;
  max-width: 500px !important;
  order: 3;
}

/* Éléments de displayNav2 (compte, panier) — taille réduite, alignés à droite */
.right-nav > div:not(.st-logo-moved):not([class*="st-devis"]),
.right-nav > a:not(.st-devis-btn) {
  order: 4;
  flex-shrink: 0;
}

/* Réduire les icônes Connexion et Panier */
.header-nav .user-info .account,
.header-nav .user-info a,
.header-nav .blockcart a {
  font-size: 13px !important;
}
.header-nav .user-info i.material-icons,
.header-nav .blockcart i.material-icons {
  font-size: 22px !important;
}

/* Panier - réduire la taille */
.header-nav .cart-preview .header {
  font-size: 13px;
}
.header-nav .shopping-cart {
  font-size: 22px !important;
}

/* Header-nav propre */
.header-nav { border-bottom: 1px solid var(--st-blue-header-border); padding: 0; margin: 0; }
.header-nav .right-nav { padding: 8px 0 !important; }

/* ---- HEADER-TOP : logo vidé + menu pleine largeur centré ---- */

/* Le col-md-2 du logo est vide après JS, on le réduit à zéro */
.header-top #_desktop_logo {
  width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* header-top-right prend 100% = menu centré */
.header-top .header-top-right,
.header-top .col-md-10 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin-left: 0 !important;
}

/* Le conteneur row du header-top */
.header-top .row {
  margin: 0;
}

.header-top { margin-bottom: 0; padding: 0 !important; }

/* ---- MENU : centré avec séparateurs ---- */
#top-menu[data-depth="0"] {
  justify-content: center !important;
  display: flex !important;
  align-items: center;
  width: 100%;
}

/* Barre devis mobile */
@media (max-width: 767px) {
  .st-devis-btn--header { display: none !important; }
  .st-devis-bar-mobile { display: flex !important; justify-content: center; padding: 4px 15px; background: transparent !important; }
  /* E — Tuer barre grise mobile */
  #header .header-nav { border: none !important; box-shadow: none !important; margin-bottom: 0 !important; }
  #header .header-nav .row { border: none !important; }
  #header .header-top { border: none !important; }
  #header .header-banner { border: none !important; }
  nav.header-nav { border-bottom: none !important; }
  /* D — Search mobile sous les pictos, clear float */
  #header .header-top #search_widget,
  #header .header-top .search-widgets { 
    display: block !important; 
    clear: both !important; 
    float: none !important;
    width: calc(100% - 20px) !important;
    margin: 6px auto 4px !important; 
    max-height: 42px; 
  }
}
@media (min-width: 768px) {
  .st-devis-bar-mobile { display: none; }
}

/* --- 4. BANDEAU RÉASSURANCE — Maquette 8 : pilules blanches --- */
.st-reassurance { background: #fff; padding: 12px 15px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 1170px; margin: 0 auto; border: none; }
.st-reassurance__item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e0ecf5; border-radius: 20px; padding: 8px 14px; }
.st-reassurance__icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.st-reassurance__icon svg { width: 16px; height: 16px; }
.st-reassurance__title { font-size: 11px; color: var(--st-dark); font-weight: 500; line-height: 1.2; display: block; }
.st-reassurance__sub { font-size: 9px; color: var(--st-blue-text); line-height: 1.3; display: block; }
.st-reassurance__item--blue .st-reassurance__icon { background: #E6F1FB; }
.st-reassurance__item--blue .st-reassurance__icon svg { fill: #185FA5; }
.st-reassurance__item--green .st-reassurance__icon { background: #E1F5EE; }
.st-reassurance__item--green .st-reassurance__icon svg { fill: #0F6E56; }
.st-reassurance__item--coral .st-reassurance__icon { background: #FAECE7; }
.st-reassurance__item--coral .st-reassurance__icon svg { fill: #993C1D; }
.st-reassurance__item--sky .st-reassurance__icon { background: #f0f7fc; }
.st-reassurance__item--sky .st-reassurance__icon svg { fill: #24A0DC; }

@media (max-width: 768px) {
  .st-reassurance { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px; }
  .st-reassurance__item { padding: 6px 10px; border-radius: 16px; }
  .st-reassurance__icon { width: 22px; height: 22px; }
  .st-reassurance__icon svg { width: 12px; height: 12px; }
  .st-reassurance__title { font-size: 10px; }
  .st-reassurance__sub { font-size: 8px; }
}

/* --- 5. STICKY HEADER --- */
.st-sticky-wrapper { position: sticky; top: 0; z-index: 999; background: #fff; transition: box-shadow 0.2s; }
.st-sticky-wrapper--scrolled { box-shadow: 0 1px 6px rgba(6,42,77,0.1); }

/* --- 6. BLOC PRIX PRODUIT — Carte encadrée (maquette 4, HT dominant) --- */
.st-price-card {
  position: relative;
  background: linear-gradient(135deg, #f0f8ff, #ffffff);
  border: 1.5px solid var(--st-blue);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px -16px rgba(36, 160, 220, 0.45);
}

/* Ancien prix barré */
.st-price-card .product-discount { margin: 0 0 2px; }
.st-price-card .product-discount .regular-price {
  font-size: 15px;
  font-weight: 500;
  color: #8aa0b2;
  text-decoration: line-through;
}

/* Conteneur prix : reset marges/couleur/taille héritées du thème */
.st-price-card .product-price {
  margin: 0;
  display: block;
  color: inherit;
  font-size: inherit;
}

/* Prix HT dominant */
.st-price-card .current-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.st-price-card .current-price-value {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--st-dark) !important;
}
.st-price-card .st-price-ht {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #8aa0b2;
}

/* TTC + économie (secondaire) */
.st-price-card .st-price-ttc {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--st-blue);
}
.st-price-card .st-price-eco {
  font-weight: 500;
  color: #8aa0b2;
}

/* Pastille PROMO (haut-droite, dépasse le bord) */
.st-price-card .discount.st-price-badge {
  position: absolute;
  top: -13px;
  right: 18px;
  margin: 0;
  background: var(--st-red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  padding: 6px 13px;
  border-radius: 20px;
  box-shadow: 0 5px 12px -3px rgba(232, 68, 58, 0.6);
  white-space: nowrap;
}

/* Carte sans promo : liseré plus discret */
.st-price-card:not(.st-price-card--promo) {
  border-color: var(--st-blue-border);
}

@media (max-width: 768px) {
  .st-price-card { padding: 16px; }
  .st-price-card .current-price-value { font-size: 34px; }
  .st-price-card .discount.st-price-badge { right: 12px; }
}

/* --- 7. TARIF PRO QUANTITÉ --- */
.st-volume-pricing { border: 0.5px solid var(--st-blue-border); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.st-volume-pricing__header { background: linear-gradient(90deg, var(--st-dark), var(--st-dark-2)); padding: 7px 12px; color: var(--st-blue); font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.st-volume-pricing__header svg { width: 14px; height: 14px; fill: var(--st-blue); }
.st-volume-pricing__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.st-volume-pricing__cell { padding: 8px 6px; background: var(--st-blue-pale); border-right: 0.5px solid var(--st-blue-border); }
.st-volume-pricing__cell:last-child { border-right: none; }
.st-volume-pricing__qty { font-size: 10px; color: var(--st-blue-text); display: block; margin-bottom: 2px; }
.st-volume-pricing__price { font-size: 14px; color: var(--st-dark); font-weight: 600; }
.st-volume-pricing__cell--devis { background: var(--st-blue-light); }
.st-volume-pricing__cell--devis .st-volume-pricing__qty, .st-volume-pricing__cell--devis .st-volume-pricing__price { color: var(--st-blue); }
.st-volume-pricing__cell--devis a { color: var(--st-blue); text-decoration: none; font-weight: 600; }

/* --- 8. LIVRAISON --- */
.st-delivery { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 0.5px solid #f0f0f0; margin-bottom: 10px; }
.st-delivery__icon svg { width: 20px; height: 20px; fill: var(--st-green); }
.st-delivery__title { font-size: 13px; color: var(--st-dark); font-weight: 500; display: block; }
.st-delivery__sub { font-size: 11px; color: var(--st-blue); display: block; }

/* --- 9. CTA PERSONNALISATION --- */
.st-perso-cta { background: linear-gradient(135deg, var(--st-dark), var(--st-dark-2)); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.st-perso-cta__left { display: flex; align-items: center; gap: 8px; }
.st-perso-cta__left svg { width: 20px; height: 20px; fill: var(--st-blue); }
.st-perso-cta__title { font-size: 13px; color: #fff; font-weight: 500; display: block; }
.st-perso-cta__sub { font-size: 10px; color: rgba(255,255,255,0.5); display: block; }
.st-perso-cta__btn { background: var(--st-blue); color: #fff; padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.st-perso-cta__btn:hover { opacity: 0.9; color: #fff; }

/* --- 10. BOUTON PANIER --- */
.product-add-to-cart .add-to-cart,
.product-add-to-cart .btn-primary { width: 100%; background: linear-gradient(135deg, var(--st-blue), #1a8ac0) !important; border: none !important; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: #fff !important; }
.product-add-to-cart .add-to-cart:hover,
.product-add-to-cart .btn-primary:hover { opacity: 0.9; }

/* --- 11. MICRO RÉASSURANCE SOUS BOUTON --- */
.st-micro-trust { display: flex; justify-content: center; gap: 14px; padding: 8px 0; margin-bottom: 10px; }
.st-micro-trust__item { font-size: 11px; color: var(--st-blue-text); display: flex; align-items: center; gap: 3px; }
.st-micro-trust__item svg { width: 14px; height: 14px; fill: var(--st-blue); }
.st-micro-trust__item--green svg { fill: var(--st-green); }

/* --- 12. DESCRIPTION TAGS --- */
.st-desc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.st-desc-tag { font-size: 11px; color: var(--st-dark); background: var(--st-blue-light); padding: 3px 10px; border-radius: 4px; }

/* --- 13. CROSS-SELL --- */
.st-cross-sell { padding: 16px 20px; border-top: 0.5px solid var(--st-blue-border); }
.st-cross-sell__title { font-size: 15px; font-weight: 500; color: var(--st-dark); margin: 0 0 10px; display: flex; align-items: center; gap: 5px; }
.st-cross-sell__title svg { width: 16px; height: 16px; fill: var(--st-blue); }
.st-cross-sell__grid { display: flex; gap: 10px; }
.st-cross-sell__item { flex: 1; border: 0.5px solid var(--st-blue-border); border-radius: 8px; padding: 10px; display: flex; align-items: center; gap: 10px; }
.st-cross-sell__img { width: 56px; height: 56px; background: var(--st-blue-pale); border-radius: 6px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.st-cross-sell__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-cross-sell__name { font-size: 12px; color: var(--st-dark); font-weight: 500; display: block; }
.st-cross-sell__price { font-size: 14px; color: var(--st-blue); font-weight: 500; }
.st-cross-sell__add { background: var(--st-blue-light); color: var(--st-blue); font-size: 11px; padding: 5px 12px; border-radius: 5px; font-weight: 500; text-decoration: none; border: 0.5px solid #d4e8f5; margin-left: auto; white-space: nowrap; }
.st-cross-sell__add:hover { background: var(--st-blue); color: #fff; }
@media (max-width: 768px) { .st-cross-sell__grid { flex-direction: column; } }

/* --- 14. BLOC CONFIANCE BAS --- */
.st-trust-bottom { padding: 14px 20px; background: linear-gradient(90deg, var(--st-blue-light) 0%, #f5faff 50%, var(--st-blue-light) 100%); border-top: 0.5px solid var(--st-blue-border); display: flex; justify-content: space-around; }
.st-trust-bottom__item { text-align: center; }
.st-trust-bottom__item svg { width: 24px; height: 24px; fill: var(--st-blue); display: block; margin: 0 auto 4px; }
.st-trust-bottom__title { font-size: 11px; color: var(--st-dark); font-weight: 500; display: block; }
.st-trust-bottom__sub { font-size: 9px; color: var(--st-blue-text); display: block; }
/* ============================================
   15. FIX CLS — CARROUSEL ACCUEIL (#carousel Bootstrap)
   Structure reelle : #carousel > ul.carousel-inner > li.carousel-item > a > figure > img
   Reserve la hauteur du carrousel DES le 1er paint (ratio 1110x340)
   -> supprime le decalage du #wrapper (CLS 0.359).
   Items en absolute : ils ne dictent plus la hauteur du conteneur,
   donc aucun saut quand le JS s'initialise ou que les images chargent.
   ============================================ */
#carousel .carousel-inner {
  position: relative;
  aspect-ratio: 1110 / 340;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
}
#carousel .carousel-inner > .carousel-item {
  position: absolute;
  inset: 0;
  margin: 0;
}
#carousel .carousel-item figure {
  margin: 0;
  height: 100%;
}
#carousel .carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   16. FIX CLS — BANNIERE PROMO (module ps_banner, hook displayBanner)
   L'image .img-fluid loading="lazy" charge en retard SANS espace
   reserve -> pousse tout le #wrapper vers le bas (CLS 0.355).
   /!\ ANCIEN BUG : le selecteur img[src*="/ps_banner/"] ne matchait
   JAMAIS. ps_banner sert l'image depuis /img/<fichier>, sans
   "ps_banner" dans l'URL -> aspect-ratio jamais applique -> CLS reste.
   On cible desormais l'image PAR SON CONTENEUR .header-banner :
   robuste quelle que soit l'URL, valable mobile ET desktop.
   ============================================ */
.header-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1110 / 213;
}

/* ============================================
   17. FIX CLS — RESERVATION HAUTEUR HEADER (desktop)
   Le JS deplace le logo + la barre de recherche dans .right-nav
   APRES l'affichage -> le header grandit -> pousse tout le #wrapper
   vers le bas (CLS 0.355). On reserve sa hauteur reelle settled (~198px)
   des le 1er paint : le deplacement JS ne decale plus rien.
   NB : ancienne valeur 250px = surreservation -> laissait ~50px de blanc
   sous le bandeau reassurance. 195px = juste sous la hauteur reelle,
   donc zero vide visible ET reservation CLS conservee.
   Desktop uniquement (le header mobile a une autre hauteur).
   ============================================ */
@media (min-width: 768px) {
  #header {
    min-height: 195px;
  }
}

/* ============================================
   18. EN-TÊTE CATÉGORIE — bloc texte redessiné (toutes catégories)
   Visible DESKTOP, masqué MOBILE. Filet bleu + largeur de lecture.
   Pastilles = HTML saisi dans la description de chaque catégorie (BO),
   stylées via .st-chip / .st-tag ci-dessous.
   ============================================ */
#js-product-list-header h1 {
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--st-dark);
}
#js-product-list-header h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: #0098ed;
  margin: 11px 0 0;
}
#category-description {
  color: #51606e;
  line-height: 1.6;
}
#category-description > p { max-width: 660px; }

/* Pastilles (collées dans la description de la catégorie) */
.st-cathead__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; margin-top: 20px; }
.st-cathead__group { display: flex; flex-wrap: wrap; gap: 8px; }
.st-cathead__div { width: 1px; height: 20px; background: var(--st-blue-sep); }
.st-chip { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 7px 13px; border-radius: 999px; background: #e8f5fe; color: #0a5f95; }
.st-tag  { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--st-blue-border); color: #46566a; }

/* MOBILE : on masque le bloc texte, le menu prend le relais */
@media (max-width: 767px) {
  #js-product-list-header { display: none !important; }
}

/* ============================================
   19. MENU SOUS-CATÉGORIES (.block-categories)
   DESKTOP : masqué. MOBILE : affiché + restylé (maquette 2 :
   cartes à filet bleu + chevron). Filtres à facettes intacts.
   ============================================ */
@media (min-width: 768px) {
  .block-categories { display: none !important; }
}
@media (max-width: 767px) {
  .block-categories,
  .block-categories.hidden-sm-down { display: block !important; }
  .block-categories { background: transparent; border: none; padding: 0; margin: 0 0 16px; }

  .block-categories .block-category-title,
  .block-categories .title_block,
  .block-categories h2,
  .block-categories h3 {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
    color: var(--st-dark); margin: 0 0 12px; padding: 0; border: none;
  }

  .block-categories ul { list-style: none; margin: 0; padding: 0; }
  .block-categories > ul > li { margin: 0 0 8px; }
  .block-categories > ul > li > a {
    display: block; position: relative;
    padding: 12px 38px 12px 18px;
    border: 1px solid #eef2f6; border-radius: 10px; background: #fff;
    color: #23303c; font-size: 14px; font-weight: 600; text-decoration: none;
  }
  .block-categories > ul > li > a::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 0 2px 2px 0; background: #0098ed;
  }
  .block-categories > ul > li > a::after {
    content: ""; position: absolute; right: 16px; top: 50%;
    width: 7px; height: 7px; border-right: 2px solid #9fb0bf; border-top: 2px solid #9fb0bf;
    transform: translateY(-50%) rotate(45deg);
  }
  /* liste plate : on cache les niveaux profonds et les icônes +/- natives */
  .block-categories > ul ul { display: none !important; }
  .block-categories .collapse-icons,
  .block-categories .arrows { display: none !important; }
}
