/* Rozhika · bottom tab bar (R96, R97, R98) - phones and tablets, below 1024px. inc/tabbar.php prints the bar,
   assets/js/tabbar.js drives it. Loaded only where the bar is printed, with media="(max-width:1023.98px)", so a
   desktop downloads it late and never waits for it. The same file draws the bar on the stand-alone login page
   (plugins/rozhika-mobile-auth): there the bar's tokens come from that page's own palette (body.rzl, at the end).

   A floating pill with up to five destinations, the way iOS, Telegram and the big shops' apps do it. Its geometry
   is a few tokens on <body class="rz-has-tb">, read by everything that floats at the bottom instead of rules
   that move them: --rz-tb-space (the height it covers while it shows: the cart's sticky checkout bar),
   --rz-tb-cover (the drawers that open as its tab pages end above it), --rz-foot-clear (the footer's last line)
   and --rz-fab-base (the Widget Hub's line). The store's toasts need nothing: they send the bar away while they
   show (theme.js rzFloats). Layouts (Customizer «نوار پایین موبایل»):
     beside - Telegram's layout: the pill, and the hub's round button beside it on the same line (default);
     float  - the pill across the screen, the hub's button above it;
     dock   - a bar on the bottom edge.
   While the product page's buy bar shows (body.rz-mbar-on), the buy bar takes its place. It steps aside while
   something covers the page (body.rz-floats-away) or while a field is being typed in (.is-kb).

   Three layers inside the bar (z-order): the glass (the <nav>, with its rim ::before and sheen ::after), ONE
   indicator (.rz-tb__pill) and the row of items (.rz-tb__row). The indicator's place is --k (0…n-1), picked by
   CSS alone from the item that is aria-current (the page) or aria-expanded (its tab page is open); it glides
   there on a spring (`translate`, composited) and stretches on the way (.is-moving). While a finger slides along
   the bar (.is-scrub, R98) it follows the finger instead (--x, in px). Everything that moves is opacity,
   translate, scale or transform: nothing is laid out again, nothing repaints but the bar's own layer. Colours are
   the site's tokens, so every dark palette applies by itself; the glass rim is the one value with a dark twin
   (--rz-tb-rim). */
