/* Refonte v2 : page catégorie (Claude, 2026-11-21).
   Chargée sur les pages catégorie, recherche et autres listes de produits, après ricin-refonte-v2.css.
   Pour revenir en arrière : retirer la ligne correspondante de templates/_partials/head.tpl, puis vider le cache. */

body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier){--c-g9:var(--rv-g9,#163d33);--c-g7:var(--rv-g7,#2b5c4d);--c-g5:var(--rv-g5,#5d8574);--c-sage:var(--rv-sage,#e9eee4);--c-cream:var(--rv-cream,#faf5ec);--c-cream2:var(--rv-cream2,#f6f0e6);--c-pack:var(--rv-pack,#f8f1e7);--c-line:var(--rv-line,#e3e3d8);--c-line2:var(--rv-line2,#d5d9cc);--c-ink:var(--rv-ink,#1c2b25);--c-muted:var(--rv-muted,#5b6a63);--c-serif:var(--rv-serif,"Newsreader",Georgia,serif);--c-sans:var(--rv-sans,"Plus Jakarta Sans",Arial,sans-serif)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) #wrapper,body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) #main-content,body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .columns-container{background:var(--c-cream)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .breadcrumb__wrapper{background:var(--c-cream2);border:0;margin:0}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .breadcrumb__wrapper .breadcrumb{padding-block:18px 0;margin:0;font-size:13px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .breadcrumb__wrapper a{color:var(--c-muted)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .breadcrumb__wrapper .breadcrumb-item:last-child span{color:var(--c-ink)}

/* Bandeau */
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero{position:relative;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:40px;align-items:center;padding:14px 0 34px;margin:0 0 36px;background:var(--c-cream2);box-shadow:0 0 0 100vmax var(--c-cream2),0 1px 0 100vmax var(--c-line);clip-path:inset(0 -100vmax -1px)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero:not(.rv-chero--vis){grid-template-columns:minmax(0,1fr)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__txt{min-width:0}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__title{font:500 clamp(40px,4.6vw,60px)/1.02 var(--c-serif)!important;letter-spacing:-.01em!important;color:var(--c-g9)!important;text-align:left!important;margin:0!important;overflow-wrap:anywhere}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__intro{margin-top:14px;max-width:620px;color:#3b4a44;font-size:16px;line-height:1.6}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__intro p{margin:0}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chip{display:inline-flex;align-items:center;height:40px;padding:0 18px;border-radius:40px;background:#fff;border:1px solid var(--c-line);font:600 14px/1 var(--c-sans);color:var(--c-g9);text-decoration:none;white-space:nowrap;transition:border-color .2s}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chip:hover,body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chip:focus-visible{border-color:var(--c-g5);color:var(--c-g9)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__vis{justify-self:end;width:300px;aspect-ratio:1;border-radius:50%;overflow:hidden;border:8px solid #fff;box-shadow:0 24px 50px -30px rgba(22,61,51,.5);background:var(--c-pack)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__vis img{display:block;width:100%;height:100%;object-fit:cover}

/* Barre d'outils */
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .products__selection{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .products__count{font-size:14px;color:var(--c-muted)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .products__sort{display:flex;align-items:center;gap:10px;font-size:14px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .products__sort-label{color:var(--c-muted)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .products__sort-dropdown-button{min-height:42px!important;border:1px solid var(--c-line2)!important;border-radius:10px!important;background:#fff!important;color:var(--c-ink)!important;font-weight:600}

/* Grille et vignettes */
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) #js-product-list .products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature{height:100%}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__inner{display:flex;flex-direction:column;height:100%;background:#fff!important;border:1px solid var(--c-line)!important;border-radius:14px!important;overflow:hidden;transition:box-shadow .2s,transform .2s}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__inner:hover{box-shadow:0 14px 30px -18px rgba(22,61,51,.33);transform:translateY(-2px)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__top{background:#fff;border-bottom:1px solid var(--c-line)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__image-link{background:#fff}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__bottom{display:flex;flex-direction:column;gap:8px;flex:1;padding:16px 16px 18px!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__infos{display:flex;flex-direction:column;gap:8px;padding:0!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__title{font:600 15px/1.35 var(--c-sans)!important;color:var(--c-ink)!important;text-decoration:none}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__title:hover{text-decoration:underline}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__prices{order:3;margin-top:4px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__price{font:600 20px/1 var(--c-sans)!important;color:var(--c-g9)!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-mstock{order:2;display:inline-flex;align-items:center;gap:7px;margin:0;font:600 13px/1.3 var(--c-sans);color:#2f6b45}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-mstock::before{content:"";width:8px;height:8px;border-radius:50%;background:#3d8b57;box-shadow:0 0 0 3px rgba(61,139,87,.15)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-mstock.is-out{color:#8a5a2b}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-mstock.is-out::before{background:#c58a4e;box-shadow:0 0 0 3px rgba(197,138,78,.15)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__actions{margin-top:auto;padding:8px 0 0!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__form{display:block}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__form .quantity-button{display:none!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__add,body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__details{display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%!important;min-height:42px;padding:0 14px!important;border-radius:10px!important;font:600 14px/1 var(--c-sans)!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__add{background:var(--c-g9)!important;border-color:var(--c-g9)!important;color:#fff!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__add:hover{background:var(--c-g7)!important;border-color:var(--c-g7)!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__add .product-miniature__add-text{display:inline!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__details{background:transparent!important;border:1px solid var(--c-line2)!important;color:var(--c-g9)!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__details:hover{background:var(--c-sage)!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-flags .badge,body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-flags li{background:#fff!important;border:1px solid var(--c-line)!important;border-radius:20px!important;color:#8a5a2b!important;font:700 12px/1.2 var(--c-sans)!important;padding:4px 10px!important}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .wishlist-button-add{width:36px!important;height:36px!important;border-radius:50%!important;background:#fff!important;border:1px solid var(--c-line)!important;box-shadow:none!important}

body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature:has(.rv-mstock.is-out) .product-miniature__image{opacity:.55}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .products__pagination{margin-top:18px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .pagination__number{font-size:13px;color:var(--c-muted)}

/* Bas de page : encarts et texte */
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) #js-product-list-footer{margin-top:30px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cextra{max-width:none;text-align:left}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cextra>*+*{margin-top:16px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide{margin:0}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide a{display:grid;grid-template-columns:220px minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:28px;align-items:center;background:var(--c-sage);border-radius:18px;overflow:hidden;padding-right:28px;text-decoration:none;color:inherit}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide img{grid-row:1 / 4;width:100%!important;height:100%!important;min-height:150px;object-fit:cover;display:block;border-radius:0}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__kick{grid-column:2;align-self:end;font:600 12px/1.3 var(--c-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--c-g7);padding-top:22px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__title{grid-column:2;font:500 24px/1.2 var(--c-serif);color:var(--c-g9);margin-top:6px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__txt{grid-column:2;align-self:start;font-size:14px;color:#3b4a44;margin-top:6px;padding-bottom:22px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__btn{grid-column:3;grid-row:1 / 4;display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border-radius:10px;background:var(--c-g9);color:#fff;font:600 14px/1 var(--c-sans);white-space:nowrap}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide a:hover .rv-guide__btn{background:var(--c-g7)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo{position:relative;margin-top:56px;max-width:820px;text-align:left}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__body{color:#3b4a44;line-height:1.65;overflow-wrap:anywhere;text-align:left}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__body h2{font:500 30px/1.15 var(--c-serif);color:var(--c-g9);margin:0 0 14px}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__body h3{font:500 22px/1.2 var(--c-serif);color:var(--c-g9);margin:20px 0 0}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__body p{margin:12px 0 0}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__body h2+p{margin-top:0}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__body img{max-width:100%;height:auto}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo.is-collapsed .rv-cseo__body{max-height:300px;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 62%,transparent);mask-image:linear-gradient(180deg,#000 62%,transparent)}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__more{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:0;border:0;background:none;font:600 15px/1.3 var(--c-sans);color:var(--c-g9);cursor:pointer}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__more[hidden]{display:none}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__more svg{transition:transform .2s}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__more-close,body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo.is-open .rv-cseo__more-open{display:none}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo.is-open .rv-cseo__more-close{display:inline}
body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo.is-open .rv-cseo__more svg{transform:rotate(180deg)}

@media (max-width:1199.98px){
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) #js-product-list .products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__vis{width:240px}
}
@media (max-width:767.98px){
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero{grid-template-columns:minmax(0,1fr);gap:0;padding:6px 0 24px;margin-bottom:22px}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__vis{display:none}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__title{font-size:40px!important}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__intro{font-size:15px}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__chips{flex-wrap:nowrap;overflow-x:auto;margin:20px 0 0;padding:0 0 4px;scrollbar-width:none}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__chips::-webkit-scrollbar{display:none}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .products__selection{flex-wrap:wrap}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) #js-product-list .products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__bottom{padding:12px 12px 14px!important;gap:6px}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__title{font-size:14px!important}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__price{font-size:18px!important}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__add,body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__details{min-height:40px;font-size:13px!important;padding:0 8px!important}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .product-miniature__add .material-icons{display:none}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide a{grid-template-columns:minmax(0,1fr);padding:0}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide img{grid-row:auto;height:auto!important;aspect-ratio:3/2;min-height:0}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__kick,body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__title,body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__txt{grid-column:1;padding-inline:18px}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__kick{padding-top:16px}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__title{font-size:21px}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__txt{padding-bottom:0}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-guide__btn{grid-column:1;grid-row:auto;justify-self:start;margin:12px 18px 18px}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo{margin-top:40px}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-cseo__body h2{font-size:24px}
}

/* Visuel rond compact sur mobile, à droite du titre (2026-11-21) */
@media (max-width:767.98px){
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero.rv-chero--vis{grid-template-columns:minmax(0,1fr) 88px;grid-template-areas:"title vis" "intro intro" "chips chips";column-gap:14px;align-items:center}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero--vis .rv-chero__txt{display:contents}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero--vis .rv-chero__title{grid-area:title;font-size:36px!important}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero--vis .rv-chero__intro{grid-area:intro}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero--vis .rv-chero__chips{grid-area:chips;min-width:0}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero--vis .rv-chero__vis{display:block;grid-area:vis;justify-self:end;width:88px;border-width:4px;box-shadow:0 10px 22px -14px rgba(22,61,51,.55)}
}

/* Pastilles en entier sur mobile, sans défilement horizontal (2026-11-21) */
@media (max-width:767.98px){
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chero__chips{flex-wrap:wrap;overflow:visible;gap:8px;margin:18px 0 0;padding:0}
  body:is(#category,#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) .rv-chip{height:34px;padding:0 13px;font-size:13px}
}

/* Titre des pages de liste hors catégorie (recherche, promotions...) (2026-11-21) */
body:is(#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) #js-product-list-header{margin:28px 0 8px}
body:is(#search,#best-sales,#new-products,#prices-drop,#manufacturer,#supplier) #js-product-list-header h1{font:500 clamp(30px,3.4vw,44px)/1.1 var(--c-serif)!important;color:var(--c-g9)!important;margin:0}
