/* Scoped functional layout; final brand styling follows separately. */
.sx-category-nav { clear: both; margin: 18px 0 24px; text-align: left; }
.woocommerce .sx-category-nav .sx-category-heading { margin: 8px 0 12px; font-size: 17px; line-height: 1.4; font-weight: 600; text-transform: none; letter-spacing: normal; }
.sx-category-nav .sx-category-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sx-category-nav .sx-category-list li { min-width: 0; margin: 0; padding: 0; list-style: none; }
.sx-category-nav .sx-category-list a { display: flex; align-items: center; box-sizing: border-box; height: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 5px; background: #fff; color: #333; font-size: 14px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.sx-category-nav .sx-category-list a:hover,
.sx-category-nav .sx-category-list a[aria-current="page"] { border-color: #ab185b; background: #fff5f8; color: #861247; }
.sx-category-nav .sx-category-list a[aria-current="page"] { font-weight: 700; }
.sx-category-nav a:focus-visible,
.sx-category-nav summary:focus-visible { outline: 3px solid #861247; outline-offset: 3px; }
.sx-category-nav .sx-category-back { display: inline-flex; align-items: center; min-height: 44px; color: #861247; font-size: 14px; line-height: 1.4; text-decoration: underline; }
.sx-category-nav .sx-category-more { margin-top: 8px; }
.sx-category-nav .sx-category-more summary { display: list-item; width: fit-content; max-width: 100%; box-sizing: border-box; min-height: 44px; padding: 11px 0; color: #861247; font-size: 14px; line-height: 1.5; cursor: pointer; }
.sx-category-nav .sx-category-more[open] summary { margin-bottom: 5px; }
@media (max-width: 600px) {
  .sx-category-nav .sx-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .sx-category-nav .sx-category-list { grid-template-columns: minmax(0, 1fr); }
}

/* Full-width catalogue. The body class is added only on Shop/product categories. */
body.sx-catalog-wide.woocommerce #primary { width: 100% !important; max-width: 100%; float: none; padding-left: 0; padding-right: 0; }
body.sx-catalog-wide.woocommerce .shop-sidebar { display: none; }
body.sx-catalog-wide #primary .wp-store-products { clear: both; width: 100%; }
body.sx-catalog-wide #primary .wp-store-products > ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; width: 100%; margin: 0 0 28px; padding: 0; }
body.sx-catalog-wide #primary .wp-store-products > ul.products::before,
body.sx-catalog-wide #primary .wp-store-products > ul.products::after { display: none; }
body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product { display: flex; flex-direction: column; position: relative; float: none; clear: none; box-sizing: border-box; width: 100%; min-width: 0; min-height: 0; height: auto; margin: 0 !important; padding: 0 0 12px; }
body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product > .wrap-image-sale { position: relative; height: auto; aspect-ratio: 1; width: 100%; }
body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product .yith-wcwl-add-to-wishlist { left: 0; max-width: 100%; box-sizing: border-box; }
body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product .wrap-image-sale > a { height: 100%; }
body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product .wrap-image-sale img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; margin: 0; }
body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product > a { height: auto; }
body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product h3.product-title { height: 44px; min-height: 44px; padding: 0; margin: 12px 8px 8px; font-size: 16px; line-height: 22px; }
body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product > .price { position: static; margin: 0 8px 12px; font-size: 20px; line-height: 1.4; }
body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product > a.button { position: static; display: flex; align-items: center; justify-content: center; align-self: center; float: none; transform: none; box-sizing: border-box; width: calc(100% - 16px); max-width: 100%; height: auto; min-height: 44px; margin: auto 8px 0; padding: 10px 8px; white-space: normal; font-size: 14px; line-height: 1.4; }
@media (max-width: 1100px) {
  body.sx-catalog-wide #primary .wp-store-products > ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.sx-catalog-wide #primary .wp-store-products > ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product h3.product-title { font-size: 14px; line-height: 20px; height: 40px; min-height: 40px; }
  body.sx-catalog-wide #primary .wp-store-products > ul.products > li.product > .price { font-size: 17px; }
}

/* Lubricants pilot only. Unrelated category/filter presentation is unchanged. */
body.sx-category-refined #content > .ed-container { width:calc(100% - 64px); max-width:1440px; margin:0 auto; padding:0; box-sizing:border-box; }
body.sx-category-refined #primary { font:15px/1.5 "Montserrat",Arial,sans-serif; color:#29232e; }
body.sx-category-refined #primary * { box-sizing:border-box; }
body.sx-category-refined .woocommerce-breadcrumb { padding:12px 0; margin:0 0 8px; border:0; background:none; font:13px/1.5 "Montserrat",Arial,sans-serif; color:#71666f; }
body.sx-category-refined .woocommerce-breadcrumb a { color:#71666f; text-decoration:none; }
body.sx-category-refined #primary .woocommerce-products-header { margin:0 0 20px; padding:0; text-align:left; }
body.sx-category-refined #primary .woocommerce-products-header h1 { font:600 clamp(28px,3vw,40px)/1.16 "Montserrat",Arial,sans-serif; letter-spacing:-.025em; text-transform:none; margin:0 0 12px; padding:0; color:#29232e; }
body.sx-category-refined #primary .woocommerce-products-header h1::before,body.sx-category-refined #primary .woocommerce-products-header h1::after { content:none; }
body.sx-category-refined #primary .sx-category-intro { margin:0 0 18px; max-width:850px; color:#645b63; font:15px/1.55 "Montserrat",Arial,sans-serif; }
body.sx-category-refined .sx-category-nav { margin:18px 0 0; }
body.sx-category-refined.woocommerce .sx-category-heading { font:600 14px/1.4 "Montserrat",Arial,sans-serif; margin:0 0 10px; }
body.sx-category-refined .sx-category-nav .sx-category-list { display:flex; flex-wrap:wrap; gap:8px; }
body.sx-category-refined .sx-category-nav .sx-category-list li { flex:0 1 auto; }
body.sx-category-refined .sx-category-nav .sx-category-list a { min-height:44px; padding:9px 13px; border:1px solid transparent; border-radius:12px; background:#fff3ed; color:#443640; font:14px/1.4 "Montserrat",Arial,sans-serif; overflow-wrap:normal; }
body.sx-category-refined .sx-category-nav .sx-category-list a:hover,body.sx-category-refined .sx-category-nav .sx-category-list a[aria-current="page"] { border-color:#ba065f; color:#fff; background:#ba065f; }
body.sx-category-refined .sx-category-back { min-height:32px; margin-bottom:6px; font-size:13px; }
.sx-category-scroll-hint { display:none; }
body.sx-category-refined #primary .woocommerce-result-count { font:13px/1.5 "Montserrat",Arial,sans-serif; padding:10px 0; margin:0 12px 16px 0; color:#645b63; }
body.sx-category-refined #primary .woocommerce-ordering { margin:0 0 16px; }
body.sx-category-refined #primary .woocommerce-ordering select { width:auto; max-width:100%; min-height:44px; border:1px solid #ded4db; border-radius:8px; padding:10px 34px 10px 12px; font:14px/1.4 "Montserrat",Arial,sans-serif; color:#443640; background-color:#fff; }
body.sx-category-refined #primary .wp-store-products > ul.products { gap:30px 20px; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product { background:#fff; border:0; box-shadow:none; overflow:visible; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > .wrap-image-sale { flex:none; min-height:0; border-radius:14px; background:#f7f3f1; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product .wrap-image-sale img { padding:14px; mix-blend-mode:multiply; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product h3.product-title { height:auto; min-height:0; margin:12px 0 8px; font:600 15px/1.4 "Montserrat",Arial,sans-serif; text-transform:none; white-space:normal; overflow:visible; display:block; -webkit-line-clamp:unset; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > .price { margin:0 0 14px; font:700 18px/1.45 "Montserrat",Arial,sans-serif; }
body.sx-category-refined #primary .price * { font-family:"Montserrat",Arial,sans-serif; }
body.sx-category-refined #primary .price small { font-size:11px; font-weight:400; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button { width:100%; margin:auto 0 0; border:1px solid #ad1457; border-radius:24px; background:#ba065f; color:#fff; font:600 13px/1.4 "Montserrat",Arial,sans-serif; box-shadow:none; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button:hover { background:#94064c; color:#fff; }
body.sx-category-refined #primary .sx-category-advice { clear:both; margin:36px 0; padding:26px; border-radius:14px; background:#f8f0ec; }
body.sx-category-refined #primary .sx-category-advice h2 { font:700 23px/1.25 "Montserrat",Arial,sans-serif; letter-spacing:-.025em; margin:0 0 14px; text-transform:none; }
body.sx-category-refined #primary .sx-category-advice .term-description { margin:0; padding:0; font:15px/1.6 "Montserrat",Arial,sans-serif; color:#645b63; }
body.sx-category-refined #primary .sx-category-advice p { margin:0 0 14px; }
body.sx-category-refined .sx-category-guide { display:inline-flex; align-items:center; gap:16px; min-height:44px; font:600 14px/1.5 "Montserrat",Arial,sans-serif; color:#931447; text-decoration:underline; text-underline-offset:4px; }
body.sx-category-refined #primary :focus-visible { outline:3px solid #ad1457; outline-offset:3px; }
@media(max-width:767px) {
 body.sx-category-refined #content > .ed-container { width:calc(100% - 32px); }
 body.sx-category-refined .woocommerce-breadcrumb { margin-bottom:8px; padding:12px 0; font-size:12px; }
 body.sx-category-refined #primary .sx-category-intro { font-size:14px; margin-bottom:14px; }
 body.sx-category-refined #primary .woocommerce-products-header { margin-bottom:16px; }
 body.sx-category-refined .sx-category-nav { margin-top:14px; }
 body.sx-category-refined .sx-category-nav .sx-category-list { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; padding:4px 3px 10px; }
 body.sx-category-refined .sx-category-nav .sx-category-list li { flex:none; max-width:85vw; }
 body.sx-category-refined .sx-category-nav .sx-category-list a { white-space:nowrap; font-size:13px; }
 body.sx-category-refined .sx-category-scroll-hint { display:block; font:12px/1.4 "Montserrat",Arial,sans-serif; color:#71666f; margin:0 0 4px; }
 body.sx-category-refined #primary .woocommerce-result-count { float:none; width:100%; padding:0; margin:0 0 8px; }
 body.sx-category-refined #primary .woocommerce-ordering { float:none; width:100%; margin:0 0 18px; }
 body.sx-category-refined #primary .woocommerce-ordering select { width:100%; }
 body.sx-category-refined #primary .wp-store-products > ul.products { gap:24px 12px; }
 body.sx-category-refined #primary .wp-store-products > ul.products > li.product h3.product-title { font-size:13px; min-height:0; }
 body.sx-category-refined #primary .wp-store-products > ul.products > li.product > .price { font-size:17px; }
 body.sx-category-refined #primary .wp-store-products > ul.products > li.product .wrap-image-sale img { padding:8px; }
 body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button { font-size:12px; padding:10px 5px; }
 body.sx-category-refined #primary .sx-category-advice { padding:20px; margin:28px 0; }
}
/* Neutralize observed legacy spacing and the theme's important button font size. */
body.sx-category-refined #primary { margin-top:0; }
body.sx-category-refined #primary .woocommerce-result-count { float:left; }
body.sx-category-refined #primary .woocommerce-ordering { float:right; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product { text-align:left; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button { font-size:13px !important; }
@media(max-width:767px) {
 body.sx-category-refined #primary .woocommerce-result-count,body.sx-category-refined #primary .woocommerce-ordering { float:none; }
 body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button { font-size:12px !important; }
}

/* Progressive catalogue controls. Native ordering remains available without JS. */
body.sx-category-refined #primary .sx-catalog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px 24px; clear:both; margin:20px 0; padding:14px 0; border-top:1px solid #eee6e9; border-bottom:1px solid #eee6e9; }
body.sx-category-refined #primary .sx-catalog-toolbar .woocommerce-result-count { float:none; width:auto; display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin:0; padding:0; font-size:12px; }
body.sx-category-refined #primary .sx-result-total { color:#382334; font-size:15px; font-weight:700; }
body.sx-category-refined #primary .sx-result-all { display:inline-flex; align-items:center; min-height:44px; padding:7px 13px; border:1px solid #e3d6df; border-radius:24px; font:600 12px/1.4 "Montserrat",Arial,sans-serif !important; text-decoration:none !important; color:#ba065f; background:#fff; }
body.sx-category-refined #primary .sx-result-all:hover { background:#fff3ed; }
body.sx-category-refined #primary .sx-catalog-toolbar .woocommerce-ordering { float:none; flex:none; width:auto; max-width:100%; margin:0; }
body.sx-category-refined #primary .sx-ordering-enhanced > select { display:none; }
body.sx-category-refined #primary .woocommerce-ordering select { border-radius:24px; border-color:#ba065f; color:#ba065f; }
body.sx-category-refined #primary .sx-sort { position:relative; color:#ba065f; font:14px/1.4 "Montserrat",Arial,sans-serif; z-index:5; }
body.sx-category-refined #primary .sx-sort summary { display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; min-height:44px; padding:10px 16px; border:1px solid #ba065f; border-radius:24px; list-style:none; background:#fff; font-weight:600; }
body.sx-category-refined #primary .sx-sort summary::-webkit-details-marker { display:none; }
body.sx-category-refined #primary .sx-sort summary::after { content:'⇅'; font-size:17px; line-height:1; }
body.sx-category-refined #primary .sx-sort-current { font-weight:400; font-size:12px; }
body.sx-category-refined #primary .sx-sort[open] summary { background:#fff3ed; }
body.sx-category-refined #primary .sx-sort-options { position:absolute; top:calc(100% + 8px); right:0; min-width:240px; max-width:calc(100vw - 32px); padding:6px; border:1px solid #e3d6df; border-radius:14px; box-shadow:0 10px 30px #3823341a; background:#fff; }
body.sx-category-refined #primary .sx-sort-options button { display:block; width:100%; min-height:44px; padding:10px 12px; margin:0; border:0; border-radius:8px; background:#fff; color:#443640; text-align:left; box-shadow:none; text-transform:none; letter-spacing:normal; font:14px/1.4 "Montserrat",Arial,sans-serif; cursor:pointer; }
body.sx-category-refined #primary .sx-sort-options button:hover,body.sx-category-refined #primary .sx-sort-options button[aria-pressed="true"] { background:#ba065f; color:#fff; }
body.sx-category-refined #primary .sx-sort-options button[aria-pressed="true"] { font-weight:700; }
/* Override old wishlist offsets; preserve YITH links, icons and selected state. */
body.sx-category-refined #primary .wp-store-products > ul.products > li.product .yith-wcwl-add-to-wishlist { position:absolute; top:8px; right:8px; bottom:auto; left:auto; width:44px; max-width:44px; height:auto; min-height:44px; margin:0; padding:0; z-index:3; text-align:center; font-size:12px; line-height:1; --add-to-wishlist-icon-color:#685b65; --added-to-wishlist-icon-color:#ba065f; }
body.sx-category-refined #primary .yith-wcwl-add-to-wishlist .yith-wcwl-add-button,body.sx-category-refined #primary .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse,body.sx-category-refined #primary .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse { margin:0; padding:0; }
body.sx-category-refined #primary .yith-wcwl-add-to-wishlist a { position:relative; display:flex; align-items:center; justify-content:center; width:44px; height:44px; min-height:44px; margin:0; padding:0; border:1px solid #e9e0e5; border-radius:50% !important; background-color:#fffffff2; background-size:20px; color:#685b65; box-shadow:none; }
body.sx-category-refined #primary .yith-wcwl-add-to-wishlist a:hover { border-color:#ba065f; background-color:#fff; background-size:20px; }
body.sx-category-refined #primary .yith-wcwl-add-to-wishlist svg.yith-wcwl-icon-svg { width:20px; height:20px; margin:0; }
body.sx-category-refined #primary .yith-wcwl-add-to-wishlist a:has(svg) { background-image:none; text-indent:0; }
body.sx-category-refined #primary .yith-wcwl-add-to-wishlist a:has(svg) > span,body.sx-category-refined #primary .yith-wcwl-add-to-wishlist .feedback { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media(max-width:767px) {
 body.sx-category-refined #primary .sx-catalog-toolbar { align-items:flex-start; flex-direction:column; gap:10px; margin:14px 0 20px; }
 body.sx-category-refined #primary .sx-catalog-toolbar .woocommerce-ordering { align-self:flex-end; }
 body.sx-category-refined #primary .wp-store-products > ul.products > li.product .yith-wcwl-add-to-wishlist { top:5px; right:5px; }
}

/* Keep intrinsic portrait dimensions out of the image frame's height calculation. */
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > .wrap-image-sale > a { position:absolute; inset:0; display:block; width:100%; height:100%; margin:0; padding:0; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > .wrap-image-sale > a > img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
/* Let the title area absorb extra space, aligning the price/purchase area per row. */
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.woocommerce-loop-product__link { flex:1 0 auto; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button { margin-top:0; }

/* Disable the legacy full-card hover layer; keep WooCommerce's after spinner. */
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button { position:relative; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button::before { content:none; display:none; }

/* Root Lubricants: original photo, editable HTML copy, one semantic page title. */
body.sx-category-refined #primary .sx-lube-hero { position:relative; isolation:isolate; overflow:hidden; border-radius:18px; background:#fff2f6; margin:0 0 24px; min-height:360px; }
body.sx-category-refined #primary .sx-lube-hero-photo { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:right center; max-width:none; margin:0; border:0; border-radius:0; }
body.sx-category-refined #primary .sx-lube-hero::before { content:''; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgba(255,245,248,.98) 0%,rgba(255,245,248,.95) 46%,rgba(255,245,248,.75) 59%,rgba(255,245,248,0) 78%); }
body.sx-category-refined #primary .sx-lube-hero-copy { width:65%; max-width:900px; padding:34px 36px; }
body.sx-category-refined #primary .sx-lube-hero h1 { margin:0 0 18px; font:700 clamp(30px,3.2vw,44px)/1.12 "Montserrat",Arial,sans-serif; letter-spacing:-.035em; color:#ba065f; text-transform:none; }
body.sx-category-refined #primary .sx-lube-hero p { margin:0 0 12px; font:15px/1.6 "Montserrat",Arial,sans-serif; color:#372c33; }
body.sx-category-refined #primary .sx-lube-hero p:last-child { margin-bottom:0; }
body.sx-category-refined #primary .sx-lube-hero-more { margin:12px 0 0; border:0; padding:0; }
body.sx-category-refined #primary .sx-lube-hero-more > summary { display:none; }
body.sx-category-refined #primary .sx-lube-hero-more .sx-lube-read-less { display:none; }
body.sx-category-refined #primary .sx-lube-hero-more[open] .sx-lube-read-less { display:inline; }
body.sx-category-refined #primary .sx-lube-hero-more[open] .sx-lube-read-more { display:none; }
@media (max-width:1023px) and (min-width:768px) {
    body.sx-category-refined #primary .sx-lube-hero-copy { width:76%; padding:28px; }
    body.sx-category-refined #primary .sx-lube-hero::before { background:linear-gradient(90deg,#fff5f8 0%,rgba(255,245,248,.97) 56%,rgba(255,245,248,.8) 70%,rgba(255,245,248,0) 100%); }
}
@media (max-width:767px) {
    body.sx-category-refined #primary .sx-lube-hero { min-height:0; margin-bottom:18px; border-radius:14px; }
    body.sx-category-refined #primary .sx-lube-hero-photo { position:relative; z-index:auto; display:block; height:150px; width:100%; object-fit:cover; object-position:right center; }
    body.sx-category-refined #primary .sx-lube-hero::before { display:none; }
    body.sx-category-refined #primary .sx-lube-hero-copy { width:100%; max-width:none; padding:20px; }
    body.sx-category-refined #primary .sx-lube-hero h1 { font-size:29px; margin-bottom:12px; }
    body.sx-category-refined #primary .sx-lube-hero p { font-size:14px; line-height:1.6; }
    body.sx-category-refined #primary .sx-lube-hero-more > summary { display:list-item; list-style-position:inside; padding:8px 0; min-height:40px; cursor:pointer; font:600 13px/1.6 "Montserrat",Arial,sans-serif; color:#ba065f; }
    body.sx-category-refined #primary .sx-lube-hero-rest { padding-top:6px; }
}

/* Mobile only: group catalogue count/actions into one clear control area. */
@media (max-width:767px) {
 body.sx-category-refined #primary .sx-category-nav { margin:16px 0 0; }
 body.sx-category-refined #primary .sx-category-heading { margin:0 0 7px; font-size:14px; }
 body.sx-category-refined #primary .sx-category-scroll-hint { margin:0 0 8px; font-size:11px; line-height:1.4; }
 body.sx-category-refined #primary .sx-category-list { gap:8px; padding:2px 2px 6px; margin:0; scrollbar-width:none; }
 body.sx-category-refined #primary .sx-category-list::-webkit-scrollbar { display:none; }
 body.sx-category-refined #primary .sx-category-list a { min-height:44px; padding:10px 12px; border-radius:10px; font-size:13px; }
 body.sx-category-refined #primary .sx-catalog-toolbar { display:flex; flex-direction:column; align-items:stretch; gap:12px; margin:14px 0 18px; padding:12px; border:1px solid #eee6e9; border-radius:12px; background:#fcfafb; }
 body.sx-category-refined #primary .sx-catalog-toolbar .woocommerce-result-count { width:100%; min-width:0; margin:0; padding:0; gap:3px 12px; }
 body.sx-category-refined #primary .sx-catalog-toolbar .woocommerce-result-count:has(.sx-result-total) { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
 body.sx-category-refined #primary .sx-catalog-toolbar .sx-result-total { grid-column:1; grid-row:1; align-self:end; font-size:14px; line-height:1.4; color:#282329; }
 body.sx-category-refined #primary .sx-catalog-toolbar .woocommerce-result-count > span { grid-column:1; grid-row:2; align-self:start; font-size:11px; line-height:1.4; color:#71666f; }
 body.sx-category-refined #primary .sx-catalog-toolbar .sx-result-all { grid-column:2; grid-row:1 / 3; min-height:44px; margin:0; padding:8px 12px; border-radius:8px; border-color:#e3d6df; justify-content:center; }
 body.sx-category-refined #primary .sx-catalog-toolbar .woocommerce-ordering { align-self:stretch; width:100%; min-width:0; margin:0; padding:0; }
 body.sx-category-refined #primary .sx-sort { width:100%; }
 body.sx-category-refined #primary .sx-sort summary { width:100%; min-height:46px; padding:11px 12px; border-radius:8px; justify-content:flex-start; gap:8px; font-size:14px; }
 body.sx-category-refined #primary .sx-sort-current { flex:1; min-width:0; text-align:right; font-size:12px; }
 body.sx-category-refined #primary .sx-sort-options { left:0; right:0; width:100%; min-width:0; max-width:100%; }
 body.sx-category-refined #primary .sx-catalog-toolbar .woocommerce-ordering select { width:100%; }
}
/* Pagination, native WooCommerce URLs retained. */
body.sx-category-refined #primary .woocommerce-pagination { clear:both; margin:30px 0 38px; text-align:center; }
body.sx-category-refined #primary .woocommerce-pagination ul.page-numbers { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; margin:0; padding:0; border:0; background:none; }
body.sx-category-refined #primary .woocommerce-pagination ul.page-numbers li { display:block; float:none; margin:0; padding:0; border:0; list-style:none; overflow:visible; }
body.sx-category-refined #primary .woocommerce-pagination ul.page-numbers li > a,
body.sx-category-refined #primary .woocommerce-pagination ul.page-numbers li > span { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:10px 12px; box-sizing:border-box; border:1px solid #eadde4; border-radius:10px; background:#fff; color:#45313c; font:500 14px/1.2 "Montserrat",Arial,sans-serif; text-decoration:none; }
body.sx-category-refined #primary .woocommerce-pagination ul.page-numbers li > .current { color:#fff; background:#ba065f; border-color:#ba065f; font-weight:700; }
body.sx-category-refined #primary .woocommerce-pagination ul.page-numbers li > a:hover { color:#ba065f; background:#fff4f8; border-color:#ba065f; }
body.sx-category-refined #primary .woocommerce-pagination ul.page-numbers li > a:focus-visible { outline:2px solid #ba065f; outline-offset:3px; }
body.sx-category-refined #primary .woocommerce-pagination ul.page-numbers li > .dots { border:0; min-width:24px; padding:0; }
body.sx-category-refined #primary .woocommerce-pagination .sx-page-disabled { opacity:.42; }
body.sx-category-refined #primary .woocommerce-pagination li.sx-page-status { display:none; }
/* Single editorial invitation, with one destination. */
body.sx-category-refined #primary .sx-guide-editorial { display:grid; grid-template-columns:minmax(0,45fr) minmax(0,55fr); padding:0; overflow:hidden; background:#fff2f7; border:1px solid #f3e2ea; border-radius:20px; margin:36px 0; }
body.sx-category-refined #primary .sx-guide-visual { min-height:270px; position:relative; }
body.sx-category-refined #primary .sx-guide-visual img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:right center; margin:0; border:0; }
body.sx-category-refined #primary .sx-guide-copy { padding:clamp(28px,4vw,64px); align-self:center; min-width:0; box-sizing:border-box; }
body.sx-category-refined #primary .sx-guide-copy .sx-guide-signature { margin:0 0 14px; color:#ba065f; font:700 13px/1.5 "Montserrat",Arial,sans-serif; letter-spacing:.1em; text-transform:uppercase; }
body.sx-category-refined #primary .sx-guide-signature span { font-weight:400; }
body.sx-category-refined #primary .sx-guide-copy h2 { font-size:clamp(26px,2.4vw,42px); font-weight:500; letter-spacing:-.035em; line-height:1.16; max-width:640px; margin:0 0 14px; color:#30222b; }
body.sx-category-refined #primary .sx-guide-copy > p:not(.sx-guide-signature) { max-width:480px; font:16px/1.65 "Montserrat",Arial,sans-serif; margin:0 0 22px; color:#65525e; }
body.sx-category-refined #primary .sx-guide-copy .sx-category-guide { display:inline-flex; gap:18px; align-items:center; justify-content:center; min-height:48px; padding:13px 20px; margin:0; background:#ba065f; border:1px solid #ba065f; border-radius:9px; color:#fff; text-decoration:none; font:600 14px/1.4 "Montserrat",Arial,sans-serif; }
body.sx-category-refined #primary .sx-guide-copy .sx-category-guide:hover { background:#fff; color:#ba065f; }
body.sx-category-refined #primary .sx-category-guide:focus-visible { outline:2px solid #ba065f; outline-offset:3px; }
.sx-category-rail { position:relative; }
.sx-category-next { display:none; }
@media(max-width:767px) {
 body.sx-category-refined #primary .sx-category-rail .sx-category-list { display:flex; gap:8px; overflow-x:auto; padding:2px 0 7px; scroll-snap-type:x proximity; scroll-padding:0 44px; }
 body.sx-category-refined #primary .sx-category-rail .sx-category-list li { flex:0 0 42%; min-width:0; scroll-snap-align:start; }
 body.sx-category-refined #primary .sx-category-rail .sx-category-list a { width:100%; white-space:normal; height:100%; min-height:54px; background:#fff; border:1px solid #e7d8e0; border-radius:10px; color:#4d3442; padding:9px 11px; font-size:12px; line-height:1.3; }
 body.sx-category-refined #primary .sx-category-rail .sx-category-list a[aria-current="page"] { background:#ba065f; color:#fff; border-color:#ba065f; }
 body.sx-category-refined #primary .sx-category-scroll-hint { display:none; }
 .sx-category-rail.sx-has-more::after { content:''; position:absolute; top:0; bottom:0; right:0; width:52px; background:linear-gradient(90deg,#ffffff00,#fff 75%); pointer-events:none; }
 body.sx-category-refined #primary .sx-category-next { display:flex; position:absolute; right:0; top:50%; transform:translateY(-50%); align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; padding:10px; border:0; border-radius:50%; background:#fff; color:#ba065f; box-shadow:none; z-index:1; }
 body.sx-category-refined #primary .sx-category-next[hidden] { display:none; }
 body.sx-category-refined #primary .sx-category-next::before,body.sx-category-refined #primary .sx-category-next::after { content:none; }
 .sx-category-next svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; }
 .sx-category-next:focus-visible { outline:2px solid #ba065f; outline-offset:-3px; }
 body.sx-category-refined #primary .woocommerce-pagination ul[data-sx-pagination] { justify-content:space-between; flex-wrap:nowrap; gap:6px; }
 body.sx-category-refined #primary .woocommerce-pagination ul[data-sx-pagination] li { display:none; }
 body.sx-category-refined #primary .woocommerce-pagination ul[data-sx-pagination] li.sx-page-prev,
 body.sx-category-refined #primary .woocommerce-pagination ul[data-sx-pagination] li.sx-page-next { display:block; }
 body.sx-category-refined #primary .woocommerce-pagination ul[data-sx-pagination] li.sx-page-status { display:block; color:#65525e; font:500 13px/1.4 "Montserrat",Arial,sans-serif; white-space:nowrap; }
 body.sx-category-refined #primary .sx-guide-editorial { grid-template-columns:1fr; border-radius:16px; margin:28px 0; }
 body.sx-category-refined #primary .sx-guide-visual { min-height:0; height:115px; }
 body.sx-category-refined #primary .sx-guide-copy { padding:22px; }
 body.sx-category-refined #primary .sx-guide-copy h2 { font-size:25px; }
 body.sx-category-refined #primary .sx-guide-copy > p:not(.sx-guide-signature) { font-size:14px; margin-bottom:18px; }
 body.sx-category-refined #primary .sx-guide-copy .sx-category-guide { width:100%; padding:12px; box-sizing:border-box; gap:12px; }
}

/* Editorial photograph supplied by merchant; hero remains unchanged. */
body.sx-category-refined #primary .sx-guide-visual { min-height:360px; }
body.sx-category-refined #primary .sx-guide-visual img { object-position:50% 43%; }
@media(max-width:767px) {
 body.sx-category-refined #primary .sx-guide-visual { min-height:0; height:200px; }
 body.sx-category-refined #primary .sx-guide-visual img { object-position:50% 43%; }
}

@media(max-width:767px) {
 body.sx-category-refined #primary .sx-guide-copy { padding:26px 22px; }
 body.sx-category-refined #primary .sx-guide-copy h2 { font-size:clamp(25px,6.5vw,32px); }
 body.sx-category-refined #primary .sx-guide-copy .sx-guide-signature { font-size:11px; }
}

/* Typography trial scoped to the lubricant catalogue; native icon fonts are preserved. */
body.sx-category-refined #primary .sx-lube-hero h1,
body.sx-category-refined #primary .woocommerce-products-header h1 { font-weight:500; line-height:1.2; letter-spacing:-.03em; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product h3.product-title { font-weight:500; line-height:1.45; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product h3.product-title a { font-family:inherit; font-weight:inherit; line-height:inherit; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > .price { font-weight:600; }
body.sx-category-refined #primary .wp-store-products > ul.products > li.product > a.button { font-family:"Montserrat",Arial,sans-serif; font-weight:600; letter-spacing:-.02em; }
body.sx-category-refined #primary .sx-lube-hero p { line-height:1.7; }
body.sx-category-refined #primary .sx-result-total,
body.sx-category-refined #primary .sx-guide-copy .sx-guide-signature { font-weight:600; }

/* Games/Books: preserve the banner objects on narrow screens. */
@media(max-width:767px) {
 body.sx-category-refined #primary .sx-games-hero-photo { height:170px; }
 body.sx-category-refined.term-jeux-librairie #primary .sx-category-rail .sx-category-list li { flex:1 0 calc(50% - 4px); }
}

/* Massage uses the same mobile illustration height as Games/Books. */
@media(max-width:767px) {
 body.sx-category-refined #primary .sx-massage-hero .sx-lube-hero-photo { height:170px; }
}

/* Short, readable subcategory introductions without an oversized empty header. */
body.sx-category-refined #primary .sx-massage-subhero { min-height:300px; display:flex; align-items:center; }
@media(max-width:767px) {
 body.sx-category-refined #primary .sx-massage-subhero { display:block; min-height:0; }
}

/* Two-page Massage navigation: retain native numbered links only. */
body.sx-category-refined #primary .woocommerce-pagination ul.sx-pagination-compact[data-sx-pagination] { justify-content:center; gap:8px; }
body.sx-category-refined #primary .woocommerce-pagination ul.sx-pagination-compact[data-sx-pagination] > li { display:block; }

/* BDSM: same catalogue system, restrained editorial guide. */
.sx-category-refined .sx-bdsm-subhero{min-height:300px;display:flex;align-items:center}
.sx-category-refined .sx-bdsm-guide{margin:48px 0 36px;padding:36px 40px;display:grid;grid-template-columns:minmax(150px,.32fr) minmax(0,1fr);gap:36px;border:1px solid #eddbe3;border-radius:24px;background:linear-gradient(120deg,#fcf0f5,#fff);text-align:left}
.sx-category-refined .sx-bdsm-guide-signature{font-size:24px;font-weight:700;color:#ba065f;letter-spacing:-.5px}
.sx-category-refined .sx-bdsm-guide-signature span{display:block;margin-top:8px;font-size:12px;font-weight:500;letter-spacing:2px;text-transform:uppercase;color:#6b5961}
.sx-category-refined .sx-bdsm-guide h2{margin:0 0 14px;font-size:clamp(24px,2.3vw,34px);line-height:1.2;color:#29232a;font-weight:600}
.sx-category-refined .sx-bdsm-guide p{margin:0 0 22px;max-width:650px;font-size:16px;line-height:1.65;color:#62555c}
.sx-category-refined .sx-bdsm-guide .sx-category-guide{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:14px 22px;background:#ba065f;color:#fff;border:1px solid #ba065f;border-radius:999px;text-decoration:none;font-size:14px;line-height:1.45;font-weight:600}
.sx-category-refined .sx-bdsm-guide .sx-category-guide:hover{background:#fff;color:#ba065f}
@media(max-width:767px){
.sx-category-refined .sx-bdsm-hero .sx-lube-hero-photo{height:170px;object-position:right center}
.sx-category-refined .sx-bdsm-subhero{min-height:0;display:block}
.sx-category-refined .sx-bdsm-guide{grid-template-columns:minmax(0,1fr);gap:20px;margin:30px 0;padding:25px 22px;border-radius:20px}
.sx-category-refined .sx-bdsm-guide-signature{font-size:20px}
.sx-category-refined .sx-bdsm-guide-signature span{display:inline;margin-left:10px;letter-spacing:1px}
.sx-category-refined .sx-bdsm-guide .sx-category-guide{width:100%;box-sizing:border-box;font-size:13px;padding:13px 15px}
}

.sx-category-refined .sx-bdsm-guide{padding:0;overflow:hidden;grid-template-columns:minmax(0,.7fr) minmax(0,1fr);gap:0;align-items:stretch}
.sx-category-refined .sx-bdsm-guide-visual{min-height:330px;position:relative}
.sx-category-refined .sx-bdsm-guide-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 52%}
.sx-category-refined .sx-bdsm-guide-copy{padding:38px;align-self:center;min-width:0}
.sx-category-refined .sx-bdsm-guide-signature{margin-bottom:22px}
.sx-category-refined .sx-bdsm-guide .sx-category-guide span{background:none!important;position:static!important;padding:0!important;width:auto!important;height:auto!important;flex:0 0 auto}
.sx-category-refined .sx-bdsm-guide .sx-category-guide::before,.sx-category-refined .sx-bdsm-guide .sx-category-guide::after{content:none!important}
.sx-category-refined .sx-bdsm-hero::before{background:linear-gradient(90deg,#fcf3f6 0%,#fcf3f6 53%,rgba(252,243,246,.93) 62%,rgba(252,243,246,0) 77%)}
@media(max-width:767px){
.sx-category-refined .sx-bdsm-guide{grid-template-columns:minmax(0,1fr);gap:0}
.sx-category-refined .sx-bdsm-guide-visual{min-height:0;height:220px}
.sx-category-refined .sx-bdsm-guide-copy{padding:25px 22px}
.sx-category-refined .sx-bdsm-hero::before{background:none}
}

/* Cosmetics: inherit tested catalogue layout without affecting other categories. */
.sx-category-refined .sx-cosmetics-subhero{min-height:300px;display:flex;align-items:center}
.sx-category-refined .sx-cosmetics-guide .sx-bdsm-guide-visual img{object-position:center 60%}
@media(max-width:767px){
.sx-category-refined .sx-cosmetics-hero .sx-lube-hero-photo{height:170px;object-position:right center}
.sx-category-refined .sx-cosmetics-subhero{min-height:0;display:block}
.sx-category-refined .sx-cosmetics-guide .sx-bdsm-guide-visual{height:280px}
.sx-category-refined .sx-cosmetics-guide .sx-bdsm-guide-visual img{object-position:center 80%}
}

/* Beauty family: same responsive catalogue and editorial block. */
.sx-category-refined .sx-beauty-subhero{min-height:300px;display:flex;align-items:center}
.sx-category-refined .sx-beauty-guide .sx-bdsm-guide-visual img{object-position:center 65%}
@media(max-width:767px){
.sx-category-refined .sx-beauty-hero .sx-lube-hero-photo{height:170px;object-position:right center}
.sx-category-refined .sx-beauty-subhero{min-height:0;display:block}
.sx-category-refined .sx-beauty-guide .sx-bdsm-guide-visual{height:250px}
.sx-category-refined .sx-beauty-guide .sx-bdsm-guide-visual img{object-position:center 65%}
}

/* Aphrodisiacs family: shared catalogue presentation. */
.sx-category-refined .sx-aphro-subhero{min-height:300px;display:flex;align-items:center}
@media(max-width:767px){
.sx-category-refined .sx-aphro-hero .sx-lube-hero-photo{height:170px;object-position:right center}
.sx-category-refined .sx-aphro-subhero{min-height:0;display:block}
}

/* Lingerie and Sextoys: same hero treatment on root and descendant archives. */
body.sx-category-refined #primary .sx-trio-subhero { min-height:300px;display:flex;align-items:center; }
@media(max-width:767px){
 body.sx-category-refined #primary .sx-trio-hero .sx-lube-hero-photo { height:170px;object-position:right center; }
 body.sx-category-refined #primary .sx-trio-subhero { min-height:0;display:block; }
}

/* Lingerie category choices: warm tinted surfaces also on mobile. */
@media(max-width:767px) {
 body.sx-category-refined.sx-lingerie-family #primary .sx-category-rail .sx-category-list a { background:#fff3ed; border-color:#f2e3e9; color:#ba065f; font-weight:500; }
 body.sx-category-refined.sx-lingerie-family #primary .sx-category-rail .sx-category-list a:hover,
 body.sx-category-refined.sx-lingerie-family #primary .sx-category-rail .sx-category-list a[aria-current="page"] { background:#ba065f; border-color:#ba065f; color:#fff; }
}

/* Added families reuse the same layout, with a compact editorial introduction. */
body.sx-category-refined #primary .sx-extra-hero { min-height:300px;display:flex;align-items:center; }
body.sx-category-refined #primary .sx-extra-description p:last-child { margin-bottom:0; }
@media(max-width:767px) {
 body.sx-category-refined #primary .sx-extra-hero { min-height:0;display:block; }
 body.sx-category-refined #primary .sx-extra-hero .sx-lube-hero-photo { height:170px;object-position:right center; }
}