@media (max-width:1023.98px){
  body.rz-has-tb{
    --rz-tb-h:clamp(3.35rem,3.15rem + 1vw,3.75rem);
    /* R107: the gap under the floating bar. Without a home indicator it is the usual small margin. With one (an
       iPhone whose browser has hidden its own bottom bar: Chrome, Brave, Safari full-screen) the bar sits as low as
       it can without touching the indicator: the indicator's top is ~13pt up, the bar's edge 14pt (R108; R107: 22pt;
       before: a full 34pt safe area plus the margin, ~43pt). The Widget Hub's button follows. */
    --rz-tb-b:max(clamp(.45rem,.3rem + .8vw,.75rem),calc(env(safe-area-inset-bottom,0px) - 1.25rem));
    --rz-tb-cover:calc(var(--rz-tb-h) + var(--rz-tb-b));
    /* the footer's last line clears the bar (and, when the hub's button sits above the bar, the button too);
       constant for the page, so the buy bar coming and going never moves the footer */
    --rz-foot-clear:calc(var(--rz-tb-cover) + 3.75rem)}
  body.rz-has-tb.rz-tb-beside{--rz-foot-clear:var(--rz-tb-cover)}
  body.rz-has-tb.rz-tb-dock{--rz-tb-b:0px;--rz-tb-cover:calc(var(--rz-tb-h) + env(safe-area-inset-bottom,0px))}
  /* while the bar shows: what it covers, and the hub's line - beside the pill (beside) or above the bar */
  body.rz-has-tb:not(.rz-mbar-on){--rz-tb-space:var(--rz-tb-cover);--rz-fab-base:calc(var(--rz-tb-cover) + .5rem - var(--rz-fab-edge,clamp(10px,4vw,20px)))}
  body.rz-has-tb.rz-tb-beside:not(.rz-mbar-on){--rz-fab-base:calc(var(--rz-tb-b) + (var(--rz-tb-h) - var(--rwh-btn,2.75rem)) / 2 - var(--rz-fab-edge,clamp(10px,4vw,20px)))}

  .rz-tb{
    --k:0;--rz-tb-pad:.28rem;--rz-tb-spring:cubic-bezier(.34,1.4,.64,1);
    /* R100: the bar's whole look is these tokens, read once by the bar, its rim and sheen, the indicator and the
       items. A look (.rz-tb--l-*, below; chosen in the Customizer «سبک ظاهری نوار») only sets tokens, light and
       dark: no look restyles a rule of another. The defaults here are the plain solid bar. */
    --tb-bg:var(--rz-surface);--tb-solid:var(--rz-surface);--tb-line:var(--rz-line);--tb-fx:none;
    --tb-rim:transparent;--tb-edge:transparent;--tb-sheen:transparent;--tb-glow:linear-gradient(transparent,transparent);
    --tb-sh:var(--rz-sh-3);--tb-ink:var(--rz-text-3);--tb-sel:var(--rz-link);--tb-halo:none;--tb-ic-halo:none;--tb-av-ring:transparent;
    --tb-pill:color-mix(in srgb,var(--rz-brand) 12%,var(--rz-surface-2));--tb-pill-rim:transparent;--tb-pill-sh:0 0 0 transparent;--tb-pill-lift:0 10px 22px -10px color-mix(in srgb,var(--rz-brand) 60%,transparent);
    position:fixed;z-index:50;bottom:var(--rz-tb-b);inset-inline:var(--rz-fab-edge,clamp(10px,4vw,20px));display:flex;height:var(--rz-tb-h);padding:var(--rz-tb-pad);border:1px solid var(--tb-line);border-radius:var(--rz-r-pill);background:var(--tb-bg);-webkit-backdrop-filter:var(--tb-fx);backdrop-filter:var(--tb-fx);box-shadow:inset 0 1px 0 var(--tb-rim),var(--tb-sh);isolation:isolate;touch-action:pan-y;-webkit-user-select:none;user-select:none;transition:transform .3s var(--rz-ease),opacity .2s var(--rz-ease)}
  /* a lit rim, brightest along the top edge and fading round the sides (a 1px ring cut out by a mask), and a sheen
     down the bar with the look's glow under it (both under the indicator); transparent in the solid looks */
  .rz-tb::before{content:"";position:absolute;inset:-1px;z-index:3;border-radius:inherit;padding:1px;background:linear-gradient(180deg,var(--tb-rim),var(--tb-edge) 45%,transparent 80%);-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);pointer-events:none}
  .rz-tb::after{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;background:linear-gradient(180deg,var(--tb-sheen),transparent 60%),var(--tb-glow);pointer-events:none}
  /* a real spring (8% overshoot, settles by ~60%) where linear() easing exists; the curve above otherwise */
  @supports (transition-timing-function:linear(0,1)){.rz-tb{--rz-tb-spring:linear(0, .064, .214, .4, .586, .75, .881, .976, 1.037, 1.071, 1.083, 1.081, 1.07, 1.055, 1.039, 1.025, 1.013, 1.004, .998, .995, .993 58%, .996 69%, 1)}}
  .rz-tb--beside{inset-inline-end:calc(var(--rz-fab-edge,clamp(10px,4vw,20px)) + var(--rwh-btn,2.75rem) + .45rem)}
  .rz-tb--dock{--rz-tb-pad:.22rem;--rz-tb-pad-i:.4rem;--rz-tb-pad-b:calc(.22rem + env(safe-area-inset-bottom,0px));--tb-edge:transparent;inset-inline:0;height:calc(var(--rz-tb-h) + env(safe-area-inset-bottom,0px));padding:.22rem .4rem calc(.22rem + env(safe-area-inset-bottom,0px));border-width:1px 0 0;border-radius:0}
  .rz-tb--dock::before{display:none}

  /* ---- the looks (R100). Measured side by side in Round 100's report. ---- */
  /* glass - R97-R99's frosted glass: a see-through tint of the surface over a blurred, more saturated page */
  .rz-tb--l-glass{--tb-bg:color-mix(in srgb,var(--rz-surface) 68%,transparent);--tb-line:color-mix(in srgb,var(--rz-line) 70%,transparent);--tb-fx:blur(20px) saturate(1.9);--tb-rim:rgba(255,255,255,.82);--tb-edge:rgba(255,255,255,.34);--tb-sheen:color-mix(in srgb,var(--rz-surface) 50%,transparent);--tb-sh:inset 0 -1px 0 color-mix(in srgb,var(--rz-line) 45%,transparent),0 16px 36px -16px rgba(var(--rzv-1b1530-c,27,21,48),.36),0 3px 10px -4px rgba(var(--rzv-1b1530-c,27,21,48),.14);
    --tb-pill:radial-gradient(120% 90% at 50% 0,color-mix(in srgb,var(--rz-surface) 55%,transparent),transparent 70%),color-mix(in srgb,var(--rz-brand) 14%,color-mix(in srgb,var(--rz-surface-2) 70%,transparent));--tb-pill-rim:var(--tb-rim);--tb-pill-sh:inset 0 0 0 1px color-mix(in srgb,var(--rz-brand) 10%,transparent),0 6px 14px -8px color-mix(in srgb,var(--rz-brand) 60%,transparent)}
  html[data-rzk-theme=dark] .rz-tb--l-glass{--tb-bg:color-mix(in srgb,var(--rz-surface) 74%,transparent);--tb-rim:rgba(255,255,255,.12);--tb-edge:rgba(255,255,255,.07);--tb-sh:0 16px 36px -14px rgba(0,0,0,.6),0 3px 10px -4px rgba(0,0,0,.35)}
  /* liquid - iOS 26's Liquid Glass: clearer (less tint, a lighter blur that keeps the page's shapes), a bright
     specular edge, light gathered along the lower edge as in a lens, and a clear glass lens for the indicator
     with the tab in the brand colour on it */
  .rz-tb--l-liquid{--tb-bg:color-mix(in srgb,var(--rz-surface) 50%,transparent);--tb-line:rgba(255,255,255,.55);--tb-fx:blur(14px) saturate(2.1) brightness(1.05);--tb-rim:rgba(255,255,255,.96);--tb-edge:rgba(255,255,255,.5);--tb-sheen:rgba(255,255,255,.4);
    --tb-glow:radial-gradient(70% 110% at 50% 135%,rgba(255,255,255,.6),transparent 62%);
    --tb-sh:inset 0 0 0 .5px rgba(255,255,255,.4),inset 0 -7px 14px -9px rgba(255,255,255,.85),0 14px 32px -12px rgba(var(--rzv-1b1530-c,27,21,48),.3),0 2px 7px -2px rgba(var(--rzv-1b1530-c,27,21,48),.12);
    --tb-ink:var(--rz-text-2);--tb-pill:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.4));--tb-pill-rim:#fff;--tb-pill-sh:inset 0 -1px 0 rgba(var(--rzv-1b1530-c,27,21,48),.06),0 0 0 .5px rgba(var(--rzv-1b1530-c,27,21,48),.06),0 5px 14px -5px rgba(var(--rzv-1b1530-c,27,21,48),.25);--tb-pill-lift:0 12px 26px -10px rgba(var(--rzv-1b1530-c,27,21,48),.35)}
  html[data-rzk-theme=dark] .rz-tb--l-liquid{--tb-bg:color-mix(in srgb,var(--rz-surface) 50%,transparent);--tb-line:rgba(255,255,255,.14);--tb-rim:rgba(255,255,255,.32);--tb-edge:rgba(255,255,255,.1);--tb-sheen:rgba(255,255,255,.07);--tb-glow:radial-gradient(70% 110% at 50% 135%,rgba(255,255,255,.12),transparent 62%);
    --tb-sh:inset 0 0 0 .5px rgba(255,255,255,.08),inset 0 -7px 14px -9px rgba(255,255,255,.14),0 14px 32px -12px rgba(0,0,0,.65);--tb-pill:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.07));--tb-pill-rim:rgba(255,255,255,.38);--tb-pill-sh:0 5px 14px -5px rgba(0,0,0,.5);--tb-pill-lift:0 12px 26px -10px rgba(0,0,0,.6)}
  /* aurora - the frosted glass lit from inside by the brand and accent colours, and a solid brand indicator with
     the tab in white on it: the most "Rozhika" of the looks */
  .rz-tb--l-aurora{--tb-av-ink:var(--rz-brand);--tb-bg:color-mix(in srgb,var(--rz-surface) 70%,transparent);--tb-line:color-mix(in srgb,var(--rz-brand) 16%,transparent);--tb-fx:blur(20px) saturate(1.8);--tb-rim:rgba(255,255,255,.85);--tb-edge:rgba(255,255,255,.3);--tb-sheen:color-mix(in srgb,var(--rz-surface) 45%,transparent);
    --tb-glow:radial-gradient(55% 150% at 12% 0,color-mix(in srgb,var(--rz-brand) 16%,transparent),transparent 70%),radial-gradient(55% 150% at 88% 100%,color-mix(in srgb,var(--rz-accent) 12%,transparent),transparent 70%);
    --tb-sh:0 16px 36px -16px color-mix(in srgb,var(--rz-brand) 45%,transparent),0 3px 10px -4px rgba(var(--rzv-1b1530-c,27,21,48),.14);
    --tb-pill:linear-gradient(135deg,var(--rz-brand),color-mix(in srgb,var(--rz-brand) 70%,var(--rz-accent)));--tb-pill-rim:rgba(255,255,255,.35);--tb-pill-sh:0 7px 16px -7px color-mix(in srgb,var(--rz-brand) 80%,transparent);--tb-sel:#fff;--tb-pill-lift:0 12px 24px -9px color-mix(in srgb,var(--rz-brand) 85%,transparent)}
  html[data-rzk-theme=dark] .rz-tb--l-aurora{--tb-bg:color-mix(in srgb,var(--rz-surface) 76%,transparent);--tb-line:rgba(255,255,255,.08);--tb-rim:rgba(255,255,255,.12);--tb-edge:rgba(255,255,255,.05);--tb-sh:0 16px 36px -14px rgba(0,0,0,.6)}
  /* prism - liquid's clear glass body with aurora's solid brand indicator: the clarity of iOS 26 and a selected
     tab that reads at a glance on any page (a white lens vanishes over white cards) */
  .rz-tb--l-prism{--tb-av-ink:var(--rz-brand);--tb-bg:color-mix(in srgb,var(--rz-surface) 50%,transparent);--tb-line:rgba(255,255,255,.55);--tb-fx:blur(14px) saturate(2.1) brightness(1.05);--tb-rim:rgba(255,255,255,.96);--tb-edge:rgba(255,255,255,.5);--tb-sheen:rgba(255,255,255,.4);
    --tb-glow:radial-gradient(70% 110% at 50% 135%,rgba(255,255,255,.6),transparent 62%);
    --tb-sh:inset 0 0 0 .5px rgba(255,255,255,.4),inset 0 -7px 14px -9px rgba(255,255,255,.85),0 14px 32px -12px rgba(var(--rzv-1b1530-c,27,21,48),.3),0 2px 7px -2px rgba(var(--rzv-1b1530-c,27,21,48),.12);
    --tb-ink:var(--rz-text-2);--tb-sel:#fff;
    --tb-pill:linear-gradient(135deg,var(--rz-brand),color-mix(in srgb,var(--rz-brand) 70%,var(--rz-accent)));--tb-pill-rim:rgba(255,255,255,.4);--tb-pill-sh:0 7px 16px -7px color-mix(in srgb,var(--rz-brand) 80%,transparent);--tb-pill-lift:0 12px 24px -9px color-mix(in srgb,var(--rz-brand) 85%,transparent)}
  html[data-rzk-theme=dark] .rz-tb--l-prism{--tb-bg:color-mix(in srgb,var(--rz-surface) 52%,transparent);--tb-line:rgba(255,255,255,.14);--tb-rim:rgba(255,255,255,.32);--tb-edge:rgba(255,255,255,.1);--tb-sheen:rgba(255,255,255,.07);--tb-glow:radial-gradient(70% 110% at 50% 135%,rgba(255,255,255,.12),transparent 62%);
    --tb-sh:inset 0 0 0 .5px rgba(255,255,255,.08),inset 0 -7px 14px -9px rgba(255,255,255,.14),0 14px 32px -12px rgba(0,0,0,.65)}
  /* R150 clear - Apple's Liquid Glass and Telegram's floating bar: the page stays readable through the bar (a 5px
     frost instead of 14px, a light tint), lit by a bright rim and sheen; its labels and icons keep a soft halo of the
     surface colour so they read over any photo (the selected one, white on the brand indicator, has none). The
     smaller blur is also the cheaper one to redraw while the page scrolls under it. */
  .rz-tb--l-clear{--tb-av-ink:var(--rz-brand);--tb-bg:color-mix(in srgb,var(--rz-surface) 18%,transparent);--tb-line:rgba(255,255,255,.62);--tb-fx:blur(5px) saturate(1.8) brightness(1.08);--tb-rim:#fff;--tb-edge:rgba(255,255,255,.55);--tb-sheen:rgba(255,255,255,.48);
    --tb-glow:radial-gradient(70% 110% at 50% 135%,rgba(255,255,255,.5),transparent 62%);
    --tb-sh:inset 0 0 0 .5px rgba(255,255,255,.45),inset 0 -6px 12px -8px rgba(255,255,255,.9),0 14px 30px -12px rgba(var(--rzv-1b1530-c,27,21,48),.28),0 2px 6px -2px rgba(var(--rzv-1b1530-c,27,21,48),.12);
    --tb-ink:var(--rz-text);--tb-sel:#fff;--tb-av-ring:rgba(255,255,255,.9);
    --tb-halo:0 0 3px color-mix(in srgb,var(--rz-surface) 92%,transparent),0 0 1px var(--rz-surface);--tb-ic-halo:drop-shadow(0 0 1.5px color-mix(in srgb,var(--rz-surface) 90%,transparent));
    --tb-pill:linear-gradient(135deg,var(--rz-brand),color-mix(in srgb,var(--rz-brand) 70%,var(--rz-accent)));--tb-pill-rim:rgba(255,255,255,.45);--tb-pill-sh:0 7px 16px -7px color-mix(in srgb,var(--rz-brand) 80%,transparent);--tb-pill-lift:0 12px 24px -9px color-mix(in srgb,var(--rz-brand) 85%,transparent)}
  html[data-rzk-theme=dark] .rz-tb--l-clear{--tb-av-ring:rgba(255,255,255,.22);--tb-bg:color-mix(in srgb,var(--rz-surface) 30%,transparent);--tb-fx:blur(5px) saturate(1.6) brightness(.82);--tb-line:rgba(255,255,255,.16);--tb-rim:rgba(255,255,255,.34);--tb-edge:rgba(255,255,255,.12);--tb-sheen:rgba(255,255,255,.08);--tb-glow:radial-gradient(70% 110% at 50% 135%,rgba(255,255,255,.1),transparent 62%);
    --tb-sh:inset 0 0 0 .5px rgba(255,255,255,.1),inset 0 -6px 12px -8px rgba(255,255,255,.14),0 14px 30px -12px rgba(0,0,0,.65)}
  /* solid - no transparency at all: a crisp surface, a hairline and a two-step shadow (Material 3). Nothing to
     blur behind it, the cheapest to draw while scrolling */
  .rz-tb--l-solid{--tb-sh:0 1px 2px rgba(var(--rzv-1b1530-c,27,21,48),.06),0 12px 30px -12px rgba(var(--rzv-1b1530-c,27,21,48),.32);--tb-pill:color-mix(in srgb,var(--rz-brand) 11%,var(--rz-surface));--tb-pill-sh:inset 0 0 0 1px color-mix(in srgb,var(--rz-brand) 14%,transparent)}
  html[data-rzk-theme=dark] .rz-tb--l-solid{--tb-bg:var(--rz-surface-2);--tb-solid:var(--rz-surface-2);--tb-sh:0 12px 30px -12px rgba(0,0,0,.7);--tb-pill:color-mix(in srgb,var(--rz-brand) 22%,var(--rz-surface-2))}
  /* ink - a dark glass bar in light mode too (Apple Music / Telegram's dark bar): the strongest contrast with
     the page, white icons, a light glass indicator */
  .rz-tb--l-ink{--tb-av-ink:var(--rz-brand);--tb-bg:rgba(var(--rzv-1b1530-c,27,21,48),.86);--tb-solid:var(--rzv-1e1733,#1e1733);--tb-line:rgba(255,255,255,.08);--tb-fx:blur(18px) saturate(1.6);--tb-rim:rgba(255,255,255,.22);--tb-edge:rgba(255,255,255,.06);--tb-sheen:rgba(255,255,255,.05);
    --tb-glow:radial-gradient(60% 160% at 50% 140%,color-mix(in srgb,var(--rz-brand) 45%,transparent),transparent 70%);
    --tb-sh:0 16px 34px -12px rgba(var(--rzv-140c28-c,20,12,40),.55),0 3px 10px -4px rgba(var(--rzv-140c28-c,20,12,40),.25);--tb-ink:rgba(255,255,255,.6);--tb-sel:#fff;
    --tb-pill:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.09));--tb-pill-rim:rgba(255,255,255,.3);--tb-pill-sh:0 6px 16px -6px color-mix(in srgb,var(--rz-brand) 80%,transparent);--tb-pill-lift:0 12px 24px -9px color-mix(in srgb,var(--rz-brand) 85%,transparent)}
  html[data-rzk-theme=dark] .rz-tb--l-ink{--tb-bg:color-mix(in srgb,var(--rz-surface-2) 82%,transparent);--tb-solid:var(--rz-surface-2);--tb-line:rgba(255,255,255,.09)}
  /* R185: light mode, the bar over the footer's dark band (tabbar.js .is-ondark): the see-through looks take a dark
     tint and light ink there, so «خانه», «دسته‌بندی»… no longer turn dark-on-dark (solid and ink are opaque: unchanged) */
  html:not([data-rzk-theme=dark]) .rz-tb.is-ondark:not(.rz-tb--l-solid):not(.rz-tb--l-ink){--tb-bg:rgba(var(--rzv-140c28-c,20,12,40),.46);--tb-ink:rgba(255,255,255,.93);--tb-line:rgba(255,255,255,.16);--tb-rim:rgba(255,255,255,.34);--tb-edge:rgba(255,255,255,.1);--tb-sheen:rgba(255,255,255,.08);--tb-glow:radial-gradient(70% 110% at 50% 135%,rgba(255,255,255,.1),transparent 62%);--tb-halo:0 0 3px rgba(0,0,0,.45);--tb-ic-halo:drop-shadow(0 0 1.5px rgba(0,0,0,.4));--tb-av-ring:rgba(255,255,255,.3)}
  .rz-tb{transition:background-color .25s var(--rz-ease)}
  /* no blur in the browser, or the visitor asked for less transparency: the look's own solid colour */
  @supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.rz-tb{--tb-bg:var(--tb-solid)}}
  @media (prefers-reduced-transparency:reduce){.rz-tb{--tb-bg:var(--tb-solid);--tb-fx:none}}
  /* R100 adaptive glass: on a weak phone (tabbar.js: ≤ 2 GB memory or ≤ 2 cores, or Data Saver; Customizer
     «شیشهٔ سبک برای گوشی‌های ضعیف») the look keeps its colours, nearly opaque, without the per-frame blur */
  .rz-tb.is-lite{--tb-bg:color-mix(in srgb,var(--tb-solid) 94%,transparent);--tb-fx:none}
  body.rz-mbar-on .rz-tb,.rz-floats-away .rz-tb:not(.is-over),.rz-tb.is-kb{opacity:0;transform:translateY(calc(100% + var(--rz-tb-b) + .5rem));pointer-events:none}
  /* R98: while one of its tab pages (the category menu, the mini-cart) or the login page's skeleton is up, the bar stays above it */
  .rz-tb.is-over{z-index:101}

  /* the indicator: one pill of a tab's width at --k, faded out while no tab is the page */
  .rz-tb__pill{position:absolute;z-index:1;top:var(--rz-tb-pad);bottom:var(--rz-tb-pad-b,var(--rz-tb-pad));inset-inline-start:var(--rz-tb-pad-i,var(--rz-tb-pad));width:calc((100% - 2 * var(--rz-tb-pad-i,var(--rz-tb-pad))) / var(--n,4));border-radius:var(--rz-r-pill);background:var(--tb-pill);box-shadow:inset 0 1px 0 var(--tb-pill-rim),var(--tb-pill-sh);opacity:0;scale:.6;translate:calc(var(--k) * -100%) 0;pointer-events:none;transition:translate .6s var(--rz-tb-spring),scale .45s var(--rz-tb-spring),opacity .18s var(--rz-ease)}
  [dir=ltr] .rz-tb__pill{translate:calc(var(--k) * 100%) 0}
  .rz-tb--dock .rz-tb__pill{border-radius:var(--rz-r)}
  .rz-tb:has(>.rz-tb__row>[aria-current=page],>.rz-tb__row>[aria-expanded=true]) .rz-tb__pill{opacity:1;scale:1}
  .rz-tb:has(>.rz-tb__row>:nth-child(2)[aria-current=page]){--k:1}
  .rz-tb:has(>.rz-tb__row>:nth-child(3)[aria-current=page]){--k:2}
  .rz-tb:has(>.rz-tb__row>:nth-child(4)[aria-current=page]){--k:3}
  .rz-tb:has(>.rz-tb__row>:nth-child(5)[aria-current=page]){--k:4}
  /* an open tab page wins over the page (later rules, same weight) */
  .rz-tb:has(>.rz-tb__row>:nth-child(1)[aria-expanded=true]){--k:0}
  .rz-tb:has(>.rz-tb__row>:nth-child(2)[aria-expanded=true]){--k:1}
  .rz-tb:has(>.rz-tb__row>:nth-child(3)[aria-expanded=true]){--k:2}
  .rz-tb:has(>.rz-tb__row>:nth-child(4)[aria-expanded=true]){--k:3}
  .rz-tb:has(>.rz-tb__row>:nth-child(5)[aria-expanded=true]){--k:4}
  /* on its way the indicator stretches along the bar and settles back (tabbar.js sets .is-moving for one run) */
  .rz-tb.is-moving .rz-tb__pill{animation:rz-tb-stretch .5s var(--rz-ease)}
  @keyframes rz-tb-stretch{30%{transform:scale(1.22,.86)}62%{transform:scale(.95,1.05)}}
  /* a press squeezes the indicator a little, like a drop of glass under the finger */
  .rz-tb.is-press .rz-tb__pill{transform:scale(.94,.9);transition:translate .6s var(--rz-tb-spring),scale .45s var(--rz-tb-spring),opacity .18s var(--rz-ease),transform .12s var(--rz-ease)}
  /* R98 scrub: a finger sliding along the bar carries the indicator (--x from tabbar.js, the finger's place
     inside the row minus half a tab); it is a little larger and lifts while held, and lands on release */
  .rz-tb.is-scrub .rz-tb__pill{opacity:1;scale:1.06;translate:var(--x,0) 0;transition:scale .2s var(--rz-ease),opacity .12s;box-shadow:inset 0 1px 0 var(--tb-pill-rim),var(--tb-pill-lift)}

  .rz-tb__row{position:relative;z-index:2;display:flex;flex:1 1 auto;min-width:0}
  .rz-tb__i{text-shadow:var(--tb-halo);position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;margin:0;padding:0 .1rem;border:0;border-radius:var(--rz-r-pill);background:none;color:var(--tb-ink);font:inherit;font-size:var(--rz-fs-2xs);font-weight:700;line-height:1.25;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;touch-action:pan-y;transition:color .2s var(--rz-ease)}
  /* the selected tab: its open tab page if one is open, otherwise the page's own tab (one definition, no reset rule) */
  .rz-tb:not(:has(>.rz-tb__row>[aria-expanded=true])) .rz-tb__i[aria-current=page],.rz-tb__i[aria-expanded=true],.rz-tb__i.is-under{color:var(--tb-sel);--tb-halo:none;--tb-ic-halo:none}
  /* R103: the tab turns white as the indicator gets there, not before it: against the glass the white label of the
     tapped tab vanished for the first ~0.1 s of the glide (the old tab lets go at once) */
  .rz-tb__i[aria-current=page],.rz-tb__i[aria-expanded=true],.rz-tb__i[aria-current=page] .fx,.rz-tb__i[aria-expanded=true] .fx{transition-delay:.12s}
  .rz-tb__i:focus-visible{outline-offset:-3px}
  .rz-tb__ic{position:relative;display:grid;place-items:center;width:1.5rem;height:1.5rem;transition:transform .18s var(--rz-ease)}
  .rz-tb__ic>svg{width:1.4rem;height:1.4rem;filter:var(--tb-ic-halo)}
  .rz-tb__i:active .rz-tb__ic{transform:scale(.84);transition-duration:.08s}
  /* the tapped tab's icon pops as the indicator arrives (data-pop from tabbar.js, one run) */
  .rz-tb__i[data-pop] .rz-tb__ic{animation:rz-tb-pop .5s var(--rz-tb-spring)}
  @keyframes rz-tb-pop{0%{transform:scale(.8)}45%{transform:scale(1.14) translateY(-1px)}100%{transform:none}}
  /* the current tab's glyph fills in, like the apps' selected icons: solid where the shape allows it (.fx paths,
     inc/tabbar.php), a soft tint otherwise. data-fill on the bar = «آیکن پر» in the Customizer. */
  .rz-tb__ic .fx{fill:transparent;transition:fill .22s var(--rz-ease)}
    .rz-tb:not(:has(>.rz-tb__row>[aria-expanded=true])) .rz-tb__i[aria-current=page] .rz-tb__ic>svg,.rz-tb__i[aria-expanded=true] .rz-tb__ic>svg{fill:color-mix(in srgb,currentColor 18%,transparent)}
  .rz-tb[data-fill]:not(:has(>.rz-tb__row>[aria-expanded=true])) .rz-tb__i[aria-current=page] .fx,.rz-tb[data-fill] .rz-tb__i[aria-expanded=true] .fx{fill:currentColor}
  .rz-tb[data-fill]:not(:has(>.rz-tb__row>[aria-expanded=true])) .rz-tb__i[aria-current=page] .fx-cut,.rz-tb[data-fill] .rz-tb__i[aria-expanded=true] .fx-cut{stroke:var(--tb-solid)}
  .rz-tb__l{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rz-tb:not(:has(>.rz-tb__row>[aria-expanded=true])) .rz-tb__i[aria-current=page] .rz-tb__l,.rz-tb__i[aria-expanded=true] .rz-tb__l{font-weight:800}
  .rz-tb .bfc-cart-badge{text-shadow:none;position:absolute;top:-.3rem;inset-inline-end:calc(100% - .45rem);transform-origin:0 100%;min-width:1.1rem;height:1.1rem;padding:0 .25rem;border-radius:var(--rz-r-pill);background:var(--rz-accent);color:var(--rz-on-accent,#fff);font-size:.625rem;font-weight:800;line-height:1.1rem;text-align:center;box-shadow:0 0 0 2px var(--tb-solid)}
  .rz-tb .bfc-cart-badge.is-empty{display:none}
  /* the badge bumps when an item is added (tabbar.js, one run) */
  .rz-tb .bfc-cart-badge.is-bump{animation:rz-tb-bump .55s var(--rz-tb-spring)}
  @keyframes rz-tb-bump{0%{transform:scale(.6)}40%{transform:scale(1.28)}100%{transform:none}}
  /* the signed-in customer's initial in «حساب من»: a disc the size of the other glyphs. R103: on its own page it
     takes the selected tab's colour (--tb-sel) with the letter in --tb-av-ink - a white disc with a brand letter on
     the purple indicator of prism / aurora / ink, a brand disc elsewhere - instead of the old double ring, which
     drew a thick white circle on the purple indicator and spilled over the label */
  /* R152: the signed-in visitor's initial: its own crisp letter (never the labels' halo, which blurred it on the clear glass)
     and a hairline ring (--tb-av-ring, set by the look) so the disc keeps its edge over any page */
  .rz-tb__av{display:grid;place-items:center;width:1.4rem;height:1.4rem;border-radius:50%;background:linear-gradient(135deg,var(--rz-brand),var(--rz-accent));color:#fff;font-size:.75rem;font-weight:800;line-height:1;text-shadow:none;box-shadow:0 0 0 1.5px var(--tb-av-ring,transparent),0 1px 3px rgba(var(--rzv-140c28-c,20,12,40),.2);transition:background-color .2s var(--rz-ease),color .2s var(--rz-ease)}
  .rz-tb:not(:has(>.rz-tb__row>[aria-expanded=true])) .rz-tb__i[aria-current=page] .rz-tb__av{background:var(--tb-sel);color:var(--tb-av-ink,#fff);box-shadow:0 1px 3px rgba(var(--rzv-140c28-c,20,12,40),.22)}
  .rz-tb__rx{width:1.5rem;height:1.5rem}

  /* R97: the page change behind the bar (cross-document View Transition; opted in by <style id="rz-vt">,
     inc/tabbar.php). Fade-through, as Telegram and Material switch tabs: the old page (R98: already showing the
     next page's skeleton, .rz-shell) dims away quickly, the new one rises in. The header, the bar's glass, its
     row and the hub's button are their own layers that simply stay; the indicator is its own layer too, so it
     travels from the old tab's place to the new one on the same spring - under the row, because the row comes
     after it. While the snapshots play, the glass layer keeps a live blur behind it. */
  #rz-header{view-transition-name:rz-hdr}
  .rz-tb{view-transition-name:rz-tb}
  .rz-tb__pill{view-transition-name:rz-tb-pill}
  .rz-tb__row{view-transition-name:rz-tb-row}
  #rwh-main-btn{view-transition-name:rz-hub}
  #wpadminbar{view-transition-name:rz-wpab}
  body.rz-mbar-on .rz-tb,body.rz-mbar-on .rz-tb__pill,body.rz-mbar-on .rz-tb__row{view-transition-name:none}
  ::view-transition-old(root){animation:rz-vt-out .12s cubic-bezier(.4,0,1,1) both}
  ::view-transition-new(root){animation:rz-vt-in .3s cubic-bezier(.2,.8,.2,1) .05s both}
  /* header and glass: the new page's own, at once (both are in its first frame: the bar is printed right
     after the header). The hub's button and WordPress' admin bar (staff only) are printed at the end of the
     page, so their old pictures stay until the new ones exist: the same thing either way. */
  ::view-transition-old(rz-hdr),::view-transition-old(rz-tb){display:none}
  ::view-transition-old(rz-hub),::view-transition-old(rz-wpab),::view-transition-new(rz-wpab),::view-transition-group(rz-wpab),::view-transition-new(rz-hdr),::view-transition-new(rz-tb),::view-transition-new(rz-hub),::view-transition-group(rz-hdr),::view-transition-group(rz-tb),::view-transition-group(rz-hub){animation:none}
  ::view-transition-group(rz-tb){border-radius:var(--rz-r-pill);-webkit-backdrop-filter:blur(20px) saturate(1.9);backdrop-filter:blur(20px) saturate(1.9)}
  /* (the pseudo-elements hang off <html>, so the bar's --rz-tb-spring does not reach them: spelled here) */
  ::view-transition-group(rz-tb-pill){animation-duration:.6s;animation-timing-function:cubic-bezier(.34,1.4,.64,1)}
  @supports (transition-timing-function:linear(0,1)){::view-transition-group(rz-tb-pill){animation-timing-function:linear(0, .064, .214, .4, .586, .75, .881, .976, 1.037, 1.071, 1.083, 1.081, 1.07, 1.055, 1.039, 1.025, 1.013, 1.004, .998, .995, .993 58%, .996 69%, 1)}}
  ::view-transition-old(rz-tb-row){animation:rz-vt-fade .16s linear both reverse}
  ::view-transition-new(rz-tb-row){animation:rz-vt-fade .16s linear both}

  /* R98: the next page's skeleton, drawn by tabbar.js in the frame of the tap on a tab (the app shell of
     Digikala, Telegram, Instagram). The page under it never moves: one fixed layer between the header and the
     bar, its own containment, one opacity animation for the whole of it (a single composited layer, no
     per-block shimmer), under the bar (z-index 49 < 50). --top is the header's bottom edge at the tap; 0 when the
     next page has no site header (the login page): while that skeleton shows, the header and the hub's button
     are hidden (R103; before, the skeleton covered the header and the bar was lifted over it). It goes away by itself with the page; from the back/forward cache tabbar.js
     removes it. */
  .rz-shell--login{padding-top:max(12px,env(safe-area-inset-top))}
  #rz-header.rz-sk-hide,#rwh-main-btn.rz-sk-hide{visibility:hidden}
  .rz-shell__in{display:flex;flex-direction:column;gap:var(--rz-s3,.75rem);max-width:40rem;margin-inline:auto;animation:rz-sh-pulse 1.1s ease-in-out .3s infinite alternate}
  .rz-shell i{display:block;flex:none;width:var(--w,100%);height:var(--h,.8rem);border-radius:var(--r,var(--rz-r-sm,.5rem));background:var(--rz-sk-bg,var(--rz-surface-2))}
  .rz-shell b{display:flex;flex-direction:column;gap:var(--g,.55rem);padding:var(--p,0);border-radius:var(--rz-r-xl,1.25rem);background:var(--bg,transparent);font:inherit}
  .rz-shell b.c{--bg:var(--rz-surface);--p:var(--rz-s4,1rem);border:1px solid var(--rz-line)}
  .rz-shell u{display:flex;gap:var(--g,.5rem);align-items:center;text-decoration:none}
  .rz-shell u.w{flex-wrap:wrap}
  .rz-shell u.s{justify-content:space-between}
  .rz-shell u>b{flex:1 1 0;min-width:0}
  .rz-shell .o{border-radius:50%}
  .rz-shell .p{border-radius:var(--rz-r-pill,999px)}
  .rz-shell .h{background:color-mix(in srgb,var(--rz-brand) 16%,var(--rz-surface-2))}
  .rz-shell .g{display:grid;grid-template-columns:repeat(var(--rz-cols-m,2),minmax(0,1fr));gap:var(--rz-s3,.75rem)}
  /* R99: the next page's own layout (tabbar.js: read from that page on this screen, or the shipped default) -
     boxes at the page's own coordinates, as it opens at its top under the same header (the real header covers
     the top of it). Kinds: c card, c2 tinted card, h brand band (the hero), m picture or icon, t a line of text,
     w a line on a brand band, f field, b brand button, p light button. The look of the site's other skeletons
     (.rz-skel: surface blocks on white cards); ONE light sweep for the whole of it, not one per block. */
  /* R101: the same skeleton carried over onto the new page (inc/tabbar.php rozhika_tabbar_bridge): already
     there in its first frame (no fade in), fading out once the page's content is in */
  @keyframes rz-sh-pulse{to{opacity:.55}}
}
@keyframes rz-vt-out{to{opacity:0;transform:scale(.985)}}
@keyframes rz-vt-in{from{opacity:0;transform:translateY(.6rem) scale(1.01)}}
@keyframes rz-vt-fade{from{opacity:0}}
/* tablets: a centred pill of a phone's width (as iPadOS floats it), the hub's button keeps its corner on the same line */
@media (min-width:600px) and (max-width:1023.98px){.rz-tb:not(.rz-tb--dock){inset-inline:0;width:min(30rem,calc(100% - 2 * (var(--rz-fab-edge,clamp(10px,4vw,20px)) + var(--rwh-btn,2.75rem) + .45rem)));margin-inline:auto}.rz-shell .g{grid-template-columns:repeat(var(--rz-cols-t,3),minmax(0,1fr))}}
@media (max-width:359.98px){.rz-tb__i{font-size:.5625rem}.rz-tb__ic>svg{width:1.3rem;height:1.3rem}.rz-tb{--rz-tb-pad:.22rem}}
@media (prefers-reduced-motion:reduce){.rz-tb,.rz-tb__pill,.rz-tb__ic,.rz-tb__ic .fx{transition:none}.rz-tb.is-moving .rz-tb__pill,.rz-tb__i[data-pop] .rz-tb__ic,.rz-tb .bfc-cart-badge.is-bump,.rz-shell__in,.rz-shell__snap::after{animation:none}.rz-shell{animation-duration:.01s}}

/* the stand-alone login page (plugins/rozhika-mobile-auth, class-cma-ui.php): the bar's tokens from that page's
   own palette (its light and dark values already follow the visitor's choice), and the hub-free layout */
body.rzl.rz-has-tb{
  --rz-surface:var(--s);--rz-surface-2:var(--s2);--rz-surface-3:var(--s3);--rz-bg:var(--bg);--rz-line:var(--l);--rz-brand:var(--b);--rz-accent:var(--acc);
  --rz-link:var(--b6);--rz-text-2:var(--t2);--rz-text-3:var(--t3);--rz-r-pill:999px;--rz-r-sm:.5rem;--rz-r-xl:1.25rem;--rz-ease:var(--ease);
  --rz-sh-3:0 12px 32px -12px rgba(var(--rzv-1b1530-c,27,21,48),.28);--rz-fs-2xs:clamp(.625rem,.6rem + .12vw,.6875rem);--rz-fab-edge:clamp(10px,4vw,20px);
  --rz-s3:.75rem;--rz-s4:1rem;--rz-gutter:1rem}
html[data-rzk-theme=dark] body.rzl.rz-has-tb{--rz-link:var(--b7)}
