/* Mobile catalog: floating right controls and a native category feed. */
.catalog-mobile-categories,.catalog-mobile-back,.catalog-mobile-rail-bg,
.mobile-rail-label,.prod-rail-zoom,.prod-rail-views,.mobile-button-label,.cat-view-link { display:none; }
.mobile-mode-thumb { display:none; }
.prod-tab-short { display:none; }
.catalog-mobile-only { display:none; }
@media (max-width:768px) {
  .catalog-mobile-only { display:contents; }
  .catalog-mobile-only .nav-rail,.catalog-mobile-only .nav-burger,.catalog-mobile-only .nav-mobile { display:none; }
  /* the page scrolls in body, html stays put. Not the knuckle home (.splashes): Locomotive Scroll reveals its slides
     from the window's scroll, and with body scrolling every slide after the first stayed blank */
  html:has(.catalog-mobile-categories):not(:has(.splashes)) { height:100%; overflow:hidden; background:#080808; }
  body:has(.catalog-mobile-categories) { --catalog-rail:0px; --catalog-bottom:78px; }
  body:has(.catalog-mobile-categories):not(:has(.splashes)) { box-sizing:border-box; min-height:0; max-height:100dvh; height:100dvh; margin:0; overflow-y:auto; overflow-x:hidden; }
  body:has(.catalog-mobile-categories) .hero-scroll-container { height:100dvh; }
  body:has(.catalog-mobile-categories) .hero-scroll-container > .hero-card { height:100dvh; min-height:0; }
  body:has(#catScroll),body:has(.prod-v4) { --catalog-rail:56px; --catalog-bottom:78px; background:#080808; }
  body:has(.prod-v4) { background:#000; }
  .catalog-mobile-rail-bg { display:none; }
  .catalog-mobile-back { display:flex; position:fixed; left:12px; top:calc(16px + env(safe-area-inset-top,0px)); width:36px; height:36px; justify-content:center; align-items:center; border-radius:50%; background:#333; color:#111; text-decoration:none; z-index:810; }
  .catalog-mobile-back svg { display:block; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  body:has(.catalog-mobile-rail-bg) .nav-header .logo-holder { left:50%; top:calc(16px + env(safe-area-inset-top,0px)); width:72px; height:36px; transform:translateX(-50%); background-position:center; }
  body:has(.catalog-mobile-rail-bg) .lang-toggle { display:none; }
  body:has(.catalog-mobile-rail-bg) .nav-burger { left:auto; right:6px; top:calc(16px + env(safe-area-inset-top,0px)); width:44px; height:36px; z-index:810; border:0; background:transparent; box-shadow:none; }
  body:has(.catalog-mobile-rail-bg) .kit-btn,html.allbar-fixed body:has(.catalog-mobile-rail-bg) .kit-btn { top:calc(16px + env(safe-area-inset-top,0px)); right:calc(var(--catalog-rail) + 12px); width:36px; height:36px; border:0; background:transparent; box-shadow:none; }
  body:has(#catScroll) .kit-btn { top:calc(16px + env(safe-area-inset-top,0px)); right:calc(var(--catalog-rail) + 12px); }
  .catalog-mobile-categories { position:fixed; left:10px; right:10px; bottom:calc(10px + env(safe-area-inset-bottom,0px)); z-index:810; display:flex; gap:2px; padding:5px; border:0; border-radius:20px; background:#080808f5; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; }
  /* the page behind the bar: what scrolls under it fades out instead of showing through, around and below it */
  .catalog-mobile-categories { background:#080808; }
  body:is(:has(.all-page),:has(#catScroll),:has(.prod-v4)) .catalog-mobile-categories::before { content:""; position:fixed; left:0; right:0; bottom:0; height:calc(var(--catalog-bottom) + 2px + env(safe-area-inset-bottom,0px)); z-index:-1; pointer-events:none; background:linear-gradient(rgba(8,8,8,0),#080808 14px); }
  body:has(#catScroll) .catalog-mobile-categories::before,body:has(.prod-v4) .catalog-mobile-categories::before { background:linear-gradient(rgba(0,0,0,0),#000 14px); }
  .catalog-mobile-categories a { display:flex; flex:1 0 36px; min-width:36px; min-height:46px; box-sizing:border-box; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:5px 2px; border-radius:13px; color:#999; text-decoration:none; }
  .catalog-mobile-categories a[aria-current] { background:linear-gradient(135deg,#ff7900,#b34b00); color:#000; }
  .catalog-mobile-categories svg,.catalog-mobile-categories img { width:19px; height:19px; object-fit:contain; }
  .catalog-mobile-categories span { font:500 6.5px/1.15 var(--cd-font-body,system-ui,sans-serif); text-transform:uppercase; max-width:44px; white-space:normal; text-align:center; }
  .catalog-mobile-categories a:focus-visible,.catalog-mobile-back:focus-visible { outline:2px solid #f76c04; outline-offset:-2px; }

  /* Keep native touch and wheel scrolling; all product sections remain visible. */
  #catScroll { box-sizing:border-box; padding:calc(76px + env(safe-area-inset-top,0px)) 0 calc(var(--catalog-bottom) + env(safe-area-inset-bottom,0px)); scroll-snap-type:none; scroll-behavior:auto; }
  /* what scrolls up under the header (the previous product's button) fades out instead of showing behind the logo */
  #catScroll { -webkit-mask-image:linear-gradient(transparent calc(66px + env(safe-area-inset-top,0px)),#000 calc(76px + env(safe-area-inset-top,0px))); mask-image:linear-gradient(transparent calc(66px + env(safe-area-inset-top,0px)),#000 calc(76px + env(safe-area-inset-top,0px))); }
  #catScroll .cat-product,#catScroll .cat-product.size-small,#catScroll .cat-product.size-large { --box-w:92vw; --box-h:min(calc(100vw - 20px),52svh,460px); width:100%; height:auto; min-height:0; padding:12px 10px 8px; justify-content:flex-start; gap:8px; scroll-snap-align:none; overflow:hidden; border-radius:0; background:#000; }
  #catScroll .cat-product:not(:first-child) { border-radius:0; }
  #catScroll .cat-product::after { display:none; }
  #catScroll .cat-label { width:100%; padding:0 4px; translate:none; transform:none; gap:4px; }
  #catScroll .cat-product-title { font-size:clamp(30px,9.4vw,48px); line-height:1.03; max-width:12ch; margin:0; }
  #catScroll .cat-fit-icon { height:23px; margin:0; }
  #catScroll .cat-part { font-size:12px; margin:0; }
  /* one product per screen: the label on top, the picture takes all the height left, the button under it */
  #catScroll .cat-product,#catScroll .cat-product.size-small,#catScroll .cat-product.size-large { min-height:calc(100svh - 76px - var(--catalog-bottom) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); }
  #catScroll .cat-product-stage { position:relative; flex:1 1 auto; width:100%; height:auto; min-height:var(--box-h); translate:none; }
  #catScroll .cat-product-stage:has(.cat-strip-slide.is-current:not(.is-3d)) { height:clamp(180px,calc((100vw - 20px) * .9 / var(--cat-photo-aspect,1) + 24px),var(--box-h)); }
  #catScroll .cat-img-strip { position:absolute; inset:0; transform:none; box-sizing:border-box; width:100%; height:100%; padding:0; gap:0; }
  #catScroll .cat-strip-slide { flex:0 0 100%; width:100%; height:100%; }
  #catScroll .cat-3d { width:100%; height:100%; }
  #catScroll .cat-strip-img { width:90%; height:auto; max-height:calc(100% - 24px); max-width:90%; }
  /* the footer ends above the bottom bar: its seal and the copyright line sat under it */
  body:has(.catalog-mobile-categories) .cine-footer .cf-grid { padding-bottom: calc(22px + var(--catalog-bottom, 0px) + env(safe-area-inset-bottom, 0px)); }
  /* the picture or the 3D model fills the whole card and the badge, name, number and pill float over it
     (Olivier, 11-23: boxed between the name and the pill, the renders were cut off). The 3D canvas keeps
     touch-action pan-y, so a vertical swipe on it still scrolls the page. */
  #catScroll .cat-product { position:relative; }
  #catScroll .cat-product .cat-product-stage,
  #catScroll .cat-product .cat-product-stage:has(.cat-strip-slide.is-current:not(.is-3d)) { position:absolute; inset:0; width:auto; height:auto; min-height:0; z-index:1; }
  #catScroll .cat-product .cat-label { position:relative; z-index:3; }
  #catScroll .cat-product .cat-view-link { position:relative; z-index:3; margin-top:auto; }
  /* photos were never cut: they keep their earlier size (the old picture box), centred in the card */
  #catScroll .cat-product .cat-strip-img { max-height:min(calc(100% - 24px), var(--box-h)); }
  /* the way into the product page, under its picture: the site's pill, as "En savoir plus" on desktop */
  #catScroll .cat-view-link { display:inline-flex; align-self:center; margin:2px 0 6px; }
  #catScroll .cat-view-link .chip svg { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
  /* Same desktop gradient and shadow; keep its fade inside the phone gallery. */
  #catScroll .cat-strip-slide::before { width:calc(100% * var(--cat-glow-size,1) * var(--cat-model-scale,1)); height:calc(100% * var(--cat-glow-size,1) * var(--cat-model-scale,1)); }
  #catScroll .cat-strip-link { width:100%; height:100%; }
  #catScroll .cine-footer { width:100%; box-sizing:border-box; }
  body:has(#catScroll) .cat-arrow,body:has(#catScroll) > .cat-peek { display:none !important; }

  /* Both pages use the same fixed tool column. Thumbnails scroll inside it. */
  body:has(#catScroll) .cat-dock,.prod-v4 .prod-media-rail { position:fixed; left:auto; right:0; top:calc(124px + env(safe-area-inset-top,0px)); bottom:auto; transform:none; width:var(--catalog-rail); max-width:var(--catalog-rail); height:auto; max-height:calc(100dvh - 212px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); min-height:0; box-sizing:border-box; z-index:700; margin:0; padding:24px 7px 12px; display:flex; flex-direction:column; align-items:center; gap:24px; border:0; border-radius:18px 0 0 18px; background:#1f1f1f; overflow:hidden; }
  body:has(#catScroll) .cat-dock[hidden] { display:none; }
  .cat-dock .cat-viewer-ui { width:100%; padding:0; flex:0 0 auto; }
  .cat-dock .cat-viewer-ui[hidden] { display:none; }
  .cat-dock .cat-controls { display:block; padding:0; border:0; background:transparent; box-shadow:none; border-radius:0; }
  .cat-dock .cat-dock-content { width:100%; }
  .cat-dock .cat-control-row { display:flex; width:100%; flex-direction:column; align-items:center; gap:24px; }
  .cat-dock .cat-control-actions { display:contents; }
  .cat-dock .cat-control-kit { order:-1; }
  .cat-dock .cat-view-modes,.cat-dock .cat-zoom,.prod-rail-views,.prod-rail-zoom { position:relative; display:flex; flex:0 0 auto; flex-direction:column; align-items:center; width:42px; gap:4px; box-sizing:border-box; border:0; border-radius:0; padding:0; }
  .cat-dock .cat-view-modes::before,.cat-dock .cat-zoom::before,.cat-mobile-products::before,.prod-media-rail .cat-peek::before { content:attr(data-rail-label); display:block; flex:0 0 auto; width:100%; color:#888; font:600 8px/1.5 var(--cd-font-body); text-align:center; text-transform:uppercase; }
  .cat-dock .cat-view-modes::before,.cat-dock .cat-zoom::before,.prod-rail-views::before { position:absolute; top:-17px; left:0; content:attr(data-rail-label); color:#888; width:100%; font:500 7px/1.4 var(--cd-font-body); text-align:center; text-transform:uppercase; }
  .cat-dock .cat-control,.cat-dock .cat-view-modes .cat-control,.cat-dock .cat-control-actions .hero-pill,.prod-v4 .prod-media-button,.prod-rail-zoom button { box-sizing:border-box; display:flex; flex:0 0 auto; flex-direction:column; align-items:center; justify-content:center; width:34px; min-width:34px; height:40px; padding:3px; gap:2px; border:0; border-radius:7px; background:transparent; color:#777; box-shadow:none; text-decoration:none; }
  .cat-dock .cat-view-modes .cat-control span,.mobile-button-label { display:block; font:600 8px/1 var(--cd-font-body); }
  .cat-dock .cat-view-modes .cat-control,.prod-v4 .prod-rail-views .prod-media-button { position:relative; width:34px; height:36px; min-height:36px; border:2px solid transparent; border-radius:10px; padding:2px; }
  .cat-dock .cat-view-modes .cat-control.active,.prod-v4 .prod-media-button.active { color:#ddd; border-color:#ff7900; background:transparent; }
  .cat-dock .cat-view-modes .cat-control > span,.prod-v4 .prod-media-button .mobile-button-label { position:absolute; left:50%; bottom:1px; transform:translateX(-50%); font:600 6px/9px var(--cd-font-body); text-transform:uppercase; white-space:nowrap; padding:0 3px; border-radius:4px; }
  .cat-dock .cat-view-modes .cat-control.active span,.prod-v4 .prod-media-button.active .mobile-button-label { background:#ff7900; color:#000; }
  .cat-dock .cat-view-modes .mobile-mode-thumb,.prod-v4 .prod-rail-views .mobile-mode-thumb { display:block; width:24px; height:22px; padding:0; margin:0 0 6px; object-fit:contain; filter:none; opacity:.45; }
  .cat-dock .cat-view-modes .active .mobile-mode-thumb,.prod-v4 .prod-rail-views .active .mobile-mode-thumb { opacity:1; }
  .cat-dock .cat-view-modes .mobile-mode-thumb[hidden],.prod-v4 .prod-rail-views .mobile-mode-thumb[hidden],.cat-view-modes .cat-control:has(.mobile-mode-thumb:not([hidden])) > svg,.prod-rail-views .prod-media-button:has(.mobile-mode-thumb:not([hidden])) > svg { display:none; }
  .cat-dock .cat-control-actions .cat-control-kit,.prod-v4 .prod-media-button.prod-mobile-kit { width:36px; min-width:36px; height:36px; background:linear-gradient(135deg,#ff7900,#bf5100); color:#000; border:1px solid #ff7900; border-radius:10px; }
  .cat-dock .cat-control-actions .cat-control-kit,.prod-v4 .prod-media-button.prod-mobile-kit { position:fixed; top:calc(66px + env(safe-area-inset-top,0px)); right:10px; min-height:36px; z-index:701; }
  .cat-dock .cat-control-kit::after,.prod-v4 .prod-mobile-kit::after { content:'RENT'; position:absolute; top:calc(100% + 6px); left:0; width:100%; color:#aaa; font:500 6px/1.2 var(--cd-font-body); text-align:center; }
  .cat-dock .cat-control-actions .cat-control-more { display:none; }
  .cat-dock .cat-viewer-ui .cat-zoom { display:none; }
  .cat-dock .cat-zoom[hidden],.prod-rail-zoom[hidden],.cat-dock .cat-view-modes .cat-control[hidden],.prod-v4 .prod-media-button[hidden] { display:none; }
  .cat-dock .cat-mobile-products { flex:0 1 auto; min-height:0; max-height:210px; display:flex; flex-direction:column; align-items:center; width:100%; padding:0; margin:0; gap:5px; overflow:hidden; }
  .cat-dock .cat-mobile-products[hidden] { display:none; }
  .cat-mobile-products > button { display:none; }
  .cat-dock .cat-mobile-thumbs { flex-direction:column; flex:1 1 auto; width:100%; min-height:0; overflow-y:auto; overflow-x:hidden; gap:6px; padding:0; overscroll-behavior-y:contain; }
  .cat-dock .cat-mobile-thumbs button { box-sizing:border-box; flex:0 0 42px; width:42px; height:42px; min-height:42px; max-height:42px; margin:0; padding:4px; border:1px solid transparent; border-radius:9px; background:#242424; overflow:hidden; }
  .cat-dock .cat-mobile-thumbs button[aria-current="true"] { border:2px solid #ff7900; padding:3px; background:transparent; }

  /* Product details stay in the content column, below the larger model. */
  main:has(.prod-v4),.prod-v4:has(.prod-media-rail) { background:#000; }
  .prod-v4:has(.prod-media-rail) { width:100%; max-width:none; padding:100px 18px 24px; grid-template-areas:'crumbs' 'media' 'badges' 'buy' 'title' 'tabs' 'details'; gap:16px; }
  .prod-v4 .prod-crumbs { display:none; }
  .prod-v4 .prod-title-block { text-align:center; margin:0; padding:18px 10px 0; background:#1c1c1c; border-radius:18px 18px 0 0; }
  .prod-v4 .prod-title-block .product-title { font:italic 800 20px/1.15 'Poppins','PPNikkeiJournal',sans-serif; letter-spacing:-.02em; }
  .prod-v4 .prod-title-block .cat-fit-icon,.prod-v4 .prod-title-block .prod-sku { display:none; }
  .prod-v4 .prod-title-block .product-subtitle { font-size:12px; }
  .prod-v4 .prod-tabs { position:relative; margin:-16px 0 0; padding:12px 16px 0; width:auto; background:#1c1c1c; box-sizing:border-box; gap:24px; border:0; }
  .prod-v4 .prod-tabs::after { content:''; position:absolute; left:16px; right:16px; bottom:0; height:1px; background:#444; pointer-events:none; }
  .prod-v4 .prod-tab { position:relative; z-index:1; min-height:40px; padding:8px 0; margin-bottom:0; border-bottom:4px solid transparent; font:italic 700 12px/1.2 'Poppins','PPNikkeiJournal',sans-serif; text-transform:none; color:#656565; }
  .prod-v4 .prod-tab-copy { display:none; }
  .prod-v4 .prod-tab-short { display:inline; }
  .prod-v4 .prod-tab.active { color:#fff; border-bottom-color:#f76c04; }
  .prod-v4 .prod-tab-panel { box-sizing:border-box; min-height:120px; margin-top:-16px; padding:12px 16px 18px; background:#1c1c1c; border-radius:0 0 18px 18px; border:0; }
  .prod-v4 .prod-desc { margin:0; font:italic 400 11px/1.35 'Poppins',var(--cd-font-body); color:#888; }
  .prod-v4 .prod-left #prodModelViewer,.prod-v4[data-media-size] .prod-media-image,.prod-v4[data-image-mode="full_half"] .prod-media-image.is-hero { height:clamp(230px,36svh,330px); }
  .prod-v4:not([data-media-size="small"]) .prod-left .prod-media-image > img { width:80%; }
  .prod-v4 .prod-left .prod-media-image.is-hero > img { width:100%; height:100%; object-fit:contain; }
  .prod-v4 .prod-right > .spec-badges { gap:8px; flex-wrap:nowrap; margin:4px 0 0; width:calc(100% - 84px); justify-self:center; }
  .prod-v4 .prod-right .spec-badge { flex:1 1 0; min-width:0; gap:4px; opacity:.8; }
  .prod-v4 .spec-badge-icon { min-width:0; height:24px; }
  .prod-v4 .spec-badge-icon img { max-width:42px; height:22px; }
  .prod-v4 .spec-badge-title,.prod-v4 .spec-badge-sub { font-size:10px; color:#999; }
  .prod-v4 .prod-mobile-browse { display:none; }
  .prod-v4 .prod-media-rail > .mobile-rail-label { display:none; }
  .mobile-rail-label { color:#888; font:600 8px/1.5 var(--cd-font-body); text-transform:uppercase; text-align:center; }
  .prod-v4 .prod-media-button.prod-mobile-kit { order:-2; margin:0; }
  .prod-v4 .prod-media-button[data-media="model"] { order:0; }
  .prod-v4 .prod-media-button[data-media="photos"] { order:1; }
  .prod-v4 .prod-media-button[data-media="montage"] { order:2; }
  .prod-v4 .prod-media-button[data-media="dimensions"],.prod-v4 .prod-media-button[data-media="downloads"] { display:none; }
  .prod-v4 .prod-media-rail::before { display:none; }
  .prod-rail-views { order:0; }
  .prod-rail-zoom { order:3; }
  .prod-rail-zoom > .mobile-rail-label { display:block; position:absolute; top:-17px; width:100%; font-size:7px; }
  .prod-rail-zoom svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.5; }
  .prod-rail-zoom button:disabled { opacity:.35; }
  .prod-v4 .prod-media-rail .cat-peek { position:relative; top:auto; right:auto; bottom:auto; transform:none; display:flex; flex:0 1 auto; min-height:0; max-height:210px; width:100%; max-width:100%; margin:0; padding:0; flex-direction:column; align-items:center; gap:6px; order:4; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; }
  .prod-media-rail .cat-peek-title,.prod-media-rail .cat-peek-name { display:none; }
  .prod-v4 .prod-media-rail .cat-peek-item { display:flex; align-items:center; justify-content:center; flex:0 0 42px; width:42px; height:42px; min-height:42px; opacity:1; }
  .prod-v4 .prod-media-rail .cat-peek-item .cat-peek-thumb { flex:0 0 34px; width:34px; height:34px; box-sizing:border-box; background-size:contain; background-repeat:no-repeat; background-position:center; border:1px solid transparent; border-radius:8px; background-color:#242424; }
  .prod-v4 .prod-media-rail .cat-peek-item.active .cat-peek-thumb { border:2px solid #ff7900; }
  body:has(.prod-v4) .prod-related { width:calc(100% - 28px); margin-left:14px; }
  body:has(.prod-v4) .cine-footer { width:100%; box-sizing:border-box; padding-bottom:var(--catalog-bottom); }
}
