/* Phone bar: a floating rounded bar with five tabs, below 900 px wide. Markup: z9-phone-bar.php (body.cl3-pb-on, nav.cl3-pb).
   The page stays visible around it, so it is clear the page goes on. The soft pill (.cl3-pb__g) sits behind the chosen tab; phone-bar.js
   slides it to a tapped tab on a spring while the new page loads, and the new page opens with it already there.
   Stack: above the page and the WhatsApp button (44); below the header and its menu (50), the cart drawer, search and toasts
   (120+), the age gate, the welcome popup and every <dialog>. */
.cl3-pb{display:none}
@media (max-width:899.98px) and (min-height:431px){ /* not on a phone held sideways: on so short a screen it would sit on the hero's button */
  :root{--cl3-pb-h:62px;--cl3-pb-gap:12px;--cl3-pb:calc(var(--cl3-pb-h) + var(--cl3-pb-gap) + env(safe-area-inset-bottom,0px));
    --cl3-pb-spring:cubic-bezier(.3,1.35,.5,1)}
  @supports (transition-timing-function:linear(0,1)){
    :root{--cl3-pb-spring:linear(0,.057,.193,.363,.537,.695,.826,.926,.997,1.042,1.065,1.073,1.07,1.061,1.049,1.036,1.024,1.014,1.006,1.001,.997,.995,.995,.995,.995,.996,1)}
  }

  .cl3-pb{position:fixed;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(var(--cl3-pb-gap) + env(safe-area-inset-bottom,0px));z-index:46;
    box-sizing:border-box;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);max-width:480px;height:var(--cl3-pb-h);margin-inline:auto;padding:5px;border-radius:31px;
    background:linear-gradient(180deg,#2e3036,#141519 52%,#0c0c0f);color:#dcdde1;
    box-shadow:0 4px 10px -4px rgba(0,0,0,.75); /* ends inside the 12 px gap: iOS Safari cuts anything fixed at the bottom of the view in a hard line */
    font:500 10.5px/1.2 "Neue Montreal","NM Fallback",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;letter-spacing:.01em;
    -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"tnum" 1,"lnum" 1}
  @supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
    .cl3-pb{background:linear-gradient(180deg,rgba(74,77,86,.5),rgba(28,29,34,.5) 50%,rgba(8,8,11,.62));-webkit-backdrop-filter:blur(20px) saturate(170%) brightness(.42);backdrop-filter:blur(20px) saturate(170%) brightness(.42)}
  }

  .cl3-pb::after{content:"";position:absolute;inset:0;box-sizing:border-box;padding:1px;border-radius:inherit;pointer-events:none;
    background:linear-gradient(180deg,rgba(255,255,255,.46),rgba(255,255,255,.12) 40%,rgba(255,255,255,.05) 72%,rgba(255,255,255,.17));
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}

  .cl3-pb__g{position:absolute;left:5px;top:5px;bottom:5px;width:calc((100% - 10px)/var(--n,5));opacity:0;transform:translateX(calc(var(--i,0)*100%));pointer-events:none;
    transition:transform .56s var(--cl3-pb-spring),opacity .16s linear}
  .cl3-pb[data-on] .cl3-pb__g{opacity:1}
  .cl3-pb__g::before{content:"";position:absolute;inset:0;border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.27),rgba(255,255,255,.1) 58%,rgba(255,255,255,.15));box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 0 1px rgba(255,255,255,.05),0 2px 8px rgba(0,0,0,.28)}

  .cl3-pb__t{position:relative;z-index:1;display:grid;place-items:center;min-width:0;height:100%;border-radius:26px;color:inherit;text-decoration:none;transition:color .18s linear;
    -webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;touch-action:manipulation;-webkit-user-select:none;user-select:none}
  .cl3-pb__c{display:grid;justify-items:center;gap:3px;transition:transform .42s var(--cl3-pb-spring)}
  .cl3-pb__t:active .cl3-pb__c{transform:scale(.94);transition-duration:.06s}
  .cl3-pb__i{position:relative;display:block;width:23px;height:23px;color:#fff}
  .cl3-pb__i svg{position:absolute;left:0;top:0;display:block;width:23px;height:23px;overflow:visible}
  .cl3-pb__l{position:relative;display:block;white-space:nowrap}

  .cl3-pb__t.is-on{color:#fff}
  .cl3-pb.is-go .cl3-pb__t{transition:none} /* a tapped tab: the icon must land in the last frame before Safari stops painting */
  .cl3-pb__t.is-pop .cl3-pb__i{animation:cl3pb-pop .46s cubic-bezier(.3,.7,.3,1) both}
  .cl3-pb__t:focus-visible{outline:2px solid #fff;outline-offset:-3px}
  .cl3-pb__t:focus:not(:focus-visible){outline:none}

  .cl3-pb [data-minicart-count-badge]{position:absolute;z-index:1;left:auto;right:-8px;top:-5px;bottom:auto;transform:none;display:grid;place-items:center;box-sizing:border-box;min-width:16px;height:16px;padding:0 4px;
    border-radius:999px;background:#fff;color:#000;box-shadow:0 0 0 2px #17181c;font:600 10px/1 "Neue Montreal","NM Fallback",system-ui,sans-serif;letter-spacing:0;font-variant-numeric:tabular-nums;pointer-events:none}
  .cl3-pb__t.is-empty [data-minicart-count-badge]{display:none}

  /* the first screen leaves room for the bar: the hero's sum (c4m.css) put the top of the card exactly where the bar floats */
  :root{--c4vh:100vh}
  @supports (height:100svh){
    :root{--c4vh:100svh}
  }
  /* short phones: the frame used to stop at 290 px, and below that the card's name, price and + slid behind the bar. Now the first screen closes up instead.
     --c4s is how many px short the screen is: 0 from 660 px tall (636 with a one-line lead), so taller screens are untouched, and it stops at 120 (540 px tall), the least vial that still reads as one.
     561.4 is where the frame reaches 290; the .8 on top puts the card 6 px clear of the bar from the first px. Each px is shared out: the frame (.78 x .86), its pull into the black above the vial (.2),
     the text's margins (.2), less .07 the card gives back so the vial's base and hoop stay in view. The frame keeps its shape, so the poster and the 3D stay in step.
     svh, not a height media query: it holds still when the browser's bars slide away on scroll. In-app browsers (Instagram) make the
     page itself taller instead, so on touch screens z9-phone-bar.php pins --c4vh to the height the page opened with (8 Nov 2026). */
  html body.cl3-pb-on .c3-root.h3[data-h3]{--c4s:clamp(0px,calc(562.2px + var(--cl3-pb) + var(--cl3-pb-lead,0px) - var(--c4vh)),120px)}
  html body.cl3-pb-on .c3-root.h3[data-h3] .h3-frame{--c4fh:clamp(calc(290px - var(--c4s) * .78),calc((var(--c4vh) - 312px - var(--cl3-pb) - var(--cl3-pb-lead,0px)) / .86),460px);
    margin-top:calc(var(--c4fh) * -.14 - var(--c4s) * .2)}
  html body.cl3-pb-on .c3-root.h3[data-h3] .h3-h1{margin-top:calc(18px - var(--c4s) * .09)}
  html body.cl3-pb-on .c3-root.h3[data-h3] .h3-lead{margin-top:calc(12px - var(--c4s) * .055)}
  html body.cl3-pb-on .c3-root.h3[data-h3] .h3-copy .h3-btn{margin-top:calc(18px - var(--c4s) * .055)}
  html body.cl3-pb-on .c3-root.h3[data-h3] .h3-spec{margin-top:calc(-40px + var(--c4s) * .07)}
  html body.cl3-pb-on .c3-root.h3[data-h3] .h3-guides--s text{font-size:calc(var(--t-label,12px) + var(--c4s) * .045)} /* the guide scales with the frame: this keeps the VIAL label at today's size on screen */
  @media (max-width:394px){
    :root{--cl3-pb-lead:24px} /* the hero's line runs to two lines here */
  }
  @media (max-width:321.98px){
    /* 320 wide: the headline's first line was 1.2 px too wide, so it broke into three lines and pushed everything below it down 36 px. Same size, two lines; the 1 px on top keeps the card 6 px clear. */
    :root{--cl3-pb-lead:25px}
    html body.cl3-pb-on .c3-root.h3[data-h3] .h3-h1{margin-inline:12px}
  }

  /* off under the first-visit screens and while the phone keyboard is open (phone-bar.js) */
  html:is(.ld3-intro,.ld3-gate-on,.cl-gate-pending,.cl3-pb-kb) .cl3-pb{visibility:hidden;pointer-events:none}

  /* never covers anything: the footer ends above it, focus and anchors stop above it, the floating bits sit above it */
  body.cl3-pb-on .c3-root.b3-ftr{padding-bottom:calc(20px + var(--cl3-pb))}
  html:has(> body.cl3-pb-on){scroll-padding-bottom:calc(var(--cl3-pb) + 12px)}
  body.cl3-pb-on .cl-wa{bottom:calc(var(--cl3-pb) + 12px)}
  body.cl3-pb-on :is(.cl-toast,.k-toast){bottom:calc(var(--cl3-pb) + 12px)}

  /* product page: the Add bar floats just above the tabs, and leaves downwards behind them */
  body.cl3-pb-on .c3-root .p3-pbar{left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(var(--cl3-pb) + 8px);max-width:480px;margin-inline:auto;padding:0;background:none;border-top:0}
  body.cl3-pb-on .c3-root .p3-pbar .p3-btn{box-shadow:0 8px 20px -10px rgba(0,0,0,.6)}
  body.cl3-pb-on .c3-root .p3-pbar.is-off{transform:translateY(calc(100% + var(--cl3-pb) + 12px))}
  body.cl3-pb-on:has(.c3-root .p3-pbar){padding-bottom:calc(var(--cl3-pb) + 68px)}
  body.cl3-pb-on:has(.c3-root .p3-pbar) :is(.cl-wa,.cl-toast){bottom:calc(var(--cl3-pb) + 72px)}

  /* product page on a phone: the photo gives way, so the name, price, amounts and Add fit above the tabs on the first screen */
  body.cl3-pb-on .c3-root .p3-gal__main{aspect-ratio:auto;height:min(calc(100vw - 24px),max(200px,calc(var(--c4vh) - 530px)))}
  @supports (height:100svh){
    body.cl3-pb-on .c3-root .p3-gal__main{height:min(calc(100vw - 24px),max(200px,calc(var(--c4vh) - 530px)))}
  }

  /* cart with items: the Checkout bar sits just above the tabs too */
  html:not(.no-js) body.cl3-pb-on .cm-bar{bottom:calc(var(--cl3-pb) + 8px);transform:translateY(calc(100% + var(--cl3-pb) + 24px))}
  html:not(.no-js) body.cl3-pb-on .cm-bar.is-on{transform:none}
  html.cm-bar-on body.cl3-pb-on:has(> .cm-page) > .k-toast{bottom:calc(var(--cl3-pb) + var(--cm-bar-h) + 20px)}
}
@keyframes cl3pb-pop{0%{transform:scale(.86)}42%{transform:scale(1.13)}72%{transform:scale(.97)}100%{transform:none}}
@media (max-width:899.98px) and (prefers-reduced-motion:reduce){
  .cl3-pb__c,.cl3-pb__g{transition:none}
  .cl3-pb.is-go .cl3-pb__t{transition:none} /* a tapped tab: the icon must land in the last frame before Safari stops painting */
  .cl3-pb__t.is-pop .cl3-pb__i{animation:none}
  .cl3-pb__t:active .cl3-pb__c{transform:none;opacity:.72}
}
@media (max-width:899.98px) and (prefers-reduced-transparency:reduce){
  .cl3-pb{background:linear-gradient(180deg,#2e3036,#141519 52%,#0c0c0f);-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media print{.cl3-pb{display:none!important}}
